{"matchId":"43600824","creationMatch":null,"runtimeMatch":"match","verifiedAt":"2026-08-13T13:37:48Z","creationBytecode":{"onchainBytecode":null,"recompiledBytecode":"0x6080806040523460aa575f516020615fd05f395f51905f525460ff8160401c16609b576002600160401b03196001600160401b038216016049575b604051615f2190816100af8239f35b6001600160401b0319166001600160401b039081175f516020615fd05f395f51905f525581527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a15f80603a565b63f92ee8a960e01b5f5260045ffd5b5f80fdfe60806040526004361015610011575f80fd5b5f5f3560e01c8063033a06951461428b578063066dd830146141695780630752c44c146141395780630c90e7fe146140e9578063132a8bea146140ae578063152ee0d3146140515780631901057d14613ffe5780631e83287e146136fe57806321a3bebc1461369a578063228e731f1461367a57806324ba667f1461365157806324e4c1af146131855780632a5b380314612e0d5780633369706614612def578063341f7dcf14612aac5780633992163714612a5e5780633a445c4e14612a105780633c9a9ee514612984578063403d77781461291857806341a009eb146128d857806358a54078146128ae5780635e39616d146128945780635ff1c4821461283d5780637333a3b41461266f5780637658c64414612631578063771602f7146122fa5780637a9e5e4b1461223f57806380c099f41461221a57806383e4bcb71461212057806387a7dc7714611f385780638accc4a314611f025780638fb3603714611e6d5780639c7ee64f14611e075780639f9b199014611dcc578063a0aead4d14611daf578063a0b3d9d814611d8f578063a2763d2914611d01578063a436458d14611a83578063a467cc5914611963578063aab9eb071461193b578063b0745f2b146118fe578063b33454e5146118e2578063b5f460c8146118b9578063be10528014611607578063bf7e214f146115c1578063c04d164e1461159c578063c25d82fe146114f6578063c435e92814611490578063c4d66de8146112fa578063cc0e1c1c14610fc0578063ceb233b314610f9b578063d3c6a11d14610f4a578063d5d15a1114610f02578063d6abe64214610e66578063de079b5714610e23578063de31ea9f14610d54578063e5c9274514610cfa578063e840427d14610aaf578063eac8f5b814610736578063efdba7c0146106a2578063f51f1a351461064f578063f701f06e1461055c578063f8447aaf1461052f578063f899860514610513578063f91ebd52146104f75763fce56a0b146102f0575f80fd5b346104f45760406003193601126104f457610309614309565b908060405161031781614507565b8181528160208201528160408201528160608201528160808201528160a08201528160c08201528160e08201528161010082015261012001526004358152600260205260409020906001600160a01b03165f5260205260405f2060405161037d81614507565b81546effffffffffffffffffffffffffffff811692838352602083019160781c6effffffffffffffffffffffffffffff168252600181015460180b9160408401928352600282015492606085016effffffffffffffffffffffffffffff8516815260808601908560781c64ffffffffff16825260a08701928660a01c64ffffffffff16845260c08801948760c81c62ffffff16865260e08901968860e01c60ff16151588526101008a019860e81c60ff16151589526003015478ffffffffffffffffffffffffffffffffffffffffffffffffff169861012001988952604051998a52516effffffffffffffffffffffffffffff1660208a01525160180b6040890152516effffffffffffffffffffffffffffff1660608801525164ffffffffff1660808701525164ffffffffff1660a08601525162ffffff1660c085015251151560e08401525115156101008301525178ffffffffffffffffffffffffffffffffffffffffffffffffff1661012082015261014090f35b80fd5b50346104f457806003193601126104f457602060405160068152f35b50346104f457806003193601126104f457602060405160128152f35b50346104f4576105546020916040610546366142dd565b929081526001855220615848565b604051908152f35b50346104f45760406003193601126104f4576001600160a01b036040610580614309565b92610589614610565b50600435815260026020522091165f5260205261064b600260405f20015460ff604051916105b6836144eb565b64ffffffffff8160781c16835264ffffffffff8160a01c16602084015262ffffff8160c81c166040840152818160e01c161515606084015260e81c16151560808201526040519182918291909160808060a083019464ffffffffff815116845264ffffffffff602082015116602085015262ffffff604082015116604085015260608101511515606085015201511515910152565b0390f35b50346104f45760206003193601126104f45761055460406020926004358152600184522061069c6effffffffffffffffffffffffffffff825460781c169161069681614ee6565b906159a0565b9061466a565b50346104f45760406003193601126104f457610554602091600435906001600160a01b0360406106d0614309565b9284815260018752818120948152600287522091165f52835261071b60405f206107156effffffffffffffffffffffffffffff82541661070f85614ee6565b90615b17565b9261596b565b6b033b2e3c9fd0803ce800000080820615159104019061466a565b50346104f45760206003193601126104f45760408161022092610200835161075d81614485565b82815282602082015282858201528260608201528260808201528260a08201528260c08201528260e08201528261010082015282610120820152826101408201528261016082015282610180820152826101a0820152826101c0820152826101e08201520152600435815260016020522078ffffffffffffffffffffffffffffffffffffffffffffffffff6102006040516107f781614485565b8260098554956effffffffffffffffffffffffffffff871684526effffffffffffffffffffffffffffff8760781c16602085015260ff8760f01c1660408501526effffffffffffffffffffffffffffff6001820154818116606087015260781c166080850152600281015460180b60a085015260038101546effffffffffffffffffffffffffffff811660c08601526effffffffffffffffffffffffffffff8160781c1660e086015260f01c61010085015260048101546effffffffffffffffffffffffffffff81166101208601526bffffffffffffffffffffffff8160781c1661014086015260d81c6101608501526001600160a01b036005820154166101808501526001600160a01b036006820154166101a08501526001600160a01b036007820154166101c08501526001600160a01b036008820154166101e0850152015416828201526effffffffffffffffffffffffffffff604051941684526effffffffffffffffffffffffffffff602082015116602085015260ff60408201511660408501526effffffffffffffffffffffffffffff60608201511660608501526effffffffffffffffffffffffffffff608082015116608085015260a081015160180b60a08501526effffffffffffffffffffffffffffff60c08201511660c08501526effffffffffffffffffffffffffffff60e08201511660e085015261ffff610100820151166101008501526effffffffffffffffffffffffffffff610120820151166101208501526bffffffffffffffffffffffff6101408201511661014085015264ffffffffff610160820151166101608501526001600160a01b03610180820151166101808501526001600160a01b036101a0820151166101a08501526001600160a01b036101c0820151166101c08501526001600160a01b036101e0820151166101e0850152015116610200820152f35b50346104f457610abe366143a5565b9092828152600160205260408120908381526002602052604081206001600160a01b0333165f5260205260405f20610af583614a5e565b306001600160a01b03851614610cd2578515610caa5760020190815460ff8160e01c1615610c825760e81c60ff16610c5a576020610bad8787610bf582896001600160a01b0360058b6effffffffffffffffffffffffffffff610bcb868e8385541690610b658280851115614422565b84610b78610b738589615848565b614ddc565b9e8f6001890183610b8c838284541661463a565b166effffffffffffffffffffffffffffff198254161790558284541661463a565b166effffffffffffffffffffffffffffff1982541617905503614ddc565b166effffffffffffffffffffffffffffff19825416178155610bed8782614cb6565b015416614e36565b604080516effffffffffffffffffffffffffffff85168152602081019390935233927f535be2ff85ab4c5d0991e10dc057a4951ea2bac426ffb036eded23036a3942b291819081015b0390a36effffffffffffffffffffffffffffff60405191168152f35b807f9db9b3550000000000000000000000000000000000000000000000000000000060049252fd5b6004827fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004827f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b6004827fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760406003193601126104f4576001600160a01b036040610d1e614309565b92600435815260026020522091165f5260205260206effffffffffffffffffffffffffffff600260405f20015416604051908152f35b50346104f45760206003193601126104f45760408161064b9260608351610d7a816144cf565b8281528260208201528285820152015260043581526001602052206001600160a01b0360088201541690600381015460f01c906001600160a01b03600781600684015416920154169160405193610dd0856144cf565b84526020840152604083015260608201526040519182918291909160606001600160a01b0381608084019582815116855261ffff6020820151166020860152826040820151166040860152015116910152565b50346104f45760206003193601126104f45760408091600435815260016020522060ff6001600160a01b03600583015416915460f01c1682519182526020820152f35b50346104f45760206003193601126104f457610e806142f3565b610eb6816001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b15610eda576020916001600160a01b03604092168152600483522054604051908152f35b6004827fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f45778ffffffffffffffffffffffffffffffffffffffffffffffffff6009604060209360043581526001855220015416604051908152f35b50346104f45760406003193601126104f457610554602091600435906001600160a01b036040610f78614309565b9284815260018752818120948152600287522091165f52835260405f209061596b565b50346104f4576105546020916040610fb2366142dd565b92908152600185522061556b565b50346104f457610fcf36614363565b8284939452600160205260408320938084526002602052604084206001600160a01b0333165f5260205260405f209261100786614a5e565b60408301359481158015906112f1575b156112c95760ff600286015460e01c16156112a15761104b6effffffffffffffffffffffffffffff86541661070f89614ee6565b611055868961596b565b90808411611276575080871161124a57505081866111186effffffffffffffffffffffffffffff611097610b736111d69661109160409d614ee6565b90615bba565b60038401826110a9838284541661463a565b166effffffffffffffffffffffffffffff19825416179055816110cf82828c541661463a565b166effffffffffffffffffffffffffffff198a54161789556110f2888a86615376565b16976111136effffffffffffffffffffffffffffff6004850154168a61477e565b61466a565b956111228761588a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff61114d600985019282845416614791565b167fffffffffffffff0000000000000000000000000000000000000000000000000082541617905578ffffffffffffffffffffffffffffffffffffffffffffffffff6111a9600361119d8a61588a565b93019282845416614791565b167fffffffffffffff00000000000000000000000000000000000000000000000000825416179055614cb6565b6111fd85519285845260208401906040809180358452602081013560208501520135910152565b8260808301527f4845ee5c72bde2b62defc8a1ca2f0fc3313b2d9e799997ce4f6776da9773bcbf60a03393a382519182526b033b2e3c9fd0803ce800000080820615159104016020820152f35b602492507f37f3f9b7000000000000000000000000000000000000000000000000000000008252600452fd5b7f04ddd91f000000000000000000000000000000000000000000000000000000008352600452602482fd5b807fe86fa0320000000000000000000000000000000000000000000000000000000060049252fd5b807f2c5211c60000000000000000000000000000000000000000000000000000000060049252fd5b50851515611017565b50346104f45760206003193601126104f4576113146142f3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460ff8160401c16801561147b575b611453577fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000001668010000000000000001177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00556001600160a01b03811615610cd2576113bf906113b2615d27565b6113ba615d27565b6155ad565b7fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054167ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a180f35b6004837ff92ee8a9000000000000000000000000000000000000000000000000000000008152fd5b50600167ffffffffffffffff82161015611344565b50346104f45760406003193601126104f4576001600160a01b0360406114b4614309565b92600435815260026020522091165f526020526040805f2060016effffffffffffffffffffffffffffff825460781c1691015460180b82519182526020820152f35b50346104f457611505366143cf565b92919061151236336147d5565b8254821015611574576001600160a01b0381161561154c57611543611549939461153c83856158f8565b36906146c9565b916151a7565b80f35b6004837fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b6004837fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f45761055460209160406115b3366142dd565b929081526001855220615805565b50346104f457806003193601126104f45760206001600160a01b037ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005416604051908152f35b50346104f457611616366143a5565b61162393929336336147d5565b838352600160205260408320938084526002602052604084206001600160a01b0333165f5260205260405f20908085526002602052604085206001600160a01b0384165f52602052600360405f2061167a88614a5e565b019378ffffffffffffffffffffffffffffffffffffffffffffffffff8554166b033b2e3c9fd0803ce8000000810615156b033b2e3c9fd0803ce800000082040182105f146118af57506b033b2e3c9fd0803ce80000008102906b033b2e3c9fd0803ce80000008204036118ab57600290925b019460ff865460e01c16156112a15782156112c95750611832816040976b033b2e3c9fd0803ce8000000850615156b033b2e3c9fd0803ce800000086040196611738610b738984615848565b98600183016effffffffffffffffffffffffffffff61175a8c8284541661463a565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff61178f8b8284541661463a565b166effffffffffffffffffffffffffffff198254161790556117b08661588a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff6117db60098501928284541661473a565b167fffffffffffffff0000000000000000000000000000000000000000000000000082541617905578ffffffffffffffffffffffffffffffffffffffffffffffffff6111a96118298861588a565b8284541661473a565b7fe97b8576ac531cdc817b933309d0518ca3d26c6b46d490f3ae9fa39426a141ee6001600160a01b0387519416938061188b33958983602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a46effffffffffffffffffffffffffffff8351921682526020820152f35b8580fd5b60029150926116ec565b50346104f45760206003193601126104f457610554604060209260043581526001845220614ee6565b50346104f457806003193601126104f457602060405160018152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff60016040602093600435815282855220015416604051908152f35b50346104f4576105546020916110916040611955366142dd565b939081526001865220614ee6565b50346104f45760406003193601126104f45760043560243567ffffffffffffffff8111611a4857611998903690600401614335565b6119a592919236336147d5565b8354821015611a5b578390828252600160205260408220936119c685614a5e565b6001600160a01b0360068601541691823b15611a5757611a19928492836040518096819582947fa467cc590000000000000000000000000000000000000000000000000000000084528b600485016145a3565b03925af18015611a4c57611a33575b505061154991614cb6565b81611a3d91614524565b611a4857825f611a28565b8280fd5b6040513d84823e3d90fd5b8380fd5b6004847fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f457611a92366143a5565b9092828152600160205260408120908381526002602052604081206001600160a01b0333165f5260205260405f2090611aca83614a5e565b306001600160a01b03851614611cd95785156112c957600282015460ff8160e01c1615610c825760ff8160e81c16611cb15764ffffffffff9060a01c16611b33611b296effffffffffffffffffffffffffffff85541661070f87614ee6565b61071b858761596b565b64ffffffffff8214908115611c4b575b5015611c1f576020610bad8888611bd2828a6001600160a01b0360058c6effffffffffffffffffffffffffffff610bcb868f8385541690611b878280851115614422565b84611b9d610b73611b9789614ee6565b86615b81565b9e8f6003890183611bb18382845416614455565b166effffffffffffffffffffffffffffff1982541617905582845416614455565b604080516effffffffffffffffffffffffffffff85168152602081019390935233927fe2497bc41b1fa7c4ba996f24dc2affdffb2a5571584db6db0eed8fbbf1dc85179181908101610c3e565b602492507f3ad30dd0000000000000000000000000000000000000000000000000000000008252600452fd5b9050611ca9611c6e89611c6860ff895460f01c16600a0a8661477e565b9361466a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff6003870154166b033b2e3c9fd0803ce800000080820615159104019061466a565b11155f611b43565b6004827f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b807fe6c4247b0000000000000000000000000000000000000000000000000000000060049252fd5b50346104f457611d10366143cf565b929190611d1d36336147d5565b8254821015611574578183526003602052611d53604084206001600160a01b038316906001915f520160205260405f2054151590565b15611d6757611543611549939436906146c9565b6004837faa1b05f0000000000000000000000000000000000000000000000000000000008152fd5b50346104f457806003193601126104f457602060405164ffffffffff8152f35b50346104f457806003193601126104f45760209054604051908152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff6040602092600435815260018452205416604051908152f35b50346104f45760406003193601126104f457610554602091600435906001600160a01b036040611e35614309565b9284815260018752818120948152600287522091165f5283526effffffffffffffffffffffffffffff600260405f2001541690615805565b50346104f457806003193601126104f4577ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005460a01c60ff1615611efa575060207f8fb36037000000000000000000000000000000000000000000000000000000005b7fffffffff0000000000000000000000000000000000000000000000000000000060405191168152f35b602090611ed0565b50346104f45760206003193601126104f457610554602091604060043591828152600185522090611f3282614ee6565b916156e9565b50346104f457611f47366143a5565b8284526001602052604084208385526002602052604085206001600160a01b0333165f5260205260405f208486526002602052604086206001600160a01b0384165f5260205260405f2090611f9b83614a5e565b600281015460ff8160e01c168061210f575b156120e75760e81c60ff1615806120d5575b156120ad578415612085576001600160a01b03939261200d86848994612008600261201298015464ffffffffff8160781c169064ffffffffff8214908115612043575b50615538565b61568e565b614cb6565b60405192835216917f0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a060203393a480f35b905061207d612077876effffffffffffffffffffffffffffff61207060ff8d5460f01c16600a0a8761477e565b941661466a565b8961564b565b11155f612002565b6004877f6edcc523000000000000000000000000000000000000000000000000000000008152fd5b6004877f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b5060ff600283015460e81c1615611fbf565b6004887fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b5060ff600284015460e01c16611fad565b50346104f45761212f366142dd565b8183526001602052604083209180845260016020526001600160a01b03600860408620015416928185526002602052604085206001600160a01b0385165f5260205260405f208286526002602052604086206001600160a01b0333165f5260205260405f2061219d83614a5e565b60ff600282015460e01c16156121f2578415612085579161200d8585936121c39561568e565b6040519182527f0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a060203393a480f35b6004877fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b50346104f4576105546020916040612231366142dd565b92908152600185522061564b565b50346104f45760206003193601126104f4576122596142f3565b6001600160a01b037ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00541633036122ce57803b1561229a57611549906155ad565b7fc2f31e5e0000000000000000000000000000000000000000000000000000000082526001600160a01b0316600452602490fd5b6024827f068ca9d800000000000000000000000000000000000000000000000000000000815233600452fd5b50346104f457612309366142dd565b9190808252600160205260408220908083526002602052604083206001600160a01b0333165f5260205260405f2061234083614a5e565b84156126095760020191825460ff8160e01c16156125e15760ff8160e81c166125b9578064ffffffffff6123889260781c169064ffffffffff82149081156125845750615538565b6123a4856effffffffffffffffffffffffffffff83541661466a565b602460206001600160a01b03600585015416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa8015612579578690612541575b612406915082818103911015614677565b612413610b73878461556b565b936effffffffffffffffffffffffffffff85169586156125195750956124e284846effffffffffffffffffffffffffffff6124c561250e9660209c8b8461248260017fb233dd05ed21346e144167b35a6213bcf04768dbdffdc8339e8b027b94b9f3059d019282845416614455565b166effffffffffffffffffffffffffffff19825416179055836124a88d82845416614455565b166effffffffffffffffffffffffffffff19825416179055614ddc565b166effffffffffffffffffffffffffffff19825416178155614cb6565b604051918291339683602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a3604051908152f35b807f6edcc5230000000000000000000000000000000000000000000000000000000060049252fd5b506020813d602011612571575b8161255b60209383614524565b8101031261256d5761240690516123f5565b5f80fd5b3d915061254e565b6040513d88823e3d90fd5b905061207d886111136effffffffffffffffffffffffffffff6125b160ff895460f01c16600a0a8761477e565b94168761564b565b6004857f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b6004857fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004847f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff6003604060209360043581526001855220015416604051908152f35b50346104f45761267e366142dd565b9082548110156115745780835260016020526040832061269d81614a5e565b6126a8833383614d6f565b60246126c6846effffffffffffffffffffffffffffff84541661466a565b9160206001600160a01b03600583015416604051938480927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa80156125795784928791612804575b5061274084610b7383826effffffffffffffffffffffffffffff956127d59903911015614677565b166effffffffffffffffffffffffffffff1982541617815561200d61276486614ddc565b61278760018401916effffffffffffffffffffffffffffff835460781c1661463a565b7fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b6040519182527f566111831db1f090374baff3c3f9fc512084f5a9b8f5b199fb475d9c43a8013f60203393a380f35b9250506020823d602011612835575b8161282060209383614524565b8101031261256d579051839190612740612718565b3d9150612813565b50346104f45760406003193601126104f4576001600160a01b036040612861614309565b92600435815260026020522091165f5260205260206effffffffffffffffffffffffffffff60405f205416604051908152f35b50346104f45761055460209161070f6040611955366142dd565b50346104f45760206003193601126104f45760406020916004358152600383522054604051908152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff60016040602093600435815282855220015460781c16604051908152f35b50346104f45760206003193601126104f45761055461297f60406020936004358152600185522061297a6129756effffffffffffffffffffffffffffff600384015460781c1661296f600285015460180b94614ee6565b9061477e565b615c9d565b615520565b615cf2565b50346104f45760406003193601126104f457604090600435906001600160a01b03836129ae614309565b92848152600160205281812094815260026020522091165f526020526129ef825f206107156effffffffffffffffffffffffffffff82541661070f85614ee6565b82519182526b033b2e3c9fd0803ce800000080820615159104016020820152f35b50346104f457612a1f366142dd565b9082526001602052612a3360408320614ee6565b91825f1904821115831517156104f457506b033b2e3c9fd0803ce80000006020926040519202048152f35b50346104f45760206003193601126104f45760408091600435815260016020522060026effffffffffffffffffffffffffffff600383015460781c1691015460180b82519182526020820152f35b50346104f45760806003193601126104f45760043560607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112612deb57808252600160205260408220908083526002602052604083206001600160a01b0333165f5260205260405f2091612b2181614a5e565b600283019260ff845460e01c16156125e1576064359384612dc35762ffffff90612ce36effffffffffffffffffffffffffffff600486015416612c22600387016effffffffffffffffffffffffffffff815460781c1690612b8e602460028b0193845460180b9087615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000084929454169078ffffffffffffffffffffffffffffffffffffffffffffffffff16179055907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b612c4e60246effffffffffffffffffffffffffffff875460781c16926001880193845460180b91615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000083929354169078ffffffffffffffffffffffffffffffffffffffffffffffffff1617905584907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b5460c81c1662ffffff8114918215612d6e575b505015612d465781612d0791614cb6565b604051916024358352604435602084015260408301527f3fa96ecf17429fddfbb919a64196f4e43f71b57f0c5c38c49a21c8e1e763d18c60603393a380f35b6004847fa664e075000000000000000000000000000000000000000000000000000000008152fd5b5491506effffffffffffffffffffffffffffff82169080155f198290048311151715612dbf576effffffffffffffffffffffffffffff910261271080820615159104019160781c1611155f80612cf6565b8680fd5b6004867fa664e075000000000000000000000000000000000000000000000000000000008152fd5b5080fd5b50346104f457806003193601126104f457602060405162ffffff8152f35b50346104f457612e1c36614363565b91808452600160205260408420938181526002602052604081206001600160a01b0333165f5260205260405f2092612e5386614a5e565b6040850135811580159061317c575b1561315457600285015460ff8160e01c161561312c5760e81c60ff1661310457612ea16effffffffffffffffffffffffffffff86541661070f89614ee6565b612eab868961596b565b908084116130d957508082116130ae5750612f4a86612ed5610b73612ecf8b614ee6565b86615bba565b9660038a016effffffffffffffffffffffffffffff612ef78a8284541661463a565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff612f2c898284541661463a565b166effffffffffffffffffffffffffffff1982541617815589615376565b6b033b2e3c9fd0803ce8000000808206151591040191612f8083611113846effffffffffffffffffffffffffffff8b541661466a565b90602460206001600160a01b0360058b015416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa9182156130a2579161306f575b506020976effffffffffffffffffffffffffffff6124c584610b7385828b97612ffe9903911015614677565b6130376effffffffffffffffffffffffffffff604051951695868652878601906040809180358452602081013560208501520135910152565b608084015260a08301527f119e7f996dc987b3ae79eb3735f1620c4292f6a7761a1e0f834c445f7798b91260c03393a3604051908152f35b90506020813d60201161309a575b8161308a60209383614524565b8101031261256d57516020612fd2565b3d915061307d565b604051903d90823e3d90fd5b7fdc868246000000000000000000000000000000000000000000000000000000008452600452602483fd5b7f4bd9e476000000000000000000000000000000000000000000000000000000008552600452602484fd5b6004837f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b6004847fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004837f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b50801515612e62565b50346104f45760c06003193601126104f45760043560807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112612deb5760a43567ffffffffffffffff8111611a48576131e4903690600401614335565b6131ee36336147d5565b8354831015611a5b578284526001602052604084209161320d83614a5e565b61271061ffff61321b6145bd565b1611613629576001600160a01b036132316145ce565b16151580613610575b156135e8576001600160a01b0361324f6145fa565b16158015906135c8575b156135a05784906132be61326b6145bd565b60038601907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fffff00000000000000000000000000000000000000000000000000000000000083549260f01b169116179055565b6132c66145fa565b6001600160a01b036007860191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055600884016001600160a01b038154166001600160a01b0361331a6145ce565b1681036134d2575b505061332c6145e4565b60068501805490916001600160a01b03908116911614613499576001600160a01b036133566145e4565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556001600160a01b0361338e6145e4565b1692833b15611a48576133d4938392836040518097819582947fa467cc590000000000000000000000000000000000000000000000000000000084528c600485016145a3565b03925af191821561348c578492613473575b50506133f191614cb6565b6040516001600160a01b03613404614309565b16815260443561ffff8116809103611a575760208201526001600160a01b0361342b61431f565b1660408201526084356001600160a01b038116809103611a57578160809160607fea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b974940152a280f35b8192509061348091614524565b611a485781835f6133e6565b50604051903d90823e3d90fd5b5050506134aa57816133f191614cb6565b6004837f38ad7932000000000000000000000000000000000000000000000000000000008152fd5b613550906134e08888614b1f565b506134e9614610565b908886526002602052604086206001600160a01b0382165f5260205260ff600260405f20015460e01c16151560608301528886526002602052604086206001600160a01b0382165f5260205260ff600260405f20015460e81c1615156080830152886151a7565b6001600160a01b036135606145ce565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556135996135936145ce565b8661507e565b5f80613322565b6004857f91eaafa1000000000000000000000000000000000000000000000000000000008152fd5b506effffffffffffffffffffffffffffff600184015460781c1615613259565b6004857fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b506001600160a01b036136216145e4565b16151561323a565b6004857fe15e46cb000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f4576105546040602092600435815260018452206150cc565b50346104f4576105546020916136946040611955366142dd565b90615b81565b50346104f45760406003193601126104f4576001600160a01b0360406136be614309565b92600435815260026020522091165f52602052602078ffffffffffffffffffffffffffffffffffffffffffffffffff600360405f20015416604051908152f35b503461256d5760a060031936011261256d576137186142f3565b60243560ff811680910361256d57604435926001600160a01b038416840361256d5761374261431f565b9260843567ffffffffffffffff811161256d57613763903690600401614335565b61377096919636336147d5565b6001600160a01b0383169283151580613fec575b80613fda575b15613fb257856006111580613fa7575b15613f7f576137d5906001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b613f57575f54955f198714613f2a576001600160a01b0390600188015f55845f5260046020528760405f20551696873b1561256d57613845915f9160405193849283927fa467cc590000000000000000000000000000000000000000000000000000000084528b600485016145a3565b0381838b5af18015613f1f57613f0a575b50604051957ff5fe86ee00000000000000000000000000000000000000000000000000000000875285600488015283602488015283604488015283606488015283608488015260208760a481845afa928315613eff5786978594613ec4575b5090869291836b033b2e3c9fd0803ce800000097426138d390614fe4565b6138dc8861502a565b90604051916138ea83614485565b8a83528a60208401528360408401528a60608401528a60808401528a60a08401528a60c08401528a60e08401528a6101008401528b6101208401526bffffffffffffffffffffffff1661014083015264ffffffffff1661016082015283610180820152846101a0820152886101c08201526001600160a01b0386166101e0820152886102008201528289526001602052604089209080516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1682546effffffffffffffffffffffffffffff191617825560208101516effffffffffffffffffffffffffffff16613a249083907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b604081015182549060f01b7eff00000000000000000000000000000000000000000000000000000000000016907fff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff161782556001820160608201516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1681546effffffffffffffffffffffffffffff191617815560808201516effffffffffffffffffffffffffffff16613b2191907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b60a081015160180b600283019081547fffffffffffffff00000000000000000000000000000000000000000000000000169078ffffffffffffffffffffffffffffffffffffffffffffffffff161790556003820160c08201516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1681546effffffffffffffffffffffffffffff191617815560e08201516effffffffffffffffffffffffffffff16613c1d9082907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b61010082015181547fffff00000000000000000000000000000000000000000000000000000000000060f09290921b919091167dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90911617905561012081015161014082015161016083015160d81b7fffffffffff000000000000000000000000000000000000000000000000000000166effffffffffffffffffffffffffffff90921660789190911b7affffffffffffffffffffffff00000000000000000000000000000016171760048301556101808101516005830180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b03938416179091556101a083015160068501805483169184169190911790556101c083015160078501805483169184169190911790556101e083015160088501805490921692169190911790556102000151600990910180547fffffffffffffff000000000000000000000000000000000000000000000000001678ffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055613dc8858361507e565b60405190815260207f92fb402b777f3710166f15b30098f41042b439850df67d0195196d125458e7b391a360405191613e00836144cf565b6001600160a01b031682528460208301526040820152836060820152604051613e6081928291909160606001600160a01b0381608084019582815116855261ffff6020820151166020860152826040820151166040860152015116910152565b037fea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b97491a26040519283526020830152604082015260607fa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f1488335091a2604051908152602090f35b9291965092506020823d602011613ef7575b81613ee360209383614524565b8101031261256d57905186959092866138b5565b3d9150613ed6565b6040513d86823e3d90fd5b613f179193505f90614524565b5f915f613856565b6040513d5f823e3d90fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b7f603c058b000000000000000000000000000000000000000000000000000000005f5260045ffd5b7fe2364765000000000000000000000000000000000000000000000000000000005f5260045ffd5b50601286111561379a565b7fe6c4247b000000000000000000000000000000000000000000000000000000005f5260045ffd5b506001600160a01b038716151561378a565b506001600160a01b0383161515613784565b3461256d57604060031936011261256d57602061404761401c614309565b6004355f52600383526001600160a01b0360405f209116906001915f520160205260405f2054151590565b6040519015158152f35b3461256d57602060031936011261256d576004355f5260016020526040805f206140a261407d82614ee6565b61409c816effffffffffffffffffffffffffffff600386015416615b17565b92614f97565b82519182526020820152f35b3461256d5760206001600160a01b036140d96140c9366142dd565b905f526003845260405f20615b3f565b90549060031b1c16604051908152f35b3461256d57602060031936011261256d5760206140476141076142f3565b6001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b3461256d57602060031936011261256d576004355f526001602052602061055460405f2061069c61407d82614ee6565b3461256d57614177366142dd565b905f5481101561426357805f5260016020526142358260405f2061419a81614a5e565b6141a5823383614d6f565b6effffffffffffffffffffffffffffff6141d083828454166141ca8180841115614422565b03614ddc565b166effffffffffffffffffffffffffffff198254161781556142176141f483614ddc565b61278760018401916effffffffffffffffffffffffffffff835460781c16614455565b6142218482614cb6565b6001600160a01b0360053392015416614e36565b6040519182527f69bb3893073d7a893f3933f3871309fc25acfc72e365b71f554d439a85b20e8b60203393a3005b7fb77e1e0f000000000000000000000000000000000000000000000000000000005f5260045ffd5b3461256d57602060031936011261256d576004356142a936336147d5565b5f5481101561426357806020915f526001825261055460405f20916142cd83614a5e565b6142d78184614b1f565b92614cb6565b600319604091011261256d576004359060243590565b600435906001600160a01b038216820361256d57565b602435906001600160a01b038216820361256d57565b606435906001600160a01b038216820361256d57565b9181601f8401121561256d5782359167ffffffffffffffff831161256d576020838186019501011161256d57565b60a060031982011261256d576004359160607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc60243593011261256d57604490565b600319606091011261256d5760043590602435906044356001600160a01b038116810361256d5790565b60e060031982011261256d57600435916024356001600160a01b038116810361256d577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc60a09193011261256d57604490565b1561442a5750565b7fc730333f000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b906effffffffffffffffffffffffffffff809116911601906effffffffffffffffffffffffffffff8211613f2a57565b610220810190811067ffffffffffffffff8211176144a257604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6080810190811067ffffffffffffffff8211176144a257604052565b60a0810190811067ffffffffffffffff8211176144a257604052565b610140810190811067ffffffffffffffff8211176144a257604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176144a257604052565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe093818652868601375f8582860101520116010190565b6040906145ba949281528160208201520191614565565b90565b60443561ffff8116810361256d5790565b6024356001600160a01b038116810361256d5790565b6064356001600160a01b038116810361256d5790565b6084356001600160a01b038116810361256d5790565b6040519061461d826144eb565b5f6080838281528260208201528260408201528260608201520152565b906effffffffffffffffffffffffffffff809116911603906effffffffffffffffffffffffffffff8211613f2a57565b91908201809211613f2a57565b1561467f5750565b7f80561eeb000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b359064ffffffffff8216820361256d57565b3590811515820361256d57565b91908260a091031261256d576040516146e1816144eb565b80926146ec816146aa565b82526146fa602082016146aa565b602083015260408101359062ffffff8216820361256d576080614735918193604086015261472a606082016146bc565b6060860152016146bc565b910152565b9078ffffffffffffffffffffffffffffffffffffffffffffffffff8091169116039078ffffffffffffffffffffffffffffffffffffffffffffffffff8211613f2a57565b81810292918115918404141715613f2a57565b9078ffffffffffffffffffffffffffffffffffffffffffffffffff8091169116019078ffffffffffffffffffffffffffffffffffffffffffffffffff8211613f2a57565b7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0054916001600160a01b038316928160041161256d575f5f9060405f8151966001600160a01b0360208901917fb700961300000000000000000000000000000000000000000000000000000000835216978860248201523060448201527fffffffff0000000000000000000000000000000000000000000000000000000083351660648201526064815261488a608482614524565b828052826020525190895afa614a4b575b156148a8575b5050505050565b63ffffffff1615614a1f577fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000177ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0055823b1561256d576020925f92836040518096819582947f94c7d7ee0000000000000000000000000000000000000000000000000000000084526004840152604060248401527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6044850192808452808786860137868582860101520116010103925af18015613f1f57614a0f575b507fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0054167ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00555f808080806148a1565b5f614a1991614524565b5f61499e565b827f068ca9d8000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b50505f516020518060201c15029061489b565b60048101805460d81c4214614b1b576effffffffffffffffffffffffffffff614aad83610b73614a90614b1996614ee6565b91612787614aa1610b7385846159a0565b86835460781c16614455565b166effffffffffffffffffffffffffffff19825416178155614ace42614fe4565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff7fffffffffff00000000000000000000000000000000000000000000000000000083549260d81b169116179055565b565b5050565b6effffffffffffffffffffffffffffff815460781c1691614b43610b73848461556b565b916effffffffffffffffffffffffffffff8316938415614cad576001600160a01b0360088301541693835f52600260205260405f206001600160a01b0386165f52602052600260405f20019260ff845460e01c1615614c85577fafd21228e21de4a3f779e1cc3617e12672c3da091dcf3812a931036aa0bf633c93600182016effffffffffffffffffffffffffffff614bdf8582845416614455565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff614c148482845416614455565b166effffffffffffffffffffffffffffff198254161790557fffff000000000000000000000000000000ffffffffffffffffffffffffffffff8154169055614c7f60405192839283602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a390565b7fe86fa032000000000000000000000000000000000000000000000000000000005f5260045ffd5b50505050505f90565b60607fa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f1488335091600481016effffffffffffffffffffffffffffff8082541692614d56614d018589846156e9565b93614d0b8561502a565b7fffffffffff000000000000000000000000ffffffffffffffffffffffffffffff7affffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b5460781c169060405192835260208301526040820152a2565b6001600160a01b0360078192015416911603614db45715614d8c57565b7f2c5211c6000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f3c6b7746000000000000000000000000000000000000000000000000000000005f5260045ffd5b6effffffffffffffffffffffffffffff8111614e06576effffffffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52607860045260245260445ffd5b916001600160a01b03604051927fa9059cbb000000000000000000000000000000000000000000000000000000005f521660045260245260205f60448180865af19060015f5114821615614ec5575b60405215614e905750565b6001600160a01b03907f5274afe7000000000000000000000000000000000000000000000000000000005f521660045260245ffd5b906001811516614edd57823b15153d15161690614e85565b503d5f823e3d90fd5b60048101546effffffffffffffffffffffffffffff8116908060d81c92428414908115614f54575b50614f4e5742831161256d576301e133806b033b2e3c9fd0803ce8000000916bffffffffffffffffffffffff6145ba9542039160781c1602040190615b17565b50905090565b600301546effffffffffffffffffffffffffffff811615915081614f7a575b505f614f0e565b6effffffffffffffffffffffffffffff915060781c16155f614f73565b61297f9061297a612975614fcc9460026effffffffffffffffffffffffffffff600386015460781c1694015460180b9361477e565b6b033b2e3c9fd0803ce8000000808206151591040190565b64ffffffffff8111614ffa5764ffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52602860045260245260445ffd5b6bffffffffffffffffffffffff811161504e576bffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52606060045260245260445ffd5b614b199161508c81836158f8565b60405191615099836144eb565b64ffffffffff83525f60208401525f6040840152600160608401525f60808401526151a7565b91908203918211613f2a57565b6145ba906151a16150dc82614ee6565b61519b615147846111136003820154611113866effffffffffffffffffffffffffffff61514061297f78ffffffffffffffffffffffffffffffffffffffffffffffffff600960028a015460180b990154169761297a61297586868a60781c1661477e565b931661477e565b6effffffffffffffffffffffffffffff615190865492826151738160018b015460781c16828716614455565b916b033b2e3c9fd0803ce80000008082061515910401911661466a565b9160781c16906150bf565b926159a0565b906150bf565b906001600160a01b037f90984699e37aaae5f79c2f33e480f273509662005a8ff82a17b325eb7072454e91835f52600260205260405f208282165f5260205260405f2060028651910190867cff0000000000000000000000000000000000000000000000000000000083547fffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff78ffffffffff0000000000000000000000000000000000000000602085015160a01b167fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff7bffffff00000000000000000000000000000000000000000000000000604087015160c81b16937fffffffff00000000000000000000000000ffffffffffffffffffffffffffffff73ffffffffff0000000000000000000000000000007dff0000000000000000000000000000000000000000000000000000000000608060608b0151151560e01b9a0151151560e81b169960781b169116171617161791161717905561537160405192839216958291909160808060a083019464ffffffffff815116845264ffffffffff602082015116602085015262ffffff604082015116604085015260608101511515606085015201511515910152565b0390a3565b6153ee61548392936153c76effffffffffffffffffffffffffffff6004850154169360038101612b8e8460026effffffffffffffffffffffffffffff845460781c16940193845460180b9089615beb565b6effffffffffffffffffffffffffffff855460781c16926001860193845460180b91615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000083929354169078ffffffffffffffffffffffffffffffffffffffffffffffffff1617905582907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b62ffffff600282015460c81c1662ffffff81149182156154cf575b5050156154a757565b7fa664e075000000000000000000000000000000000000000000000000000000005f5260045ffd5b5491506effffffffffffffffffffffffffffff82169080155f19829004831115171561256d576effffffffffffffffffffffffffffff910261271080820615159104019160781c1611155f8061549e565b81810392915f138015828513169184121617613f2a57565b156155405750565b7fde3fc6ae000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b6effffffffffffffffffffffffffffff6001615586836150cc565b92015416620f42408101809111613f2a57620f42408201809211613f2a576145ba92615e75565b60206001600160a01b037f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9216807fffffffffffffffffffffffff00000000000000000000000000000000000000007ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005416177ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0055604051908152a1565b6effffffffffffffffffffffffffffff6001615666836150cc565b9201541690620f42408101809111613f2a57620f42408201809211613f2a576145ba92615dc3565b60026156c36effffffffffffffffffffffffffffff93946156cf93856124a8856156b785614ddc565b9301928284541661463a565b93019282845416614455565b166effffffffffffffffffffffffffffff19825416179055565b9160a46020926001600160a01b0360068601541661572f6effffffffffffffffffffffffffffff875416946effffffffffffffffffffffffffffff600389015416615b17565b956effffffffffffffffffffffffffffff600178ffffffffffffffffffffffffffffffffffffffffffffffffff60098401541692015460781c169060405197889687957ff5fe86ee0000000000000000000000000000000000000000000000000000000087526004870152602486015260448501526b033b2e3c9fd0803ce80000008082061515910401606484015260848301525afa908115613f1f575f916157d6575090565b90506020813d6020116157fd575b816157f160209383614524565b8101031261256d575190565b3d91506157e4565b6effffffffffffffffffffffffffffff6001615820836150cc565b9201541690620f42408101809111613f2a57620f42408201809211613f2a576145ba92615e75565b6effffffffffffffffffffffffffffff6001615863836150cc565b92015416620f42408101809111613f2a57620f42408201809211613f2a576145ba92615dc3565b78ffffffffffffffffffffffffffffffffffffffffffffffffff81116158c85778ffffffffffffffffffffffffffffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f5260c860045260245260445ffd5b805f5260036020526159186001600160a01b0360405f2093168093615e10565b15615943577f47acdb603dbca71028fbd9b37192e17a62e64fa160e2e607eef3853b792ea5ab5f80a3565b7f04c94583000000000000000000000000000000000000000000000000000000005f5260045ffd5b61297f9061297a6129756145ba9461296f60016effffffffffffffffffffffffffffff835460781c1692015460180b94614ee6565b906effffffffffffffffffffffffffffff60048301541690808214615b10576003830154928360f01c938415614cad5783916effffffffffffffffffffffffffffff82169160781c6effffffffffffffffffffffffffffff16600282015460180b916009015478ffffffffffffffffffffffffffffffffffffffffffffffffff168583615a2e83988561477e565b615a3790615c9d565b90615a4191615520565b615a4a90615cf2565b90615a55908661477e565b90615a5f9161466a565b90615a699161466a565b95615a739161477e565b615a7c90615c9d565b90615a8691615520565b615a8f90615cf2565b91615a999161477e565b90615aa39161466a565b90615aad9161466a565b6b033b2e3c9fd0803ce800000081061515906b033b2e3c9fd0803ce8000000900401906b033b2e3c9fd0803ce800000081061515906b033b2e3c9fd0803ce800000090040190615afc916150bf565b90805f1904821161256d5761271091020490565b5050505f90565b815f19048111158215171561256d57026b033b2e3c9fd0803ce8000000808206151591040190565b8054821015615b54575f5260205f2001905f90565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b744f3a68dbc8f03f243baf513267aa9a3ee524f8e028811182151761256d576b033b2e3c9fd0803ce80000000290808206151591040190565b744f3a68dbc8f03f243baf513267aa9a3ee524f8e028811182151761256d576b033b2e3c9fd0803ce8000000020490565b93929193615c0f615c0661297f8761297a612975868861477e565b92843590615d7e565b926020810135955f8782019788129112908015821691151617613f2a576040615c4561297f8861297a612975615c4e978a61477e565b9101359061466a565b036154a757615c5c90614ddc565b8260180b92808403615c6d57509190565b7f327269a7000000000000000000000000000000000000000000000000000000005f5260c860045260245260445ffd5b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8111615cc75790565b7f24775e06000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b5f8112615cfc5790565b7fa8ce4432000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c1615615d5657565b7fd7e6bcf8000000000000000000000000000000000000000000000000000000005f5260045ffd5b5f821215615db9577f80000000000000000000000000000000000000000000000000000000000000008214613f2a576145ba915f03906150bf565b906145ba9161466a565b91615dcf818385615e75565b918115615de3576145ba930915159061466a565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f828152600182016020526040902054615e6f57805490680100000000000000008210156144a257615e49826001809401835582615b3f565b81549060031b905f1986831b921b19161790558054925f520160205260405f2055600190565b50505f90565b90915f198383099280830292838086109503948086039514615f065784831115615eee5790829109815f0382168092046002816003021880820260020302808202600203028082026002030280820260020302808202600203028091026002030293600183805f03040190848311900302920304170290565b82634e487b715f52156003026011186020526024601cfd5b505080925015615de357049056fea164736f6c634300081c000af0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00","sourceMap":"201:550:21:-:0;;;;;;;-1:-1:-1;;;;;;;;;;;201:550:21;;;;;;7534:66:2;;-1:-1:-1;;;;;;;;;;;201:550:21;;7609:34:2;7605:130;;-1:-1:-1;201:550:21;;;;;;;;;7605:130:2;-1:-1:-1;;;;;;201:550:21;-1:-1:-1;;;;;201:550:21;;;-1:-1:-1;;;;;;;;;;;201:550:21;;;7699:29:2;;201:550:21;;7699:29:2;7605:130;;;;7534:66;7570:23;;;-1:-1:-1;7570:23:2;;-1:-1:-1;7570:23:2;201:550:21;;;","linkReferences":{},"cborAuxdata":{},"transformations":null,"transformationValues":null},"runtimeBytecode":{"onchainBytecode":"0x60806040526004361015610011575f80fd5b5f5f3560e01c8063033a06951461428b578063066dd830146141695780630752c44c146141395780630c90e7fe146140e9578063132a8bea146140ae578063152ee0d3146140515780631901057d14613ffe5780631e83287e146136fe57806321a3bebc1461369a578063228e731f1461367a57806324ba667f1461365157806324e4c1af146131855780632a5b380314612e0d5780633369706614612def578063341f7dcf14612aac5780633992163714612a5e5780633a445c4e14612a105780633c9a9ee514612984578063403d77781461291857806341a009eb146128d857806358a54078146128ae5780635e39616d146128945780635ff1c4821461283d5780637333a3b41461266f5780637658c64414612631578063771602f7146122fa5780637a9e5e4b1461223f57806380c099f41461221a57806383e4bcb71461212057806387a7dc7714611f385780638accc4a314611f025780638fb3603714611e6d5780639c7ee64f14611e075780639f9b199014611dcc578063a0aead4d14611daf578063a0b3d9d814611d8f578063a2763d2914611d01578063a436458d14611a83578063a467cc5914611963578063aab9eb071461193b578063b0745f2b146118fe578063b33454e5146118e2578063b5f460c8146118b9578063be10528014611607578063bf7e214f146115c1578063c04d164e1461159c578063c25d82fe146114f6578063c435e92814611490578063c4d66de8146112fa578063cc0e1c1c14610fc0578063ceb233b314610f9b578063d3c6a11d14610f4a578063d5d15a1114610f02578063d6abe64214610e66578063de079b5714610e23578063de31ea9f14610d54578063e5c9274514610cfa578063e840427d14610aaf578063eac8f5b814610736578063efdba7c0146106a2578063f51f1a351461064f578063f701f06e1461055c578063f8447aaf1461052f578063f899860514610513578063f91ebd52146104f75763fce56a0b146102f0575f80fd5b346104f45760406003193601126104f457610309614309565b908060405161031781614507565b8181528160208201528160408201528160608201528160808201528160a08201528160c08201528160e08201528161010082015261012001526004358152600260205260409020906001600160a01b03165f5260205260405f2060405161037d81614507565b81546effffffffffffffffffffffffffffff811692838352602083019160781c6effffffffffffffffffffffffffffff168252600181015460180b9160408401928352600282015492606085016effffffffffffffffffffffffffffff8516815260808601908560781c64ffffffffff16825260a08701928660a01c64ffffffffff16845260c08801948760c81c62ffffff16865260e08901968860e01c60ff16151588526101008a019860e81c60ff16151589526003015478ffffffffffffffffffffffffffffffffffffffffffffffffff169861012001988952604051998a52516effffffffffffffffffffffffffffff1660208a01525160180b6040890152516effffffffffffffffffffffffffffff1660608801525164ffffffffff1660808701525164ffffffffff1660a08601525162ffffff1660c085015251151560e08401525115156101008301525178ffffffffffffffffffffffffffffffffffffffffffffffffff1661012082015261014090f35b80fd5b50346104f457806003193601126104f457602060405160068152f35b50346104f457806003193601126104f457602060405160128152f35b50346104f4576105546020916040610546366142dd565b929081526001855220615848565b604051908152f35b50346104f45760406003193601126104f4576001600160a01b036040610580614309565b92610589614610565b50600435815260026020522091165f5260205261064b600260405f20015460ff604051916105b6836144eb565b64ffffffffff8160781c16835264ffffffffff8160a01c16602084015262ffffff8160c81c166040840152818160e01c161515606084015260e81c16151560808201526040519182918291909160808060a083019464ffffffffff815116845264ffffffffff602082015116602085015262ffffff604082015116604085015260608101511515606085015201511515910152565b0390f35b50346104f45760206003193601126104f45761055460406020926004358152600184522061069c6effffffffffffffffffffffffffffff825460781c169161069681614ee6565b906159a0565b9061466a565b50346104f45760406003193601126104f457610554602091600435906001600160a01b0360406106d0614309565b9284815260018752818120948152600287522091165f52835261071b60405f206107156effffffffffffffffffffffffffffff82541661070f85614ee6565b90615b17565b9261596b565b6b033b2e3c9fd0803ce800000080820615159104019061466a565b50346104f45760206003193601126104f45760408161022092610200835161075d81614485565b82815282602082015282858201528260608201528260808201528260a08201528260c08201528260e08201528261010082015282610120820152826101408201528261016082015282610180820152826101a0820152826101c0820152826101e08201520152600435815260016020522078ffffffffffffffffffffffffffffffffffffffffffffffffff6102006040516107f781614485565b8260098554956effffffffffffffffffffffffffffff871684526effffffffffffffffffffffffffffff8760781c16602085015260ff8760f01c1660408501526effffffffffffffffffffffffffffff6001820154818116606087015260781c166080850152600281015460180b60a085015260038101546effffffffffffffffffffffffffffff811660c08601526effffffffffffffffffffffffffffff8160781c1660e086015260f01c61010085015260048101546effffffffffffffffffffffffffffff81166101208601526bffffffffffffffffffffffff8160781c1661014086015260d81c6101608501526001600160a01b036005820154166101808501526001600160a01b036006820154166101a08501526001600160a01b036007820154166101c08501526001600160a01b036008820154166101e0850152015416828201526effffffffffffffffffffffffffffff604051941684526effffffffffffffffffffffffffffff602082015116602085015260ff60408201511660408501526effffffffffffffffffffffffffffff60608201511660608501526effffffffffffffffffffffffffffff608082015116608085015260a081015160180b60a08501526effffffffffffffffffffffffffffff60c08201511660c08501526effffffffffffffffffffffffffffff60e08201511660e085015261ffff610100820151166101008501526effffffffffffffffffffffffffffff610120820151166101208501526bffffffffffffffffffffffff6101408201511661014085015264ffffffffff610160820151166101608501526001600160a01b03610180820151166101808501526001600160a01b036101a0820151166101a08501526001600160a01b036101c0820151166101c08501526001600160a01b036101e0820151166101e0850152015116610200820152f35b50346104f457610abe366143a5565b9092828152600160205260408120908381526002602052604081206001600160a01b0333165f5260205260405f20610af583614a5e565b306001600160a01b03851614610cd2578515610caa5760020190815460ff8160e01c1615610c825760e81c60ff16610c5a576020610bad8787610bf582896001600160a01b0360058b6effffffffffffffffffffffffffffff610bcb868e8385541690610b658280851115614422565b84610b78610b738589615848565b614ddc565b9e8f6001890183610b8c838284541661463a565b166effffffffffffffffffffffffffffff198254161790558284541661463a565b166effffffffffffffffffffffffffffff1982541617905503614ddc565b166effffffffffffffffffffffffffffff19825416178155610bed8782614cb6565b015416614e36565b604080516effffffffffffffffffffffffffffff85168152602081019390935233927f535be2ff85ab4c5d0991e10dc057a4951ea2bac426ffb036eded23036a3942b291819081015b0390a36effffffffffffffffffffffffffffff60405191168152f35b807f9db9b3550000000000000000000000000000000000000000000000000000000060049252fd5b6004827fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004827f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b6004827fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760406003193601126104f4576001600160a01b036040610d1e614309565b92600435815260026020522091165f5260205260206effffffffffffffffffffffffffffff600260405f20015416604051908152f35b50346104f45760206003193601126104f45760408161064b9260608351610d7a816144cf565b8281528260208201528285820152015260043581526001602052206001600160a01b0360088201541690600381015460f01c906001600160a01b03600781600684015416920154169160405193610dd0856144cf565b84526020840152604083015260608201526040519182918291909160606001600160a01b0381608084019582815116855261ffff6020820151166020860152826040820151166040860152015116910152565b50346104f45760206003193601126104f45760408091600435815260016020522060ff6001600160a01b03600583015416915460f01c1682519182526020820152f35b50346104f45760206003193601126104f457610e806142f3565b610eb6816001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b15610eda576020916001600160a01b03604092168152600483522054604051908152f35b6004827fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f45778ffffffffffffffffffffffffffffffffffffffffffffffffff6009604060209360043581526001855220015416604051908152f35b50346104f45760406003193601126104f457610554602091600435906001600160a01b036040610f78614309565b9284815260018752818120948152600287522091165f52835260405f209061596b565b50346104f4576105546020916040610fb2366142dd565b92908152600185522061556b565b50346104f457610fcf36614363565b8284939452600160205260408320938084526002602052604084206001600160a01b0333165f5260205260405f209261100786614a5e565b60408301359481158015906112f1575b156112c95760ff600286015460e01c16156112a15761104b6effffffffffffffffffffffffffffff86541661070f89614ee6565b611055868961596b565b90808411611276575080871161124a57505081866111186effffffffffffffffffffffffffffff611097610b736111d69661109160409d614ee6565b90615bba565b60038401826110a9838284541661463a565b166effffffffffffffffffffffffffffff19825416179055816110cf82828c541661463a565b166effffffffffffffffffffffffffffff198a54161789556110f2888a86615376565b16976111136effffffffffffffffffffffffffffff6004850154168a61477e565b61466a565b956111228761588a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff61114d600985019282845416614791565b167fffffffffffffff0000000000000000000000000000000000000000000000000082541617905578ffffffffffffffffffffffffffffffffffffffffffffffffff6111a9600361119d8a61588a565b93019282845416614791565b167fffffffffffffff00000000000000000000000000000000000000000000000000825416179055614cb6565b6111fd85519285845260208401906040809180358452602081013560208501520135910152565b8260808301527f4845ee5c72bde2b62defc8a1ca2f0fc3313b2d9e799997ce4f6776da9773bcbf60a03393a382519182526b033b2e3c9fd0803ce800000080820615159104016020820152f35b602492507f37f3f9b7000000000000000000000000000000000000000000000000000000008252600452fd5b7f04ddd91f000000000000000000000000000000000000000000000000000000008352600452602482fd5b807fe86fa0320000000000000000000000000000000000000000000000000000000060049252fd5b807f2c5211c60000000000000000000000000000000000000000000000000000000060049252fd5b50851515611017565b50346104f45760206003193601126104f4576113146142f3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460ff8160401c16801561147b575b611453577fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000001668010000000000000001177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00556001600160a01b03811615610cd2576113bf906113b2615d27565b6113ba615d27565b6155ad565b7fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054167ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a180f35b6004837ff92ee8a9000000000000000000000000000000000000000000000000000000008152fd5b50600167ffffffffffffffff82161015611344565b50346104f45760406003193601126104f4576001600160a01b0360406114b4614309565b92600435815260026020522091165f526020526040805f2060016effffffffffffffffffffffffffffff825460781c1691015460180b82519182526020820152f35b50346104f457611505366143cf565b92919061151236336147d5565b8254821015611574576001600160a01b0381161561154c57611543611549939461153c83856158f8565b36906146c9565b916151a7565b80f35b6004837fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b6004837fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f45761055460209160406115b3366142dd565b929081526001855220615805565b50346104f457806003193601126104f45760206001600160a01b037ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005416604051908152f35b50346104f457611616366143a5565b61162393929336336147d5565b838352600160205260408320938084526002602052604084206001600160a01b0333165f5260205260405f20908085526002602052604085206001600160a01b0384165f52602052600360405f2061167a88614a5e565b019378ffffffffffffffffffffffffffffffffffffffffffffffffff8554166b033b2e3c9fd0803ce8000000810615156b033b2e3c9fd0803ce800000082040182105f146118af57506b033b2e3c9fd0803ce80000008102906b033b2e3c9fd0803ce80000008204036118ab57600290925b019460ff865460e01c16156112a15782156112c95750611832816040976b033b2e3c9fd0803ce8000000850615156b033b2e3c9fd0803ce800000086040196611738610b738984615848565b98600183016effffffffffffffffffffffffffffff61175a8c8284541661463a565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff61178f8b8284541661463a565b166effffffffffffffffffffffffffffff198254161790556117b08661588a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff6117db60098501928284541661473a565b167fffffffffffffff0000000000000000000000000000000000000000000000000082541617905578ffffffffffffffffffffffffffffffffffffffffffffffffff6111a96118298861588a565b8284541661473a565b7fe97b8576ac531cdc817b933309d0518ca3d26c6b46d490f3ae9fa39426a141ee6001600160a01b0387519416938061188b33958983602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a46effffffffffffffffffffffffffffff8351921682526020820152f35b8580fd5b60029150926116ec565b50346104f45760206003193601126104f457610554604060209260043581526001845220614ee6565b50346104f457806003193601126104f457602060405160018152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff60016040602093600435815282855220015416604051908152f35b50346104f4576105546020916110916040611955366142dd565b939081526001865220614ee6565b50346104f45760406003193601126104f45760043560243567ffffffffffffffff8111611a4857611998903690600401614335565b6119a592919236336147d5565b8354821015611a5b578390828252600160205260408220936119c685614a5e565b6001600160a01b0360068601541691823b15611a5757611a19928492836040518096819582947fa467cc590000000000000000000000000000000000000000000000000000000084528b600485016145a3565b03925af18015611a4c57611a33575b505061154991614cb6565b81611a3d91614524565b611a4857825f611a28565b8280fd5b6040513d84823e3d90fd5b8380fd5b6004847fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f457611a92366143a5565b9092828152600160205260408120908381526002602052604081206001600160a01b0333165f5260205260405f2090611aca83614a5e565b306001600160a01b03851614611cd95785156112c957600282015460ff8160e01c1615610c825760ff8160e81c16611cb15764ffffffffff9060a01c16611b33611b296effffffffffffffffffffffffffffff85541661070f87614ee6565b61071b858761596b565b64ffffffffff8214908115611c4b575b5015611c1f576020610bad8888611bd2828a6001600160a01b0360058c6effffffffffffffffffffffffffffff610bcb868f8385541690611b878280851115614422565b84611b9d610b73611b9789614ee6565b86615b81565b9e8f6003890183611bb18382845416614455565b166effffffffffffffffffffffffffffff1982541617905582845416614455565b604080516effffffffffffffffffffffffffffff85168152602081019390935233927fe2497bc41b1fa7c4ba996f24dc2affdffb2a5571584db6db0eed8fbbf1dc85179181908101610c3e565b602492507f3ad30dd0000000000000000000000000000000000000000000000000000000008252600452fd5b9050611ca9611c6e89611c6860ff895460f01c16600a0a8661477e565b9361466a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff6003870154166b033b2e3c9fd0803ce800000080820615159104019061466a565b11155f611b43565b6004827f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b807fe6c4247b0000000000000000000000000000000000000000000000000000000060049252fd5b50346104f457611d10366143cf565b929190611d1d36336147d5565b8254821015611574578183526003602052611d53604084206001600160a01b038316906001915f520160205260405f2054151590565b15611d6757611543611549939436906146c9565b6004837faa1b05f0000000000000000000000000000000000000000000000000000000008152fd5b50346104f457806003193601126104f457602060405164ffffffffff8152f35b50346104f457806003193601126104f45760209054604051908152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff6040602092600435815260018452205416604051908152f35b50346104f45760406003193601126104f457610554602091600435906001600160a01b036040611e35614309565b9284815260018752818120948152600287522091165f5283526effffffffffffffffffffffffffffff600260405f2001541690615805565b50346104f457806003193601126104f4577ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005460a01c60ff1615611efa575060207f8fb36037000000000000000000000000000000000000000000000000000000005b7fffffffff0000000000000000000000000000000000000000000000000000000060405191168152f35b602090611ed0565b50346104f45760206003193601126104f457610554602091604060043591828152600185522090611f3282614ee6565b916156e9565b50346104f457611f47366143a5565b8284526001602052604084208385526002602052604085206001600160a01b0333165f5260205260405f208486526002602052604086206001600160a01b0384165f5260205260405f2090611f9b83614a5e565b600281015460ff8160e01c168061210f575b156120e75760e81c60ff1615806120d5575b156120ad578415612085576001600160a01b03939261200d86848994612008600261201298015464ffffffffff8160781c169064ffffffffff8214908115612043575b50615538565b61568e565b614cb6565b60405192835216917f0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a060203393a480f35b905061207d612077876effffffffffffffffffffffffffffff61207060ff8d5460f01c16600a0a8761477e565b941661466a565b8961564b565b11155f612002565b6004877f6edcc523000000000000000000000000000000000000000000000000000000008152fd5b6004877f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b5060ff600283015460e81c1615611fbf565b6004887fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b5060ff600284015460e01c16611fad565b50346104f45761212f366142dd565b8183526001602052604083209180845260016020526001600160a01b03600860408620015416928185526002602052604085206001600160a01b0385165f5260205260405f208286526002602052604086206001600160a01b0333165f5260205260405f2061219d83614a5e565b60ff600282015460e01c16156121f2578415612085579161200d8585936121c39561568e565b6040519182527f0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a060203393a480f35b6004877fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b50346104f4576105546020916040612231366142dd565b92908152600185522061564b565b50346104f45760206003193601126104f4576122596142f3565b6001600160a01b037ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00541633036122ce57803b1561229a57611549906155ad565b7fc2f31e5e0000000000000000000000000000000000000000000000000000000082526001600160a01b0316600452602490fd5b6024827f068ca9d800000000000000000000000000000000000000000000000000000000815233600452fd5b50346104f457612309366142dd565b9190808252600160205260408220908083526002602052604083206001600160a01b0333165f5260205260405f2061234083614a5e565b84156126095760020191825460ff8160e01c16156125e15760ff8160e81c166125b9578064ffffffffff6123889260781c169064ffffffffff82149081156125845750615538565b6123a4856effffffffffffffffffffffffffffff83541661466a565b602460206001600160a01b03600585015416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa8015612579578690612541575b612406915082818103911015614677565b612413610b73878461556b565b936effffffffffffffffffffffffffffff85169586156125195750956124e284846effffffffffffffffffffffffffffff6124c561250e9660209c8b8461248260017fb233dd05ed21346e144167b35a6213bcf04768dbdffdc8339e8b027b94b9f3059d019282845416614455565b166effffffffffffffffffffffffffffff19825416179055836124a88d82845416614455565b166effffffffffffffffffffffffffffff19825416179055614ddc565b166effffffffffffffffffffffffffffff19825416178155614cb6565b604051918291339683602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a3604051908152f35b807f6edcc5230000000000000000000000000000000000000000000000000000000060049252fd5b506020813d602011612571575b8161255b60209383614524565b8101031261256d5761240690516123f5565b5f80fd5b3d915061254e565b6040513d88823e3d90fd5b905061207d886111136effffffffffffffffffffffffffffff6125b160ff895460f01c16600a0a8761477e565b94168761564b565b6004857f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b6004857fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004847f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff6003604060209360043581526001855220015416604051908152f35b50346104f45761267e366142dd565b9082548110156115745780835260016020526040832061269d81614a5e565b6126a8833383614d6f565b60246126c6846effffffffffffffffffffffffffffff84541661466a565b9160206001600160a01b03600583015416604051938480927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa80156125795784928791612804575b5061274084610b7383826effffffffffffffffffffffffffffff956127d59903911015614677565b166effffffffffffffffffffffffffffff1982541617815561200d61276486614ddc565b61278760018401916effffffffffffffffffffffffffffff835460781c1661463a565b7fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b6040519182527f566111831db1f090374baff3c3f9fc512084f5a9b8f5b199fb475d9c43a8013f60203393a380f35b9250506020823d602011612835575b8161282060209383614524565b8101031261256d579051839190612740612718565b3d9150612813565b50346104f45760406003193601126104f4576001600160a01b036040612861614309565b92600435815260026020522091165f5260205260206effffffffffffffffffffffffffffff60405f205416604051908152f35b50346104f45761055460209161070f6040611955366142dd565b50346104f45760206003193601126104f45760406020916004358152600383522054604051908152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff60016040602093600435815282855220015460781c16604051908152f35b50346104f45760206003193601126104f45761055461297f60406020936004358152600185522061297a6129756effffffffffffffffffffffffffffff600384015460781c1661296f600285015460180b94614ee6565b9061477e565b615c9d565b615520565b615cf2565b50346104f45760406003193601126104f457604090600435906001600160a01b03836129ae614309565b92848152600160205281812094815260026020522091165f526020526129ef825f206107156effffffffffffffffffffffffffffff82541661070f85614ee6565b82519182526b033b2e3c9fd0803ce800000080820615159104016020820152f35b50346104f457612a1f366142dd565b9082526001602052612a3360408320614ee6565b91825f1904821115831517156104f457506b033b2e3c9fd0803ce80000006020926040519202048152f35b50346104f45760206003193601126104f45760408091600435815260016020522060026effffffffffffffffffffffffffffff600383015460781c1691015460180b82519182526020820152f35b50346104f45760806003193601126104f45760043560607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112612deb57808252600160205260408220908083526002602052604083206001600160a01b0333165f5260205260405f2091612b2181614a5e565b600283019260ff845460e01c16156125e1576064359384612dc35762ffffff90612ce36effffffffffffffffffffffffffffff600486015416612c22600387016effffffffffffffffffffffffffffff815460781c1690612b8e602460028b0193845460180b9087615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000084929454169078ffffffffffffffffffffffffffffffffffffffffffffffffff16179055907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b612c4e60246effffffffffffffffffffffffffffff875460781c16926001880193845460180b91615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000083929354169078ffffffffffffffffffffffffffffffffffffffffffffffffff1617905584907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b5460c81c1662ffffff8114918215612d6e575b505015612d465781612d0791614cb6565b604051916024358352604435602084015260408301527f3fa96ecf17429fddfbb919a64196f4e43f71b57f0c5c38c49a21c8e1e763d18c60603393a380f35b6004847fa664e075000000000000000000000000000000000000000000000000000000008152fd5b5491506effffffffffffffffffffffffffffff82169080155f198290048311151715612dbf576effffffffffffffffffffffffffffff910261271080820615159104019160781c1611155f80612cf6565b8680fd5b6004867fa664e075000000000000000000000000000000000000000000000000000000008152fd5b5080fd5b50346104f457806003193601126104f457602060405162ffffff8152f35b50346104f457612e1c36614363565b91808452600160205260408420938181526002602052604081206001600160a01b0333165f5260205260405f2092612e5386614a5e565b6040850135811580159061317c575b1561315457600285015460ff8160e01c161561312c5760e81c60ff1661310457612ea16effffffffffffffffffffffffffffff86541661070f89614ee6565b612eab868961596b565b908084116130d957508082116130ae5750612f4a86612ed5610b73612ecf8b614ee6565b86615bba565b9660038a016effffffffffffffffffffffffffffff612ef78a8284541661463a565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff612f2c898284541661463a565b166effffffffffffffffffffffffffffff1982541617815589615376565b6b033b2e3c9fd0803ce8000000808206151591040191612f8083611113846effffffffffffffffffffffffffffff8b541661466a565b90602460206001600160a01b0360058b015416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa9182156130a2579161306f575b506020976effffffffffffffffffffffffffffff6124c584610b7385828b97612ffe9903911015614677565b6130376effffffffffffffffffffffffffffff604051951695868652878601906040809180358452602081013560208501520135910152565b608084015260a08301527f119e7f996dc987b3ae79eb3735f1620c4292f6a7761a1e0f834c445f7798b91260c03393a3604051908152f35b90506020813d60201161309a575b8161308a60209383614524565b8101031261256d57516020612fd2565b3d915061307d565b604051903d90823e3d90fd5b7fdc868246000000000000000000000000000000000000000000000000000000008452600452602483fd5b7f4bd9e476000000000000000000000000000000000000000000000000000000008552600452602484fd5b6004837f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b6004847fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004837f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b50801515612e62565b50346104f45760c06003193601126104f45760043560807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112612deb5760a43567ffffffffffffffff8111611a48576131e4903690600401614335565b6131ee36336147d5565b8354831015611a5b578284526001602052604084209161320d83614a5e565b61271061ffff61321b6145bd565b1611613629576001600160a01b036132316145ce565b16151580613610575b156135e8576001600160a01b0361324f6145fa565b16158015906135c8575b156135a05784906132be61326b6145bd565b60038601907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fffff00000000000000000000000000000000000000000000000000000000000083549260f01b169116179055565b6132c66145fa565b6001600160a01b036007860191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055600884016001600160a01b038154166001600160a01b0361331a6145ce565b1681036134d2575b505061332c6145e4565b60068501805490916001600160a01b03908116911614613499576001600160a01b036133566145e4565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556001600160a01b0361338e6145e4565b1692833b15611a48576133d4938392836040518097819582947fa467cc590000000000000000000000000000000000000000000000000000000084528c600485016145a3565b03925af191821561348c578492613473575b50506133f191614cb6565b6040516001600160a01b03613404614309565b16815260443561ffff8116809103611a575760208201526001600160a01b0361342b61431f565b1660408201526084356001600160a01b038116809103611a57578160809160607fea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b974940152a280f35b8192509061348091614524565b611a485781835f6133e6565b50604051903d90823e3d90fd5b5050506134aa57816133f191614cb6565b6004837f38ad7932000000000000000000000000000000000000000000000000000000008152fd5b613550906134e08888614b1f565b506134e9614610565b908886526002602052604086206001600160a01b0382165f5260205260ff600260405f20015460e01c16151560608301528886526002602052604086206001600160a01b0382165f5260205260ff600260405f20015460e81c1615156080830152886151a7565b6001600160a01b036135606145ce565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556135996135936145ce565b8661507e565b5f80613322565b6004857f91eaafa1000000000000000000000000000000000000000000000000000000008152fd5b506effffffffffffffffffffffffffffff600184015460781c1615613259565b6004857fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b506001600160a01b036136216145e4565b16151561323a565b6004857fe15e46cb000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f4576105546040602092600435815260018452206150cc565b50346104f4576105546020916136946040611955366142dd565b90615b81565b50346104f45760406003193601126104f4576001600160a01b0360406136be614309565b92600435815260026020522091165f52602052602078ffffffffffffffffffffffffffffffffffffffffffffffffff600360405f20015416604051908152f35b503461256d5760a060031936011261256d576137186142f3565b60243560ff811680910361256d57604435926001600160a01b038416840361256d5761374261431f565b9260843567ffffffffffffffff811161256d57613763903690600401614335565b61377096919636336147d5565b6001600160a01b0383169283151580613fec575b80613fda575b15613fb257856006111580613fa7575b15613f7f576137d5906001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b613f57575f54955f198714613f2a576001600160a01b0390600188015f55845f5260046020528760405f20551696873b1561256d57613845915f9160405193849283927fa467cc590000000000000000000000000000000000000000000000000000000084528b600485016145a3565b0381838b5af18015613f1f57613f0a575b50604051957ff5fe86ee00000000000000000000000000000000000000000000000000000000875285600488015283602488015283604488015283606488015283608488015260208760a481845afa928315613eff5786978594613ec4575b5090869291836b033b2e3c9fd0803ce800000097426138d390614fe4565b6138dc8861502a565b90604051916138ea83614485565b8a83528a60208401528360408401528a60608401528a60808401528a60a08401528a60c08401528a60e08401528a6101008401528b6101208401526bffffffffffffffffffffffff1661014083015264ffffffffff1661016082015283610180820152846101a0820152886101c08201526001600160a01b0386166101e0820152886102008201528289526001602052604089209080516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1682546effffffffffffffffffffffffffffff191617825560208101516effffffffffffffffffffffffffffff16613a249083907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b604081015182549060f01b7eff00000000000000000000000000000000000000000000000000000000000016907fff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff161782556001820160608201516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1681546effffffffffffffffffffffffffffff191617815560808201516effffffffffffffffffffffffffffff16613b2191907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b60a081015160180b600283019081547fffffffffffffff00000000000000000000000000000000000000000000000000169078ffffffffffffffffffffffffffffffffffffffffffffffffff161790556003820160c08201516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1681546effffffffffffffffffffffffffffff191617815560e08201516effffffffffffffffffffffffffffff16613c1d9082907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b61010082015181547fffff00000000000000000000000000000000000000000000000000000000000060f09290921b919091167dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90911617905561012081015161014082015161016083015160d81b7fffffffffff000000000000000000000000000000000000000000000000000000166effffffffffffffffffffffffffffff90921660789190911b7affffffffffffffffffffffff00000000000000000000000000000016171760048301556101808101516005830180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b03938416179091556101a083015160068501805483169184169190911790556101c083015160078501805483169184169190911790556101e083015160088501805490921692169190911790556102000151600990910180547fffffffffffffff000000000000000000000000000000000000000000000000001678ffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055613dc8858361507e565b60405190815260207f92fb402b777f3710166f15b30098f41042b439850df67d0195196d125458e7b391a360405191613e00836144cf565b6001600160a01b031682528460208301526040820152836060820152604051613e6081928291909160606001600160a01b0381608084019582815116855261ffff6020820151166020860152826040820151166040860152015116910152565b037fea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b97491a26040519283526020830152604082015260607fa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f1488335091a2604051908152602090f35b9291965092506020823d602011613ef7575b81613ee360209383614524565b8101031261256d57905186959092866138b5565b3d9150613ed6565b6040513d86823e3d90fd5b613f179193505f90614524565b5f915f613856565b6040513d5f823e3d90fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b7f603c058b000000000000000000000000000000000000000000000000000000005f5260045ffd5b7fe2364765000000000000000000000000000000000000000000000000000000005f5260045ffd5b50601286111561379a565b7fe6c4247b000000000000000000000000000000000000000000000000000000005f5260045ffd5b506001600160a01b038716151561378a565b506001600160a01b0383161515613784565b3461256d57604060031936011261256d57602061404761401c614309565b6004355f52600383526001600160a01b0360405f209116906001915f520160205260405f2054151590565b6040519015158152f35b3461256d57602060031936011261256d576004355f5260016020526040805f206140a261407d82614ee6565b61409c816effffffffffffffffffffffffffffff600386015416615b17565b92614f97565b82519182526020820152f35b3461256d5760206001600160a01b036140d96140c9366142dd565b905f526003845260405f20615b3f565b90549060031b1c16604051908152f35b3461256d57602060031936011261256d5760206140476141076142f3565b6001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b3461256d57602060031936011261256d576004355f526001602052602061055460405f2061069c61407d82614ee6565b3461256d57614177366142dd565b905f5481101561426357805f5260016020526142358260405f2061419a81614a5e565b6141a5823383614d6f565b6effffffffffffffffffffffffffffff6141d083828454166141ca8180841115614422565b03614ddc565b166effffffffffffffffffffffffffffff198254161781556142176141f483614ddc565b61278760018401916effffffffffffffffffffffffffffff835460781c16614455565b6142218482614cb6565b6001600160a01b0360053392015416614e36565b6040519182527f69bb3893073d7a893f3933f3871309fc25acfc72e365b71f554d439a85b20e8b60203393a3005b7fb77e1e0f000000000000000000000000000000000000000000000000000000005f5260045ffd5b3461256d57602060031936011261256d576004356142a936336147d5565b5f5481101561426357806020915f526001825261055460405f20916142cd83614a5e565b6142d78184614b1f565b92614cb6565b600319604091011261256d576004359060243590565b600435906001600160a01b038216820361256d57565b602435906001600160a01b038216820361256d57565b606435906001600160a01b038216820361256d57565b9181601f8401121561256d5782359167ffffffffffffffff831161256d576020838186019501011161256d57565b60a060031982011261256d576004359160607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc60243593011261256d57604490565b600319606091011261256d5760043590602435906044356001600160a01b038116810361256d5790565b60e060031982011261256d57600435916024356001600160a01b038116810361256d577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc60a09193011261256d57604490565b1561442a5750565b7fc730333f000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b906effffffffffffffffffffffffffffff809116911601906effffffffffffffffffffffffffffff8211613f2a57565b610220810190811067ffffffffffffffff8211176144a257604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6080810190811067ffffffffffffffff8211176144a257604052565b60a0810190811067ffffffffffffffff8211176144a257604052565b610140810190811067ffffffffffffffff8211176144a257604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176144a257604052565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe093818652868601375f8582860101520116010190565b6040906145ba949281528160208201520191614565565b90565b60443561ffff8116810361256d5790565b6024356001600160a01b038116810361256d5790565b6064356001600160a01b038116810361256d5790565b6084356001600160a01b038116810361256d5790565b6040519061461d826144eb565b5f6080838281528260208201528260408201528260608201520152565b906effffffffffffffffffffffffffffff809116911603906effffffffffffffffffffffffffffff8211613f2a57565b91908201809211613f2a57565b1561467f5750565b7f80561eeb000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b359064ffffffffff8216820361256d57565b3590811515820361256d57565b91908260a091031261256d576040516146e1816144eb565b80926146ec816146aa565b82526146fa602082016146aa565b602083015260408101359062ffffff8216820361256d576080614735918193604086015261472a606082016146bc565b6060860152016146bc565b910152565b9078ffffffffffffffffffffffffffffffffffffffffffffffffff8091169116039078ffffffffffffffffffffffffffffffffffffffffffffffffff8211613f2a57565b81810292918115918404141715613f2a57565b9078ffffffffffffffffffffffffffffffffffffffffffffffffff8091169116019078ffffffffffffffffffffffffffffffffffffffffffffffffff8211613f2a57565b7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0054916001600160a01b038316928160041161256d575f5f9060405f8151966001600160a01b0360208901917fb700961300000000000000000000000000000000000000000000000000000000835216978860248201523060448201527fffffffff0000000000000000000000000000000000000000000000000000000083351660648201526064815261488a608482614524565b828052826020525190895afa614a4b575b156148a8575b5050505050565b63ffffffff1615614a1f577fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000177ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0055823b1561256d576020925f92836040518096819582947f94c7d7ee0000000000000000000000000000000000000000000000000000000084526004840152604060248401527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6044850192808452808786860137868582860101520116010103925af18015613f1f57614a0f575b507fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0054167ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00555f808080806148a1565b5f614a1991614524565b5f61499e565b827f068ca9d8000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b50505f516020518060201c15029061489b565b60048101805460d81c4214614b1b576effffffffffffffffffffffffffffff614aad83610b73614a90614b1996614ee6565b91612787614aa1610b7385846159a0565b86835460781c16614455565b166effffffffffffffffffffffffffffff19825416178155614ace42614fe4565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff7fffffffffff00000000000000000000000000000000000000000000000000000083549260d81b169116179055565b565b5050565b6effffffffffffffffffffffffffffff815460781c1691614b43610b73848461556b565b916effffffffffffffffffffffffffffff8316938415614cad576001600160a01b0360088301541693835f52600260205260405f206001600160a01b0386165f52602052600260405f20019260ff845460e01c1615614c85577fafd21228e21de4a3f779e1cc3617e12672c3da091dcf3812a931036aa0bf633c93600182016effffffffffffffffffffffffffffff614bdf8582845416614455565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff614c148482845416614455565b166effffffffffffffffffffffffffffff198254161790557fffff000000000000000000000000000000ffffffffffffffffffffffffffffff8154169055614c7f60405192839283602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a390565b7fe86fa032000000000000000000000000000000000000000000000000000000005f5260045ffd5b50505050505f90565b60607fa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f1488335091600481016effffffffffffffffffffffffffffff8082541692614d56614d018589846156e9565b93614d0b8561502a565b7fffffffffff000000000000000000000000ffffffffffffffffffffffffffffff7affffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b5460781c169060405192835260208301526040820152a2565b6001600160a01b0360078192015416911603614db45715614d8c57565b7f2c5211c6000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f3c6b7746000000000000000000000000000000000000000000000000000000005f5260045ffd5b6effffffffffffffffffffffffffffff8111614e06576effffffffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52607860045260245260445ffd5b916001600160a01b03604051927fa9059cbb000000000000000000000000000000000000000000000000000000005f521660045260245260205f60448180865af19060015f5114821615614ec5575b60405215614e905750565b6001600160a01b03907f5274afe7000000000000000000000000000000000000000000000000000000005f521660045260245ffd5b906001811516614edd57823b15153d15161690614e85565b503d5f823e3d90fd5b60048101546effffffffffffffffffffffffffffff8116908060d81c92428414908115614f54575b50614f4e5742831161256d576301e133806b033b2e3c9fd0803ce8000000916bffffffffffffffffffffffff6145ba9542039160781c1602040190615b17565b50905090565b600301546effffffffffffffffffffffffffffff811615915081614f7a575b505f614f0e565b6effffffffffffffffffffffffffffff915060781c16155f614f73565b61297f9061297a612975614fcc9460026effffffffffffffffffffffffffffff600386015460781c1694015460180b9361477e565b6b033b2e3c9fd0803ce8000000808206151591040190565b64ffffffffff8111614ffa5764ffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52602860045260245260445ffd5b6bffffffffffffffffffffffff811161504e576bffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52606060045260245260445ffd5b614b199161508c81836158f8565b60405191615099836144eb565b64ffffffffff83525f60208401525f6040840152600160608401525f60808401526151a7565b91908203918211613f2a57565b6145ba906151a16150dc82614ee6565b61519b615147846111136003820154611113866effffffffffffffffffffffffffffff61514061297f78ffffffffffffffffffffffffffffffffffffffffffffffffff600960028a015460180b990154169761297a61297586868a60781c1661477e565b931661477e565b6effffffffffffffffffffffffffffff615190865492826151738160018b015460781c16828716614455565b916b033b2e3c9fd0803ce80000008082061515910401911661466a565b9160781c16906150bf565b926159a0565b906150bf565b906001600160a01b037f90984699e37aaae5f79c2f33e480f273509662005a8ff82a17b325eb7072454e91835f52600260205260405f208282165f5260205260405f2060028651910190867cff0000000000000000000000000000000000000000000000000000000083547fffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff78ffffffffff0000000000000000000000000000000000000000602085015160a01b167fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff7bffffff00000000000000000000000000000000000000000000000000604087015160c81b16937fffffffff00000000000000000000000000ffffffffffffffffffffffffffffff73ffffffffff0000000000000000000000000000007dff0000000000000000000000000000000000000000000000000000000000608060608b0151151560e01b9a0151151560e81b169960781b169116171617161791161717905561537160405192839216958291909160808060a083019464ffffffffff815116845264ffffffffff602082015116602085015262ffffff604082015116604085015260608101511515606085015201511515910152565b0390a3565b6153ee61548392936153c76effffffffffffffffffffffffffffff6004850154169360038101612b8e8460026effffffffffffffffffffffffffffff845460781c16940193845460180b9089615beb565b6effffffffffffffffffffffffffffff855460781c16926001860193845460180b91615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000083929354169078ffffffffffffffffffffffffffffffffffffffffffffffffff1617905582907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b62ffffff600282015460c81c1662ffffff81149182156154cf575b5050156154a757565b7fa664e075000000000000000000000000000000000000000000000000000000005f5260045ffd5b5491506effffffffffffffffffffffffffffff82169080155f19829004831115171561256d576effffffffffffffffffffffffffffff910261271080820615159104019160781c1611155f8061549e565b81810392915f138015828513169184121617613f2a57565b156155405750565b7fde3fc6ae000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b6effffffffffffffffffffffffffffff6001615586836150cc565b92015416620f42408101809111613f2a57620f42408201809211613f2a576145ba92615e75565b60206001600160a01b037f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9216807fffffffffffffffffffffffff00000000000000000000000000000000000000007ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005416177ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0055604051908152a1565b6effffffffffffffffffffffffffffff6001615666836150cc565b9201541690620f42408101809111613f2a57620f42408201809211613f2a576145ba92615dc3565b60026156c36effffffffffffffffffffffffffffff93946156cf93856124a8856156b785614ddc565b9301928284541661463a565b93019282845416614455565b166effffffffffffffffffffffffffffff19825416179055565b9160a46020926001600160a01b0360068601541661572f6effffffffffffffffffffffffffffff875416946effffffffffffffffffffffffffffff600389015416615b17565b956effffffffffffffffffffffffffffff600178ffffffffffffffffffffffffffffffffffffffffffffffffff60098401541692015460781c169060405197889687957ff5fe86ee0000000000000000000000000000000000000000000000000000000087526004870152602486015260448501526b033b2e3c9fd0803ce80000008082061515910401606484015260848301525afa908115613f1f575f916157d6575090565b90506020813d6020116157fd575b816157f160209383614524565b8101031261256d575190565b3d91506157e4565b6effffffffffffffffffffffffffffff6001615820836150cc565b9201541690620f42408101809111613f2a57620f42408201809211613f2a576145ba92615e75565b6effffffffffffffffffffffffffffff6001615863836150cc565b92015416620f42408101809111613f2a57620f42408201809211613f2a576145ba92615dc3565b78ffffffffffffffffffffffffffffffffffffffffffffffffff81116158c85778ffffffffffffffffffffffffffffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f5260c860045260245260445ffd5b805f5260036020526159186001600160a01b0360405f2093168093615e10565b15615943577f47acdb603dbca71028fbd9b37192e17a62e64fa160e2e607eef3853b792ea5ab5f80a3565b7f04c94583000000000000000000000000000000000000000000000000000000005f5260045ffd5b61297f9061297a6129756145ba9461296f60016effffffffffffffffffffffffffffff835460781c1692015460180b94614ee6565b906effffffffffffffffffffffffffffff60048301541690808214615b10576003830154928360f01c938415614cad5783916effffffffffffffffffffffffffffff82169160781c6effffffffffffffffffffffffffffff16600282015460180b916009015478ffffffffffffffffffffffffffffffffffffffffffffffffff168583615a2e83988561477e565b615a3790615c9d565b90615a4191615520565b615a4a90615cf2565b90615a55908661477e565b90615a5f9161466a565b90615a699161466a565b95615a739161477e565b615a7c90615c9d565b90615a8691615520565b615a8f90615cf2565b91615a999161477e565b90615aa39161466a565b90615aad9161466a565b6b033b2e3c9fd0803ce800000081061515906b033b2e3c9fd0803ce8000000900401906b033b2e3c9fd0803ce800000081061515906b033b2e3c9fd0803ce800000090040190615afc916150bf565b90805f1904821161256d5761271091020490565b5050505f90565b815f19048111158215171561256d57026b033b2e3c9fd0803ce8000000808206151591040190565b8054821015615b54575f5260205f2001905f90565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b744f3a68dbc8f03f243baf513267aa9a3ee524f8e028811182151761256d576b033b2e3c9fd0803ce80000000290808206151591040190565b744f3a68dbc8f03f243baf513267aa9a3ee524f8e028811182151761256d576b033b2e3c9fd0803ce8000000020490565b93929193615c0f615c0661297f8761297a612975868861477e565b92843590615d7e565b926020810135955f8782019788129112908015821691151617613f2a576040615c4561297f8861297a612975615c4e978a61477e565b9101359061466a565b036154a757615c5c90614ddc565b8260180b92808403615c6d57509190565b7f327269a7000000000000000000000000000000000000000000000000000000005f5260c860045260245260445ffd5b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8111615cc75790565b7f24775e06000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b5f8112615cfc5790565b7fa8ce4432000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c1615615d5657565b7fd7e6bcf8000000000000000000000000000000000000000000000000000000005f5260045ffd5b5f821215615db9577f80000000000000000000000000000000000000000000000000000000000000008214613f2a576145ba915f03906150bf565b906145ba9161466a565b91615dcf818385615e75565b918115615de3576145ba930915159061466a565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f828152600182016020526040902054615e6f57805490680100000000000000008210156144a257615e49826001809401835582615b3f565b81549060031b905f1986831b921b19161790558054925f520160205260405f2055600190565b50505f90565b90915f198383099280830292838086109503948086039514615f065784831115615eee5790829109815f0382168092046002816003021880820260020302808202600203028082026002030280820260020302808202600203028091026002030293600183805f03040190848311900302920304170290565b82634e487b715f52156003026011186020526024601cfd5b505080925015615de357049056fea164736f6c634300081c000a","recompiledBytecode":"0x60806040526004361015610011575f80fd5b5f5f3560e01c8063033a06951461428b578063066dd830146141695780630752c44c146141395780630c90e7fe146140e9578063132a8bea146140ae578063152ee0d3146140515780631901057d14613ffe5780631e83287e146136fe57806321a3bebc1461369a578063228e731f1461367a57806324ba667f1461365157806324e4c1af146131855780632a5b380314612e0d5780633369706614612def578063341f7dcf14612aac5780633992163714612a5e5780633a445c4e14612a105780633c9a9ee514612984578063403d77781461291857806341a009eb146128d857806358a54078146128ae5780635e39616d146128945780635ff1c4821461283d5780637333a3b41461266f5780637658c64414612631578063771602f7146122fa5780637a9e5e4b1461223f57806380c099f41461221a57806383e4bcb71461212057806387a7dc7714611f385780638accc4a314611f025780638fb3603714611e6d5780639c7ee64f14611e075780639f9b199014611dcc578063a0aead4d14611daf578063a0b3d9d814611d8f578063a2763d2914611d01578063a436458d14611a83578063a467cc5914611963578063aab9eb071461193b578063b0745f2b146118fe578063b33454e5146118e2578063b5f460c8146118b9578063be10528014611607578063bf7e214f146115c1578063c04d164e1461159c578063c25d82fe146114f6578063c435e92814611490578063c4d66de8146112fa578063cc0e1c1c14610fc0578063ceb233b314610f9b578063d3c6a11d14610f4a578063d5d15a1114610f02578063d6abe64214610e66578063de079b5714610e23578063de31ea9f14610d54578063e5c9274514610cfa578063e840427d14610aaf578063eac8f5b814610736578063efdba7c0146106a2578063f51f1a351461064f578063f701f06e1461055c578063f8447aaf1461052f578063f899860514610513578063f91ebd52146104f75763fce56a0b146102f0575f80fd5b346104f45760406003193601126104f457610309614309565b908060405161031781614507565b8181528160208201528160408201528160608201528160808201528160a08201528160c08201528160e08201528161010082015261012001526004358152600260205260409020906001600160a01b03165f5260205260405f2060405161037d81614507565b81546effffffffffffffffffffffffffffff811692838352602083019160781c6effffffffffffffffffffffffffffff168252600181015460180b9160408401928352600282015492606085016effffffffffffffffffffffffffffff8516815260808601908560781c64ffffffffff16825260a08701928660a01c64ffffffffff16845260c08801948760c81c62ffffff16865260e08901968860e01c60ff16151588526101008a019860e81c60ff16151589526003015478ffffffffffffffffffffffffffffffffffffffffffffffffff169861012001988952604051998a52516effffffffffffffffffffffffffffff1660208a01525160180b6040890152516effffffffffffffffffffffffffffff1660608801525164ffffffffff1660808701525164ffffffffff1660a08601525162ffffff1660c085015251151560e08401525115156101008301525178ffffffffffffffffffffffffffffffffffffffffffffffffff1661012082015261014090f35b80fd5b50346104f457806003193601126104f457602060405160068152f35b50346104f457806003193601126104f457602060405160128152f35b50346104f4576105546020916040610546366142dd565b929081526001855220615848565b604051908152f35b50346104f45760406003193601126104f4576001600160a01b036040610580614309565b92610589614610565b50600435815260026020522091165f5260205261064b600260405f20015460ff604051916105b6836144eb565b64ffffffffff8160781c16835264ffffffffff8160a01c16602084015262ffffff8160c81c166040840152818160e01c161515606084015260e81c16151560808201526040519182918291909160808060a083019464ffffffffff815116845264ffffffffff602082015116602085015262ffffff604082015116604085015260608101511515606085015201511515910152565b0390f35b50346104f45760206003193601126104f45761055460406020926004358152600184522061069c6effffffffffffffffffffffffffffff825460781c169161069681614ee6565b906159a0565b9061466a565b50346104f45760406003193601126104f457610554602091600435906001600160a01b0360406106d0614309565b9284815260018752818120948152600287522091165f52835261071b60405f206107156effffffffffffffffffffffffffffff82541661070f85614ee6565b90615b17565b9261596b565b6b033b2e3c9fd0803ce800000080820615159104019061466a565b50346104f45760206003193601126104f45760408161022092610200835161075d81614485565b82815282602082015282858201528260608201528260808201528260a08201528260c08201528260e08201528261010082015282610120820152826101408201528261016082015282610180820152826101a0820152826101c0820152826101e08201520152600435815260016020522078ffffffffffffffffffffffffffffffffffffffffffffffffff6102006040516107f781614485565b8260098554956effffffffffffffffffffffffffffff871684526effffffffffffffffffffffffffffff8760781c16602085015260ff8760f01c1660408501526effffffffffffffffffffffffffffff6001820154818116606087015260781c166080850152600281015460180b60a085015260038101546effffffffffffffffffffffffffffff811660c08601526effffffffffffffffffffffffffffff8160781c1660e086015260f01c61010085015260048101546effffffffffffffffffffffffffffff81166101208601526bffffffffffffffffffffffff8160781c1661014086015260d81c6101608501526001600160a01b036005820154166101808501526001600160a01b036006820154166101a08501526001600160a01b036007820154166101c08501526001600160a01b036008820154166101e0850152015416828201526effffffffffffffffffffffffffffff604051941684526effffffffffffffffffffffffffffff602082015116602085015260ff60408201511660408501526effffffffffffffffffffffffffffff60608201511660608501526effffffffffffffffffffffffffffff608082015116608085015260a081015160180b60a08501526effffffffffffffffffffffffffffff60c08201511660c08501526effffffffffffffffffffffffffffff60e08201511660e085015261ffff610100820151166101008501526effffffffffffffffffffffffffffff610120820151166101208501526bffffffffffffffffffffffff6101408201511661014085015264ffffffffff610160820151166101608501526001600160a01b03610180820151166101808501526001600160a01b036101a0820151166101a08501526001600160a01b036101c0820151166101c08501526001600160a01b036101e0820151166101e0850152015116610200820152f35b50346104f457610abe366143a5565b9092828152600160205260408120908381526002602052604081206001600160a01b0333165f5260205260405f20610af583614a5e565b306001600160a01b03851614610cd2578515610caa5760020190815460ff8160e01c1615610c825760e81c60ff16610c5a576020610bad8787610bf582896001600160a01b0360058b6effffffffffffffffffffffffffffff610bcb868e8385541690610b658280851115614422565b84610b78610b738589615848565b614ddc565b9e8f6001890183610b8c838284541661463a565b166effffffffffffffffffffffffffffff198254161790558284541661463a565b166effffffffffffffffffffffffffffff1982541617905503614ddc565b166effffffffffffffffffffffffffffff19825416178155610bed8782614cb6565b015416614e36565b604080516effffffffffffffffffffffffffffff85168152602081019390935233927f535be2ff85ab4c5d0991e10dc057a4951ea2bac426ffb036eded23036a3942b291819081015b0390a36effffffffffffffffffffffffffffff60405191168152f35b807f9db9b3550000000000000000000000000000000000000000000000000000000060049252fd5b6004827fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004827f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b6004827fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760406003193601126104f4576001600160a01b036040610d1e614309565b92600435815260026020522091165f5260205260206effffffffffffffffffffffffffffff600260405f20015416604051908152f35b50346104f45760206003193601126104f45760408161064b9260608351610d7a816144cf565b8281528260208201528285820152015260043581526001602052206001600160a01b0360088201541690600381015460f01c906001600160a01b03600781600684015416920154169160405193610dd0856144cf565b84526020840152604083015260608201526040519182918291909160606001600160a01b0381608084019582815116855261ffff6020820151166020860152826040820151166040860152015116910152565b50346104f45760206003193601126104f45760408091600435815260016020522060ff6001600160a01b03600583015416915460f01c1682519182526020820152f35b50346104f45760206003193601126104f457610e806142f3565b610eb6816001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b15610eda576020916001600160a01b03604092168152600483522054604051908152f35b6004827fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f45778ffffffffffffffffffffffffffffffffffffffffffffffffff6009604060209360043581526001855220015416604051908152f35b50346104f45760406003193601126104f457610554602091600435906001600160a01b036040610f78614309565b9284815260018752818120948152600287522091165f52835260405f209061596b565b50346104f4576105546020916040610fb2366142dd565b92908152600185522061556b565b50346104f457610fcf36614363565b8284939452600160205260408320938084526002602052604084206001600160a01b0333165f5260205260405f209261100786614a5e565b60408301359481158015906112f1575b156112c95760ff600286015460e01c16156112a15761104b6effffffffffffffffffffffffffffff86541661070f89614ee6565b611055868961596b565b90808411611276575080871161124a57505081866111186effffffffffffffffffffffffffffff611097610b736111d69661109160409d614ee6565b90615bba565b60038401826110a9838284541661463a565b166effffffffffffffffffffffffffffff19825416179055816110cf82828c541661463a565b166effffffffffffffffffffffffffffff198a54161789556110f2888a86615376565b16976111136effffffffffffffffffffffffffffff6004850154168a61477e565b61466a565b956111228761588a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff61114d600985019282845416614791565b167fffffffffffffff0000000000000000000000000000000000000000000000000082541617905578ffffffffffffffffffffffffffffffffffffffffffffffffff6111a9600361119d8a61588a565b93019282845416614791565b167fffffffffffffff00000000000000000000000000000000000000000000000000825416179055614cb6565b6111fd85519285845260208401906040809180358452602081013560208501520135910152565b8260808301527f4845ee5c72bde2b62defc8a1ca2f0fc3313b2d9e799997ce4f6776da9773bcbf60a03393a382519182526b033b2e3c9fd0803ce800000080820615159104016020820152f35b602492507f37f3f9b7000000000000000000000000000000000000000000000000000000008252600452fd5b7f04ddd91f000000000000000000000000000000000000000000000000000000008352600452602482fd5b807fe86fa0320000000000000000000000000000000000000000000000000000000060049252fd5b807f2c5211c60000000000000000000000000000000000000000000000000000000060049252fd5b50851515611017565b50346104f45760206003193601126104f4576113146142f3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460ff8160401c16801561147b575b611453577fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000001668010000000000000001177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00556001600160a01b03811615610cd2576113bf906113b2615d27565b6113ba615d27565b6155ad565b7fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054167ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a180f35b6004837ff92ee8a9000000000000000000000000000000000000000000000000000000008152fd5b50600167ffffffffffffffff82161015611344565b50346104f45760406003193601126104f4576001600160a01b0360406114b4614309565b92600435815260026020522091165f526020526040805f2060016effffffffffffffffffffffffffffff825460781c1691015460180b82519182526020820152f35b50346104f457611505366143cf565b92919061151236336147d5565b8254821015611574576001600160a01b0381161561154c57611543611549939461153c83856158f8565b36906146c9565b916151a7565b80f35b6004837fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b6004837fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f45761055460209160406115b3366142dd565b929081526001855220615805565b50346104f457806003193601126104f45760206001600160a01b037ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005416604051908152f35b50346104f457611616366143a5565b61162393929336336147d5565b838352600160205260408320938084526002602052604084206001600160a01b0333165f5260205260405f20908085526002602052604085206001600160a01b0384165f52602052600360405f2061167a88614a5e565b019378ffffffffffffffffffffffffffffffffffffffffffffffffff8554166b033b2e3c9fd0803ce8000000810615156b033b2e3c9fd0803ce800000082040182105f146118af57506b033b2e3c9fd0803ce80000008102906b033b2e3c9fd0803ce80000008204036118ab57600290925b019460ff865460e01c16156112a15782156112c95750611832816040976b033b2e3c9fd0803ce8000000850615156b033b2e3c9fd0803ce800000086040196611738610b738984615848565b98600183016effffffffffffffffffffffffffffff61175a8c8284541661463a565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff61178f8b8284541661463a565b166effffffffffffffffffffffffffffff198254161790556117b08661588a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff6117db60098501928284541661473a565b167fffffffffffffff0000000000000000000000000000000000000000000000000082541617905578ffffffffffffffffffffffffffffffffffffffffffffffffff6111a96118298861588a565b8284541661473a565b7fe97b8576ac531cdc817b933309d0518ca3d26c6b46d490f3ae9fa39426a141ee6001600160a01b0387519416938061188b33958983602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a46effffffffffffffffffffffffffffff8351921682526020820152f35b8580fd5b60029150926116ec565b50346104f45760206003193601126104f457610554604060209260043581526001845220614ee6565b50346104f457806003193601126104f457602060405160018152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff60016040602093600435815282855220015416604051908152f35b50346104f4576105546020916110916040611955366142dd565b939081526001865220614ee6565b50346104f45760406003193601126104f45760043560243567ffffffffffffffff8111611a4857611998903690600401614335565b6119a592919236336147d5565b8354821015611a5b578390828252600160205260408220936119c685614a5e565b6001600160a01b0360068601541691823b15611a5757611a19928492836040518096819582947fa467cc590000000000000000000000000000000000000000000000000000000084528b600485016145a3565b03925af18015611a4c57611a33575b505061154991614cb6565b81611a3d91614524565b611a4857825f611a28565b8280fd5b6040513d84823e3d90fd5b8380fd5b6004847fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f457611a92366143a5565b9092828152600160205260408120908381526002602052604081206001600160a01b0333165f5260205260405f2090611aca83614a5e565b306001600160a01b03851614611cd95785156112c957600282015460ff8160e01c1615610c825760ff8160e81c16611cb15764ffffffffff9060a01c16611b33611b296effffffffffffffffffffffffffffff85541661070f87614ee6565b61071b858761596b565b64ffffffffff8214908115611c4b575b5015611c1f576020610bad8888611bd2828a6001600160a01b0360058c6effffffffffffffffffffffffffffff610bcb868f8385541690611b878280851115614422565b84611b9d610b73611b9789614ee6565b86615b81565b9e8f6003890183611bb18382845416614455565b166effffffffffffffffffffffffffffff1982541617905582845416614455565b604080516effffffffffffffffffffffffffffff85168152602081019390935233927fe2497bc41b1fa7c4ba996f24dc2affdffb2a5571584db6db0eed8fbbf1dc85179181908101610c3e565b602492507f3ad30dd0000000000000000000000000000000000000000000000000000000008252600452fd5b9050611ca9611c6e89611c6860ff895460f01c16600a0a8661477e565b9361466a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff6003870154166b033b2e3c9fd0803ce800000080820615159104019061466a565b11155f611b43565b6004827f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b807fe6c4247b0000000000000000000000000000000000000000000000000000000060049252fd5b50346104f457611d10366143cf565b929190611d1d36336147d5565b8254821015611574578183526003602052611d53604084206001600160a01b038316906001915f520160205260405f2054151590565b15611d6757611543611549939436906146c9565b6004837faa1b05f0000000000000000000000000000000000000000000000000000000008152fd5b50346104f457806003193601126104f457602060405164ffffffffff8152f35b50346104f457806003193601126104f45760209054604051908152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff6040602092600435815260018452205416604051908152f35b50346104f45760406003193601126104f457610554602091600435906001600160a01b036040611e35614309565b9284815260018752818120948152600287522091165f5283526effffffffffffffffffffffffffffff600260405f2001541690615805565b50346104f457806003193601126104f4577ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005460a01c60ff1615611efa575060207f8fb36037000000000000000000000000000000000000000000000000000000005b7fffffffff0000000000000000000000000000000000000000000000000000000060405191168152f35b602090611ed0565b50346104f45760206003193601126104f457610554602091604060043591828152600185522090611f3282614ee6565b916156e9565b50346104f457611f47366143a5565b8284526001602052604084208385526002602052604085206001600160a01b0333165f5260205260405f208486526002602052604086206001600160a01b0384165f5260205260405f2090611f9b83614a5e565b600281015460ff8160e01c168061210f575b156120e75760e81c60ff1615806120d5575b156120ad578415612085576001600160a01b03939261200d86848994612008600261201298015464ffffffffff8160781c169064ffffffffff8214908115612043575b50615538565b61568e565b614cb6565b60405192835216917f0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a060203393a480f35b905061207d612077876effffffffffffffffffffffffffffff61207060ff8d5460f01c16600a0a8761477e565b941661466a565b8961564b565b11155f612002565b6004877f6edcc523000000000000000000000000000000000000000000000000000000008152fd5b6004877f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b5060ff600283015460e81c1615611fbf565b6004887fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b5060ff600284015460e01c16611fad565b50346104f45761212f366142dd565b8183526001602052604083209180845260016020526001600160a01b03600860408620015416928185526002602052604085206001600160a01b0385165f5260205260405f208286526002602052604086206001600160a01b0333165f5260205260405f2061219d83614a5e565b60ff600282015460e01c16156121f2578415612085579161200d8585936121c39561568e565b6040519182527f0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a060203393a480f35b6004877fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b50346104f4576105546020916040612231366142dd565b92908152600185522061564b565b50346104f45760206003193601126104f4576122596142f3565b6001600160a01b037ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00541633036122ce57803b1561229a57611549906155ad565b7fc2f31e5e0000000000000000000000000000000000000000000000000000000082526001600160a01b0316600452602490fd5b6024827f068ca9d800000000000000000000000000000000000000000000000000000000815233600452fd5b50346104f457612309366142dd565b9190808252600160205260408220908083526002602052604083206001600160a01b0333165f5260205260405f2061234083614a5e565b84156126095760020191825460ff8160e01c16156125e15760ff8160e81c166125b9578064ffffffffff6123889260781c169064ffffffffff82149081156125845750615538565b6123a4856effffffffffffffffffffffffffffff83541661466a565b602460206001600160a01b03600585015416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa8015612579578690612541575b612406915082818103911015614677565b612413610b73878461556b565b936effffffffffffffffffffffffffffff85169586156125195750956124e284846effffffffffffffffffffffffffffff6124c561250e9660209c8b8461248260017fb233dd05ed21346e144167b35a6213bcf04768dbdffdc8339e8b027b94b9f3059d019282845416614455565b166effffffffffffffffffffffffffffff19825416179055836124a88d82845416614455565b166effffffffffffffffffffffffffffff19825416179055614ddc565b166effffffffffffffffffffffffffffff19825416178155614cb6565b604051918291339683602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a3604051908152f35b807f6edcc5230000000000000000000000000000000000000000000000000000000060049252fd5b506020813d602011612571575b8161255b60209383614524565b8101031261256d5761240690516123f5565b5f80fd5b3d915061254e565b6040513d88823e3d90fd5b905061207d886111136effffffffffffffffffffffffffffff6125b160ff895460f01c16600a0a8761477e565b94168761564b565b6004857f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b6004857fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004847f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff6003604060209360043581526001855220015416604051908152f35b50346104f45761267e366142dd565b9082548110156115745780835260016020526040832061269d81614a5e565b6126a8833383614d6f565b60246126c6846effffffffffffffffffffffffffffff84541661466a565b9160206001600160a01b03600583015416604051938480927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa80156125795784928791612804575b5061274084610b7383826effffffffffffffffffffffffffffff956127d59903911015614677565b166effffffffffffffffffffffffffffff1982541617815561200d61276486614ddc565b61278760018401916effffffffffffffffffffffffffffff835460781c1661463a565b7fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b6040519182527f566111831db1f090374baff3c3f9fc512084f5a9b8f5b199fb475d9c43a8013f60203393a380f35b9250506020823d602011612835575b8161282060209383614524565b8101031261256d579051839190612740612718565b3d9150612813565b50346104f45760406003193601126104f4576001600160a01b036040612861614309565b92600435815260026020522091165f5260205260206effffffffffffffffffffffffffffff60405f205416604051908152f35b50346104f45761055460209161070f6040611955366142dd565b50346104f45760206003193601126104f45760406020916004358152600383522054604051908152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff60016040602093600435815282855220015460781c16604051908152f35b50346104f45760206003193601126104f45761055461297f60406020936004358152600185522061297a6129756effffffffffffffffffffffffffffff600384015460781c1661296f600285015460180b94614ee6565b9061477e565b615c9d565b615520565b615cf2565b50346104f45760406003193601126104f457604090600435906001600160a01b03836129ae614309565b92848152600160205281812094815260026020522091165f526020526129ef825f206107156effffffffffffffffffffffffffffff82541661070f85614ee6565b82519182526b033b2e3c9fd0803ce800000080820615159104016020820152f35b50346104f457612a1f366142dd565b9082526001602052612a3360408320614ee6565b91825f1904821115831517156104f457506b033b2e3c9fd0803ce80000006020926040519202048152f35b50346104f45760206003193601126104f45760408091600435815260016020522060026effffffffffffffffffffffffffffff600383015460781c1691015460180b82519182526020820152f35b50346104f45760806003193601126104f45760043560607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112612deb57808252600160205260408220908083526002602052604083206001600160a01b0333165f5260205260405f2091612b2181614a5e565b600283019260ff845460e01c16156125e1576064359384612dc35762ffffff90612ce36effffffffffffffffffffffffffffff600486015416612c22600387016effffffffffffffffffffffffffffff815460781c1690612b8e602460028b0193845460180b9087615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000084929454169078ffffffffffffffffffffffffffffffffffffffffffffffffff16179055907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b612c4e60246effffffffffffffffffffffffffffff875460781c16926001880193845460180b91615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000083929354169078ffffffffffffffffffffffffffffffffffffffffffffffffff1617905584907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b5460c81c1662ffffff8114918215612d6e575b505015612d465781612d0791614cb6565b604051916024358352604435602084015260408301527f3fa96ecf17429fddfbb919a64196f4e43f71b57f0c5c38c49a21c8e1e763d18c60603393a380f35b6004847fa664e075000000000000000000000000000000000000000000000000000000008152fd5b5491506effffffffffffffffffffffffffffff82169080155f198290048311151715612dbf576effffffffffffffffffffffffffffff910261271080820615159104019160781c1611155f80612cf6565b8680fd5b6004867fa664e075000000000000000000000000000000000000000000000000000000008152fd5b5080fd5b50346104f457806003193601126104f457602060405162ffffff8152f35b50346104f457612e1c36614363565b91808452600160205260408420938181526002602052604081206001600160a01b0333165f5260205260405f2092612e5386614a5e565b6040850135811580159061317c575b1561315457600285015460ff8160e01c161561312c5760e81c60ff1661310457612ea16effffffffffffffffffffffffffffff86541661070f89614ee6565b612eab868961596b565b908084116130d957508082116130ae5750612f4a86612ed5610b73612ecf8b614ee6565b86615bba565b9660038a016effffffffffffffffffffffffffffff612ef78a8284541661463a565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff612f2c898284541661463a565b166effffffffffffffffffffffffffffff1982541617815589615376565b6b033b2e3c9fd0803ce8000000808206151591040191612f8083611113846effffffffffffffffffffffffffffff8b541661466a565b90602460206001600160a01b0360058b015416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa9182156130a2579161306f575b506020976effffffffffffffffffffffffffffff6124c584610b7385828b97612ffe9903911015614677565b6130376effffffffffffffffffffffffffffff604051951695868652878601906040809180358452602081013560208501520135910152565b608084015260a08301527f119e7f996dc987b3ae79eb3735f1620c4292f6a7761a1e0f834c445f7798b91260c03393a3604051908152f35b90506020813d60201161309a575b8161308a60209383614524565b8101031261256d57516020612fd2565b3d915061307d565b604051903d90823e3d90fd5b7fdc868246000000000000000000000000000000000000000000000000000000008452600452602483fd5b7f4bd9e476000000000000000000000000000000000000000000000000000000008552600452602484fd5b6004837f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b6004847fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004837f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b50801515612e62565b50346104f45760c06003193601126104f45760043560807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112612deb5760a43567ffffffffffffffff8111611a48576131e4903690600401614335565b6131ee36336147d5565b8354831015611a5b578284526001602052604084209161320d83614a5e565b61271061ffff61321b6145bd565b1611613629576001600160a01b036132316145ce565b16151580613610575b156135e8576001600160a01b0361324f6145fa565b16158015906135c8575b156135a05784906132be61326b6145bd565b60038601907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fffff00000000000000000000000000000000000000000000000000000000000083549260f01b169116179055565b6132c66145fa565b6001600160a01b036007860191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055600884016001600160a01b038154166001600160a01b0361331a6145ce565b1681036134d2575b505061332c6145e4565b60068501805490916001600160a01b03908116911614613499576001600160a01b036133566145e4565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556001600160a01b0361338e6145e4565b1692833b15611a48576133d4938392836040518097819582947fa467cc590000000000000000000000000000000000000000000000000000000084528c600485016145a3565b03925af191821561348c578492613473575b50506133f191614cb6565b6040516001600160a01b03613404614309565b16815260443561ffff8116809103611a575760208201526001600160a01b0361342b61431f565b1660408201526084356001600160a01b038116809103611a57578160809160607fea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b974940152a280f35b8192509061348091614524565b611a485781835f6133e6565b50604051903d90823e3d90fd5b5050506134aa57816133f191614cb6565b6004837f38ad7932000000000000000000000000000000000000000000000000000000008152fd5b613550906134e08888614b1f565b506134e9614610565b908886526002602052604086206001600160a01b0382165f5260205260ff600260405f20015460e01c16151560608301528886526002602052604086206001600160a01b0382165f5260205260ff600260405f20015460e81c1615156080830152886151a7565b6001600160a01b036135606145ce565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556135996135936145ce565b8661507e565b5f80613322565b6004857f91eaafa1000000000000000000000000000000000000000000000000000000008152fd5b506effffffffffffffffffffffffffffff600184015460781c1615613259565b6004857fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b506001600160a01b036136216145e4565b16151561323a565b6004857fe15e46cb000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f4576105546040602092600435815260018452206150cc565b50346104f4576105546020916136946040611955366142dd565b90615b81565b50346104f45760406003193601126104f4576001600160a01b0360406136be614309565b92600435815260026020522091165f52602052602078ffffffffffffffffffffffffffffffffffffffffffffffffff600360405f20015416604051908152f35b503461256d5760a060031936011261256d576137186142f3565b60243560ff811680910361256d57604435926001600160a01b038416840361256d5761374261431f565b9260843567ffffffffffffffff811161256d57613763903690600401614335565b61377096919636336147d5565b6001600160a01b0383169283151580613fec575b80613fda575b15613fb257856006111580613fa7575b15613f7f576137d5906001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b613f57575f54955f198714613f2a576001600160a01b0390600188015f55845f5260046020528760405f20551696873b1561256d57613845915f9160405193849283927fa467cc590000000000000000000000000000000000000000000000000000000084528b600485016145a3565b0381838b5af18015613f1f57613f0a575b50604051957ff5fe86ee00000000000000000000000000000000000000000000000000000000875285600488015283602488015283604488015283606488015283608488015260208760a481845afa928315613eff5786978594613ec4575b5090869291836b033b2e3c9fd0803ce800000097426138d390614fe4565b6138dc8861502a565b90604051916138ea83614485565b8a83528a60208401528360408401528a60608401528a60808401528a60a08401528a60c08401528a60e08401528a6101008401528b6101208401526bffffffffffffffffffffffff1661014083015264ffffffffff1661016082015283610180820152846101a0820152886101c08201526001600160a01b0386166101e0820152886102008201528289526001602052604089209080516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1682546effffffffffffffffffffffffffffff191617825560208101516effffffffffffffffffffffffffffff16613a249083907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b604081015182549060f01b7eff00000000000000000000000000000000000000000000000000000000000016907fff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff161782556001820160608201516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1681546effffffffffffffffffffffffffffff191617815560808201516effffffffffffffffffffffffffffff16613b2191907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b60a081015160180b600283019081547fffffffffffffff00000000000000000000000000000000000000000000000000169078ffffffffffffffffffffffffffffffffffffffffffffffffff161790556003820160c08201516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1681546effffffffffffffffffffffffffffff191617815560e08201516effffffffffffffffffffffffffffff16613c1d9082907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b61010082015181547fffff00000000000000000000000000000000000000000000000000000000000060f09290921b919091167dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90911617905561012081015161014082015161016083015160d81b7fffffffffff000000000000000000000000000000000000000000000000000000166effffffffffffffffffffffffffffff90921660789190911b7affffffffffffffffffffffff00000000000000000000000000000016171760048301556101808101516005830180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b03938416179091556101a083015160068501805483169184169190911790556101c083015160078501805483169184169190911790556101e083015160088501805490921692169190911790556102000151600990910180547fffffffffffffff000000000000000000000000000000000000000000000000001678ffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055613dc8858361507e565b60405190815260207f92fb402b777f3710166f15b30098f41042b439850df67d0195196d125458e7b391a360405191613e00836144cf565b6001600160a01b031682528460208301526040820152836060820152604051613e6081928291909160606001600160a01b0381608084019582815116855261ffff6020820151166020860152826040820151166040860152015116910152565b037fea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b97491a26040519283526020830152604082015260607fa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f1488335091a2604051908152602090f35b9291965092506020823d602011613ef7575b81613ee360209383614524565b8101031261256d57905186959092866138b5565b3d9150613ed6565b6040513d86823e3d90fd5b613f179193505f90614524565b5f915f613856565b6040513d5f823e3d90fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b7f603c058b000000000000000000000000000000000000000000000000000000005f5260045ffd5b7fe2364765000000000000000000000000000000000000000000000000000000005f5260045ffd5b50601286111561379a565b7fe6c4247b000000000000000000000000000000000000000000000000000000005f5260045ffd5b506001600160a01b038716151561378a565b506001600160a01b0383161515613784565b3461256d57604060031936011261256d57602061404761401c614309565b6004355f52600383526001600160a01b0360405f209116906001915f520160205260405f2054151590565b6040519015158152f35b3461256d57602060031936011261256d576004355f5260016020526040805f206140a261407d82614ee6565b61409c816effffffffffffffffffffffffffffff600386015416615b17565b92614f97565b82519182526020820152f35b3461256d5760206001600160a01b036140d96140c9366142dd565b905f526003845260405f20615b3f565b90549060031b1c16604051908152f35b3461256d57602060031936011261256d5760206140476141076142f3565b6001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b3461256d57602060031936011261256d576004355f526001602052602061055460405f2061069c61407d82614ee6565b3461256d57614177366142dd565b905f5481101561426357805f5260016020526142358260405f2061419a81614a5e565b6141a5823383614d6f565b6effffffffffffffffffffffffffffff6141d083828454166141ca8180841115614422565b03614ddc565b166effffffffffffffffffffffffffffff198254161781556142176141f483614ddc565b61278760018401916effffffffffffffffffffffffffffff835460781c16614455565b6142218482614cb6565b6001600160a01b0360053392015416614e36565b6040519182527f69bb3893073d7a893f3933f3871309fc25acfc72e365b71f554d439a85b20e8b60203393a3005b7fb77e1e0f000000000000000000000000000000000000000000000000000000005f5260045ffd5b3461256d57602060031936011261256d576004356142a936336147d5565b5f5481101561426357806020915f526001825261055460405f20916142cd83614a5e565b6142d78184614b1f565b92614cb6565b600319604091011261256d576004359060243590565b600435906001600160a01b038216820361256d57565b602435906001600160a01b038216820361256d57565b606435906001600160a01b038216820361256d57565b9181601f8401121561256d5782359167ffffffffffffffff831161256d576020838186019501011161256d57565b60a060031982011261256d576004359160607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc60243593011261256d57604490565b600319606091011261256d5760043590602435906044356001600160a01b038116810361256d5790565b60e060031982011261256d57600435916024356001600160a01b038116810361256d577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc60a09193011261256d57604490565b1561442a5750565b7fc730333f000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b906effffffffffffffffffffffffffffff809116911601906effffffffffffffffffffffffffffff8211613f2a57565b610220810190811067ffffffffffffffff8211176144a257604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6080810190811067ffffffffffffffff8211176144a257604052565b60a0810190811067ffffffffffffffff8211176144a257604052565b610140810190811067ffffffffffffffff8211176144a257604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176144a257604052565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe093818652868601375f8582860101520116010190565b6040906145ba949281528160208201520191614565565b90565b60443561ffff8116810361256d5790565b6024356001600160a01b038116810361256d5790565b6064356001600160a01b038116810361256d5790565b6084356001600160a01b038116810361256d5790565b6040519061461d826144eb565b5f6080838281528260208201528260408201528260608201520152565b906effffffffffffffffffffffffffffff809116911603906effffffffffffffffffffffffffffff8211613f2a57565b91908201809211613f2a57565b1561467f5750565b7f80561eeb000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b359064ffffffffff8216820361256d57565b3590811515820361256d57565b91908260a091031261256d576040516146e1816144eb565b80926146ec816146aa565b82526146fa602082016146aa565b602083015260408101359062ffffff8216820361256d576080614735918193604086015261472a606082016146bc565b6060860152016146bc565b910152565b9078ffffffffffffffffffffffffffffffffffffffffffffffffff8091169116039078ffffffffffffffffffffffffffffffffffffffffffffffffff8211613f2a57565b81810292918115918404141715613f2a57565b9078ffffffffffffffffffffffffffffffffffffffffffffffffff8091169116019078ffffffffffffffffffffffffffffffffffffffffffffffffff8211613f2a57565b7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0054916001600160a01b038316928160041161256d575f5f9060405f8151966001600160a01b0360208901917fb700961300000000000000000000000000000000000000000000000000000000835216978860248201523060448201527fffffffff0000000000000000000000000000000000000000000000000000000083351660648201526064815261488a608482614524565b828052826020525190895afa614a4b575b156148a8575b5050505050565b63ffffffff1615614a1f577fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000177ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0055823b1561256d576020925f92836040518096819582947f94c7d7ee0000000000000000000000000000000000000000000000000000000084526004840152604060248401527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6044850192808452808786860137868582860101520116010103925af18015613f1f57614a0f575b507fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0054167ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00555f808080806148a1565b5f614a1991614524565b5f61499e565b827f068ca9d8000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b50505f516020518060201c15029061489b565b60048101805460d81c4214614b1b576effffffffffffffffffffffffffffff614aad83610b73614a90614b1996614ee6565b91612787614aa1610b7385846159a0565b86835460781c16614455565b166effffffffffffffffffffffffffffff19825416178155614ace42614fe4565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff7fffffffffff00000000000000000000000000000000000000000000000000000083549260d81b169116179055565b565b5050565b6effffffffffffffffffffffffffffff815460781c1691614b43610b73848461556b565b916effffffffffffffffffffffffffffff8316938415614cad576001600160a01b0360088301541693835f52600260205260405f206001600160a01b0386165f52602052600260405f20019260ff845460e01c1615614c85577fafd21228e21de4a3f779e1cc3617e12672c3da091dcf3812a931036aa0bf633c93600182016effffffffffffffffffffffffffffff614bdf8582845416614455565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff614c148482845416614455565b166effffffffffffffffffffffffffffff198254161790557fffff000000000000000000000000000000ffffffffffffffffffffffffffffff8154169055614c7f60405192839283602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a390565b7fe86fa032000000000000000000000000000000000000000000000000000000005f5260045ffd5b50505050505f90565b60607fa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f1488335091600481016effffffffffffffffffffffffffffff8082541692614d56614d018589846156e9565b93614d0b8561502a565b7fffffffffff000000000000000000000000ffffffffffffffffffffffffffffff7affffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b5460781c169060405192835260208301526040820152a2565b6001600160a01b0360078192015416911603614db45715614d8c57565b7f2c5211c6000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f3c6b7746000000000000000000000000000000000000000000000000000000005f5260045ffd5b6effffffffffffffffffffffffffffff8111614e06576effffffffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52607860045260245260445ffd5b916001600160a01b03604051927fa9059cbb000000000000000000000000000000000000000000000000000000005f521660045260245260205f60448180865af19060015f5114821615614ec5575b60405215614e905750565b6001600160a01b03907f5274afe7000000000000000000000000000000000000000000000000000000005f521660045260245ffd5b906001811516614edd57823b15153d15161690614e85565b503d5f823e3d90fd5b60048101546effffffffffffffffffffffffffffff8116908060d81c92428414908115614f54575b50614f4e5742831161256d576301e133806b033b2e3c9fd0803ce8000000916bffffffffffffffffffffffff6145ba9542039160781c1602040190615b17565b50905090565b600301546effffffffffffffffffffffffffffff811615915081614f7a575b505f614f0e565b6effffffffffffffffffffffffffffff915060781c16155f614f73565b61297f9061297a612975614fcc9460026effffffffffffffffffffffffffffff600386015460781c1694015460180b9361477e565b6b033b2e3c9fd0803ce8000000808206151591040190565b64ffffffffff8111614ffa5764ffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52602860045260245260445ffd5b6bffffffffffffffffffffffff811161504e576bffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52606060045260245260445ffd5b614b199161508c81836158f8565b60405191615099836144eb565b64ffffffffff83525f60208401525f6040840152600160608401525f60808401526151a7565b91908203918211613f2a57565b6145ba906151a16150dc82614ee6565b61519b615147846111136003820154611113866effffffffffffffffffffffffffffff61514061297f78ffffffffffffffffffffffffffffffffffffffffffffffffff600960028a015460180b990154169761297a61297586868a60781c1661477e565b931661477e565b6effffffffffffffffffffffffffffff615190865492826151738160018b015460781c16828716614455565b916b033b2e3c9fd0803ce80000008082061515910401911661466a565b9160781c16906150bf565b926159a0565b906150bf565b906001600160a01b037f90984699e37aaae5f79c2f33e480f273509662005a8ff82a17b325eb7072454e91835f52600260205260405f208282165f5260205260405f2060028651910190867cff0000000000000000000000000000000000000000000000000000000083547fffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff78ffffffffff0000000000000000000000000000000000000000602085015160a01b167fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff7bffffff00000000000000000000000000000000000000000000000000604087015160c81b16937fffffffff00000000000000000000000000ffffffffffffffffffffffffffffff73ffffffffff0000000000000000000000000000007dff0000000000000000000000000000000000000000000000000000000000608060608b0151151560e01b9a0151151560e81b169960781b169116171617161791161717905561537160405192839216958291909160808060a083019464ffffffffff815116845264ffffffffff602082015116602085015262ffffff604082015116604085015260608101511515606085015201511515910152565b0390a3565b6153ee61548392936153c76effffffffffffffffffffffffffffff6004850154169360038101612b8e8460026effffffffffffffffffffffffffffff845460781c16940193845460180b9089615beb565b6effffffffffffffffffffffffffffff855460781c16926001860193845460180b91615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000083929354169078ffffffffffffffffffffffffffffffffffffffffffffffffff1617905582907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b62ffffff600282015460c81c1662ffffff81149182156154cf575b5050156154a757565b7fa664e075000000000000000000000000000000000000000000000000000000005f5260045ffd5b5491506effffffffffffffffffffffffffffff82169080155f19829004831115171561256d576effffffffffffffffffffffffffffff910261271080820615159104019160781c1611155f8061549e565b81810392915f138015828513169184121617613f2a57565b156155405750565b7fde3fc6ae000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b6effffffffffffffffffffffffffffff6001615586836150cc565b92015416620f42408101809111613f2a57620f42408201809211613f2a576145ba92615e75565b60206001600160a01b037f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9216807fffffffffffffffffffffffff00000000000000000000000000000000000000007ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005416177ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0055604051908152a1565b6effffffffffffffffffffffffffffff6001615666836150cc565b9201541690620f42408101809111613f2a57620f42408201809211613f2a576145ba92615dc3565b60026156c36effffffffffffffffffffffffffffff93946156cf93856124a8856156b785614ddc565b9301928284541661463a565b93019282845416614455565b166effffffffffffffffffffffffffffff19825416179055565b9160a46020926001600160a01b0360068601541661572f6effffffffffffffffffffffffffffff875416946effffffffffffffffffffffffffffff600389015416615b17565b956effffffffffffffffffffffffffffff600178ffffffffffffffffffffffffffffffffffffffffffffffffff60098401541692015460781c169060405197889687957ff5fe86ee0000000000000000000000000000000000000000000000000000000087526004870152602486015260448501526b033b2e3c9fd0803ce80000008082061515910401606484015260848301525afa908115613f1f575f916157d6575090565b90506020813d6020116157fd575b816157f160209383614524565b8101031261256d575190565b3d91506157e4565b6effffffffffffffffffffffffffffff6001615820836150cc565b9201541690620f42408101809111613f2a57620f42408201809211613f2a576145ba92615e75565b6effffffffffffffffffffffffffffff6001615863836150cc565b92015416620f42408101809111613f2a57620f42408201809211613f2a576145ba92615dc3565b78ffffffffffffffffffffffffffffffffffffffffffffffffff81116158c85778ffffffffffffffffffffffffffffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f5260c860045260245260445ffd5b805f5260036020526159186001600160a01b0360405f2093168093615e10565b15615943577f47acdb603dbca71028fbd9b37192e17a62e64fa160e2e607eef3853b792ea5ab5f80a3565b7f04c94583000000000000000000000000000000000000000000000000000000005f5260045ffd5b61297f9061297a6129756145ba9461296f60016effffffffffffffffffffffffffffff835460781c1692015460180b94614ee6565b906effffffffffffffffffffffffffffff60048301541690808214615b10576003830154928360f01c938415614cad5783916effffffffffffffffffffffffffffff82169160781c6effffffffffffffffffffffffffffff16600282015460180b916009015478ffffffffffffffffffffffffffffffffffffffffffffffffff168583615a2e83988561477e565b615a3790615c9d565b90615a4191615520565b615a4a90615cf2565b90615a55908661477e565b90615a5f9161466a565b90615a699161466a565b95615a739161477e565b615a7c90615c9d565b90615a8691615520565b615a8f90615cf2565b91615a999161477e565b90615aa39161466a565b90615aad9161466a565b6b033b2e3c9fd0803ce800000081061515906b033b2e3c9fd0803ce8000000900401906b033b2e3c9fd0803ce800000081061515906b033b2e3c9fd0803ce800000090040190615afc916150bf565b90805f1904821161256d5761271091020490565b5050505f90565b815f19048111158215171561256d57026b033b2e3c9fd0803ce8000000808206151591040190565b8054821015615b54575f5260205f2001905f90565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b744f3a68dbc8f03f243baf513267aa9a3ee524f8e028811182151761256d576b033b2e3c9fd0803ce80000000290808206151591040190565b744f3a68dbc8f03f243baf513267aa9a3ee524f8e028811182151761256d576b033b2e3c9fd0803ce8000000020490565b93929193615c0f615c0661297f8761297a612975868861477e565b92843590615d7e565b926020810135955f8782019788129112908015821691151617613f2a576040615c4561297f8861297a612975615c4e978a61477e565b9101359061466a565b036154a757615c5c90614ddc565b8260180b92808403615c6d57509190565b7f327269a7000000000000000000000000000000000000000000000000000000005f5260c860045260245260445ffd5b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8111615cc75790565b7f24775e06000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b5f8112615cfc5790565b7fa8ce4432000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c1615615d5657565b7fd7e6bcf8000000000000000000000000000000000000000000000000000000005f5260045ffd5b5f821215615db9577f80000000000000000000000000000000000000000000000000000000000000008214613f2a576145ba915f03906150bf565b906145ba9161466a565b91615dcf818385615e75565b918115615de3576145ba930915159061466a565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f828152600182016020526040902054615e6f57805490680100000000000000008210156144a257615e49826001809401835582615b3f565b81549060031b905f1986831b921b19161790558054925f520160205260405f2055600190565b50505f90565b90915f198383099280830292838086109503948086039514615f065784831115615eee5790829109815f0382168092046002816003021880820260020302808202600203028082026002030280820260020302808202600203028091026002030293600183805f03040190848311900302920304170290565b82634e487b715f52156003026011186020526024601cfd5b505080925015615de357049056fea164736f6c634300081c000a","sourceMap":"201:550:21:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;358:4:30;201:550:21;358:4:30;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;:::i;:::-;;;;;358:4:30;;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23091:7:19;201:550:21;;;;;23091:23:19;-1:-1:-1;;;;;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;;;358:4:30;;;:::i;:::-;201:550:21;;;;;358:4:30;;;;201:550:21;;;;;;;;358:4:30;;201:550:21;;;;;;;;;;358:4:30;;;23091:7:19;201:550:21;;;;;;;;;;358:4:30;;201:550:21;;;;;;;;;358:4:30;;201:550:21;;;;;;;;;358:4:30;;201:550:21;;;;;;;;;;;;;;;;;;;;;;473:3:29;;201:550:21;;;473:3:29;;;201:550:21;;;;473:3:29;;201:550:21;;;;;;;;358:4:30;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;1574:1:19;201:550:21;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;1488:2:19;201:550:21;;;;;;;;16057:40:19;201:550:21;;;;;;:::i;:::-;;;;;16057:7:19;201:550:21;;;16057:40:19;:::i;:::-;201:550:21;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;473:3:29;;;:::i;:::-;;201:550:21;;;;23293:7:19;201:550:21;;;23293:23:19;201:550:21;-1:-1:-1;201:550:21;;;;23293:7:19;201:550:21;-1:-1:-1;201:550:21;23365:16:19;201:550:21;;;;358:4:30;;;;:::i;:::-;201:550:21;;;;;358:4:30;;201:550:21;;;;;;23335:221:19;;358:4:30;201:550:21;;;;;;23335:221:19;;201:550:21;;;;;;;;23335:221:19;;;473:3:29;;;201:550:21;;;23335:221:19;;;473:3:29;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;20124:67:19;201:550:21;;;;;;;;;;;20145:46:19;201:550:21;;;;;;20169:21:19;;;;:::i;:::-;20145:46;;:::i;:::-;20124:67;;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;21644:69:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;;;;;;;;;21608:7:19;201:550:21;;;21608:23:19;201:550:21;-1:-1:-1;201:550:21;;;27265:33:19;201:550:21;-1:-1:-1;201:550:21;1162:38:25;201:550:21;;;;1178:21:25;;;:::i;:::-;1162:38;;:::i;:::-;27265:33:19;;:::i;:::-;5971:149:30;;;;;;;;;21644:69:19;;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;;358:4:30;201:550:21;;;;358:4:30;;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;358:4:30;;;:::i;:::-;201:550:21;;;;;;;;358:4:30;;201:550:21;;;;;;;;358:4:30;201:550:21;;;;;;;;358:4:30;201:550:21;;;;;;;;;;;358:4:30;201:550:21;;;;;;358:4:30;201:550:21;;;;;;;;;358:4:30;201:550:21;;;;;;;;;;358:4:30;201:550:21;;;;;;;;358:4:30;201:550:21;;;;;358:4:30;201:550:21;;;;;;;;;;358:4:30;201:550:21;;;;;;;;358:4:30;201:550:21;;;;;358:4:30;-1:-1:-1;;;;;201:550:21;;;;;;;;358:4:30;-1:-1:-1;;;;;201:550:21;;;;;;;;358:4:30;-1:-1:-1;;;;;201:550:21;;;;;;;;358:4:30;-1:-1:-1;;;;;201:550:21;;;;;;;;358:4:30;201:550:21;;;;;;358:4:30;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;7710:7:19;201:550:21;;;;;;;;;7758:7:19;201:550:21;;;;;-1:-1:-1;;;;;7775:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;7793:12:19;;;:::i;:::-;28414:4;-1:-1:-1;;;;;201:550:21;;28400:19:19;201:550:21;;28452:10:19;;201:550:21;;7758:7:19;28494:12;473:3:29;;;201:550:21;;;;;;;;473:3:29;;201:550:21;;;;;8061:27:19;201:550:21;;8240:6:19;201:550:21;;-1:-1:-1;;;;;8205:16:19;201:550:21;;8112:42:19;201:550:21;;;;;;7903:19:19;7895:62;7903:19;;;;;7895:62;:::i;:::-;7981:29;:41;:29;;;;:::i;:::-;:41;:::i;:::-;8028:17;;7710:7;8028:17;;201:550:21;8028:27:19;201:550:21;;;;;8028:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;;;;8061:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;8112:42:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;8183:7:19;;;;:::i;:::-;8205:16;201:550:21;;8240:6:19;:::i;:::-;201:550:21;;;;;;;;;;;;;;;7775:10:19;;8259:43;;201:550:21;;;;8259:43:19;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;21049:7:19;201:550:21;;;21049:23:19;201:550:21;-1:-1:-1;201:550:21;;;;;21049:7:19;201:550:21;-1:-1:-1;201:550:21;21049:35:19;201:550:21;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;358:4:30;;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19789:17:19;;;201:550:21;;19830:18:19;;;;201:550:21;;;19870:16:19;-1:-1:-1;;;;;19920:28:19;19870:16;;;;201:550:21;;19920:28:19;;201:550:21;;;;;358:4:30;;;;:::i;:::-;;;201:550:21;19754:203:19;;358:4:30;201:550:21;19754:203:19;;358:4:30;201:550:21;19754:203:19;;358:4:30;201:550:21;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17431:16:19;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;:::i;:::-;17148:30:19;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;15375:20:19;201:550:21;;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;15367:7:19;201:550:21;;-1:-1:-1;;;;;15367:52:19;201:550:21;-1:-1:-1;201:550:21;15367:52:19;201:550:21;;15367:66:19;15279:159;;17148:30;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;19415:27:19;201:550:21;;;;;;;;;;;19415:27:19;201:550:21;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;21957:37:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;;;;;;;;;21921:7:19;201:550:21;;;21921:23:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;21957:37:19;;:::i;201:550:21:-;;;;;15688:42:19;201:550:21;;;;;;:::i;:::-;;;;;15688:7:19;201:550:21;;;15688:42:19;:::i;201:550:21:-;;;;;;;;:::i;:::-;;;;;;10420:7:19;201:550:21;;;;;;;;;10468:7:19;201:550:21;;;;;-1:-1:-1;;;;;10485:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;10503:12:19;;;;:::i;:::-;201:550:21;10573:31:19;;201:550:21;30156:15:19;;;;;:39;;;201:550:21;;;;;10468:7:19;30227:12;;473:3:29;201:550:21;;;;;;1162:38:25;201:550:21;;;;1178:21:25;;;:::i;1162:38::-;30335:33:19;;;;:::i;:::-;30382:20;;;;201:550:21;;30453:30:19;;;;201:550:21;;1997:21:25;;;;10844:79:19;201:550:21;10634:48:19;1979:40:25;11060:7:19;1997:21:25;;201:550:21;1997:21:25;;:::i;:::-;1979:40;;:::i;10634:48:19:-;10688:17;;;201:550:21;10688:32:19;201:550:21;;;;;10688:32:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;10726:32:19;201:550:21;;;;;10726:32:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;10797:12:19;;;;;:::i;:::-;201:550:21;10867:16:19;10844:39;201:550:21;;10867:16:19;;201:550:21;;10844:39:19;;:::i;:::-;:79;:::i;:::-;10949:28;;;;:::i;:::-;201:550:21;10929:48:19;:16;;;201:550:21;;;;;10929:48:19;:::i;:::-;201:550:21;358:4:30;;;;;;;201:550:21;10983:48:19;10688:17;11003:28;;;:::i;:::-;10983:16;;201:550:21;;;;;10983:48:19;:::i;:::-;201:550:21;358:4:30;;;;;;;11060:7:19;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11080:79:19;201:550:21;10485:10:19;11080:79;;201:550:21;;;;;5971:149:30;;;;;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30156:39:19;30175:20;;;;30156:39;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;;;:::i;:::-;3095:66:2;201:550:21;;;;;;6175:44:2;;;;201:550:21;6171:95:2;;201:550:21;;;;3095:66:2;201:550:21;-1:-1:-1;;;;;201:550:21;;665:23;201:550;;1992:16:0;6595:66:2;;;:::i;:::-;;;:::i;:::-;1992:16:0;:::i;:::-;201:550:21;3095:66:2;201:550:21;;3095:66:2;201:550:21;6370:20:2;201:550:21;;;271:1;201:550;;6370:20:2;201:550:21;;6171:95:2;201:550:21;6236:23:2;;;;;6175:44;201:550:21;271:1;201:550;;;6194:25:2;;6175:44;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;22356:7:19;201:550:21;;;22356:23:19;201:550:21;-1:-1:-1;201:550:21;;;;;-1:-1:-1;201:550:21;;;;;;;;22418:26:19;;201:550:21;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;3585:10:0;201:550:21;953:10:1;3585::0;:::i;:::-;201:550:21;;5534:21:19;;201:550:21;;;-1:-1:-1;;;;;201:550:21;;5588:19:19;201:550:21;;;5663:42:19;5651:5;;;;;;:::i;:::-;201:550:21;;;:::i;:::-;5663:42:19;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;;;;;16242:42:19;201:550:21;;;;;;:::i;:::-;;;;;16242:7:19;201:550:21;;;16242:42:19;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;-1:-1:-1;;;;;1584:61:0;201:550:21;;;;;;;;;;;;;;;;:::i;:::-;3585:10:0;201:550:21;;;;953:10:1;3585::0;:::i;:::-;201:550:21;;;11413:7:19;201:550:21;;;;;;;;;11467:7:19;201:550:21;;;;;-1:-1:-1;;;;;953:10:1;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;;;;;11467:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;11605:23:19;201:550:21;-1:-1:-1;201:550:21;11564:12:19;;;:::i;:::-;11605:23;201:550:21;;;;;5971:149:30;;;;;;;;;11662:31:19;;11661:63;5971:149:30;;;5396:162;5971:149;5396:162;;;5971:149;5396:162;;;;;11467:7:19;11661:63;;;30671:18;473:3:29;201:550:21;473:3:29;;201:550:21;;;;;;30722:20:19;;201:550:21;;5971:149:30;12142:7:19;5971:149:30;201:550:21;5971:149:30;;;;;;;;;;11873:41:19;:53;:41;;;;:::i;:53::-;11932:17;11413:7;11932:17;;201:550:21;11932:27:19;201:550:21;;;;;11932:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;11965:33:19;201:550:21;;;;;11965:33:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;12024:28:19;;;:::i;:::-;201:550:21;12004:48:19;:16;;;201:550:21;;;;;12004:48:19;:::i;:::-;201:550:21;358:4:30;;;;;;;201:550:21;12058:55:19;12085:28;;;:::i;:::-;201:550:21;;;;12058:55:19;:::i;12142:7::-;12162:70;-1:-1:-1;;;;;201:550:21;;;;953:10:1;;12162:70:19;953:10:1;12162:70:19;;;201:550:21;;;;;;;;;;;;;;;;;12162:70:19;;;;201:550:21;;;;;;;;;;;;5396:162:30;;;;11661:63:19;11467:7;11661:63;;;;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;17590:32:19;201:550:21;;;;;;;;;;;17590:32:19;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;;;271:1;201:550;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;17901:28:19;201:550:21;;;;;;;;;;;;;1979:40:25;201:550:21;;1997:21:25;201:550:21;;;;:::i;:::-;;;;;16798:7:19;201:550:21;;;1997:21:25;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3585:10:0;201:550:21;;;;953:10:1;3585::0;:::i;:::-;201:550:21;;6170:21:19;;201:550:21;;;;;;;;;;;;;;6260:12:19;;;;:::i;:::-;-1:-1:-1;;;;;6307:16:19;;;201:550:21;;6280:81:19;;;;;;;201:550:21;;;;;;6280:81:19;;;;;;201:550:21;6280:81:19;;;201:550:21;6280:81:19;;;:::i;:::-;;;;;;;;;;;201:550:21;6389:7:19;;;;;:::i;6280:81::-;;;;;:::i;:::-;201:550:21;;6280:81:19;;;;201:550:21;;;;6280:81:19;201:550:21;;;;;;;;;6280:81:19;201:550:21;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;8472:7:19;201:550:21;;;;;;;;;8520:7:19;201:550:21;;;;;-1:-1:-1;;;;;8537:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;8555:12:19;;;;:::i;:::-;28900:4;-1:-1:-1;;;;;201:550:21;;28886:19:19;201:550:21;;28938:10:19;;201:550:21;;8520:7:19;28980:12;;473:3:29;201:550:21;;;;;;;;;473:3:29;;;201:550:21;;;;;;;;29112:61:19;1162:38:25;201:550:21;;;;1178:21:25;;;:::i;1162:38::-;27265:33:19;;;;:::i;29112:61::-;201:550:21;29194:32:19;;:163;;;;;201:550:21;;;;;;8838:32:19;201:550:21;;9022:6:19;201:550:21;;-1:-1:-1;;;;;8987:16:19;201:550:21;;8894:42:19;201:550:21;;;;;;8670:19:19;8662:62;8670:19;;;;;8662:62;:::i;:::-;1722:21:25;8753:41:19;1706:38:25;1722:21;;;:::i;:::-;1706:38;;:::i;8753:41:19:-;8800:17;;;;;201:550:21;8800:32:19;201:550:21;;;;;8800:32:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;;;;8838:32:19;:::i;9022:6::-;201:550:21;;;;;;;;;;;;;;;8537:10:19;;9041:46;;201:550:21;;;;9041:46:19;201:550:21;;;;;;;;;;;29194:163:19;201:550:21;;29304:53:19;:13;201:550:21;29238:52:19;201:550:21;;;;;;29271:2:19;201:550:21;29238:52:19;;:::i;:::-;29304:13;;:::i;:::-;201:550:21;29328:16:19;;;201:550:21;;5971:149:30;;;;;;;;;29304:53:19;;:::i;:::-;-1:-1:-1;29238:119:19;29194:163;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;3585:10:0;201:550:21;953:10:1;3585::0;:::i;:::-;201:550:21;;5875:21:19;;201:550:21;;;;;;5929:14:19;201:550:21;;11736:55:6;201:550:21;;;-1:-1:-1;;;;;201:550:21;;11736:55:6;4874:14;4782:123;-1:-1:-1;201:550:21;4874:14:6;201:550:21;;;-1:-1:-1;201:550:21;;4874:26:6;;4782:123;;11736:55;201:550:21;;;;5993:42:19;201:550:21;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;1650:16:19;201:550:21;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;20836:71:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;;;;;;;;;20871:7:19;201:550:21;;;20871:23:19;201:550:21;-1:-1:-1;201:550:21;;;;20871:7:19;201:550:21;-1:-1:-1;201:550:21;20871:35:19;201:550:21;;20836:71:19;;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;1584:61:0;201:550:21;;;;;4338:71:0;;;;201:550:21;;4338:71:0;201:550:21;;;;;;;;4338:71:0;201:550:21;4338:71:0;;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;20495:50:19;201:550:21;;;;;;;;;;;;;20523:21:19;;;;:::i;:::-;20495:50;;:::i;201:550:21:-;;;;;;;;:::i;:::-;;;;13559:7:19;201:550:21;;;;;;;;13613:7:19;201:550:21;;;;;-1:-1:-1;;;;;13630:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;;;;13613:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;13713:12:19;;;;:::i;:::-;13613:7;31151:18;;473:3:29;201:550:21;;;;;31151:42:19;;;201:550:21;;;;473:3:29;;201:550:21;;31226:19:19;;:44;;201:550:21;;;;31300:10:19;;201:550:21;;-1:-1:-1;;;;;31351:20:19;;13876:6;31351:20;;;;31377:216;13613:7;13912;31351:20;;201:550:21;;;;;;31392:31:19;201:550:21;31392:31:19;;:165;;;;;201:550:21;31377:216:19;;:::i;:::-;13876:6;:::i;:::-;13912:7;:::i;:::-;201:550:21;;;;;;13630:10:19;13932:52;201:550:21;13630:10:19;13932:52;;201:550:21;;31392:165:19;201:550:21;;31500:57:19;31522:34;201:550:21;;31435:51:19;201:550:21;;;;;;31467:2:19;201:550:21;31435:51:19;;:::i;:::-;201:550:21;;31522:34:19;:::i;:::-;31500:57;;:::i;:::-;-1:-1:-1;31435:122:19;31392:165;;;201:550:21;;;;;;;;;;;;;;31226:44:19;31250:20;201:550:21;13613:7:19;31250:20;;473:3:29;;;201:550:21;31249:21:19;31226:44;;201:550:21;;;;;;;31151:42:19;31173:20;201:550:21;13613:7:19;31173:20;;473:3:29;201:550:21;;;31151:42:19;;201:550:21;;;;;;;;:::i;:::-;;;;12951:7:19;201:550:21;;;;;;;;;12951:7:19;201:550:21;;-1:-1:-1;;;;;12995:28:19;201:550:21;;;12995:28:19;201:550:21;;;;;;13063:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;;;;13063:7:19;201:550:21;;;;;-1:-1:-1;;;;;13147:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;13165:12:19;;;:::i;:::-;201:550:21;13063:7:19;30878:18;;473:3:29;201:550:21;;;;;;30929:13:19;;201:550:21;;13304:6:19;;;;;13340:7;13304:6;;:::i;13340:7::-;201:550:21;;;;;13360:56:19;201:550:21;13147:10:19;13360:56;;201:550:21;;;;;;;;;;;;;;15872:40:19;201:550:21;;;;;;:::i;:::-;;;;;15872:7:19;201:550:21;;;15872:40:19;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;;:::i;:::-;-1:-1:-1;;;;;1584:61:0;201:550:21;;953:10:1;3940:21:0;3936:82;;4027:24;;:29;4023:100;;4142:12;;;:::i;4023:100::-;4073:43;;;-1:-1:-1;;;;;201:550:21;;;;;4073:43:0;3936:82;201:550:21;3978:33:0;;;;953:10:1;201:550:21;;3978:33:0;201:550:21;;;;;;;;:::i;:::-;;;;;;6876:7:19;201:550:21;;;;;;;;;6924:7:19;201:550:21;;;;;-1:-1:-1;;;;;6941:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;6959:12:19;;;:::i;:::-;27920:10;;201:550:21;;6924:7:19;27962:12;473:3:29;;;201:550:21;;;;;;;;;473:3:29;;;201:550:21;;;;;28077:208:19;201:550:21;;;;28092:31:19;201:550:21;28092:31:19;;:157;;;;;28077:208;;:::i;:::-;7040:24;201:550:21;;;;;7040:24:19;:::i;:::-;7088:49;201:550:21;-1:-1:-1;;;;;7095:16:19;;;201:550:21;;;;7088:49:19;;;;201:550:21;7088:49:19;;7131:4;201:550:21;7088:49:19;;201:550:21;7088:49:19;;;;;;;;;;201:550:21;7143:87:19;201:550:21;;;;;;7151:20:19;;;7143:87;:::i;:::-;7253:43;:31;;;;:::i;:43::-;201:550:21;;;;7310:10:19;;;201:550:21;;7344:17:19;;7478:7;7344:17;;201:550:21;7428:21:19;7498:40;7344:17;201:550:21;7344:17:19;;;:27;6876:7;7498:40;7344:17;;201:550:21;;;;;7344:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;7377:27:19;201:550:21;;;;;7377:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;7428:21:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;7478:7:19;:::i;:::-;201:550:21;;6941:10:19;;;;7498:40;;201:550:21;;;;;;;;;;;;;;;;;7498:40:19;;;;201:550:21;;;;;;;;;;;;;7088:49:19;;201:550:21;7088:49:19;;201:550:21;7088:49:19;;;;;;201:550:21;7088:49:19;;;:::i;:::-;;;201:550:21;;;;7143:87:19;201:550:21;;7088:49:19;;201:550:21;-1:-1:-1;201:550:21;;7088:49:19;;;-1:-1:-1;7088:49:19;;;201:550:21;;;;;;;;;28092:157:19;201:550:21;;28200:49:19;201:550:21;28200:40:19;201:550:21;28135:51:19;201:550:21;;;;;;28167:2:19;201:550:21;28135:51:19;;:::i;:::-;201:550:21;;28200:40:19;;:::i;201:550:21:-;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;18886:28:19;201:550:21;;;;;;;;;;;18886:28:19;201:550:21;;;;;;;;;;;;;;;;:::i;:::-;;;;14707:21:19;;201:550:21;;;;;;14775:7:19;201:550:21;;;;;14798:12:19;;;:::i;:::-;14854:6;14842:10;;14854:6;;:::i;:::-;14936:49;14888:24;201:550:21;;;;;14888:24:19;:::i;:::-;14943:16;201:550:21;-1:-1:-1;;;;;14943:16:19;;;201:550:21;;;;14936:49:19;;;;201:550:21;14936:49:19;;14979:4;201:550:21;14936:49:19;;201:550:21;14936:49:19;;;;;;;;;;;;201:550:21;;15102:21:19;201:550:21;14991:87:19;201:550:21;;;;15191:7:19;201:550:21;;14999:20:19;;;14991:87;:::i;15102:21::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;15129:33:19;15144:18;;;:::i;:::-;15129:33;14775:7;15129:11;;201:550:21;;;;;;;15129:33:19;:::i;:::-;201:550:21;;;;;;;;;;;;;;15191:7:19;201:550:21;;;;;15211:36:19;201:550:21;14842:10:19;15211:36;;201:550:21;;14936:49:19;;;;201:550:21;14936:49:19;;201:550:21;14936:49:19;;;;;;201:550:21;14936:49:19;;;:::i;:::-;;;201:550:21;;;;;;;;-1:-1:-1;15102:21:19;14936:49;;;;;-1:-1:-1;14936:49:19;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;22136:7:19;201:550:21;;;22136:23:19;201:550:21;-1:-1:-1;201:550:21;;;;;;-1:-1:-1;201:550:21;;;;;;;;;;;;;;1162:38:25;201:550:21;;1178:21:25;201:550:21;;;;:::i;:::-;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;20662:14:19;201:550:21;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;20308:22:19;201:550:21;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;808:72:26;809:58;201:550:21;;;;;;;;;;;809:39:26;810:26;201:550:21;18638:19:19;;;201:550:21;;;;18729:21:19;18685:22;;;201:550:21;;;18729:21:19;;:::i;:::-;810:26:26;;:::i;:::-;809:39;:::i;:::-;:58;:::i;:::-;808:72;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;;;;;;;;;21295:7:19;201:550:21;;;21295:23:19;201:550:21;-1:-1:-1;201:550:21;;;27265:33:19;201:550:21;-1:-1:-1;201:550:21;1162:38:25;201:550:21;;;;1178:21:25;;;:::i;27265:33:19:-;201:550:21;;;;;5971:149:30;;;;;;;;;201:550:21;;;;;;;;;;;;;:::i;:::-;;;;16610:7:19;201:550:21;;1453:21:25;201:550:21;;;1453:21:25;:::i;:::-;2842:212:30;;-1:-1:-1;;2842:212:30;;;;;;;;;;201:550:21;2842:212:30;201:550:21;;;;2842:212:30;;;201:550:21;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;19115:22:19;201:550:21;19094:19:19;;;201:550:21;;;;19115:22:19;;201:550:21;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;12472:7:19;201:550:21;;;;;-1:-1:-1;;;;;12489:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;12507:12:19;;;;:::i;:::-;12472:7;12535:12;;473:3:29;201:550:21;473:3:29;;201:550:21;;;;;;12613:31:19;201:550:21;12613:36:19;;201:550:21;;;25516:16:19;25777:175;201:550:21;;25516:16:19;;201:550:21;;25567:175:19;25667:19;;;201:550:21;;;;;;25694:22:19;25615:127;201:550:21;12472:7:19;25694:22;;201:550:21;;;;;25615:127:19;;;:::i;:::-;358:4:30;;;;;;;;;;;;201:550:21;;;;;;;;;;;;;;;25567:175:19;25825:127;201:550:21;;;;;;;25904:22:19;201:550:21;25904:22:19;;201:550:21;;;;;25825:127:19;;:::i;:::-;358:4:30;;;;;;;;;;;;25777:175:19;201:550:21;;;;;;;;;;;;;;;25777:175:19;201:550:21;;;;;26036:50:19;;:137;;;;;201:550:21;;;;;;12754:7:19;;;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;12774:49:19;201:550:21;12489:10:19;12774:49;;201:550:21;;;;;;;;;26036:137:19;201:550:21;;-1:-1:-1;201:550:21;;;;1439:411:29;;-1:-1:-1;;1439:411:29;;;;;;;;;;201:550:21;1439:411:29;;;;;;;;;;;201:550:21;;;;26098:75:19;;26036:137;;;;1439:411:29;;;;201:550:21;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;1746:16:19;201:550:21;;;;;;;;;;;:::i;:::-;;;;;9310:7:19;201:550:21;;;;;;;;;9358:7:19;201:550:21;;;;;-1:-1:-1;;;;;9375:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;9393:12:19;;;;:::i;:::-;201:550:21;9457:31:19;;201:550:21;29571:15:19;;;;:39;;;201:550:21;;;;9358:7:19;29642:12;;473:3:29;201:550:21;;;;;;;;473:3:29;;201:550:21;;;;1162:38:25;201:550:21;;;;1178:21:25;;;:::i;1162:38::-;29793:33:19;;;;:::i;:::-;29840:20;;;;201:550:21;;29904:30:19;;;;201:550:21;;1997:21:25;9681:12:19;1997:21:25;9518:48:19;1979:40:25;1997:21;;;:::i;:::-;1979:40;;:::i;9518:48:19:-;9572:17;;;;201:550:21;9572:32:19;201:550:21;;;;;9572:32:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;9610:32:19;201:550:21;;;;;9610:32:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;9681:12:19;;:::i;:::-;5971:149:30;;;;;;;;;201:550:21;9794:45:19;201:550:21;9794:29:19;201:550:21;;;;;9794:29:19;:::i;:45::-;9870:16;9863:49;201:550:21;-1:-1:-1;;;;;9870:16:19;;;201:550:21;;;;9863:49:19;;;;201:550:21;9863:49:19;;9906:4;201:550:21;9863:49:19;;201:550:21;9863:49:19;;;;;;;;;;201:550:21;;;;;10029:21:19;201:550:21;9918:87:19;201:550:21;;;;10079:7:19;201:550:21;;9926:20:19;;;9918:87;:::i;10079:7::-;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10099:83:19;201:550:21;9375:10:19;10099:83;;201:550:21;;;;;;9863:49:19;;;201:550:21;9863:49:19;;201:550:21;9863:49:19;;;;;;201:550:21;9863:49:19;;;:::i;:::-;;;201:550:21;;;;;;9863:49:19;;;;;-1:-1:-1;9863:49:19;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29571:39:19;29590:20;;;;29571:39;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3585:10:0;201:550:21;953:10:1;3585::0;:::i;:::-;201:550:21;;3999:21:19;;201:550:21;;;;;;;;;;;;4089:12:19;;;;:::i;:::-;473:3:29;201:550:21;4118:19:19;;:::i;:::-;201:550:21;4118:55:19;473:3:29;;-1:-1:-1;;;;;4211:18:19;;:::i;:::-;201:550:21;4211:32:19;;:67;;;201:550:21;;;;-1:-1:-1;;;;;4318:29:19;;:::i;:::-;201:550:21;4318:43:19;;;:63;;;201:550:21;473:3:29;;;4454:19:19;;4433:40;4454:19;;:::i;:::-;4433:18;;;358:4:30;;;;;;;;;;;;;;;4433:40:19;4510:29;;:::i;:::-;-1:-1:-1;;;;;4479:28:19;;;201:550:21;;358:4:30;;;;;;;4571:17:19;;;-1:-1:-1;;;;;201:550:21;;;-1:-1:-1;;;;;4616:18:19;;:::i;:::-;201:550:21;4598:36:19;;4594:428;;201:550:21;5032:17:19;;;;:::i;:::-;5053:16;;;201:550:21;;5053:16:19;;-1:-1:-1;;;;;201:550:21;;;;;5032:37:19;201:550:21;;-1:-1:-1;;;;;5098:17:19;;:::i;:::-;201:550:21;358:4:30;;;;;;;-1:-1:-1;;;;;5150:17:19;;:::i;:::-;201:550:21;5123:82:19;;;;;;;201:550:21;;;;;;5123:82:19;;;;;;201:550:21;5123:82:19;;;201:550:21;5123:82:19;;;:::i;:::-;;;;;;;;;;;;;;5028:263;;;5319:7;5028:263;5319:7;:::i;:::-;201:550:21;;-1:-1:-1;;;;;201:550:21;;:::i;:::-;;;;4118:19:19;473:3:29;201:550:21;;;;;;;;;473:3:29;;201:550:21;-1:-1:-1;;;;;201:550:21;;:::i;:::-;;;473:3:29;;201:550:21;4318:29:19;201:550:21;-1:-1:-1;;;;;201:550:21;;;;;;;473:3:29;201:550:21;473:3:29;4318:29:19;5339:34;473:3:29;;201:550:21;5339:34:19;201:550:21;;5123:82:19;;;;;;;;:::i;:::-;201:550:21;;5123:82:19;;;;;;201:550:21;;;;;;;;;;;5028:263:19;5234:18;;;473:3:29;;5028:263:19;5319:7;5028:263;5319:7;:::i;473:3:29:-;201:550:21;473:3:29;;;;;4594:428:19;4905:11;4644:30;;;;;:::i;:::-;;473:3:29;;:::i;:::-;201:550:21;;;;4746:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;;4746:7:19;201:550:21;-1:-1:-1;201:550:21;4746:39:19;473:3:29;201:550:21;;;;;4318:29:19;4725:18;;473:3:29;201:550:21;;;4746:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;;4746:7:19;201:550:21;-1:-1:-1;201:550:21;4814:39:19;473:3:29;;;201:550:21;;;;4793:18:19;;473:3:29;4905:11:19;;:::i;:::-;-1:-1:-1;;;;;4945:18:19;;:::i;:::-;201:550:21;358:4:30;;;;;;;4996:18:19;;;:::i;:::-;;;:::i;:::-;4594:428;;;;473:3:29;201:550:21;473:3:29;;;;;4318:63:19;4365:11;201:550:21;;4365:11:19;;201:550:21;;;;4365:16:19;4318:63;;201:550:21;;;;;;;4211:67:19;4247:17;-1:-1:-1;;;;;4247:17:19;;:::i;:::-;201:550:21;4247:31:19;;4211:67;;473:3:29;201:550:21;473:3:29;;;;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;17744:35:19;201:550:21;;;;;;;;;;;17744:35:19;:::i;201:550:21:-;;;;;1706:38:25;201:550:21;;1722:21:25;201:550:21;;;;:::i;1722:21:25:-;1706:38;;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;22586:7:19;201:550:21;;;22586:23:19;201:550:21;-1:-1:-1;201:550:21;;;;;22586:34:19;201:550:21;-1:-1:-1;201:550:21;22586:34:19;201:550:21;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;:::i;:::-;3585:10:0;201:550:21;;;;953:10:1;3585::0;:::i;:::-;-1:-1:-1;;;;;201:550:21;;2120:24:19;;;;:53;;;201:550:21;2120:81:19;;;201:550:21;;;;2252:43:19;1574:1;2252:43;;:90;;;201:550:21;;;;2393:30:19;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;15375:20:19;201:550:21;;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;15367:7:19;201:550:21;;-1:-1:-1;;;;;15367:52:19;201:550:21;-1:-1:-1;201:550:21;15367:52:19;201:550:21;;15367:66:19;15279:159;;2393:30;201:550:21;;;;;-1:-1:-1;;201:550:21;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;;;2544:75:19;;;;;;;201:550:21;;;;;2544:75:19;;;;;201:550:21;2544:75:19;;;201:550:21;2544:75:19;;;:::i;:::-;;;;;;;;;;;;;201:550:21;;;;2645:162:19;201:550:21;2645:162:19;;;201:550:21;2645:162:19;;201:550:21;;;;;;;;;;;;;;;;;;;;;;2645:162:19;;;;;;;;;;;;;;;;;201:550:21;3103:22:19;;;;;9219:21:15;358:4:30;2885:15:19;;3184:30;;;:::i;:::-;3259:20;;;:::i;:::-;201:550:21;;;358:4:30;;;;:::i;:::-;;;;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;;;;358:4:30;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;;;;358:4:30;2925:511:19;;;;358:4:30;201:550:21;;2925:511:19;;;358:4:30;201:550:21;;2925:511:19;;;358:4:30;2925:511:19;;;;358:4:30;2925:511:19;;;;358:4:30;2925:511:19;;;;358:4:30;-1:-1:-1;;;;;201:550:21;;2925:511:19;;;358:4:30;2925:511:19;;;;358:4:30;201:550:21;;;;;;;;;358:4:30;;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;2925:511:19;;358:4:30;201:550:21;;358:4:30;;;201:550:21;;;;;;;;;;;;;;;358:4:30;201:550:21;2925:511:19;;358:4:30;;;;;;;;;;;;;;201:550:21;358:4:30;;201:550:21;2925:511:19;;358:4:30;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;2925:511:19;;358:4:30;201:550:21;;358:4:30;;201:550:21;;;;;;;;;;;;;;;358:4:30;201:550:21;2925:511:19;;358:4:30;201:550:21;;358:4:30;;;;;;;;;;;;;;;;;2925:511:19;;;358:4:30;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;2925:511:19;;358:4:30;201:550:21;;358:4:30;;;201:550:21;;;;;;;;;;;;;;;358:4:30;2925:511:19;;;358:4:30;;;;;;;;;;;;;;;;;;;;2925:511:19;;;358:4:30;2925:511:19;;;358:4:30;2925:511:19;;;358:4:30;;;;;201:550:21;;;;;;;;;;;358:4:30;;201:550:21;358:4:30;;;2925:511:19;;;358:4:30;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;358:4:30;;;;2925:511:19;;;358:4:30;1574:1:19;358:4:30;;;;;;201:550:21;;;358:4:30;;;;;;2925:511:19;;;358:4:30;;;;;;;;201:550:21;;;358:4:30;;;;;;2925:511:19;;;358:4:30;;;;;;;;;201:550:21;;358:4:30;;;;;;2925:511:19;;358:4:30;;;;;;;;;201:550:21;;;;358:4:30;;;;;;3467:11:19;;;;:::i;:::-;201:550:21;;;;;;3491:39:19;;;201:550:21;;358:4:30;;;;:::i;:::-;-1:-1:-1;;;;;201:550:21;358:4:30;;3581:156:19;201:550:21;3581:156:19;;358:4:30;201:550:21;3581:156:19;;358:4:30;3581:156:19;201:550:21;3581:156:19;;358:4:30;201:550:21;;3541:202:19;;;;201:550:21;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3541:202:19;;;;;201:550:21;;;;;;358:4:30;;201:550:21;;358:4:30;;201:550:21;;3754:46:19;;;201:550:21;;;;;;;;2645:162:19;;;;;;;201:550:21;2645:162:19;;201:550:21;2645:162:19;;;;;;201:550:21;2645:162:19;;;:::i;:::-;;;201:550:21;;;;;;;;;;;2645:162:19;;;;;-1:-1:-1;2645:162:19;;;201:550:21;;;;;;;;;2544:75:19;;;;;201:550:21;2544:75:19;;:::i;:::-;201:550:21;2544:75:19;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2252:90:19;2299:43;1488:2;2299:43;;;2252:90;;201:550:21;;;;;;;2120:81:19;201:550:21;-1:-1:-1;;;;;201:550:21;;2177:24:19;;2120:81;;:53;201:550:21;-1:-1:-1;;;;;201:550:21;;2148:25:19;;2120:53;;201:550:21;;;;;-1:-1:-1;;201:550:21;;;;;;11736:55:6;201:550:21;;:::i;:::-;;;;;22749:14:19;201:550:21;;-1:-1:-1;;;;;201:550:21;;;;;11736:55:6;4874:14;4782:123;-1:-1:-1;201:550:21;4874:14:6;201:550:21;;;-1:-1:-1;201:550:21;;4874:26:6;;4782:123;;11736:55;201:550:21;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;18176:25:19;18116:21;;;:::i;:::-;2211:38:25;:17;201:550:21;2211:17:25;;;201:550:21;;2211:38:25;:::i;:::-;18176:25:19;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;5488:18:6;201:550:21;;;:::i;:::-;;;;22922:14:19;201:550:21;;;;;5488:18:6;:::i;:::-;201:550:21;;;22922:14:19;201:550:21;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;15375:20:19;201:550:21;;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;15367:7:19;201:550:21;;-1:-1:-1;;;;;15367:52:19;201:550:21;-1:-1:-1;201:550:21;15367:52:19;201:550:21;;15367:66:19;15279:159;;201:550:21;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;2862:51:25;201:550:21;;;2888:25:25;18387:21:19;;;:::i;201:550:21:-;;;;;;;:::i;:::-;;;;14087:21:19;;201:550:21;;;;;;14155:7:19;201:550:21;;14549:6:19;201:550:21;;;;14178:12:19;;;:::i;:::-;14232:6;14220:10;;14232:6;;:::i;:::-;201:550:21;14374:42:19;201:550:21;;;;;14287:62:19;14295:19;;;;;14287:62;:::i;:::-;201:550:21;14374:42:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;14422:33:19;14437:18;;;:::i;:::-;14422:33;14155:7;14422:11;;201:550:21;;;;;;;14422:33:19;:::i;:::-;14484:7;;;;:::i;:::-;-1:-1:-1;;;;;14506:16:19;14220:10;14506:16;;201:550:21;;14549:6:19;:::i;:::-;201:550:21;;;;;14568:34:19;201:550:21;14220:10:19;14568:34;;201:550:21;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;3585:10:0;201:550:21;953:10:1;3585::0;:::i;:::-;201:550:21;;6521:21:19;;201:550:21;;;;;;;;;;;6709:7:19;201:550:21;;;6611:12:19;;;;:::i;:::-;6651:30;;;;:::i;:::-;6709:7;;:::i;201:550:21:-;-1:-1:-1;;201:550:21;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;201:550:21;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;201:550:21;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;201:550:21;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;:::o;:::-;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;:::o;:::-;;-1:-1:-1;;201:550:21;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;:::o;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;358:4:30;201:550:21;;;;;;;;;;;;;:::o;:::-;;-1:-1:-1;201:550:21;;;;;-1:-1:-1;201:550:21;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;-1:-1:-1;201:550:21;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;4118:19:19;201:550:21;;;;;;;;;:::o;473:3:29:-;201:550:21;473:3:29;-1:-1:-1;;;;;201:550:21;;;;;;473:3:29;:::o;:::-;4247:17:19;473:3:29;-1:-1:-1;;;;;201:550:21;;;;;;473:3:29;:::o;:::-;4318:29:19;473:3:29;-1:-1:-1;;;;;201:550:21;;;;;;473:3:29;:::o;:::-;201:550:21;;358:4:30;;;;:::i;:::-;-1:-1:-1;473:3:29;;;;;;;;;;;201:550:21;473:3:29;;;;;;;;;;:::o;201:550:21:-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;358:4:30;;;:::i;:::-;201:550:21;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;4963:571:0:-;1584:61;201:550:21;;-1:-1:-1;;;;;201:550:21;;;;5251:1:0;201:550:21;;;;;;;;;;772:62:4;-1:-1:-1;;;;;772:62:4;;;;;;;201:550:21;772:62:4;;;;;201:550:21;5224:4:0;201:550:21;;;;;;;;;;;;;772:62:4;;;;;;:::i;:::-;841:420;;;;772:62;841:420;;;;;;;;4963:571:0;5270:10;5266:264;;4963:571;;;;;;:::o;5266:264::-;201:550:21;;5294:9:0;201:550:21;;;;;;1584:61:0;201:550:21;5352:60:0;;;;;201:550:21;;;;;;;5352:60:0;;;;;;201:550:21;5352:60:0;;5251:1;5352:60;;201:550:21;;772:62:4;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5352:60:0;;;;;;;;;;5290:234;201:550:21;;1584:61:0;201:550:21;;1584:61:0;201:550:21;5266:264:0;;;;;;;5352:60;201:550:21;5352:60:0;;;:::i;:::-;201:550:21;5352:60:0;;5290:234;5482:33;;201:550:21;5482:33:0;5251:1;201:550:21;772:62:4;201:550:21;5482:33:0;841:420:4;;;201:550:21;841:420:4;772:62;841:420;;772:62;841:420;;;;;;5275:363:25;5336:25;;;201:550:21;;;;5365:15:25;5336:44;5332:71;;201:550:21;5551:22:25;5430:21;5457:69;5430:21;5579:54;5430:21;;:::i;:::-;5479:35;5457:69;5479:47;:35;;;;:::i;:47::-;201:550:21;;;;;;5457:69:25;:::i;5551:22::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;5607:26:25;5365:15;5607:26;:::i;:::-;358:4:30;;;;;;;;;;;;;;5579:54:25;5275:363::o;5332:71::-;5390:7;;:::o;26218:602:19:-;201:550:21;;;;;;26369:29:19;:41;:29;;;;:::i;:41::-;201:550:21;;;;26420:11:19;;;26416:40;;-1:-1:-1;;;;;26484:17:19;;;201:550:21;;;;;;26544:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;26544:7:19;201:550:21;-1:-1:-1;201:550:21;26587:23:19;473:3:29;201:550:21;473:3:29;;201:550:21;;;;;;26746:49:19;26636:17;;;;201:550:21;26636:27:19;201:550:21;;;;;26636:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;26669:38:19;201:550:21;;;;;26669:38:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;;;;;;26746:49:19;201:550:21;;26746:49:19;;;;201:550:21;;;;;;;;;;;;;;;;;26746:49:19;;;;26218:602;:::o;201:550:21:-;;;;;;;26416:40:19;26441:8;;;;;201:550:21;26441:8:19;:::o;4883:323:25:-;201:550:21;5130:71:25;4883:323;4987:16;;;201:550:21;;;;;5032:39:25;5077:41;5032:39;;;;;:::i;:::-;5095:23;;;;:::i;:::-;358:4:30;201:550:21;358:4:30;;201:550:21;;;;358:4:30;;;;;;5077:41:25;201:550:21;;;;;;;;;;;;;;;;;;5130:71:25;4883:323::o;31602:279:19:-;-1:-1:-1;;;;;31775:28:19;31602:279;;31775:28;201:550:21;;;;31765:38:19;201:550:21;;31848:10:19;201:550:21;;31602:279:19:o;201:550:21:-;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;9047:198:15;201:550:21;9123:25:15;;9119:95;;201:550:21;;9047:198:15;:::o;9119:95::-;9165:42;;;9196:3;9165:42;201:550:21;;;;9165:42:15;;1190:188:16;;-1:-1:-1;;;;;8231:927:16;;;8200:24;-1:-1:-1;8231:927:16;;;;;;;-1:-1:-1;8231:927:16;;;;;;;1305:4;-1:-1:-1;8231:927:16;;;;;;;1190:188;8231:927;;1272:38;1268:106;;1190:188;:::o;1268:106::-;-1:-1:-1;;;;;1327:40:16;;-1:-1:-1;1327:40:16;201:550:21;8231:927:16;201:550:21;8231:927:16;-1:-1:-1;1327:40:16;8231:927;;1305:4;8231:927;;;;;;;;;;;;;;;;;;;-1:-1:-1;8231:927:16;;;;;5748:474:25;5859:16;;;201:550:21;;;;;;;;5975:15:25;;5952:38;;:94;;;;;5748:474;5941:147;;;5975:15;907:230:28;;;;;;5975:15:25;201:550:21;6106:111:25;5975:15;;907:230:28;201:550:21;;;;907:230:28;;;6106:111:25;;:::i;5941:147::-;6061:20;;;;:::o;5952:94::-;5995:17;;201:550:21;;;;5995:22:25;;-1:-1:-1;5995:22:25;:50;;5952:94;;;;;5995:50;201:550:21;;;;;;6021:24:25;5995:50;;;2330:320;809:58:26;2330:320:25;809:39:26;810:26;808:72;2330:320:25;2591:22;201:550:21;2508:19:25;;;201:550:21;;;;2591:22:25;;201:550:21;;;810:26:26;;:::i;808:72::-;5971:149:30;;;;;;;;;2330:320:25;:::o;13650:193:15:-;201:550:21;13724:24:15;;13720:93;;201:550:21;;13650:193:15;:::o;13720:93::-;13765:41;;;13796:2;13765:41;201:550:21;;;;13765:41:15;;10444:193;201:550:21;10518:24:15;;10514:93;;201:550:21;;10444:193:15;:::o;10514:93::-;10559:41;;;10590:2;10559:41;201:550:21;;;;10559:41:15;;23681:344:19;23856:158;23681:344;23778:11;;;;:::i;:::-;201:550:21;;358:4:30;;;;:::i;:::-;1650:16:19;358:4:30;;-1:-1:-1;23856:158:19;;;358:4:30;-1:-1:-1;201:550:21;23856:158:19;;201:550:21;23978:4:19;23856:158;;;473:3:29;-1:-1:-1;23856:158:19;;;473:3:29;23856:158:19;:::i;201:550:21:-;;;;;;;;;;:::o;2992:565:25:-;3408:144;2992:565;3517:35;3103:21;;;:::i;:::-;3408:100;8687:52;3208:17;8687:39;3208:17;;;201:550:21;8688:24:25;3293:22;201:550:21;808:72:26;809:58;201:550:21;3335:16:25;3293:22;;;201:550:21;;;3335:16:25;;201:550:21;;;809:39:26;810:26;201:550:21;;;;;;810:26:26;:::i;808:72::-;201:550:21;;8688:24:25;:::i;8687:52::-;201:550:21;3408:73:25;201:550:21;;3432:11:25;;3408:35;3432:11;;;;201:550:21;;;;;;;3408:35:25;:::i;:::-;5971:149:30;;;;;;;;;;201:550:21;;3408:73:25;:::i;:::-;201:550:21;;;;3408:100:25;;:::i;:::-;3517:35;;:::i;:::-;3408:144;;:::i;24337:432:19:-;;-1:-1:-1;;;;;24723:41:19;24337:432;201:550:21;-1:-1:-1;201:550:21;24469:7:19;201:550:21;;;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;24469:7:19;358:4:30;;24498:16:19;;201:550:21;;;;;;;;24556:14:19;;358:4:30;201:550:21;;;;;;24609:27:19;;201:550:21;;;;24661:13:19;201:550:21;;;24699:13:19;24661;;;201:550:21;;;;;24699:13:19;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;24723:41:19;201:550:21;;;;;;24723:41:19;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24723:41:19;;;;24337:432::o;25354:860::-;25825:127;25777:175;25354:860;;25567:175;201:550:21;25516:16:19;;;201:550:21;;25667:19:19;;;;25615:127;201:550:21;25694:22:19;201:550:21;;;;;;25694:22:19;;201:550:21;;;;;25615:127:19;;;:::i;25567:175::-;201:550:21;;;;;;25904:22:19;;;;201:550:21;;;;;25825:127:19;;:::i;:::-;358:4:30;;;;;;;;;;;;25777:175:19;201:550:21;;;;;;;;;;;;;;;25777:175:19;201:550:21;25694:22:19;25989:26;;201:550:21;;;;;26036:50:19;;:137;;;;;25354:860;201:550:21;;;;;25354:860:19:o;201:550:21:-;;-1:-1:-1;201:550:21;25516:16:19;-1:-1:-1;201:550:21;26036:137:19;201:550:21;;-1:-1:-1;201:550:21;;;;1439:411:29;;-1:-1:-1;;1439:411:29;;;;;;;;;;201:550:21;1439:411:29;;;;;;;;;;;201:550:21;;;;26098:75:19;;26036:137;;;;201:550:21;;;;;;;-1:-1:-1;201:550:21;;;;;;;;;;;;;:::o;:::-;;;;;:::o;:::-;;;;;;;;;4546:195:25;201:550:21;4718:17:25;4692:24;;;:::i;:::-;4718:17;;201:550:21;;482:3:27;201:550:21;;;;;;;482:3:27;201:550:21;;;;;;;10262:25:13;731:126:27;10262:25:13;:::i;4592:206:0:-;201:550:21;-1:-1:-1;;;;;4763:30:0;4592:206;201:550:21;358:4:30;;1584:61:0;358:4:30;;;1584:61:0;358:4:30;201:550:21;;;;;4763:30:0;4592:206::o;3659:191:25:-;201:550:21;3827:17:25;3801:24;;;:::i;:::-;3827:17;;201:550:21;;;482:3:27;201:550:21;;;;;;;482:3:27;201:550:21;;;;;;;1818:93:27;;;:::i;24845:219:19:-;24971:18;25041;201:550:21;24845:219:19;;25017:42;24845:219;24993:18;24971:40;24993:18;;;;:::i;:::-;24971;;201:550:21;;;;;24971:40:19;:::i;25041:18::-;25017:20;;201:550:21;;;;;25017:42:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;24845:219:19:o;6464:410:25:-;;6616:253;201:550:21;6464:410:25;-1:-1:-1;;;;;6643:16:25;;;201:550:21;;2211:38:25;201:550:21;;;;2211:17:25;201:550:21;2211:17:25;;;201:550:21;;2211:38:25;:::i;:::-;6804:16;201:550:21;6849:11:25;201:550:21;6804:16:25;;;201:550:21;;6849:11:25;;201:550:21;;;;;;;6616:253:25;;;;;201:550:21;6616:253:25;;;;;201:550:21;;;;;;;;;5971:149:30;;;;;;;;;201:550:21;;;;;;;;6616:253:25;;;;;;;-1:-1:-1;6616:253:25;;;6603:266;6464:410;:::o;6616:253::-;;;201:550:21;6616:253:25;;201:550:21;6616:253:25;;;;;;201:550:21;6616:253:25;;;:::i;:::-;;;201:550:21;;;;;6464:410:25;:::o;6616:253::-;;;-1:-1:-1;6616:253:25;;3954:195;201:550:21;4126:17:25;4100:24;;;:::i;:::-;4126:17;;201:550:21;;;482:3:27;201:550:21;;;;;;;482:3:27;201:550:21;;;;;;;10262:25:13;1107:126:27;10262:25:13;:::i;4251:191:25:-;201:550:21;4419:17:25;4393:24;;;:::i;:::-;4419:17;;201:550:21;;482:3:27;201:550:21;;;;;;;482:3:27;201:550:21;;;;;;;1479:93:27;;;:::i;4377:198:15:-;201:550:21;4453:25:15;;4449:95;;201:550:21;;4377:198:15;:::o;4449:95::-;4495:42;;;4526:3;4495:42;201:550:21;;;;4495:42:15;;24162:171:19;201:550:21;-1:-1:-1;201:550:21;24236:14:19;201:550:21;;10828:50:6;-1:-1:-1;;;;;201:550:21;-1:-1:-1;201:550:21;;;10828:50:6;;;:::i;:::-;201:550:21;;;24304:24:19;-1:-1:-1;24304:24:19;;24162:171::o;201:550:21:-;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;27408:317:19;809:58:26;27408:317:19;809:39:26;810:26;808:72;27408:317:19;27690:21;27646:22;201:550:21;;;;;;27646:22:19;;201:550:21;;;27690:21:19;;:::i;7026:1153:25:-;;201:550:21;7173:16:25;;;201:550:21;;7199:27:25;;;;7195:56;;7280:18;;;201:550:21;;;;;7308:17:25;;;7304:46;;201:550:21;;;;;;;;;;7476:22:25;;;201:550:21;;;7525:16:25;;;201:550:21;;;810:26:26;;;;;;;:::i;:::-;809:39;;;:::i;:::-;:58;;;;:::i;:::-;808:72;;;:::i;:::-;8688:24:25;;;;;:::i;:::-;8687:39;;;;:::i;:::-;:52;;;;:::i;:::-;810:26:26;;;;:::i;:::-;809:39;;;:::i;:::-;:58;;;;:::i;:::-;808:72;;;:::i;:::-;8688:24:25;;;;:::i;:::-;8687:39;;;;:::i;:::-;:52;;;;:::i;:::-;5971:149:30;;;;;;;;;;;;;;;;;;;;;8056:72:25;;;;:::i;:::-;859:211:29;;-1:-1:-1;;859:211:29;;;;;;;;;7026:1153:25;:::o;7195:56::-;7236:8;;;201:550:21;7236:8:25;:::o;3233:412:30:-;3313:328;-1:-1:-1;;3313:328:30;;;;;;;;;;;;;;;;;;;;3233:412;:::o;201:550:21:-;;;;;;;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;;;-1:-1:-1;201:550:21;:::o;:::-;;;;;;;;;;4334:414:30;4414:330;;;;;;;;;;;;;;;;;;;4334:414;:::o;3840:302::-;3922:216;;;;;;;;;;;3840:302;:::o;32270:923:19:-;;;;;32680:43;808:72:26;809:58;810:26;809:39;810:26;;;;:::i;808:72::-;201:550:21;;;32680:43:19;;:::i;:::-;32777:27;;;;201:550:21;;-1:-1:-1;201:550:21;;;;;;;;;;;;;;;;;;;33026:31:19;808:72:26;809:58;810:26;809:39;810:26;33008:49:19;810:26:26;;;:::i;808:72::-;33026:31:19;;201:550:21;33008:49:19;;:::i;:::-;:69;201:550:21;;33127:28:19;;;:::i;:::-;201:550:21;;;19427:19:15;;;;19423:88;;33119:69:19;;32270:923;:::o;19423:88:15:-;19463:41;-1:-1:-1;19463:41:15;19493:3;19463:41;201:550:21;;;;-1:-1:-1;19463:41:15;31630:290;31815:16;31799:33;;31795:95;;31630:290;:::o;31795:95::-;31849:34;;;;201:550:21;;31849:34:15;;15821:173;15904:1;15896:9;;15892:71;;15821:173;:::o;15892:71::-;15922:34;15904:1;15922:34;;201:550:21;;15904:1:15;15922:34;6768:125:2;201:550:21;3095:66:2;201:550:21;;;;6830:18:2;6826:63;;6768:125::o;6826:63::-;6865:17;-1:-1:-1;6865:17:2;;-1:-1:-1;6865:17:2;1690:138:28;201:550:21;1766:6:28;;;1762:33;;201:550:21;;;;;1808:15:28;201:550:21;;;1808:15:28;;:::i;1762:33::-;1781:14;;;;:::i;10113:264:13:-;;10262:25;;;;;:::i;:::-;10312:26;10342:25;;;;10262:110;10342:25;;:29;;10262:110;;:::i;10342:25::-;201:550:21;-1:-1:-1;201:550:21;;;;;-1:-1:-1;201:550:21;2436:356:6;-1:-1:-1;201:550:21;;;4874:14:6;;;201:550:21;;;;;;2516:21:6;;201:550:21;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;2687:14:6;201:550:21;;;;;;;2737:11:6;:::o;2511:277::-;2769:12;;201:550:21;2769:12:6;:::o;6665:3327:13:-;;;-1:-1:-1;;1329:137:13;;;;;;;;;;;;;;;;;;6915:9;;6911:327;;7336:19;;;;7332:128;;7707:262;;;;201:550:21;;;8170:31:13;;8209:330;;;8957:1;928:4:14;8938:1:13;928:4:14;8937:21:13;928:4:14;;;8957:1:13;201:550:21;928:4:14;;;;8957:1:13;201:550:21;928:4:14;;;;8957:1:13;201:550:21;928:4:14;;;;8957:1:13;201:550:21;928:4:14;;;;8957:1:13;201:550:21;928:4:14;;;;8957:1:13;201:550:21;928:4:14;8209:330:13;;;;201:550:21;8209:330:13;;;7707:262;;;;;;928:4:14;7707:262:13;;8209:330;8590:18;928:4:14;6665:3327:13;:::o;7332:128::-;1779:113:14;;201:550:21;1779:113:14;7387:16:13;4875:5;928:4:14;;4869:42:13;1779:113:14;;;;;6911:327:13;201:550:21;;;;;;;;;7205:24:13;:::o","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa164736f6c634300081c000a","offset":24341}},"immutableReferences":{},"transformations":[],"transformationValues":{}},"deployment":{"transactionHash":null,"blockNumber":null,"transactionIndex":null,"deployer":null},"sources":{"src/hub/instances/HubInstance.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity 0.8.28;\n\nimport {Hub} from 'src/hub/Hub.sol';\n\n/// @title HubInstance\n/// @author Aave Labs\n/// @notice Implementation contract for the Hub.\ncontract HubInstance is Hub {\n  uint64 public constant HUB_REVISION = 1;\n\n  /// @dev Constructor.\n  constructor() {\n    _disableInitializers();\n  }\n\n  /// @notice Initializer.\n  /// @dev The authority contract must implement the `AccessManaged` interface for access control.\n  /// @param authority The address of the authority contract which manages permissions.\n  function initialize(address authority) external override reinitializer(HUB_REVISION) {\n    require(authority != address(0), InvalidAddress());\n    __AccessManaged_init(authority);\n  }\n}\n"},"src/hub/Hub.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity 0.8.28;\n\nimport {AccessManagedUpgradeable} from 'src/dependencies/openzeppelin-upgradeable/AccessManagedUpgradeable.sol';\nimport {EnumerableSet} from 'src/dependencies/openzeppelin/EnumerableSet.sol';\nimport {SafeCast} from 'src/dependencies/openzeppelin/SafeCast.sol';\nimport {SafeERC20, IERC20} from 'src/dependencies/openzeppelin/SafeERC20.sol';\nimport {MathUtils} from 'src/libraries/math/MathUtils.sol';\nimport {PercentageMath} from 'src/libraries/math/PercentageMath.sol';\nimport {WadRayMath} from 'src/libraries/math/WadRayMath.sol';\nimport {AssetLogic} from 'src/hub/libraries/AssetLogic.sol';\nimport {SharesMath} from 'src/hub/libraries/SharesMath.sol';\nimport {Premium} from 'src/hub/libraries/Premium.sol';\nimport {IBasicInterestRateStrategy} from 'src/hub/interfaces/IBasicInterestRateStrategy.sol';\nimport {IHubBase, IHub} from 'src/hub/interfaces/IHub.sol';\nimport {HubStorage} from 'src/hub/HubStorage.sol';\n\n/// @title Hub\n/// @author Aave Labs\n/// @notice A liquidity hub that manages assets and spokes.\nabstract contract Hub is IHub, HubStorage, AccessManagedUpgradeable {\n  using EnumerableSet for EnumerableSet.AddressSet;\n  using SafeCast for *;\n  using SafeERC20 for IERC20;\n  using MathUtils for *;\n  using PercentageMath for *;\n  using WadRayMath for uint256;\n  using AssetLogic for Asset;\n  using SharesMath for uint256;\n\n  /// @inheritdoc IHub\n  uint8 public constant MAX_ALLOWED_UNDERLYING_DECIMALS = 18;\n\n  /// @inheritdoc IHub\n  uint8 public constant MIN_ALLOWED_UNDERLYING_DECIMALS = 6;\n\n  /// @inheritdoc IHub\n  uint40 public constant MAX_ALLOWED_SPOKE_CAP = type(uint40).max;\n\n  /// @inheritdoc IHub\n  uint24 public constant MAX_RISK_PREMIUM_THRESHOLD = type(uint24).max;\n\n  /// @dev To be overridden by the inheriting Hub instance contract.\n  function initialize(address authority) external virtual;\n\n  /// @inheritdoc IHub\n  function addAsset(\n    address underlying,\n    uint8 decimals,\n    address feeReceiver,\n    address irStrategy,\n    bytes calldata irData\n  ) external restricted returns (uint256) {\n    require(\n      underlying != address(0) && feeReceiver != address(0) && irStrategy != address(0),\n      InvalidAddress()\n    );\n    require(\n      MIN_ALLOWED_UNDERLYING_DECIMALS <= decimals && decimals <= MAX_ALLOWED_UNDERLYING_DECIMALS,\n      InvalidAssetDecimals()\n    );\n    require(!isUnderlyingListed(underlying), UnderlyingAlreadyListed());\n\n    uint256 assetId = _assetCount++;\n    _underlyingToAssetId[underlying] = assetId;\n\n    IBasicInterestRateStrategy(irStrategy).setInterestRateData(assetId, irData);\n    uint256 drawnRate = IBasicInterestRateStrategy(irStrategy).calculateInterestRate({\n      assetId: assetId,\n      liquidity: 0,\n      drawn: 0,\n      deficit: 0,\n      swept: 0\n    });\n\n    uint256 drawnIndex = WadRayMath.RAY;\n    uint256 lastUpdateTimestamp = block.timestamp;\n    _assets[assetId] = Asset({\n      liquidity: 0,\n      deficitRay: 0,\n      swept: 0,\n      addedShares: 0,\n      drawnShares: 0,\n      premiumShares: 0,\n      premiumOffsetRay: 0,\n      drawnIndex: drawnIndex.toUint120(),\n      underlying: underlying,\n      lastUpdateTimestamp: lastUpdateTimestamp.toUint40(),\n      decimals: decimals,\n      drawnRate: drawnRate.toUint96(),\n      irStrategy: irStrategy,\n      realizedFees: 0,\n      reinvestmentController: address(0),\n      feeReceiver: feeReceiver,\n      liquidityFee: 0\n    });\n    _addFeeReceiver(assetId, feeReceiver);\n\n    emit AddAsset(assetId, underlying, decimals);\n    emit UpdateAssetConfig(\n      assetId,\n      AssetConfig({\n        feeReceiver: feeReceiver,\n        liquidityFee: 0,\n        irStrategy: irStrategy,\n        reinvestmentController: address(0)\n      })\n    );\n    emit UpdateAsset(assetId, drawnIndex, drawnRate, 0);\n\n    return assetId;\n  }\n\n  /// @inheritdoc IHub\n  function updateAssetConfig(\n    uint256 assetId,\n    AssetConfig calldata config,\n    bytes calldata irData\n  ) external restricted {\n    require(assetId < _assetCount, AssetNotListed());\n    Asset storage asset = _assets[assetId];\n    asset.accrue();\n\n    require(config.liquidityFee <= PercentageMath.PERCENTAGE_FACTOR, InvalidLiquidityFee());\n    require(config.feeReceiver != address(0) && config.irStrategy != address(0), InvalidAddress());\n    require(\n      config.reinvestmentController != address(0) || asset.swept == 0,\n      InvalidReinvestmentController()\n    );\n\n    asset.liquidityFee = config.liquidityFee;\n    asset.reinvestmentController = config.reinvestmentController;\n\n    address oldFeeReceiver = asset.feeReceiver;\n    if (oldFeeReceiver != config.feeReceiver) {\n      _mintFeeShares(asset, assetId);\n      IHub.SpokeConfig memory spokeConfig;\n      spokeConfig.active = _spokes[assetId][oldFeeReceiver].active;\n      spokeConfig.halted = _spokes[assetId][oldFeeReceiver].halted;\n      _updateSpokeConfig(assetId, oldFeeReceiver, spokeConfig);\n      asset.feeReceiver = config.feeReceiver;\n      _addFeeReceiver(assetId, config.feeReceiver);\n    }\n\n    if (config.irStrategy != asset.irStrategy) {\n      asset.irStrategy = config.irStrategy;\n      IBasicInterestRateStrategy(config.irStrategy).setInterestRateData(assetId, irData);\n    } else {\n      require(irData.length == 0, InvalidInterestRateStrategy());\n    }\n\n    asset.updateDrawnRate(assetId);\n\n    emit UpdateAssetConfig(assetId, config);\n  }\n\n  /// @inheritdoc IHub\n  function addSpoke(\n    uint256 assetId,\n    address spoke,\n    SpokeConfig calldata config\n  ) external restricted {\n    require(assetId < _assetCount, AssetNotListed());\n    require(spoke != address(0), InvalidAddress());\n    _addSpoke(assetId, spoke);\n    _updateSpokeConfig(assetId, spoke, config);\n  }\n\n  /// @inheritdoc IHub\n  function updateSpokeConfig(\n    uint256 assetId,\n    address spoke,\n    SpokeConfig calldata config\n  ) external restricted {\n    require(assetId < _assetCount, AssetNotListed());\n    require(_assetToSpokes[assetId].contains(spoke), SpokeNotListed());\n    _updateSpokeConfig(assetId, spoke, config);\n  }\n\n  /// @inheritdoc IHub\n  function setInterestRateData(uint256 assetId, bytes calldata irData) external restricted {\n    require(assetId < _assetCount, AssetNotListed());\n    Asset storage asset = _assets[assetId];\n    asset.accrue();\n    IBasicInterestRateStrategy(asset.irStrategy).setInterestRateData(assetId, irData);\n    asset.updateDrawnRate(assetId);\n  }\n\n  /// @inheritdoc IHub\n  function mintFeeShares(uint256 assetId) external restricted returns (uint256) {\n    require(assetId < _assetCount, AssetNotListed());\n    Asset storage asset = _assets[assetId];\n    asset.accrue();\n    uint256 feeShares = _mintFeeShares(asset, assetId);\n    asset.updateDrawnRate(assetId);\n    return feeShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function add(uint256 assetId, uint256 amount) external returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validateAdd(asset, spoke, amount);\n\n    uint256 liquidity = asset.liquidity + amount;\n    uint256 balance = IERC20(asset.underlying).balanceOf(address(this));\n    require(balance >= liquidity, InsufficientTransferred(liquidity.uncheckedSub(balance)));\n    uint120 shares = asset.toAddedSharesDown(amount).toUint120();\n    require(shares > 0, InvalidShares());\n    asset.addedShares += shares;\n    spoke.addedShares += shares;\n    asset.liquidity = liquidity.toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    emit Add(assetId, msg.sender, shares, amount);\n\n    return shares;\n  }\n\n  /// @inheritdoc IHubBase\n  function remove(uint256 assetId, uint256 amount, address to) external returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validateRemove(spoke, amount, to);\n\n    uint256 liquidity = asset.liquidity;\n    require(amount <= liquidity, InsufficientLiquidity(liquidity));\n\n    uint120 shares = asset.toAddedSharesUp(amount).toUint120();\n    asset.addedShares -= shares;\n    spoke.addedShares -= shares;\n    asset.liquidity = liquidity.uncheckedSub(amount).toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    IERC20(asset.underlying).safeTransfer(to, amount);\n\n    emit Remove(assetId, msg.sender, shares, amount);\n\n    return shares;\n  }\n\n  /// @inheritdoc IHubBase\n  function draw(uint256 assetId, uint256 amount, address to) external returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validateDraw(asset, spoke, amount, to);\n\n    uint256 liquidity = asset.liquidity;\n    require(amount <= liquidity, InsufficientLiquidity(liquidity));\n\n    uint120 drawnShares = asset.toDrawnSharesUp(amount).toUint120();\n    asset.drawnShares += drawnShares;\n    spoke.drawnShares += drawnShares;\n    asset.liquidity = liquidity.uncheckedSub(amount).toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    IERC20(asset.underlying).safeTransfer(to, amount);\n\n    emit Draw(assetId, msg.sender, drawnShares, amount);\n\n    return drawnShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function restore(\n    uint256 assetId,\n    uint256 drawnAmount,\n    PremiumDelta calldata premiumDelta\n  ) external returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validateRestore(asset, spoke, drawnAmount, premiumDelta.restoredPremiumRay);\n\n    uint120 drawnShares = asset.toDrawnSharesDown(drawnAmount).toUint120();\n    asset.drawnShares -= drawnShares;\n    spoke.drawnShares -= drawnShares;\n    _applyPremiumDelta(asset, spoke, premiumDelta);\n\n    uint256 premiumAmount = premiumDelta.restoredPremiumRay.fromRayUp();\n    uint256 liquidity = asset.liquidity + drawnAmount + premiumAmount;\n    uint256 balance = IERC20(asset.underlying).balanceOf(address(this));\n    require(balance >= liquidity, InsufficientTransferred(liquidity.uncheckedSub(balance)));\n    asset.liquidity = liquidity.toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    emit Restore(assetId, msg.sender, drawnShares, premiumDelta, drawnAmount, premiumAmount);\n\n    return drawnShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function reportDeficit(\n    uint256 assetId,\n    uint256 drawnAmount,\n    PremiumDelta calldata premiumDelta\n  ) external returns (uint256, uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validateReportDeficit(asset, spoke, drawnAmount, premiumDelta.restoredPremiumRay);\n\n    uint120 drawnShares = asset.toDrawnSharesDown(drawnAmount).toUint120();\n    asset.drawnShares -= drawnShares;\n    spoke.drawnShares -= drawnShares;\n    _applyPremiumDelta(asset, spoke, premiumDelta);\n\n    uint256 deficitAmountRay = uint256(drawnShares) * asset.drawnIndex +\n      premiumDelta.restoredPremiumRay;\n    asset.deficitRay += deficitAmountRay.toUint200();\n    spoke.deficitRay += deficitAmountRay.toUint200();\n\n    asset.updateDrawnRate(assetId);\n\n    emit ReportDeficit(assetId, msg.sender, drawnShares, premiumDelta, deficitAmountRay);\n\n    return (drawnShares, deficitAmountRay.fromRayUp());\n  }\n\n  /// @inheritdoc IHub\n  function eliminateDeficit(\n    uint256 assetId,\n    uint256 amount,\n    address spoke\n  ) external restricted returns (uint256, uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage callerSpoke = _spokes[assetId][msg.sender];\n    SpokeData storage coveredSpoke = _spokes[assetId][spoke];\n\n    asset.accrue();\n    uint256 deficitRay = coveredSpoke.deficitRay;\n    uint256 deficitAmountRay = (amount < deficitRay.fromRayUp()) ? amount.toRay() : deficitRay;\n    _validateEliminateDeficit(callerSpoke, deficitAmountRay);\n\n    uint256 deficitToEliminate = deficitAmountRay.fromRayUp();\n    uint120 shares = asset.toAddedSharesUp(deficitToEliminate).toUint120();\n    asset.addedShares -= shares;\n    callerSpoke.addedShares -= shares;\n    asset.deficitRay -= deficitAmountRay.toUint200();\n    coveredSpoke.deficitRay -= deficitAmountRay.toUint200();\n\n    asset.updateDrawnRate(assetId);\n\n    emit EliminateDeficit(assetId, msg.sender, spoke, shares, deficitAmountRay);\n\n    return (shares, deficitToEliminate);\n  }\n\n  /// @inheritdoc IHubBase\n  function refreshPremium(uint256 assetId, PremiumDelta calldata premiumDelta) external {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    require(spoke.active, SpokeNotActive());\n    // no premium change allowed\n    require(premiumDelta.restoredPremiumRay == 0, InvalidPremiumChange());\n    _applyPremiumDelta(asset, spoke, premiumDelta);\n    asset.updateDrawnRate(assetId);\n\n    emit RefreshPremium(assetId, msg.sender, premiumDelta);\n  }\n\n  /// @inheritdoc IHubBase\n  function payFeeShares(uint256 assetId, uint256 shares) external {\n    Asset storage asset = _assets[assetId];\n    address feeReceiver = _assets[assetId].feeReceiver;\n    SpokeData storage receiverSpoke = _spokes[assetId][feeReceiver];\n    SpokeData storage callerSpoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validatePayFeeShares(callerSpoke, shares);\n    _transferShares({sender: callerSpoke, receiver: receiverSpoke, shares: shares});\n    asset.updateDrawnRate(assetId);\n\n    emit TransferShares(assetId, msg.sender, feeReceiver, shares);\n  }\n\n  /// @inheritdoc IHub\n  function transferShares(uint256 assetId, uint256 shares, address toSpoke) external {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage callerSpoke = _spokes[assetId][msg.sender];\n    SpokeData storage receiverSpoke = _spokes[assetId][toSpoke];\n\n    asset.accrue();\n    _validateTransferShares(asset, callerSpoke, receiverSpoke, shares);\n    _transferShares({sender: callerSpoke, receiver: receiverSpoke, shares: shares});\n    asset.updateDrawnRate(assetId);\n\n    emit TransferShares(assetId, msg.sender, toSpoke, shares);\n  }\n\n  /// @inheritdoc IHub\n  function sweep(uint256 assetId, uint256 amount) external {\n    require(assetId < _assetCount, AssetNotListed());\n    Asset storage asset = _assets[assetId];\n\n    asset.accrue();\n    _validateSweep(asset, msg.sender, amount);\n\n    uint256 liquidity = asset.liquidity;\n    require(amount <= liquidity, InsufficientLiquidity(liquidity));\n\n    asset.liquidity = liquidity.uncheckedSub(amount).toUint120();\n    asset.swept += amount.toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    IERC20(asset.underlying).safeTransfer(msg.sender, amount);\n\n    emit Sweep(assetId, msg.sender, amount);\n  }\n\n  /// @inheritdoc IHub\n  function reclaim(uint256 assetId, uint256 amount) external {\n    require(assetId < _assetCount, AssetNotListed());\n    Asset storage asset = _assets[assetId];\n\n    asset.accrue();\n    _validateReclaim(asset, msg.sender, amount);\n\n    uint256 liquidity = asset.liquidity + amount;\n    uint256 balance = IERC20(asset.underlying).balanceOf(address(this));\n    require(balance >= liquidity, InsufficientTransferred(liquidity.uncheckedSub(balance)));\n    asset.liquidity = liquidity.toUint120();\n    asset.swept -= amount.toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    emit Reclaim(assetId, msg.sender, amount);\n  }\n\n  /// @inheritdoc IHub\n  function isUnderlyingListed(address underlying) public view returns (bool) {\n    return _assets[_underlyingToAssetId[underlying]].underlying == underlying;\n  }\n\n  /// @inheritdoc IHub\n  function getAssetCount() external view returns (uint256) {\n    return _assetCount;\n  }\n\n  /// @inheritdoc IHubBase\n  function previewAddByAssets(uint256 assetId, uint256 assets) external view returns (uint256) {\n    return _assets[assetId].toAddedSharesDown(assets);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewAddByShares(uint256 assetId, uint256 shares) external view returns (uint256) {\n    return _assets[assetId].toAddedAssetsUp(shares);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewRemoveByAssets(uint256 assetId, uint256 assets) external view returns (uint256) {\n    return _assets[assetId].toAddedSharesUp(assets);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewRemoveByShares(uint256 assetId, uint256 shares) external view returns (uint256) {\n    return _assets[assetId].toAddedAssetsDown(shares);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewDrawByAssets(uint256 assetId, uint256 assets) external view returns (uint256) {\n    return _assets[assetId].toDrawnSharesUp(assets);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewDrawByShares(uint256 assetId, uint256 shares) external view returns (uint256) {\n    return _assets[assetId].toDrawnAssetsDown(shares);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewRestoreByAssets(uint256 assetId, uint256 assets) external view returns (uint256) {\n    return _assets[assetId].toDrawnSharesDown(assets);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewRestoreByShares(uint256 assetId, uint256 shares) external view returns (uint256) {\n    return _assets[assetId].toDrawnAssetsUp(shares);\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetId(address underlying) external view returns (uint256) {\n    require(isUnderlyingListed(underlying), AssetNotListed());\n    return _underlyingToAssetId[underlying];\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetUnderlyingAndDecimals(uint256 assetId) external view returns (address, uint8) {\n    Asset storage asset = _assets[assetId];\n    return (asset.underlying, asset.decimals);\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetDrawnIndex(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].getDrawnIndex();\n  }\n\n  /// @inheritdoc IHubBase\n  function getAddedAssets(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].totalAddedAssets();\n  }\n\n  /// @inheritdoc IHubBase\n  function getAddedShares(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].addedShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetOwed(uint256 assetId) external view returns (uint256, uint256) {\n    Asset storage asset = _assets[assetId];\n    uint256 drawnIndex = asset.getDrawnIndex();\n    return (asset.drawn(drawnIndex), asset.premium(drawnIndex));\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetTotalOwed(uint256 assetId) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    return asset.totalOwed(asset.getDrawnIndex());\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetPremiumRay(uint256 assetId) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    return\n      Premium.calculatePremiumRay({\n        premiumShares: asset.premiumShares,\n        premiumOffsetRay: asset.premiumOffsetRay,\n        drawnIndex: asset.getDrawnIndex()\n      });\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetDrawnShares(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].drawnShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetPremiumData(uint256 assetId) external view returns (uint256, int256) {\n    Asset storage asset = _assets[assetId];\n    return (asset.premiumShares, asset.premiumOffsetRay);\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetLiquidity(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].liquidity;\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetDeficitRay(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].deficitRay;\n  }\n\n  /// @inheritdoc IHub\n  function getAsset(uint256 assetId) external view returns (Asset memory) {\n    return _assets[assetId];\n  }\n\n  /// @inheritdoc IHub\n  function getAssetConfig(uint256 assetId) external view returns (AssetConfig memory) {\n    Asset storage asset = _assets[assetId];\n    return\n      AssetConfig({\n        feeReceiver: asset.feeReceiver,\n        liquidityFee: asset.liquidityFee,\n        irStrategy: asset.irStrategy,\n        reinvestmentController: asset.reinvestmentController\n      });\n  }\n\n  /// @inheritdoc IHub\n  function getAssetAccruedFees(uint256 assetId) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    return asset.realizedFees + asset.getUnrealizedFees(asset.getDrawnIndex());\n  }\n\n  /// @inheritdoc IHub\n  function getAssetSwept(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].swept;\n  }\n\n  /// @inheritdoc IHub\n  function getAssetDrawnRate(uint256 assetId) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    return asset.getDrawnRate(assetId, asset.getDrawnIndex());\n  }\n\n  /// @inheritdoc IHub\n  function getSpokeCount(uint256 assetId) external view returns (uint256) {\n    return _assetToSpokes[assetId].length();\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeAddedAssets(uint256 assetId, address spoke) external view returns (uint256) {\n    return _assets[assetId].toAddedAssetsDown(_spokes[assetId][spoke].addedShares);\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeAddedShares(uint256 assetId, address spoke) external view returns (uint256) {\n    return _spokes[assetId][spoke].addedShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeOwed(uint256 assetId, address spoke) external view returns (uint256, uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    return (_getSpokeDrawn(asset, spokeData), _getSpokePremium(asset, spokeData));\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeTotalOwed(uint256 assetId, address spoke) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    return _getSpokeDrawn(asset, spokeData) + _getSpokePremium(asset, spokeData);\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokePremiumRay(uint256 assetId, address spoke) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    return _getSpokePremiumRay(asset, spokeData);\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeDrawnShares(uint256 assetId, address spoke) external view returns (uint256) {\n    return _spokes[assetId][spoke].drawnShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokePremiumData(\n    uint256 assetId,\n    address spoke\n  ) external view returns (uint256, int256) {\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    return (spokeData.premiumShares, spokeData.premiumOffsetRay);\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeDeficitRay(uint256 assetId, address spoke) external view returns (uint256) {\n    return _spokes[assetId][spoke].deficitRay;\n  }\n\n  /// @inheritdoc IHub\n  function isSpokeListed(uint256 assetId, address spoke) external view returns (bool) {\n    return _assetToSpokes[assetId].contains(spoke);\n  }\n\n  /// @inheritdoc IHub\n  function getSpokeAddress(uint256 assetId, uint256 index) external view returns (address) {\n    return _assetToSpokes[assetId].at(index);\n  }\n\n  /// @inheritdoc IHub\n  function getSpoke(uint256 assetId, address spoke) external view returns (SpokeData memory) {\n    return _spokes[assetId][spoke];\n  }\n\n  /// @inheritdoc IHub\n  function getSpokeConfig(\n    uint256 assetId,\n    address spoke\n  ) external view returns (SpokeConfig memory) {\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    return\n      SpokeConfig({\n        addCap: spokeData.addCap,\n        drawCap: spokeData.drawCap,\n        riskPremiumThreshold: spokeData.riskPremiumThreshold,\n        active: spokeData.active,\n        halted: spokeData.halted\n      });\n  }\n\n  /// @notice Adds a new spoke to an asset with default feeReceiver configuration (maximum add cap, zero draw cap).\n  function _addFeeReceiver(uint256 assetId, address feeReceiver) internal {\n    _addSpoke(assetId, feeReceiver);\n    _updateSpokeConfig(\n      assetId,\n      feeReceiver,\n      SpokeConfig({\n        addCap: MAX_ALLOWED_SPOKE_CAP,\n        drawCap: 0,\n        riskPremiumThreshold: 0,\n        active: true,\n        halted: false\n      })\n    );\n  }\n\n  /// @notice Adds a spoke to an asset.\n  /// @dev Reverts with `SpokeAlreadyListed` if spoke is already listed for the given asset.\n  function _addSpoke(uint256 assetId, address spoke) internal {\n    require(_assetToSpokes[assetId].add(spoke), SpokeAlreadyListed());\n    emit AddSpoke(assetId, spoke);\n  }\n\n  function _updateSpokeConfig(uint256 assetId, address spoke, SpokeConfig memory config) internal {\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    spokeData.addCap = config.addCap;\n    spokeData.drawCap = config.drawCap;\n    spokeData.riskPremiumThreshold = config.riskPremiumThreshold;\n    spokeData.active = config.active;\n    spokeData.halted = config.halted;\n    emit UpdateSpokeConfig(assetId, spoke, config);\n  }\n\n  /// @dev Receiver `addCap` is validated in `_validateTransferShares`.\n  function _transferShares(\n    SpokeData storage sender,\n    SpokeData storage receiver,\n    uint256 shares\n  ) internal {\n    sender.addedShares -= shares.toUint120();\n    receiver.addedShares += shares.toUint120();\n  }\n\n  /// @dev Applies premium deltas on asset & spoke premium owed.\n  /// @dev Checks premium owed decreases by exactly `restoredPremiumRay`.\n  /// @dev Checks updated risk premium is within allowed threshold.\n  /// @dev Uses last stored index; asset accrual should have already occurred.\n  function _applyPremiumDelta(\n    Asset storage asset,\n    SpokeData storage spoke,\n    PremiumDelta calldata premiumDelta\n  ) internal {\n    uint256 drawnIndex = asset.drawnIndex;\n\n    // asset premium change\n    (asset.premiumShares, asset.premiumOffsetRay) = _validateApplyPremiumDelta(\n      drawnIndex,\n      asset.premiumShares,\n      asset.premiumOffsetRay,\n      premiumDelta\n    );\n\n    // spoke premium change\n    (spoke.premiumShares, spoke.premiumOffsetRay) = _validateApplyPremiumDelta(\n      drawnIndex,\n      spoke.premiumShares,\n      spoke.premiumOffsetRay,\n      premiumDelta\n    );\n\n    uint24 riskPremiumThreshold = spoke.riskPremiumThreshold;\n    require(\n      riskPremiumThreshold == MAX_RISK_PREMIUM_THRESHOLD ||\n        spoke.premiumShares <= spoke.drawnShares.percentMulUp(riskPremiumThreshold),\n      InvalidPremiumChange()\n    );\n  }\n\n  function _mintFeeShares(Asset storage asset, uint256 assetId) internal returns (uint256) {\n    uint256 fees = asset.realizedFees;\n    uint120 shares = asset.toAddedSharesDown(fees).toUint120();\n    if (shares == 0) {\n      return 0;\n    }\n\n    address feeReceiver = asset.feeReceiver;\n    SpokeData storage feeReceiverSpoke = _spokes[assetId][feeReceiver];\n    require(feeReceiverSpoke.active, SpokeNotActive());\n\n    asset.addedShares += shares;\n    feeReceiverSpoke.addedShares += shares;\n    asset.realizedFees = 0;\n    emit MintFeeShares(assetId, feeReceiver, shares, fees);\n\n    return shares;\n  }\n\n  /// @dev Returns the Spoke's drawn amount for a specified asset.\n  function _getSpokeDrawn(\n    Asset storage asset,\n    SpokeData storage spoke\n  ) internal view returns (uint256) {\n    return asset.toDrawnAssetsUp(spoke.drawnShares);\n  }\n\n  /// @dev Returns the Spoke's premium amount for a specified asset.\n  function _getSpokePremium(\n    Asset storage asset,\n    SpokeData storage spoke\n  ) internal view returns (uint256) {\n    return _getSpokePremiumRay(asset, spoke).fromRayUp();\n  }\n\n  /// @dev Returns the Spoke's premium amount with full precision for a specified asset.\n  function _getSpokePremiumRay(\n    Asset storage asset,\n    SpokeData storage spoke\n  ) internal view returns (uint256) {\n    return\n      Premium.calculatePremiumRay({\n        premiumShares: spoke.premiumShares,\n        premiumOffsetRay: spoke.premiumOffsetRay,\n        drawnIndex: asset.getDrawnIndex()\n      });\n  }\n\n  /// @dev Spoke with maximum cap have unlimited add capacity.\n  function _validateAdd(\n    Asset storage asset,\n    SpokeData storage spoke,\n    uint256 amount\n  ) internal view {\n    require(amount > 0, InvalidAmount());\n    require(spoke.active, SpokeNotActive());\n    require(!spoke.halted, SpokeHalted());\n    uint256 addCap = spoke.addCap;\n    require(\n      addCap == MAX_ALLOWED_SPOKE_CAP ||\n        addCap * MathUtils.uncheckedExp(10, asset.decimals) >=\n          asset.toAddedAssetsUp(spoke.addedShares) + amount,\n      AddCapExceeded(addCap)\n    );\n  }\n\n  function _validateRemove(SpokeData storage spoke, uint256 amount, address to) internal view {\n    require(to != address(this), InvalidAddress());\n    require(amount > 0, InvalidAmount());\n    require(spoke.active, SpokeNotActive());\n    require(!spoke.halted, SpokeHalted());\n  }\n\n  /// @dev The draw cap is enforced against the Spoke's total owed, including any reported deficit.\n  /// @dev Spoke with maximum cap have unlimited draw capacity.\n  function _validateDraw(\n    Asset storage asset,\n    SpokeData storage spoke,\n    uint256 amount,\n    address to\n  ) internal view {\n    require(to != address(this), InvalidAddress());\n    require(amount > 0, InvalidAmount());\n    require(spoke.active, SpokeNotActive());\n    require(!spoke.halted, SpokeHalted());\n    uint256 drawCap = spoke.drawCap;\n    uint256 owed = _getSpokeDrawn(asset, spoke) + _getSpokePremium(asset, spoke);\n    require(\n      drawCap == MAX_ALLOWED_SPOKE_CAP ||\n        drawCap * MathUtils.uncheckedExp(10, asset.decimals) >=\n          owed + amount + uint256(spoke.deficitRay).fromRayUp(),\n      DrawCapExceeded(drawCap)\n    );\n  }\n\n  function _validateRestore(\n    Asset storage asset,\n    SpokeData storage spoke,\n    uint256 drawnAmount,\n    uint256 premiumAmountRay\n  ) internal view {\n    require(drawnAmount > 0 || premiumAmountRay > 0, InvalidAmount());\n    require(spoke.active, SpokeNotActive());\n    require(!spoke.halted, SpokeHalted());\n    uint256 drawn = _getSpokeDrawn(asset, spoke);\n    uint256 premiumRay = _getSpokePremiumRay(asset, spoke);\n    require(drawnAmount <= drawn, SurplusDrawnRestored(drawn));\n    require(premiumAmountRay <= premiumRay, SurplusPremiumRayRestored(premiumRay));\n  }\n\n  function _validateReportDeficit(\n    Asset storage asset,\n    SpokeData storage spoke,\n    uint256 drawnAmount,\n    uint256 premiumAmountRay\n  ) internal view {\n    require(drawnAmount > 0 || premiumAmountRay > 0, InvalidAmount());\n    require(spoke.active, SpokeNotActive());\n    uint256 drawn = _getSpokeDrawn(asset, spoke);\n    uint256 premiumRay = _getSpokePremiumRay(asset, spoke);\n    require(drawnAmount <= drawn, SurplusDrawnDeficitReported(drawn));\n    require(premiumAmountRay <= premiumRay, SurplusPremiumRayDeficitReported(premiumRay));\n  }\n\n  function _validateEliminateDeficit(\n    SpokeData storage callerSpoke,\n    uint256 deficitAmountRay\n  ) internal view {\n    require(callerSpoke.active, SpokeNotActive());\n    require(deficitAmountRay > 0, InvalidAmount());\n  }\n\n  function _validatePayFeeShares(SpokeData storage callerSpoke, uint256 feeShares) internal view {\n    require(callerSpoke.active, SpokeNotActive());\n    require(feeShares > 0, InvalidShares());\n  }\n\n  function _validateTransferShares(\n    Asset storage asset,\n    SpokeData storage callerSpoke,\n    SpokeData storage receiverSpoke,\n    uint256 shares\n  ) internal view {\n    require(callerSpoke.active && receiverSpoke.active, SpokeNotActive());\n    require(!callerSpoke.halted && !receiverSpoke.halted, SpokeHalted());\n    require(shares > 0, InvalidShares());\n    uint256 addCap = receiverSpoke.addCap;\n    require(\n      addCap == MAX_ALLOWED_SPOKE_CAP ||\n        addCap * MathUtils.uncheckedExp(10, asset.decimals) >=\n          asset.toAddedAssetsUp(receiverSpoke.addedShares + shares),\n      AddCapExceeded(addCap)\n    );\n  }\n\n  function _validateSweep(Asset storage asset, address caller, uint256 amount) internal view {\n    // sufficient check to disallow when controller unset\n    require(caller == asset.reinvestmentController, OnlyReinvestmentController());\n    require(amount > 0, InvalidAmount());\n  }\n\n  function _validateReclaim(Asset storage asset, address caller, uint256 amount) internal view {\n    // sufficient check to disallow when controller unset\n    require(caller == asset.reinvestmentController, OnlyReinvestmentController());\n    require(amount > 0, InvalidAmount());\n  }\n\n  /// @dev Validates applied premium delta for given premium data and returns updated premium data.\n  function _validateApplyPremiumDelta(\n    uint256 drawnIndex,\n    uint256 premiumShares,\n    int256 premiumOffsetRay,\n    PremiumDelta calldata premiumDelta\n  ) internal pure returns (uint120, int200) {\n    uint256 premiumRayBefore = Premium.calculatePremiumRay({\n      premiumShares: premiumShares,\n      premiumOffsetRay: premiumOffsetRay,\n      drawnIndex: drawnIndex\n    });\n\n    uint256 newPremiumShares = premiumShares.add(premiumDelta.sharesDelta);\n    int256 newPremiumOffsetRay = premiumOffsetRay + premiumDelta.offsetRayDelta;\n\n    uint256 premiumRayAfter = Premium.calculatePremiumRay({\n      premiumShares: newPremiumShares,\n      premiumOffsetRay: newPremiumOffsetRay,\n      drawnIndex: drawnIndex\n    });\n\n    require(\n      premiumRayAfter + premiumDelta.restoredPremiumRay == premiumRayBefore,\n      InvalidPremiumChange()\n    );\n    return (newPremiumShares.toUint120(), newPremiumOffsetRay.toInt200());\n  }\n}\n"},"src/dependencies/openzeppelin-upgradeable/AccessManagedUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (access/manager/AccessManaged.sol)\n\npragma solidity ^0.8.20;\n\nimport {AuthorityUtils} from '../openzeppelin/AuthorityUtils.sol';\nimport {IAccessManager} from '../openzeppelin/IAccessManager.sol';\nimport {IAccessManaged} from '../openzeppelin/IAccessManaged.sol';\nimport {ContextUpgradeable} from './ContextUpgradeable.sol';\nimport {Initializable} from './Initializable.sol';\n\n/**\n * @dev This contract module makes available a {restricted} modifier. Functions decorated with this modifier will be\n * permissioned according to an \"authority\": a contract like {AccessManager} that follows the {IAuthority} interface,\n * implementing a policy that allows certain callers to access certain functions.\n *\n * IMPORTANT: The `restricted` modifier should never be used on `internal` functions, judiciously used in `public`\n * functions, and ideally only used in `external` functions. See {restricted}.\n */\nabstract contract AccessManagedUpgradeable is Initializable, ContextUpgradeable, IAccessManaged {\n  /// @custom:storage-location erc7201:openzeppelin.storage.AccessManaged\n  struct AccessManagedStorage {\n    address _authority;\n    bool _consumingSchedule;\n  }\n\n  // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.AccessManaged\")) - 1)) & ~bytes32(uint256(0xff))\n  bytes32 private constant AccessManagedStorageLocation =\n    0xf3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00;\n\n  function _getAccessManagedStorage() private pure returns (AccessManagedStorage storage $) {\n    assembly {\n      $.slot := AccessManagedStorageLocation\n    }\n  }\n\n  /**\n   * @dev Initializes the contract connected to an initial authority.\n   */\n  function __AccessManaged_init(address initialAuthority) internal onlyInitializing {\n    __AccessManaged_init_unchained(initialAuthority);\n  }\n\n  function __AccessManaged_init_unchained(address initialAuthority) internal onlyInitializing {\n    _setAuthority(initialAuthority);\n  }\n\n  /**\n   * @dev Restricts access to a function as defined by the connected Authority for this contract and the\n   * caller and selector of the function that entered the contract.\n   *\n   * [IMPORTANT]\n   * ====\n   * In general, this modifier should only be used on `external` functions. It is okay to use it on `public`\n   * functions that are used as external entry points and are not called internally. Unless you know what you're\n   * doing, it should never be used on `internal` functions. Failure to follow these rules can have critical security\n   * implications! This is because the permissions are determined by the function that entered the contract, i.e. the\n   * function at the bottom of the call stack, and not the function where the modifier is visible in the source code.\n   * ====\n   *\n   * [WARNING]\n   * ====\n   * Avoid adding this modifier to the https://docs.soliditylang.org/en/v0.8.20/contracts.html#receive-ether-function[`receive()`]\n   * function or the https://docs.soliditylang.org/en/v0.8.20/contracts.html#fallback-function[`fallback()`]. These\n   * functions are the only execution paths where a function selector cannot be unambiguously determined from the calldata\n   * since the selector defaults to `0x00000000` in the `receive()` function and similarly in the `fallback()` function\n   * if no calldata is provided. (See {_checkCanCall}).\n   *\n   * The `receive()` function will always panic whereas the `fallback()` may panic depending on the calldata length.\n   * ====\n   */\n  modifier restricted() {\n    _checkCanCall(_msgSender(), _msgData());\n    _;\n  }\n\n  /// @inheritdoc IAccessManaged\n  function authority() public view virtual returns (address) {\n    AccessManagedStorage storage $ = _getAccessManagedStorage();\n    return $._authority;\n  }\n\n  /// @inheritdoc IAccessManaged\n  function setAuthority(address newAuthority) public virtual {\n    address caller = _msgSender();\n    if (caller != authority()) {\n      revert AccessManagedUnauthorized(caller);\n    }\n    if (newAuthority.code.length == 0) {\n      revert AccessManagedInvalidAuthority(newAuthority);\n    }\n    _setAuthority(newAuthority);\n  }\n\n  /// @inheritdoc IAccessManaged\n  function isConsumingScheduledOp() public view returns (bytes4) {\n    AccessManagedStorage storage $ = _getAccessManagedStorage();\n    return $._consumingSchedule ? this.isConsumingScheduledOp.selector : bytes4(0);\n  }\n\n  /**\n   * @dev Transfers control to a new authority. Internal function with no access restriction. Allows bypassing the\n   * permissions set by the current authority.\n   */\n  function _setAuthority(address newAuthority) internal virtual {\n    AccessManagedStorage storage $ = _getAccessManagedStorage();\n    $._authority = newAuthority;\n    emit AuthorityUpdated(newAuthority);\n  }\n\n  /**\n   * @dev Reverts if the caller is not allowed to call the function identified by a selector. Panics if the calldata\n   * is less than 4 bytes long.\n   */\n  function _checkCanCall(address caller, bytes calldata data) internal virtual {\n    AccessManagedStorage storage $ = _getAccessManagedStorage();\n    (bool immediate, uint32 delay) = AuthorityUtils.canCallWithDelay(\n      authority(),\n      caller,\n      address(this),\n      bytes4(data[0:4])\n    );\n    if (!immediate) {\n      if (delay > 0) {\n        $._consumingSchedule = true;\n        IAccessManager(authority()).consumeScheduledOp(caller, data);\n        $._consumingSchedule = false;\n      } else {\n        revert AccessManagedUnauthorized(caller);\n      }\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/EnumerableSet.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/structs/EnumerableSet.sol)\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\n\npragma solidity ^0.8.24;\n\nimport {Arrays} from './Arrays.sol';\nimport {Math} from './Math.sol';\n\n/**\n * @dev Library for managing\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\n * types.\n *\n * Sets have the following properties:\n *\n * - Elements are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\n * - Set can be cleared (all elements removed) in O(n).\n *\n * ```solidity\n * contract Example {\n *     // Add the library methods\n *     using EnumerableSet for EnumerableSet.AddressSet;\n *\n *     // Declare a set state variable\n *     EnumerableSet.AddressSet private mySet;\n * }\n * ```\n *\n * The following types are supported:\n *\n * - `bytes32` (`Bytes32Set`) since v3.3.0\n * - `address` (`AddressSet`) since v3.3.0\n * - `uint256` (`UintSet`) since v3.3.0\n * - `string` (`StringSet`) since v5.4.0\n * - `bytes` (`BytesSet`) since v5.4.0\n *\n * [WARNING]\n * ====\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\n * unusable.\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\n *\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\n * array of EnumerableSet.\n * ====\n */\nlibrary EnumerableSet {\n  // To implement this library for multiple types with as little code\n  // repetition as possible, we write it in terms of a generic Set type with\n  // bytes32 values.\n  // The Set implementation uses private functions, and user-facing\n  // implementations (such as AddressSet) are just wrappers around the\n  // underlying Set.\n  // This means that we can only create new EnumerableSets for types that fit\n  // in bytes32.\n\n  struct Set {\n    // Storage of set values\n    bytes32[] _values;\n    // Position is the index of the value in the `values` array plus 1.\n    // Position 0 is used to mean a value is not in the set.\n    mapping(bytes32 value => uint256) _positions;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function _add(Set storage set, bytes32 value) private returns (bool) {\n    if (!_contains(set, value)) {\n      set._values.push(value);\n      // The value is stored at length-1, but we add 1 to all indexes\n      // and use 0 as a sentinel value\n      set._positions[value] = set._values.length;\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function _remove(Set storage set, bytes32 value) private returns (bool) {\n    // We cache the value's position to prevent multiple reads from the same storage slot\n    uint256 position = set._positions[value];\n\n    if (position != 0) {\n      // Equivalent to contains(set, value)\n      // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n      // the array, and then remove the last element (sometimes called as 'swap and pop').\n      // This modifies the order of the array, as noted in {at}.\n\n      uint256 valueIndex = position - 1;\n      uint256 lastIndex = set._values.length - 1;\n\n      if (valueIndex != lastIndex) {\n        bytes32 lastValue = set._values[lastIndex];\n\n        // Move the lastValue to the index where the value to delete is\n        set._values[valueIndex] = lastValue;\n        // Update the tracked position of the lastValue (that was just moved)\n        set._positions[lastValue] = position;\n      }\n\n      // Delete the slot where the moved value was stored\n      set._values.pop();\n\n      // Delete the tracked position for the deleted slot\n      delete set._positions[value];\n\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: This function has an unbounded cost that scales with set size. Developers should keep in mind that\n   * using it may render the function uncallable if the set grows to the point where clearing it consumes too much\n   * gas to fit in a block.\n   */\n  function _clear(Set storage set) private {\n    uint256 len = _length(set);\n    for (uint256 i = 0; i < len; ++i) {\n      delete set._positions[set._values[i]];\n    }\n    Arrays.unsafeSetLength(set._values, 0);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function _contains(Set storage set, bytes32 value) private view returns (bool) {\n    return set._positions[value] != 0;\n  }\n\n  /**\n   * @dev Returns the number of values on the set. O(1).\n   */\n  function _length(Set storage set) private view returns (uint256) {\n    return set._values.length;\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function _at(Set storage set, uint256 index) private view returns (bytes32) {\n    return set._values[index];\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function _values(Set storage set) private view returns (bytes32[] memory) {\n    return set._values;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function _values(\n    Set storage set,\n    uint256 start,\n    uint256 end\n  ) private view returns (bytes32[] memory) {\n    unchecked {\n      end = Math.min(end, _length(set));\n      start = Math.min(start, end);\n\n      uint256 len = end - start;\n      bytes32[] memory result = new bytes32[](len);\n      for (uint256 i = 0; i < len; ++i) {\n        result[i] = Arrays.unsafeAccess(set._values, start + i).value;\n      }\n      return result;\n    }\n  }\n\n  // Bytes32Set\n\n  struct Bytes32Set {\n    Set _inner;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n    return _add(set._inner, value);\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n    return _remove(set._inner, value);\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the\n   * function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.\n   */\n  function clear(Bytes32Set storage set) internal {\n    _clear(set._inner);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\n    return _contains(set._inner, value);\n  }\n\n  /**\n   * @dev Returns the number of values in the set. O(1).\n   */\n  function length(Bytes32Set storage set) internal view returns (uint256) {\n    return _length(set._inner);\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\n    return _at(set._inner, index);\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\n    bytes32[] memory store = _values(set._inner);\n    bytes32[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(\n    Bytes32Set storage set,\n    uint256 start,\n    uint256 end\n  ) internal view returns (bytes32[] memory) {\n    bytes32[] memory store = _values(set._inner, start, end);\n    bytes32[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  // AddressSet\n\n  struct AddressSet {\n    Set _inner;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(AddressSet storage set, address value) internal returns (bool) {\n    return _add(set._inner, bytes32(uint256(uint160(value))));\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(AddressSet storage set, address value) internal returns (bool) {\n    return _remove(set._inner, bytes32(uint256(uint160(value))));\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the\n   * function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.\n   */\n  function clear(AddressSet storage set) internal {\n    _clear(set._inner);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(AddressSet storage set, address value) internal view returns (bool) {\n    return _contains(set._inner, bytes32(uint256(uint160(value))));\n  }\n\n  /**\n   * @dev Returns the number of values in the set. O(1).\n   */\n  function length(AddressSet storage set) internal view returns (uint256) {\n    return _length(set._inner);\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(AddressSet storage set, uint256 index) internal view returns (address) {\n    return address(uint160(uint256(_at(set._inner, index))));\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(AddressSet storage set) internal view returns (address[] memory) {\n    bytes32[] memory store = _values(set._inner);\n    address[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(\n    AddressSet storage set,\n    uint256 start,\n    uint256 end\n  ) internal view returns (address[] memory) {\n    bytes32[] memory store = _values(set._inner, start, end);\n    address[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  // UintSet\n\n  struct UintSet {\n    Set _inner;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(UintSet storage set, uint256 value) internal returns (bool) {\n    return _add(set._inner, bytes32(value));\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(UintSet storage set, uint256 value) internal returns (bool) {\n    return _remove(set._inner, bytes32(value));\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the\n   * function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.\n   */\n  function clear(UintSet storage set) internal {\n    _clear(set._inner);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(UintSet storage set, uint256 value) internal view returns (bool) {\n    return _contains(set._inner, bytes32(value));\n  }\n\n  /**\n   * @dev Returns the number of values in the set. O(1).\n   */\n  function length(UintSet storage set) internal view returns (uint256) {\n    return _length(set._inner);\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(UintSet storage set, uint256 index) internal view returns (uint256) {\n    return uint256(_at(set._inner, index));\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(UintSet storage set) internal view returns (uint256[] memory) {\n    bytes32[] memory store = _values(set._inner);\n    uint256[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(\n    UintSet storage set,\n    uint256 start,\n    uint256 end\n  ) internal view returns (uint256[] memory) {\n    bytes32[] memory store = _values(set._inner, start, end);\n    uint256[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  struct StringSet {\n    // Storage of set values\n    string[] _values;\n    // Position is the index of the value in the `values` array plus 1.\n    // Position 0 is used to mean a value is not in the set.\n    mapping(string value => uint256) _positions;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(StringSet storage set, string memory value) internal returns (bool) {\n    if (!contains(set, value)) {\n      set._values.push(value);\n      // The value is stored at length-1, but we add 1 to all indexes\n      // and use 0 as a sentinel value\n      set._positions[value] = set._values.length;\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(StringSet storage set, string memory value) internal returns (bool) {\n    // We cache the value's position to prevent multiple reads from the same storage slot\n    uint256 position = set._positions[value];\n\n    if (position != 0) {\n      // Equivalent to contains(set, value)\n      // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n      // the array, and then remove the last element (sometimes called as 'swap and pop').\n      // This modifies the order of the array, as noted in {at}.\n\n      uint256 valueIndex = position - 1;\n      uint256 lastIndex = set._values.length - 1;\n\n      if (valueIndex != lastIndex) {\n        string memory lastValue = set._values[lastIndex];\n\n        // Move the lastValue to the index where the value to delete is\n        set._values[valueIndex] = lastValue;\n        // Update the tracked position of the lastValue (that was just moved)\n        set._positions[lastValue] = position;\n      }\n\n      // Delete the slot where the moved value was stored\n      set._values.pop();\n\n      // Delete the tracked position for the deleted slot\n      delete set._positions[value];\n\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the\n   * function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.\n   */\n  function clear(StringSet storage set) internal {\n    uint256 len = length(set);\n    for (uint256 i = 0; i < len; ++i) {\n      delete set._positions[set._values[i]];\n    }\n    Arrays.unsafeSetLength(set._values, 0);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(StringSet storage set, string memory value) internal view returns (bool) {\n    return set._positions[value] != 0;\n  }\n\n  /**\n   * @dev Returns the number of values on the set. O(1).\n   */\n  function length(StringSet storage set) internal view returns (uint256) {\n    return set._values.length;\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(StringSet storage set, uint256 index) internal view returns (string memory) {\n    return set._values[index];\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(StringSet storage set) internal view returns (string[] memory) {\n    return set._values;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(\n    StringSet storage set,\n    uint256 start,\n    uint256 end\n  ) internal view returns (string[] memory) {\n    unchecked {\n      end = Math.min(end, length(set));\n      start = Math.min(start, end);\n\n      uint256 len = end - start;\n      string[] memory result = new string[](len);\n      for (uint256 i = 0; i < len; ++i) {\n        result[i] = Arrays.unsafeAccess(set._values, start + i).value;\n      }\n      return result;\n    }\n  }\n\n  struct BytesSet {\n    // Storage of set values\n    bytes[] _values;\n    // Position is the index of the value in the `values` array plus 1.\n    // Position 0 is used to mean a value is not in the set.\n    mapping(bytes value => uint256) _positions;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(BytesSet storage set, bytes memory value) internal returns (bool) {\n    if (!contains(set, value)) {\n      set._values.push(value);\n      // The value is stored at length-1, but we add 1 to all indexes\n      // and use 0 as a sentinel value\n      set._positions[value] = set._values.length;\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(BytesSet storage set, bytes memory value) internal returns (bool) {\n    // We cache the value's position to prevent multiple reads from the same storage slot\n    uint256 position = set._positions[value];\n\n    if (position != 0) {\n      // Equivalent to contains(set, value)\n      // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n      // the array, and then remove the last element (sometimes called as 'swap and pop').\n      // This modifies the order of the array, as noted in {at}.\n\n      uint256 valueIndex = position - 1;\n      uint256 lastIndex = set._values.length - 1;\n\n      if (valueIndex != lastIndex) {\n        bytes memory lastValue = set._values[lastIndex];\n\n        // Move the lastValue to the index where the value to delete is\n        set._values[valueIndex] = lastValue;\n        // Update the tracked position of the lastValue (that was just moved)\n        set._positions[lastValue] = position;\n      }\n\n      // Delete the slot where the moved value was stored\n      set._values.pop();\n\n      // Delete the tracked position for the deleted slot\n      delete set._positions[value];\n\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the\n   * function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.\n   */\n  function clear(BytesSet storage set) internal {\n    uint256 len = length(set);\n    for (uint256 i = 0; i < len; ++i) {\n      delete set._positions[set._values[i]];\n    }\n    Arrays.unsafeSetLength(set._values, 0);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(BytesSet storage set, bytes memory value) internal view returns (bool) {\n    return set._positions[value] != 0;\n  }\n\n  /**\n   * @dev Returns the number of values on the set. O(1).\n   */\n  function length(BytesSet storage set) internal view returns (uint256) {\n    return set._values.length;\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(BytesSet storage set, uint256 index) internal view returns (bytes memory) {\n    return set._values[index];\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(BytesSet storage set) internal view returns (bytes[] memory) {\n    return set._values;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(\n    BytesSet storage set,\n    uint256 start,\n    uint256 end\n  ) internal view returns (bytes[] memory) {\n    unchecked {\n      end = Math.min(end, length(set));\n      start = Math.min(start, end);\n\n      uint256 len = end - start;\n      bytes[] memory result = new bytes[](len);\n      for (uint256 i = 0; i < len; ++i) {\n        result[i] = Arrays.unsafeAccess(set._values, start + i).value;\n      }\n      return result;\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeCast {\n  /**\n   * @dev Value doesn't fit in an uint of `bits` size.\n   */\n  error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n  /**\n   * @dev An int value doesn't fit in an uint of `bits` size.\n   */\n  error SafeCastOverflowedIntToUint(int256 value);\n\n  /**\n   * @dev Value doesn't fit in an int of `bits` size.\n   */\n  error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n  /**\n   * @dev An uint value doesn't fit in an int of `bits` size.\n   */\n  error SafeCastOverflowedUintToInt(uint256 value);\n\n  /**\n   * @dev Returns the downcasted uint248 from uint256, reverting on\n   * overflow (when the input is greater than largest uint248).\n   *\n   * Counterpart to Solidity's `uint248` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 248 bits\n   */\n  function toUint248(uint256 value) internal pure returns (uint248) {\n    if (value > type(uint248).max) {\n      revert SafeCastOverflowedUintDowncast(248, value);\n    }\n    return uint248(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint240 from uint256, reverting on\n   * overflow (when the input is greater than largest uint240).\n   *\n   * Counterpart to Solidity's `uint240` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 240 bits\n   */\n  function toUint240(uint256 value) internal pure returns (uint240) {\n    if (value > type(uint240).max) {\n      revert SafeCastOverflowedUintDowncast(240, value);\n    }\n    return uint240(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint232 from uint256, reverting on\n   * overflow (when the input is greater than largest uint232).\n   *\n   * Counterpart to Solidity's `uint232` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 232 bits\n   */\n  function toUint232(uint256 value) internal pure returns (uint232) {\n    if (value > type(uint232).max) {\n      revert SafeCastOverflowedUintDowncast(232, value);\n    }\n    return uint232(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint224 from uint256, reverting on\n   * overflow (when the input is greater than largest uint224).\n   *\n   * Counterpart to Solidity's `uint224` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 224 bits\n   */\n  function toUint224(uint256 value) internal pure returns (uint224) {\n    if (value > type(uint224).max) {\n      revert SafeCastOverflowedUintDowncast(224, value);\n    }\n    return uint224(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint216 from uint256, reverting on\n   * overflow (when the input is greater than largest uint216).\n   *\n   * Counterpart to Solidity's `uint216` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 216 bits\n   */\n  function toUint216(uint256 value) internal pure returns (uint216) {\n    if (value > type(uint216).max) {\n      revert SafeCastOverflowedUintDowncast(216, value);\n    }\n    return uint216(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint208 from uint256, reverting on\n   * overflow (when the input is greater than largest uint208).\n   *\n   * Counterpart to Solidity's `uint208` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 208 bits\n   */\n  function toUint208(uint256 value) internal pure returns (uint208) {\n    if (value > type(uint208).max) {\n      revert SafeCastOverflowedUintDowncast(208, value);\n    }\n    return uint208(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint200 from uint256, reverting on\n   * overflow (when the input is greater than largest uint200).\n   *\n   * Counterpart to Solidity's `uint200` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 200 bits\n   */\n  function toUint200(uint256 value) internal pure returns (uint200) {\n    if (value > type(uint200).max) {\n      revert SafeCastOverflowedUintDowncast(200, value);\n    }\n    return uint200(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint192 from uint256, reverting on\n   * overflow (when the input is greater than largest uint192).\n   *\n   * Counterpart to Solidity's `uint192` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 192 bits\n   */\n  function toUint192(uint256 value) internal pure returns (uint192) {\n    if (value > type(uint192).max) {\n      revert SafeCastOverflowedUintDowncast(192, value);\n    }\n    return uint192(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint184 from uint256, reverting on\n   * overflow (when the input is greater than largest uint184).\n   *\n   * Counterpart to Solidity's `uint184` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 184 bits\n   */\n  function toUint184(uint256 value) internal pure returns (uint184) {\n    if (value > type(uint184).max) {\n      revert SafeCastOverflowedUintDowncast(184, value);\n    }\n    return uint184(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint176 from uint256, reverting on\n   * overflow (when the input is greater than largest uint176).\n   *\n   * Counterpart to Solidity's `uint176` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 176 bits\n   */\n  function toUint176(uint256 value) internal pure returns (uint176) {\n    if (value > type(uint176).max) {\n      revert SafeCastOverflowedUintDowncast(176, value);\n    }\n    return uint176(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint168 from uint256, reverting on\n   * overflow (when the input is greater than largest uint168).\n   *\n   * Counterpart to Solidity's `uint168` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 168 bits\n   */\n  function toUint168(uint256 value) internal pure returns (uint168) {\n    if (value > type(uint168).max) {\n      revert SafeCastOverflowedUintDowncast(168, value);\n    }\n    return uint168(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint160 from uint256, reverting on\n   * overflow (when the input is greater than largest uint160).\n   *\n   * Counterpart to Solidity's `uint160` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 160 bits\n   */\n  function toUint160(uint256 value) internal pure returns (uint160) {\n    if (value > type(uint160).max) {\n      revert SafeCastOverflowedUintDowncast(160, value);\n    }\n    return uint160(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint152 from uint256, reverting on\n   * overflow (when the input is greater than largest uint152).\n   *\n   * Counterpart to Solidity's `uint152` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 152 bits\n   */\n  function toUint152(uint256 value) internal pure returns (uint152) {\n    if (value > type(uint152).max) {\n      revert SafeCastOverflowedUintDowncast(152, value);\n    }\n    return uint152(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint144 from uint256, reverting on\n   * overflow (when the input is greater than largest uint144).\n   *\n   * Counterpart to Solidity's `uint144` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 144 bits\n   */\n  function toUint144(uint256 value) internal pure returns (uint144) {\n    if (value > type(uint144).max) {\n      revert SafeCastOverflowedUintDowncast(144, value);\n    }\n    return uint144(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint136 from uint256, reverting on\n   * overflow (when the input is greater than largest uint136).\n   *\n   * Counterpart to Solidity's `uint136` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 136 bits\n   */\n  function toUint136(uint256 value) internal pure returns (uint136) {\n    if (value > type(uint136).max) {\n      revert SafeCastOverflowedUintDowncast(136, value);\n    }\n    return uint136(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint128 from uint256, reverting on\n   * overflow (when the input is greater than largest uint128).\n   *\n   * Counterpart to Solidity's `uint128` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 128 bits\n   */\n  function toUint128(uint256 value) internal pure returns (uint128) {\n    if (value > type(uint128).max) {\n      revert SafeCastOverflowedUintDowncast(128, value);\n    }\n    return uint128(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint120 from uint256, reverting on\n   * overflow (when the input is greater than largest uint120).\n   *\n   * Counterpart to Solidity's `uint120` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 120 bits\n   */\n  function toUint120(uint256 value) internal pure returns (uint120) {\n    if (value > type(uint120).max) {\n      revert SafeCastOverflowedUintDowncast(120, value);\n    }\n    return uint120(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint112 from uint256, reverting on\n   * overflow (when the input is greater than largest uint112).\n   *\n   * Counterpart to Solidity's `uint112` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 112 bits\n   */\n  function toUint112(uint256 value) internal pure returns (uint112) {\n    if (value > type(uint112).max) {\n      revert SafeCastOverflowedUintDowncast(112, value);\n    }\n    return uint112(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint104 from uint256, reverting on\n   * overflow (when the input is greater than largest uint104).\n   *\n   * Counterpart to Solidity's `uint104` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 104 bits\n   */\n  function toUint104(uint256 value) internal pure returns (uint104) {\n    if (value > type(uint104).max) {\n      revert SafeCastOverflowedUintDowncast(104, value);\n    }\n    return uint104(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint96 from uint256, reverting on\n   * overflow (when the input is greater than largest uint96).\n   *\n   * Counterpart to Solidity's `uint96` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 96 bits\n   */\n  function toUint96(uint256 value) internal pure returns (uint96) {\n    if (value > type(uint96).max) {\n      revert SafeCastOverflowedUintDowncast(96, value);\n    }\n    return uint96(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint88 from uint256, reverting on\n   * overflow (when the input is greater than largest uint88).\n   *\n   * Counterpart to Solidity's `uint88` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 88 bits\n   */\n  function toUint88(uint256 value) internal pure returns (uint88) {\n    if (value > type(uint88).max) {\n      revert SafeCastOverflowedUintDowncast(88, value);\n    }\n    return uint88(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint80 from uint256, reverting on\n   * overflow (when the input is greater than largest uint80).\n   *\n   * Counterpart to Solidity's `uint80` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 80 bits\n   */\n  function toUint80(uint256 value) internal pure returns (uint80) {\n    if (value > type(uint80).max) {\n      revert SafeCastOverflowedUintDowncast(80, value);\n    }\n    return uint80(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint72 from uint256, reverting on\n   * overflow (when the input is greater than largest uint72).\n   *\n   * Counterpart to Solidity's `uint72` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 72 bits\n   */\n  function toUint72(uint256 value) internal pure returns (uint72) {\n    if (value > type(uint72).max) {\n      revert SafeCastOverflowedUintDowncast(72, value);\n    }\n    return uint72(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint64 from uint256, reverting on\n   * overflow (when the input is greater than largest uint64).\n   *\n   * Counterpart to Solidity's `uint64` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 64 bits\n   */\n  function toUint64(uint256 value) internal pure returns (uint64) {\n    if (value > type(uint64).max) {\n      revert SafeCastOverflowedUintDowncast(64, value);\n    }\n    return uint64(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint56 from uint256, reverting on\n   * overflow (when the input is greater than largest uint56).\n   *\n   * Counterpart to Solidity's `uint56` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 56 bits\n   */\n  function toUint56(uint256 value) internal pure returns (uint56) {\n    if (value > type(uint56).max) {\n      revert SafeCastOverflowedUintDowncast(56, value);\n    }\n    return uint56(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint48 from uint256, reverting on\n   * overflow (when the input is greater than largest uint48).\n   *\n   * Counterpart to Solidity's `uint48` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 48 bits\n   */\n  function toUint48(uint256 value) internal pure returns (uint48) {\n    if (value > type(uint48).max) {\n      revert SafeCastOverflowedUintDowncast(48, value);\n    }\n    return uint48(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint40 from uint256, reverting on\n   * overflow (when the input is greater than largest uint40).\n   *\n   * Counterpart to Solidity's `uint40` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 40 bits\n   */\n  function toUint40(uint256 value) internal pure returns (uint40) {\n    if (value > type(uint40).max) {\n      revert SafeCastOverflowedUintDowncast(40, value);\n    }\n    return uint40(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint32 from uint256, reverting on\n   * overflow (when the input is greater than largest uint32).\n   *\n   * Counterpart to Solidity's `uint32` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 32 bits\n   */\n  function toUint32(uint256 value) internal pure returns (uint32) {\n    if (value > type(uint32).max) {\n      revert SafeCastOverflowedUintDowncast(32, value);\n    }\n    return uint32(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint24 from uint256, reverting on\n   * overflow (when the input is greater than largest uint24).\n   *\n   * Counterpart to Solidity's `uint24` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 24 bits\n   */\n  function toUint24(uint256 value) internal pure returns (uint24) {\n    if (value > type(uint24).max) {\n      revert SafeCastOverflowedUintDowncast(24, value);\n    }\n    return uint24(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint16 from uint256, reverting on\n   * overflow (when the input is greater than largest uint16).\n   *\n   * Counterpart to Solidity's `uint16` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 16 bits\n   */\n  function toUint16(uint256 value) internal pure returns (uint16) {\n    if (value > type(uint16).max) {\n      revert SafeCastOverflowedUintDowncast(16, value);\n    }\n    return uint16(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint8 from uint256, reverting on\n   * overflow (when the input is greater than largest uint8).\n   *\n   * Counterpart to Solidity's `uint8` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 8 bits\n   */\n  function toUint8(uint256 value) internal pure returns (uint8) {\n    if (value > type(uint8).max) {\n      revert SafeCastOverflowedUintDowncast(8, value);\n    }\n    return uint8(value);\n  }\n\n  /**\n   * @dev Converts a signed int256 into an unsigned uint256.\n   *\n   * Requirements:\n   *\n   * - input must be greater than or equal to 0.\n   */\n  function toUint256(int256 value) internal pure returns (uint256) {\n    if (value < 0) {\n      revert SafeCastOverflowedIntToUint(value);\n    }\n    return uint256(value);\n  }\n\n  /**\n   * @dev Returns the downcasted int248 from int256, reverting on\n   * overflow (when the input is less than smallest int248 or\n   * greater than largest int248).\n   *\n   * Counterpart to Solidity's `int248` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 248 bits\n   */\n  function toInt248(int256 value) internal pure returns (int248 downcasted) {\n    downcasted = int248(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(248, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int240 from int256, reverting on\n   * overflow (when the input is less than smallest int240 or\n   * greater than largest int240).\n   *\n   * Counterpart to Solidity's `int240` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 240 bits\n   */\n  function toInt240(int256 value) internal pure returns (int240 downcasted) {\n    downcasted = int240(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(240, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int232 from int256, reverting on\n   * overflow (when the input is less than smallest int232 or\n   * greater than largest int232).\n   *\n   * Counterpart to Solidity's `int232` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 232 bits\n   */\n  function toInt232(int256 value) internal pure returns (int232 downcasted) {\n    downcasted = int232(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(232, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int224 from int256, reverting on\n   * overflow (when the input is less than smallest int224 or\n   * greater than largest int224).\n   *\n   * Counterpart to Solidity's `int224` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 224 bits\n   */\n  function toInt224(int256 value) internal pure returns (int224 downcasted) {\n    downcasted = int224(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(224, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int216 from int256, reverting on\n   * overflow (when the input is less than smallest int216 or\n   * greater than largest int216).\n   *\n   * Counterpart to Solidity's `int216` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 216 bits\n   */\n  function toInt216(int256 value) internal pure returns (int216 downcasted) {\n    downcasted = int216(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(216, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int208 from int256, reverting on\n   * overflow (when the input is less than smallest int208 or\n   * greater than largest int208).\n   *\n   * Counterpart to Solidity's `int208` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 208 bits\n   */\n  function toInt208(int256 value) internal pure returns (int208 downcasted) {\n    downcasted = int208(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(208, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int200 from int256, reverting on\n   * overflow (when the input is less than smallest int200 or\n   * greater than largest int200).\n   *\n   * Counterpart to Solidity's `int200` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 200 bits\n   */\n  function toInt200(int256 value) internal pure returns (int200 downcasted) {\n    downcasted = int200(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(200, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int192 from int256, reverting on\n   * overflow (when the input is less than smallest int192 or\n   * greater than largest int192).\n   *\n   * Counterpart to Solidity's `int192` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 192 bits\n   */\n  function toInt192(int256 value) internal pure returns (int192 downcasted) {\n    downcasted = int192(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(192, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int184 from int256, reverting on\n   * overflow (when the input is less than smallest int184 or\n   * greater than largest int184).\n   *\n   * Counterpart to Solidity's `int184` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 184 bits\n   */\n  function toInt184(int256 value) internal pure returns (int184 downcasted) {\n    downcasted = int184(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(184, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int176 from int256, reverting on\n   * overflow (when the input is less than smallest int176 or\n   * greater than largest int176).\n   *\n   * Counterpart to Solidity's `int176` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 176 bits\n   */\n  function toInt176(int256 value) internal pure returns (int176 downcasted) {\n    downcasted = int176(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(176, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int168 from int256, reverting on\n   * overflow (when the input is less than smallest int168 or\n   * greater than largest int168).\n   *\n   * Counterpart to Solidity's `int168` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 168 bits\n   */\n  function toInt168(int256 value) internal pure returns (int168 downcasted) {\n    downcasted = int168(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(168, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int160 from int256, reverting on\n   * overflow (when the input is less than smallest int160 or\n   * greater than largest int160).\n   *\n   * Counterpart to Solidity's `int160` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 160 bits\n   */\n  function toInt160(int256 value) internal pure returns (int160 downcasted) {\n    downcasted = int160(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(160, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int152 from int256, reverting on\n   * overflow (when the input is less than smallest int152 or\n   * greater than largest int152).\n   *\n   * Counterpart to Solidity's `int152` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 152 bits\n   */\n  function toInt152(int256 value) internal pure returns (int152 downcasted) {\n    downcasted = int152(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(152, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int144 from int256, reverting on\n   * overflow (when the input is less than smallest int144 or\n   * greater than largest int144).\n   *\n   * Counterpart to Solidity's `int144` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 144 bits\n   */\n  function toInt144(int256 value) internal pure returns (int144 downcasted) {\n    downcasted = int144(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(144, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int136 from int256, reverting on\n   * overflow (when the input is less than smallest int136 or\n   * greater than largest int136).\n   *\n   * Counterpart to Solidity's `int136` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 136 bits\n   */\n  function toInt136(int256 value) internal pure returns (int136 downcasted) {\n    downcasted = int136(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(136, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int128 from int256, reverting on\n   * overflow (when the input is less than smallest int128 or\n   * greater than largest int128).\n   *\n   * Counterpart to Solidity's `int128` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 128 bits\n   */\n  function toInt128(int256 value) internal pure returns (int128 downcasted) {\n    downcasted = int128(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(128, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int120 from int256, reverting on\n   * overflow (when the input is less than smallest int120 or\n   * greater than largest int120).\n   *\n   * Counterpart to Solidity's `int120` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 120 bits\n   */\n  function toInt120(int256 value) internal pure returns (int120 downcasted) {\n    downcasted = int120(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(120, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int112 from int256, reverting on\n   * overflow (when the input is less than smallest int112 or\n   * greater than largest int112).\n   *\n   * Counterpart to Solidity's `int112` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 112 bits\n   */\n  function toInt112(int256 value) internal pure returns (int112 downcasted) {\n    downcasted = int112(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(112, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int104 from int256, reverting on\n   * overflow (when the input is less than smallest int104 or\n   * greater than largest int104).\n   *\n   * Counterpart to Solidity's `int104` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 104 bits\n   */\n  function toInt104(int256 value) internal pure returns (int104 downcasted) {\n    downcasted = int104(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(104, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int96 from int256, reverting on\n   * overflow (when the input is less than smallest int96 or\n   * greater than largest int96).\n   *\n   * Counterpart to Solidity's `int96` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 96 bits\n   */\n  function toInt96(int256 value) internal pure returns (int96 downcasted) {\n    downcasted = int96(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(96, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int88 from int256, reverting on\n   * overflow (when the input is less than smallest int88 or\n   * greater than largest int88).\n   *\n   * Counterpart to Solidity's `int88` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 88 bits\n   */\n  function toInt88(int256 value) internal pure returns (int88 downcasted) {\n    downcasted = int88(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(88, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int80 from int256, reverting on\n   * overflow (when the input is less than smallest int80 or\n   * greater than largest int80).\n   *\n   * Counterpart to Solidity's `int80` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 80 bits\n   */\n  function toInt80(int256 value) internal pure returns (int80 downcasted) {\n    downcasted = int80(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(80, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int72 from int256, reverting on\n   * overflow (when the input is less than smallest int72 or\n   * greater than largest int72).\n   *\n   * Counterpart to Solidity's `int72` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 72 bits\n   */\n  function toInt72(int256 value) internal pure returns (int72 downcasted) {\n    downcasted = int72(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(72, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int64 from int256, reverting on\n   * overflow (when the input is less than smallest int64 or\n   * greater than largest int64).\n   *\n   * Counterpart to Solidity's `int64` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 64 bits\n   */\n  function toInt64(int256 value) internal pure returns (int64 downcasted) {\n    downcasted = int64(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(64, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int56 from int256, reverting on\n   * overflow (when the input is less than smallest int56 or\n   * greater than largest int56).\n   *\n   * Counterpart to Solidity's `int56` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 56 bits\n   */\n  function toInt56(int256 value) internal pure returns (int56 downcasted) {\n    downcasted = int56(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(56, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int48 from int256, reverting on\n   * overflow (when the input is less than smallest int48 or\n   * greater than largest int48).\n   *\n   * Counterpart to Solidity's `int48` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 48 bits\n   */\n  function toInt48(int256 value) internal pure returns (int48 downcasted) {\n    downcasted = int48(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(48, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int40 from int256, reverting on\n   * overflow (when the input is less than smallest int40 or\n   * greater than largest int40).\n   *\n   * Counterpart to Solidity's `int40` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 40 bits\n   */\n  function toInt40(int256 value) internal pure returns (int40 downcasted) {\n    downcasted = int40(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(40, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int32 from int256, reverting on\n   * overflow (when the input is less than smallest int32 or\n   * greater than largest int32).\n   *\n   * Counterpart to Solidity's `int32` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 32 bits\n   */\n  function toInt32(int256 value) internal pure returns (int32 downcasted) {\n    downcasted = int32(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(32, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int24 from int256, reverting on\n   * overflow (when the input is less than smallest int24 or\n   * greater than largest int24).\n   *\n   * Counterpart to Solidity's `int24` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 24 bits\n   */\n  function toInt24(int256 value) internal pure returns (int24 downcasted) {\n    downcasted = int24(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(24, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int16 from int256, reverting on\n   * overflow (when the input is less than smallest int16 or\n   * greater than largest int16).\n   *\n   * Counterpart to Solidity's `int16` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 16 bits\n   */\n  function toInt16(int256 value) internal pure returns (int16 downcasted) {\n    downcasted = int16(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(16, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int8 from int256, reverting on\n   * overflow (when the input is less than smallest int8 or\n   * greater than largest int8).\n   *\n   * Counterpart to Solidity's `int8` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 8 bits\n   */\n  function toInt8(int256 value) internal pure returns (int8 downcasted) {\n    downcasted = int8(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(8, value);\n    }\n  }\n\n  /**\n   * @dev Converts an unsigned uint256 into a signed int256.\n   *\n   * Requirements:\n   *\n   * - input must be less than or equal to maxInt256.\n   */\n  function toInt256(uint256 value) internal pure returns (int256) {\n    // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n    if (value > uint256(type(int256).max)) {\n      revert SafeCastOverflowedUintToInt(value);\n    }\n    return int256(value);\n  }\n\n  /**\n   * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n   */\n  function toUint(bool b) internal pure returns (uint256 u) {\n    assembly ('memory-safe') {\n      u := iszero(iszero(b))\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from './IERC20.sol';\nimport {IERC1363} from './IERC1363.sol';\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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  /**\n   * @dev An operation with an ERC-20 token failed.\n   */\n  error SafeERC20FailedOperation(address token);\n\n  /**\n   * @dev Indicates a failed `decreaseAllowance` request.\n   */\n  error SafeERC20FailedDecreaseAllowance(\n    address spender,\n    uint256 currentAllowance,\n    uint256 requestedDecrease\n  );\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    if (!_safeTransfer(token, to, value, true)) {\n      revert SafeERC20FailedOperation(address(token));\n    }\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    if (!_safeTransferFrom(token, from, to, value, true)) {\n      revert SafeERC20FailedOperation(address(token));\n    }\n  }\n\n  /**\n   * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n   */\n  function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n    return _safeTransfer(token, to, value, false);\n  }\n\n  /**\n   * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n   */\n  function trySafeTransferFrom(\n    IERC20 token,\n    address from,\n    address to,\n    uint256 value\n  ) internal returns (bool) {\n    return _safeTransferFrom(token, from, to, value, false);\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   * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n   * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n   * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n   * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n   */\n  function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n    uint256 oldAllowance = token.allowance(address(this), spender);\n    forceApprove(token, spender, oldAllowance + value);\n  }\n\n  /**\n   * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n   * value, non-reverting calls are assumed to be successful.\n   *\n   * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n   * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n   * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n   * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n   */\n  function safeDecreaseAllowance(\n    IERC20 token,\n    address spender,\n    uint256 requestedDecrease\n  ) internal {\n    unchecked {\n      uint256 currentAllowance = token.allowance(address(this), spender);\n      if (currentAllowance < requestedDecrease) {\n        revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n      }\n      forceApprove(token, spender, currentAllowance - requestedDecrease);\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   * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n   * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n   * set here.\n   */\n  function forceApprove(IERC20 token, address spender, uint256 value) internal {\n    if (!_safeApprove(token, spender, value, false)) {\n      if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));\n      if (!_safeApprove(token, spender, value, true))\n        revert SafeERC20FailedOperation(address(token));\n    }\n  }\n\n  /**\n   * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n   * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n   * targeting contracts.\n   *\n   * Reverts if the returned value is other than `true`.\n   */\n  function transferAndCallRelaxed(\n    IERC1363 token,\n    address to,\n    uint256 value,\n    bytes memory data\n  ) internal {\n    if (to.code.length == 0) {\n      safeTransfer(token, to, value);\n    } else if (!token.transferAndCall(to, value, data)) {\n      revert SafeERC20FailedOperation(address(token));\n    }\n  }\n\n  /**\n   * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n   * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n   * targeting contracts.\n   *\n   * Reverts if the returned value is other than `true`.\n   */\n  function transferFromAndCallRelaxed(\n    IERC1363 token,\n    address from,\n    address to,\n    uint256 value,\n    bytes memory data\n  ) internal {\n    if (to.code.length == 0) {\n      safeTransferFrom(token, from, to, value);\n    } else if (!token.transferFromAndCall(from, to, value, data)) {\n      revert SafeERC20FailedOperation(address(token));\n    }\n  }\n\n  /**\n   * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n   * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n   * targeting contracts.\n   *\n   * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n   * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n   * once without retrying, and relies on the returned value to be true.\n   *\n   * Reverts if the returned value is other than `true`.\n   */\n  function approveAndCallRelaxed(\n    IERC1363 token,\n    address to,\n    uint256 value,\n    bytes memory data\n  ) internal {\n    if (to.code.length == 0) {\n      forceApprove(token, to, value);\n    } else if (!token.approveAndCall(to, value, data)) {\n      revert SafeERC20FailedOperation(address(token));\n    }\n  }\n\n  /**\n   * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the\n   * return value is optional (but if data is returned, it must not be false).\n   *\n   * @param token The token targeted by the call.\n   * @param to The recipient of the tokens\n   * @param value The amount of token to transfer\n   * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n   */\n  function _safeTransfer(\n    IERC20 token,\n    address to,\n    uint256 value,\n    bool bubble\n  ) private returns (bool success) {\n    bytes4 selector = IERC20.transfer.selector;\n\n    assembly ('memory-safe') {\n      let fmp := mload(0x40)\n      mstore(0x00, selector)\n      mstore(0x04, and(to, shr(96, not(0))))\n      mstore(0x24, value)\n      success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n      // if call success and return is true, all is good.\n      // otherwise (not success or return is not true), we need to perform further checks\n      if iszero(and(success, eq(mload(0x00), 1))) {\n        // if the call was a failure and bubble is enabled, bubble the error\n        if and(iszero(success), bubble) {\n          returndatacopy(fmp, 0x00, returndatasize())\n          revert(fmp, returndatasize())\n        }\n        // if the return value is not true, then the call is only successful if:\n        // - the token address has code\n        // - the returndata is empty\n        success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n      }\n      mstore(0x40, fmp)\n    }\n  }\n\n  /**\n   * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return\n   * value: the return value is optional (but if data is returned, it must not be false).\n   *\n   * @param token The token targeted by the call.\n   * @param from The sender of the tokens\n   * @param to The recipient of the tokens\n   * @param value The amount of token to transfer\n   * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n   */\n  function _safeTransferFrom(\n    IERC20 token,\n    address from,\n    address to,\n    uint256 value,\n    bool bubble\n  ) private returns (bool success) {\n    bytes4 selector = IERC20.transferFrom.selector;\n\n    assembly ('memory-safe') {\n      let fmp := mload(0x40)\n      mstore(0x00, selector)\n      mstore(0x04, and(from, shr(96, not(0))))\n      mstore(0x24, and(to, shr(96, not(0))))\n      mstore(0x44, value)\n      success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)\n      // if call success and return is true, all is good.\n      // otherwise (not success or return is not true), we need to perform further checks\n      if iszero(and(success, eq(mload(0x00), 1))) {\n        // if the call was a failure and bubble is enabled, bubble the error\n        if and(iszero(success), bubble) {\n          returndatacopy(fmp, 0x00, returndatasize())\n          revert(fmp, returndatasize())\n        }\n        // if the return value is not true, then the call is only successful if:\n        // - the token address has code\n        // - the returndata is empty\n        success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n      }\n      mstore(0x40, fmp)\n      mstore(0x60, 0)\n    }\n  }\n\n  /**\n   * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:\n   * the return value is optional (but if data is returned, it must not be false).\n   *\n   * @param token The token targeted by the call.\n   * @param spender The spender of the tokens\n   * @param value The amount of token to transfer\n   * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n   */\n  function _safeApprove(\n    IERC20 token,\n    address spender,\n    uint256 value,\n    bool bubble\n  ) private returns (bool success) {\n    bytes4 selector = IERC20.approve.selector;\n\n    assembly ('memory-safe') {\n      let fmp := mload(0x40)\n      mstore(0x00, selector)\n      mstore(0x04, and(spender, shr(96, not(0))))\n      mstore(0x24, value)\n      success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n      // if call success and return is true, all is good.\n      // otherwise (not success or return is not true), we need to perform further checks\n      if iszero(and(success, eq(mload(0x00), 1))) {\n        // if the call was a failure and bubble is enabled, bubble the error\n        if and(iszero(success), bubble) {\n          returndatacopy(fmp, 0x00, returndatasize())\n          revert(fmp, returndatasize())\n        }\n        // if the return value is not true, then the call is only successful if:\n        // - the token address has code\n        // - the returndata is empty\n        success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n      }\n      mstore(0x40, fmp)\n    }\n  }\n}\n"},"src/libraries/math/MathUtils.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\nimport {SafeCast} from 'src/dependencies/openzeppelin/SafeCast.sol';\n\n/// @title MathUtils library\n/// @author Aave Labs\nlibrary MathUtils {\n  using SafeCast for uint256;\n\n  uint256 internal constant RAY = 1e27;\n  /// @dev Ignoring leap years\n  uint256 internal constant SECONDS_PER_YEAR = 365 days;\n\n  /// @notice Calculates the interest accumulated using a linear interest rate formula.\n  /// @dev Reverts if `lastUpdateTimestamp` is greater than `block.timestamp`.\n  /// @param rate The interest rate, expressed in RAY.\n  /// @param lastUpdateTimestamp The timestamp to calculate interest rate from.\n  /// @return result The interest rate linearly accumulated during the time delta, expressed in RAY.\n  function calculateLinearInterest(\n    uint96 rate,\n    uint40 lastUpdateTimestamp\n  ) internal view returns (uint256 result) {\n    assembly ('memory-safe') {\n      if gt(lastUpdateTimestamp, timestamp()) {\n        revert(0, 0)\n      }\n      result := sub(timestamp(), lastUpdateTimestamp)\n      result := add(div(mul(rate, result), SECONDS_PER_YEAR), RAY)\n    }\n  }\n\n  /// @notice Returns the smaller of two unsigned integers.\n  function min(uint256 a, uint256 b) internal pure returns (uint256 result) {\n    assembly ('memory-safe') {\n      result := xor(b, mul(xor(a, b), lt(a, b)))\n    }\n  }\n\n  /// @notice Returns the saturating subtraction at zero.\n  function zeroFloorSub(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      c := mul(sub(a, b), gt(a, b))\n    }\n  }\n\n  /// @notice Returns the sum of an unsigned and signed integer.\n  /// @dev Reverts on underflow.\n  function add(uint256 a, int256 b) internal pure returns (uint256) {\n    if (b >= 0) return a + uint256(b);\n    return a - uint256(-b);\n  }\n\n  /// @notice Returns the sum of two unsigned integers.\n  /// @dev Does not revert on overflow.\n  function uncheckedAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n    unchecked {\n      return a + b;\n    }\n  }\n\n  /// @notice Returns the difference of two unsigned integers as a signed integer.\n  function signedSub(uint256 a, uint256 b) internal pure returns (int256) {\n    return a.toInt256() - b.toInt256();\n  }\n\n  /// @notice Returns the difference of two unsigned integers.\n  /// @dev Does not revert on underflow.\n  function uncheckedSub(uint256 a, uint256 b) internal pure returns (uint256) {\n    unchecked {\n      return a - b;\n    }\n  }\n\n  /// @notice Raises an unsigned integer to the power of an unsigned integer.\n  /// @dev Does not revert on overflow.\n  function uncheckedExp(uint256 a, uint256 b) internal pure returns (uint256) {\n    unchecked {\n      return a ** b;\n    }\n  }\n\n  /// @notice Divides `a` by `b`, rounding up.\n  /// @dev Reverts if division by zero.\n  /// @return c = ceil(a / b).\n  function divUp(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      if iszero(b) {\n        revert(0, 0)\n      }\n      c := add(div(a, b), gt(mod(a, b), 0))\n    }\n  }\n\n  /// @notice Multiplies `a` and `b` in 256 bits and divides the result by `c`, rounding down.\n  /// @dev Reverts if division by zero or overflow occurs on intermediate multiplication.\n  /// @return d = floor(a * b / c).\n  function mulDivDown(uint256 a, uint256 b, uint256 c) internal pure returns (uint256 d) {\n    // to avoid overflow, a <= type(uint256).max / b\n    assembly ('memory-safe') {\n      if iszero(c) {\n        revert(0, 0)\n      }\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n      d := div(mul(a, b), c)\n    }\n  }\n\n  /// @notice Multiplies `a` and `b` in 256 bits and divides the result by `c`, rounding up.\n  /// @dev Reverts if division by zero or overflow occurs on intermediate multiplication.\n  /// @return d = ceil(a * b / c).\n  function mulDivUp(uint256 a, uint256 b, uint256 c) internal pure returns (uint256 d) {\n    // to avoid overflow, a <= type(uint256).max / b\n    assembly ('memory-safe') {\n      if iszero(c) {\n        revert(0, 0)\n      }\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n      d := mul(a, b)\n      // add 1 if (a * b) % c > 0 to round up the division of (a * b) by c\n      d := add(div(d, c), gt(mod(d, c), 0))\n    }\n  }\n}\n"},"src/libraries/math/PercentageMath.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\n/// @title PercentageMath library\n/// @author Aave Labs\n/// @notice Provides functions to perform percentage calculations with explicit rounding.\n/// @dev Percentages are defined by default with 2 decimals of precision (100.00). The precision is indicated by `PERCENTAGE_FACTOR`.\nlibrary PercentageMath {\n  // Percentage factor expressed in BPS (100.00%)\n  uint256 internal constant PERCENTAGE_FACTOR = 1e4;\n\n  /// @notice Executes a percentage multiplication, rounded down.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return result = floor(value * percentage / PERCENTAGE_FACTOR)\n  function percentMulDown(\n    uint256 value,\n    uint256 percentage\n  ) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / percentage\n    assembly ('memory-safe') {\n      if iszero(or(iszero(percentage), iszero(gt(value, div(not(0), percentage))))) {\n        revert(0, 0)\n      }\n\n      result := div(mul(value, percentage), PERCENTAGE_FACTOR)\n    }\n  }\n\n  /// @notice Executes a percentage multiplication, rounded up.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return result = ceil(value * percentage / PERCENTAGE_FACTOR)\n  function percentMulUp(uint256 value, uint256 percentage) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / percentage\n    assembly ('memory-safe') {\n      if iszero(or(iszero(percentage), iszero(gt(value, div(not(0), percentage))))) {\n        revert(0, 0)\n      }\n      result := mul(value, percentage)\n\n      // Add 1 if (value * percentage) % PERCENTAGE_FACTOR > 0 to round up the division of (value * percentage) by PERCENTAGE_FACTOR\n      result := add(div(result, PERCENTAGE_FACTOR), gt(mod(result, PERCENTAGE_FACTOR), 0))\n    }\n  }\n\n  /// @notice Executes a percentage division, rounded down.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return result = floor(value * PERCENTAGE_FACTOR / percentage)\n  function percentDivDown(\n    uint256 value,\n    uint256 percentage\n  ) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / PERCENTAGE_FACTOR\n    assembly ('memory-safe') {\n      if or(iszero(percentage), iszero(iszero(gt(value, div(not(0), PERCENTAGE_FACTOR))))) {\n        revert(0, 0)\n      }\n\n      result := div(mul(value, PERCENTAGE_FACTOR), percentage)\n    }\n  }\n\n  /// @notice Executes a percentage division, rounded up.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return result = ceil(value * PERCENTAGE_FACTOR / percentage)\n  function percentDivUp(uint256 value, uint256 percentage) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / PERCENTAGE_FACTOR\n    assembly ('memory-safe') {\n      if or(iszero(percentage), iszero(iszero(gt(value, div(not(0), PERCENTAGE_FACTOR))))) {\n        revert(0, 0)\n      }\n      result := mul(value, PERCENTAGE_FACTOR)\n\n      // Add 1 if (value * PERCENTAGE_FACTOR) % percentage > 0 to round up the division of (value * PERCENTAGE_FACTOR) by percentage\n      result := add(div(result, percentage), gt(mod(result, percentage), 0))\n    }\n  }\n\n  /// @notice Truncates number from BPS precision, rounding down.\n  function fromBpsDown(uint256 value) internal pure returns (uint256) {\n    return value / PERCENTAGE_FACTOR;\n  }\n}\n"},"src/libraries/math/WadRayMath.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\n/// @title WadRayMath library\n/// @author Aave Labs\n/// @notice Provides utility functions to work with WAD and RAY units with explicit rounding.\nlibrary WadRayMath {\n  uint256 internal constant WAD_DECIMALS = 18;\n  uint256 internal constant WAD = 1e18;\n  uint256 internal constant RAY = 1e27;\n  uint256 internal constant PERCENTAGE_FACTOR = 1e4;\n\n  /// @notice Multiplies two WAD numbers, rounding down.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return c = floor(a * b / WAD), expressed in WAD.\n  function wadMulDown(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / b\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n\n      c := div(mul(a, b), WAD)\n    }\n  }\n\n  /// @notice Multiplies two WAD numbers, rounding up.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return c = ceil(a * b / WAD), expressed in WAD.\n  function wadMulUp(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / b\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n      c := mul(a, b)\n      // Add 1 if (a * b) % WAD > 0 to round up the division of (a * b) by WAD\n      c := add(div(c, WAD), gt(mod(c, WAD), 0))\n    }\n  }\n\n  /// @notice Divides two WAD numbers, rounding down.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return c = floor(a * WAD / b), expressed in WAD.\n  function wadDivDown(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / WAD\n      if or(iszero(b), iszero(iszero(gt(a, div(not(0), WAD))))) {\n        revert(0, 0)\n      }\n\n      c := div(mul(a, WAD), b)\n    }\n  }\n\n  /// @notice Divides two WAD numbers, rounding up.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return c = ceil(a * WAD / b), expressed in WAD.\n  function wadDivUp(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / WAD\n      if or(iszero(b), iszero(iszero(gt(a, div(not(0), WAD))))) {\n        revert(0, 0)\n      }\n      c := mul(a, WAD)\n      // Add 1 if (a * WAD) % b > 0 to round up the division of (a * WAD) by b\n      c := add(div(c, b), gt(mod(c, b), 0))\n    }\n  }\n\n  /// @notice Multiplies two RAY numbers, rounding down.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return c = floor(a * b / RAY), expressed in RAY.\n  function rayMulDown(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / b\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n\n      c := div(mul(a, b), RAY)\n    }\n  }\n\n  /// @notice Multiplies two RAY numbers, rounding up.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return c = ceil(a * b / RAY), expressed in RAY.\n  function rayMulUp(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / b\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n      c := mul(a, b)\n      // Add 1 if (a * b) % RAY > 0 to round up the division of (a * b) by RAY\n      c := add(div(c, RAY), gt(mod(c, RAY), 0))\n    }\n  }\n\n  /// @notice Divides two RAY numbers, rounding down.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return c = floor(a * RAY / b), expressed in RAY.\n  function rayDivDown(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / RAY\n      if or(iszero(b), iszero(iszero(gt(a, div(not(0), RAY))))) {\n        revert(0, 0)\n      }\n\n      c := div(mul(a, RAY), b)\n    }\n  }\n\n  /// @notice Divides two RAY numbers, rounding up.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return c = ceil(a * RAY / b), expressed in RAY.\n  function rayDivUp(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / RAY\n      if or(iszero(b), iszero(iszero(gt(a, div(not(0), RAY))))) {\n        revert(0, 0)\n      }\n      c := mul(a, RAY)\n      // Add 1 if (a * RAY) % b > 0 to round up the division of (a * RAY) by b\n      c := add(div(c, b), gt(mod(c, b), 0))\n    }\n  }\n\n  /// @notice Casts value to WAD, adding 18 digits of precision.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return b = a * WAD, expressed in WAD.\n  function toWad(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      b := mul(a, WAD)\n\n      // to avoid overflow, b/WAD == a\n      if iszero(eq(div(b, WAD), a)) {\n        revert(0, 0)\n      }\n    }\n  }\n\n  /// @notice Casts value to RAY, adding 27 digits of precision.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return b = a * RAY, expressed in RAY.\n  function toRay(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      b := mul(a, RAY)\n\n      // to avoid overflow, b/RAY == a\n      if iszero(eq(div(b, RAY), a)) {\n        revert(0, 0)\n      }\n    }\n  }\n\n  /// @notice Removes WAD precision from a given value, rounding down.\n  /// @return b = a / WAD.\n  function fromWadDown(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      b := div(a, WAD)\n    }\n  }\n\n  /// @notice Removes RAY precision from a given value, rounding up.\n  /// @return b = ceil(a / RAY).\n  function fromRayUp(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      // add 1 if (a % RAY) > 0 to round up the division of a by RAY\n      b := add(div(a, RAY), gt(mod(a, RAY), 0))\n    }\n  }\n\n  /// @notice Converts value from basis points to WAD.\n  /// @dev Reverts if result overflows.\n  /// @return b = a * (WAD / PERCENTAGE_FACTOR), expressed in WAD.\n  function bpsToWad(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      let factor := div(WAD, PERCENTAGE_FACTOR)\n      b := mul(a, factor)\n      // to avoid overflow, b/factor == a\n      if iszero(eq(div(b, factor), a)) {\n        revert(0, 0)\n      }\n    }\n  }\n\n  /// @notice Converts value from basis points to RAY.\n  /// @dev Reverts if result overflows.\n  /// @return b = a * (RAY / PERCENTAGE_FACTOR), expressed in RAY.\n  function bpsToRay(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      let factor := div(RAY, PERCENTAGE_FACTOR)\n      b := mul(a, factor)\n      // to avoid overflow, b/factor == a\n      if iszero(eq(div(b, factor), a)) {\n        revert(0, 0)\n      }\n    }\n  }\n\n  /// @notice Rounds up a RAY value to the nearest RAY.\n  /// @dev Reverts if result overflows.\n  /// @return b = ceil(a / RAY) * RAY.\n  function roundRayUp(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      // add 1 if (a % RAY) > 0 to round up the division of a by RAY\n      let c := add(div(a, RAY), gt(mod(a, RAY), 0))\n      b := mul(c, RAY)\n      // to avoid overflow, b/RAY == c\n      if iszero(eq(div(b, RAY), c)) {\n        revert(0, 0)\n      }\n    }\n  }\n}\n"},"src/hub/libraries/AssetLogic.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\nimport {SafeCast} from 'src/dependencies/openzeppelin/SafeCast.sol';\nimport {MathUtils} from 'src/libraries/math/MathUtils.sol';\nimport {PercentageMath} from 'src/libraries/math/PercentageMath.sol';\nimport {WadRayMath} from 'src/libraries/math/WadRayMath.sol';\nimport {SharesMath} from 'src/hub/libraries/SharesMath.sol';\nimport {Premium} from 'src/hub/libraries/Premium.sol';\nimport {IBasicInterestRateStrategy} from 'src/hub/interfaces/IBasicInterestRateStrategy.sol';\nimport {IHub} from 'src/hub/interfaces/IHub.sol';\n\n/// @title AssetLogic library\n/// @author Aave Labs\n/// @notice Implements the base logic and share price conversions for asset data.\nlibrary AssetLogic {\n  using AssetLogic for IHub.Asset;\n  using SafeCast for uint256;\n  using MathUtils for uint256;\n  using PercentageMath for uint256;\n  using WadRayMath for *;\n  using SharesMath for uint256;\n\n  /// @notice Converts an amount of shares to the equivalent amount of drawn assets, rounding up.\n  function toDrawnAssetsUp(\n    IHub.Asset storage asset,\n    uint256 shares\n  ) internal view returns (uint256) {\n    return shares.rayMulUp(asset.getDrawnIndex());\n  }\n\n  /// @notice Converts an amount of shares to the equivalent amount of drawn assets, rounding down.\n  function toDrawnAssetsDown(\n    IHub.Asset storage asset,\n    uint256 shares\n  ) internal view returns (uint256) {\n    return shares.rayMulDown(asset.getDrawnIndex());\n  }\n\n  /// @notice Converts an amount of drawn assets to the equivalent amount of shares, rounding up.\n  function toDrawnSharesUp(\n    IHub.Asset storage asset,\n    uint256 assets\n  ) internal view returns (uint256) {\n    return assets.rayDivUp(asset.getDrawnIndex());\n  }\n\n  /// @notice Converts an amount of drawn assets to the equivalent amount of shares, rounding down.\n  function toDrawnSharesDown(\n    IHub.Asset storage asset,\n    uint256 assets\n  ) internal view returns (uint256) {\n    return assets.rayDivDown(asset.getDrawnIndex());\n  }\n\n  /// @notice Returns the total drawn assets amount for the specified asset.\n  function drawn(IHub.Asset storage asset, uint256 drawnIndex) internal view returns (uint256) {\n    return asset.drawnShares.rayMulUp(drawnIndex);\n  }\n\n  /// @notice Returns the total premium amount for the specified asset.\n  function premium(IHub.Asset storage asset, uint256 drawnIndex) internal view returns (uint256) {\n    return\n      Premium\n        .calculatePremiumRay({\n          premiumShares: asset.premiumShares,\n          drawnIndex: drawnIndex,\n          premiumOffsetRay: asset.premiumOffsetRay\n        })\n        .fromRayUp();\n  }\n\n  /// @notice Returns the total amount owed for the specified asset, including drawn and premium.\n  function totalOwed(IHub.Asset storage asset, uint256 drawnIndex) internal view returns (uint256) {\n    return asset.drawn(drawnIndex) + asset.premium(drawnIndex);\n  }\n\n  /// @notice Returns the total added assets for the specified asset.\n  function totalAddedAssets(IHub.Asset storage asset) internal view returns (uint256) {\n    uint256 drawnIndex = asset.getDrawnIndex();\n\n    uint256 aggregatedOwedRay = _calculateAggregatedOwedRay({\n      drawnShares: asset.drawnShares,\n      premiumShares: asset.premiumShares,\n      premiumOffsetRay: asset.premiumOffsetRay,\n      deficitRay: asset.deficitRay,\n      drawnIndex: drawnIndex\n    });\n\n    return\n      asset.liquidity +\n      asset.swept +\n      aggregatedOwedRay.fromRayUp() -\n      asset.realizedFees -\n      asset.getUnrealizedFees(drawnIndex);\n  }\n\n  /// @notice Converts an amount of shares to the equivalent amount of added assets, rounding up.\n  function toAddedAssetsUp(\n    IHub.Asset storage asset,\n    uint256 shares\n  ) internal view returns (uint256) {\n    return shares.toAssetsUp(asset.totalAddedAssets(), asset.addedShares);\n  }\n\n  /// @notice Converts an amount of shares to the equivalent amount of added assets, rounding down.\n  function toAddedAssetsDown(\n    IHub.Asset storage asset,\n    uint256 shares\n  ) internal view returns (uint256) {\n    return shares.toAssetsDown(asset.totalAddedAssets(), asset.addedShares);\n  }\n\n  /// @notice Converts an amount of added assets to the equivalent amount of shares, rounding up.\n  function toAddedSharesUp(\n    IHub.Asset storage asset,\n    uint256 assets\n  ) internal view returns (uint256) {\n    return assets.toSharesUp(asset.totalAddedAssets(), asset.addedShares);\n  }\n\n  /// @notice Converts an amount of added assets to the equivalent amount of shares, rounding down.\n  function toAddedSharesDown(\n    IHub.Asset storage asset,\n    uint256 assets\n  ) internal view returns (uint256) {\n    return assets.toSharesDown(asset.totalAddedAssets(), asset.addedShares);\n  }\n\n  /// @notice Updates the drawn rate of a specified asset.\n  /// @dev Uses last stored index; asset accrual should have already occurred.\n  function updateDrawnRate(IHub.Asset storage asset, uint256 assetId) internal {\n    uint256 drawnIndex = asset.drawnIndex;\n    uint256 newDrawnRate = asset.getDrawnRate(assetId, drawnIndex);\n    asset.drawnRate = newDrawnRate.toUint96();\n\n    emit IHub.UpdateAsset(assetId, drawnIndex, newDrawnRate, asset.realizedFees);\n  }\n\n  /// @notice Accrues interest and fees for the specified asset.\n  function accrue(IHub.Asset storage asset) internal {\n    if (asset.lastUpdateTimestamp == block.timestamp) {\n      return;\n    }\n\n    uint256 drawnIndex = asset.getDrawnIndex();\n    asset.realizedFees += asset.getUnrealizedFees(drawnIndex).toUint120();\n    asset.drawnIndex = drawnIndex.toUint120();\n    asset.lastUpdateTimestamp = block.timestamp.toUint40();\n  }\n\n  /// @notice Calculates the drawn index of a specified asset based on the existing drawn rate and index.\n  function getDrawnIndex(IHub.Asset storage asset) internal view returns (uint256) {\n    uint256 previousIndex = asset.drawnIndex;\n    uint40 lastUpdateTimestamp = asset.lastUpdateTimestamp;\n    if (\n      lastUpdateTimestamp == block.timestamp || (asset.drawnShares == 0 && asset.premiumShares == 0)\n    ) {\n      return previousIndex;\n    }\n    return\n      previousIndex.rayMulUp(\n        MathUtils.calculateLinearInterest(asset.drawnRate, lastUpdateTimestamp)\n      );\n  }\n\n  /// @notice Calculates the drawn rate of a specified asset using the specified drawn index.\n  /// @dev Premium debt is not used in the interest rate calculation.\n  /// @dev Imprecision from downscaling `deficitRay` does not accumulate.\n  function getDrawnRate(\n    IHub.Asset storage asset,\n    uint256 assetId,\n    uint256 drawnIndex\n  ) internal view returns (uint256) {\n    return\n      IBasicInterestRateStrategy(asset.irStrategy).calculateInterestRate({\n        assetId: assetId,\n        liquidity: asset.liquidity,\n        drawn: asset.drawn(drawnIndex),\n        deficit: asset.deficitRay.fromRayUp(),\n        swept: asset.swept\n      });\n  }\n\n  /// @notice Calculates the amount of fees derived from the index growth due to interest accrual.\n  /// @param drawnIndex The current drawn index.\n  function getUnrealizedFees(\n    IHub.Asset storage asset,\n    uint256 drawnIndex\n  ) internal view returns (uint256) {\n    uint256 previousIndex = asset.drawnIndex;\n    if (previousIndex == drawnIndex) {\n      return 0;\n    }\n\n    uint256 liquidityFee = asset.liquidityFee;\n    if (liquidityFee == 0) {\n      return 0;\n    }\n\n    uint120 drawnShares = asset.drawnShares;\n    uint120 premiumShares = asset.premiumShares;\n    int256 premiumOffsetRay = asset.premiumOffsetRay;\n    uint256 deficitRay = asset.deficitRay;\n\n    uint256 aggregatedOwedRayAfter = _calculateAggregatedOwedRay({\n      drawnShares: drawnShares,\n      premiumShares: premiumShares,\n      premiumOffsetRay: premiumOffsetRay,\n      deficitRay: deficitRay,\n      drawnIndex: drawnIndex\n    });\n\n    uint256 aggregatedOwedRayBefore = _calculateAggregatedOwedRay({\n      drawnShares: drawnShares,\n      premiumShares: premiumShares,\n      premiumOffsetRay: premiumOffsetRay,\n      deficitRay: deficitRay,\n      drawnIndex: previousIndex\n    });\n\n    return\n      (aggregatedOwedRayAfter.fromRayUp() - aggregatedOwedRayBefore.fromRayUp()).percentMulDown(\n        liquidityFee\n      );\n  }\n\n  /// @notice Calculates the aggregated owed amount for a specified asset, expressed in asset units and scaled by RAY.\n  function _calculateAggregatedOwedRay(\n    uint256 drawnShares,\n    uint256 premiumShares,\n    int256 premiumOffsetRay,\n    uint256 deficitRay,\n    uint256 drawnIndex\n  ) internal pure returns (uint256) {\n    uint256 premiumRay = Premium.calculatePremiumRay({\n      premiumShares: premiumShares,\n      premiumOffsetRay: premiumOffsetRay,\n      drawnIndex: drawnIndex\n    });\n    return (drawnShares * drawnIndex) + premiumRay + deficitRay;\n  }\n}\n"},"src/hub/libraries/SharesMath.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\nimport {Math} from 'src/dependencies/openzeppelin/Math.sol';\n\n/// @title SharesMath library\n/// @author Aave Labs\n/// @notice Implements the logic to convert between assets and shares.\n/// @dev Utilizes virtual assets and shares to mitigate share manipulation attacks.\nlibrary SharesMath {\n  using Math for uint256;\n\n  uint256 internal constant VIRTUAL_ASSETS = 1e6;\n  uint256 internal constant VIRTUAL_SHARES = 1e6;\n\n  /// @notice Converts an amount of assets to the equivalent amount of shares, rounding down.\n  function toSharesDown(\n    uint256 assets,\n    uint256 totalAssets,\n    uint256 totalShares\n  ) internal pure returns (uint256) {\n    return\n      assets.mulDiv(\n        totalShares + VIRTUAL_SHARES,\n        totalAssets + VIRTUAL_ASSETS,\n        Math.Rounding.Floor\n      );\n  }\n\n  /// @notice Converts an amount of shares to the equivalent amount of assets, rounding down.\n  function toAssetsDown(\n    uint256 shares,\n    uint256 totalAssets,\n    uint256 totalShares\n  ) internal pure returns (uint256) {\n    return\n      shares.mulDiv(\n        totalAssets + VIRTUAL_ASSETS,\n        totalShares + VIRTUAL_SHARES,\n        Math.Rounding.Floor\n      );\n  }\n\n  /// @notice Converts an amount of assets to the equivalent amount of shares, rounding up.\n  function toSharesUp(\n    uint256 assets,\n    uint256 totalAssets,\n    uint256 totalShares\n  ) internal pure returns (uint256) {\n    return\n      assets.mulDiv(totalShares + VIRTUAL_SHARES, totalAssets + VIRTUAL_ASSETS, Math.Rounding.Ceil);\n  }\n\n  /// @notice Converts an amount of shares to the equivalent amount of assets, rounding up.\n  function toAssetsUp(\n    uint256 shares,\n    uint256 totalAssets,\n    uint256 totalShares\n  ) internal pure returns (uint256) {\n    return\n      shares.mulDiv(totalAssets + VIRTUAL_ASSETS, totalShares + VIRTUAL_SHARES, Math.Rounding.Ceil);\n  }\n}\n"},"src/hub/libraries/Premium.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\nimport {SafeCast} from 'src/dependencies/openzeppelin/SafeCast.sol';\n\n/// @title Premium library\n/// @author Aave Labs\n/// @notice Implements the premium calculations.\nlibrary Premium {\n  using SafeCast for *;\n\n  /// @notice Calculates the premium debt with full precision.\n  /// @param premiumShares The number of premium shares.\n  /// @param premiumOffsetRay The premium offset, expressed in asset units and scaled by RAY.\n  /// @param drawnIndex The drawn index at which premium debt is calculated.\n  /// @return The premium debt, expressed in asset units and scaled by RAY.\n  function calculatePremiumRay(\n    uint256 premiumShares,\n    int256 premiumOffsetRay,\n    uint256 drawnIndex\n  ) internal pure returns (uint256) {\n    return ((premiumShares * drawnIndex).toInt256() - premiumOffsetRay).toUint256();\n  }\n}\n"},"src/hub/interfaces/IBasicInterestRateStrategy.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.0;\n\n/// @title IBasicInterestRateStrategy\n/// @author Aave Labs\n/// @notice Basic interface for any interest rate strategy.\ninterface IBasicInterestRateStrategy {\n  /// @notice Thrown when the interest rate data is not set for the asset.\n  /// @param assetId The identifier of the asset with no interest rate data set.\n  error InterestRateDataNotSet(uint256 assetId);\n\n  /// @notice Sets the interest rate parameters for a specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @param data The encoded parameters used to configure the interest rate of the asset.\n  function setInterestRateData(uint256 assetId, bytes calldata data) external;\n\n  /// @notice Calculates the interest rate depending on the asset's state and configurations.\n  /// @param assetId The identifier of the asset.\n  /// @param liquidity The current available liquidity of the asset.\n  /// @param drawn The current drawn amount of the asset.\n  /// @param deficit The current deficit of the asset.\n  /// @param swept The current swept (reinvested) amount of the asset.\n  /// @return The interest rate, expressed in RAY.\n  function calculateInterestRate(\n    uint256 assetId,\n    uint256 liquidity,\n    uint256 drawn,\n    uint256 deficit,\n    uint256 swept\n  ) external view returns (uint256);\n}\n"},"src/hub/interfaces/IHub.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.0;\n\nimport {IAccessManaged} from 'src/dependencies/openzeppelin/IAccessManaged.sol';\nimport {IHubBase} from 'src/hub/interfaces/IHubBase.sol';\n\n/// @title IHub\n/// @author Aave Labs\n/// @notice Full interface for the Hub.\ninterface IHub is IHubBase, IAccessManaged {\n  /// @notice Asset position and configuration data.\n  /// @dev liquidity The liquidity available to be accessed, expressed in asset units.\n  /// @dev realizedFees The amount of fees realized but not yet minted, expressed in asset units.\n  /// @dev decimals The number of decimals of the underlying asset.\n  /// @dev addedShares The total shares added across all spokes.\n  /// @dev swept The outstanding liquidity which has been invested by the reinvestment controller, expressed in asset units.\n  /// @dev premiumOffsetRay The total premium offset across all spokes, used to calculate the premium, expressed in asset units and scaled by RAY.\n  /// @dev drawnShares The total drawn shares across all spokes.\n  /// @dev premiumShares The total premium shares across all spokes.\n  /// @dev liquidityFee The protocol fee charged on drawn and premium liquidity growth, expressed in BPS.\n  /// @dev drawnIndex The drawn index which monotonically increases according to the drawn rate, expressed in RAY.\n  /// @dev drawnRate The rate at which drawn assets grow, expressed in RAY.\n  /// @dev lastUpdateTimestamp The timestamp of the last accrual.\n  /// @dev underlying The address of the underlying asset.\n  /// @dev irStrategy The address of the interest rate strategy.\n  /// @dev reinvestmentController The address of the reinvestment controller.\n  /// @dev feeReceiver The address of the fee receiver spoke.\n  /// @dev deficitRay The amount of outstanding bad debt across all spokes, expressed in asset units and scaled by RAY.\n  struct Asset {\n    uint120 liquidity;\n    uint120 realizedFees;\n    uint8 decimals;\n    //\n    uint120 addedShares;\n    uint120 swept;\n    //\n    int200 premiumOffsetRay;\n    //\n    uint120 drawnShares;\n    uint120 premiumShares;\n    uint16 liquidityFee;\n    //\n    uint120 drawnIndex;\n    uint96 drawnRate;\n    uint40 lastUpdateTimestamp;\n    //\n    address underlying;\n    //\n    address irStrategy;\n    //\n    address reinvestmentController;\n    //\n    address feeReceiver;\n    //\n    uint200 deficitRay;\n  }\n\n  /// @notice Asset configuration. Subset of the `Asset` struct.\n  struct AssetConfig {\n    address feeReceiver;\n    uint16 liquidityFee;\n    address irStrategy;\n    address reinvestmentController;\n  }\n\n  /// @notice Spoke position and configuration data.\n  /// @dev drawnShares The drawn shares of a spoke for a given asset.\n  /// @dev premiumShares The premium shares of a spoke for a given asset.\n  /// @dev premiumOffsetRay The premium offset of a spoke for a given asset, used to calculate the premium, expressed in asset units and scaled by RAY.\n  /// @dev addedShares The added shares of a spoke for a given asset.\n  /// @dev addCap The maximum amount that can be added by a spoke, expressed in whole assets (not scaled by decimals). A value of `MAX_ALLOWED_SPOKE_CAP` indicates no cap.\n  /// @dev drawCap The maximum amount that can be drawn by a spoke, expressed in whole assets (not scaled by decimals). A value of `MAX_ALLOWED_SPOKE_CAP` indicates no cap.\n  /// @dev riskPremiumThreshold The maximum ratio of premium to drawn shares a spoke can have, expressed in BPS. A value of `MAX_RISK_PREMIUM_THRESHOLD` indicates no threshold.\n  /// @dev active True if the Spoke is allowed to perform any action.\n  /// @dev halted True if the Spoke is prevented from performing actions that instantly update liquidity.\n  /// @dev deficitRay The deficit reported by a spoke for a given asset, expressed in asset units and scaled by RAY.\n  struct SpokeData {\n    uint120 drawnShares;\n    uint120 premiumShares;\n    //\n    int200 premiumOffsetRay;\n    //\n    uint120 addedShares;\n    uint40 addCap;\n    uint40 drawCap;\n    uint24 riskPremiumThreshold;\n    bool active;\n    bool halted;\n    //\n    uint200 deficitRay;\n  }\n\n  /// @notice Spoke configuration data. Subset of the `SpokeData` struct.\n  struct SpokeConfig {\n    uint40 addCap;\n    uint40 drawCap;\n    uint24 riskPremiumThreshold;\n    bool active;\n    bool halted;\n  }\n\n  /// @notice Emitted when an asset is added.\n  /// @param assetId The identifier of the asset.\n  /// @param underlying The address of the underlying asset.\n  /// @param decimals The number of decimals of the asset.\n  event AddAsset(uint256 indexed assetId, address indexed underlying, uint8 decimals);\n\n  /// @notice Emitted when an asset is updated.\n  /// @param assetId The identifier of the asset.\n  /// @param drawnIndex The new drawn index of the asset.\n  /// @param drawnRate The new drawn rate of the asset.\n  /// @param accruedFees The accrued fees of the asset since the last mint.\n  event UpdateAsset(\n    uint256 indexed assetId,\n    uint256 drawnIndex,\n    uint256 drawnRate,\n    uint256 accruedFees\n  );\n\n  /// @notice Emitted when an asset configuration is updated.\n  /// @param assetId The identifier of the asset.\n  /// @param config The new asset configuration struct.\n  event UpdateAssetConfig(uint256 indexed assetId, AssetConfig config);\n\n  /// @notice Emitted when a spoke is added.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  event AddSpoke(uint256 indexed assetId, address indexed spoke);\n\n  /// @notice Emitted when a spoke configuration is updated.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param config The new spoke configuration struct.\n  event UpdateSpokeConfig(uint256 indexed assetId, address indexed spoke, SpokeConfig config);\n\n  /// @notice Emitted when fees are minted to the fee receiver spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param feeReceiver The address of the current fee receiver spoke.\n  /// @param shares The amount of shares minted.\n  /// @param assets The amount of assets used to mint the shares.\n  event MintFeeShares(\n    uint256 indexed assetId,\n    address indexed feeReceiver,\n    uint256 shares,\n    uint256 assets\n  );\n\n  /// @notice Emitted when liquidity is invested by the reinvestment controller.\n  /// @param assetId The identifier of the asset.\n  /// @param reinvestmentController The active asset controller.\n  /// @param amount The amount invested.\n  event Sweep(uint256 indexed assetId, address indexed reinvestmentController, uint256 amount);\n\n  /// @notice Emitted when liquidity is reclaimed (from swept liquidity) by the reinvestment controller.\n  /// @param assetId The identifier of the asset.\n  /// @param reinvestmentController The active asset controller.\n  /// @param amount The amount reclaimed.\n  event Reclaim(uint256 indexed assetId, address indexed reinvestmentController, uint256 amount);\n\n  /// @notice Emitted when a deficit is eliminated.\n  /// @param assetId The identifier of the asset.\n  /// @param callerSpoke The spoke that eliminated the deficit using its added shares.\n  /// @param coveredSpoke The spoke for which the deficit was eliminated.\n  /// @param shares The amount of shares removed.\n  /// @param deficitAmountRay The amount of deficit eliminated, expressed in asset units and scaled by RAY.\n  event EliminateDeficit(\n    uint256 indexed assetId,\n    address indexed callerSpoke,\n    address indexed coveredSpoke,\n    uint256 shares,\n    uint256 deficitAmountRay\n  );\n\n  /// @notice Thrown when an underlying asset is already listed.\n  error UnderlyingAlreadyListed();\n\n  /// @notice Thrown when an asset is not listed.\n  error AssetNotListed();\n\n  /// @notice Thrown when the add cap is exceeded.\n  /// @param addCap The current `addCap` of the asset, expressed in whole assets (not scaled by decimals).\n  error AddCapExceeded(uint256 addCap);\n\n  /// @notice Thrown when the available liquidity is insufficient.\n  /// @param liquidity The current available liquidity.\n  error InsufficientLiquidity(uint256 liquidity);\n\n  /// @notice Thrown when the transferred liquidity is insufficient.\n  /// @param liquidityNeeded The amount of additional liquidity needed.\n  error InsufficientTransferred(uint256 liquidityNeeded);\n\n  /// @notice Thrown when the draw cap is exceeded.\n  /// @param drawCap The current `drawCap` of the asset, expressed in whole assets (not scaled by decimals).\n  error DrawCapExceeded(uint256 drawCap);\n\n  /// @notice Thrown when a surplus amount of drawn is restored.\n  /// @param maxAllowedRestore The maximum allowed drawn amount to restore.\n  error SurplusDrawnRestored(uint256 maxAllowedRestore);\n\n  /// @notice Thrown when a surplus amount of premium is restored.\n  /// @param maxAllowedRestoreRay The maximum allowed premium amount to restore, expressed in asset units and scaled by RAY.\n  error SurplusPremiumRayRestored(uint256 maxAllowedRestoreRay);\n\n  /// @notice Thrown when the premium change is invalid.\n  error InvalidPremiumChange();\n\n  /// @notice Thrown when a surplus amount of drawn is reported as deficit.\n  /// @param maxAllowedDeficit The maximum allowed drawn to report as deficit.\n  error SurplusDrawnDeficitReported(uint256 maxAllowedDeficit);\n\n  /// @notice Thrown when a surplus amount of premium is reported as deficit.\n  /// @param maxAllowedDeficitRay The maximum allowed premium to report as deficit, expressed in asset units and scaled by RAY.\n  error SurplusPremiumRayDeficitReported(uint256 maxAllowedDeficitRay);\n\n  /// @notice Thrown when a spoke is not active.\n  error SpokeNotActive();\n\n  /// @notice Thrown when a spoke is halted.\n  error SpokeHalted();\n\n  /// @notice Thrown when a new reinvestment controller is the zero address and the asset has existing swept liquidity.\n  error InvalidReinvestmentController();\n\n  /// @notice Thrown when an invalid reinvestment controller attempts to perform a `sweep` action.\n  error OnlyReinvestmentController();\n\n  /// @notice Thrown when a spoke being added is already listed.\n  error SpokeAlreadyListed();\n\n  /// @notice Thrown when a spoke being updated is not listed.\n  error SpokeNotListed();\n\n  /// @notice Thrown when the amount is invalid.\n  error InvalidAmount();\n\n  /// @notice Thrown when the shares amount is invalid.\n  error InvalidShares();\n\n  /// @notice Thrown when an input address is invalid.\n  error InvalidAddress();\n\n  /// @notice Thrown if the liquidity fee is invalid when updating an asset configuration.\n  error InvalidLiquidityFee();\n\n  /// @notice Thrown when the asset decimals exceed the maximum allowed decimals.\n  error InvalidAssetDecimals();\n\n  /// @notice Thrown if the interest rate strategy or data are invalid when updating an asset configuration.\n  /// @dev The `irData` must be empty if the interest rate strategy is not updated.\n  error InvalidInterestRateStrategy();\n\n  /// @notice Adds a new asset to the Hub.\n  /// @dev The same underlying asset address cannot be added as an asset multiple times.\n  /// @dev The fee receiver is added as a new spoke with maximum add cap and zero draw cap.\n  /// @param underlying The address of the underlying asset.\n  /// @param decimals The number of decimals of `underlying`.\n  /// @param feeReceiver The address of the fee receiver spoke.\n  /// @param irStrategy The address of the interest rate strategy contract.\n  /// @param irData The interest rate data to apply to the given asset encoded in bytes.\n  /// @return The unique identifier of the added asset.\n  function addAsset(\n    address underlying,\n    uint8 decimals,\n    address feeReceiver,\n    address irStrategy,\n    bytes calldata irData\n  ) external returns (uint256);\n\n  /// @notice Updates the configuration of an asset.\n  /// @dev If the fee receiver is updated, adds it as a new spoke with maximum add cap and zero draw cap, and sets old fee receiver caps to zero.\n  /// @dev If the fee receiver is updated, accrued fees are minted as shares before the update if their value exceeds one share.\n  /// @dev If the interest rate strategy is updated, it is configured with `irData`. Otherwise, `irData` must be empty.\n  /// @param assetId The identifier of the asset.\n  /// @param config The new configuration for the asset.\n  /// @param irData The interest rate data to apply to the given asset, encoded in bytes.\n  function updateAssetConfig(\n    uint256 assetId,\n    AssetConfig calldata config,\n    bytes calldata irData\n  ) external;\n\n  /// @notice Registers a new spoke for a specific asset in the Hub.\n  /// @dev Reverts with `SpokeAlreadyListed` if spoke is already listed.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke to add.\n  /// @param params The configuration parameters for the Spoke.\n  function addSpoke(uint256 assetId, address spoke, SpokeConfig calldata params) external;\n\n  /// @notice Updates the configuration of a spoke for a specific asset.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke to update.\n  /// @param config The new configuration for the Spoke.\n  function updateSpokeConfig(uint256 assetId, address spoke, SpokeConfig calldata config) external;\n\n  /// @notice Updates the interest rate strategy for a specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @param irData The interest rate data to apply to the given asset, encoded in bytes.\n  function setInterestRateData(uint256 assetId, bytes calldata irData) external;\n\n  /// @notice Mints shares to the fee receiver from accrued fees.\n  /// @dev No op when fees are worth less than one share.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of shares minted.\n  function mintFeeShares(uint256 assetId) external returns (uint256);\n\n  /// @notice Eliminates deficit by removing added shares of caller spoke.\n  /// @dev Only callable by active and authorized spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount of deficit to eliminate.\n  /// @param spoke The spoke for which the deficit is eliminated.\n  /// @return The amount of added shares removed.\n  /// @return The amount of deficit eliminated, expressed in asset units.\n  function eliminateDeficit(\n    uint256 assetId,\n    uint256 amount,\n    address spoke\n  ) external returns (uint256, uint256);\n\n  /// @notice Allows a spoke to transfer its added shares of an asset to another spoke.\n  /// @dev Only callable by spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of shares to move.\n  /// @param toSpoke The address of the recipient spoke.\n  function transferShares(uint256 assetId, uint256 shares, address toSpoke) external;\n\n  /// @notice Sweeps an amount of liquidity of the corresponding asset and sends it to the configured reinvestment controller.\n  /// @dev The controller handles the actual reinvestment of funds, redistribution of interest, and investment caps.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount to sweep.\n  function sweep(uint256 assetId, uint256 amount) external;\n\n  /// @notice Reclaims an amount of liquidity of the corresponding asset from the configured reinvestment controller.\n  /// @dev The controller can only reclaim up to swept amount. All accrued interest is distributed offchain.\n  /// @dev Underlying assets must be transferred to the Hub before invocation.\n  /// @dev Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount to reclaim.\n  function reclaim(uint256 assetId, uint256 amount) external;\n\n  /// @notice Returns whether the underlying is listed as an asset.\n  /// @param underlying The address of the underlying asset.\n  /// @return True if the underlying asset is listed.\n  function isUnderlyingListed(address underlying) external view returns (bool);\n\n  /// @notice Returns the number of listed assets.\n  function getAssetCount() external view returns (uint256);\n\n  /// @notice Returns information regarding the specified asset.\n  /// @dev `drawnIndex`, `drawnRate` and `lastUpdateTimestamp` can be outdated due to passage of time.\n  /// @param assetId The identifier of the asset.\n  /// @return The asset struct.\n  function getAsset(uint256 assetId) external view returns (Asset memory);\n\n  /// @notice Returns the asset configuration for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The asset configuration struct.\n  function getAssetConfig(uint256 assetId) external view returns (AssetConfig memory);\n\n  /// @notice Returns the accrued fees for the asset, expressed in asset units.\n  /// @dev Accrued fees are excluded from total added assets.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of accrued fees.\n  function getAssetAccruedFees(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the amount of liquidity swept by the reinvestment controller for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of liquidity swept.\n  function getAssetSwept(uint256 assetId) external view returns (uint256);\n\n  /// @notice Calculates the current drawn rate for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The current drawn rate of the asset.\n  function getAssetDrawnRate(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the number of spokes listed for the specified asset.\n  /// @param assetId The identifier of the asset.\n  function getSpokeCount(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns whether the Spoke is listed for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return True if the Spoke is listed.\n  function isSpokeListed(uint256 assetId, address spoke) external view returns (bool);\n\n  /// @notice Returns the address of the Spoke for an asset at the given index.\n  /// @param assetId The identifier of the asset.\n  /// @param index The index of the Spoke.\n  /// @return The address of the Spoke.\n  function getSpokeAddress(uint256 assetId, uint256 index) external view returns (address);\n\n  /// @notice Returns the Spoke data struct.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The spoke data struct.\n  function getSpoke(uint256 assetId, address spoke) external view returns (SpokeData memory);\n\n  /// @notice Returns the Spoke configuration struct.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The spoke configuration struct.\n  function getSpokeConfig(\n    uint256 assetId,\n    address spoke\n  ) external view returns (SpokeConfig memory);\n\n  /// @notice Returns the maximum allowed number of decimals for the underlying asset.\n  /// @return The maximum number of decimals (inclusive).\n  function MAX_ALLOWED_UNDERLYING_DECIMALS() external view returns (uint8);\n\n  /// @notice Returns the minimum allowed number of decimals for the underlying asset.\n  /// @return The minimum number of decimals (inclusive).\n  function MIN_ALLOWED_UNDERLYING_DECIMALS() external view returns (uint8);\n\n  /// @notice Returns the maximum value for any spoke cap (add or draw).\n  /// @dev The value is not inclusive; using the maximum value indicates no cap.\n  /// @return The maximum cap value, expressed in asset units.\n  function MAX_ALLOWED_SPOKE_CAP() external view returns (uint40);\n\n  /// @notice Returns the maximum value for any spoke risk premium threshold.\n  /// @dev The value is not inclusive; using the maximum value indicates no threshold.\n  /// @return The maximum risk premium threshold, expressed in BPS.\n  function MAX_RISK_PREMIUM_THRESHOLD() external view returns (uint24);\n}\n"},"src/hub/HubStorage.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity 0.8.28;\n\nimport {EnumerableSet} from 'src/dependencies/openzeppelin/EnumerableSet.sol';\nimport {IHub} from 'src/hub/interfaces/IHub.sol';\n\n/// @title HubStorage\n/// @author Aave Labs\n/// @notice Storage layout for the Hub contract.\n/// @dev This contract defines all storage variables used by the Hub.\nabstract contract HubStorage {\n  /// @dev Number of assets listed in the Hub.\n  uint256 internal _assetCount;\n\n  /// @dev Map of asset identifiers to Asset data.\n  mapping(uint256 assetId => IHub.Asset) internal _assets;\n\n  /// @dev Map of asset identifiers and spoke addresses to Spoke data.\n  mapping(uint256 assetId => mapping(address spoke => IHub.SpokeData)) internal _spokes;\n\n  /// @dev Map of asset identifiers to set of spoke addresses.\n  mapping(uint256 assetId => EnumerableSet.AddressSet) internal _assetToSpokes;\n\n  /// @dev Map of underlying addresses to asset identifiers.\n  mapping(address underlying => uint256 assetId) internal _underlyingToAssetId;\n\n  /// @dev Reserved storage space to allow for future layout updates.\n  uint256[50] private __gap;\n}\n"},"src/dependencies/openzeppelin/AuthorityUtils.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (access/manager/AuthorityUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {IAuthority} from './IAuthority.sol';\n\nlibrary AuthorityUtils {\n  /**\n   * @dev Since `AccessManager` implements an extended IAuthority interface, invoking `canCall` with backwards compatibility\n   * for the preexisting `IAuthority` interface requires special care to avoid reverting on insufficient return data.\n   * This helper function takes care of invoking `canCall` in a backwards compatible way without reverting.\n   */\n  function canCallWithDelay(\n    address authority,\n    address caller,\n    address target,\n    bytes4 selector\n  ) internal view returns (bool immediate, uint32 delay) {\n    bytes memory data = abi.encodeCall(IAuthority.canCall, (caller, target, selector));\n\n    assembly ('memory-safe') {\n      mstore(0x00, 0x00)\n      mstore(0x20, 0x00)\n\n      if staticcall(gas(), authority, add(data, 0x20), mload(data), 0x00, 0x40) {\n        immediate := mload(0x00)\n        delay := mload(0x20)\n\n        // If delay does not fit in a uint32, return 0 (no delay)\n        // equivalent to: if gt(delay, 0xFFFFFFFF) { delay := 0 }\n        delay := mul(delay, iszero(shr(32, delay)))\n      }\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/IAccessManager.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (access/manager/IAccessManager.sol)\n\npragma solidity >=0.8.4;\n\ninterface IAccessManager {\n  /**\n   * @dev A delayed operation was scheduled.\n   */\n  event OperationScheduled(\n    bytes32 indexed operationId,\n    uint32 indexed nonce,\n    uint48 schedule,\n    address caller,\n    address target,\n    bytes data\n  );\n\n  /**\n   * @dev A scheduled operation was executed.\n   */\n  event OperationExecuted(bytes32 indexed operationId, uint32 indexed nonce);\n\n  /**\n   * @dev A scheduled operation was canceled.\n   */\n  event OperationCanceled(bytes32 indexed operationId, uint32 indexed nonce);\n\n  /**\n   * @dev Informational labelling for a roleId.\n   */\n  event RoleLabel(uint64 indexed roleId, string label);\n\n  /**\n   * @dev Emitted when `account` is granted `roleId`.\n   *\n   * NOTE: The meaning of the `since` argument depends on the `newMember` argument.\n   * If the role is granted to a new member, the `since` argument indicates when the account becomes a member of the role,\n   * otherwise it indicates the execution delay for this account and roleId is updated.\n   */\n  event RoleGranted(\n    uint64 indexed roleId,\n    address indexed account,\n    uint32 delay,\n    uint48 since,\n    bool newMember\n  );\n\n  /**\n   * @dev Emitted when `account` membership or `roleId` is revoked. Unlike granting, revoking is instantaneous.\n   */\n  event RoleRevoked(uint64 indexed roleId, address indexed account);\n\n  /**\n   * @dev Role acting as admin over a given `roleId` is updated.\n   */\n  event RoleAdminChanged(uint64 indexed roleId, uint64 indexed admin);\n\n  /**\n   * @dev Role acting as guardian over a given `roleId` is updated.\n   */\n  event RoleGuardianChanged(uint64 indexed roleId, uint64 indexed guardian);\n\n  /**\n   * @dev Grant delay for a given `roleId` will be updated to `delay` when `since` is reached.\n   */\n  event RoleGrantDelayChanged(uint64 indexed roleId, uint32 delay, uint48 since);\n\n  /**\n   * @dev Target mode is updated (true = closed, false = open).\n   */\n  event TargetClosed(address indexed target, bool closed);\n\n  /**\n   * @dev Role required to invoke `selector` on `target` is updated to `roleId`.\n   */\n  event TargetFunctionRoleUpdated(address indexed target, bytes4 selector, uint64 indexed roleId);\n\n  /**\n   * @dev Admin delay for a given `target` will be updated to `delay` when `since` is reached.\n   */\n  event TargetAdminDelayUpdated(address indexed target, uint32 delay, uint48 since);\n\n  error AccessManagerAlreadyScheduled(bytes32 operationId);\n  error AccessManagerNotScheduled(bytes32 operationId);\n  error AccessManagerNotReady(bytes32 operationId);\n  error AccessManagerExpired(bytes32 operationId);\n  error AccessManagerLockedRole(uint64 roleId);\n  error AccessManagerBadConfirmation();\n  error AccessManagerUnauthorizedAccount(address msgsender, uint64 roleId);\n  error AccessManagerUnauthorizedCall(address caller, address target, bytes4 selector);\n  error AccessManagerUnauthorizedConsume(address target);\n  error AccessManagerUnauthorizedCancel(\n    address msgsender,\n    address caller,\n    address target,\n    bytes4 selector\n  );\n  error AccessManagerInvalidInitialAdmin(address initialAdmin);\n\n  /**\n   * @dev Check if an address (`caller`) is authorised to call a given function on a given contract directly (with\n   * no restriction). Additionally, it returns the delay needed to perform the call indirectly through the {schedule}\n   * & {execute} workflow.\n   *\n   * This function is usually called by the targeted contract to control immediate execution of restricted functions.\n   * Therefore we only return true if the call can be performed without any delay. If the call is subject to a\n   * previously set delay (not zero), then the function should return false and the caller should schedule the operation\n   * for future execution.\n   *\n   * If `allowed` is true, the delay can be disregarded and the operation can be immediately executed, otherwise\n   * the operation can be executed if and only if delay is greater than 0.\n   *\n   * NOTE: The IAuthority interface does not include the `uint32` delay. This is an extension of that interface that\n   * is backward compatible. Some contracts may thus ignore the second return argument. In that case they will fail\n   * to identify the indirect workflow, and will consider calls that require a delay to be forbidden.\n   *\n   * NOTE: This function does not report the permissions of the admin functions in the manager itself. These are defined by the\n   * {AccessManager} documentation.\n   */\n  function canCall(\n    address caller,\n    address target,\n    bytes4 selector\n  ) external view returns (bool allowed, uint32 delay);\n\n  /**\n   * @dev Expiration delay for scheduled proposals. Defaults to 1 week.\n   *\n   * IMPORTANT: Avoid overriding the expiration with 0. Otherwise every contract proposal will be expired immediately,\n   * disabling any scheduling usage.\n   */\n  function expiration() external view returns (uint32);\n\n  /**\n   * @dev Minimum setback for all delay updates, with the exception of execution delays. It\n   * can be increased without setback (and reset via {revokeRole} in the event of an\n   * accidental increase). Defaults to 5 days.\n   */\n  function minSetback() external view returns (uint32);\n\n  /**\n   * @dev Get whether the contract is closed disabling any access. Otherwise role permissions are applied.\n   *\n   * NOTE: When the manager itself is closed, admin functions are still accessible to avoid locking the contract.\n   */\n  function isTargetClosed(address target) external view returns (bool);\n\n  /**\n   * @dev Get the role required to call a function.\n   */\n  function getTargetFunctionRole(address target, bytes4 selector) external view returns (uint64);\n\n  /**\n   * @dev Get the admin delay for a target contract. Changes to contract configuration are subject to this delay.\n   */\n  function getTargetAdminDelay(address target) external view returns (uint32);\n\n  /**\n   * @dev Get the id of the role that acts as an admin for the given role.\n   *\n   * The admin permission is required to grant the role, revoke the role and update the execution delay to execute\n   * an operation that is restricted to this role.\n   */\n  function getRoleAdmin(uint64 roleId) external view returns (uint64);\n\n  /**\n   * @dev Get the role that acts as a guardian for a given role.\n   *\n   * The guardian permission allows canceling operations that have been scheduled under the role.\n   */\n  function getRoleGuardian(uint64 roleId) external view returns (uint64);\n\n  /**\n   * @dev Get the role current grant delay.\n   *\n   * Its value may change at any point without an event emitted following a call to {setGrantDelay}.\n   * Changes to this value, including effect timepoint are notified in advance by the {RoleGrantDelayChanged} event.\n   */\n  function getRoleGrantDelay(uint64 roleId) external view returns (uint32);\n\n  /**\n   * @dev Get the access details for a given account for a given role. These details include the timepoint at which\n   * membership becomes active, and the delay applied to all operations by this user that requires this permission\n   * level.\n   *\n   * Returns:\n   * [0] Timestamp at which the account membership becomes valid. 0 means role is not granted.\n   * [1] Current execution delay for the account.\n   * [2] Pending execution delay for the account.\n   * [3] Timestamp at which the pending execution delay will become active. 0 means no delay update is scheduled.\n   */\n  function getAccess(\n    uint64 roleId,\n    address account\n  ) external view returns (uint48 since, uint32 currentDelay, uint32 pendingDelay, uint48 effect);\n\n  /**\n   * @dev Check if a given account currently has the permission level corresponding to a given role. Note that this\n   * permission might be associated with an execution delay. {getAccess} can provide more details.\n   */\n  function hasRole(\n    uint64 roleId,\n    address account\n  ) external view returns (bool isMember, uint32 executionDelay);\n\n  /**\n   * @dev Give a label to a role, for improved role discoverability by UIs.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {RoleLabel} event.\n   */\n  function labelRole(uint64 roleId, string calldata label) external;\n\n  /**\n   * @dev Add `account` to `roleId`, or change its execution delay.\n   *\n   * This gives the account the authorization to call any function that is restricted to this role. An optional\n   * execution delay (in seconds) can be set. If that delay is non 0, the user is required to schedule any operation\n   * that is restricted to members of this role. The user will only be able to execute the operation after the delay has\n   * passed, before it has expired. During this period, admin and guardians can cancel the operation (see {cancel}).\n   *\n   * If the account has already been granted this role, the execution delay will be updated. This update is not\n   * immediate and follows the delay rules. For example, if a user currently has a delay of 3 hours, and this is\n   * called to reduce that delay to 1 hour, the new delay will take some time to take effect, enforcing that any\n   * operation executed in the 3 hours that follows this update was indeed scheduled before this update.\n   *\n   * Requirements:\n   *\n   * - the caller must be an admin for the role (see {getRoleAdmin})\n   * - granted role must not be the `PUBLIC_ROLE`\n   *\n   * Emits a {RoleGranted} event.\n   */\n  function grantRole(uint64 roleId, address account, uint32 executionDelay) external;\n\n  /**\n   * @dev Remove an account from a role, with immediate effect. If the account does not have the role, this call has\n   * no effect.\n   *\n   * Requirements:\n   *\n   * - the caller must be an admin for the role (see {getRoleAdmin})\n   * - revoked role must not be the `PUBLIC_ROLE`\n   *\n   * Emits a {RoleRevoked} event if the account had the role.\n   */\n  function revokeRole(uint64 roleId, address account) external;\n\n  /**\n   * @dev Renounce role permissions for the calling account with immediate effect. If the sender is not in\n   * the role this call has no effect.\n   *\n   * Requirements:\n   *\n   * - the caller must be `callerConfirmation`.\n   *\n   * Emits a {RoleRevoked} event if the account had the role.\n   */\n  function renounceRole(uint64 roleId, address callerConfirmation) external;\n\n  /**\n   * @dev Change admin role for a given role.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {RoleAdminChanged} event\n   */\n  function setRoleAdmin(uint64 roleId, uint64 admin) external;\n\n  /**\n   * @dev Change guardian role for a given role.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {RoleGuardianChanged} event\n   */\n  function setRoleGuardian(uint64 roleId, uint64 guardian) external;\n\n  /**\n   * @dev Update the delay for granting a `roleId`.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {RoleGrantDelayChanged} event.\n   */\n  function setGrantDelay(uint64 roleId, uint32 newDelay) external;\n\n  /**\n   * @dev Set the role required to call functions identified by the `selectors` in the `target` contract.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {TargetFunctionRoleUpdated} event per selector.\n   */\n  function setTargetFunctionRole(\n    address target,\n    bytes4[] calldata selectors,\n    uint64 roleId\n  ) external;\n\n  /**\n   * @dev Set the delay for changing the configuration of a given target contract.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {TargetAdminDelayUpdated} event.\n   */\n  function setTargetAdminDelay(address target, uint32 newDelay) external;\n\n  /**\n   * @dev Set the closed flag for a contract.\n   *\n   * Closing the manager itself won't disable access to admin methods to avoid locking the contract.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {TargetClosed} event.\n   */\n  function setTargetClosed(address target, bool closed) external;\n\n  /**\n   * @dev Return the timepoint at which a scheduled operation will be ready for execution. This returns 0 if the\n   * operation is not yet scheduled, has expired, was executed, or was canceled.\n   */\n  function getSchedule(bytes32 id) external view returns (uint48);\n\n  /**\n   * @dev Return the nonce for the latest scheduled operation with a given id. Returns 0 if the operation has never\n   * been scheduled.\n   */\n  function getNonce(bytes32 id) external view returns (uint32);\n\n  /**\n   * @dev Schedule a delayed operation for future execution, and return the operation identifier. It is possible to\n   * choose the timestamp at which the operation becomes executable as long as it satisfies the execution delays\n   * required for the caller. The special value zero will automatically set the earliest possible time.\n   *\n   * Returns the `operationId` that was scheduled. Since this value is a hash of the parameters, it can reoccur when\n   * the same parameters are used; if this is relevant, the returned `nonce` can be used to uniquely identify this\n   * scheduled operation from other occurrences of the same `operationId` in invocations of {execute} and {cancel}.\n   *\n   * Emits a {OperationScheduled} event.\n   *\n   * NOTE: It is not possible to concurrently schedule more than one operation with the same `target` and `data`. If\n   * this is necessary, a random byte can be appended to `data` to act as a salt that will be ignored by the target\n   * contract if it is using standard Solidity ABI encoding.\n   */\n  function schedule(\n    address target,\n    bytes calldata data,\n    uint48 when\n  ) external returns (bytes32 operationId, uint32 nonce);\n\n  /**\n   * @dev Execute a function that is delay restricted, provided it was properly scheduled beforehand, or the\n   * execution delay is 0.\n   *\n   * Returns the nonce that identifies the previously scheduled operation that is executed, or 0 if the\n   * operation wasn't previously scheduled (if the caller doesn't have an execution delay).\n   *\n   * Emits an {OperationExecuted} event only if the call was scheduled and delayed.\n   */\n  function execute(address target, bytes calldata data) external payable returns (uint32);\n\n  /**\n   * @dev Cancel a scheduled (delayed) operation. Returns the nonce that identifies the previously scheduled\n   * operation that is cancelled.\n   *\n   * Requirements:\n   *\n   * - the caller must be the proposer, a guardian of the targeted function, or a global admin\n   *\n   * Emits a {OperationCanceled} event.\n   */\n  function cancel(address caller, address target, bytes calldata data) external returns (uint32);\n\n  /**\n   * @dev Consume a scheduled operation targeting the caller. If such an operation exists, mark it as consumed\n   * (emit an {OperationExecuted} event and clean the state). Otherwise, throw an error.\n   *\n   * This is useful for contracts that want to enforce that calls targeting them were scheduled on the manager,\n   * with all the verifications that it implies.\n   *\n   * Emit a {OperationExecuted} event.\n   */\n  function consumeScheduledOp(address caller, bytes calldata data) external;\n\n  /**\n   * @dev Hashing function for delayed operations.\n   */\n  function hashOperation(\n    address caller,\n    address target,\n    bytes calldata data\n  ) external view returns (bytes32);\n\n  /**\n   * @dev Changes the authority of a target managed by this manager instance.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   */\n  function updateAuthority(address target, address newAuthority) external;\n}\n"},"src/dependencies/openzeppelin/IAccessManaged.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (access/manager/IAccessManaged.sol)\n\npragma solidity >=0.8.4;\n\ninterface IAccessManaged {\n  /**\n   * @dev Authority that manages this contract was updated.\n   */\n  event AuthorityUpdated(address authority);\n\n  error AccessManagedUnauthorized(address caller);\n  error AccessManagedRequiredDelay(address caller, uint32 delay);\n  error AccessManagedInvalidAuthority(address authority);\n\n  /**\n   * @dev Returns the current authority.\n   */\n  function authority() external view returns (address);\n\n  /**\n   * @dev Transfers control to a new authority. The caller must be the current authority.\n   */\n  function setAuthority(address) external;\n\n  /**\n   * @dev Returns true only in the context of a delayed restricted call, at the moment that the scheduled operation is\n   * being consumed. Prevents denial of service for delayed restricted calls in the case that the contract performs\n   * attacker controlled calls.\n   */\n  function isConsumingScheduledOp() external view returns (bytes4);\n}\n"},"src/dependencies/openzeppelin-upgradeable/ContextUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from './Initializable.sol';\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 ContextUpgradeable is Initializable {\n    function __Context_init() internal onlyInitializing {\n    }\n\n    function __Context_init_unchained() internal onlyInitializing {\n    }\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"},"src/dependencies/openzeppelin-upgradeable/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n *     function initialize() initializer public {\n *         __ERC20_init(\"MyToken\", \"MTK\");\n *     }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n *     function initializeV2() reinitializer(2) public {\n *         __ERC20Permit_init(\"MyToken\");\n *     }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n *     _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n  /**\n   * @dev Storage of the initializable contract.\n   *\n   * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n   * when using with upgradeable contracts.\n   *\n   * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n   */\n  struct InitializableStorage {\n    /**\n     * @dev Indicates that the contract has been initialized.\n     */\n    uint64 _initialized;\n    /**\n     * @dev Indicates that the contract is in the process of being initialized.\n     */\n    bool _initializing;\n  }\n\n  // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n  bytes32 private constant INITIALIZABLE_STORAGE =\n    0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n  /**\n   * @dev The contract is already initialized.\n   */\n  error InvalidInitialization();\n\n  /**\n   * @dev The contract is not initializing.\n   */\n  error NotInitializing();\n\n  /**\n   * @dev Triggered when the contract has been initialized or reinitialized.\n   */\n  event Initialized(uint64 version);\n\n  /**\n   * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n   * `onlyInitializing` functions can be used to initialize parent contracts.\n   *\n   * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n   * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n   * production.\n   *\n   * Emits an {Initialized} event.\n   */\n  modifier initializer() {\n    // solhint-disable-next-line var-name-mixedcase\n    InitializableStorage storage $ = _getInitializableStorage();\n\n    // Cache values to avoid duplicated sloads\n    bool isTopLevelCall = !$._initializing;\n    uint64 initialized = $._initialized;\n\n    // Allowed calls:\n    // - initialSetup: the contract is not in the initializing state and no previous version was\n    //                 initialized\n    // - construction: the contract is initialized at version 1 (no reinitialization) and the\n    //                 current contract is just being deployed\n    bool initialSetup = initialized == 0 && isTopLevelCall;\n    bool construction = initialized == 1 && address(this).code.length == 0;\n\n    if (!initialSetup && !construction) {\n      revert InvalidInitialization();\n    }\n    $._initialized = 1;\n    if (isTopLevelCall) {\n      $._initializing = true;\n    }\n    _;\n    if (isTopLevelCall) {\n      $._initializing = false;\n      emit Initialized(1);\n    }\n  }\n\n  /**\n   * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n   * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n   * used to initialize parent contracts.\n   *\n   * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n   * are added through upgrades and that require initialization.\n   *\n   * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n   * cannot be nested. If one is invoked in the context of another, execution will revert.\n   *\n   * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n   * a contract, executing them in the right order is up to the developer or operator.\n   *\n   * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n   *\n   * Emits an {Initialized} event.\n   */\n  modifier reinitializer(uint64 version) {\n    // solhint-disable-next-line var-name-mixedcase\n    InitializableStorage storage $ = _getInitializableStorage();\n\n    if ($._initializing || $._initialized >= version) {\n      revert InvalidInitialization();\n    }\n    $._initialized = version;\n    $._initializing = true;\n    _;\n    $._initializing = false;\n    emit Initialized(version);\n  }\n\n  /**\n   * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n   * {initializer} and {reinitializer} modifiers, directly or indirectly.\n   */\n  modifier onlyInitializing() {\n    _checkInitializing();\n    _;\n  }\n\n  /**\n   * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n   */\n  function _checkInitializing() internal view virtual {\n    if (!_isInitializing()) {\n      revert NotInitializing();\n    }\n  }\n\n  /**\n   * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n   * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n   * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n   * through proxies.\n   *\n   * Emits an {Initialized} event the first time it is successfully executed.\n   */\n  function _disableInitializers() internal virtual {\n    // solhint-disable-next-line var-name-mixedcase\n    InitializableStorage storage $ = _getInitializableStorage();\n\n    if ($._initializing) {\n      revert InvalidInitialization();\n    }\n    if ($._initialized != type(uint64).max) {\n      $._initialized = type(uint64).max;\n      emit Initialized(type(uint64).max);\n    }\n  }\n\n  /**\n   * @dev Returns the highest version that has been initialized. See {reinitializer}.\n   */\n  function _getInitializedVersion() internal view returns (uint64) {\n    return _getInitializableStorage()._initialized;\n  }\n\n  /**\n   * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n   */\n  function _isInitializing() internal view returns (bool) {\n    return _getInitializableStorage()._initializing;\n  }\n\n  /**\n   * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n   *\n   * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n   */\n  function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n    return INITIALIZABLE_STORAGE;\n  }\n\n  /**\n   * @dev Returns a pointer to the storage namespace.\n   */\n  // solhint-disable-next-line var-name-mixedcase\n  function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n    bytes32 slot = _initializableStorageSlot();\n    assembly {\n      $.slot := slot\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/Arrays.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/Arrays.sol)\n// This file was procedurally generated from scripts/generate/templates/Arrays.js.\n\npragma solidity ^0.8.24;\n\nimport {Comparators} from './Comparators.sol';\nimport {SlotDerivation} from './SlotDerivation.sol';\nimport {StorageSlot} from './StorageSlot.sol';\nimport {Math} from './Math.sol';\n\n/**\n * @dev Collection of functions related to array types.\n */\nlibrary Arrays {\n  using SlotDerivation for bytes32;\n  using StorageSlot for bytes32;\n\n  /**\n   * @dev Sort an array of uint256 (in memory) following the provided comparator function.\n   *\n   * This function does the sorting \"in place\", meaning that it overrides the input. The object is returned for\n   * convenience, but that returned value can be discarded safely if the caller has a memory pointer to the array.\n   *\n   * NOTE: this function's cost is `O(n · log(n))` in average and `O(n²)` in the worst case, with n the length of the\n   * array. Using it in view functions that are executed through `eth_call` is safe, but one should be very careful\n   * when executing this as part of a transaction. If the array being sorted is too large, the sort operation may\n   * consume more gas than is available in a block, leading to potential DoS.\n   *\n   * IMPORTANT: Consider memory side-effects when using custom comparator functions that access memory in an unsafe way.\n   */\n  function sort(\n    uint256[] memory array,\n    function(uint256, uint256) pure returns (bool) comp\n  ) internal pure returns (uint256[] memory) {\n    _quickSort(_begin(array), _end(array), comp);\n    return array;\n  }\n\n  /**\n   * @dev Variant of {sort} that sorts an array of uint256 in increasing order.\n   */\n  function sort(uint256[] memory array) internal pure returns (uint256[] memory) {\n    sort(array, Comparators.lt);\n    return array;\n  }\n\n  /**\n   * @dev Sort an array of address (in memory) following the provided comparator function.\n   *\n   * This function does the sorting \"in place\", meaning that it overrides the input. The object is returned for\n   * convenience, but that returned value can be discarded safely if the caller has a memory pointer to the array.\n   *\n   * NOTE: this function's cost is `O(n · log(n))` in average and `O(n²)` in the worst case, with n the length of the\n   * array. Using it in view functions that are executed through `eth_call` is safe, but one should be very careful\n   * when executing this as part of a transaction. If the array being sorted is too large, the sort operation may\n   * consume more gas than is available in a block, leading to potential DoS.\n   *\n   * IMPORTANT: Consider memory side-effects when using custom comparator functions that access memory in an unsafe way.\n   */\n  function sort(\n    address[] memory array,\n    function(address, address) pure returns (bool) comp\n  ) internal pure returns (address[] memory) {\n    sort(_castToUint256Array(array), _castToUint256Comp(comp));\n    return array;\n  }\n\n  /**\n   * @dev Variant of {sort} that sorts an array of address in increasing order.\n   */\n  function sort(address[] memory array) internal pure returns (address[] memory) {\n    sort(_castToUint256Array(array), Comparators.lt);\n    return array;\n  }\n\n  /**\n   * @dev Sort an array of bytes32 (in memory) following the provided comparator function.\n   *\n   * This function does the sorting \"in place\", meaning that it overrides the input. The object is returned for\n   * convenience, but that returned value can be discarded safely if the caller has a memory pointer to the array.\n   *\n   * NOTE: this function's cost is `O(n · log(n))` in average and `O(n²)` in the worst case, with n the length of the\n   * array. Using it in view functions that are executed through `eth_call` is safe, but one should be very careful\n   * when executing this as part of a transaction. If the array being sorted is too large, the sort operation may\n   * consume more gas than is available in a block, leading to potential DoS.\n   *\n   * IMPORTANT: Consider memory side-effects when using custom comparator functions that access memory in an unsafe way.\n   */\n  function sort(\n    bytes32[] memory array,\n    function(bytes32, bytes32) pure returns (bool) comp\n  ) internal pure returns (bytes32[] memory) {\n    sort(_castToUint256Array(array), _castToUint256Comp(comp));\n    return array;\n  }\n\n  /**\n   * @dev Variant of {sort} that sorts an array of bytes32 in increasing order.\n   */\n  function sort(bytes32[] memory array) internal pure returns (bytes32[] memory) {\n    sort(_castToUint256Array(array), Comparators.lt);\n    return array;\n  }\n\n  /**\n   * @dev Performs a quick sort of a segment of memory. The segment sorted starts at `begin` (inclusive), and stops\n   * at end (exclusive). Sorting follows the `comp` comparator.\n   *\n   * Invariant: `begin <= end`. This is the case when initially called by {sort} and is preserved in subcalls.\n   *\n   * IMPORTANT: Memory locations between `begin` and `end` are not validated/zeroed. This function should\n   * be used only if the limits are within a memory array.\n   */\n  function _quickSort(\n    uint256 begin,\n    uint256 end,\n    function(uint256, uint256) pure returns (bool) comp\n  ) private pure {\n    unchecked {\n      if (end - begin < 0x40) return;\n\n      // Use first element as pivot\n      uint256 pivot = _mload(begin);\n      // Position where the pivot should be at the end of the loop\n      uint256 pos = begin;\n\n      for (uint256 it = begin + 0x20; it < end; it += 0x20) {\n        if (comp(_mload(it), pivot)) {\n          // If the value stored at the iterator's position comes before the pivot, we increment the\n          // position of the pivot and move the value there.\n          pos += 0x20;\n          _swap(pos, it);\n        }\n      }\n\n      _swap(begin, pos); // Swap pivot into place\n      _quickSort(begin, pos, comp); // Sort the left side of the pivot\n      _quickSort(pos + 0x20, end, comp); // Sort the right side of the pivot\n    }\n  }\n\n  /**\n   * @dev Pointer to the memory location of the first element of `array`.\n   */\n  function _begin(uint256[] memory array) private pure returns (uint256 ptr) {\n    assembly ('memory-safe') {\n      ptr := add(array, 0x20)\n    }\n  }\n\n  /**\n   * @dev Pointer to the memory location of the first memory word (32bytes) after `array`. This is the memory word\n   * that comes just after the last element of the array.\n   */\n  function _end(uint256[] memory array) private pure returns (uint256 ptr) {\n    unchecked {\n      return _begin(array) + array.length * 0x20;\n    }\n  }\n\n  /**\n   * @dev Load memory word (as a uint256) at location `ptr`.\n   */\n  function _mload(uint256 ptr) private pure returns (uint256 value) {\n    assembly {\n      value := mload(ptr)\n    }\n  }\n\n  /**\n   * @dev Swaps the elements memory location `ptr1` and `ptr2`.\n   */\n  function _swap(uint256 ptr1, uint256 ptr2) private pure {\n    assembly {\n      let value1 := mload(ptr1)\n      let value2 := mload(ptr2)\n      mstore(ptr1, value2)\n      mstore(ptr2, value1)\n    }\n  }\n\n  /// @dev Helper: low level cast address memory array to uint256 memory array\n  function _castToUint256Array(\n    address[] memory input\n  ) private pure returns (uint256[] memory output) {\n    assembly {\n      output := input\n    }\n  }\n\n  /// @dev Helper: low level cast bytes32 memory array to uint256 memory array\n  function _castToUint256Array(\n    bytes32[] memory input\n  ) private pure returns (uint256[] memory output) {\n    assembly {\n      output := input\n    }\n  }\n\n  /// @dev Helper: low level cast address comp function to uint256 comp function\n  function _castToUint256Comp(\n    function(address, address) pure returns (bool) input\n  ) private pure returns (function(uint256, uint256) pure returns (bool) output) {\n    assembly {\n      output := input\n    }\n  }\n\n  /// @dev Helper: low level cast bytes32 comp function to uint256 comp function\n  function _castToUint256Comp(\n    function(bytes32, bytes32) pure returns (bool) input\n  ) private pure returns (function(uint256, uint256) pure returns (bool) output) {\n    assembly {\n      output := input\n    }\n  }\n\n  /**\n   * @dev Searches a sorted `array` and returns the first index that contains\n   * a value greater or equal to `element`. If no such index exists (i.e. all\n   * values in the array are strictly less than `element`), the array length is\n   * returned. Time complexity O(log n).\n   *\n   * NOTE: The `array` is expected to be sorted in ascending order, and to\n   * contain no repeated elements.\n   *\n   * IMPORTANT: Deprecated. This implementation behaves as {lowerBound} but lacks\n   * support for repeated elements in the array. The {lowerBound} function should\n   * be used instead.\n   */\n  function findUpperBound(\n    uint256[] storage array,\n    uint256 element\n  ) internal view returns (uint256) {\n    uint256 low = 0;\n    uint256 high = array.length;\n\n    if (high == 0) {\n      return 0;\n    }\n\n    while (low < high) {\n      uint256 mid = Math.average(low, high);\n\n      // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n      // because Math.average rounds towards zero (it does integer division with truncation).\n      if (unsafeAccess(array, mid).value > element) {\n        high = mid;\n      } else {\n        low = mid + 1;\n      }\n    }\n\n    // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.\n    if (low > 0 && unsafeAccess(array, low - 1).value == element) {\n      return low - 1;\n    } else {\n      return low;\n    }\n  }\n\n  /**\n   * @dev Searches an `array` sorted in ascending order and returns the first\n   * index that contains a value greater or equal than `element`. If no such index\n   * exists (i.e. all values in the array are strictly less than `element`), the array\n   * length is returned. Time complexity O(log n).\n   *\n   * See C++'s https://en.cppreference.com/w/cpp/algorithm/lower_bound[lower_bound].\n   */\n  function lowerBound(uint256[] storage array, uint256 element) internal view returns (uint256) {\n    uint256 low = 0;\n    uint256 high = array.length;\n\n    if (high == 0) {\n      return 0;\n    }\n\n    while (low < high) {\n      uint256 mid = Math.average(low, high);\n\n      // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n      // because Math.average rounds towards zero (it does integer division with truncation).\n      if (unsafeAccess(array, mid).value < element) {\n        // this cannot overflow because mid < high\n        unchecked {\n          low = mid + 1;\n        }\n      } else {\n        high = mid;\n      }\n    }\n\n    return low;\n  }\n\n  /**\n   * @dev Searches an `array` sorted in ascending order and returns the first\n   * index that contains a value strictly greater than `element`. If no such index\n   * exists (i.e. all values in the array are strictly less than `element`), the array\n   * length is returned. Time complexity O(log n).\n   *\n   * See C++'s https://en.cppreference.com/w/cpp/algorithm/upper_bound[upper_bound].\n   */\n  function upperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {\n    uint256 low = 0;\n    uint256 high = array.length;\n\n    if (high == 0) {\n      return 0;\n    }\n\n    while (low < high) {\n      uint256 mid = Math.average(low, high);\n\n      // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n      // because Math.average rounds towards zero (it does integer division with truncation).\n      if (unsafeAccess(array, mid).value > element) {\n        high = mid;\n      } else {\n        // this cannot overflow because mid < high\n        unchecked {\n          low = mid + 1;\n        }\n      }\n    }\n\n    return low;\n  }\n\n  /**\n   * @dev Same as {lowerBound}, but with an array in memory.\n   */\n  function lowerBoundMemory(\n    uint256[] memory array,\n    uint256 element\n  ) internal pure returns (uint256) {\n    uint256 low = 0;\n    uint256 high = array.length;\n\n    if (high == 0) {\n      return 0;\n    }\n\n    while (low < high) {\n      uint256 mid = Math.average(low, high);\n\n      // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n      // because Math.average rounds towards zero (it does integer division with truncation).\n      if (unsafeMemoryAccess(array, mid) < element) {\n        // this cannot overflow because mid < high\n        unchecked {\n          low = mid + 1;\n        }\n      } else {\n        high = mid;\n      }\n    }\n\n    return low;\n  }\n\n  /**\n   * @dev Same as {upperBound}, but with an array in memory.\n   */\n  function upperBoundMemory(\n    uint256[] memory array,\n    uint256 element\n  ) internal pure returns (uint256) {\n    uint256 low = 0;\n    uint256 high = array.length;\n\n    if (high == 0) {\n      return 0;\n    }\n\n    while (low < high) {\n      uint256 mid = Math.average(low, high);\n\n      // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n      // because Math.average rounds towards zero (it does integer division with truncation).\n      if (unsafeMemoryAccess(array, mid) > element) {\n        high = mid;\n      } else {\n        // this cannot overflow because mid < high\n        unchecked {\n          low = mid + 1;\n        }\n      }\n    }\n\n    return low;\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to the end of `array` into a new address array in\n   * memory.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(address[] memory array, uint256 start) internal pure returns (address[] memory) {\n    return slice(array, start, array.length);\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to `end` (excluded) into a new address array in\n   * memory. The `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(\n    address[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (address[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // allocate and copy\n    address[] memory result = new address[](end - start);\n    assembly ('memory-safe') {\n      mcopy(add(result, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to the end of `array` into a new bytes32 array in\n   * memory.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(bytes32[] memory array, uint256 start) internal pure returns (bytes32[] memory) {\n    return slice(array, start, array.length);\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to `end` (excluded) into a new bytes32 array in\n   * memory. The `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(\n    bytes32[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (bytes32[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // allocate and copy\n    bytes32[] memory result = new bytes32[](end - start);\n    assembly ('memory-safe') {\n      mcopy(add(result, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to the end of `array` into a new uint256 array in\n   * memory.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(uint256[] memory array, uint256 start) internal pure returns (uint256[] memory) {\n    return slice(array, start, array.length);\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to `end` (excluded) into a new uint256 array in\n   * memory. The `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(\n    uint256[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (uint256[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // allocate and copy\n    uint256[] memory result = new uint256[](end - start);\n    assembly ('memory-safe') {\n      mcopy(add(result, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to the end of `array` to the start of that array.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(address[] memory array, uint256 start) internal pure returns (address[] memory) {\n    return splice(array, start, array.length);\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to `end` (excluded) to the start of that array. The\n   * `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(\n    address[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (address[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // move and resize\n    assembly ('memory-safe') {\n      mcopy(add(array, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n      mstore(array, sub(end, start))\n    }\n\n    return array;\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to the end of `array` to the start of that array.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(bytes32[] memory array, uint256 start) internal pure returns (bytes32[] memory) {\n    return splice(array, start, array.length);\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to `end` (excluded) to the start of that array. The\n   * `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(\n    bytes32[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (bytes32[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // move and resize\n    assembly ('memory-safe') {\n      mcopy(add(array, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n      mstore(array, sub(end, start))\n    }\n\n    return array;\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to the end of `array` to the start of that array.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(uint256[] memory array, uint256 start) internal pure returns (uint256[] memory) {\n    return splice(array, start, array.length);\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to `end` (excluded) to the start of that array. The\n   * `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(\n    uint256[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (uint256[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // move and resize\n    assembly ('memory-safe') {\n      mcopy(add(array, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n      mstore(array, sub(end, start))\n    }\n\n    return array;\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeAccess(\n    address[] storage arr,\n    uint256 pos\n  ) internal pure returns (StorageSlot.AddressSlot storage) {\n    bytes32 slot;\n    assembly ('memory-safe') {\n      slot := arr.slot\n    }\n    return slot.deriveArray().offset(pos).getAddressSlot();\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeAccess(\n    bytes32[] storage arr,\n    uint256 pos\n  ) internal pure returns (StorageSlot.Bytes32Slot storage) {\n    bytes32 slot;\n    assembly ('memory-safe') {\n      slot := arr.slot\n    }\n    return slot.deriveArray().offset(pos).getBytes32Slot();\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeAccess(\n    uint256[] storage arr,\n    uint256 pos\n  ) internal pure returns (StorageSlot.Uint256Slot storage) {\n    bytes32 slot;\n    assembly ('memory-safe') {\n      slot := arr.slot\n    }\n    return slot.deriveArray().offset(pos).getUint256Slot();\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeAccess(\n    bytes[] storage arr,\n    uint256 pos\n  ) internal pure returns (StorageSlot.BytesSlot storage) {\n    bytes32 slot;\n    assembly ('memory-safe') {\n      slot := arr.slot\n    }\n    return slot.deriveArray().offset(pos).getBytesSlot();\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeAccess(\n    string[] storage arr,\n    uint256 pos\n  ) internal pure returns (StorageSlot.StringSlot storage) {\n    bytes32 slot;\n    assembly ('memory-safe') {\n      slot := arr.slot\n    }\n    return slot.deriveArray().offset(pos).getStringSlot();\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeMemoryAccess(\n    address[] memory arr,\n    uint256 pos\n  ) internal pure returns (address res) {\n    assembly {\n      res := mload(add(add(arr, 0x20), mul(pos, 0x20)))\n    }\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeMemoryAccess(\n    bytes32[] memory arr,\n    uint256 pos\n  ) internal pure returns (bytes32 res) {\n    assembly {\n      res := mload(add(add(arr, 0x20), mul(pos, 0x20)))\n    }\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeMemoryAccess(\n    uint256[] memory arr,\n    uint256 pos\n  ) internal pure returns (uint256 res) {\n    assembly {\n      res := mload(add(add(arr, 0x20), mul(pos, 0x20)))\n    }\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeMemoryAccess(\n    bytes[] memory arr,\n    uint256 pos\n  ) internal pure returns (bytes memory res) {\n    assembly {\n      res := mload(add(add(arr, 0x20), mul(pos, 0x20)))\n    }\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeMemoryAccess(\n    string[] memory arr,\n    uint256 pos\n  ) internal pure returns (string memory res) {\n    assembly {\n      res := mload(add(add(arr, 0x20), mul(pos, 0x20)))\n    }\n  }\n\n  /**\n   * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden.\n   *\n   * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased.\n   */\n  function unsafeSetLength(address[] storage array, uint256 len) internal {\n    assembly ('memory-safe') {\n      sstore(array.slot, len)\n    }\n  }\n\n  /**\n   * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden.\n   *\n   * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased.\n   */\n  function unsafeSetLength(bytes32[] storage array, uint256 len) internal {\n    assembly ('memory-safe') {\n      sstore(array.slot, len)\n    }\n  }\n\n  /**\n   * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden.\n   *\n   * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased.\n   */\n  function unsafeSetLength(uint256[] storage array, uint256 len) internal {\n    assembly ('memory-safe') {\n      sstore(array.slot, len)\n    }\n  }\n\n  /**\n   * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden.\n   *\n   * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased.\n   */\n  function unsafeSetLength(bytes[] storage array, uint256 len) internal {\n    assembly ('memory-safe') {\n      sstore(array.slot, len)\n    }\n  }\n\n  /**\n   * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden.\n   *\n   * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased.\n   */\n  function unsafeSetLength(string[] storage array, uint256 len) internal {\n    assembly ('memory-safe') {\n      sstore(array.slot, len)\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from './Panic.sol';\nimport {SafeCast} from './SafeCast.sol';\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n  enum Rounding {\n    Floor, // Toward negative infinity\n    Ceil, // Toward positive infinity\n    Trunc, // Toward zero\n    Expand // Away from zero\n  }\n\n  /**\n   * @dev Return the 512-bit addition of two uint256.\n   *\n   * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n   */\n  function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n    assembly ('memory-safe') {\n      low := add(a, b)\n      high := lt(low, a)\n    }\n  }\n\n  /**\n   * @dev Return the 512-bit multiplication of two uint256.\n   *\n   * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n   */\n  function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n    // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n    // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n    // variables such that product = high * 2²⁵⁶ + low.\n    assembly ('memory-safe') {\n      let mm := mulmod(a, b, not(0))\n      low := mul(a, b)\n      high := sub(sub(mm, low), lt(mm, low))\n    }\n  }\n\n  /**\n   * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n   */\n  function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n    unchecked {\n      uint256 c = a + b;\n      success = c >= a;\n      result = c * SafeCast.toUint(success);\n    }\n  }\n\n  /**\n   * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n   */\n  function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n    unchecked {\n      uint256 c = a - b;\n      success = c <= a;\n      result = c * SafeCast.toUint(success);\n    }\n  }\n\n  /**\n   * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n   */\n  function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n    unchecked {\n      uint256 c = a * b;\n      assembly ('memory-safe') {\n        // Only true when the multiplication doesn't overflow\n        // (c / a == b) || (a == 0)\n        success := or(eq(div(c, a), b), iszero(a))\n      }\n      // equivalent to: success ? c : 0\n      result = c * SafeCast.toUint(success);\n    }\n  }\n\n  /**\n   * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n   */\n  function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n    unchecked {\n      success = b > 0;\n      assembly ('memory-safe') {\n        // The `DIV` opcode returns zero when the denominator is 0.\n        result := div(a, b)\n      }\n    }\n  }\n\n  /**\n   * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n   */\n  function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n    unchecked {\n      success = b > 0;\n      assembly ('memory-safe') {\n        // The `MOD` opcode returns zero when the denominator is 0.\n        result := mod(a, b)\n      }\n    }\n  }\n\n  /**\n   * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n   */\n  function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n    (bool success, uint256 result) = tryAdd(a, b);\n    return ternary(success, result, type(uint256).max);\n  }\n\n  /**\n   * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n   */\n  function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n    (, uint256 result) = trySub(a, b);\n    return result;\n  }\n\n  /**\n   * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n   */\n  function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n    (bool success, uint256 result) = tryMul(a, b);\n    return ternary(success, result, type(uint256).max);\n  }\n\n  /**\n   * @dev Branchless ternary evaluation for `condition ? a : b`. Gas costs are constant.\n   *\n   * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n   * However, the compiler may optimize Solidity ternary operations (i.e. `condition ? a : b`) to only compute\n   * one branch when needed, making this function more expensive.\n   */\n  function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n    unchecked {\n      // branchless ternary works because:\n      // b ^ (a ^ b) == a\n      // b ^ 0 == b\n      return b ^ ((a ^ b) * SafeCast.toUint(condition));\n    }\n  }\n\n  /**\n   * @dev Returns the largest of two numbers.\n   */\n  function max(uint256 a, uint256 b) internal pure returns (uint256) {\n    return ternary(a > b, a, b);\n  }\n\n  /**\n   * @dev Returns the smallest of two numbers.\n   */\n  function min(uint256 a, uint256 b) internal pure returns (uint256) {\n    return ternary(a < b, a, b);\n  }\n\n  /**\n   * @dev Returns the average of two numbers. The result is rounded towards\n   * zero.\n   */\n  function average(uint256 a, uint256 b) internal pure returns (uint256) {\n    // (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 towards infinity instead\n   * of rounding towards zero.\n   */\n  function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n    if (b == 0) {\n      // Guarantee the same behavior as in a regular Solidity division.\n      Panic.panic(Panic.DIVISION_BY_ZERO);\n    }\n\n    // The following calculation ensures accurate ceiling division without overflow.\n    // Since a is non-zero, (a - 1) / b will not overflow.\n    // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n    // but the largest value we can obtain is type(uint256).max - 1, which happens\n    // when a = type(uint256).max and b = 1.\n    unchecked {\n      return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n    }\n  }\n\n  /**\n   * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n   * denominator == 0.\n   *\n   * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n   * Uniswap Labs also under MIT license.\n   */\n  function mulDiv(\n    uint256 x,\n    uint256 y,\n    uint256 denominator\n  ) internal pure returns (uint256 result) {\n    unchecked {\n      (uint256 high, uint256 low) = mul512(x, y);\n\n      // Handle non-overflow cases, 256 by 256 division.\n      if (high == 0) {\n        // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n        // The surrounding unchecked block does not change this fact.\n        // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n        return low / denominator;\n      }\n\n      // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n      if (denominator <= high) {\n        Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n      }\n\n      ///////////////////////////////////////////////\n      // 512 by 256 division.\n      ///////////////////////////////////////////////\n\n      // Make division exact by subtracting the remainder from [high low].\n      uint256 remainder;\n      assembly ('memory-safe') {\n        // Compute remainder using mulmod.\n        remainder := mulmod(x, y, denominator)\n\n        // Subtract 256 bit number from 512 bit number.\n        high := sub(high, gt(remainder, low))\n        low := sub(low, remainder)\n      }\n\n      // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n      // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n      uint256 twos = denominator & (0 - denominator);\n      assembly ('memory-safe') {\n        // Divide denominator by twos.\n        denominator := div(denominator, twos)\n\n        // Divide [high low] by twos.\n        low := div(low, twos)\n\n        // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n        twos := add(div(sub(0, twos), twos), 1)\n      }\n\n      // Shift in bits from high into low.\n      low |= high * twos;\n\n      // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n      // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n      // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n      uint256 inverse = (3 * denominator) ^ 2;\n\n      // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n      // works in modular arithmetic, doubling the correct bits in each step.\n      inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n      inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n      inverse *= 2 - denominator * inverse; // inverse mod 2³²\n      inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n      inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n      inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n      // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n      // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n      // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n      // is no longer required.\n      result = low * inverse;\n      return result;\n    }\n  }\n\n  /**\n   * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n   */\n  function mulDiv(\n    uint256 x,\n    uint256 y,\n    uint256 denominator,\n    Rounding rounding\n  ) internal pure returns (uint256) {\n    return\n      mulDiv(x, y, denominator) +\n      SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n  }\n\n  /**\n   * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n   */\n  function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n    unchecked {\n      (uint256 high, uint256 low) = mul512(x, y);\n      if (high >= 1 << n) {\n        Panic.panic(Panic.UNDER_OVERFLOW);\n      }\n      return (high << (256 - n)) | (low >> n);\n    }\n  }\n\n  /**\n   * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n   */\n  function mulShr(\n    uint256 x,\n    uint256 y,\n    uint8 n,\n    Rounding rounding\n  ) internal pure returns (uint256) {\n    return\n      mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n  }\n\n  /**\n   * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n   *\n   * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n   * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n   *\n   * If the input value is not inversible, 0 is returned.\n   *\n   * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n   * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n   */\n  function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n    unchecked {\n      if (n == 0) return 0;\n\n      // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n      // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n      // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n      // ax + ny = 1\n      // ax = 1 + (-y)n\n      // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n      // If the remainder is 0 the gcd is n right away.\n      uint256 remainder = a % n;\n      uint256 gcd = n;\n\n      // Therefore the initial coefficients are:\n      // ax + ny = gcd(a, n) = n\n      // 0a + 1n = n\n      int256 x = 0;\n      int256 y = 1;\n\n      while (remainder != 0) {\n        uint256 quotient = gcd / remainder;\n\n        (gcd, remainder) = (\n          // The old remainder is the next gcd to try.\n          remainder,\n          // Compute the next remainder.\n          // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n          // where gcd is at most n (capped to type(uint256).max)\n          gcd - remainder * quotient\n        );\n\n        (x, y) = (\n          // Increment the coefficient of a.\n          y,\n          // Decrement the coefficient of n.\n          // Can overflow, but the result is casted to uint256 so that the\n          // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n          x - y * int256(quotient)\n        );\n      }\n\n      if (gcd != 1) return 0; // No inverse exists.\n      return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n    }\n  }\n\n  /**\n   * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n   *\n   * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n   * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n   * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n   *\n   * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n   */\n  function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n    unchecked {\n      return Math.modExp(a, p - 2, p);\n    }\n  }\n\n  /**\n   * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n   *\n   * Requirements:\n   * - modulus can't be zero\n   * - underlying staticcall to precompile must succeed\n   *\n   * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n   * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n   * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n   * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n   * interpreted as 0.\n   */\n  function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n    (bool success, uint256 result) = tryModExp(b, e, m);\n    if (!success) {\n      Panic.panic(Panic.DIVISION_BY_ZERO);\n    }\n    return result;\n  }\n\n  /**\n   * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n   * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n   * to operate modulo 0 or if the underlying precompile reverted.\n   *\n   * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n   * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n   * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n   * of a revert, but the result may be incorrectly interpreted as 0.\n   */\n  function tryModExp(\n    uint256 b,\n    uint256 e,\n    uint256 m\n  ) internal view returns (bool success, uint256 result) {\n    if (m == 0) return (false, 0);\n    assembly ('memory-safe') {\n      let ptr := mload(0x40)\n      // | Offset    | Content    | Content (Hex)                                                      |\n      // |-----------|------------|--------------------------------------------------------------------|\n      // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n      // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n      // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n      // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n      // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n      // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n      mstore(ptr, 0x20)\n      mstore(add(ptr, 0x20), 0x20)\n      mstore(add(ptr, 0x40), 0x20)\n      mstore(add(ptr, 0x60), b)\n      mstore(add(ptr, 0x80), e)\n      mstore(add(ptr, 0xa0), m)\n\n      // Given the result < m, it's guaranteed to fit in 32 bytes,\n      // so we can use the memory scratch space located at offset 0.\n      success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n      result := mload(0x00)\n    }\n  }\n\n  /**\n   * @dev Variant of {modExp} that supports inputs of arbitrary length.\n   */\n  function modExp(\n    bytes memory b,\n    bytes memory e,\n    bytes memory m\n  ) internal view returns (bytes memory) {\n    (bool success, bytes memory result) = tryModExp(b, e, m);\n    if (!success) {\n      Panic.panic(Panic.DIVISION_BY_ZERO);\n    }\n    return result;\n  }\n\n  /**\n   * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n   */\n  function tryModExp(\n    bytes memory b,\n    bytes memory e,\n    bytes memory m\n  ) internal view returns (bool success, bytes memory result) {\n    if (_zeroBytes(m)) return (false, new bytes(0));\n\n    uint256 mLen = m.length;\n\n    // Encode call args in result and move the free memory pointer\n    result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n    assembly ('memory-safe') {\n      let dataPtr := add(result, 0x20)\n      // Write result on top of args to avoid allocating extra memory.\n      success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n      // Overwrite the length.\n      // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n      mstore(result, mLen)\n      // Set the memory pointer after the returned data.\n      mstore(0x40, add(dataPtr, mLen))\n    }\n  }\n\n  /**\n   * @dev Returns whether the provided byte array is zero.\n   */\n  function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n    for (uint256 i = 0; i < byteArray.length; ++i) {\n      if (byteArray[i] != 0) {\n        return false;\n      }\n    }\n    return true;\n  }\n\n  /**\n   * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n   * towards zero.\n   *\n   * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n   * using integer operations.\n   */\n  function sqrt(uint256 a) internal pure returns (uint256) {\n    unchecked {\n      // Take care of easy edge cases when a == 0 or a == 1\n      if (a <= 1) {\n        return a;\n      }\n\n      // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n      // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n      // the current value as `ε_n = | x_n - sqrt(a) |`.\n      //\n      // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n      // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n      // bigger than any uint256.\n      //\n      // By noticing that\n      // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n      // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n      // to the msb function.\n      uint256 aa = a;\n      uint256 xn = 1;\n\n      if (aa >= (1 << 128)) {\n        aa >>= 128;\n        xn <<= 64;\n      }\n      if (aa >= (1 << 64)) {\n        aa >>= 64;\n        xn <<= 32;\n      }\n      if (aa >= (1 << 32)) {\n        aa >>= 32;\n        xn <<= 16;\n      }\n      if (aa >= (1 << 16)) {\n        aa >>= 16;\n        xn <<= 8;\n      }\n      if (aa >= (1 << 8)) {\n        aa >>= 8;\n        xn <<= 4;\n      }\n      if (aa >= (1 << 4)) {\n        aa >>= 4;\n        xn <<= 2;\n      }\n      if (aa >= (1 << 2)) {\n        xn <<= 1;\n      }\n\n      // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n      //\n      // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n      // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n      // This is going to be our x_0 (and ε_0)\n      xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n      // From here, Newton's method give us:\n      // x_{n+1} = (x_n + a / x_n) / 2\n      //\n      // One should note that:\n      // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n      //              = ((x_n² + a) / (2 * x_n))² - a\n      //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n      //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n      //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n      //              = (x_n² - a)² / (2 * x_n)²\n      //              = ((x_n² - a) / (2 * x_n))²\n      //              ≥ 0\n      // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n      //\n      // This gives us the proof of quadratic convergence of the sequence:\n      // ε_{n+1} = | x_{n+1} - sqrt(a) |\n      //         = | (x_n + a / x_n) / 2 - sqrt(a) |\n      //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n      //         = | (x_n - sqrt(a))² / (2 * x_n) |\n      //         = | ε_n² / (2 * x_n) |\n      //         = ε_n² / | (2 * x_n) |\n      //\n      // For the first iteration, we have a special case where x_0 is known:\n      // ε_1 = ε_0² / | (2 * x_0) |\n      //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n      //     ≤ 2**(2*e-4) / (3 * 2**(e-1))\n      //     ≤ 2**(e-3) / 3\n      //     ≤ 2**(e-3-log2(3))\n      //     ≤ 2**(e-4.5)\n      //\n      // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n      // ε_{n+1} = ε_n² / | (2 * x_n) |\n      //         ≤ (2**(e-k))² / (2 * 2**(e-1))\n      //         ≤ 2**(2*e-2*k) / 2**e\n      //         ≤ 2**(e-2*k)\n      xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above\n      xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5\n      xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9\n      xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18\n      xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36\n      xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72\n\n      // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n      // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n      // sqrt(a) or sqrt(a) + 1.\n      return xn - SafeCast.toUint(xn > a / xn);\n    }\n  }\n\n  /**\n   * @dev Calculates sqrt(a), following the selected rounding direction.\n   */\n  function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n    unchecked {\n      uint256 result = sqrt(a);\n      return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n    }\n  }\n\n  /**\n   * @dev Return the log in base 2 of a positive value rounded towards zero.\n   * Returns 0 if given 0.\n   */\n  function log2(uint256 x) internal pure returns (uint256 r) {\n    // If value has upper 128 bits set, log2 result is at least 128\n    r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n    // If upper 64 bits of 128-bit half set, add 64 to result\n    r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n    // If upper 32 bits of 64-bit half set, add 32 to result\n    r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n    // If upper 16 bits of 32-bit half set, add 16 to result\n    r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n    // If upper 8 bits of 16-bit half set, add 8 to result\n    r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n    // If upper 4 bits of 8-bit half set, add 4 to result\n    r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n    // Shifts value right by the current result and use it as an index into this lookup table:\n    //\n    // | x (4 bits) |  index  | table[index] = MSB position |\n    // |------------|---------|-----------------------------|\n    // |    0000    |    0    |        table[0] = 0         |\n    // |    0001    |    1    |        table[1] = 0         |\n    // |    0010    |    2    |        table[2] = 1         |\n    // |    0011    |    3    |        table[3] = 1         |\n    // |    0100    |    4    |        table[4] = 2         |\n    // |    0101    |    5    |        table[5] = 2         |\n    // |    0110    |    6    |        table[6] = 2         |\n    // |    0111    |    7    |        table[7] = 2         |\n    // |    1000    |    8    |        table[8] = 3         |\n    // |    1001    |    9    |        table[9] = 3         |\n    // |    1010    |   10    |        table[10] = 3        |\n    // |    1011    |   11    |        table[11] = 3        |\n    // |    1100    |   12    |        table[12] = 3        |\n    // |    1101    |   13    |        table[13] = 3        |\n    // |    1110    |   14    |        table[14] = 3        |\n    // |    1111    |   15    |        table[15] = 3        |\n    //\n    // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n    assembly ('memory-safe') {\n      r := or(\n        r,\n        byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000)\n      )\n    }\n  }\n\n  /**\n   * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n   * Returns 0 if given 0.\n   */\n  function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n    unchecked {\n      uint256 result = log2(value);\n      return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n    }\n  }\n\n  /**\n   * @dev Return the log in base 10 of a positive value rounded towards zero.\n   * Returns 0 if given 0.\n   */\n  function log10(uint256 value) internal pure returns (uint256) {\n    uint256 result = 0;\n    unchecked {\n      if (value >= 10 ** 64) {\n        value /= 10 ** 64;\n        result += 64;\n      }\n      if (value >= 10 ** 32) {\n        value /= 10 ** 32;\n        result += 32;\n      }\n      if (value >= 10 ** 16) {\n        value /= 10 ** 16;\n        result += 16;\n      }\n      if (value >= 10 ** 8) {\n        value /= 10 ** 8;\n        result += 8;\n      }\n      if (value >= 10 ** 4) {\n        value /= 10 ** 4;\n        result += 4;\n      }\n      if (value >= 10 ** 2) {\n        value /= 10 ** 2;\n        result += 2;\n      }\n      if (value >= 10 ** 1) {\n        result += 1;\n      }\n    }\n    return result;\n  }\n\n  /**\n   * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n   * Returns 0 if given 0.\n   */\n  function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n    unchecked {\n      uint256 result = log10(value);\n      return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n    }\n  }\n\n  /**\n   * @dev Return the log in base 256 of a positive value rounded towards zero.\n   * Returns 0 if given 0.\n   *\n   * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n   */\n  function log256(uint256 x) internal pure returns (uint256 r) {\n    // If value has upper 128 bits set, log2 result is at least 128\n    r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n    // If upper 64 bits of 128-bit half set, add 64 to result\n    r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n    // If upper 32 bits of 64-bit half set, add 32 to result\n    r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n    // If upper 16 bits of 32-bit half set, add 16 to result\n    r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n    // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n    return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n  }\n\n  /**\n   * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n   * Returns 0 if given 0.\n   */\n  function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n    unchecked {\n      uint256 result = log256(value);\n      return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n    }\n  }\n\n  /**\n   * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n   */\n  function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n    return uint8(rounding) % 2 == 1;\n  }\n\n  /**\n   * @dev Counts the number of leading zero bits in a uint256.\n   */\n  function clz(uint256 x) internal pure returns (uint256) {\n    return ternary(x == 0, 256, 255 - log2(x));\n  }\n}\n"},"src/dependencies/openzeppelin/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\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 value of tokens in existence.\n   */\n  function totalSupply() external view returns (uint256);\n\n  /**\n   * @dev Returns the value of tokens owned by `account`.\n   */\n  function balanceOf(address account) external view returns (uint256);\n\n  /**\n   * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n   * 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 value) external returns (bool);\n\n  /**\n   * @dev Moves a `value` amount of tokens from `from` to `to` using the\n   * allowance mechanism. `value` 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 value) external returns (bool);\n}\n"},"src/dependencies/openzeppelin/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from './IERC20.sol';\nimport {IERC165} from './IERC165.sol';\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n  /*\n   * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n   * 0xb0202a11 ===\n   *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n   *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n   *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n   *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n   *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n   *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n   */\n\n  /**\n   * @dev Moves a `value` amount of tokens from the caller's account to `to`\n   * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n   * @param to The address which you want to transfer to.\n   * @param value The amount of tokens to be transferred.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function transferAndCall(address to, uint256 value) external returns (bool);\n\n  /**\n   * @dev Moves a `value` amount of tokens from the caller's account to `to`\n   * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n   * @param to The address which you want to transfer to.\n   * @param value The amount of tokens to be transferred.\n   * @param data Additional data with no specified format, sent in call to `to`.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n  /**\n   * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n   * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n   * @param from The address which you want to send tokens from.\n   * @param to The address which you want to transfer to.\n   * @param value The amount of tokens to be transferred.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n  /**\n   * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n   * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n   * @param from The address which you want to send tokens from.\n   * @param to The address which you want to transfer to.\n   * @param value The amount of tokens to be transferred.\n   * @param data Additional data with no specified format, sent in call to `to`.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function transferFromAndCall(\n    address from,\n    address to,\n    uint256 value,\n    bytes calldata data\n  ) external returns (bool);\n\n  /**\n   * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n   * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n   * @param spender The address which will spend the funds.\n   * @param value The amount of tokens to be spent.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function approveAndCall(address spender, uint256 value) external returns (bool);\n\n  /**\n   * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n   * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n   * @param spender The address which will spend the funds.\n   * @param value The amount of tokens to be spent.\n   * @param data Additional data with no specified format, sent in call to `spender`.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function approveAndCall(\n    address spender,\n    uint256 value,\n    bytes calldata data\n  ) external returns (bool);\n}\n"},"src/hub/interfaces/IHubBase.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.0;\n\n/// @title IHubBase\n/// @author Aave Labs\n/// @notice Minimal interface for Hub.\ninterface IHubBase {\n  /// @notice Changes to premium owed accounting.\n  /// @dev sharesDelta The change in premium shares.\n  /// @dev offsetRayDelta The change in premium offset, expressed in asset units and scaled by RAY.\n  /// @dev restoredPremiumRay The restored premium, expressed in asset units and scaled by RAY.\n  struct PremiumDelta {\n    int256 sharesDelta;\n    int256 offsetRayDelta;\n    uint256 restoredPremiumRay;\n  }\n\n  /// @notice Emitted on the `add` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param shares The amount of shares added.\n  /// @param amount The amount of assets added.\n  event Add(uint256 indexed assetId, address indexed spoke, uint256 shares, uint256 amount);\n\n  /// @notice Emitted on the `remove` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param shares The amount of shares removed.\n  /// @param amount The amount of assets removed.\n  event Remove(uint256 indexed assetId, address indexed spoke, uint256 shares, uint256 amount);\n\n  /// @notice Emitted on the `draw` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param drawnShares The amount of drawn shares.\n  /// @param drawnAmount The amount of drawn assets.\n  event Draw(\n    uint256 indexed assetId,\n    address indexed spoke,\n    uint256 drawnShares,\n    uint256 drawnAmount\n  );\n\n  /// @notice Emitted on the `restore` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param drawnShares The amount of drawn shares.\n  /// @param premiumDelta The premium delta data struct.\n  /// @param drawnAmount The amount of drawn assets restored.\n  /// @param premiumAmount The amount of premium assets restored.\n  event Restore(\n    uint256 indexed assetId,\n    address indexed spoke,\n    uint256 drawnShares,\n    PremiumDelta premiumDelta,\n    uint256 drawnAmount,\n    uint256 premiumAmount\n  );\n\n  /// @notice Emitted on the `refreshPremium` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param premiumDelta The premium delta data struct.\n  event RefreshPremium(uint256 indexed assetId, address indexed spoke, PremiumDelta premiumDelta);\n\n  /// @notice Emitted on the `reportDeficit` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param drawnShares The amount of drawn shares reported as deficit.\n  /// @param premiumDelta The premium delta data struct.\n  /// @param deficitAmountRay The amount of deficit reported, expressed in asset units and scaled by RAY.\n  event ReportDeficit(\n    uint256 indexed assetId,\n    address indexed spoke,\n    uint256 drawnShares,\n    PremiumDelta premiumDelta,\n    uint256 deficitAmountRay\n  );\n\n  /// @notice Emitted on the `transferShares` action.\n  /// @param assetId The identifier of the asset.\n  /// @param sender The address of the sender.\n  /// @param receiver The address of the receiver.\n  /// @param shares The amount of shares transferred.\n  event TransferShares(\n    uint256 indexed assetId,\n    address indexed sender,\n    address indexed receiver,\n    uint256 shares\n  );\n\n  /// @notice Adds assets on behalf of a user.\n  /// @dev Only callable by active spokes.\n  /// @dev Underlying assets must be transferred to the Hub before invocation.\n  /// @dev Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount of asset liquidity to add.\n  /// @return The amount of shares added.\n  function add(uint256 assetId, uint256 amount) external returns (uint256);\n\n  /// @notice Removes assets on behalf of a user.\n  /// @dev Only callable by active spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount of asset liquidity to remove.\n  /// @param to The address to transfer the assets to.\n  /// @return The amount of shares removed.\n  function remove(uint256 assetId, uint256 amount, address to) external returns (uint256);\n\n  /// @notice Draws assets on behalf of a user.\n  /// @dev Only callable by active spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount of assets to draw.\n  /// @param to The address to transfer the underlying assets to.\n  /// @return The amount of drawn shares.\n  function draw(uint256 assetId, uint256 amount, address to) external returns (uint256);\n\n  /// @notice Restores assets on behalf of a user.\n  /// @dev Only callable by active spokes.\n  /// @dev Interest is always paid off first from premium, then from drawn.\n  /// @dev Underlying assets must be transferred to the Hub before invocation.\n  /// @dev Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.\n  /// @param assetId The identifier of the asset.\n  /// @param drawnAmount The drawn amount to restore.\n  /// @param premiumDelta The premium delta to apply which signals premium repayment.\n  /// @return The amount of drawn shares restored.\n  function restore(\n    uint256 assetId,\n    uint256 drawnAmount,\n    PremiumDelta calldata premiumDelta\n  ) external returns (uint256);\n\n  /// @notice Reports an owed amount by the caller Spoke as a deficit.\n  /// @dev Only callable by active spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param drawnAmount The drawn amount to report as deficit.\n  /// @param premiumDelta The premium delta to apply which signals premium deficit.\n  /// @return The amount of drawn shares reported as deficit.\n  /// @return The amount of deficit reported, expressed in asset units.\n  function reportDeficit(\n    uint256 assetId,\n    uint256 drawnAmount,\n    PremiumDelta calldata premiumDelta\n  ) external returns (uint256, uint256);\n\n  /// @notice Refreshes premium accounting.\n  /// @dev Only callable by active spokes.\n  /// @dev Asset and spoke premium should not decrease.\n  /// @param assetId The identifier of the asset.\n  /// @param premiumDelta The change in premium.\n  function refreshPremium(uint256 assetId, PremiumDelta calldata premiumDelta) external;\n\n  /// @notice Transfers an amount of added shares of the caller Spoke to the fee receiver Spoke.\n  /// @dev It can be used to execute one-time payments to the fee receiver Spoke (e.g., liquidation fees).\n  /// @dev Only callable by active spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of shares to pay to feeReceiver.\n  function payFeeShares(uint256 assetId, uint256 shares) external;\n\n  /// @notice Converts the specified amount of assets to shares upon an `add` action.\n  /// @dev Rounds down to the nearest shares amount.\n  /// @dev Defaults to a 1:1 exchange rate.\n  /// @param assetId The identifier of the asset.\n  /// @param assets The amount of assets to convert to shares amount.\n  /// @return The amount of shares converted from assets amount.\n  function previewAddByAssets(uint256 assetId, uint256 assets) external view returns (uint256);\n\n  /// @notice Converts the specified shares amount to assets amount added upon an `add` action.\n  /// @dev Rounds up to the nearest assets amount.\n  /// @dev Defaults to a 1:1 exchange rate.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of shares to convert to assets amount.\n  /// @return The amount of assets converted from shares amount.\n  function previewAddByShares(uint256 assetId, uint256 shares) external view returns (uint256);\n\n  /// @notice Converts the specified amount of assets to shares amount removed upon a `remove` action.\n  /// @dev Rounds up to the nearest shares amount.\n  /// @dev Defaults to a 1:1 exchange rate.\n  /// @param assetId The identifier of the asset.\n  /// @param assets The amount of assets to convert to shares amount.\n  /// @return The amount of shares converted from assets amount.\n  function previewRemoveByAssets(uint256 assetId, uint256 assets) external view returns (uint256);\n\n  /// @notice Converts the specified amount of shares to assets amount removed upon a `remove` action.\n  /// @dev Rounds down to the nearest assets amount.\n  /// @dev Defaults to a 1:1 exchange rate.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of shares to convert to assets amount.\n  /// @return The amount of assets converted from shares amount.\n  function previewRemoveByShares(uint256 assetId, uint256 shares) external view returns (uint256);\n\n  /// @notice Converts the specified amount of assets to shares amount drawn upon a `draw` action.\n  /// @dev Rounds up to the nearest shares amount.\n  /// @param assetId The identifier of the asset.\n  /// @param assets The amount of assets to convert to shares amount.\n  /// @return The amount of shares converted from assets amount.\n  function previewDrawByAssets(uint256 assetId, uint256 assets) external view returns (uint256);\n\n  /// @notice Converts the specified amount of shares to assets amount drawn upon a `draw` action.\n  /// @dev Rounds down to the nearest assets amount.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of shares to convert to assets amount.\n  /// @return The amount of assets converted from shares amount.\n  function previewDrawByShares(uint256 assetId, uint256 shares) external view returns (uint256);\n\n  /// @notice Converts the specified amount of assets to shares amount restored upon a `restore` action.\n  /// @dev Rounds down to the nearest shares amount.\n  /// @param assetId The identifier of the asset.\n  /// @param assets The amount of assets to convert to shares amount.\n  /// @return The amount of shares converted from assets amount.\n  function previewRestoreByAssets(uint256 assetId, uint256 assets) external view returns (uint256);\n\n  /// @notice Converts the specified amount of shares to assets amount restored upon a `restore` action.\n  /// @dev Rounds up to the nearest assets amount.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of drawn shares to convert to assets amount.\n  /// @return The amount of assets converted from shares amount.\n  function previewRestoreByShares(uint256 assetId, uint256 shares) external view returns (uint256);\n\n  /// @notice Returns the asset identifier for the specified underlying asset.\n  /// @dev Reverts with `AssetNotListed` if the underlying is not listed.\n  /// @param underlying The address of the underlying asset.\n  function getAssetId(address underlying) external view returns (uint256);\n\n  /// @notice Returns the underlying address and decimals of the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The underlying address of the asset.\n  /// @return The decimals of the asset.\n  function getAssetUnderlyingAndDecimals(uint256 assetId) external view returns (address, uint8);\n\n  /// @notice Calculates the current drawn index for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The current drawn index of the asset.\n  function getAssetDrawnIndex(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the total amount of the specified asset added to the Hub.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of the asset added.\n  function getAddedAssets(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the total amount of shares of the specified asset added to the Hub.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of shares of the asset added.\n  function getAddedShares(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the amount of owed drawn and premium assets for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of owed drawn assets.\n  /// @return The amount of owed premium assets.\n  function getAssetOwed(uint256 assetId) external view returns (uint256, uint256);\n\n  /// @notice Returns the total amount of assets owed to the Hub.\n  /// @param assetId The identifier of the asset.\n  /// @return The total amount of the assets owed.\n  function getAssetTotalOwed(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the amount of owed premium with full precision for specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of premium owed, expressed in asset units and scaled by RAY.\n  function getAssetPremiumRay(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the amount of drawn shares of the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of drawn shares.\n  function getAssetDrawnShares(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the information regarding premium shares of the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of premium shares owed to the asset.\n  /// @return The premium offset of the asset, expressed in asset units and scaled by RAY.\n  function getAssetPremiumData(uint256 assetId) external view returns (uint256, int256);\n\n  /// @notice Returns the amount of available liquidity for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of available liquidity.\n  function getAssetLiquidity(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the amount of deficit with full precision of the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of deficit, expressed in asset units and scaled by RAY.\n  function getAssetDeficitRay(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the total amount of the specified assets added to the Hub by the specified spoke.\n  /// @dev If spoke is `asset.feeReceiver`, includes converted `unrealizedFeeShares` in return value.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of added assets.\n  function getSpokeAddedAssets(uint256 assetId, address spoke) external view returns (uint256);\n\n  /// @notice Returns the total amount of shares of the specified asset added to the Hub by the specified spoke.\n  /// @dev If spoke is `asset.feeReceiver`, includes `unrealizedFeeShares` in return value.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of added shares.\n  function getSpokeAddedShares(uint256 assetId, address spoke) external view returns (uint256);\n\n  /// @notice Returns the amount of the specified assets owed to the Hub by the specified spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of owed drawn assets.\n  /// @return The amount of owed premium assets.\n  function getSpokeOwed(uint256 assetId, address spoke) external view returns (uint256, uint256);\n\n  /// @notice Returns the total amount of the specified asset owed to the Hub by the specified spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The total amount of the asset owed.\n  function getSpokeTotalOwed(uint256 assetId, address spoke) external view returns (uint256);\n\n  /// @notice Returns the amount of owed premium with full precision for specified asset and spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of owed premium assets, expressed in asset units and scaled by RAY.\n  function getSpokePremiumRay(uint256 assetId, address spoke) external view returns (uint256);\n\n  /// @notice Returns the amount of drawn shares of the specified asset by the specified spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of drawn shares.\n  function getSpokeDrawnShares(uint256 assetId, address spoke) external view returns (uint256);\n\n  /// @notice Returns the information regarding premium shares of the specified asset for the specified spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of premium shares.\n  /// @return The premium offset, expressed in asset units and scaled by RAY.\n  function getSpokePremiumData(\n    uint256 assetId,\n    address spoke\n  ) external view returns (uint256, int256);\n\n  /// @notice Returns the amount of a given spoke's deficit with full precision for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of deficit, expressed in asset units and scaled by RAY.\n  function getSpokeDeficitRay(uint256 assetId, address spoke) external view returns (uint256);\n}\n"},"src/dependencies/openzeppelin/IAuthority.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (access/manager/IAuthority.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Standard interface for permissioning originally defined in Dappsys.\n */\ninterface IAuthority {\n  /**\n   * @dev Returns true if the caller can invoke on a target the function identified by a function selector.\n   */\n  function canCall(\n    address caller,\n    address target,\n    bytes4 selector\n  ) external view returns (bool allowed);\n}\n"},"src/dependencies/openzeppelin/Comparators.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Comparators.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides a set of functions to compare values.\n *\n * _Available since v5.1._\n */\nlibrary Comparators {\n  function lt(uint256 a, uint256 b) internal pure returns (bool) {\n    return a < b;\n  }\n\n  function gt(uint256 a, uint256 b) internal pure returns (bool) {\n    return a > b;\n  }\n}\n"},"src/dependencies/openzeppelin/SlotDerivation.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/SlotDerivation.sol)\n// This file was procedurally generated from scripts/generate/templates/SlotDerivation.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Library for computing storage (and transient storage) locations from namespaces and deriving slots\n * corresponding to standard patterns. The derivation method for array and mapping matches the storage layout used by\n * the solidity language / compiler.\n *\n * See https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays[Solidity docs for mappings and dynamic arrays.].\n *\n * Example usage:\n * ```solidity\n * contract Example {\n *     // Add the library methods\n *     using StorageSlot for bytes32;\n *     using SlotDerivation for *;\n *\n *     // Declare a namespace\n *     string private constant _NAMESPACE = \"<namespace>\"; // eg. OpenZeppelin.Slot\n *\n *     function setValueInNamespace(uint256 key, address newValue) internal {\n *         _NAMESPACE.erc7201Slot().deriveMapping(key).getAddressSlot().value = newValue;\n *     }\n *\n *     function getValueInNamespace(uint256 key) internal view returns (address) {\n *         return _NAMESPACE.erc7201Slot().deriveMapping(key).getAddressSlot().value;\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {StorageSlot}.\n *\n * NOTE: This library provides a way to manipulate storage locations in a non-standard way. Tooling for checking\n * upgrade safety will ignore the slots accessed through this library.\n *\n * _Available since v5.1._\n */\nlibrary SlotDerivation {\n  /**\n   * @dev Derive an ERC-7201 slot from a string (namespace).\n   */\n  function erc7201Slot(string memory namespace) internal pure returns (bytes32 slot) {\n    assembly ('memory-safe') {\n      mstore(0x00, sub(keccak256(add(namespace, 0x20), mload(namespace)), 1))\n      slot := and(keccak256(0x00, 0x20), not(0xff))\n    }\n  }\n\n  /**\n   * @dev Add an offset to a slot to get the n-th element of a structure or an array.\n   */\n  function offset(bytes32 slot, uint256 pos) internal pure returns (bytes32 result) {\n    unchecked {\n      return bytes32(uint256(slot) + pos);\n    }\n  }\n\n  /**\n   * @dev Derive the location of the first element in an array from the slot where the length is stored.\n   */\n  function deriveArray(bytes32 slot) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, slot)\n      result := keccak256(0x00, 0x20)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, address key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, and(key, shr(96, not(0))))\n      mstore(0x20, slot)\n      result := keccak256(0x00, 0x40)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, bool key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, iszero(iszero(key)))\n      mstore(0x20, slot)\n      result := keccak256(0x00, 0x40)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, bytes32 key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, key)\n      mstore(0x20, slot)\n      result := keccak256(0x00, 0x40)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, uint256 key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, key)\n      mstore(0x20, slot)\n      result := keccak256(0x00, 0x40)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, int256 key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, key)\n      mstore(0x20, slot)\n      result := keccak256(0x00, 0x40)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, string memory key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      let length := mload(key)\n      let begin := add(key, 0x20)\n      let end := add(begin, length)\n      let cache := mload(end)\n      mstore(end, slot)\n      result := keccak256(begin, add(length, 0x20))\n      mstore(end, cache)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, bytes memory key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      let length := mload(key)\n      let begin := add(key, 0x20)\n      let end := add(begin, length)\n      let cache := mload(end)\n      mstore(end, slot)\n      result := keccak256(begin, add(length, 0x20))\n      mstore(end, cache)\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 Int256Slot {\n    int256 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    assembly ('memory-safe') {\n      r.slot := slot\n    }\n  }\n\n  /**\n   * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n   */\n  function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n    assembly ('memory-safe') {\n      r.slot := slot\n    }\n  }\n\n  /**\n   * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n   */\n  function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n    assembly ('memory-safe') {\n      r.slot := slot\n    }\n  }\n\n  /**\n   * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n   */\n  function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n    assembly ('memory-safe') {\n      r.slot := slot\n    }\n  }\n\n  /**\n   * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n   */\n  function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n    assembly ('memory-safe') {\n      r.slot := slot\n    }\n  }\n\n  /**\n   * @dev Returns a `StringSlot` with member `value` located at `slot`.\n   */\n  function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n    assembly ('memory-safe') {\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    assembly ('memory-safe') {\n      r.slot := store.slot\n    }\n  }\n\n  /**\n   * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n   */\n  function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n    assembly ('memory-safe') {\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    assembly ('memory-safe') {\n      r.slot := store.slot\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/Panic.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n *      using Panic for uint256;\n *\n *      // Use any of the declared internal constants\n *      function foo() { Panic.GENERIC.panic(); }\n *\n *      // Alternatively\n *      function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n  /// @dev generic / unspecified error\n  uint256 internal constant GENERIC = 0x00;\n  /// @dev used by the assert() builtin\n  uint256 internal constant ASSERT = 0x01;\n  /// @dev arithmetic underflow or overflow\n  uint256 internal constant UNDER_OVERFLOW = 0x11;\n  /// @dev division or modulo by zero\n  uint256 internal constant DIVISION_BY_ZERO = 0x12;\n  /// @dev enum conversion error\n  uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n  /// @dev invalid encoding in storage\n  uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n  /// @dev empty array pop\n  uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n  /// @dev array out of bounds access\n  uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n  /// @dev resource error (too large allocation or too large array)\n  uint256 internal constant RESOURCE_ERROR = 0x41;\n  /// @dev calling invalid internal function\n  uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n  /// @dev Reverts with a panic code. Recommended to use with\n  /// the internal constants with predefined codes.\n  function panic(uint256 code) internal pure {\n    assembly ('memory-safe') {\n      mstore(0x00, 0x4e487b71)\n      mstore(0x20, code)\n      revert(0x1c, 0x24)\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n  /**\n   * @dev Returns true if this contract implements the interface defined by\n   * `interfaceId`. See the corresponding\n   * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n   * to learn more about how these ids are created.\n   *\n   * This function call must use less than 30 000 gas.\n   */\n  function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.28+commit.7893614a","compilerSettings":{"viaIR":true,"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"optimizer":{"runs":22300,"enabled":true},"evmVersion":"cancun","remappings":["erc4626-tests/=lib/erc4626-tests/","forge-std/=lib/forge-std/src/"]},"name":"HubInstance","fullyQualifiedName":"src/hub/instances/HubInstance.sol:HubInstance"},"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"name":"AccessManagedInvalidAuthority","type":"error","inputs":[{"name":"authority","type":"address","internalType":"address"}]},{"name":"AccessManagedRequiredDelay","type":"error","inputs":[{"name":"caller","type":"address","internalType":"address"},{"name":"delay","type":"uint32","internalType":"uint32"}]},{"name":"AccessManagedUnauthorized","type":"error","inputs":[{"name":"caller","type":"address","internalType":"address"}]},{"name":"AddCapExceeded","type":"error","inputs":[{"name":"addCap","type":"uint256","internalType":"uint256"}]},{"name":"AssetNotListed","type":"error","inputs":[]},{"name":"DrawCapExceeded","type":"error","inputs":[{"name":"drawCap","type":"uint256","internalType":"uint256"}]},{"name":"InsufficientLiquidity","type":"error","inputs":[{"name":"liquidity","type":"uint256","internalType":"uint256"}]},{"name":"InsufficientTransferred","type":"error","inputs":[{"name":"liquidityNeeded","type":"uint256","internalType":"uint256"}]},{"name":"InvalidAddress","type":"error","inputs":[]},{"name":"InvalidAmount","type":"error","inputs":[]},{"name":"InvalidAssetDecimals","type":"error","inputs":[]},{"name":"InvalidInitialization","type":"error","inputs":[]},{"name":"InvalidInterestRateStrategy","type":"error","inputs":[]},{"name":"InvalidLiquidityFee","type":"error","inputs":[]},{"name":"InvalidPremiumChange","type":"error","inputs":[]},{"name":"InvalidReinvestmentController","type":"error","inputs":[]},{"name":"InvalidShares","type":"error","inputs":[]},{"name":"NotInitializing","type":"error","inputs":[]},{"name":"OnlyReinvestmentController","type":"error","inputs":[]},{"name":"SafeCastOverflowedIntDowncast","type":"error","inputs":[{"name":"bits","type":"uint8","internalType":"uint8"},{"name":"value","type":"int256","internalType":"int256"}]},{"name":"SafeCastOverflowedIntToUint","type":"error","inputs":[{"name":"value","type":"int256","internalType":"int256"}]},{"name":"SafeCastOverflowedUintDowncast","type":"error","inputs":[{"name":"bits","type":"uint8","internalType":"uint8"},{"name":"value","type":"uint256","internalType":"uint256"}]},{"name":"SafeCastOverflowedUintToInt","type":"error","inputs":[{"name":"value","type":"uint256","internalType":"uint256"}]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"SpokeAlreadyListed","type":"error","inputs":[]},{"name":"SpokeHalted","type":"error","inputs":[]},{"name":"SpokeNotActive","type":"error","inputs":[]},{"name":"SpokeNotListed","type":"error","inputs":[]},{"name":"SurplusDrawnDeficitReported","type":"error","inputs":[{"name":"maxAllowedDeficit","type":"uint256","internalType":"uint256"}]},{"name":"SurplusDrawnRestored","type":"error","inputs":[{"name":"maxAllowedRestore","type":"uint256","internalType":"uint256"}]},{"name":"SurplusPremiumRayDeficitReported","type":"error","inputs":[{"name":"maxAllowedDeficitRay","type":"uint256","internalType":"uint256"}]},{"name":"SurplusPremiumRayRestored","type":"error","inputs":[{"name":"maxAllowedRestoreRay","type":"uint256","internalType":"uint256"}]},{"name":"UnderlyingAlreadyListed","type":"error","inputs":[]},{"name":"Add","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"AddAsset","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"underlying","type":"address","indexed":true,"internalType":"address"},{"name":"decimals","type":"uint8","indexed":false,"internalType":"uint8"}],"anonymous":false},{"name":"AddSpoke","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"AuthorityUpdated","type":"event","inputs":[{"name":"authority","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Draw","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"drawnShares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"drawnAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"EliminateDeficit","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"callerSpoke","type":"address","indexed":true,"internalType":"address"},{"name":"coveredSpoke","type":"address","indexed":true,"internalType":"address"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"deficitAmountRay","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Initialized","type":"event","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"name":"MintFeeShares","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"feeReceiver","type":"address","indexed":true,"internalType":"address"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"assets","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Reclaim","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"reinvestmentController","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"RefreshPremium","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"premiumDelta","type":"tuple","indexed":false,"components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"}],"anonymous":false},{"name":"Remove","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"ReportDeficit","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"drawnShares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"premiumDelta","type":"tuple","indexed":false,"components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"},{"name":"deficitAmountRay","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Restore","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"drawnShares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"premiumDelta","type":"tuple","indexed":false,"components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"},{"name":"drawnAmount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"premiumAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Sweep","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"reinvestmentController","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"TransferShares","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"sender","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"UpdateAsset","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"drawnIndex","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"drawnRate","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"accruedFees","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"UpdateAssetConfig","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"config","type":"tuple","indexed":false,"components":[{"name":"feeReceiver","type":"address","internalType":"address"},{"name":"liquidityFee","type":"uint16","internalType":"uint16"},{"name":"irStrategy","type":"address","internalType":"address"},{"name":"reinvestmentController","type":"address","internalType":"address"}],"internalType":"struct IHub.AssetConfig"}],"anonymous":false},{"name":"UpdateSpokeConfig","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"config","type":"tuple","indexed":false,"components":[{"name":"addCap","type":"uint40","internalType":"uint40"},{"name":"drawCap","type":"uint40","internalType":"uint40"},{"name":"riskPremiumThreshold","type":"uint24","internalType":"uint24"},{"name":"active","type":"bool","internalType":"bool"},{"name":"halted","type":"bool","internalType":"bool"}],"internalType":"struct IHub.SpokeConfig"}],"anonymous":false},{"name":"HUB_REVISION","type":"function","inputs":[],"outputs":[{"name":"","type":"uint64","internalType":"uint64"}],"stateMutability":"view"},{"name":"MAX_ALLOWED_SPOKE_CAP","type":"function","inputs":[],"outputs":[{"name":"","type":"uint40","internalType":"uint40"}],"stateMutability":"view"},{"name":"MAX_ALLOWED_UNDERLYING_DECIMALS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"MAX_RISK_PREMIUM_THRESHOLD","type":"function","inputs":[],"outputs":[{"name":"","type":"uint24","internalType":"uint24"}],"stateMutability":"view"},{"name":"MIN_ALLOWED_UNDERLYING_DECIMALS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"add","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"addAsset","type":"function","inputs":[{"name":"underlying","type":"address","internalType":"address"},{"name":"decimals","type":"uint8","internalType":"uint8"},{"name":"feeReceiver","type":"address","internalType":"address"},{"name":"irStrategy","type":"address","internalType":"address"},{"name":"irData","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"addSpoke","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"},{"name":"config","type":"tuple","components":[{"name":"addCap","type":"uint40","internalType":"uint40"},{"name":"drawCap","type":"uint40","internalType":"uint40"},{"name":"riskPremiumThreshold","type":"uint24","internalType":"uint24"},{"name":"active","type":"bool","internalType":"bool"},{"name":"halted","type":"bool","internalType":"bool"}],"internalType":"struct IHub.SpokeConfig"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"authority","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"draw","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"to","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"eliminateDeficit","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"getAddedAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAddedShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAsset","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"liquidity","type":"uint120","internalType":"uint120"},{"name":"realizedFees","type":"uint120","internalType":"uint120"},{"name":"decimals","type":"uint8","internalType":"uint8"},{"name":"addedShares","type":"uint120","internalType":"uint120"},{"name":"swept","type":"uint120","internalType":"uint120"},{"name":"premiumOffsetRay","type":"int200","internalType":"int200"},{"name":"drawnShares","type":"uint120","internalType":"uint120"},{"name":"premiumShares","type":"uint120","internalType":"uint120"},{"name":"liquidityFee","type":"uint16","internalType":"uint16"},{"name":"drawnIndex","type":"uint120","internalType":"uint120"},{"name":"drawnRate","type":"uint96","internalType":"uint96"},{"name":"lastUpdateTimestamp","type":"uint40","internalType":"uint40"},{"name":"underlying","type":"address","internalType":"address"},{"name":"irStrategy","type":"address","internalType":"address"},{"name":"reinvestmentController","type":"address","internalType":"address"},{"name":"feeReceiver","type":"address","internalType":"address"},{"name":"deficitRay","type":"uint200","internalType":"uint200"}],"internalType":"struct IHub.Asset"}],"stateMutability":"view"},{"name":"getAssetAccruedFees","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetConfig","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"feeReceiver","type":"address","internalType":"address"},{"name":"liquidityFee","type":"uint16","internalType":"uint16"},{"name":"irStrategy","type":"address","internalType":"address"},{"name":"reinvestmentController","type":"address","internalType":"address"}],"internalType":"struct IHub.AssetConfig"}],"stateMutability":"view"},{"name":"getAssetCount","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetDeficitRay","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetDrawnIndex","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetDrawnRate","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetDrawnShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetId","type":"function","inputs":[{"name":"underlying","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetLiquidity","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetOwed","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetPremiumData","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"int256","internalType":"int256"}],"stateMutability":"view"},{"name":"getAssetPremiumRay","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetSwept","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetTotalOwed","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetUnderlyingAndDecimals","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"getSpoke","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"drawnShares","type":"uint120","internalType":"uint120"},{"name":"premiumShares","type":"uint120","internalType":"uint120"},{"name":"premiumOffsetRay","type":"int200","internalType":"int200"},{"name":"addedShares","type":"uint120","internalType":"uint120"},{"name":"addCap","type":"uint40","internalType":"uint40"},{"name":"drawCap","type":"uint40","internalType":"uint40"},{"name":"riskPremiumThreshold","type":"uint24","internalType":"uint24"},{"name":"active","type":"bool","internalType":"bool"},{"name":"halted","type":"bool","internalType":"bool"},{"name":"deficitRay","type":"uint200","internalType":"uint200"}],"internalType":"struct IHub.SpokeData"}],"stateMutability":"view"},{"name":"getSpokeAddedAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeAddedShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeAddress","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"getSpokeConfig","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"addCap","type":"uint40","internalType":"uint40"},{"name":"drawCap","type":"uint40","internalType":"uint40"},{"name":"riskPremiumThreshold","type":"uint24","internalType":"uint24"},{"name":"active","type":"bool","internalType":"bool"},{"name":"halted","type":"bool","internalType":"bool"}],"internalType":"struct IHub.SpokeConfig"}],"stateMutability":"view"},{"name":"getSpokeCount","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeDeficitRay","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeDrawnShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeOwed","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokePremiumData","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"int256","internalType":"int256"}],"stateMutability":"view"},{"name":"getSpokePremiumRay","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeTotalOwed","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"initialize","type":"function","inputs":[{"name":"authority","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"isConsumingScheduledOp","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"view"},{"name":"isSpokeListed","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"isUnderlyingListed","type":"function","inputs":[{"name":"underlying","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mintFeeShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"payFeeShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"previewAddByAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"assets","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewAddByShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewDrawByAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"assets","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewDrawByShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewRemoveByAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"assets","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewRemoveByShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewRestoreByAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"assets","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewRestoreByShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"reclaim","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"refreshPremium","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"premiumDelta","type":"tuple","components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"remove","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"to","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"reportDeficit","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"drawnAmount","type":"uint256","internalType":"uint256"},{"name":"premiumDelta","type":"tuple","components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"restore","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"drawnAmount","type":"uint256","internalType":"uint256"},{"name":"premiumDelta","type":"tuple","components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"setAuthority","type":"function","inputs":[{"name":"newAuthority","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setInterestRateData","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"irData","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"sweep","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"transferShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"},{"name":"toSpoke","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"updateAssetConfig","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"config","type":"tuple","components":[{"name":"feeReceiver","type":"address","internalType":"address"},{"name":"liquidityFee","type":"uint16","internalType":"uint16"},{"name":"irStrategy","type":"address","internalType":"address"},{"name":"reinvestmentController","type":"address","internalType":"address"}],"internalType":"struct IHub.AssetConfig"},{"name":"irData","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"updateSpokeConfig","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"},{"name":"config","type":"tuple","components":[{"name":"addCap","type":"uint40","internalType":"uint40"},{"name":"drawCap","type":"uint40","internalType":"uint40"},{"name":"riskPremiumThreshold","type":"uint24","internalType":"uint24"},{"name":"active","type":"bool","internalType":"bool"},{"name":"halted","type":"bool","internalType":"bool"}],"internalType":"struct IHub.SpokeConfig"}],"outputs":[],"stateMutability":"nonpayable"}],"metadata":{"compiler":{"version":"0.8.28+commit.7893614a"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"authority","type":"address"}],"name":"AccessManagedInvalidAuthority","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"uint32","name":"delay","type":"uint32"}],"name":"AccessManagedRequiredDelay","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"AccessManagedUnauthorized","type":"error"},{"inputs":[{"internalType":"uint256","name":"addCap","type":"uint256"}],"name":"AddCapExceeded","type":"error"},{"inputs":[],"name":"AssetNotListed","type":"error"},{"inputs":[{"internalType":"uint256","name":"drawCap","type":"uint256"}],"name":"DrawCapExceeded","type":"error"},{"inputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"InsufficientLiquidity","type":"error"},{"inputs":[{"internalType":"uint256","name":"liquidityNeeded","type":"uint256"}],"name":"InsufficientTransferred","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidAssetDecimals","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"InvalidInterestRateStrategy","type":"error"},{"inputs":[],"name":"InvalidLiquidityFee","type":"error"},{"inputs":[],"name":"InvalidPremiumChange","type":"error"},{"inputs":[],"name":"InvalidReinvestmentController","type":"error"},{"inputs":[],"name":"InvalidShares","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"OnlyReinvestmentController","type":"error"},{"inputs":[{"internalType":"uint8","name":"bits","type":"uint8"},{"internalType":"int256","name":"value","type":"int256"}],"name":"SafeCastOverflowedIntDowncast","type":"error"},{"inputs":[{"internalType":"int256","name":"value","type":"int256"}],"name":"SafeCastOverflowedIntToUint","type":"error"},{"inputs":[{"internalType":"uint8","name":"bits","type":"uint8"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"SafeCastOverflowedUintDowncast","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"SafeCastOverflowedUintToInt","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"SpokeAlreadyListed","type":"error"},{"inputs":[],"name":"SpokeHalted","type":"error"},{"inputs":[],"name":"SpokeNotActive","type":"error"},{"inputs":[],"name":"SpokeNotListed","type":"error"},{"inputs":[{"internalType":"uint256","name":"maxAllowedDeficit","type":"uint256"}],"name":"SurplusDrawnDeficitReported","type":"error"},{"inputs":[{"internalType":"uint256","name":"maxAllowedRestore","type":"uint256"}],"name":"SurplusDrawnRestored","type":"error"},{"inputs":[{"internalType":"uint256","name":"maxAllowedDeficitRay","type":"uint256"}],"name":"SurplusPremiumRayDeficitReported","type":"error"},{"inputs":[{"internalType":"uint256","name":"maxAllowedRestoreRay","type":"uint256"}],"name":"SurplusPremiumRayRestored","type":"error"},{"inputs":[],"name":"UnderlyingAlreadyListed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"spoke","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Add","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"underlying","type":"address"},{"indexed":false,"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"AddAsset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"spoke","type":"address"}],"name":"AddSpoke","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"authority","type":"address"}],"name":"AuthorityUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"spoke","type":"address"},{"indexed":false,"internalType":"uint256","name":"drawnShares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"drawnAmount","type":"uint256"}],"name":"Draw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"callerSpoke","type":"address"},{"indexed":true,"internalType":"address","name":"coveredSpoke","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deficitAmountRay","type":"uint256"}],"name":"EliminateDeficit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"feeReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"}],"name":"MintFeeShares","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"reinvestmentController","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Reclaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"spoke","type":"address"},{"components":[{"internalType":"int256","name":"sharesDelta","type":"int256"},{"internalType":"int256","name":"offsetRayDelta","type":"int256"},{"internalType":"uint256","name":"restoredPremiumRay","type":"uint256"}],"indexed":false,"internalType":"struct IHubBase.PremiumDelta","name":"premiumDelta","type":"tuple"}],"name":"RefreshPremium","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"spoke","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Remove","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"spoke","type":"address"},{"indexed":false,"internalType":"uint256","name":"drawnShares","type":"uint256"},{"components":[{"internalType":"int256","name":"sharesDelta","type":"int256"},{"internalType":"int256","name":"offsetRayDelta","type":"int256"},{"internalType":"uint256","name":"restoredPremiumRay","type":"uint256"}],"indexed":false,"internalType":"struct IHubBase.PremiumDelta","name":"premiumDelta","type":"tuple"},{"indexed":false,"internalType":"uint256","name":"deficitAmountRay","type":"uint256"}],"name":"ReportDeficit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"spoke","type":"address"},{"indexed":false,"internalType":"uint256","name":"drawnShares","type":"uint256"},{"components":[{"internalType":"int256","name":"sharesDelta","type":"int256"},{"internalType":"int256","name":"offsetRayDelta","type":"int256"},{"internalType":"uint256","name":"restoredPremiumRay","type":"uint256"}],"indexed":false,"internalType":"struct IHubBase.PremiumDelta","name":"premiumDelta","type":"tuple"},{"indexed":false,"internalType":"uint256","name":"drawnAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"premiumAmount","type":"uint256"}],"name":"Restore","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"reinvestmentController","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Sweep","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"TransferShares","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"drawnIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"drawnRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accruedFees","type":"uint256"}],"name":"UpdateAsset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"components":[{"internalType":"address","name":"feeReceiver","type":"address"},{"internalType":"uint16","name":"liquidityFee","type":"uint16"},{"internalType":"address","name":"irStrategy","type":"address"},{"internalType":"address","name":"reinvestmentController","type":"address"}],"indexed":false,"internalType":"struct IHub.AssetConfig","name":"config","type":"tuple"}],"name":"UpdateAssetConfig","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"spoke","type":"address"},{"components":[{"internalType":"uint40","name":"addCap","type":"uint40"},{"internalType":"uint40","name":"drawCap","type":"uint40"},{"internalType":"uint24","name":"riskPremiumThreshold","type":"uint24"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"halted","type":"bool"}],"indexed":false,"internalType":"struct IHub.SpokeConfig","name":"config","type":"tuple"}],"name":"UpdateSpokeConfig","type":"event"},{"inputs":[],"name":"HUB_REVISION","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOWED_SPOKE_CAP","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOWED_UNDERLYING_DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RISK_PREMIUM_THRESHOLD","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_ALLOWED_UNDERLYING_DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"add","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"feeReceiver","type":"address"},{"internalType":"address","name":"irStrategy","type":"address"},{"internalType":"bytes","name":"irData","type":"bytes"}],"name":"addAsset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"},{"components":[{"internalType":"uint40","name":"addCap","type":"uint40"},{"internalType":"uint40","name":"drawCap","type":"uint40"},{"internalType":"uint24","name":"riskPremiumThreshold","type":"uint24"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"halted","type":"bool"}],"internalType":"struct IHub.SpokeConfig","name":"config","type":"tuple"}],"name":"addSpoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"authority","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"draw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"eliminateDeficit","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAddedAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAddedShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAsset","outputs":[{"components":[{"internalType":"uint120","name":"liquidity","type":"uint120"},{"internalType":"uint120","name":"realizedFees","type":"uint120"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"uint120","name":"addedShares","type":"uint120"},{"internalType":"uint120","name":"swept","type":"uint120"},{"internalType":"int200","name":"premiumOffsetRay","type":"int200"},{"internalType":"uint120","name":"drawnShares","type":"uint120"},{"internalType":"uint120","name":"premiumShares","type":"uint120"},{"internalType":"uint16","name":"liquidityFee","type":"uint16"},{"internalType":"uint120","name":"drawnIndex","type":"uint120"},{"internalType":"uint96","name":"drawnRate","type":"uint96"},{"internalType":"uint40","name":"lastUpdateTimestamp","type":"uint40"},{"internalType":"address","name":"underlying","type":"address"},{"internalType":"address","name":"irStrategy","type":"address"},{"internalType":"address","name":"reinvestmentController","type":"address"},{"internalType":"address","name":"feeReceiver","type":"address"},{"internalType":"uint200","name":"deficitRay","type":"uint200"}],"internalType":"struct IHub.Asset","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetAccruedFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetConfig","outputs":[{"components":[{"internalType":"address","name":"feeReceiver","type":"address"},{"internalType":"uint16","name":"liquidityFee","type":"uint16"},{"internalType":"address","name":"irStrategy","type":"address"},{"internalType":"address","name":"reinvestmentController","type":"address"}],"internalType":"struct IHub.AssetConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAssetCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetDeficitRay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetDrawnIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetDrawnRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetDrawnShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"underlying","type":"address"}],"name":"getAssetId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetOwed","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetPremiumData","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetPremiumRay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetSwept","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetTotalOwed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getAssetUnderlyingAndDecimals","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"getSpoke","outputs":[{"components":[{"internalType":"uint120","name":"drawnShares","type":"uint120"},{"internalType":"uint120","name":"premiumShares","type":"uint120"},{"internalType":"int200","name":"premiumOffsetRay","type":"int200"},{"internalType":"uint120","name":"addedShares","type":"uint120"},{"internalType":"uint40","name":"addCap","type":"uint40"},{"internalType":"uint40","name":"drawCap","type":"uint40"},{"internalType":"uint24","name":"riskPremiumThreshold","type":"uint24"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"halted","type":"bool"},{"internalType":"uint200","name":"deficitRay","type":"uint200"}],"internalType":"struct IHub.SpokeData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"getSpokeAddedAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"getSpokeAddedShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getSpokeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"getSpokeConfig","outputs":[{"components":[{"internalType":"uint40","name":"addCap","type":"uint40"},{"internalType":"uint40","name":"drawCap","type":"uint40"},{"internalType":"uint24","name":"riskPremiumThreshold","type":"uint24"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"halted","type":"bool"}],"internalType":"struct IHub.SpokeConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"getSpokeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"getSpokeDeficitRay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"getSpokeDrawnShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"getSpokeOwed","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"getSpokePremiumData","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"getSpokePremiumRay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"getSpokeTotalOwed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"authority","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isConsumingScheduledOp","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"}],"name":"isSpokeListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"underlying","type":"address"}],"name":"isUnderlyingListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"mintFeeShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"payFeeShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewAddByAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewAddByShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewDrawByAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewDrawByShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewRemoveByAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRemoveByShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewRestoreByAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRestoreByShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reclaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"components":[{"internalType":"int256","name":"sharesDelta","type":"int256"},{"internalType":"int256","name":"offsetRayDelta","type":"int256"},{"internalType":"uint256","name":"restoredPremiumRay","type":"uint256"}],"internalType":"struct IHubBase.PremiumDelta","name":"premiumDelta","type":"tuple"}],"name":"refreshPremium","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"remove","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"drawnAmount","type":"uint256"},{"components":[{"internalType":"int256","name":"sharesDelta","type":"int256"},{"internalType":"int256","name":"offsetRayDelta","type":"int256"},{"internalType":"uint256","name":"restoredPremiumRay","type":"uint256"}],"internalType":"struct IHubBase.PremiumDelta","name":"premiumDelta","type":"tuple"}],"name":"reportDeficit","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"drawnAmount","type":"uint256"},{"components":[{"internalType":"int256","name":"sharesDelta","type":"int256"},{"internalType":"int256","name":"offsetRayDelta","type":"int256"},{"internalType":"uint256","name":"restoredPremiumRay","type":"uint256"}],"internalType":"struct IHubBase.PremiumDelta","name":"premiumDelta","type":"tuple"}],"name":"restore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAuthority","type":"address"}],"name":"setAuthority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"bytes","name":"irData","type":"bytes"}],"name":"setInterestRateData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"toSpoke","type":"address"}],"name":"transferShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"components":[{"internalType":"address","name":"feeReceiver","type":"address"},{"internalType":"uint16","name":"liquidityFee","type":"uint16"},{"internalType":"address","name":"irStrategy","type":"address"},{"internalType":"address","name":"reinvestmentController","type":"address"}],"internalType":"struct IHub.AssetConfig","name":"config","type":"tuple"},{"internalType":"bytes","name":"irData","type":"bytes"}],"name":"updateAssetConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"spoke","type":"address"},{"components":[{"internalType":"uint40","name":"addCap","type":"uint40"},{"internalType":"uint40","name":"drawCap","type":"uint40"},{"internalType":"uint24","name":"riskPremiumThreshold","type":"uint24"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"halted","type":"bool"}],"internalType":"struct IHub.SpokeConfig","name":"config","type":"tuple"}],"name":"updateSpokeConfig","outputs":[],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"author":"Aave Labs","errors":{"AddCapExceeded(uint256)":[{"params":{"addCap":"The current `addCap` of the asset, expressed in whole assets (not scaled by decimals)."}}],"DrawCapExceeded(uint256)":[{"params":{"drawCap":"The current `drawCap` of the asset, expressed in whole assets (not scaled by decimals)."}}],"InsufficientLiquidity(uint256)":[{"params":{"liquidity":"The current available liquidity."}}],"InsufficientTransferred(uint256)":[{"params":{"liquidityNeeded":"The amount of additional liquidity needed."}}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"InvalidInterestRateStrategy()":[{"details":"The `irData` must be empty if the interest rate strategy is not updated."}],"NotInitializing()":[{"details":"The contract is not initializing."}],"SafeCastOverflowedIntDowncast(uint8,int256)":[{"details":"Value doesn't fit in an int of `bits` size."}],"SafeCastOverflowedIntToUint(int256)":[{"details":"An int value doesn't fit in an uint of `bits` size."}],"SafeCastOverflowedUintDowncast(uint8,uint256)":[{"details":"Value doesn't fit in an uint of `bits` size."}],"SafeCastOverflowedUintToInt(uint256)":[{"details":"An uint value doesn't fit in an int of `bits` size."}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}],"SurplusDrawnDeficitReported(uint256)":[{"params":{"maxAllowedDeficit":"The maximum allowed drawn to report as deficit."}}],"SurplusDrawnRestored(uint256)":[{"params":{"maxAllowedRestore":"The maximum allowed drawn amount to restore."}}],"SurplusPremiumRayDeficitReported(uint256)":[{"params":{"maxAllowedDeficitRay":"The maximum allowed premium to report as deficit, expressed in asset units and scaled by RAY."}}],"SurplusPremiumRayRestored(uint256)":[{"params":{"maxAllowedRestoreRay":"The maximum allowed premium amount to restore, expressed in asset units and scaled by RAY."}}]},"events":{"Add(uint256,address,uint256,uint256)":{"params":{"amount":"The amount of assets added.","assetId":"The identifier of the asset.","shares":"The amount of shares added.","spoke":"The address of the Spoke."}},"AddAsset(uint256,address,uint8)":{"params":{"assetId":"The identifier of the asset.","decimals":"The number of decimals of the asset.","underlying":"The address of the underlying asset."}},"AddSpoke(uint256,address)":{"params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."}},"AuthorityUpdated(address)":{"details":"Authority that manages this contract was updated."},"Draw(uint256,address,uint256,uint256)":{"params":{"assetId":"The identifier of the asset.","drawnAmount":"The amount of drawn assets.","drawnShares":"The amount of drawn shares.","spoke":"The address of the Spoke."}},"EliminateDeficit(uint256,address,address,uint256,uint256)":{"params":{"assetId":"The identifier of the asset.","callerSpoke":"The spoke that eliminated the deficit using its added shares.","coveredSpoke":"The spoke for which the deficit was eliminated.","deficitAmountRay":"The amount of deficit eliminated, expressed in asset units and scaled by RAY.","shares":"The amount of shares removed."}},"Initialized(uint64)":{"details":"Triggered when the contract has been initialized or reinitialized."},"MintFeeShares(uint256,address,uint256,uint256)":{"params":{"assetId":"The identifier of the asset.","assets":"The amount of assets used to mint the shares.","feeReceiver":"The address of the current fee receiver spoke.","shares":"The amount of shares minted."}},"Reclaim(uint256,address,uint256)":{"params":{"amount":"The amount reclaimed.","assetId":"The identifier of the asset.","reinvestmentController":"The active asset controller."}},"RefreshPremium(uint256,address,(int256,int256,uint256))":{"params":{"assetId":"The identifier of the asset.","premiumDelta":"The premium delta data struct.","spoke":"The address of the Spoke."}},"Remove(uint256,address,uint256,uint256)":{"params":{"amount":"The amount of assets removed.","assetId":"The identifier of the asset.","shares":"The amount of shares removed.","spoke":"The address of the Spoke."}},"ReportDeficit(uint256,address,uint256,(int256,int256,uint256),uint256)":{"params":{"assetId":"The identifier of the asset.","deficitAmountRay":"The amount of deficit reported, expressed in asset units and scaled by RAY.","drawnShares":"The amount of drawn shares reported as deficit.","premiumDelta":"The premium delta data struct.","spoke":"The address of the Spoke."}},"Restore(uint256,address,uint256,(int256,int256,uint256),uint256,uint256)":{"params":{"assetId":"The identifier of the asset.","drawnAmount":"The amount of drawn assets restored.","drawnShares":"The amount of drawn shares.","premiumAmount":"The amount of premium assets restored.","premiumDelta":"The premium delta data struct.","spoke":"The address of the Spoke."}},"Sweep(uint256,address,uint256)":{"params":{"amount":"The amount invested.","assetId":"The identifier of the asset.","reinvestmentController":"The active asset controller."}},"TransferShares(uint256,address,address,uint256)":{"params":{"assetId":"The identifier of the asset.","receiver":"The address of the receiver.","sender":"The address of the sender.","shares":"The amount of shares transferred."}},"UpdateAsset(uint256,uint256,uint256,uint256)":{"params":{"accruedFees":"The accrued fees of the asset since the last mint.","assetId":"The identifier of the asset.","drawnIndex":"The new drawn index of the asset.","drawnRate":"The new drawn rate of the asset."}},"UpdateAssetConfig(uint256,(address,uint16,address,address))":{"params":{"assetId":"The identifier of the asset.","config":"The new asset configuration struct."}},"UpdateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"params":{"assetId":"The identifier of the asset.","config":"The new spoke configuration struct.","spoke":"The address of the Spoke."}}},"kind":"dev","methods":{"add(uint256,uint256)":{"details":"Only callable by active spokes.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.","params":{"amount":"The amount of asset liquidity to add.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of shares added."}},"addAsset(address,uint8,address,address,bytes)":{"details":"The same underlying asset address cannot be added as an asset multiple times.The fee receiver is added as a new spoke with maximum add cap and zero draw cap.","params":{"decimals":"The number of decimals of `underlying`.","feeReceiver":"The address of the fee receiver spoke.","irData":"The interest rate data to apply to the given asset encoded in bytes.","irStrategy":"The address of the interest rate strategy contract.","underlying":"The address of the underlying asset."},"returns":{"_0":"The unique identifier of the added asset."}},"addSpoke(uint256,address,(uint40,uint40,uint24,bool,bool))":{"details":"Reverts with `SpokeAlreadyListed` if spoke is already listed.","params":{"assetId":"The identifier of the asset.","params":"The configuration parameters for the Spoke.","spoke":"The address of the Spoke to add."}},"authority()":{"details":"Returns the current authority."},"constructor":{"details":"Constructor."},"draw(uint256,uint256,address)":{"details":"Only callable by active spokes.","params":{"amount":"The amount of assets to draw.","assetId":"The identifier of the asset.","to":"The address to transfer the underlying assets to."},"returns":{"_0":"The amount of drawn shares."}},"eliminateDeficit(uint256,uint256,address)":{"details":"Only callable by active and authorized spokes.","params":{"amount":"The amount of deficit to eliminate.","assetId":"The identifier of the asset.","spoke":"The spoke for which the deficit is eliminated."},"returns":{"_0":"The amount of added shares removed.","_1":"The amount of deficit eliminated, expressed in asset units."}},"getAddedAssets(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of the asset added."}},"getAddedShares(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of shares of the asset added."}},"getAsset(uint256)":{"details":"`drawnIndex`, `drawnRate` and `lastUpdateTimestamp` can be outdated due to passage of time.","params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The asset struct."}},"getAssetAccruedFees(uint256)":{"details":"Accrued fees are excluded from total added assets.","params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of accrued fees."}},"getAssetConfig(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The asset configuration struct."}},"getAssetDeficitRay(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of deficit, expressed in asset units and scaled by RAY."}},"getAssetDrawnIndex(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The current drawn index of the asset."}},"getAssetDrawnRate(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The current drawn rate of the asset."}},"getAssetDrawnShares(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of drawn shares."}},"getAssetId(address)":{"details":"Reverts with `AssetNotListed` if the underlying is not listed.","params":{"underlying":"The address of the underlying asset."}},"getAssetLiquidity(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of available liquidity."}},"getAssetOwed(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of owed drawn assets.","_1":"The amount of owed premium assets."}},"getAssetPremiumData(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of premium shares owed to the asset.","_1":"The premium offset of the asset, expressed in asset units and scaled by RAY."}},"getAssetPremiumRay(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of premium owed, expressed in asset units and scaled by RAY."}},"getAssetSwept(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of liquidity swept."}},"getAssetTotalOwed(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The total amount of the assets owed."}},"getAssetUnderlyingAndDecimals(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The underlying address of the asset.","_1":"The decimals of the asset."}},"getSpoke(uint256,address)":{"params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"The spoke data struct."}},"getSpokeAddedAssets(uint256,address)":{"details":"If spoke is `asset.feeReceiver`, includes converted `unrealizedFeeShares` in return value.","params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"The amount of added assets."}},"getSpokeAddedShares(uint256,address)":{"details":"If spoke is `asset.feeReceiver`, includes `unrealizedFeeShares` in return value.","params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"The amount of added shares."}},"getSpokeAddress(uint256,uint256)":{"params":{"assetId":"The identifier of the asset.","index":"The index of the Spoke."},"returns":{"_0":"The address of the Spoke."}},"getSpokeConfig(uint256,address)":{"params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"The spoke configuration struct."}},"getSpokeCount(uint256)":{"params":{"assetId":"The identifier of the asset."}},"getSpokeDeficitRay(uint256,address)":{"params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"The amount of deficit, expressed in asset units and scaled by RAY."}},"getSpokeDrawnShares(uint256,address)":{"params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"The amount of drawn shares."}},"getSpokeOwed(uint256,address)":{"params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"The amount of owed drawn assets.","_1":"The amount of owed premium assets."}},"getSpokePremiumData(uint256,address)":{"params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"The amount of premium shares.","_1":"The premium offset, expressed in asset units and scaled by RAY."}},"getSpokePremiumRay(uint256,address)":{"params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"The amount of owed premium assets, expressed in asset units and scaled by RAY."}},"getSpokeTotalOwed(uint256,address)":{"params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"The total amount of the asset owed."}},"initialize(address)":{"details":"The authority contract must implement the `AccessManaged` interface for access control.","params":{"authority":"The address of the authority contract which manages permissions."}},"isConsumingScheduledOp()":{"details":"Returns true only in the context of a delayed restricted call, at the moment that the scheduled operation is being consumed. Prevents denial of service for delayed restricted calls in the case that the contract performs attacker controlled calls."},"isSpokeListed(uint256,address)":{"params":{"assetId":"The identifier of the asset.","spoke":"The address of the Spoke."},"returns":{"_0":"True if the Spoke is listed."}},"isUnderlyingListed(address)":{"params":{"underlying":"The address of the underlying asset."},"returns":{"_0":"True if the underlying asset is listed."}},"mintFeeShares(uint256)":{"details":"No op when fees are worth less than one share.","params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of shares minted."}},"payFeeShares(uint256,uint256)":{"details":"It can be used to execute one-time payments to the fee receiver Spoke (e.g., liquidation fees).Only callable by active spokes.","params":{"assetId":"The identifier of the asset.","shares":"The amount of shares to pay to feeReceiver."}},"previewAddByAssets(uint256,uint256)":{"details":"Rounds down to the nearest shares amount.Defaults to a 1:1 exchange rate.","params":{"assetId":"The identifier of the asset.","assets":"The amount of assets to convert to shares amount."},"returns":{"_0":"The amount of shares converted from assets amount."}},"previewAddByShares(uint256,uint256)":{"details":"Rounds up to the nearest assets amount.Defaults to a 1:1 exchange rate.","params":{"assetId":"The identifier of the asset.","shares":"The amount of shares to convert to assets amount."},"returns":{"_0":"The amount of assets converted from shares amount."}},"previewDrawByAssets(uint256,uint256)":{"details":"Rounds up to the nearest shares amount.","params":{"assetId":"The identifier of the asset.","assets":"The amount of assets to convert to shares amount."},"returns":{"_0":"The amount of shares converted from assets amount."}},"previewDrawByShares(uint256,uint256)":{"details":"Rounds down to the nearest assets amount.","params":{"assetId":"The identifier of the asset.","shares":"The amount of shares to convert to assets amount."},"returns":{"_0":"The amount of assets converted from shares amount."}},"previewRemoveByAssets(uint256,uint256)":{"details":"Rounds up to the nearest shares amount.Defaults to a 1:1 exchange rate.","params":{"assetId":"The identifier of the asset.","assets":"The amount of assets to convert to shares amount."},"returns":{"_0":"The amount of shares converted from assets amount."}},"previewRemoveByShares(uint256,uint256)":{"details":"Rounds down to the nearest assets amount.Defaults to a 1:1 exchange rate.","params":{"assetId":"The identifier of the asset.","shares":"The amount of shares to convert to assets amount."},"returns":{"_0":"The amount of assets converted from shares amount."}},"previewRestoreByAssets(uint256,uint256)":{"details":"Rounds down to the nearest shares amount.","params":{"assetId":"The identifier of the asset.","assets":"The amount of assets to convert to shares amount."},"returns":{"_0":"The amount of shares converted from assets amount."}},"previewRestoreByShares(uint256,uint256)":{"details":"Rounds up to the nearest assets amount.","params":{"assetId":"The identifier of the asset.","shares":"The amount of drawn shares to convert to assets amount."},"returns":{"_0":"The amount of assets converted from shares amount."}},"reclaim(uint256,uint256)":{"details":"The controller can only reclaim up to swept amount. All accrued interest is distributed offchain.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.","params":{"amount":"The amount to reclaim.","assetId":"The identifier of the asset."}},"refreshPremium(uint256,(int256,int256,uint256))":{"details":"Only callable by active spokes.Asset and spoke premium should not decrease.","params":{"assetId":"The identifier of the asset.","premiumDelta":"The change in premium."}},"remove(uint256,uint256,address)":{"details":"Only callable by active spokes.","params":{"amount":"The amount of asset liquidity to remove.","assetId":"The identifier of the asset.","to":"The address to transfer the assets to."},"returns":{"_0":"The amount of shares removed."}},"reportDeficit(uint256,uint256,(int256,int256,uint256))":{"details":"Only callable by active spokes.","params":{"assetId":"The identifier of the asset.","drawnAmount":"The drawn amount to report as deficit.","premiumDelta":"The premium delta to apply which signals premium deficit."},"returns":{"_0":"The amount of drawn shares reported as deficit.","_1":"The amount of deficit reported, expressed in asset units."}},"restore(uint256,uint256,(int256,int256,uint256))":{"details":"Only callable by active spokes.Interest is always paid off first from premium, then from drawn.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.","params":{"assetId":"The identifier of the asset.","drawnAmount":"The drawn amount to restore.","premiumDelta":"The premium delta to apply which signals premium repayment."},"returns":{"_0":"The amount of drawn shares restored."}},"setAuthority(address)":{"details":"Transfers control to a new authority. The caller must be the current authority."},"setInterestRateData(uint256,bytes)":{"params":{"assetId":"The identifier of the asset.","irData":"The interest rate data to apply to the given asset, encoded in bytes."}},"sweep(uint256,uint256)":{"details":"The controller handles the actual reinvestment of funds, redistribution of interest, and investment caps.","params":{"amount":"The amount to sweep.","assetId":"The identifier of the asset."}},"transferShares(uint256,uint256,address)":{"details":"Only callable by spokes.","params":{"assetId":"The identifier of the asset.","shares":"The amount of shares to move.","toSpoke":"The address of the recipient spoke."}},"updateAssetConfig(uint256,(address,uint16,address,address),bytes)":{"details":"If the fee receiver is updated, adds it as a new spoke with maximum add cap and zero draw cap, and sets old fee receiver caps to zero.If the fee receiver is updated, accrued fees are minted as shares before the update if their value exceeds one share.If the interest rate strategy is updated, it is configured with `irData`. Otherwise, `irData` must be empty.","params":{"assetId":"The identifier of the asset.","config":"The new configuration for the asset.","irData":"The interest rate data to apply to the given asset, encoded in bytes."}},"updateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"params":{"assetId":"The identifier of the asset.","config":"The new configuration for the Spoke.","spoke":"The address of the Spoke to update."}}},"title":"HubInstance","version":1},"userdoc":{"errors":{"AddCapExceeded(uint256)":[{"notice":"Thrown when the add cap is exceeded."}],"AssetNotListed()":[{"notice":"Thrown when an asset is not listed."}],"DrawCapExceeded(uint256)":[{"notice":"Thrown when the draw cap is exceeded."}],"InsufficientLiquidity(uint256)":[{"notice":"Thrown when the available liquidity is insufficient."}],"InsufficientTransferred(uint256)":[{"notice":"Thrown when the transferred liquidity is insufficient."}],"InvalidAddress()":[{"notice":"Thrown when an input address is invalid."}],"InvalidAmount()":[{"notice":"Thrown when the amount is invalid."}],"InvalidAssetDecimals()":[{"notice":"Thrown when the asset decimals exceed the maximum allowed decimals."}],"InvalidInterestRateStrategy()":[{"notice":"Thrown if the interest rate strategy or data are invalid when updating an asset configuration."}],"InvalidLiquidityFee()":[{"notice":"Thrown if the liquidity fee is invalid when updating an asset configuration."}],"InvalidPremiumChange()":[{"notice":"Thrown when the premium change is invalid."}],"InvalidReinvestmentController()":[{"notice":"Thrown when a new reinvestment controller is the zero address and the asset has existing swept liquidity."}],"InvalidShares()":[{"notice":"Thrown when the shares amount is invalid."}],"OnlyReinvestmentController()":[{"notice":"Thrown when an invalid reinvestment controller attempts to perform a `sweep` action."}],"SpokeAlreadyListed()":[{"notice":"Thrown when a spoke being added is already listed."}],"SpokeHalted()":[{"notice":"Thrown when a spoke is halted."}],"SpokeNotActive()":[{"notice":"Thrown when a spoke is not active."}],"SpokeNotListed()":[{"notice":"Thrown when a spoke being updated is not listed."}],"SurplusDrawnDeficitReported(uint256)":[{"notice":"Thrown when a surplus amount of drawn is reported as deficit."}],"SurplusDrawnRestored(uint256)":[{"notice":"Thrown when a surplus amount of drawn is restored."}],"SurplusPremiumRayDeficitReported(uint256)":[{"notice":"Thrown when a surplus amount of premium is reported as deficit."}],"SurplusPremiumRayRestored(uint256)":[{"notice":"Thrown when a surplus amount of premium is restored."}],"UnderlyingAlreadyListed()":[{"notice":"Thrown when an underlying asset is already listed."}]},"events":{"Add(uint256,address,uint256,uint256)":{"notice":"Emitted on the `add` action."},"AddAsset(uint256,address,uint8)":{"notice":"Emitted when an asset is added."},"AddSpoke(uint256,address)":{"notice":"Emitted when a spoke is added."},"Draw(uint256,address,uint256,uint256)":{"notice":"Emitted on the `draw` action."},"EliminateDeficit(uint256,address,address,uint256,uint256)":{"notice":"Emitted when a deficit is eliminated."},"MintFeeShares(uint256,address,uint256,uint256)":{"notice":"Emitted when fees are minted to the fee receiver spoke."},"Reclaim(uint256,address,uint256)":{"notice":"Emitted when liquidity is reclaimed (from swept liquidity) by the reinvestment controller."},"RefreshPremium(uint256,address,(int256,int256,uint256))":{"notice":"Emitted on the `refreshPremium` action."},"Remove(uint256,address,uint256,uint256)":{"notice":"Emitted on the `remove` action."},"ReportDeficit(uint256,address,uint256,(int256,int256,uint256),uint256)":{"notice":"Emitted on the `reportDeficit` action."},"Restore(uint256,address,uint256,(int256,int256,uint256),uint256,uint256)":{"notice":"Emitted on the `restore` action."},"Sweep(uint256,address,uint256)":{"notice":"Emitted when liquidity is invested by the reinvestment controller."},"TransferShares(uint256,address,address,uint256)":{"notice":"Emitted on the `transferShares` action."},"UpdateAsset(uint256,uint256,uint256,uint256)":{"notice":"Emitted when an asset is updated."},"UpdateAssetConfig(uint256,(address,uint16,address,address))":{"notice":"Emitted when an asset configuration is updated."},"UpdateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"notice":"Emitted when a spoke configuration is updated."}},"kind":"user","methods":{"MAX_ALLOWED_SPOKE_CAP()":{"notice":"Returns the maximum value for any spoke cap (add or draw)."},"MAX_ALLOWED_UNDERLYING_DECIMALS()":{"notice":"Returns the maximum allowed number of decimals for the underlying asset."},"MAX_RISK_PREMIUM_THRESHOLD()":{"notice":"Returns the maximum value for any spoke risk premium threshold."},"MIN_ALLOWED_UNDERLYING_DECIMALS()":{"notice":"Returns the minimum allowed number of decimals for the underlying asset."},"add(uint256,uint256)":{"notice":"Adds assets on behalf of a user."},"addAsset(address,uint8,address,address,bytes)":{"notice":"Adds a new asset to the Hub."},"addSpoke(uint256,address,(uint40,uint40,uint24,bool,bool))":{"notice":"Registers a new spoke for a specific asset in the Hub."},"draw(uint256,uint256,address)":{"notice":"Draws assets on behalf of a user."},"eliminateDeficit(uint256,uint256,address)":{"notice":"Eliminates deficit by removing added shares of caller spoke."},"getAddedAssets(uint256)":{"notice":"Returns the total amount of the specified asset added to the Hub."},"getAddedShares(uint256)":{"notice":"Returns the total amount of shares of the specified asset added to the Hub."},"getAsset(uint256)":{"notice":"Returns information regarding the specified asset."},"getAssetAccruedFees(uint256)":{"notice":"Returns the accrued fees for the asset, expressed in asset units."},"getAssetConfig(uint256)":{"notice":"Returns the asset configuration for the specified asset."},"getAssetCount()":{"notice":"Returns the number of listed assets."},"getAssetDeficitRay(uint256)":{"notice":"Returns the amount of deficit with full precision of the specified asset."},"getAssetDrawnIndex(uint256)":{"notice":"Calculates the current drawn index for the specified asset."},"getAssetDrawnRate(uint256)":{"notice":"Calculates the current drawn rate for the specified asset."},"getAssetDrawnShares(uint256)":{"notice":"Returns the amount of drawn shares of the specified asset."},"getAssetId(address)":{"notice":"Returns the asset identifier for the specified underlying asset."},"getAssetLiquidity(uint256)":{"notice":"Returns the amount of available liquidity for the specified asset."},"getAssetOwed(uint256)":{"notice":"Returns the amount of owed drawn and premium assets for the specified asset."},"getAssetPremiumData(uint256)":{"notice":"Returns the information regarding premium shares of the specified asset."},"getAssetPremiumRay(uint256)":{"notice":"Returns the amount of owed premium with full precision for specified asset."},"getAssetSwept(uint256)":{"notice":"Returns the amount of liquidity swept by the reinvestment controller for the specified asset."},"getAssetTotalOwed(uint256)":{"notice":"Returns the total amount of assets owed to the Hub."},"getAssetUnderlyingAndDecimals(uint256)":{"notice":"Returns the underlying address and decimals of the specified asset."},"getSpoke(uint256,address)":{"notice":"Returns the Spoke data struct."},"getSpokeAddedAssets(uint256,address)":{"notice":"Returns the total amount of the specified assets added to the Hub by the specified spoke."},"getSpokeAddedShares(uint256,address)":{"notice":"Returns the total amount of shares of the specified asset added to the Hub by the specified spoke."},"getSpokeAddress(uint256,uint256)":{"notice":"Returns the address of the Spoke for an asset at the given index."},"getSpokeConfig(uint256,address)":{"notice":"Returns the Spoke configuration struct."},"getSpokeCount(uint256)":{"notice":"Returns the number of spokes listed for the specified asset."},"getSpokeDeficitRay(uint256,address)":{"notice":"Returns the amount of a given spoke's deficit with full precision for the specified asset."},"getSpokeDrawnShares(uint256,address)":{"notice":"Returns the amount of drawn shares of the specified asset by the specified spoke."},"getSpokeOwed(uint256,address)":{"notice":"Returns the amount of the specified assets owed to the Hub by the specified spoke."},"getSpokePremiumData(uint256,address)":{"notice":"Returns the information regarding premium shares of the specified asset for the specified spoke."},"getSpokePremiumRay(uint256,address)":{"notice":"Returns the amount of owed premium with full precision for specified asset and spoke."},"getSpokeTotalOwed(uint256,address)":{"notice":"Returns the total amount of the specified asset owed to the Hub by the specified spoke."},"initialize(address)":{"notice":"Initializer."},"isSpokeListed(uint256,address)":{"notice":"Returns whether the Spoke is listed for the specified asset."},"isUnderlyingListed(address)":{"notice":"Returns whether the underlying is listed as an asset."},"mintFeeShares(uint256)":{"notice":"Mints shares to the fee receiver from accrued fees."},"payFeeShares(uint256,uint256)":{"notice":"Transfers an amount of added shares of the caller Spoke to the fee receiver Spoke."},"previewAddByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares upon an `add` action."},"previewAddByShares(uint256,uint256)":{"notice":"Converts the specified shares amount to assets amount added upon an `add` action."},"previewDrawByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares amount drawn upon a `draw` action."},"previewDrawByShares(uint256,uint256)":{"notice":"Converts the specified amount of shares to assets amount drawn upon a `draw` action."},"previewRemoveByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares amount removed upon a `remove` action."},"previewRemoveByShares(uint256,uint256)":{"notice":"Converts the specified amount of shares to assets amount removed upon a `remove` action."},"previewRestoreByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares amount restored upon a `restore` action."},"previewRestoreByShares(uint256,uint256)":{"notice":"Converts the specified amount of shares to assets amount restored upon a `restore` action."},"reclaim(uint256,uint256)":{"notice":"Reclaims an amount of liquidity of the corresponding asset from the configured reinvestment controller."},"refreshPremium(uint256,(int256,int256,uint256))":{"notice":"Refreshes premium accounting."},"remove(uint256,uint256,address)":{"notice":"Removes assets on behalf of a user."},"reportDeficit(uint256,uint256,(int256,int256,uint256))":{"notice":"Reports an owed amount by the caller Spoke as a deficit."},"restore(uint256,uint256,(int256,int256,uint256))":{"notice":"Restores assets on behalf of a user."},"setInterestRateData(uint256,bytes)":{"notice":"Updates the interest rate strategy for a specified asset."},"sweep(uint256,uint256)":{"notice":"Sweeps an amount of liquidity of the corresponding asset and sends it to the configured reinvestment controller."},"transferShares(uint256,uint256,address)":{"notice":"Allows a spoke to transfer its added shares of an asset to another spoke."},"updateAssetConfig(uint256,(address,uint16,address,address),bytes)":{"notice":"Updates the configuration of an asset."},"updateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"notice":"Updates the configuration of a spoke for a specific asset."}},"notice":"Implementation contract for the Hub.","version":1}},"settings":{"compilationTarget":{"src/hub/instances/HubInstance.sol":"HubInstance"},"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"none"},"optimizer":{"enabled":true,"runs":22300},"remappings":[":erc4626-tests/=lib/erc4626-tests/",":forge-std/=lib/forge-std/src/"],"viaIR":true},"sources":{"src/dependencies/openzeppelin-upgradeable/AccessManagedUpgradeable.sol":{"keccak256":"0x218ec980753d90a4a3a494a7038ce7d0eb557bc35f7c474a1519647fec1042fb","license":"MIT","urls":["bzz-raw://a138d868459593bd8df3825d77b763ff91cf71745cf881b7db34885b70f97b3d","dweb:/ipfs/QmaCuuXWi83y7xAnoj6c4jnzmS6XiwnS6zgXrADV6zZUgo"]},"src/dependencies/openzeppelin-upgradeable/ContextUpgradeable.sol":{"keccak256":"0x1f1dc9ec80170fa2c6024606f1da23698f0a7a7611d897d59fb175e7ffc9c27e","license":"MIT","urls":["bzz-raw://a5e2a139a512404e537655a2758e52ace14efa2c1654413c5e0978e3ecf3f5e4","dweb:/ipfs/QmNsuK7vXGqSTjZKezyhiTedU6EbcsLqdARmiGGU7xXP4Y"]},"src/dependencies/openzeppelin-upgradeable/Initializable.sol":{"keccak256":"0x5cbc1660ced95b6f1d3706eb6dce9aa3f9b9696bd4b37980118cf936cf95927a","license":"MIT","urls":["bzz-raw://8db8294cb06ff3b4bd8532bdeb45dd677248b979c702c898cba382e883a90062","dweb:/ipfs/QmWvq7Nk2rtTGAbdfPDAtDH7RAdRzePsJMTNkq8WU6xCDv"]},"src/dependencies/openzeppelin/Arrays.sol":{"keccak256":"0x048aa195371d780a9513eb31d2069dcbd1e215e3995acf81645e67c0ed2d04ef","license":"MIT","urls":["bzz-raw://b1113bab8cf5c09940d1e0062597e84e4d07adb693eafd6e607dd294cfd65210","dweb:/ipfs/QmantLhvDapqqn2R7STPiDDCXwtoPvVryRDxrthiWUhHfN"]},"src/dependencies/openzeppelin/AuthorityUtils.sol":{"keccak256":"0xab0d159df7b77876cc8506912fe5189ba3f1c28409eb8444185ea2f75f402397","license":"MIT","urls":["bzz-raw://9516b4d82833c81fcd8f69f9728b1d9ad0b0df3f3a2696249f10235b04891e09","dweb:/ipfs/QmdhSgonssLF7rNeTGD9Q3bZHkma3o6nTga3Y1wvy6fkXA"]},"src/dependencies/openzeppelin/Comparators.sol":{"keccak256":"0x405d597723b2b95dc72b49bc69d358389e5517628988ed552415e0533a9a0a0f","license":"MIT","urls":["bzz-raw://6e40373de226ad21fb753b2347237fc38da2619e657e3aca3605c479118633a6","dweb:/ipfs/QmNpcGdNVWNPTRmKqLzkPx6TimVqnYFBoJdhDfd24X3W6P"]},"src/dependencies/openzeppelin/EnumerableSet.sol":{"keccak256":"0xe18a318a64bac9a9d17f2c3b70f34232ea6f9a3b6ac7f38e607e83de1fc61ff6","license":"MIT","urls":["bzz-raw://fc36bafd05141f1b56e035ce5e8c5e25eb386274ff1b046154c713a96a3d550e","dweb:/ipfs/Qmdu36AmWh2B9m8EkMmrPYPFNQLew5GpABnm9Lbk6h1TmS"]},"src/dependencies/openzeppelin/IAccessManaged.sol":{"keccak256":"0xe74c9bbe7d4c8dd0ae9c46e5352063628d57475f164dd9c6bf4afa0a1cd55bee","license":"MIT","urls":["bzz-raw://fe78d3a6dd12650ce63780b9b437f6e0f38bdce1a22e89d1c973771dd19c1e54","dweb:/ipfs/QmPVzV3e6oScjHmML7fPZH27NfXeWwtHau47RmbEGZbfTk"]},"src/dependencies/openzeppelin/IAccessManager.sol":{"keccak256":"0x44bd53651ba4f80f635201b217d52788de9d1afd272170dd645efbdad01e3352","license":"MIT","urls":["bzz-raw://8da64e9fd4290c1f4416fa6ddd98df1071b927014d4b4b684875fcaaaae85612","dweb:/ipfs/Qmf1CTy8ycp77YVa5JkaHzN1k9QfL3erVNkVmkzFqBkSQX"]},"src/dependencies/openzeppelin/IAuthority.sol":{"keccak256":"0xd4169863322de1e1db8576fd4b81e452fc31a290f7340d595be57cbe65daafd0","license":"MIT","urls":["bzz-raw://a6dd771d92f2d93958ec7b706ee89969f1a57537d762c72ff094346d26797f4f","dweb:/ipfs/QmZvyeEF36de6fBCunJvA1K6TSfoZbivBWRjdBwAQ8D5ot"]},"src/dependencies/openzeppelin/IERC1363.sol":{"keccak256":"0x5ee92fd9cc0b4083aa8ec1ee6d4fca70f90580ac00b8e61013dbd32ab70e517c","license":"MIT","urls":["bzz-raw://bb156b7c8788c77b25214f1ac61b596d68e2da4ccfdd03a52cb4348995458472","dweb:/ipfs/Qmbs94VctN4S55YAHaBYsrwZsK6quqrTooJU7o2bbQyydk"]},"src/dependencies/openzeppelin/IERC165.sol":{"keccak256":"0x0980606918bfb0a7834ed5d8bf063ec4943d6385ac34e225de15787fb3bb3cff","license":"MIT","urls":["bzz-raw://03cef70995e256ef15aadd8b2ae9e3adc0fd7b16aad52bf16747e9c4420ab74c","dweb:/ipfs/QmV3hJkxDnMKHGaBMoRK54wLRRdvgPufLVPVVz624g3Tc9"]},"src/dependencies/openzeppelin/IERC20.sol":{"keccak256":"0x8a224041f1d047bd817a7b40464b396d53097902ee412ce7aa4f37e0016a0baa","license":"MIT","urls":["bzz-raw://27a58eb6e43022fcf214432f43c8680b120b179ea4e6dc852523ab406ec0dd63","dweb:/ipfs/QmYKJJzVpEPuAMA2vL5bzdzCjTzXcYwoxbw4Bo8deKevPR"]},"src/dependencies/openzeppelin/Math.sol":{"keccak256":"0x70fba311f1d66a06157f03195c0ceb48efebefcca4d62e8f00730f194280387f","license":"MIT","urls":["bzz-raw://978d696c0d00cff104fea84e7d28e2690a6c765208f1bec953ea5c0f161b3e98","dweb:/ipfs/QmV9jjMuyaeDfbqn6JvyPYfdcEjB52QJWTrjuXRVUwXwqW"]},"src/dependencies/openzeppelin/Panic.sol":{"keccak256":"0x22183a191d4d0cbbebac514b7d81d8da17dd6be63ebb76bb4b5c75963b44fa67","license":"MIT","urls":["bzz-raw://07a9e5ae397c81f8adcbceb16a5432290adc10254dc220ca6912a7a441497696","dweb:/ipfs/QmXgwkdJoq9DGrjU6gnE5r7Q5dWzm8xLXAZsoTnRZke3D6"]},"src/dependencies/openzeppelin/SafeCast.sol":{"keccak256":"0x9aff97434848c662a3ff99ac8f31b7b590e447ab4f02c5df720fd6a976a1a853","license":"MIT","urls":["bzz-raw://01143bc370fb0b5f948093a31250df3149318a3f563b7f0a376186b8a628ca99","dweb:/ipfs/QmQwUz4S242PFcJTgNpLpTjYj5YV2w8ys8qzK9LYjcmSac"]},"src/dependencies/openzeppelin/SafeERC20.sol":{"keccak256":"0xdc5b65ff3c0a8b8b8cd9329395f2cc705d75c64b788b3c08a1aa620a049a12dd","license":"MIT","urls":["bzz-raw://56b63ed0c8c7958716bd0d253a7feb27b23472e894c1e11f9a614bfdedc459b7","dweb:/ipfs/QmWXxSyQPUE1au1Lfd4iQKksj6DyuPLBoXAvtDknoM8kh3"]},"src/dependencies/openzeppelin/SlotDerivation.sol":{"keccak256":"0x67ce9e58806a8ade5602fd9f371ecb30bbf422ec38dae1b5f0efdc973fb13f51","license":"MIT","urls":["bzz-raw://43a5a95b1a929a343ddc2b70c65de1a9e972ac16e440e24af118b7b46cd641f9","dweb:/ipfs/Qma1ZiZRyGsgW2ZbqVHjoL1R1U3hpqCEwDrqAhFRNaHFPZ"]},"src/dependencies/openzeppelin/StorageSlot.sol":{"keccak256":"0xc9a74939e8c3efe08efd7730aef5bdb595b1f0b3a4a636ac7d5d80f55a849cde","license":"MIT","urls":["bzz-raw://08cd8a51bacec9bba6b8bdcdebb734a132ed2507d600be4f885279a3ffec144d","dweb:/ipfs/QmPQ5gu9FTFZKTrSbGGM7ERJxTYNVU3Z2X8AkDYpb9PZe5"]},"src/hub/Hub.sol":{"keccak256":"0x6ecf1025ac2b4d3df334c7e5277fdc7ce664d8d90cdfd6550cafc872781929a3","license":"LicenseRef-BUSL","urls":["bzz-raw://f3f5e9765720cafe85655c5d411cd8160fcaba998cd132bee06a45ad00c3c6a6","dweb:/ipfs/Qmb9J84UXj8eEC4L9W2LTyuguRFP8aMPgAMtQqQK4orwCd"]},"src/hub/HubStorage.sol":{"keccak256":"0xed111c023b39a781af05351624cbe66a2cc7541b137df6f09d95364321b7ebab","license":"LicenseRef-BUSL","urls":["bzz-raw://ece98421294f81b211631478817d74d34fa396e9588de5b9ee67c1a04236596c","dweb:/ipfs/QmNnGLVcJBsoENBcfqtmK11zoEyxdsTBFNNPcQmcCpFRvX"]},"src/hub/instances/HubInstance.sol":{"keccak256":"0xecf9b796f7bc710bd181b83f0fd7d0221c9fec4b79bdee789650a29f05cf37bc","license":"LicenseRef-BUSL","urls":["bzz-raw://78e4601c5eddc1a3c8acaee7dab36a9f80bc9ddcf3fb65c16424d7c142485c66","dweb:/ipfs/QmP93SN4knj4o69V35CH4WD7XGTiuLFiyMpGnkdS64jgSv"]},"src/hub/interfaces/IBasicInterestRateStrategy.sol":{"keccak256":"0x2d8ec4a424c3db4d177547fcdb399a380420cbc1ffdfd1dccb3182f67027518c","license":"LicenseRef-BUSL","urls":["bzz-raw://4112dabbe96fcaf1e2ab4651029e0dc5517de3360c15ed3a3276b7be37acdc04","dweb:/ipfs/QmRNVPRQfstLFdiKnKYDS2bzgzG2i1Hca2jhxCH6dg9nX3"]},"src/hub/interfaces/IHub.sol":{"keccak256":"0x2339502336b1e4382a23398b3a657797616e78688c930912e77a86c3b4bf0cc3","license":"LicenseRef-BUSL","urls":["bzz-raw://49111f729737639a954aeefa13963204c19e1f9a016124ddce851d5d0bf303de","dweb:/ipfs/QmbUWH7cQxY4eYq2RLB7u1RpHiakj6fmBweUFdjzSq19m5"]},"src/hub/interfaces/IHubBase.sol":{"keccak256":"0x72639b6b17dd6c09f84760e038963a12c739e9c8cb91e02b9e5fc7d834c81e24","license":"LicenseRef-BUSL","urls":["bzz-raw://d5ec9fc62c6033f33460b08fcac061c67c8a679ae68cf8ca738c503ecc090c77","dweb:/ipfs/Qmc7yR3eynsAYxmc3kXpouD87QsTggE4VDg23xt68u99sc"]},"src/hub/libraries/AssetLogic.sol":{"keccak256":"0xde90bd9216131289c2f654b340e06bd300736ed06ebb95e5b4c06b94dd12ba43","license":"LicenseRef-BUSL","urls":["bzz-raw://9923d04190b5c1e195ccfa12979930fbe1e088540b66bd43fbe5a7000d913629","dweb:/ipfs/QmNwCehU7CMVYTzchG6rNJnr9AgUseFtaLkTbpzHofPQhM"]},"src/hub/libraries/Premium.sol":{"keccak256":"0x3bccc2d3b85d8171c51b6108f444e9c84857f5cb9b6777740b5cd8c2c6aa021c","license":"LicenseRef-BUSL","urls":["bzz-raw://9aef322193c748fbcc1e9759284d03a4125225b9cff15402939d881f1620fabd","dweb:/ipfs/QmdaaHjhcnzvUQdy19Y237XaMpPDNu4PkXeR6RzEi8yfgu"]},"src/hub/libraries/SharesMath.sol":{"keccak256":"0x5e72c6c89948a0c611a44da78ff6947bf76262400d2ef0fd590ab370e2e0074d","license":"LicenseRef-BUSL","urls":["bzz-raw://1ab4a897f82020f9c5134b60c82382ee63a9c20bad3d1890e41c74d174683c1d","dweb:/ipfs/QmZ1vT5EhGJWz4aQ7hNTK1oijQqn3UiKs9mzWECLX7SkKQ"]},"src/libraries/math/MathUtils.sol":{"keccak256":"0x7c95859b5c5b5afb49b7e57577560c27eea143c7c98ee34ea6cdbfbf99226dd5","license":"LicenseRef-BUSL","urls":["bzz-raw://39f93933247c455983637c1451a885bdafd91d86084a6cbcf66a84e6fe5d110e","dweb:/ipfs/QmUpaBQ44tPYiHuXatYUeykP2YvRVYPXTa6EqUynamQtXz"]},"src/libraries/math/PercentageMath.sol":{"keccak256":"0xec3fe4ee52795177bf242ccd9d05598ed16abc1bc304c714f0840370ed153e6a","license":"LicenseRef-BUSL","urls":["bzz-raw://a9f143cb4fd7a00713b8256671ba2c40618c7bd1cd07211fbfb046a588142ca7","dweb:/ipfs/QmNzDYENhPfDqXdVU3ToBRnGf5iZULeYVeBYoiwGQMGxBz"]},"src/libraries/math/WadRayMath.sol":{"keccak256":"0xc9ed6fbccfaf54e0acf2c2556970b999bd3dd9562c2c338a7889a021359ffa26","license":"LicenseRef-BUSL","urls":["bzz-raw://3b032b88890315538e4a5a7ef8e96ef1a4379895ca8b1926d76c794fa9bcc435","dweb:/ipfs/QmaLBhgCP1PstTcATGRfKiUeJeSQdviZoN7FQjhSR41UGP"]}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_uint8":{"label":"uint8","encoding":"inplace","numberOfBytes":"1"},"t_int200":{"label":"int200","encoding":"inplace","numberOfBytes":"25"},"t_uint16":{"label":"uint16","encoding":"inplace","numberOfBytes":"2"},"t_uint24":{"label":"uint24","encoding":"inplace","numberOfBytes":"3"},"t_uint40":{"label":"uint40","encoding":"inplace","numberOfBytes":"5"},"t_uint96":{"label":"uint96","encoding":"inplace","numberOfBytes":"12"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_bytes32":{"label":"bytes32","encoding":"inplace","numberOfBytes":"32"},"t_uint120":{"label":"uint120","encoding":"inplace","numberOfBytes":"15"},"t_uint200":{"label":"uint200","encoding":"inplace","numberOfBytes":"25"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_struct(Set)1988_storage":{"label":"struct EnumerableSet.Set","members":[{"slot":"0","type":"t_array(t_bytes32)dyn_storage","astId":1983,"label":"_values","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"1","type":"t_mapping(t_bytes32,t_uint256)","astId":1987,"label":"_positions","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"}],"encoding":"inplace","numberOfBytes":"64"},"t_array(t_uint256)50_storage":{"base":"t_uint256","label":"uint256[50]","encoding":"inplace","numberOfBytes":"1600"},"t_struct(Asset)12059_storage":{"label":"struct IHub.Asset","members":[{"slot":"0","type":"t_uint120","astId":12026,"label":"liquidity","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"0","type":"t_uint120","astId":12028,"label":"realizedFees","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"0","type":"t_uint8","astId":12030,"label":"decimals","offset":30,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"1","type":"t_uint120","astId":12032,"label":"addedShares","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"1","type":"t_uint120","astId":12034,"label":"swept","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_int200","astId":12036,"label":"premiumOffsetRay","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"3","type":"t_uint120","astId":12038,"label":"drawnShares","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"3","type":"t_uint120","astId":12040,"label":"premiumShares","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"3","type":"t_uint16","astId":12042,"label":"liquidityFee","offset":30,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"4","type":"t_uint120","astId":12044,"label":"drawnIndex","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"4","type":"t_uint96","astId":12046,"label":"drawnRate","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"4","type":"t_uint40","astId":12048,"label":"lastUpdateTimestamp","offset":27,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"5","type":"t_address","astId":12050,"label":"underlying","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"6","type":"t_address","astId":12052,"label":"irStrategy","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"7","type":"t_address","astId":12054,"label":"reinvestmentController","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"8","type":"t_address","astId":12056,"label":"feeReceiver","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"9","type":"t_uint200","astId":12058,"label":"deficitRay","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"}],"encoding":"inplace","numberOfBytes":"320"},"t_array(t_bytes32)dyn_storage":{"base":"t_bytes32","label":"bytes32[]","encoding":"dynamic_array","numberOfBytes":"32"},"t_mapping(t_address,t_uint256)":{"key":"t_address","label":"mapping(address => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_bytes32,t_uint256)":{"key":"t_bytes32","label":"mapping(bytes32 => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_struct(AddressSet)2474_storage":{"label":"struct EnumerableSet.AddressSet","members":[{"slot":"0","type":"t_struct(Set)1988_storage","astId":2473,"label":"_inner","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"}],"encoding":"inplace","numberOfBytes":"64"},"t_struct(SpokeData)12091_storage":{"label":"struct IHub.SpokeData","members":[{"slot":"0","type":"t_uint120","astId":12072,"label":"drawnShares","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"0","type":"t_uint120","astId":12074,"label":"premiumShares","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"1","type":"t_int200","astId":12076,"label":"premiumOffsetRay","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_uint120","astId":12078,"label":"addedShares","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_uint40","astId":12080,"label":"addCap","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_uint40","astId":12082,"label":"drawCap","offset":20,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_uint24","astId":12084,"label":"riskPremiumThreshold","offset":25,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_bool","astId":12086,"label":"active","offset":28,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_bool","astId":12088,"label":"halted","offset":29,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"3","type":"t_uint200","astId":12090,"label":"deficitRay","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"}],"encoding":"inplace","numberOfBytes":"128"},"t_mapping(t_uint256,t_struct(Asset)12059_storage)":{"key":"t_uint256","label":"mapping(uint256 => struct IHub.Asset)","value":"t_struct(Asset)12059_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_struct(SpokeData)12091_storage)":{"key":"t_address","label":"mapping(address => struct IHub.SpokeData)","value":"t_struct(SpokeData)12091_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_struct(AddressSet)2474_storage)":{"key":"t_uint256","label":"mapping(uint256 => struct EnumerableSet.AddressSet)","value":"t_struct(AddressSet)2474_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_mapping(t_address,t_struct(SpokeData)12091_storage))":{"key":"t_uint256","label":"mapping(uint256 => mapping(address => struct IHub.SpokeData))","value":"t_mapping(t_address,t_struct(SpokeData)12091_storage)","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_uint256","astId":11903,"label":"_assetCount","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"1","type":"t_mapping(t_uint256,t_struct(Asset)12059_storage)","astId":11909,"label":"_assets","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_mapping(t_uint256,t_mapping(t_address,t_struct(SpokeData)12091_storage))","astId":11917,"label":"_spokes","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"3","type":"t_mapping(t_uint256,t_struct(AddressSet)2474_storage)","astId":11923,"label":"_assetToSpokes","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"4","type":"t_mapping(t_address,t_uint256)","astId":11928,"label":"_underlyingToAssetId","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"5","type":"t_array(t_uint256)50_storage","astId":11933,"label":"__gap","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"}]},"transientStorageLayout":{"types":null,"storage":[]},"userdoc":{"kind":"user","errors":{"SpokeHalted()":[{"notice":"Thrown when a spoke is halted."}],"InvalidAmount()":[{"notice":"Thrown when the amount is invalid."}],"InvalidShares()":[{"notice":"Thrown when the shares amount is invalid."}],"AssetNotListed()":[{"notice":"Thrown when an asset is not listed."}],"InvalidAddress()":[{"notice":"Thrown when an input address is invalid."}],"SpokeNotActive()":[{"notice":"Thrown when a spoke is not active."}],"SpokeNotListed()":[{"notice":"Thrown when a spoke being updated is not listed."}],"SpokeAlreadyListed()":[{"notice":"Thrown when a spoke being added is already listed."}],"InvalidLiquidityFee()":[{"notice":"Thrown if the liquidity fee is invalid when updating an asset configuration."}],"InvalidAssetDecimals()":[{"notice":"Thrown when the asset decimals exceed the maximum allowed decimals."}],"InvalidPremiumChange()":[{"notice":"Thrown when the premium change is invalid."}],"AddCapExceeded(uint256)":[{"notice":"Thrown when the add cap is exceeded."}],"DrawCapExceeded(uint256)":[{"notice":"Thrown when the draw cap is exceeded."}],"UnderlyingAlreadyListed()":[{"notice":"Thrown when an underlying asset is already listed."}],"OnlyReinvestmentController()":[{"notice":"Thrown when an invalid reinvestment controller attempts to perform a `sweep` action."}],"InvalidInterestRateStrategy()":[{"notice":"Thrown if the interest rate strategy or data are invalid when updating an asset configuration."}],"SurplusDrawnRestored(uint256)":[{"notice":"Thrown when a surplus amount of drawn is restored."}],"InsufficientLiquidity(uint256)":[{"notice":"Thrown when the available liquidity is insufficient."}],"InvalidReinvestmentController()":[{"notice":"Thrown when a new reinvestment controller is the zero address and the asset has existing swept liquidity."}],"InsufficientTransferred(uint256)":[{"notice":"Thrown when the transferred liquidity is insufficient."}],"SurplusPremiumRayRestored(uint256)":[{"notice":"Thrown when a surplus amount of premium is restored."}],"SurplusDrawnDeficitReported(uint256)":[{"notice":"Thrown when a surplus amount of drawn is reported as deficit."}],"SurplusPremiumRayDeficitReported(uint256)":[{"notice":"Thrown when a surplus amount of premium is reported as deficit."}]},"events":{"AddSpoke(uint256,address)":{"notice":"Emitted when a spoke is added."},"Sweep(uint256,address,uint256)":{"notice":"Emitted when liquidity is invested by the reinvestment controller."},"AddAsset(uint256,address,uint8)":{"notice":"Emitted when an asset is added."},"Reclaim(uint256,address,uint256)":{"notice":"Emitted when liquidity is reclaimed (from swept liquidity) by the reinvestment controller."},"Add(uint256,address,uint256,uint256)":{"notice":"Emitted on the `add` action."},"Draw(uint256,address,uint256,uint256)":{"notice":"Emitted on the `draw` action."},"Remove(uint256,address,uint256,uint256)":{"notice":"Emitted on the `remove` action."},"UpdateAsset(uint256,uint256,uint256,uint256)":{"notice":"Emitted when an asset is updated."},"MintFeeShares(uint256,address,uint256,uint256)":{"notice":"Emitted when fees are minted to the fee receiver spoke."},"TransferShares(uint256,address,address,uint256)":{"notice":"Emitted on the `transferShares` action."},"RefreshPremium(uint256,address,(int256,int256,uint256))":{"notice":"Emitted on the `refreshPremium` action."},"EliminateDeficit(uint256,address,address,uint256,uint256)":{"notice":"Emitted when a deficit is eliminated."},"UpdateAssetConfig(uint256,(address,uint16,address,address))":{"notice":"Emitted when an asset configuration is updated."},"UpdateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"notice":"Emitted when a spoke configuration is updated."},"ReportDeficit(uint256,address,uint256,(int256,int256,uint256),uint256)":{"notice":"Emitted on the `reportDeficit` action."},"Restore(uint256,address,uint256,(int256,int256,uint256),uint256,uint256)":{"notice":"Emitted on the `restore` action."}},"notice":"Implementation contract for the Hub.","methods":{"getAssetCount()":{"notice":"Returns the number of listed assets."},"getAsset(uint256)":{"notice":"Returns information regarding the specified asset."},"getAssetId(address)":{"notice":"Returns the asset identifier for the specified underlying asset."},"initialize(address)":{"notice":"Initializer."},"add(uint256,uint256)":{"notice":"Adds assets on behalf of a user."},"getAssetOwed(uint256)":{"notice":"Returns the amount of owed drawn and premium assets for the specified asset."},"getAssetSwept(uint256)":{"notice":"Returns the amount of liquidity swept by the reinvestment controller for the specified asset."},"getSpokeCount(uint256)":{"notice":"Returns the number of spokes listed for the specified asset."},"mintFeeShares(uint256)":{"notice":"Mints shares to the fee receiver from accrued fees."},"sweep(uint256,uint256)":{"notice":"Sweeps an amount of liquidity of the corresponding asset and sends it to the configured reinvestment controller."},"MAX_ALLOWED_SPOKE_CAP()":{"notice":"Returns the maximum value for any spoke cap (add or draw)."},"getAddedAssets(uint256)":{"notice":"Returns the total amount of the specified asset added to the Hub."},"getAddedShares(uint256)":{"notice":"Returns the total amount of shares of the specified asset added to the Hub."},"getAssetConfig(uint256)":{"notice":"Returns the asset configuration for the specified asset."},"reclaim(uint256,uint256)":{"notice":"Reclaims an amount of liquidity of the corresponding asset from the configured reinvestment controller."},"getSpoke(uint256,address)":{"notice":"Returns the Spoke data struct."},"getAssetDrawnRate(uint256)":{"notice":"Calculates the current drawn rate for the specified asset."},"getAssetLiquidity(uint256)":{"notice":"Returns the amount of available liquidity for the specified asset."},"getAssetTotalOwed(uint256)":{"notice":"Returns the total amount of assets owed to the Hub."},"getAssetDeficitRay(uint256)":{"notice":"Returns the amount of deficit with full precision of the specified asset."},"getAssetDrawnIndex(uint256)":{"notice":"Calculates the current drawn index for the specified asset."},"getAssetPremiumRay(uint256)":{"notice":"Returns the amount of owed premium with full precision for specified asset."},"isUnderlyingListed(address)":{"notice":"Returns whether the underlying is listed as an asset."},"MAX_RISK_PREMIUM_THRESHOLD()":{"notice":"Returns the maximum value for any spoke risk premium threshold."},"getAssetAccruedFees(uint256)":{"notice":"Returns the accrued fees for the asset, expressed in asset units."},"getAssetDrawnShares(uint256)":{"notice":"Returns the amount of drawn shares of the specified asset."},"getAssetPremiumData(uint256)":{"notice":"Returns the information regarding premium shares of the specified asset."},"draw(uint256,uint256,address)":{"notice":"Draws assets on behalf of a user."},"getSpokeOwed(uint256,address)":{"notice":"Returns the amount of the specified assets owed to the Hub by the specified spoke."},"payFeeShares(uint256,uint256)":{"notice":"Transfers an amount of added shares of the caller Spoke to the fee receiver Spoke."},"isSpokeListed(uint256,address)":{"notice":"Returns whether the Spoke is listed for the specified asset."},"getSpokeConfig(uint256,address)":{"notice":"Returns the Spoke configuration struct."},"remove(uint256,uint256,address)":{"notice":"Removes assets on behalf of a user."},"getSpokeAddress(uint256,uint256)":{"notice":"Returns the address of the Spoke for an asset at the given index."},"MAX_ALLOWED_UNDERLYING_DECIMALS()":{"notice":"Returns the maximum allowed number of decimals for the underlying asset."},"MIN_ALLOWED_UNDERLYING_DECIMALS()":{"notice":"Returns the minimum allowed number of decimals for the underlying asset."},"getSpokeTotalOwed(uint256,address)":{"notice":"Returns the total amount of the specified asset owed to the Hub by the specified spoke."},"setInterestRateData(uint256,bytes)":{"notice":"Updates the interest rate strategy for a specified asset."},"getSpokeDeficitRay(uint256,address)":{"notice":"Returns the amount of a given spoke's deficit with full precision for the specified asset."},"getSpokePremiumRay(uint256,address)":{"notice":"Returns the amount of owed premium with full precision for specified asset and spoke."},"previewAddByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares upon an `add` action."},"previewAddByShares(uint256,uint256)":{"notice":"Converts the specified shares amount to assets amount added upon an `add` action."},"getSpokeAddedAssets(uint256,address)":{"notice":"Returns the total amount of the specified assets added to the Hub by the specified spoke."},"getSpokeAddedShares(uint256,address)":{"notice":"Returns the total amount of shares of the specified asset added to the Hub by the specified spoke."},"getSpokeDrawnShares(uint256,address)":{"notice":"Returns the amount of drawn shares of the specified asset by the specified spoke."},"getSpokePremiumData(uint256,address)":{"notice":"Returns the information regarding premium shares of the specified asset for the specified spoke."},"previewDrawByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares amount drawn upon a `draw` action."},"previewDrawByShares(uint256,uint256)":{"notice":"Converts the specified amount of shares to assets amount drawn upon a `draw` action."},"getAssetUnderlyingAndDecimals(uint256)":{"notice":"Returns the underlying address and decimals of the specified asset."},"previewRemoveByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares amount removed upon a `remove` action."},"previewRemoveByShares(uint256,uint256)":{"notice":"Converts the specified amount of shares to assets amount removed upon a `remove` action."},"previewRestoreByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares amount restored upon a `restore` action."},"previewRestoreByShares(uint256,uint256)":{"notice":"Converts the specified amount of shares to assets amount restored upon a `restore` action."},"transferShares(uint256,uint256,address)":{"notice":"Allows a spoke to transfer its added shares of an asset to another spoke."},"eliminateDeficit(uint256,uint256,address)":{"notice":"Eliminates deficit by removing added shares of caller spoke."},"addAsset(address,uint8,address,address,bytes)":{"notice":"Adds a new asset to the Hub."},"refreshPremium(uint256,(int256,int256,uint256))":{"notice":"Refreshes premium accounting."},"restore(uint256,uint256,(int256,int256,uint256))":{"notice":"Restores assets on behalf of a user."},"reportDeficit(uint256,uint256,(int256,int256,uint256))":{"notice":"Reports an owed amount by the caller Spoke as a deficit."},"addSpoke(uint256,address,(uint40,uint40,uint24,bool,bool))":{"notice":"Registers a new spoke for a specific asset in the Hub."},"updateAssetConfig(uint256,(address,uint16,address,address),bytes)":{"notice":"Updates the configuration of an asset."},"updateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"notice":"Updates the configuration of a spoke for a specific asset."}},"version":1},"devdoc":{"kind":"dev","title":"HubInstance","author":"Aave Labs","errors":{"NotInitializing()":[{"details":"The contract is not initializing."}],"AddCapExceeded(uint256)":[{"params":{"addCap":"The current `addCap` of the asset, expressed in whole assets (not scaled by decimals)."}}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"DrawCapExceeded(uint256)":[{"params":{"drawCap":"The current `drawCap` of the asset, expressed in whole assets (not scaled by decimals)."}}],"InvalidInterestRateStrategy()":[{"details":"The `irData` must be empty if the interest rate strategy is not updated."}],"SurplusDrawnRestored(uint256)":[{"params":{"maxAllowedRestore":"The maximum allowed drawn amount to restore."}}],"InsufficientLiquidity(uint256)":[{"params":{"liquidity":"The current available liquidity."}}],"InsufficientTransferred(uint256)":[{"params":{"liquidityNeeded":"The amount of additional liquidity needed."}}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}],"SurplusPremiumRayRestored(uint256)":[{"params":{"maxAllowedRestoreRay":"The maximum allowed premium amount to restore, expressed in asset units and scaled by RAY."}}],"SafeCastOverflowedIntToUint(int256)":[{"details":"An int value doesn't fit in an uint of `bits` size."}],"SafeCastOverflowedUintToInt(uint256)":[{"details":"An uint value doesn't fit in an int of `bits` size."}],"SurplusDrawnDeficitReported(uint256)":[{"params":{"maxAllowedDeficit":"The maximum allowed drawn to report as deficit."}}],"SurplusPremiumRayDeficitReported(uint256)":[{"params":{"maxAllowedDeficitRay":"The maximum allowed premium to report as deficit, expressed in asset units and scaled by RAY."}}],"SafeCastOverflowedIntDowncast(uint8,int256)":[{"details":"Value doesn't fit in an int of `bits` size."}],"SafeCastOverflowedUintDowncast(uint8,uint256)":[{"details":"Value doesn't fit in an uint of `bits` size."}]},"events":{"Initialized(uint64)":{"details":"Triggered when the contract has been initialized or reinitialized."},"AddSpoke(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."}},"AuthorityUpdated(address)":{"details":"Authority that manages this contract was updated."},"Sweep(uint256,address,uint256)":{"params":{"amount":"The amount invested.","assetId":"The identifier of the asset.","reinvestmentController":"The active asset controller."}},"AddAsset(uint256,address,uint8)":{"params":{"assetId":"The identifier of the asset.","decimals":"The number of decimals of the asset.","underlying":"The address of the underlying asset."}},"Reclaim(uint256,address,uint256)":{"params":{"amount":"The amount reclaimed.","assetId":"The identifier of the asset.","reinvestmentController":"The active asset controller."}},"Add(uint256,address,uint256,uint256)":{"params":{"spoke":"The address of the Spoke.","amount":"The amount of assets added.","shares":"The amount of shares added.","assetId":"The identifier of the asset."}},"Draw(uint256,address,uint256,uint256)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset.","drawnAmount":"The amount of drawn assets.","drawnShares":"The amount of drawn shares."}},"Remove(uint256,address,uint256,uint256)":{"params":{"spoke":"The address of the Spoke.","amount":"The amount of assets removed.","shares":"The amount of shares removed.","assetId":"The identifier of the asset."}},"UpdateAsset(uint256,uint256,uint256,uint256)":{"params":{"assetId":"The identifier of the asset.","drawnRate":"The new drawn rate of the asset.","drawnIndex":"The new drawn index of the asset.","accruedFees":"The accrued fees of the asset since the last mint."}},"MintFeeShares(uint256,address,uint256,uint256)":{"params":{"assets":"The amount of assets used to mint the shares.","shares":"The amount of shares minted.","assetId":"The identifier of the asset.","feeReceiver":"The address of the current fee receiver spoke."}},"TransferShares(uint256,address,address,uint256)":{"params":{"sender":"The address of the sender.","shares":"The amount of shares transferred.","assetId":"The identifier of the asset.","receiver":"The address of the receiver."}},"RefreshPremium(uint256,address,(int256,int256,uint256))":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset.","premiumDelta":"The premium delta data struct."}},"EliminateDeficit(uint256,address,address,uint256,uint256)":{"params":{"shares":"The amount of shares removed.","assetId":"The identifier of the asset.","callerSpoke":"The spoke that eliminated the deficit using its added shares.","coveredSpoke":"The spoke for which the deficit was eliminated.","deficitAmountRay":"The amount of deficit eliminated, expressed in asset units and scaled by RAY."}},"UpdateAssetConfig(uint256,(address,uint16,address,address))":{"params":{"config":"The new asset configuration struct.","assetId":"The identifier of the asset."}},"UpdateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"params":{"spoke":"The address of the Spoke.","config":"The new spoke configuration struct.","assetId":"The identifier of the asset."}},"ReportDeficit(uint256,address,uint256,(int256,int256,uint256),uint256)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset.","drawnShares":"The amount of drawn shares reported as deficit.","premiumDelta":"The premium delta data struct.","deficitAmountRay":"The amount of deficit reported, expressed in asset units and scaled by RAY."}},"Restore(uint256,address,uint256,(int256,int256,uint256),uint256,uint256)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset.","drawnAmount":"The amount of drawn assets restored.","drawnShares":"The amount of drawn shares.","premiumDelta":"The premium delta data struct.","premiumAmount":"The amount of premium assets restored."}}},"methods":{"authority()":{"details":"Returns the current authority."},"constructor":{"details":"Constructor."},"getAsset(uint256)":{"params":{"assetId":"The identifier of the asset."},"details":"`drawnIndex`, `drawnRate` and `lastUpdateTimestamp` can be outdated due to passage of time.","returns":{"_0":"The asset struct."}},"getAssetId(address)":{"params":{"underlying":"The address of the underlying asset."},"details":"Reverts with `AssetNotListed` if the underlying is not listed."},"initialize(address)":{"params":{"authority":"The address of the authority contract which manages permissions."},"details":"The authority contract must implement the `AccessManaged` interface for access control."},"add(uint256,uint256)":{"params":{"amount":"The amount of asset liquidity to add.","assetId":"The identifier of the asset."},"details":"Only callable by active spokes.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.","returns":{"_0":"The amount of shares added."}},"getAssetOwed(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of owed drawn assets.","_1":"The amount of owed premium assets."}},"setAuthority(address)":{"details":"Transfers control to a new authority. The caller must be the current authority."},"getAssetSwept(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of liquidity swept."}},"getSpokeCount(uint256)":{"params":{"assetId":"The identifier of the asset."}},"mintFeeShares(uint256)":{"params":{"assetId":"The identifier of the asset."},"details":"No op when fees are worth less than one share.","returns":{"_0":"The amount of shares minted."}},"sweep(uint256,uint256)":{"params":{"amount":"The amount to sweep.","assetId":"The identifier of the asset."},"details":"The controller handles the actual reinvestment of funds, redistribution of interest, and investment caps."},"getAddedAssets(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of the asset added."}},"getAddedShares(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of shares of the asset added."}},"getAssetConfig(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The asset configuration struct."}},"isConsumingScheduledOp()":{"details":"Returns true only in the context of a delayed restricted call, at the moment that the scheduled operation is being consumed. Prevents denial of service for delayed restricted calls in the case that the contract performs attacker controlled calls."},"reclaim(uint256,uint256)":{"params":{"amount":"The amount to reclaim.","assetId":"The identifier of the asset."},"details":"The controller can only reclaim up to swept amount. All accrued interest is distributed offchain.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action."},"getSpoke(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The spoke data struct."}},"getAssetDrawnRate(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The current drawn rate of the asset."}},"getAssetLiquidity(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of available liquidity."}},"getAssetTotalOwed(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The total amount of the assets owed."}},"getAssetDeficitRay(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of deficit, expressed in asset units and scaled by RAY."}},"getAssetDrawnIndex(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The current drawn index of the asset."}},"getAssetPremiumRay(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of premium owed, expressed in asset units and scaled by RAY."}},"isUnderlyingListed(address)":{"params":{"underlying":"The address of the underlying asset."},"returns":{"_0":"True if the underlying asset is listed."}},"getAssetAccruedFees(uint256)":{"params":{"assetId":"The identifier of the asset."},"details":"Accrued fees are excluded from total added assets.","returns":{"_0":"The amount of accrued fees."}},"getAssetDrawnShares(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of drawn shares."}},"getAssetPremiumData(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of premium shares owed to the asset.","_1":"The premium offset of the asset, expressed in asset units and scaled by RAY."}},"draw(uint256,uint256,address)":{"params":{"to":"The address to transfer the underlying assets to.","amount":"The amount of assets to draw.","assetId":"The identifier of the asset."},"details":"Only callable by active spokes.","returns":{"_0":"The amount of drawn shares."}},"getSpokeOwed(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of owed drawn assets.","_1":"The amount of owed premium assets."}},"payFeeShares(uint256,uint256)":{"params":{"shares":"The amount of shares to pay to feeReceiver.","assetId":"The identifier of the asset."},"details":"It can be used to execute one-time payments to the fee receiver Spoke (e.g., liquidation fees).Only callable by active spokes."},"isSpokeListed(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"True if the Spoke is listed."}},"getSpokeConfig(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The spoke configuration struct."}},"remove(uint256,uint256,address)":{"params":{"to":"The address to transfer the assets to.","amount":"The amount of asset liquidity to remove.","assetId":"The identifier of the asset."},"details":"Only callable by active spokes.","returns":{"_0":"The amount of shares removed."}},"getSpokeAddress(uint256,uint256)":{"params":{"index":"The index of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The address of the Spoke."}},"getSpokeTotalOwed(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The total amount of the asset owed."}},"setInterestRateData(uint256,bytes)":{"params":{"irData":"The interest rate data to apply to the given asset, encoded in bytes.","assetId":"The identifier of the asset."}},"getSpokeDeficitRay(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of deficit, expressed in asset units and scaled by RAY."}},"getSpokePremiumRay(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of owed premium assets, expressed in asset units and scaled by RAY."}},"previewAddByAssets(uint256,uint256)":{"params":{"assets":"The amount of assets to convert to shares amount.","assetId":"The identifier of the asset."},"details":"Rounds down to the nearest shares amount.Defaults to a 1:1 exchange rate.","returns":{"_0":"The amount of shares converted from assets amount."}},"previewAddByShares(uint256,uint256)":{"params":{"shares":"The amount of shares to convert to assets amount.","assetId":"The identifier of the asset."},"details":"Rounds up to the nearest assets amount.Defaults to a 1:1 exchange rate.","returns":{"_0":"The amount of assets converted from shares amount."}},"getSpokeAddedAssets(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"details":"If spoke is `asset.feeReceiver`, includes converted `unrealizedFeeShares` in return value.","returns":{"_0":"The amount of added assets."}},"getSpokeAddedShares(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"details":"If spoke is `asset.feeReceiver`, includes `unrealizedFeeShares` in return value.","returns":{"_0":"The amount of added shares."}},"getSpokeDrawnShares(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of drawn shares."}},"getSpokePremiumData(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of premium shares.","_1":"The premium offset, expressed in asset units and scaled by RAY."}},"previewDrawByAssets(uint256,uint256)":{"params":{"assets":"The amount of assets to convert to shares amount.","assetId":"The identifier of the asset."},"details":"Rounds up to the nearest shares amount.","returns":{"_0":"The amount of shares converted from assets amount."}},"previewDrawByShares(uint256,uint256)":{"params":{"shares":"The amount of shares to convert to assets amount.","assetId":"The identifier of the asset."},"details":"Rounds down to the nearest assets amount.","returns":{"_0":"The amount of assets converted from shares amount."}},"getAssetUnderlyingAndDecimals(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The underlying address of the asset.","_1":"The decimals of the asset."}},"previewRemoveByAssets(uint256,uint256)":{"params":{"assets":"The amount of assets to convert to shares amount.","assetId":"The identifier of the asset."},"details":"Rounds up to the nearest shares amount.Defaults to a 1:1 exchange rate.","returns":{"_0":"The amount of shares converted from assets amount."}},"previewRemoveByShares(uint256,uint256)":{"params":{"shares":"The amount of shares to convert to assets amount.","assetId":"The identifier of the asset."},"details":"Rounds down to the nearest assets amount.Defaults to a 1:1 exchange rate.","returns":{"_0":"The amount of assets converted from shares amount."}},"previewRestoreByAssets(uint256,uint256)":{"params":{"assets":"The amount of assets to convert to shares amount.","assetId":"The identifier of the asset."},"details":"Rounds down to the nearest shares amount.","returns":{"_0":"The amount of shares converted from assets amount."}},"previewRestoreByShares(uint256,uint256)":{"params":{"shares":"The amount of drawn shares to convert to assets amount.","assetId":"The identifier of the asset."},"details":"Rounds up to the nearest assets amount.","returns":{"_0":"The amount of assets converted from shares amount."}},"transferShares(uint256,uint256,address)":{"params":{"shares":"The amount of shares to move.","assetId":"The identifier of the asset.","toSpoke":"The address of the recipient spoke."},"details":"Only callable by spokes."},"eliminateDeficit(uint256,uint256,address)":{"params":{"spoke":"The spoke for which the deficit is eliminated.","amount":"The amount of deficit to eliminate.","assetId":"The identifier of the asset."},"details":"Only callable by active and authorized spokes.","returns":{"_0":"The amount of added shares removed.","_1":"The amount of deficit eliminated, expressed in asset units."}},"addAsset(address,uint8,address,address,bytes)":{"params":{"irData":"The interest rate data to apply to the given asset encoded in bytes.","decimals":"The number of decimals of `underlying`.","irStrategy":"The address of the interest rate strategy contract.","underlying":"The address of the underlying asset.","feeReceiver":"The address of the fee receiver spoke."},"details":"The same underlying asset address cannot be added as an asset multiple times.The fee receiver is added as a new spoke with maximum add cap and zero draw cap.","returns":{"_0":"The unique identifier of the added asset."}},"refreshPremium(uint256,(int256,int256,uint256))":{"params":{"assetId":"The identifier of the asset.","premiumDelta":"The change in premium."},"details":"Only callable by active spokes.Asset and spoke premium should not decrease."},"restore(uint256,uint256,(int256,int256,uint256))":{"params":{"assetId":"The identifier of the asset.","drawnAmount":"The drawn amount to restore.","premiumDelta":"The premium delta to apply which signals premium repayment."},"details":"Only callable by active spokes.Interest is always paid off first from premium, then from drawn.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.","returns":{"_0":"The amount of drawn shares restored."}},"reportDeficit(uint256,uint256,(int256,int256,uint256))":{"params":{"assetId":"The identifier of the asset.","drawnAmount":"The drawn amount to report as deficit.","premiumDelta":"The premium delta to apply which signals premium deficit."},"details":"Only callable by active spokes.","returns":{"_0":"The amount of drawn shares reported as deficit.","_1":"The amount of deficit reported, expressed in asset units."}},"addSpoke(uint256,address,(uint40,uint40,uint24,bool,bool))":{"params":{"spoke":"The address of the Spoke to add.","params":"The configuration parameters for the Spoke.","assetId":"The identifier of the asset."},"details":"Reverts with `SpokeAlreadyListed` if spoke is already listed."},"updateAssetConfig(uint256,(address,uint16,address,address),bytes)":{"params":{"config":"The new configuration for the asset.","irData":"The interest rate data to apply to the given asset, encoded in bytes.","assetId":"The identifier of the asset."},"details":"If the fee receiver is updated, adds it as a new spoke with maximum add cap and zero draw cap, and sets old fee receiver caps to zero.If the fee receiver is updated, accrued fees are minted as shares before the update if their value exceeds one share.If the interest rate strategy is updated, it is configured with `irData`. Otherwise, `irData` must be empty."},"updateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"params":{"spoke":"The address of the Spoke to update.","config":"The new configuration for the Spoke.","assetId":"The identifier of the asset."}}},"version":1},"sourceIds":{"src/hub/Hub.sol":{"id":19},"src/hub/HubStorage.sol":{"id":20},"src/hub/interfaces/IHub.sol":{"id":23},"src/hub/libraries/Premium.sol":{"id":26},"src/hub/interfaces/IHubBase.sol":{"id":24},"src/hub/libraries/AssetLogic.sol":{"id":25},"src/hub/libraries/SharesMath.sol":{"id":27},"src/libraries/math/MathUtils.sol":{"id":28},"src/hub/instances/HubInstance.sol":{"id":21},"src/libraries/math/WadRayMath.sol":{"id":30},"src/libraries/math/PercentageMath.sol":{"id":29},"src/dependencies/openzeppelin/Math.sol":{"id":13},"src/dependencies/openzeppelin/Panic.sol":{"id":14},"src/dependencies/openzeppelin/Arrays.sol":{"id":3},"src/dependencies/openzeppelin/IERC20.sol":{"id":12},"src/dependencies/openzeppelin/IERC165.sol":{"id":11},"src/dependencies/openzeppelin/IERC1363.sol":{"id":10},"src/dependencies/openzeppelin/SafeCast.sol":{"id":15},"src/dependencies/openzeppelin/SafeERC20.sol":{"id":16},"src/dependencies/openzeppelin/IAuthority.sol":{"id":9},"src/dependencies/openzeppelin/Comparators.sol":{"id":5},"src/dependencies/openzeppelin/StorageSlot.sol":{"id":18},"src/dependencies/openzeppelin/EnumerableSet.sol":{"id":6},"src/dependencies/openzeppelin/AuthorityUtils.sol":{"id":4},"src/dependencies/openzeppelin/IAccessManaged.sol":{"id":7},"src/dependencies/openzeppelin/IAccessManager.sol":{"id":8},"src/dependencies/openzeppelin/SlotDerivation.sol":{"id":17},"src/hub/interfaces/IBasicInterestRateStrategy.sol":{"id":22},"src/dependencies/openzeppelin-upgradeable/Initializable.sol":{"id":2},"src/dependencies/openzeppelin-upgradeable/ContextUpgradeable.sol":{"id":1},"src/dependencies/openzeppelin-upgradeable/AccessManagedUpgradeable.sol":{"id":0}},"additionalInput":null,"stdJsonInput":{"sources":{"src/hub/Hub.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity 0.8.28;\n\nimport {AccessManagedUpgradeable} from 'src/dependencies/openzeppelin-upgradeable/AccessManagedUpgradeable.sol';\nimport {EnumerableSet} from 'src/dependencies/openzeppelin/EnumerableSet.sol';\nimport {SafeCast} from 'src/dependencies/openzeppelin/SafeCast.sol';\nimport {SafeERC20, IERC20} from 'src/dependencies/openzeppelin/SafeERC20.sol';\nimport {MathUtils} from 'src/libraries/math/MathUtils.sol';\nimport {PercentageMath} from 'src/libraries/math/PercentageMath.sol';\nimport {WadRayMath} from 'src/libraries/math/WadRayMath.sol';\nimport {AssetLogic} from 'src/hub/libraries/AssetLogic.sol';\nimport {SharesMath} from 'src/hub/libraries/SharesMath.sol';\nimport {Premium} from 'src/hub/libraries/Premium.sol';\nimport {IBasicInterestRateStrategy} from 'src/hub/interfaces/IBasicInterestRateStrategy.sol';\nimport {IHubBase, IHub} from 'src/hub/interfaces/IHub.sol';\nimport {HubStorage} from 'src/hub/HubStorage.sol';\n\n/// @title Hub\n/// @author Aave Labs\n/// @notice A liquidity hub that manages assets and spokes.\nabstract contract Hub is IHub, HubStorage, AccessManagedUpgradeable {\n  using EnumerableSet for EnumerableSet.AddressSet;\n  using SafeCast for *;\n  using SafeERC20 for IERC20;\n  using MathUtils for *;\n  using PercentageMath for *;\n  using WadRayMath for uint256;\n  using AssetLogic for Asset;\n  using SharesMath for uint256;\n\n  /// @inheritdoc IHub\n  uint8 public constant MAX_ALLOWED_UNDERLYING_DECIMALS = 18;\n\n  /// @inheritdoc IHub\n  uint8 public constant MIN_ALLOWED_UNDERLYING_DECIMALS = 6;\n\n  /// @inheritdoc IHub\n  uint40 public constant MAX_ALLOWED_SPOKE_CAP = type(uint40).max;\n\n  /// @inheritdoc IHub\n  uint24 public constant MAX_RISK_PREMIUM_THRESHOLD = type(uint24).max;\n\n  /// @dev To be overridden by the inheriting Hub instance contract.\n  function initialize(address authority) external virtual;\n\n  /// @inheritdoc IHub\n  function addAsset(\n    address underlying,\n    uint8 decimals,\n    address feeReceiver,\n    address irStrategy,\n    bytes calldata irData\n  ) external restricted returns (uint256) {\n    require(\n      underlying != address(0) && feeReceiver != address(0) && irStrategy != address(0),\n      InvalidAddress()\n    );\n    require(\n      MIN_ALLOWED_UNDERLYING_DECIMALS <= decimals && decimals <= MAX_ALLOWED_UNDERLYING_DECIMALS,\n      InvalidAssetDecimals()\n    );\n    require(!isUnderlyingListed(underlying), UnderlyingAlreadyListed());\n\n    uint256 assetId = _assetCount++;\n    _underlyingToAssetId[underlying] = assetId;\n\n    IBasicInterestRateStrategy(irStrategy).setInterestRateData(assetId, irData);\n    uint256 drawnRate = IBasicInterestRateStrategy(irStrategy).calculateInterestRate({\n      assetId: assetId,\n      liquidity: 0,\n      drawn: 0,\n      deficit: 0,\n      swept: 0\n    });\n\n    uint256 drawnIndex = WadRayMath.RAY;\n    uint256 lastUpdateTimestamp = block.timestamp;\n    _assets[assetId] = Asset({\n      liquidity: 0,\n      deficitRay: 0,\n      swept: 0,\n      addedShares: 0,\n      drawnShares: 0,\n      premiumShares: 0,\n      premiumOffsetRay: 0,\n      drawnIndex: drawnIndex.toUint120(),\n      underlying: underlying,\n      lastUpdateTimestamp: lastUpdateTimestamp.toUint40(),\n      decimals: decimals,\n      drawnRate: drawnRate.toUint96(),\n      irStrategy: irStrategy,\n      realizedFees: 0,\n      reinvestmentController: address(0),\n      feeReceiver: feeReceiver,\n      liquidityFee: 0\n    });\n    _addFeeReceiver(assetId, feeReceiver);\n\n    emit AddAsset(assetId, underlying, decimals);\n    emit UpdateAssetConfig(\n      assetId,\n      AssetConfig({\n        feeReceiver: feeReceiver,\n        liquidityFee: 0,\n        irStrategy: irStrategy,\n        reinvestmentController: address(0)\n      })\n    );\n    emit UpdateAsset(assetId, drawnIndex, drawnRate, 0);\n\n    return assetId;\n  }\n\n  /// @inheritdoc IHub\n  function updateAssetConfig(\n    uint256 assetId,\n    AssetConfig calldata config,\n    bytes calldata irData\n  ) external restricted {\n    require(assetId < _assetCount, AssetNotListed());\n    Asset storage asset = _assets[assetId];\n    asset.accrue();\n\n    require(config.liquidityFee <= PercentageMath.PERCENTAGE_FACTOR, InvalidLiquidityFee());\n    require(config.feeReceiver != address(0) && config.irStrategy != address(0), InvalidAddress());\n    require(\n      config.reinvestmentController != address(0) || asset.swept == 0,\n      InvalidReinvestmentController()\n    );\n\n    asset.liquidityFee = config.liquidityFee;\n    asset.reinvestmentController = config.reinvestmentController;\n\n    address oldFeeReceiver = asset.feeReceiver;\n    if (oldFeeReceiver != config.feeReceiver) {\n      _mintFeeShares(asset, assetId);\n      IHub.SpokeConfig memory spokeConfig;\n      spokeConfig.active = _spokes[assetId][oldFeeReceiver].active;\n      spokeConfig.halted = _spokes[assetId][oldFeeReceiver].halted;\n      _updateSpokeConfig(assetId, oldFeeReceiver, spokeConfig);\n      asset.feeReceiver = config.feeReceiver;\n      _addFeeReceiver(assetId, config.feeReceiver);\n    }\n\n    if (config.irStrategy != asset.irStrategy) {\n      asset.irStrategy = config.irStrategy;\n      IBasicInterestRateStrategy(config.irStrategy).setInterestRateData(assetId, irData);\n    } else {\n      require(irData.length == 0, InvalidInterestRateStrategy());\n    }\n\n    asset.updateDrawnRate(assetId);\n\n    emit UpdateAssetConfig(assetId, config);\n  }\n\n  /// @inheritdoc IHub\n  function addSpoke(\n    uint256 assetId,\n    address spoke,\n    SpokeConfig calldata config\n  ) external restricted {\n    require(assetId < _assetCount, AssetNotListed());\n    require(spoke != address(0), InvalidAddress());\n    _addSpoke(assetId, spoke);\n    _updateSpokeConfig(assetId, spoke, config);\n  }\n\n  /// @inheritdoc IHub\n  function updateSpokeConfig(\n    uint256 assetId,\n    address spoke,\n    SpokeConfig calldata config\n  ) external restricted {\n    require(assetId < _assetCount, AssetNotListed());\n    require(_assetToSpokes[assetId].contains(spoke), SpokeNotListed());\n    _updateSpokeConfig(assetId, spoke, config);\n  }\n\n  /// @inheritdoc IHub\n  function setInterestRateData(uint256 assetId, bytes calldata irData) external restricted {\n    require(assetId < _assetCount, AssetNotListed());\n    Asset storage asset = _assets[assetId];\n    asset.accrue();\n    IBasicInterestRateStrategy(asset.irStrategy).setInterestRateData(assetId, irData);\n    asset.updateDrawnRate(assetId);\n  }\n\n  /// @inheritdoc IHub\n  function mintFeeShares(uint256 assetId) external restricted returns (uint256) {\n    require(assetId < _assetCount, AssetNotListed());\n    Asset storage asset = _assets[assetId];\n    asset.accrue();\n    uint256 feeShares = _mintFeeShares(asset, assetId);\n    asset.updateDrawnRate(assetId);\n    return feeShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function add(uint256 assetId, uint256 amount) external returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validateAdd(asset, spoke, amount);\n\n    uint256 liquidity = asset.liquidity + amount;\n    uint256 balance = IERC20(asset.underlying).balanceOf(address(this));\n    require(balance >= liquidity, InsufficientTransferred(liquidity.uncheckedSub(balance)));\n    uint120 shares = asset.toAddedSharesDown(amount).toUint120();\n    require(shares > 0, InvalidShares());\n    asset.addedShares += shares;\n    spoke.addedShares += shares;\n    asset.liquidity = liquidity.toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    emit Add(assetId, msg.sender, shares, amount);\n\n    return shares;\n  }\n\n  /// @inheritdoc IHubBase\n  function remove(uint256 assetId, uint256 amount, address to) external returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validateRemove(spoke, amount, to);\n\n    uint256 liquidity = asset.liquidity;\n    require(amount <= liquidity, InsufficientLiquidity(liquidity));\n\n    uint120 shares = asset.toAddedSharesUp(amount).toUint120();\n    asset.addedShares -= shares;\n    spoke.addedShares -= shares;\n    asset.liquidity = liquidity.uncheckedSub(amount).toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    IERC20(asset.underlying).safeTransfer(to, amount);\n\n    emit Remove(assetId, msg.sender, shares, amount);\n\n    return shares;\n  }\n\n  /// @inheritdoc IHubBase\n  function draw(uint256 assetId, uint256 amount, address to) external returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validateDraw(asset, spoke, amount, to);\n\n    uint256 liquidity = asset.liquidity;\n    require(amount <= liquidity, InsufficientLiquidity(liquidity));\n\n    uint120 drawnShares = asset.toDrawnSharesUp(amount).toUint120();\n    asset.drawnShares += drawnShares;\n    spoke.drawnShares += drawnShares;\n    asset.liquidity = liquidity.uncheckedSub(amount).toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    IERC20(asset.underlying).safeTransfer(to, amount);\n\n    emit Draw(assetId, msg.sender, drawnShares, amount);\n\n    return drawnShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function restore(\n    uint256 assetId,\n    uint256 drawnAmount,\n    PremiumDelta calldata premiumDelta\n  ) external returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validateRestore(asset, spoke, drawnAmount, premiumDelta.restoredPremiumRay);\n\n    uint120 drawnShares = asset.toDrawnSharesDown(drawnAmount).toUint120();\n    asset.drawnShares -= drawnShares;\n    spoke.drawnShares -= drawnShares;\n    _applyPremiumDelta(asset, spoke, premiumDelta);\n\n    uint256 premiumAmount = premiumDelta.restoredPremiumRay.fromRayUp();\n    uint256 liquidity = asset.liquidity + drawnAmount + premiumAmount;\n    uint256 balance = IERC20(asset.underlying).balanceOf(address(this));\n    require(balance >= liquidity, InsufficientTransferred(liquidity.uncheckedSub(balance)));\n    asset.liquidity = liquidity.toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    emit Restore(assetId, msg.sender, drawnShares, premiumDelta, drawnAmount, premiumAmount);\n\n    return drawnShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function reportDeficit(\n    uint256 assetId,\n    uint256 drawnAmount,\n    PremiumDelta calldata premiumDelta\n  ) external returns (uint256, uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validateReportDeficit(asset, spoke, drawnAmount, premiumDelta.restoredPremiumRay);\n\n    uint120 drawnShares = asset.toDrawnSharesDown(drawnAmount).toUint120();\n    asset.drawnShares -= drawnShares;\n    spoke.drawnShares -= drawnShares;\n    _applyPremiumDelta(asset, spoke, premiumDelta);\n\n    uint256 deficitAmountRay = uint256(drawnShares) * asset.drawnIndex +\n      premiumDelta.restoredPremiumRay;\n    asset.deficitRay += deficitAmountRay.toUint200();\n    spoke.deficitRay += deficitAmountRay.toUint200();\n\n    asset.updateDrawnRate(assetId);\n\n    emit ReportDeficit(assetId, msg.sender, drawnShares, premiumDelta, deficitAmountRay);\n\n    return (drawnShares, deficitAmountRay.fromRayUp());\n  }\n\n  /// @inheritdoc IHub\n  function eliminateDeficit(\n    uint256 assetId,\n    uint256 amount,\n    address spoke\n  ) external restricted returns (uint256, uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage callerSpoke = _spokes[assetId][msg.sender];\n    SpokeData storage coveredSpoke = _spokes[assetId][spoke];\n\n    asset.accrue();\n    uint256 deficitRay = coveredSpoke.deficitRay;\n    uint256 deficitAmountRay = (amount < deficitRay.fromRayUp()) ? amount.toRay() : deficitRay;\n    _validateEliminateDeficit(callerSpoke, deficitAmountRay);\n\n    uint256 deficitToEliminate = deficitAmountRay.fromRayUp();\n    uint120 shares = asset.toAddedSharesUp(deficitToEliminate).toUint120();\n    asset.addedShares -= shares;\n    callerSpoke.addedShares -= shares;\n    asset.deficitRay -= deficitAmountRay.toUint200();\n    coveredSpoke.deficitRay -= deficitAmountRay.toUint200();\n\n    asset.updateDrawnRate(assetId);\n\n    emit EliminateDeficit(assetId, msg.sender, spoke, shares, deficitAmountRay);\n\n    return (shares, deficitToEliminate);\n  }\n\n  /// @inheritdoc IHubBase\n  function refreshPremium(uint256 assetId, PremiumDelta calldata premiumDelta) external {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    require(spoke.active, SpokeNotActive());\n    // no premium change allowed\n    require(premiumDelta.restoredPremiumRay == 0, InvalidPremiumChange());\n    _applyPremiumDelta(asset, spoke, premiumDelta);\n    asset.updateDrawnRate(assetId);\n\n    emit RefreshPremium(assetId, msg.sender, premiumDelta);\n  }\n\n  /// @inheritdoc IHubBase\n  function payFeeShares(uint256 assetId, uint256 shares) external {\n    Asset storage asset = _assets[assetId];\n    address feeReceiver = _assets[assetId].feeReceiver;\n    SpokeData storage receiverSpoke = _spokes[assetId][feeReceiver];\n    SpokeData storage callerSpoke = _spokes[assetId][msg.sender];\n\n    asset.accrue();\n    _validatePayFeeShares(callerSpoke, shares);\n    _transferShares({sender: callerSpoke, receiver: receiverSpoke, shares: shares});\n    asset.updateDrawnRate(assetId);\n\n    emit TransferShares(assetId, msg.sender, feeReceiver, shares);\n  }\n\n  /// @inheritdoc IHub\n  function transferShares(uint256 assetId, uint256 shares, address toSpoke) external {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage callerSpoke = _spokes[assetId][msg.sender];\n    SpokeData storage receiverSpoke = _spokes[assetId][toSpoke];\n\n    asset.accrue();\n    _validateTransferShares(asset, callerSpoke, receiverSpoke, shares);\n    _transferShares({sender: callerSpoke, receiver: receiverSpoke, shares: shares});\n    asset.updateDrawnRate(assetId);\n\n    emit TransferShares(assetId, msg.sender, toSpoke, shares);\n  }\n\n  /// @inheritdoc IHub\n  function sweep(uint256 assetId, uint256 amount) external {\n    require(assetId < _assetCount, AssetNotListed());\n    Asset storage asset = _assets[assetId];\n\n    asset.accrue();\n    _validateSweep(asset, msg.sender, amount);\n\n    uint256 liquidity = asset.liquidity;\n    require(amount <= liquidity, InsufficientLiquidity(liquidity));\n\n    asset.liquidity = liquidity.uncheckedSub(amount).toUint120();\n    asset.swept += amount.toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    IERC20(asset.underlying).safeTransfer(msg.sender, amount);\n\n    emit Sweep(assetId, msg.sender, amount);\n  }\n\n  /// @inheritdoc IHub\n  function reclaim(uint256 assetId, uint256 amount) external {\n    require(assetId < _assetCount, AssetNotListed());\n    Asset storage asset = _assets[assetId];\n\n    asset.accrue();\n    _validateReclaim(asset, msg.sender, amount);\n\n    uint256 liquidity = asset.liquidity + amount;\n    uint256 balance = IERC20(asset.underlying).balanceOf(address(this));\n    require(balance >= liquidity, InsufficientTransferred(liquidity.uncheckedSub(balance)));\n    asset.liquidity = liquidity.toUint120();\n    asset.swept -= amount.toUint120();\n\n    asset.updateDrawnRate(assetId);\n\n    emit Reclaim(assetId, msg.sender, amount);\n  }\n\n  /// @inheritdoc IHub\n  function isUnderlyingListed(address underlying) public view returns (bool) {\n    return _assets[_underlyingToAssetId[underlying]].underlying == underlying;\n  }\n\n  /// @inheritdoc IHub\n  function getAssetCount() external view returns (uint256) {\n    return _assetCount;\n  }\n\n  /// @inheritdoc IHubBase\n  function previewAddByAssets(uint256 assetId, uint256 assets) external view returns (uint256) {\n    return _assets[assetId].toAddedSharesDown(assets);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewAddByShares(uint256 assetId, uint256 shares) external view returns (uint256) {\n    return _assets[assetId].toAddedAssetsUp(shares);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewRemoveByAssets(uint256 assetId, uint256 assets) external view returns (uint256) {\n    return _assets[assetId].toAddedSharesUp(assets);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewRemoveByShares(uint256 assetId, uint256 shares) external view returns (uint256) {\n    return _assets[assetId].toAddedAssetsDown(shares);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewDrawByAssets(uint256 assetId, uint256 assets) external view returns (uint256) {\n    return _assets[assetId].toDrawnSharesUp(assets);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewDrawByShares(uint256 assetId, uint256 shares) external view returns (uint256) {\n    return _assets[assetId].toDrawnAssetsDown(shares);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewRestoreByAssets(uint256 assetId, uint256 assets) external view returns (uint256) {\n    return _assets[assetId].toDrawnSharesDown(assets);\n  }\n\n  /// @inheritdoc IHubBase\n  function previewRestoreByShares(uint256 assetId, uint256 shares) external view returns (uint256) {\n    return _assets[assetId].toDrawnAssetsUp(shares);\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetId(address underlying) external view returns (uint256) {\n    require(isUnderlyingListed(underlying), AssetNotListed());\n    return _underlyingToAssetId[underlying];\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetUnderlyingAndDecimals(uint256 assetId) external view returns (address, uint8) {\n    Asset storage asset = _assets[assetId];\n    return (asset.underlying, asset.decimals);\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetDrawnIndex(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].getDrawnIndex();\n  }\n\n  /// @inheritdoc IHubBase\n  function getAddedAssets(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].totalAddedAssets();\n  }\n\n  /// @inheritdoc IHubBase\n  function getAddedShares(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].addedShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetOwed(uint256 assetId) external view returns (uint256, uint256) {\n    Asset storage asset = _assets[assetId];\n    uint256 drawnIndex = asset.getDrawnIndex();\n    return (asset.drawn(drawnIndex), asset.premium(drawnIndex));\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetTotalOwed(uint256 assetId) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    return asset.totalOwed(asset.getDrawnIndex());\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetPremiumRay(uint256 assetId) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    return\n      Premium.calculatePremiumRay({\n        premiumShares: asset.premiumShares,\n        premiumOffsetRay: asset.premiumOffsetRay,\n        drawnIndex: asset.getDrawnIndex()\n      });\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetDrawnShares(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].drawnShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetPremiumData(uint256 assetId) external view returns (uint256, int256) {\n    Asset storage asset = _assets[assetId];\n    return (asset.premiumShares, asset.premiumOffsetRay);\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetLiquidity(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].liquidity;\n  }\n\n  /// @inheritdoc IHubBase\n  function getAssetDeficitRay(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].deficitRay;\n  }\n\n  /// @inheritdoc IHub\n  function getAsset(uint256 assetId) external view returns (Asset memory) {\n    return _assets[assetId];\n  }\n\n  /// @inheritdoc IHub\n  function getAssetConfig(uint256 assetId) external view returns (AssetConfig memory) {\n    Asset storage asset = _assets[assetId];\n    return\n      AssetConfig({\n        feeReceiver: asset.feeReceiver,\n        liquidityFee: asset.liquidityFee,\n        irStrategy: asset.irStrategy,\n        reinvestmentController: asset.reinvestmentController\n      });\n  }\n\n  /// @inheritdoc IHub\n  function getAssetAccruedFees(uint256 assetId) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    return asset.realizedFees + asset.getUnrealizedFees(asset.getDrawnIndex());\n  }\n\n  /// @inheritdoc IHub\n  function getAssetSwept(uint256 assetId) external view returns (uint256) {\n    return _assets[assetId].swept;\n  }\n\n  /// @inheritdoc IHub\n  function getAssetDrawnRate(uint256 assetId) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    return asset.getDrawnRate(assetId, asset.getDrawnIndex());\n  }\n\n  /// @inheritdoc IHub\n  function getSpokeCount(uint256 assetId) external view returns (uint256) {\n    return _assetToSpokes[assetId].length();\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeAddedAssets(uint256 assetId, address spoke) external view returns (uint256) {\n    return _assets[assetId].toAddedAssetsDown(_spokes[assetId][spoke].addedShares);\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeAddedShares(uint256 assetId, address spoke) external view returns (uint256) {\n    return _spokes[assetId][spoke].addedShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeOwed(uint256 assetId, address spoke) external view returns (uint256, uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    return (_getSpokeDrawn(asset, spokeData), _getSpokePremium(asset, spokeData));\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeTotalOwed(uint256 assetId, address spoke) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    return _getSpokeDrawn(asset, spokeData) + _getSpokePremium(asset, spokeData);\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokePremiumRay(uint256 assetId, address spoke) external view returns (uint256) {\n    Asset storage asset = _assets[assetId];\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    return _getSpokePremiumRay(asset, spokeData);\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeDrawnShares(uint256 assetId, address spoke) external view returns (uint256) {\n    return _spokes[assetId][spoke].drawnShares;\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokePremiumData(\n    uint256 assetId,\n    address spoke\n  ) external view returns (uint256, int256) {\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    return (spokeData.premiumShares, spokeData.premiumOffsetRay);\n  }\n\n  /// @inheritdoc IHubBase\n  function getSpokeDeficitRay(uint256 assetId, address spoke) external view returns (uint256) {\n    return _spokes[assetId][spoke].deficitRay;\n  }\n\n  /// @inheritdoc IHub\n  function isSpokeListed(uint256 assetId, address spoke) external view returns (bool) {\n    return _assetToSpokes[assetId].contains(spoke);\n  }\n\n  /// @inheritdoc IHub\n  function getSpokeAddress(uint256 assetId, uint256 index) external view returns (address) {\n    return _assetToSpokes[assetId].at(index);\n  }\n\n  /// @inheritdoc IHub\n  function getSpoke(uint256 assetId, address spoke) external view returns (SpokeData memory) {\n    return _spokes[assetId][spoke];\n  }\n\n  /// @inheritdoc IHub\n  function getSpokeConfig(\n    uint256 assetId,\n    address spoke\n  ) external view returns (SpokeConfig memory) {\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    return\n      SpokeConfig({\n        addCap: spokeData.addCap,\n        drawCap: spokeData.drawCap,\n        riskPremiumThreshold: spokeData.riskPremiumThreshold,\n        active: spokeData.active,\n        halted: spokeData.halted\n      });\n  }\n\n  /// @notice Adds a new spoke to an asset with default feeReceiver configuration (maximum add cap, zero draw cap).\n  function _addFeeReceiver(uint256 assetId, address feeReceiver) internal {\n    _addSpoke(assetId, feeReceiver);\n    _updateSpokeConfig(\n      assetId,\n      feeReceiver,\n      SpokeConfig({\n        addCap: MAX_ALLOWED_SPOKE_CAP,\n        drawCap: 0,\n        riskPremiumThreshold: 0,\n        active: true,\n        halted: false\n      })\n    );\n  }\n\n  /// @notice Adds a spoke to an asset.\n  /// @dev Reverts with `SpokeAlreadyListed` if spoke is already listed for the given asset.\n  function _addSpoke(uint256 assetId, address spoke) internal {\n    require(_assetToSpokes[assetId].add(spoke), SpokeAlreadyListed());\n    emit AddSpoke(assetId, spoke);\n  }\n\n  function _updateSpokeConfig(uint256 assetId, address spoke, SpokeConfig memory config) internal {\n    SpokeData storage spokeData = _spokes[assetId][spoke];\n    spokeData.addCap = config.addCap;\n    spokeData.drawCap = config.drawCap;\n    spokeData.riskPremiumThreshold = config.riskPremiumThreshold;\n    spokeData.active = config.active;\n    spokeData.halted = config.halted;\n    emit UpdateSpokeConfig(assetId, spoke, config);\n  }\n\n  /// @dev Receiver `addCap` is validated in `_validateTransferShares`.\n  function _transferShares(\n    SpokeData storage sender,\n    SpokeData storage receiver,\n    uint256 shares\n  ) internal {\n    sender.addedShares -= shares.toUint120();\n    receiver.addedShares += shares.toUint120();\n  }\n\n  /// @dev Applies premium deltas on asset & spoke premium owed.\n  /// @dev Checks premium owed decreases by exactly `restoredPremiumRay`.\n  /// @dev Checks updated risk premium is within allowed threshold.\n  /// @dev Uses last stored index; asset accrual should have already occurred.\n  function _applyPremiumDelta(\n    Asset storage asset,\n    SpokeData storage spoke,\n    PremiumDelta calldata premiumDelta\n  ) internal {\n    uint256 drawnIndex = asset.drawnIndex;\n\n    // asset premium change\n    (asset.premiumShares, asset.premiumOffsetRay) = _validateApplyPremiumDelta(\n      drawnIndex,\n      asset.premiumShares,\n      asset.premiumOffsetRay,\n      premiumDelta\n    );\n\n    // spoke premium change\n    (spoke.premiumShares, spoke.premiumOffsetRay) = _validateApplyPremiumDelta(\n      drawnIndex,\n      spoke.premiumShares,\n      spoke.premiumOffsetRay,\n      premiumDelta\n    );\n\n    uint24 riskPremiumThreshold = spoke.riskPremiumThreshold;\n    require(\n      riskPremiumThreshold == MAX_RISK_PREMIUM_THRESHOLD ||\n        spoke.premiumShares <= spoke.drawnShares.percentMulUp(riskPremiumThreshold),\n      InvalidPremiumChange()\n    );\n  }\n\n  function _mintFeeShares(Asset storage asset, uint256 assetId) internal returns (uint256) {\n    uint256 fees = asset.realizedFees;\n    uint120 shares = asset.toAddedSharesDown(fees).toUint120();\n    if (shares == 0) {\n      return 0;\n    }\n\n    address feeReceiver = asset.feeReceiver;\n    SpokeData storage feeReceiverSpoke = _spokes[assetId][feeReceiver];\n    require(feeReceiverSpoke.active, SpokeNotActive());\n\n    asset.addedShares += shares;\n    feeReceiverSpoke.addedShares += shares;\n    asset.realizedFees = 0;\n    emit MintFeeShares(assetId, feeReceiver, shares, fees);\n\n    return shares;\n  }\n\n  /// @dev Returns the Spoke's drawn amount for a specified asset.\n  function _getSpokeDrawn(\n    Asset storage asset,\n    SpokeData storage spoke\n  ) internal view returns (uint256) {\n    return asset.toDrawnAssetsUp(spoke.drawnShares);\n  }\n\n  /// @dev Returns the Spoke's premium amount for a specified asset.\n  function _getSpokePremium(\n    Asset storage asset,\n    SpokeData storage spoke\n  ) internal view returns (uint256) {\n    return _getSpokePremiumRay(asset, spoke).fromRayUp();\n  }\n\n  /// @dev Returns the Spoke's premium amount with full precision for a specified asset.\n  function _getSpokePremiumRay(\n    Asset storage asset,\n    SpokeData storage spoke\n  ) internal view returns (uint256) {\n    return\n      Premium.calculatePremiumRay({\n        premiumShares: spoke.premiumShares,\n        premiumOffsetRay: spoke.premiumOffsetRay,\n        drawnIndex: asset.getDrawnIndex()\n      });\n  }\n\n  /// @dev Spoke with maximum cap have unlimited add capacity.\n  function _validateAdd(\n    Asset storage asset,\n    SpokeData storage spoke,\n    uint256 amount\n  ) internal view {\n    require(amount > 0, InvalidAmount());\n    require(spoke.active, SpokeNotActive());\n    require(!spoke.halted, SpokeHalted());\n    uint256 addCap = spoke.addCap;\n    require(\n      addCap == MAX_ALLOWED_SPOKE_CAP ||\n        addCap * MathUtils.uncheckedExp(10, asset.decimals) >=\n          asset.toAddedAssetsUp(spoke.addedShares) + amount,\n      AddCapExceeded(addCap)\n    );\n  }\n\n  function _validateRemove(SpokeData storage spoke, uint256 amount, address to) internal view {\n    require(to != address(this), InvalidAddress());\n    require(amount > 0, InvalidAmount());\n    require(spoke.active, SpokeNotActive());\n    require(!spoke.halted, SpokeHalted());\n  }\n\n  /// @dev The draw cap is enforced against the Spoke's total owed, including any reported deficit.\n  /// @dev Spoke with maximum cap have unlimited draw capacity.\n  function _validateDraw(\n    Asset storage asset,\n    SpokeData storage spoke,\n    uint256 amount,\n    address to\n  ) internal view {\n    require(to != address(this), InvalidAddress());\n    require(amount > 0, InvalidAmount());\n    require(spoke.active, SpokeNotActive());\n    require(!spoke.halted, SpokeHalted());\n    uint256 drawCap = spoke.drawCap;\n    uint256 owed = _getSpokeDrawn(asset, spoke) + _getSpokePremium(asset, spoke);\n    require(\n      drawCap == MAX_ALLOWED_SPOKE_CAP ||\n        drawCap * MathUtils.uncheckedExp(10, asset.decimals) >=\n          owed + amount + uint256(spoke.deficitRay).fromRayUp(),\n      DrawCapExceeded(drawCap)\n    );\n  }\n\n  function _validateRestore(\n    Asset storage asset,\n    SpokeData storage spoke,\n    uint256 drawnAmount,\n    uint256 premiumAmountRay\n  ) internal view {\n    require(drawnAmount > 0 || premiumAmountRay > 0, InvalidAmount());\n    require(spoke.active, SpokeNotActive());\n    require(!spoke.halted, SpokeHalted());\n    uint256 drawn = _getSpokeDrawn(asset, spoke);\n    uint256 premiumRay = _getSpokePremiumRay(asset, spoke);\n    require(drawnAmount <= drawn, SurplusDrawnRestored(drawn));\n    require(premiumAmountRay <= premiumRay, SurplusPremiumRayRestored(premiumRay));\n  }\n\n  function _validateReportDeficit(\n    Asset storage asset,\n    SpokeData storage spoke,\n    uint256 drawnAmount,\n    uint256 premiumAmountRay\n  ) internal view {\n    require(drawnAmount > 0 || premiumAmountRay > 0, InvalidAmount());\n    require(spoke.active, SpokeNotActive());\n    uint256 drawn = _getSpokeDrawn(asset, spoke);\n    uint256 premiumRay = _getSpokePremiumRay(asset, spoke);\n    require(drawnAmount <= drawn, SurplusDrawnDeficitReported(drawn));\n    require(premiumAmountRay <= premiumRay, SurplusPremiumRayDeficitReported(premiumRay));\n  }\n\n  function _validateEliminateDeficit(\n    SpokeData storage callerSpoke,\n    uint256 deficitAmountRay\n  ) internal view {\n    require(callerSpoke.active, SpokeNotActive());\n    require(deficitAmountRay > 0, InvalidAmount());\n  }\n\n  function _validatePayFeeShares(SpokeData storage callerSpoke, uint256 feeShares) internal view {\n    require(callerSpoke.active, SpokeNotActive());\n    require(feeShares > 0, InvalidShares());\n  }\n\n  function _validateTransferShares(\n    Asset storage asset,\n    SpokeData storage callerSpoke,\n    SpokeData storage receiverSpoke,\n    uint256 shares\n  ) internal view {\n    require(callerSpoke.active && receiverSpoke.active, SpokeNotActive());\n    require(!callerSpoke.halted && !receiverSpoke.halted, SpokeHalted());\n    require(shares > 0, InvalidShares());\n    uint256 addCap = receiverSpoke.addCap;\n    require(\n      addCap == MAX_ALLOWED_SPOKE_CAP ||\n        addCap * MathUtils.uncheckedExp(10, asset.decimals) >=\n          asset.toAddedAssetsUp(receiverSpoke.addedShares + shares),\n      AddCapExceeded(addCap)\n    );\n  }\n\n  function _validateSweep(Asset storage asset, address caller, uint256 amount) internal view {\n    // sufficient check to disallow when controller unset\n    require(caller == asset.reinvestmentController, OnlyReinvestmentController());\n    require(amount > 0, InvalidAmount());\n  }\n\n  function _validateReclaim(Asset storage asset, address caller, uint256 amount) internal view {\n    // sufficient check to disallow when controller unset\n    require(caller == asset.reinvestmentController, OnlyReinvestmentController());\n    require(amount > 0, InvalidAmount());\n  }\n\n  /// @dev Validates applied premium delta for given premium data and returns updated premium data.\n  function _validateApplyPremiumDelta(\n    uint256 drawnIndex,\n    uint256 premiumShares,\n    int256 premiumOffsetRay,\n    PremiumDelta calldata premiumDelta\n  ) internal pure returns (uint120, int200) {\n    uint256 premiumRayBefore = Premium.calculatePremiumRay({\n      premiumShares: premiumShares,\n      premiumOffsetRay: premiumOffsetRay,\n      drawnIndex: drawnIndex\n    });\n\n    uint256 newPremiumShares = premiumShares.add(premiumDelta.sharesDelta);\n    int256 newPremiumOffsetRay = premiumOffsetRay + premiumDelta.offsetRayDelta;\n\n    uint256 premiumRayAfter = Premium.calculatePremiumRay({\n      premiumShares: newPremiumShares,\n      premiumOffsetRay: newPremiumOffsetRay,\n      drawnIndex: drawnIndex\n    });\n\n    require(\n      premiumRayAfter + premiumDelta.restoredPremiumRay == premiumRayBefore,\n      InvalidPremiumChange()\n    );\n    return (newPremiumShares.toUint120(), newPremiumOffsetRay.toInt200());\n  }\n}\n"},"src/hub/HubStorage.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity 0.8.28;\n\nimport {EnumerableSet} from 'src/dependencies/openzeppelin/EnumerableSet.sol';\nimport {IHub} from 'src/hub/interfaces/IHub.sol';\n\n/// @title HubStorage\n/// @author Aave Labs\n/// @notice Storage layout for the Hub contract.\n/// @dev This contract defines all storage variables used by the Hub.\nabstract contract HubStorage {\n  /// @dev Number of assets listed in the Hub.\n  uint256 internal _assetCount;\n\n  /// @dev Map of asset identifiers to Asset data.\n  mapping(uint256 assetId => IHub.Asset) internal _assets;\n\n  /// @dev Map of asset identifiers and spoke addresses to Spoke data.\n  mapping(uint256 assetId => mapping(address spoke => IHub.SpokeData)) internal _spokes;\n\n  /// @dev Map of asset identifiers to set of spoke addresses.\n  mapping(uint256 assetId => EnumerableSet.AddressSet) internal _assetToSpokes;\n\n  /// @dev Map of underlying addresses to asset identifiers.\n  mapping(address underlying => uint256 assetId) internal _underlyingToAssetId;\n\n  /// @dev Reserved storage space to allow for future layout updates.\n  uint256[50] private __gap;\n}\n"},"src/hub/interfaces/IHub.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.0;\n\nimport {IAccessManaged} from 'src/dependencies/openzeppelin/IAccessManaged.sol';\nimport {IHubBase} from 'src/hub/interfaces/IHubBase.sol';\n\n/// @title IHub\n/// @author Aave Labs\n/// @notice Full interface for the Hub.\ninterface IHub is IHubBase, IAccessManaged {\n  /// @notice Asset position and configuration data.\n  /// @dev liquidity The liquidity available to be accessed, expressed in asset units.\n  /// @dev realizedFees The amount of fees realized but not yet minted, expressed in asset units.\n  /// @dev decimals The number of decimals of the underlying asset.\n  /// @dev addedShares The total shares added across all spokes.\n  /// @dev swept The outstanding liquidity which has been invested by the reinvestment controller, expressed in asset units.\n  /// @dev premiumOffsetRay The total premium offset across all spokes, used to calculate the premium, expressed in asset units and scaled by RAY.\n  /// @dev drawnShares The total drawn shares across all spokes.\n  /// @dev premiumShares The total premium shares across all spokes.\n  /// @dev liquidityFee The protocol fee charged on drawn and premium liquidity growth, expressed in BPS.\n  /// @dev drawnIndex The drawn index which monotonically increases according to the drawn rate, expressed in RAY.\n  /// @dev drawnRate The rate at which drawn assets grow, expressed in RAY.\n  /// @dev lastUpdateTimestamp The timestamp of the last accrual.\n  /// @dev underlying The address of the underlying asset.\n  /// @dev irStrategy The address of the interest rate strategy.\n  /// @dev reinvestmentController The address of the reinvestment controller.\n  /// @dev feeReceiver The address of the fee receiver spoke.\n  /// @dev deficitRay The amount of outstanding bad debt across all spokes, expressed in asset units and scaled by RAY.\n  struct Asset {\n    uint120 liquidity;\n    uint120 realizedFees;\n    uint8 decimals;\n    //\n    uint120 addedShares;\n    uint120 swept;\n    //\n    int200 premiumOffsetRay;\n    //\n    uint120 drawnShares;\n    uint120 premiumShares;\n    uint16 liquidityFee;\n    //\n    uint120 drawnIndex;\n    uint96 drawnRate;\n    uint40 lastUpdateTimestamp;\n    //\n    address underlying;\n    //\n    address irStrategy;\n    //\n    address reinvestmentController;\n    //\n    address feeReceiver;\n    //\n    uint200 deficitRay;\n  }\n\n  /// @notice Asset configuration. Subset of the `Asset` struct.\n  struct AssetConfig {\n    address feeReceiver;\n    uint16 liquidityFee;\n    address irStrategy;\n    address reinvestmentController;\n  }\n\n  /// @notice Spoke position and configuration data.\n  /// @dev drawnShares The drawn shares of a spoke for a given asset.\n  /// @dev premiumShares The premium shares of a spoke for a given asset.\n  /// @dev premiumOffsetRay The premium offset of a spoke for a given asset, used to calculate the premium, expressed in asset units and scaled by RAY.\n  /// @dev addedShares The added shares of a spoke for a given asset.\n  /// @dev addCap The maximum amount that can be added by a spoke, expressed in whole assets (not scaled by decimals). A value of `MAX_ALLOWED_SPOKE_CAP` indicates no cap.\n  /// @dev drawCap The maximum amount that can be drawn by a spoke, expressed in whole assets (not scaled by decimals). A value of `MAX_ALLOWED_SPOKE_CAP` indicates no cap.\n  /// @dev riskPremiumThreshold The maximum ratio of premium to drawn shares a spoke can have, expressed in BPS. A value of `MAX_RISK_PREMIUM_THRESHOLD` indicates no threshold.\n  /// @dev active True if the Spoke is allowed to perform any action.\n  /// @dev halted True if the Spoke is prevented from performing actions that instantly update liquidity.\n  /// @dev deficitRay The deficit reported by a spoke for a given asset, expressed in asset units and scaled by RAY.\n  struct SpokeData {\n    uint120 drawnShares;\n    uint120 premiumShares;\n    //\n    int200 premiumOffsetRay;\n    //\n    uint120 addedShares;\n    uint40 addCap;\n    uint40 drawCap;\n    uint24 riskPremiumThreshold;\n    bool active;\n    bool halted;\n    //\n    uint200 deficitRay;\n  }\n\n  /// @notice Spoke configuration data. Subset of the `SpokeData` struct.\n  struct SpokeConfig {\n    uint40 addCap;\n    uint40 drawCap;\n    uint24 riskPremiumThreshold;\n    bool active;\n    bool halted;\n  }\n\n  /// @notice Emitted when an asset is added.\n  /// @param assetId The identifier of the asset.\n  /// @param underlying The address of the underlying asset.\n  /// @param decimals The number of decimals of the asset.\n  event AddAsset(uint256 indexed assetId, address indexed underlying, uint8 decimals);\n\n  /// @notice Emitted when an asset is updated.\n  /// @param assetId The identifier of the asset.\n  /// @param drawnIndex The new drawn index of the asset.\n  /// @param drawnRate The new drawn rate of the asset.\n  /// @param accruedFees The accrued fees of the asset since the last mint.\n  event UpdateAsset(\n    uint256 indexed assetId,\n    uint256 drawnIndex,\n    uint256 drawnRate,\n    uint256 accruedFees\n  );\n\n  /// @notice Emitted when an asset configuration is updated.\n  /// @param assetId The identifier of the asset.\n  /// @param config The new asset configuration struct.\n  event UpdateAssetConfig(uint256 indexed assetId, AssetConfig config);\n\n  /// @notice Emitted when a spoke is added.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  event AddSpoke(uint256 indexed assetId, address indexed spoke);\n\n  /// @notice Emitted when a spoke configuration is updated.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param config The new spoke configuration struct.\n  event UpdateSpokeConfig(uint256 indexed assetId, address indexed spoke, SpokeConfig config);\n\n  /// @notice Emitted when fees are minted to the fee receiver spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param feeReceiver The address of the current fee receiver spoke.\n  /// @param shares The amount of shares minted.\n  /// @param assets The amount of assets used to mint the shares.\n  event MintFeeShares(\n    uint256 indexed assetId,\n    address indexed feeReceiver,\n    uint256 shares,\n    uint256 assets\n  );\n\n  /// @notice Emitted when liquidity is invested by the reinvestment controller.\n  /// @param assetId The identifier of the asset.\n  /// @param reinvestmentController The active asset controller.\n  /// @param amount The amount invested.\n  event Sweep(uint256 indexed assetId, address indexed reinvestmentController, uint256 amount);\n\n  /// @notice Emitted when liquidity is reclaimed (from swept liquidity) by the reinvestment controller.\n  /// @param assetId The identifier of the asset.\n  /// @param reinvestmentController The active asset controller.\n  /// @param amount The amount reclaimed.\n  event Reclaim(uint256 indexed assetId, address indexed reinvestmentController, uint256 amount);\n\n  /// @notice Emitted when a deficit is eliminated.\n  /// @param assetId The identifier of the asset.\n  /// @param callerSpoke The spoke that eliminated the deficit using its added shares.\n  /// @param coveredSpoke The spoke for which the deficit was eliminated.\n  /// @param shares The amount of shares removed.\n  /// @param deficitAmountRay The amount of deficit eliminated, expressed in asset units and scaled by RAY.\n  event EliminateDeficit(\n    uint256 indexed assetId,\n    address indexed callerSpoke,\n    address indexed coveredSpoke,\n    uint256 shares,\n    uint256 deficitAmountRay\n  );\n\n  /// @notice Thrown when an underlying asset is already listed.\n  error UnderlyingAlreadyListed();\n\n  /// @notice Thrown when an asset is not listed.\n  error AssetNotListed();\n\n  /// @notice Thrown when the add cap is exceeded.\n  /// @param addCap The current `addCap` of the asset, expressed in whole assets (not scaled by decimals).\n  error AddCapExceeded(uint256 addCap);\n\n  /// @notice Thrown when the available liquidity is insufficient.\n  /// @param liquidity The current available liquidity.\n  error InsufficientLiquidity(uint256 liquidity);\n\n  /// @notice Thrown when the transferred liquidity is insufficient.\n  /// @param liquidityNeeded The amount of additional liquidity needed.\n  error InsufficientTransferred(uint256 liquidityNeeded);\n\n  /// @notice Thrown when the draw cap is exceeded.\n  /// @param drawCap The current `drawCap` of the asset, expressed in whole assets (not scaled by decimals).\n  error DrawCapExceeded(uint256 drawCap);\n\n  /// @notice Thrown when a surplus amount of drawn is restored.\n  /// @param maxAllowedRestore The maximum allowed drawn amount to restore.\n  error SurplusDrawnRestored(uint256 maxAllowedRestore);\n\n  /// @notice Thrown when a surplus amount of premium is restored.\n  /// @param maxAllowedRestoreRay The maximum allowed premium amount to restore, expressed in asset units and scaled by RAY.\n  error SurplusPremiumRayRestored(uint256 maxAllowedRestoreRay);\n\n  /// @notice Thrown when the premium change is invalid.\n  error InvalidPremiumChange();\n\n  /// @notice Thrown when a surplus amount of drawn is reported as deficit.\n  /// @param maxAllowedDeficit The maximum allowed drawn to report as deficit.\n  error SurplusDrawnDeficitReported(uint256 maxAllowedDeficit);\n\n  /// @notice Thrown when a surplus amount of premium is reported as deficit.\n  /// @param maxAllowedDeficitRay The maximum allowed premium to report as deficit, expressed in asset units and scaled by RAY.\n  error SurplusPremiumRayDeficitReported(uint256 maxAllowedDeficitRay);\n\n  /// @notice Thrown when a spoke is not active.\n  error SpokeNotActive();\n\n  /// @notice Thrown when a spoke is halted.\n  error SpokeHalted();\n\n  /// @notice Thrown when a new reinvestment controller is the zero address and the asset has existing swept liquidity.\n  error InvalidReinvestmentController();\n\n  /// @notice Thrown when an invalid reinvestment controller attempts to perform a `sweep` action.\n  error OnlyReinvestmentController();\n\n  /// @notice Thrown when a spoke being added is already listed.\n  error SpokeAlreadyListed();\n\n  /// @notice Thrown when a spoke being updated is not listed.\n  error SpokeNotListed();\n\n  /// @notice Thrown when the amount is invalid.\n  error InvalidAmount();\n\n  /// @notice Thrown when the shares amount is invalid.\n  error InvalidShares();\n\n  /// @notice Thrown when an input address is invalid.\n  error InvalidAddress();\n\n  /// @notice Thrown if the liquidity fee is invalid when updating an asset configuration.\n  error InvalidLiquidityFee();\n\n  /// @notice Thrown when the asset decimals exceed the maximum allowed decimals.\n  error InvalidAssetDecimals();\n\n  /// @notice Thrown if the interest rate strategy or data are invalid when updating an asset configuration.\n  /// @dev The `irData` must be empty if the interest rate strategy is not updated.\n  error InvalidInterestRateStrategy();\n\n  /// @notice Adds a new asset to the Hub.\n  /// @dev The same underlying asset address cannot be added as an asset multiple times.\n  /// @dev The fee receiver is added as a new spoke with maximum add cap and zero draw cap.\n  /// @param underlying The address of the underlying asset.\n  /// @param decimals The number of decimals of `underlying`.\n  /// @param feeReceiver The address of the fee receiver spoke.\n  /// @param irStrategy The address of the interest rate strategy contract.\n  /// @param irData The interest rate data to apply to the given asset encoded in bytes.\n  /// @return The unique identifier of the added asset.\n  function addAsset(\n    address underlying,\n    uint8 decimals,\n    address feeReceiver,\n    address irStrategy,\n    bytes calldata irData\n  ) external returns (uint256);\n\n  /// @notice Updates the configuration of an asset.\n  /// @dev If the fee receiver is updated, adds it as a new spoke with maximum add cap and zero draw cap, and sets old fee receiver caps to zero.\n  /// @dev If the fee receiver is updated, accrued fees are minted as shares before the update if their value exceeds one share.\n  /// @dev If the interest rate strategy is updated, it is configured with `irData`. Otherwise, `irData` must be empty.\n  /// @param assetId The identifier of the asset.\n  /// @param config The new configuration for the asset.\n  /// @param irData The interest rate data to apply to the given asset, encoded in bytes.\n  function updateAssetConfig(\n    uint256 assetId,\n    AssetConfig calldata config,\n    bytes calldata irData\n  ) external;\n\n  /// @notice Registers a new spoke for a specific asset in the Hub.\n  /// @dev Reverts with `SpokeAlreadyListed` if spoke is already listed.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke to add.\n  /// @param params The configuration parameters for the Spoke.\n  function addSpoke(uint256 assetId, address spoke, SpokeConfig calldata params) external;\n\n  /// @notice Updates the configuration of a spoke for a specific asset.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke to update.\n  /// @param config The new configuration for the Spoke.\n  function updateSpokeConfig(uint256 assetId, address spoke, SpokeConfig calldata config) external;\n\n  /// @notice Updates the interest rate strategy for a specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @param irData The interest rate data to apply to the given asset, encoded in bytes.\n  function setInterestRateData(uint256 assetId, bytes calldata irData) external;\n\n  /// @notice Mints shares to the fee receiver from accrued fees.\n  /// @dev No op when fees are worth less than one share.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of shares minted.\n  function mintFeeShares(uint256 assetId) external returns (uint256);\n\n  /// @notice Eliminates deficit by removing added shares of caller spoke.\n  /// @dev Only callable by active and authorized spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount of deficit to eliminate.\n  /// @param spoke The spoke for which the deficit is eliminated.\n  /// @return The amount of added shares removed.\n  /// @return The amount of deficit eliminated, expressed in asset units.\n  function eliminateDeficit(\n    uint256 assetId,\n    uint256 amount,\n    address spoke\n  ) external returns (uint256, uint256);\n\n  /// @notice Allows a spoke to transfer its added shares of an asset to another spoke.\n  /// @dev Only callable by spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of shares to move.\n  /// @param toSpoke The address of the recipient spoke.\n  function transferShares(uint256 assetId, uint256 shares, address toSpoke) external;\n\n  /// @notice Sweeps an amount of liquidity of the corresponding asset and sends it to the configured reinvestment controller.\n  /// @dev The controller handles the actual reinvestment of funds, redistribution of interest, and investment caps.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount to sweep.\n  function sweep(uint256 assetId, uint256 amount) external;\n\n  /// @notice Reclaims an amount of liquidity of the corresponding asset from the configured reinvestment controller.\n  /// @dev The controller can only reclaim up to swept amount. All accrued interest is distributed offchain.\n  /// @dev Underlying assets must be transferred to the Hub before invocation.\n  /// @dev Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount to reclaim.\n  function reclaim(uint256 assetId, uint256 amount) external;\n\n  /// @notice Returns whether the underlying is listed as an asset.\n  /// @param underlying The address of the underlying asset.\n  /// @return True if the underlying asset is listed.\n  function isUnderlyingListed(address underlying) external view returns (bool);\n\n  /// @notice Returns the number of listed assets.\n  function getAssetCount() external view returns (uint256);\n\n  /// @notice Returns information regarding the specified asset.\n  /// @dev `drawnIndex`, `drawnRate` and `lastUpdateTimestamp` can be outdated due to passage of time.\n  /// @param assetId The identifier of the asset.\n  /// @return The asset struct.\n  function getAsset(uint256 assetId) external view returns (Asset memory);\n\n  /// @notice Returns the asset configuration for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The asset configuration struct.\n  function getAssetConfig(uint256 assetId) external view returns (AssetConfig memory);\n\n  /// @notice Returns the accrued fees for the asset, expressed in asset units.\n  /// @dev Accrued fees are excluded from total added assets.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of accrued fees.\n  function getAssetAccruedFees(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the amount of liquidity swept by the reinvestment controller for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of liquidity swept.\n  function getAssetSwept(uint256 assetId) external view returns (uint256);\n\n  /// @notice Calculates the current drawn rate for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The current drawn rate of the asset.\n  function getAssetDrawnRate(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the number of spokes listed for the specified asset.\n  /// @param assetId The identifier of the asset.\n  function getSpokeCount(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns whether the Spoke is listed for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return True if the Spoke is listed.\n  function isSpokeListed(uint256 assetId, address spoke) external view returns (bool);\n\n  /// @notice Returns the address of the Spoke for an asset at the given index.\n  /// @param assetId The identifier of the asset.\n  /// @param index The index of the Spoke.\n  /// @return The address of the Spoke.\n  function getSpokeAddress(uint256 assetId, uint256 index) external view returns (address);\n\n  /// @notice Returns the Spoke data struct.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The spoke data struct.\n  function getSpoke(uint256 assetId, address spoke) external view returns (SpokeData memory);\n\n  /// @notice Returns the Spoke configuration struct.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The spoke configuration struct.\n  function getSpokeConfig(\n    uint256 assetId,\n    address spoke\n  ) external view returns (SpokeConfig memory);\n\n  /// @notice Returns the maximum allowed number of decimals for the underlying asset.\n  /// @return The maximum number of decimals (inclusive).\n  function MAX_ALLOWED_UNDERLYING_DECIMALS() external view returns (uint8);\n\n  /// @notice Returns the minimum allowed number of decimals for the underlying asset.\n  /// @return The minimum number of decimals (inclusive).\n  function MIN_ALLOWED_UNDERLYING_DECIMALS() external view returns (uint8);\n\n  /// @notice Returns the maximum value for any spoke cap (add or draw).\n  /// @dev The value is not inclusive; using the maximum value indicates no cap.\n  /// @return The maximum cap value, expressed in asset units.\n  function MAX_ALLOWED_SPOKE_CAP() external view returns (uint40);\n\n  /// @notice Returns the maximum value for any spoke risk premium threshold.\n  /// @dev The value is not inclusive; using the maximum value indicates no threshold.\n  /// @return The maximum risk premium threshold, expressed in BPS.\n  function MAX_RISK_PREMIUM_THRESHOLD() external view returns (uint24);\n}\n"},"src/hub/libraries/Premium.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\nimport {SafeCast} from 'src/dependencies/openzeppelin/SafeCast.sol';\n\n/// @title Premium library\n/// @author Aave Labs\n/// @notice Implements the premium calculations.\nlibrary Premium {\n  using SafeCast for *;\n\n  /// @notice Calculates the premium debt with full precision.\n  /// @param premiumShares The number of premium shares.\n  /// @param premiumOffsetRay The premium offset, expressed in asset units and scaled by RAY.\n  /// @param drawnIndex The drawn index at which premium debt is calculated.\n  /// @return The premium debt, expressed in asset units and scaled by RAY.\n  function calculatePremiumRay(\n    uint256 premiumShares,\n    int256 premiumOffsetRay,\n    uint256 drawnIndex\n  ) internal pure returns (uint256) {\n    return ((premiumShares * drawnIndex).toInt256() - premiumOffsetRay).toUint256();\n  }\n}\n"},"src/hub/interfaces/IHubBase.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.0;\n\n/// @title IHubBase\n/// @author Aave Labs\n/// @notice Minimal interface for Hub.\ninterface IHubBase {\n  /// @notice Changes to premium owed accounting.\n  /// @dev sharesDelta The change in premium shares.\n  /// @dev offsetRayDelta The change in premium offset, expressed in asset units and scaled by RAY.\n  /// @dev restoredPremiumRay The restored premium, expressed in asset units and scaled by RAY.\n  struct PremiumDelta {\n    int256 sharesDelta;\n    int256 offsetRayDelta;\n    uint256 restoredPremiumRay;\n  }\n\n  /// @notice Emitted on the `add` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param shares The amount of shares added.\n  /// @param amount The amount of assets added.\n  event Add(uint256 indexed assetId, address indexed spoke, uint256 shares, uint256 amount);\n\n  /// @notice Emitted on the `remove` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param shares The amount of shares removed.\n  /// @param amount The amount of assets removed.\n  event Remove(uint256 indexed assetId, address indexed spoke, uint256 shares, uint256 amount);\n\n  /// @notice Emitted on the `draw` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param drawnShares The amount of drawn shares.\n  /// @param drawnAmount The amount of drawn assets.\n  event Draw(\n    uint256 indexed assetId,\n    address indexed spoke,\n    uint256 drawnShares,\n    uint256 drawnAmount\n  );\n\n  /// @notice Emitted on the `restore` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param drawnShares The amount of drawn shares.\n  /// @param premiumDelta The premium delta data struct.\n  /// @param drawnAmount The amount of drawn assets restored.\n  /// @param premiumAmount The amount of premium assets restored.\n  event Restore(\n    uint256 indexed assetId,\n    address indexed spoke,\n    uint256 drawnShares,\n    PremiumDelta premiumDelta,\n    uint256 drawnAmount,\n    uint256 premiumAmount\n  );\n\n  /// @notice Emitted on the `refreshPremium` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param premiumDelta The premium delta data struct.\n  event RefreshPremium(uint256 indexed assetId, address indexed spoke, PremiumDelta premiumDelta);\n\n  /// @notice Emitted on the `reportDeficit` action.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @param drawnShares The amount of drawn shares reported as deficit.\n  /// @param premiumDelta The premium delta data struct.\n  /// @param deficitAmountRay The amount of deficit reported, expressed in asset units and scaled by RAY.\n  event ReportDeficit(\n    uint256 indexed assetId,\n    address indexed spoke,\n    uint256 drawnShares,\n    PremiumDelta premiumDelta,\n    uint256 deficitAmountRay\n  );\n\n  /// @notice Emitted on the `transferShares` action.\n  /// @param assetId The identifier of the asset.\n  /// @param sender The address of the sender.\n  /// @param receiver The address of the receiver.\n  /// @param shares The amount of shares transferred.\n  event TransferShares(\n    uint256 indexed assetId,\n    address indexed sender,\n    address indexed receiver,\n    uint256 shares\n  );\n\n  /// @notice Adds assets on behalf of a user.\n  /// @dev Only callable by active spokes.\n  /// @dev Underlying assets must be transferred to the Hub before invocation.\n  /// @dev Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount of asset liquidity to add.\n  /// @return The amount of shares added.\n  function add(uint256 assetId, uint256 amount) external returns (uint256);\n\n  /// @notice Removes assets on behalf of a user.\n  /// @dev Only callable by active spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount of asset liquidity to remove.\n  /// @param to The address to transfer the assets to.\n  /// @return The amount of shares removed.\n  function remove(uint256 assetId, uint256 amount, address to) external returns (uint256);\n\n  /// @notice Draws assets on behalf of a user.\n  /// @dev Only callable by active spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param amount The amount of assets to draw.\n  /// @param to The address to transfer the underlying assets to.\n  /// @return The amount of drawn shares.\n  function draw(uint256 assetId, uint256 amount, address to) external returns (uint256);\n\n  /// @notice Restores assets on behalf of a user.\n  /// @dev Only callable by active spokes.\n  /// @dev Interest is always paid off first from premium, then from drawn.\n  /// @dev Underlying assets must be transferred to the Hub before invocation.\n  /// @dev Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.\n  /// @param assetId The identifier of the asset.\n  /// @param drawnAmount The drawn amount to restore.\n  /// @param premiumDelta The premium delta to apply which signals premium repayment.\n  /// @return The amount of drawn shares restored.\n  function restore(\n    uint256 assetId,\n    uint256 drawnAmount,\n    PremiumDelta calldata premiumDelta\n  ) external returns (uint256);\n\n  /// @notice Reports an owed amount by the caller Spoke as a deficit.\n  /// @dev Only callable by active spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param drawnAmount The drawn amount to report as deficit.\n  /// @param premiumDelta The premium delta to apply which signals premium deficit.\n  /// @return The amount of drawn shares reported as deficit.\n  /// @return The amount of deficit reported, expressed in asset units.\n  function reportDeficit(\n    uint256 assetId,\n    uint256 drawnAmount,\n    PremiumDelta calldata premiumDelta\n  ) external returns (uint256, uint256);\n\n  /// @notice Refreshes premium accounting.\n  /// @dev Only callable by active spokes.\n  /// @dev Asset and spoke premium should not decrease.\n  /// @param assetId The identifier of the asset.\n  /// @param premiumDelta The change in premium.\n  function refreshPremium(uint256 assetId, PremiumDelta calldata premiumDelta) external;\n\n  /// @notice Transfers an amount of added shares of the caller Spoke to the fee receiver Spoke.\n  /// @dev It can be used to execute one-time payments to the fee receiver Spoke (e.g., liquidation fees).\n  /// @dev Only callable by active spokes.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of shares to pay to feeReceiver.\n  function payFeeShares(uint256 assetId, uint256 shares) external;\n\n  /// @notice Converts the specified amount of assets to shares upon an `add` action.\n  /// @dev Rounds down to the nearest shares amount.\n  /// @dev Defaults to a 1:1 exchange rate.\n  /// @param assetId The identifier of the asset.\n  /// @param assets The amount of assets to convert to shares amount.\n  /// @return The amount of shares converted from assets amount.\n  function previewAddByAssets(uint256 assetId, uint256 assets) external view returns (uint256);\n\n  /// @notice Converts the specified shares amount to assets amount added upon an `add` action.\n  /// @dev Rounds up to the nearest assets amount.\n  /// @dev Defaults to a 1:1 exchange rate.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of shares to convert to assets amount.\n  /// @return The amount of assets converted from shares amount.\n  function previewAddByShares(uint256 assetId, uint256 shares) external view returns (uint256);\n\n  /// @notice Converts the specified amount of assets to shares amount removed upon a `remove` action.\n  /// @dev Rounds up to the nearest shares amount.\n  /// @dev Defaults to a 1:1 exchange rate.\n  /// @param assetId The identifier of the asset.\n  /// @param assets The amount of assets to convert to shares amount.\n  /// @return The amount of shares converted from assets amount.\n  function previewRemoveByAssets(uint256 assetId, uint256 assets) external view returns (uint256);\n\n  /// @notice Converts the specified amount of shares to assets amount removed upon a `remove` action.\n  /// @dev Rounds down to the nearest assets amount.\n  /// @dev Defaults to a 1:1 exchange rate.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of shares to convert to assets amount.\n  /// @return The amount of assets converted from shares amount.\n  function previewRemoveByShares(uint256 assetId, uint256 shares) external view returns (uint256);\n\n  /// @notice Converts the specified amount of assets to shares amount drawn upon a `draw` action.\n  /// @dev Rounds up to the nearest shares amount.\n  /// @param assetId The identifier of the asset.\n  /// @param assets The amount of assets to convert to shares amount.\n  /// @return The amount of shares converted from assets amount.\n  function previewDrawByAssets(uint256 assetId, uint256 assets) external view returns (uint256);\n\n  /// @notice Converts the specified amount of shares to assets amount drawn upon a `draw` action.\n  /// @dev Rounds down to the nearest assets amount.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of shares to convert to assets amount.\n  /// @return The amount of assets converted from shares amount.\n  function previewDrawByShares(uint256 assetId, uint256 shares) external view returns (uint256);\n\n  /// @notice Converts the specified amount of assets to shares amount restored upon a `restore` action.\n  /// @dev Rounds down to the nearest shares amount.\n  /// @param assetId The identifier of the asset.\n  /// @param assets The amount of assets to convert to shares amount.\n  /// @return The amount of shares converted from assets amount.\n  function previewRestoreByAssets(uint256 assetId, uint256 assets) external view returns (uint256);\n\n  /// @notice Converts the specified amount of shares to assets amount restored upon a `restore` action.\n  /// @dev Rounds up to the nearest assets amount.\n  /// @param assetId The identifier of the asset.\n  /// @param shares The amount of drawn shares to convert to assets amount.\n  /// @return The amount of assets converted from shares amount.\n  function previewRestoreByShares(uint256 assetId, uint256 shares) external view returns (uint256);\n\n  /// @notice Returns the asset identifier for the specified underlying asset.\n  /// @dev Reverts with `AssetNotListed` if the underlying is not listed.\n  /// @param underlying The address of the underlying asset.\n  function getAssetId(address underlying) external view returns (uint256);\n\n  /// @notice Returns the underlying address and decimals of the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The underlying address of the asset.\n  /// @return The decimals of the asset.\n  function getAssetUnderlyingAndDecimals(uint256 assetId) external view returns (address, uint8);\n\n  /// @notice Calculates the current drawn index for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The current drawn index of the asset.\n  function getAssetDrawnIndex(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the total amount of the specified asset added to the Hub.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of the asset added.\n  function getAddedAssets(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the total amount of shares of the specified asset added to the Hub.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of shares of the asset added.\n  function getAddedShares(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the amount of owed drawn and premium assets for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of owed drawn assets.\n  /// @return The amount of owed premium assets.\n  function getAssetOwed(uint256 assetId) external view returns (uint256, uint256);\n\n  /// @notice Returns the total amount of assets owed to the Hub.\n  /// @param assetId The identifier of the asset.\n  /// @return The total amount of the assets owed.\n  function getAssetTotalOwed(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the amount of owed premium with full precision for specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of premium owed, expressed in asset units and scaled by RAY.\n  function getAssetPremiumRay(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the amount of drawn shares of the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of drawn shares.\n  function getAssetDrawnShares(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the information regarding premium shares of the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of premium shares owed to the asset.\n  /// @return The premium offset of the asset, expressed in asset units and scaled by RAY.\n  function getAssetPremiumData(uint256 assetId) external view returns (uint256, int256);\n\n  /// @notice Returns the amount of available liquidity for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of available liquidity.\n  function getAssetLiquidity(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the amount of deficit with full precision of the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @return The amount of deficit, expressed in asset units and scaled by RAY.\n  function getAssetDeficitRay(uint256 assetId) external view returns (uint256);\n\n  /// @notice Returns the total amount of the specified assets added to the Hub by the specified spoke.\n  /// @dev If spoke is `asset.feeReceiver`, includes converted `unrealizedFeeShares` in return value.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of added assets.\n  function getSpokeAddedAssets(uint256 assetId, address spoke) external view returns (uint256);\n\n  /// @notice Returns the total amount of shares of the specified asset added to the Hub by the specified spoke.\n  /// @dev If spoke is `asset.feeReceiver`, includes `unrealizedFeeShares` in return value.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of added shares.\n  function getSpokeAddedShares(uint256 assetId, address spoke) external view returns (uint256);\n\n  /// @notice Returns the amount of the specified assets owed to the Hub by the specified spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of owed drawn assets.\n  /// @return The amount of owed premium assets.\n  function getSpokeOwed(uint256 assetId, address spoke) external view returns (uint256, uint256);\n\n  /// @notice Returns the total amount of the specified asset owed to the Hub by the specified spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The total amount of the asset owed.\n  function getSpokeTotalOwed(uint256 assetId, address spoke) external view returns (uint256);\n\n  /// @notice Returns the amount of owed premium with full precision for specified asset and spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of owed premium assets, expressed in asset units and scaled by RAY.\n  function getSpokePremiumRay(uint256 assetId, address spoke) external view returns (uint256);\n\n  /// @notice Returns the amount of drawn shares of the specified asset by the specified spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of drawn shares.\n  function getSpokeDrawnShares(uint256 assetId, address spoke) external view returns (uint256);\n\n  /// @notice Returns the information regarding premium shares of the specified asset for the specified spoke.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of premium shares.\n  /// @return The premium offset, expressed in asset units and scaled by RAY.\n  function getSpokePremiumData(\n    uint256 assetId,\n    address spoke\n  ) external view returns (uint256, int256);\n\n  /// @notice Returns the amount of a given spoke's deficit with full precision for the specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @param spoke The address of the Spoke.\n  /// @return The amount of deficit, expressed in asset units and scaled by RAY.\n  function getSpokeDeficitRay(uint256 assetId, address spoke) external view returns (uint256);\n}\n"},"src/hub/libraries/AssetLogic.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\nimport {SafeCast} from 'src/dependencies/openzeppelin/SafeCast.sol';\nimport {MathUtils} from 'src/libraries/math/MathUtils.sol';\nimport {PercentageMath} from 'src/libraries/math/PercentageMath.sol';\nimport {WadRayMath} from 'src/libraries/math/WadRayMath.sol';\nimport {SharesMath} from 'src/hub/libraries/SharesMath.sol';\nimport {Premium} from 'src/hub/libraries/Premium.sol';\nimport {IBasicInterestRateStrategy} from 'src/hub/interfaces/IBasicInterestRateStrategy.sol';\nimport {IHub} from 'src/hub/interfaces/IHub.sol';\n\n/// @title AssetLogic library\n/// @author Aave Labs\n/// @notice Implements the base logic and share price conversions for asset data.\nlibrary AssetLogic {\n  using AssetLogic for IHub.Asset;\n  using SafeCast for uint256;\n  using MathUtils for uint256;\n  using PercentageMath for uint256;\n  using WadRayMath for *;\n  using SharesMath for uint256;\n\n  /// @notice Converts an amount of shares to the equivalent amount of drawn assets, rounding up.\n  function toDrawnAssetsUp(\n    IHub.Asset storage asset,\n    uint256 shares\n  ) internal view returns (uint256) {\n    return shares.rayMulUp(asset.getDrawnIndex());\n  }\n\n  /// @notice Converts an amount of shares to the equivalent amount of drawn assets, rounding down.\n  function toDrawnAssetsDown(\n    IHub.Asset storage asset,\n    uint256 shares\n  ) internal view returns (uint256) {\n    return shares.rayMulDown(asset.getDrawnIndex());\n  }\n\n  /// @notice Converts an amount of drawn assets to the equivalent amount of shares, rounding up.\n  function toDrawnSharesUp(\n    IHub.Asset storage asset,\n    uint256 assets\n  ) internal view returns (uint256) {\n    return assets.rayDivUp(asset.getDrawnIndex());\n  }\n\n  /// @notice Converts an amount of drawn assets to the equivalent amount of shares, rounding down.\n  function toDrawnSharesDown(\n    IHub.Asset storage asset,\n    uint256 assets\n  ) internal view returns (uint256) {\n    return assets.rayDivDown(asset.getDrawnIndex());\n  }\n\n  /// @notice Returns the total drawn assets amount for the specified asset.\n  function drawn(IHub.Asset storage asset, uint256 drawnIndex) internal view returns (uint256) {\n    return asset.drawnShares.rayMulUp(drawnIndex);\n  }\n\n  /// @notice Returns the total premium amount for the specified asset.\n  function premium(IHub.Asset storage asset, uint256 drawnIndex) internal view returns (uint256) {\n    return\n      Premium\n        .calculatePremiumRay({\n          premiumShares: asset.premiumShares,\n          drawnIndex: drawnIndex,\n          premiumOffsetRay: asset.premiumOffsetRay\n        })\n        .fromRayUp();\n  }\n\n  /// @notice Returns the total amount owed for the specified asset, including drawn and premium.\n  function totalOwed(IHub.Asset storage asset, uint256 drawnIndex) internal view returns (uint256) {\n    return asset.drawn(drawnIndex) + asset.premium(drawnIndex);\n  }\n\n  /// @notice Returns the total added assets for the specified asset.\n  function totalAddedAssets(IHub.Asset storage asset) internal view returns (uint256) {\n    uint256 drawnIndex = asset.getDrawnIndex();\n\n    uint256 aggregatedOwedRay = _calculateAggregatedOwedRay({\n      drawnShares: asset.drawnShares,\n      premiumShares: asset.premiumShares,\n      premiumOffsetRay: asset.premiumOffsetRay,\n      deficitRay: asset.deficitRay,\n      drawnIndex: drawnIndex\n    });\n\n    return\n      asset.liquidity +\n      asset.swept +\n      aggregatedOwedRay.fromRayUp() -\n      asset.realizedFees -\n      asset.getUnrealizedFees(drawnIndex);\n  }\n\n  /// @notice Converts an amount of shares to the equivalent amount of added assets, rounding up.\n  function toAddedAssetsUp(\n    IHub.Asset storage asset,\n    uint256 shares\n  ) internal view returns (uint256) {\n    return shares.toAssetsUp(asset.totalAddedAssets(), asset.addedShares);\n  }\n\n  /// @notice Converts an amount of shares to the equivalent amount of added assets, rounding down.\n  function toAddedAssetsDown(\n    IHub.Asset storage asset,\n    uint256 shares\n  ) internal view returns (uint256) {\n    return shares.toAssetsDown(asset.totalAddedAssets(), asset.addedShares);\n  }\n\n  /// @notice Converts an amount of added assets to the equivalent amount of shares, rounding up.\n  function toAddedSharesUp(\n    IHub.Asset storage asset,\n    uint256 assets\n  ) internal view returns (uint256) {\n    return assets.toSharesUp(asset.totalAddedAssets(), asset.addedShares);\n  }\n\n  /// @notice Converts an amount of added assets to the equivalent amount of shares, rounding down.\n  function toAddedSharesDown(\n    IHub.Asset storage asset,\n    uint256 assets\n  ) internal view returns (uint256) {\n    return assets.toSharesDown(asset.totalAddedAssets(), asset.addedShares);\n  }\n\n  /// @notice Updates the drawn rate of a specified asset.\n  /// @dev Uses last stored index; asset accrual should have already occurred.\n  function updateDrawnRate(IHub.Asset storage asset, uint256 assetId) internal {\n    uint256 drawnIndex = asset.drawnIndex;\n    uint256 newDrawnRate = asset.getDrawnRate(assetId, drawnIndex);\n    asset.drawnRate = newDrawnRate.toUint96();\n\n    emit IHub.UpdateAsset(assetId, drawnIndex, newDrawnRate, asset.realizedFees);\n  }\n\n  /// @notice Accrues interest and fees for the specified asset.\n  function accrue(IHub.Asset storage asset) internal {\n    if (asset.lastUpdateTimestamp == block.timestamp) {\n      return;\n    }\n\n    uint256 drawnIndex = asset.getDrawnIndex();\n    asset.realizedFees += asset.getUnrealizedFees(drawnIndex).toUint120();\n    asset.drawnIndex = drawnIndex.toUint120();\n    asset.lastUpdateTimestamp = block.timestamp.toUint40();\n  }\n\n  /// @notice Calculates the drawn index of a specified asset based on the existing drawn rate and index.\n  function getDrawnIndex(IHub.Asset storage asset) internal view returns (uint256) {\n    uint256 previousIndex = asset.drawnIndex;\n    uint40 lastUpdateTimestamp = asset.lastUpdateTimestamp;\n    if (\n      lastUpdateTimestamp == block.timestamp || (asset.drawnShares == 0 && asset.premiumShares == 0)\n    ) {\n      return previousIndex;\n    }\n    return\n      previousIndex.rayMulUp(\n        MathUtils.calculateLinearInterest(asset.drawnRate, lastUpdateTimestamp)\n      );\n  }\n\n  /// @notice Calculates the drawn rate of a specified asset using the specified drawn index.\n  /// @dev Premium debt is not used in the interest rate calculation.\n  /// @dev Imprecision from downscaling `deficitRay` does not accumulate.\n  function getDrawnRate(\n    IHub.Asset storage asset,\n    uint256 assetId,\n    uint256 drawnIndex\n  ) internal view returns (uint256) {\n    return\n      IBasicInterestRateStrategy(asset.irStrategy).calculateInterestRate({\n        assetId: assetId,\n        liquidity: asset.liquidity,\n        drawn: asset.drawn(drawnIndex),\n        deficit: asset.deficitRay.fromRayUp(),\n        swept: asset.swept\n      });\n  }\n\n  /// @notice Calculates the amount of fees derived from the index growth due to interest accrual.\n  /// @param drawnIndex The current drawn index.\n  function getUnrealizedFees(\n    IHub.Asset storage asset,\n    uint256 drawnIndex\n  ) internal view returns (uint256) {\n    uint256 previousIndex = asset.drawnIndex;\n    if (previousIndex == drawnIndex) {\n      return 0;\n    }\n\n    uint256 liquidityFee = asset.liquidityFee;\n    if (liquidityFee == 0) {\n      return 0;\n    }\n\n    uint120 drawnShares = asset.drawnShares;\n    uint120 premiumShares = asset.premiumShares;\n    int256 premiumOffsetRay = asset.premiumOffsetRay;\n    uint256 deficitRay = asset.deficitRay;\n\n    uint256 aggregatedOwedRayAfter = _calculateAggregatedOwedRay({\n      drawnShares: drawnShares,\n      premiumShares: premiumShares,\n      premiumOffsetRay: premiumOffsetRay,\n      deficitRay: deficitRay,\n      drawnIndex: drawnIndex\n    });\n\n    uint256 aggregatedOwedRayBefore = _calculateAggregatedOwedRay({\n      drawnShares: drawnShares,\n      premiumShares: premiumShares,\n      premiumOffsetRay: premiumOffsetRay,\n      deficitRay: deficitRay,\n      drawnIndex: previousIndex\n    });\n\n    return\n      (aggregatedOwedRayAfter.fromRayUp() - aggregatedOwedRayBefore.fromRayUp()).percentMulDown(\n        liquidityFee\n      );\n  }\n\n  /// @notice Calculates the aggregated owed amount for a specified asset, expressed in asset units and scaled by RAY.\n  function _calculateAggregatedOwedRay(\n    uint256 drawnShares,\n    uint256 premiumShares,\n    int256 premiumOffsetRay,\n    uint256 deficitRay,\n    uint256 drawnIndex\n  ) internal pure returns (uint256) {\n    uint256 premiumRay = Premium.calculatePremiumRay({\n      premiumShares: premiumShares,\n      premiumOffsetRay: premiumOffsetRay,\n      drawnIndex: drawnIndex\n    });\n    return (drawnShares * drawnIndex) + premiumRay + deficitRay;\n  }\n}\n"},"src/hub/libraries/SharesMath.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\nimport {Math} from 'src/dependencies/openzeppelin/Math.sol';\n\n/// @title SharesMath library\n/// @author Aave Labs\n/// @notice Implements the logic to convert between assets and shares.\n/// @dev Utilizes virtual assets and shares to mitigate share manipulation attacks.\nlibrary SharesMath {\n  using Math for uint256;\n\n  uint256 internal constant VIRTUAL_ASSETS = 1e6;\n  uint256 internal constant VIRTUAL_SHARES = 1e6;\n\n  /// @notice Converts an amount of assets to the equivalent amount of shares, rounding down.\n  function toSharesDown(\n    uint256 assets,\n    uint256 totalAssets,\n    uint256 totalShares\n  ) internal pure returns (uint256) {\n    return\n      assets.mulDiv(\n        totalShares + VIRTUAL_SHARES,\n        totalAssets + VIRTUAL_ASSETS,\n        Math.Rounding.Floor\n      );\n  }\n\n  /// @notice Converts an amount of shares to the equivalent amount of assets, rounding down.\n  function toAssetsDown(\n    uint256 shares,\n    uint256 totalAssets,\n    uint256 totalShares\n  ) internal pure returns (uint256) {\n    return\n      shares.mulDiv(\n        totalAssets + VIRTUAL_ASSETS,\n        totalShares + VIRTUAL_SHARES,\n        Math.Rounding.Floor\n      );\n  }\n\n  /// @notice Converts an amount of assets to the equivalent amount of shares, rounding up.\n  function toSharesUp(\n    uint256 assets,\n    uint256 totalAssets,\n    uint256 totalShares\n  ) internal pure returns (uint256) {\n    return\n      assets.mulDiv(totalShares + VIRTUAL_SHARES, totalAssets + VIRTUAL_ASSETS, Math.Rounding.Ceil);\n  }\n\n  /// @notice Converts an amount of shares to the equivalent amount of assets, rounding up.\n  function toAssetsUp(\n    uint256 shares,\n    uint256 totalAssets,\n    uint256 totalShares\n  ) internal pure returns (uint256) {\n    return\n      shares.mulDiv(totalAssets + VIRTUAL_ASSETS, totalShares + VIRTUAL_SHARES, Math.Rounding.Ceil);\n  }\n}\n"},"src/libraries/math/MathUtils.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\nimport {SafeCast} from 'src/dependencies/openzeppelin/SafeCast.sol';\n\n/// @title MathUtils library\n/// @author Aave Labs\nlibrary MathUtils {\n  using SafeCast for uint256;\n\n  uint256 internal constant RAY = 1e27;\n  /// @dev Ignoring leap years\n  uint256 internal constant SECONDS_PER_YEAR = 365 days;\n\n  /// @notice Calculates the interest accumulated using a linear interest rate formula.\n  /// @dev Reverts if `lastUpdateTimestamp` is greater than `block.timestamp`.\n  /// @param rate The interest rate, expressed in RAY.\n  /// @param lastUpdateTimestamp The timestamp to calculate interest rate from.\n  /// @return result The interest rate linearly accumulated during the time delta, expressed in RAY.\n  function calculateLinearInterest(\n    uint96 rate,\n    uint40 lastUpdateTimestamp\n  ) internal view returns (uint256 result) {\n    assembly ('memory-safe') {\n      if gt(lastUpdateTimestamp, timestamp()) {\n        revert(0, 0)\n      }\n      result := sub(timestamp(), lastUpdateTimestamp)\n      result := add(div(mul(rate, result), SECONDS_PER_YEAR), RAY)\n    }\n  }\n\n  /// @notice Returns the smaller of two unsigned integers.\n  function min(uint256 a, uint256 b) internal pure returns (uint256 result) {\n    assembly ('memory-safe') {\n      result := xor(b, mul(xor(a, b), lt(a, b)))\n    }\n  }\n\n  /// @notice Returns the saturating subtraction at zero.\n  function zeroFloorSub(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      c := mul(sub(a, b), gt(a, b))\n    }\n  }\n\n  /// @notice Returns the sum of an unsigned and signed integer.\n  /// @dev Reverts on underflow.\n  function add(uint256 a, int256 b) internal pure returns (uint256) {\n    if (b >= 0) return a + uint256(b);\n    return a - uint256(-b);\n  }\n\n  /// @notice Returns the sum of two unsigned integers.\n  /// @dev Does not revert on overflow.\n  function uncheckedAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n    unchecked {\n      return a + b;\n    }\n  }\n\n  /// @notice Returns the difference of two unsigned integers as a signed integer.\n  function signedSub(uint256 a, uint256 b) internal pure returns (int256) {\n    return a.toInt256() - b.toInt256();\n  }\n\n  /// @notice Returns the difference of two unsigned integers.\n  /// @dev Does not revert on underflow.\n  function uncheckedSub(uint256 a, uint256 b) internal pure returns (uint256) {\n    unchecked {\n      return a - b;\n    }\n  }\n\n  /// @notice Raises an unsigned integer to the power of an unsigned integer.\n  /// @dev Does not revert on overflow.\n  function uncheckedExp(uint256 a, uint256 b) internal pure returns (uint256) {\n    unchecked {\n      return a ** b;\n    }\n  }\n\n  /// @notice Divides `a` by `b`, rounding up.\n  /// @dev Reverts if division by zero.\n  /// @return c = ceil(a / b).\n  function divUp(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      if iszero(b) {\n        revert(0, 0)\n      }\n      c := add(div(a, b), gt(mod(a, b), 0))\n    }\n  }\n\n  /// @notice Multiplies `a` and `b` in 256 bits and divides the result by `c`, rounding down.\n  /// @dev Reverts if division by zero or overflow occurs on intermediate multiplication.\n  /// @return d = floor(a * b / c).\n  function mulDivDown(uint256 a, uint256 b, uint256 c) internal pure returns (uint256 d) {\n    // to avoid overflow, a <= type(uint256).max / b\n    assembly ('memory-safe') {\n      if iszero(c) {\n        revert(0, 0)\n      }\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n      d := div(mul(a, b), c)\n    }\n  }\n\n  /// @notice Multiplies `a` and `b` in 256 bits and divides the result by `c`, rounding up.\n  /// @dev Reverts if division by zero or overflow occurs on intermediate multiplication.\n  /// @return d = ceil(a * b / c).\n  function mulDivUp(uint256 a, uint256 b, uint256 c) internal pure returns (uint256 d) {\n    // to avoid overflow, a <= type(uint256).max / b\n    assembly ('memory-safe') {\n      if iszero(c) {\n        revert(0, 0)\n      }\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n      d := mul(a, b)\n      // add 1 if (a * b) % c > 0 to round up the division of (a * b) by c\n      d := add(div(d, c), gt(mod(d, c), 0))\n    }\n  }\n}\n"},"src/hub/instances/HubInstance.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity 0.8.28;\n\nimport {Hub} from 'src/hub/Hub.sol';\n\n/// @title HubInstance\n/// @author Aave Labs\n/// @notice Implementation contract for the Hub.\ncontract HubInstance is Hub {\n  uint64 public constant HUB_REVISION = 1;\n\n  /// @dev Constructor.\n  constructor() {\n    _disableInitializers();\n  }\n\n  /// @notice Initializer.\n  /// @dev The authority contract must implement the `AccessManaged` interface for access control.\n  /// @param authority The address of the authority contract which manages permissions.\n  function initialize(address authority) external override reinitializer(HUB_REVISION) {\n    require(authority != address(0), InvalidAddress());\n    __AccessManaged_init(authority);\n  }\n}\n"},"src/libraries/math/WadRayMath.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\n/// @title WadRayMath library\n/// @author Aave Labs\n/// @notice Provides utility functions to work with WAD and RAY units with explicit rounding.\nlibrary WadRayMath {\n  uint256 internal constant WAD_DECIMALS = 18;\n  uint256 internal constant WAD = 1e18;\n  uint256 internal constant RAY = 1e27;\n  uint256 internal constant PERCENTAGE_FACTOR = 1e4;\n\n  /// @notice Multiplies two WAD numbers, rounding down.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return c = floor(a * b / WAD), expressed in WAD.\n  function wadMulDown(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / b\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n\n      c := div(mul(a, b), WAD)\n    }\n  }\n\n  /// @notice Multiplies two WAD numbers, rounding up.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return c = ceil(a * b / WAD), expressed in WAD.\n  function wadMulUp(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / b\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n      c := mul(a, b)\n      // Add 1 if (a * b) % WAD > 0 to round up the division of (a * b) by WAD\n      c := add(div(c, WAD), gt(mod(c, WAD), 0))\n    }\n  }\n\n  /// @notice Divides two WAD numbers, rounding down.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return c = floor(a * WAD / b), expressed in WAD.\n  function wadDivDown(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / WAD\n      if or(iszero(b), iszero(iszero(gt(a, div(not(0), WAD))))) {\n        revert(0, 0)\n      }\n\n      c := div(mul(a, WAD), b)\n    }\n  }\n\n  /// @notice Divides two WAD numbers, rounding up.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return c = ceil(a * WAD / b), expressed in WAD.\n  function wadDivUp(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / WAD\n      if or(iszero(b), iszero(iszero(gt(a, div(not(0), WAD))))) {\n        revert(0, 0)\n      }\n      c := mul(a, WAD)\n      // Add 1 if (a * WAD) % b > 0 to round up the division of (a * WAD) by b\n      c := add(div(c, b), gt(mod(c, b), 0))\n    }\n  }\n\n  /// @notice Multiplies two RAY numbers, rounding down.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return c = floor(a * b / RAY), expressed in RAY.\n  function rayMulDown(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / b\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n\n      c := div(mul(a, b), RAY)\n    }\n  }\n\n  /// @notice Multiplies two RAY numbers, rounding up.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return c = ceil(a * b / RAY), expressed in RAY.\n  function rayMulUp(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / b\n      if iszero(or(iszero(b), iszero(gt(a, div(not(0), b))))) {\n        revert(0, 0)\n      }\n      c := mul(a, b)\n      // Add 1 if (a * b) % RAY > 0 to round up the division of (a * b) by RAY\n      c := add(div(c, RAY), gt(mod(c, RAY), 0))\n    }\n  }\n\n  /// @notice Divides two RAY numbers, rounding down.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return c = floor(a * RAY / b), expressed in RAY.\n  function rayDivDown(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / RAY\n      if or(iszero(b), iszero(iszero(gt(a, div(not(0), RAY))))) {\n        revert(0, 0)\n      }\n\n      c := div(mul(a, RAY), b)\n    }\n  }\n\n  /// @notice Divides two RAY numbers, rounding up.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return c = ceil(a * RAY / b), expressed in RAY.\n  function rayDivUp(uint256 a, uint256 b) internal pure returns (uint256 c) {\n    assembly ('memory-safe') {\n      // to avoid overflow, a <= type(uint256).max / RAY\n      if or(iszero(b), iszero(iszero(gt(a, div(not(0), RAY))))) {\n        revert(0, 0)\n      }\n      c := mul(a, RAY)\n      // Add 1 if (a * RAY) % b > 0 to round up the division of (a * RAY) by b\n      c := add(div(c, b), gt(mod(c, b), 0))\n    }\n  }\n\n  /// @notice Casts value to WAD, adding 18 digits of precision.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return b = a * WAD, expressed in WAD.\n  function toWad(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      b := mul(a, WAD)\n\n      // to avoid overflow, b/WAD == a\n      if iszero(eq(div(b, WAD), a)) {\n        revert(0, 0)\n      }\n    }\n  }\n\n  /// @notice Casts value to RAY, adding 27 digits of precision.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return b = a * RAY, expressed in RAY.\n  function toRay(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      b := mul(a, RAY)\n\n      // to avoid overflow, b/RAY == a\n      if iszero(eq(div(b, RAY), a)) {\n        revert(0, 0)\n      }\n    }\n  }\n\n  /// @notice Removes WAD precision from a given value, rounding down.\n  /// @return b = a / WAD.\n  function fromWadDown(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      b := div(a, WAD)\n    }\n  }\n\n  /// @notice Removes RAY precision from a given value, rounding up.\n  /// @return b = ceil(a / RAY).\n  function fromRayUp(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      // add 1 if (a % RAY) > 0 to round up the division of a by RAY\n      b := add(div(a, RAY), gt(mod(a, RAY), 0))\n    }\n  }\n\n  /// @notice Converts value from basis points to WAD.\n  /// @dev Reverts if result overflows.\n  /// @return b = a * (WAD / PERCENTAGE_FACTOR), expressed in WAD.\n  function bpsToWad(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      let factor := div(WAD, PERCENTAGE_FACTOR)\n      b := mul(a, factor)\n      // to avoid overflow, b/factor == a\n      if iszero(eq(div(b, factor), a)) {\n        revert(0, 0)\n      }\n    }\n  }\n\n  /// @notice Converts value from basis points to RAY.\n  /// @dev Reverts if result overflows.\n  /// @return b = a * (RAY / PERCENTAGE_FACTOR), expressed in RAY.\n  function bpsToRay(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      let factor := div(RAY, PERCENTAGE_FACTOR)\n      b := mul(a, factor)\n      // to avoid overflow, b/factor == a\n      if iszero(eq(div(b, factor), a)) {\n        revert(0, 0)\n      }\n    }\n  }\n\n  /// @notice Rounds up a RAY value to the nearest RAY.\n  /// @dev Reverts if result overflows.\n  /// @return b = ceil(a / RAY) * RAY.\n  function roundRayUp(uint256 a) internal pure returns (uint256 b) {\n    assembly ('memory-safe') {\n      // add 1 if (a % RAY) > 0 to round up the division of a by RAY\n      let c := add(div(a, RAY), gt(mod(a, RAY), 0))\n      b := mul(c, RAY)\n      // to avoid overflow, b/RAY == c\n      if iszero(eq(div(b, RAY), c)) {\n        revert(0, 0)\n      }\n    }\n  }\n}\n"},"src/libraries/math/PercentageMath.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.20;\n\n/// @title PercentageMath library\n/// @author Aave Labs\n/// @notice Provides functions to perform percentage calculations with explicit rounding.\n/// @dev Percentages are defined by default with 2 decimals of precision (100.00). The precision is indicated by `PERCENTAGE_FACTOR`.\nlibrary PercentageMath {\n  // Percentage factor expressed in BPS (100.00%)\n  uint256 internal constant PERCENTAGE_FACTOR = 1e4;\n\n  /// @notice Executes a percentage multiplication, rounded down.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return result = floor(value * percentage / PERCENTAGE_FACTOR)\n  function percentMulDown(\n    uint256 value,\n    uint256 percentage\n  ) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / percentage\n    assembly ('memory-safe') {\n      if iszero(or(iszero(percentage), iszero(gt(value, div(not(0), percentage))))) {\n        revert(0, 0)\n      }\n\n      result := div(mul(value, percentage), PERCENTAGE_FACTOR)\n    }\n  }\n\n  /// @notice Executes a percentage multiplication, rounded up.\n  /// @dev Reverts if intermediate multiplication overflows.\n  /// @return result = ceil(value * percentage / PERCENTAGE_FACTOR)\n  function percentMulUp(uint256 value, uint256 percentage) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / percentage\n    assembly ('memory-safe') {\n      if iszero(or(iszero(percentage), iszero(gt(value, div(not(0), percentage))))) {\n        revert(0, 0)\n      }\n      result := mul(value, percentage)\n\n      // Add 1 if (value * percentage) % PERCENTAGE_FACTOR > 0 to round up the division of (value * percentage) by PERCENTAGE_FACTOR\n      result := add(div(result, PERCENTAGE_FACTOR), gt(mod(result, PERCENTAGE_FACTOR), 0))\n    }\n  }\n\n  /// @notice Executes a percentage division, rounded down.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return result = floor(value * PERCENTAGE_FACTOR / percentage)\n  function percentDivDown(\n    uint256 value,\n    uint256 percentage\n  ) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / PERCENTAGE_FACTOR\n    assembly ('memory-safe') {\n      if or(iszero(percentage), iszero(iszero(gt(value, div(not(0), PERCENTAGE_FACTOR))))) {\n        revert(0, 0)\n      }\n\n      result := div(mul(value, PERCENTAGE_FACTOR), percentage)\n    }\n  }\n\n  /// @notice Executes a percentage division, rounded up.\n  /// @dev Reverts if division by zero or intermediate multiplication overflows.\n  /// @return result = ceil(value * PERCENTAGE_FACTOR / percentage)\n  function percentDivUp(uint256 value, uint256 percentage) internal pure returns (uint256 result) {\n    // to avoid overflow, value <= type(uint256).max / PERCENTAGE_FACTOR\n    assembly ('memory-safe') {\n      if or(iszero(percentage), iszero(iszero(gt(value, div(not(0), PERCENTAGE_FACTOR))))) {\n        revert(0, 0)\n      }\n      result := mul(value, PERCENTAGE_FACTOR)\n\n      // Add 1 if (value * PERCENTAGE_FACTOR) % percentage > 0 to round up the division of (value * PERCENTAGE_FACTOR) by percentage\n      result := add(div(result, percentage), gt(mod(result, percentage), 0))\n    }\n  }\n\n  /// @notice Truncates number from BPS precision, rounding down.\n  function fromBpsDown(uint256 value) internal pure returns (uint256) {\n    return value / PERCENTAGE_FACTOR;\n  }\n}\n"},"src/dependencies/openzeppelin/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from './Panic.sol';\nimport {SafeCast} from './SafeCast.sol';\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n  enum Rounding {\n    Floor, // Toward negative infinity\n    Ceil, // Toward positive infinity\n    Trunc, // Toward zero\n    Expand // Away from zero\n  }\n\n  /**\n   * @dev Return the 512-bit addition of two uint256.\n   *\n   * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n   */\n  function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n    assembly ('memory-safe') {\n      low := add(a, b)\n      high := lt(low, a)\n    }\n  }\n\n  /**\n   * @dev Return the 512-bit multiplication of two uint256.\n   *\n   * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n   */\n  function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n    // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n    // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n    // variables such that product = high * 2²⁵⁶ + low.\n    assembly ('memory-safe') {\n      let mm := mulmod(a, b, not(0))\n      low := mul(a, b)\n      high := sub(sub(mm, low), lt(mm, low))\n    }\n  }\n\n  /**\n   * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n   */\n  function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n    unchecked {\n      uint256 c = a + b;\n      success = c >= a;\n      result = c * SafeCast.toUint(success);\n    }\n  }\n\n  /**\n   * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n   */\n  function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n    unchecked {\n      uint256 c = a - b;\n      success = c <= a;\n      result = c * SafeCast.toUint(success);\n    }\n  }\n\n  /**\n   * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n   */\n  function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n    unchecked {\n      uint256 c = a * b;\n      assembly ('memory-safe') {\n        // Only true when the multiplication doesn't overflow\n        // (c / a == b) || (a == 0)\n        success := or(eq(div(c, a), b), iszero(a))\n      }\n      // equivalent to: success ? c : 0\n      result = c * SafeCast.toUint(success);\n    }\n  }\n\n  /**\n   * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n   */\n  function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n    unchecked {\n      success = b > 0;\n      assembly ('memory-safe') {\n        // The `DIV` opcode returns zero when the denominator is 0.\n        result := div(a, b)\n      }\n    }\n  }\n\n  /**\n   * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n   */\n  function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n    unchecked {\n      success = b > 0;\n      assembly ('memory-safe') {\n        // The `MOD` opcode returns zero when the denominator is 0.\n        result := mod(a, b)\n      }\n    }\n  }\n\n  /**\n   * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n   */\n  function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n    (bool success, uint256 result) = tryAdd(a, b);\n    return ternary(success, result, type(uint256).max);\n  }\n\n  /**\n   * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n   */\n  function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n    (, uint256 result) = trySub(a, b);\n    return result;\n  }\n\n  /**\n   * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n   */\n  function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n    (bool success, uint256 result) = tryMul(a, b);\n    return ternary(success, result, type(uint256).max);\n  }\n\n  /**\n   * @dev Branchless ternary evaluation for `condition ? a : b`. Gas costs are constant.\n   *\n   * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n   * However, the compiler may optimize Solidity ternary operations (i.e. `condition ? a : b`) to only compute\n   * one branch when needed, making this function more expensive.\n   */\n  function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n    unchecked {\n      // branchless ternary works because:\n      // b ^ (a ^ b) == a\n      // b ^ 0 == b\n      return b ^ ((a ^ b) * SafeCast.toUint(condition));\n    }\n  }\n\n  /**\n   * @dev Returns the largest of two numbers.\n   */\n  function max(uint256 a, uint256 b) internal pure returns (uint256) {\n    return ternary(a > b, a, b);\n  }\n\n  /**\n   * @dev Returns the smallest of two numbers.\n   */\n  function min(uint256 a, uint256 b) internal pure returns (uint256) {\n    return ternary(a < b, a, b);\n  }\n\n  /**\n   * @dev Returns the average of two numbers. The result is rounded towards\n   * zero.\n   */\n  function average(uint256 a, uint256 b) internal pure returns (uint256) {\n    // (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 towards infinity instead\n   * of rounding towards zero.\n   */\n  function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n    if (b == 0) {\n      // Guarantee the same behavior as in a regular Solidity division.\n      Panic.panic(Panic.DIVISION_BY_ZERO);\n    }\n\n    // The following calculation ensures accurate ceiling division without overflow.\n    // Since a is non-zero, (a - 1) / b will not overflow.\n    // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n    // but the largest value we can obtain is type(uint256).max - 1, which happens\n    // when a = type(uint256).max and b = 1.\n    unchecked {\n      return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n    }\n  }\n\n  /**\n   * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n   * denominator == 0.\n   *\n   * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n   * Uniswap Labs also under MIT license.\n   */\n  function mulDiv(\n    uint256 x,\n    uint256 y,\n    uint256 denominator\n  ) internal pure returns (uint256 result) {\n    unchecked {\n      (uint256 high, uint256 low) = mul512(x, y);\n\n      // Handle non-overflow cases, 256 by 256 division.\n      if (high == 0) {\n        // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n        // The surrounding unchecked block does not change this fact.\n        // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n        return low / denominator;\n      }\n\n      // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n      if (denominator <= high) {\n        Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n      }\n\n      ///////////////////////////////////////////////\n      // 512 by 256 division.\n      ///////////////////////////////////////////////\n\n      // Make division exact by subtracting the remainder from [high low].\n      uint256 remainder;\n      assembly ('memory-safe') {\n        // Compute remainder using mulmod.\n        remainder := mulmod(x, y, denominator)\n\n        // Subtract 256 bit number from 512 bit number.\n        high := sub(high, gt(remainder, low))\n        low := sub(low, remainder)\n      }\n\n      // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n      // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n      uint256 twos = denominator & (0 - denominator);\n      assembly ('memory-safe') {\n        // Divide denominator by twos.\n        denominator := div(denominator, twos)\n\n        // Divide [high low] by twos.\n        low := div(low, twos)\n\n        // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n        twos := add(div(sub(0, twos), twos), 1)\n      }\n\n      // Shift in bits from high into low.\n      low |= high * twos;\n\n      // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n      // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n      // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n      uint256 inverse = (3 * denominator) ^ 2;\n\n      // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n      // works in modular arithmetic, doubling the correct bits in each step.\n      inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n      inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n      inverse *= 2 - denominator * inverse; // inverse mod 2³²\n      inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n      inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n      inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n      // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n      // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n      // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n      // is no longer required.\n      result = low * inverse;\n      return result;\n    }\n  }\n\n  /**\n   * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n   */\n  function mulDiv(\n    uint256 x,\n    uint256 y,\n    uint256 denominator,\n    Rounding rounding\n  ) internal pure returns (uint256) {\n    return\n      mulDiv(x, y, denominator) +\n      SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n  }\n\n  /**\n   * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n   */\n  function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n    unchecked {\n      (uint256 high, uint256 low) = mul512(x, y);\n      if (high >= 1 << n) {\n        Panic.panic(Panic.UNDER_OVERFLOW);\n      }\n      return (high << (256 - n)) | (low >> n);\n    }\n  }\n\n  /**\n   * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n   */\n  function mulShr(\n    uint256 x,\n    uint256 y,\n    uint8 n,\n    Rounding rounding\n  ) internal pure returns (uint256) {\n    return\n      mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n  }\n\n  /**\n   * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n   *\n   * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n   * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n   *\n   * If the input value is not inversible, 0 is returned.\n   *\n   * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n   * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n   */\n  function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n    unchecked {\n      if (n == 0) return 0;\n\n      // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n      // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n      // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n      // ax + ny = 1\n      // ax = 1 + (-y)n\n      // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n      // If the remainder is 0 the gcd is n right away.\n      uint256 remainder = a % n;\n      uint256 gcd = n;\n\n      // Therefore the initial coefficients are:\n      // ax + ny = gcd(a, n) = n\n      // 0a + 1n = n\n      int256 x = 0;\n      int256 y = 1;\n\n      while (remainder != 0) {\n        uint256 quotient = gcd / remainder;\n\n        (gcd, remainder) = (\n          // The old remainder is the next gcd to try.\n          remainder,\n          // Compute the next remainder.\n          // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n          // where gcd is at most n (capped to type(uint256).max)\n          gcd - remainder * quotient\n        );\n\n        (x, y) = (\n          // Increment the coefficient of a.\n          y,\n          // Decrement the coefficient of n.\n          // Can overflow, but the result is casted to uint256 so that the\n          // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n          x - y * int256(quotient)\n        );\n      }\n\n      if (gcd != 1) return 0; // No inverse exists.\n      return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n    }\n  }\n\n  /**\n   * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n   *\n   * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n   * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n   * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n   *\n   * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n   */\n  function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n    unchecked {\n      return Math.modExp(a, p - 2, p);\n    }\n  }\n\n  /**\n   * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n   *\n   * Requirements:\n   * - modulus can't be zero\n   * - underlying staticcall to precompile must succeed\n   *\n   * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n   * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n   * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n   * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n   * interpreted as 0.\n   */\n  function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n    (bool success, uint256 result) = tryModExp(b, e, m);\n    if (!success) {\n      Panic.panic(Panic.DIVISION_BY_ZERO);\n    }\n    return result;\n  }\n\n  /**\n   * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n   * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n   * to operate modulo 0 or if the underlying precompile reverted.\n   *\n   * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n   * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n   * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n   * of a revert, but the result may be incorrectly interpreted as 0.\n   */\n  function tryModExp(\n    uint256 b,\n    uint256 e,\n    uint256 m\n  ) internal view returns (bool success, uint256 result) {\n    if (m == 0) return (false, 0);\n    assembly ('memory-safe') {\n      let ptr := mload(0x40)\n      // | Offset    | Content    | Content (Hex)                                                      |\n      // |-----------|------------|--------------------------------------------------------------------|\n      // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n      // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n      // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n      // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n      // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n      // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n      mstore(ptr, 0x20)\n      mstore(add(ptr, 0x20), 0x20)\n      mstore(add(ptr, 0x40), 0x20)\n      mstore(add(ptr, 0x60), b)\n      mstore(add(ptr, 0x80), e)\n      mstore(add(ptr, 0xa0), m)\n\n      // Given the result < m, it's guaranteed to fit in 32 bytes,\n      // so we can use the memory scratch space located at offset 0.\n      success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n      result := mload(0x00)\n    }\n  }\n\n  /**\n   * @dev Variant of {modExp} that supports inputs of arbitrary length.\n   */\n  function modExp(\n    bytes memory b,\n    bytes memory e,\n    bytes memory m\n  ) internal view returns (bytes memory) {\n    (bool success, bytes memory result) = tryModExp(b, e, m);\n    if (!success) {\n      Panic.panic(Panic.DIVISION_BY_ZERO);\n    }\n    return result;\n  }\n\n  /**\n   * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n   */\n  function tryModExp(\n    bytes memory b,\n    bytes memory e,\n    bytes memory m\n  ) internal view returns (bool success, bytes memory result) {\n    if (_zeroBytes(m)) return (false, new bytes(0));\n\n    uint256 mLen = m.length;\n\n    // Encode call args in result and move the free memory pointer\n    result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n    assembly ('memory-safe') {\n      let dataPtr := add(result, 0x20)\n      // Write result on top of args to avoid allocating extra memory.\n      success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n      // Overwrite the length.\n      // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n      mstore(result, mLen)\n      // Set the memory pointer after the returned data.\n      mstore(0x40, add(dataPtr, mLen))\n    }\n  }\n\n  /**\n   * @dev Returns whether the provided byte array is zero.\n   */\n  function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n    for (uint256 i = 0; i < byteArray.length; ++i) {\n      if (byteArray[i] != 0) {\n        return false;\n      }\n    }\n    return true;\n  }\n\n  /**\n   * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n   * towards zero.\n   *\n   * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n   * using integer operations.\n   */\n  function sqrt(uint256 a) internal pure returns (uint256) {\n    unchecked {\n      // Take care of easy edge cases when a == 0 or a == 1\n      if (a <= 1) {\n        return a;\n      }\n\n      // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n      // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n      // the current value as `ε_n = | x_n - sqrt(a) |`.\n      //\n      // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n      // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n      // bigger than any uint256.\n      //\n      // By noticing that\n      // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n      // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n      // to the msb function.\n      uint256 aa = a;\n      uint256 xn = 1;\n\n      if (aa >= (1 << 128)) {\n        aa >>= 128;\n        xn <<= 64;\n      }\n      if (aa >= (1 << 64)) {\n        aa >>= 64;\n        xn <<= 32;\n      }\n      if (aa >= (1 << 32)) {\n        aa >>= 32;\n        xn <<= 16;\n      }\n      if (aa >= (1 << 16)) {\n        aa >>= 16;\n        xn <<= 8;\n      }\n      if (aa >= (1 << 8)) {\n        aa >>= 8;\n        xn <<= 4;\n      }\n      if (aa >= (1 << 4)) {\n        aa >>= 4;\n        xn <<= 2;\n      }\n      if (aa >= (1 << 2)) {\n        xn <<= 1;\n      }\n\n      // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n      //\n      // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n      // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n      // This is going to be our x_0 (and ε_0)\n      xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n      // From here, Newton's method give us:\n      // x_{n+1} = (x_n + a / x_n) / 2\n      //\n      // One should note that:\n      // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n      //              = ((x_n² + a) / (2 * x_n))² - a\n      //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n      //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n      //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n      //              = (x_n² - a)² / (2 * x_n)²\n      //              = ((x_n² - a) / (2 * x_n))²\n      //              ≥ 0\n      // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n      //\n      // This gives us the proof of quadratic convergence of the sequence:\n      // ε_{n+1} = | x_{n+1} - sqrt(a) |\n      //         = | (x_n + a / x_n) / 2 - sqrt(a) |\n      //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n      //         = | (x_n - sqrt(a))² / (2 * x_n) |\n      //         = | ε_n² / (2 * x_n) |\n      //         = ε_n² / | (2 * x_n) |\n      //\n      // For the first iteration, we have a special case where x_0 is known:\n      // ε_1 = ε_0² / | (2 * x_0) |\n      //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n      //     ≤ 2**(2*e-4) / (3 * 2**(e-1))\n      //     ≤ 2**(e-3) / 3\n      //     ≤ 2**(e-3-log2(3))\n      //     ≤ 2**(e-4.5)\n      //\n      // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n      // ε_{n+1} = ε_n² / | (2 * x_n) |\n      //         ≤ (2**(e-k))² / (2 * 2**(e-1))\n      //         ≤ 2**(2*e-2*k) / 2**e\n      //         ≤ 2**(e-2*k)\n      xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above\n      xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5\n      xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9\n      xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18\n      xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36\n      xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72\n\n      // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n      // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n      // sqrt(a) or sqrt(a) + 1.\n      return xn - SafeCast.toUint(xn > a / xn);\n    }\n  }\n\n  /**\n   * @dev Calculates sqrt(a), following the selected rounding direction.\n   */\n  function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n    unchecked {\n      uint256 result = sqrt(a);\n      return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n    }\n  }\n\n  /**\n   * @dev Return the log in base 2 of a positive value rounded towards zero.\n   * Returns 0 if given 0.\n   */\n  function log2(uint256 x) internal pure returns (uint256 r) {\n    // If value has upper 128 bits set, log2 result is at least 128\n    r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n    // If upper 64 bits of 128-bit half set, add 64 to result\n    r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n    // If upper 32 bits of 64-bit half set, add 32 to result\n    r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n    // If upper 16 bits of 32-bit half set, add 16 to result\n    r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n    // If upper 8 bits of 16-bit half set, add 8 to result\n    r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n    // If upper 4 bits of 8-bit half set, add 4 to result\n    r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n    // Shifts value right by the current result and use it as an index into this lookup table:\n    //\n    // | x (4 bits) |  index  | table[index] = MSB position |\n    // |------------|---------|-----------------------------|\n    // |    0000    |    0    |        table[0] = 0         |\n    // |    0001    |    1    |        table[1] = 0         |\n    // |    0010    |    2    |        table[2] = 1         |\n    // |    0011    |    3    |        table[3] = 1         |\n    // |    0100    |    4    |        table[4] = 2         |\n    // |    0101    |    5    |        table[5] = 2         |\n    // |    0110    |    6    |        table[6] = 2         |\n    // |    0111    |    7    |        table[7] = 2         |\n    // |    1000    |    8    |        table[8] = 3         |\n    // |    1001    |    9    |        table[9] = 3         |\n    // |    1010    |   10    |        table[10] = 3        |\n    // |    1011    |   11    |        table[11] = 3        |\n    // |    1100    |   12    |        table[12] = 3        |\n    // |    1101    |   13    |        table[13] = 3        |\n    // |    1110    |   14    |        table[14] = 3        |\n    // |    1111    |   15    |        table[15] = 3        |\n    //\n    // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n    assembly ('memory-safe') {\n      r := or(\n        r,\n        byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000)\n      )\n    }\n  }\n\n  /**\n   * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n   * Returns 0 if given 0.\n   */\n  function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n    unchecked {\n      uint256 result = log2(value);\n      return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n    }\n  }\n\n  /**\n   * @dev Return the log in base 10 of a positive value rounded towards zero.\n   * Returns 0 if given 0.\n   */\n  function log10(uint256 value) internal pure returns (uint256) {\n    uint256 result = 0;\n    unchecked {\n      if (value >= 10 ** 64) {\n        value /= 10 ** 64;\n        result += 64;\n      }\n      if (value >= 10 ** 32) {\n        value /= 10 ** 32;\n        result += 32;\n      }\n      if (value >= 10 ** 16) {\n        value /= 10 ** 16;\n        result += 16;\n      }\n      if (value >= 10 ** 8) {\n        value /= 10 ** 8;\n        result += 8;\n      }\n      if (value >= 10 ** 4) {\n        value /= 10 ** 4;\n        result += 4;\n      }\n      if (value >= 10 ** 2) {\n        value /= 10 ** 2;\n        result += 2;\n      }\n      if (value >= 10 ** 1) {\n        result += 1;\n      }\n    }\n    return result;\n  }\n\n  /**\n   * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n   * Returns 0 if given 0.\n   */\n  function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n    unchecked {\n      uint256 result = log10(value);\n      return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n    }\n  }\n\n  /**\n   * @dev Return the log in base 256 of a positive value rounded towards zero.\n   * Returns 0 if given 0.\n   *\n   * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n   */\n  function log256(uint256 x) internal pure returns (uint256 r) {\n    // If value has upper 128 bits set, log2 result is at least 128\n    r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n    // If upper 64 bits of 128-bit half set, add 64 to result\n    r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n    // If upper 32 bits of 64-bit half set, add 32 to result\n    r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n    // If upper 16 bits of 32-bit half set, add 16 to result\n    r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n    // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n    return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n  }\n\n  /**\n   * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n   * Returns 0 if given 0.\n   */\n  function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n    unchecked {\n      uint256 result = log256(value);\n      return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n    }\n  }\n\n  /**\n   * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n   */\n  function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n    return uint8(rounding) % 2 == 1;\n  }\n\n  /**\n   * @dev Counts the number of leading zero bits in a uint256.\n   */\n  function clz(uint256 x) internal pure returns (uint256) {\n    return ternary(x == 0, 256, 255 - log2(x));\n  }\n}\n"},"src/dependencies/openzeppelin/Panic.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n *      using Panic for uint256;\n *\n *      // Use any of the declared internal constants\n *      function foo() { Panic.GENERIC.panic(); }\n *\n *      // Alternatively\n *      function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n  /// @dev generic / unspecified error\n  uint256 internal constant GENERIC = 0x00;\n  /// @dev used by the assert() builtin\n  uint256 internal constant ASSERT = 0x01;\n  /// @dev arithmetic underflow or overflow\n  uint256 internal constant UNDER_OVERFLOW = 0x11;\n  /// @dev division or modulo by zero\n  uint256 internal constant DIVISION_BY_ZERO = 0x12;\n  /// @dev enum conversion error\n  uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n  /// @dev invalid encoding in storage\n  uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n  /// @dev empty array pop\n  uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n  /// @dev array out of bounds access\n  uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n  /// @dev resource error (too large allocation or too large array)\n  uint256 internal constant RESOURCE_ERROR = 0x41;\n  /// @dev calling invalid internal function\n  uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n  /// @dev Reverts with a panic code. Recommended to use with\n  /// the internal constants with predefined codes.\n  function panic(uint256 code) internal pure {\n    assembly ('memory-safe') {\n      mstore(0x00, 0x4e487b71)\n      mstore(0x20, code)\n      revert(0x1c, 0x24)\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/Arrays.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/Arrays.sol)\n// This file was procedurally generated from scripts/generate/templates/Arrays.js.\n\npragma solidity ^0.8.24;\n\nimport {Comparators} from './Comparators.sol';\nimport {SlotDerivation} from './SlotDerivation.sol';\nimport {StorageSlot} from './StorageSlot.sol';\nimport {Math} from './Math.sol';\n\n/**\n * @dev Collection of functions related to array types.\n */\nlibrary Arrays {\n  using SlotDerivation for bytes32;\n  using StorageSlot for bytes32;\n\n  /**\n   * @dev Sort an array of uint256 (in memory) following the provided comparator function.\n   *\n   * This function does the sorting \"in place\", meaning that it overrides the input. The object is returned for\n   * convenience, but that returned value can be discarded safely if the caller has a memory pointer to the array.\n   *\n   * NOTE: this function's cost is `O(n · log(n))` in average and `O(n²)` in the worst case, with n the length of the\n   * array. Using it in view functions that are executed through `eth_call` is safe, but one should be very careful\n   * when executing this as part of a transaction. If the array being sorted is too large, the sort operation may\n   * consume more gas than is available in a block, leading to potential DoS.\n   *\n   * IMPORTANT: Consider memory side-effects when using custom comparator functions that access memory in an unsafe way.\n   */\n  function sort(\n    uint256[] memory array,\n    function(uint256, uint256) pure returns (bool) comp\n  ) internal pure returns (uint256[] memory) {\n    _quickSort(_begin(array), _end(array), comp);\n    return array;\n  }\n\n  /**\n   * @dev Variant of {sort} that sorts an array of uint256 in increasing order.\n   */\n  function sort(uint256[] memory array) internal pure returns (uint256[] memory) {\n    sort(array, Comparators.lt);\n    return array;\n  }\n\n  /**\n   * @dev Sort an array of address (in memory) following the provided comparator function.\n   *\n   * This function does the sorting \"in place\", meaning that it overrides the input. The object is returned for\n   * convenience, but that returned value can be discarded safely if the caller has a memory pointer to the array.\n   *\n   * NOTE: this function's cost is `O(n · log(n))` in average and `O(n²)` in the worst case, with n the length of the\n   * array. Using it in view functions that are executed through `eth_call` is safe, but one should be very careful\n   * when executing this as part of a transaction. If the array being sorted is too large, the sort operation may\n   * consume more gas than is available in a block, leading to potential DoS.\n   *\n   * IMPORTANT: Consider memory side-effects when using custom comparator functions that access memory in an unsafe way.\n   */\n  function sort(\n    address[] memory array,\n    function(address, address) pure returns (bool) comp\n  ) internal pure returns (address[] memory) {\n    sort(_castToUint256Array(array), _castToUint256Comp(comp));\n    return array;\n  }\n\n  /**\n   * @dev Variant of {sort} that sorts an array of address in increasing order.\n   */\n  function sort(address[] memory array) internal pure returns (address[] memory) {\n    sort(_castToUint256Array(array), Comparators.lt);\n    return array;\n  }\n\n  /**\n   * @dev Sort an array of bytes32 (in memory) following the provided comparator function.\n   *\n   * This function does the sorting \"in place\", meaning that it overrides the input. The object is returned for\n   * convenience, but that returned value can be discarded safely if the caller has a memory pointer to the array.\n   *\n   * NOTE: this function's cost is `O(n · log(n))` in average and `O(n²)` in the worst case, with n the length of the\n   * array. Using it in view functions that are executed through `eth_call` is safe, but one should be very careful\n   * when executing this as part of a transaction. If the array being sorted is too large, the sort operation may\n   * consume more gas than is available in a block, leading to potential DoS.\n   *\n   * IMPORTANT: Consider memory side-effects when using custom comparator functions that access memory in an unsafe way.\n   */\n  function sort(\n    bytes32[] memory array,\n    function(bytes32, bytes32) pure returns (bool) comp\n  ) internal pure returns (bytes32[] memory) {\n    sort(_castToUint256Array(array), _castToUint256Comp(comp));\n    return array;\n  }\n\n  /**\n   * @dev Variant of {sort} that sorts an array of bytes32 in increasing order.\n   */\n  function sort(bytes32[] memory array) internal pure returns (bytes32[] memory) {\n    sort(_castToUint256Array(array), Comparators.lt);\n    return array;\n  }\n\n  /**\n   * @dev Performs a quick sort of a segment of memory. The segment sorted starts at `begin` (inclusive), and stops\n   * at end (exclusive). Sorting follows the `comp` comparator.\n   *\n   * Invariant: `begin <= end`. This is the case when initially called by {sort} and is preserved in subcalls.\n   *\n   * IMPORTANT: Memory locations between `begin` and `end` are not validated/zeroed. This function should\n   * be used only if the limits are within a memory array.\n   */\n  function _quickSort(\n    uint256 begin,\n    uint256 end,\n    function(uint256, uint256) pure returns (bool) comp\n  ) private pure {\n    unchecked {\n      if (end - begin < 0x40) return;\n\n      // Use first element as pivot\n      uint256 pivot = _mload(begin);\n      // Position where the pivot should be at the end of the loop\n      uint256 pos = begin;\n\n      for (uint256 it = begin + 0x20; it < end; it += 0x20) {\n        if (comp(_mload(it), pivot)) {\n          // If the value stored at the iterator's position comes before the pivot, we increment the\n          // position of the pivot and move the value there.\n          pos += 0x20;\n          _swap(pos, it);\n        }\n      }\n\n      _swap(begin, pos); // Swap pivot into place\n      _quickSort(begin, pos, comp); // Sort the left side of the pivot\n      _quickSort(pos + 0x20, end, comp); // Sort the right side of the pivot\n    }\n  }\n\n  /**\n   * @dev Pointer to the memory location of the first element of `array`.\n   */\n  function _begin(uint256[] memory array) private pure returns (uint256 ptr) {\n    assembly ('memory-safe') {\n      ptr := add(array, 0x20)\n    }\n  }\n\n  /**\n   * @dev Pointer to the memory location of the first memory word (32bytes) after `array`. This is the memory word\n   * that comes just after the last element of the array.\n   */\n  function _end(uint256[] memory array) private pure returns (uint256 ptr) {\n    unchecked {\n      return _begin(array) + array.length * 0x20;\n    }\n  }\n\n  /**\n   * @dev Load memory word (as a uint256) at location `ptr`.\n   */\n  function _mload(uint256 ptr) private pure returns (uint256 value) {\n    assembly {\n      value := mload(ptr)\n    }\n  }\n\n  /**\n   * @dev Swaps the elements memory location `ptr1` and `ptr2`.\n   */\n  function _swap(uint256 ptr1, uint256 ptr2) private pure {\n    assembly {\n      let value1 := mload(ptr1)\n      let value2 := mload(ptr2)\n      mstore(ptr1, value2)\n      mstore(ptr2, value1)\n    }\n  }\n\n  /// @dev Helper: low level cast address memory array to uint256 memory array\n  function _castToUint256Array(\n    address[] memory input\n  ) private pure returns (uint256[] memory output) {\n    assembly {\n      output := input\n    }\n  }\n\n  /// @dev Helper: low level cast bytes32 memory array to uint256 memory array\n  function _castToUint256Array(\n    bytes32[] memory input\n  ) private pure returns (uint256[] memory output) {\n    assembly {\n      output := input\n    }\n  }\n\n  /// @dev Helper: low level cast address comp function to uint256 comp function\n  function _castToUint256Comp(\n    function(address, address) pure returns (bool) input\n  ) private pure returns (function(uint256, uint256) pure returns (bool) output) {\n    assembly {\n      output := input\n    }\n  }\n\n  /// @dev Helper: low level cast bytes32 comp function to uint256 comp function\n  function _castToUint256Comp(\n    function(bytes32, bytes32) pure returns (bool) input\n  ) private pure returns (function(uint256, uint256) pure returns (bool) output) {\n    assembly {\n      output := input\n    }\n  }\n\n  /**\n   * @dev Searches a sorted `array` and returns the first index that contains\n   * a value greater or equal to `element`. If no such index exists (i.e. all\n   * values in the array are strictly less than `element`), the array length is\n   * returned. Time complexity O(log n).\n   *\n   * NOTE: The `array` is expected to be sorted in ascending order, and to\n   * contain no repeated elements.\n   *\n   * IMPORTANT: Deprecated. This implementation behaves as {lowerBound} but lacks\n   * support for repeated elements in the array. The {lowerBound} function should\n   * be used instead.\n   */\n  function findUpperBound(\n    uint256[] storage array,\n    uint256 element\n  ) internal view returns (uint256) {\n    uint256 low = 0;\n    uint256 high = array.length;\n\n    if (high == 0) {\n      return 0;\n    }\n\n    while (low < high) {\n      uint256 mid = Math.average(low, high);\n\n      // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n      // because Math.average rounds towards zero (it does integer division with truncation).\n      if (unsafeAccess(array, mid).value > element) {\n        high = mid;\n      } else {\n        low = mid + 1;\n      }\n    }\n\n    // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.\n    if (low > 0 && unsafeAccess(array, low - 1).value == element) {\n      return low - 1;\n    } else {\n      return low;\n    }\n  }\n\n  /**\n   * @dev Searches an `array` sorted in ascending order and returns the first\n   * index that contains a value greater or equal than `element`. If no such index\n   * exists (i.e. all values in the array are strictly less than `element`), the array\n   * length is returned. Time complexity O(log n).\n   *\n   * See C++'s https://en.cppreference.com/w/cpp/algorithm/lower_bound[lower_bound].\n   */\n  function lowerBound(uint256[] storage array, uint256 element) internal view returns (uint256) {\n    uint256 low = 0;\n    uint256 high = array.length;\n\n    if (high == 0) {\n      return 0;\n    }\n\n    while (low < high) {\n      uint256 mid = Math.average(low, high);\n\n      // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n      // because Math.average rounds towards zero (it does integer division with truncation).\n      if (unsafeAccess(array, mid).value < element) {\n        // this cannot overflow because mid < high\n        unchecked {\n          low = mid + 1;\n        }\n      } else {\n        high = mid;\n      }\n    }\n\n    return low;\n  }\n\n  /**\n   * @dev Searches an `array` sorted in ascending order and returns the first\n   * index that contains a value strictly greater than `element`. If no such index\n   * exists (i.e. all values in the array are strictly less than `element`), the array\n   * length is returned. Time complexity O(log n).\n   *\n   * See C++'s https://en.cppreference.com/w/cpp/algorithm/upper_bound[upper_bound].\n   */\n  function upperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {\n    uint256 low = 0;\n    uint256 high = array.length;\n\n    if (high == 0) {\n      return 0;\n    }\n\n    while (low < high) {\n      uint256 mid = Math.average(low, high);\n\n      // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n      // because Math.average rounds towards zero (it does integer division with truncation).\n      if (unsafeAccess(array, mid).value > element) {\n        high = mid;\n      } else {\n        // this cannot overflow because mid < high\n        unchecked {\n          low = mid + 1;\n        }\n      }\n    }\n\n    return low;\n  }\n\n  /**\n   * @dev Same as {lowerBound}, but with an array in memory.\n   */\n  function lowerBoundMemory(\n    uint256[] memory array,\n    uint256 element\n  ) internal pure returns (uint256) {\n    uint256 low = 0;\n    uint256 high = array.length;\n\n    if (high == 0) {\n      return 0;\n    }\n\n    while (low < high) {\n      uint256 mid = Math.average(low, high);\n\n      // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n      // because Math.average rounds towards zero (it does integer division with truncation).\n      if (unsafeMemoryAccess(array, mid) < element) {\n        // this cannot overflow because mid < high\n        unchecked {\n          low = mid + 1;\n        }\n      } else {\n        high = mid;\n      }\n    }\n\n    return low;\n  }\n\n  /**\n   * @dev Same as {upperBound}, but with an array in memory.\n   */\n  function upperBoundMemory(\n    uint256[] memory array,\n    uint256 element\n  ) internal pure returns (uint256) {\n    uint256 low = 0;\n    uint256 high = array.length;\n\n    if (high == 0) {\n      return 0;\n    }\n\n    while (low < high) {\n      uint256 mid = Math.average(low, high);\n\n      // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n      // because Math.average rounds towards zero (it does integer division with truncation).\n      if (unsafeMemoryAccess(array, mid) > element) {\n        high = mid;\n      } else {\n        // this cannot overflow because mid < high\n        unchecked {\n          low = mid + 1;\n        }\n      }\n    }\n\n    return low;\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to the end of `array` into a new address array in\n   * memory.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(address[] memory array, uint256 start) internal pure returns (address[] memory) {\n    return slice(array, start, array.length);\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to `end` (excluded) into a new address array in\n   * memory. The `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(\n    address[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (address[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // allocate and copy\n    address[] memory result = new address[](end - start);\n    assembly ('memory-safe') {\n      mcopy(add(result, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to the end of `array` into a new bytes32 array in\n   * memory.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(bytes32[] memory array, uint256 start) internal pure returns (bytes32[] memory) {\n    return slice(array, start, array.length);\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to `end` (excluded) into a new bytes32 array in\n   * memory. The `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(\n    bytes32[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (bytes32[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // allocate and copy\n    bytes32[] memory result = new bytes32[](end - start);\n    assembly ('memory-safe') {\n      mcopy(add(result, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to the end of `array` into a new uint256 array in\n   * memory.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(uint256[] memory array, uint256 start) internal pure returns (uint256[] memory) {\n    return slice(array, start, array.length);\n  }\n\n  /**\n   * @dev Copies the content of `array`, from `start` (included) to `end` (excluded) into a new uint256 array in\n   * memory. The `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n   */\n  function slice(\n    uint256[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (uint256[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // allocate and copy\n    uint256[] memory result = new uint256[](end - start);\n    assembly ('memory-safe') {\n      mcopy(add(result, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to the end of `array` to the start of that array.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(address[] memory array, uint256 start) internal pure returns (address[] memory) {\n    return splice(array, start, array.length);\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to `end` (excluded) to the start of that array. The\n   * `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(\n    address[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (address[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // move and resize\n    assembly ('memory-safe') {\n      mcopy(add(array, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n      mstore(array, sub(end, start))\n    }\n\n    return array;\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to the end of `array` to the start of that array.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(bytes32[] memory array, uint256 start) internal pure returns (bytes32[] memory) {\n    return splice(array, start, array.length);\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to `end` (excluded) to the start of that array. The\n   * `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(\n    bytes32[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (bytes32[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // move and resize\n    assembly ('memory-safe') {\n      mcopy(add(array, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n      mstore(array, sub(end, start))\n    }\n\n    return array;\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to the end of `array` to the start of that array.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(uint256[] memory array, uint256 start) internal pure returns (uint256[] memory) {\n    return splice(array, start, array.length);\n  }\n\n  /**\n   * @dev Moves the content of `array`, from `start` (included) to `end` (excluded) to the start of that array. The\n   * `end` argument is truncated to the length of the `array`.\n   *\n   * NOTE: This function modifies the provided array in place. If you need to preserve the original array, use {slice} instead.\n   * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice[Javascript's `Array.splice`]\n   */\n  function splice(\n    uint256[] memory array,\n    uint256 start,\n    uint256 end\n  ) internal pure returns (uint256[] memory) {\n    // sanitize\n    end = Math.min(end, array.length);\n    start = Math.min(start, end);\n\n    // move and resize\n    assembly ('memory-safe') {\n      mcopy(add(array, 0x20), add(add(array, 0x20), mul(start, 0x20)), mul(sub(end, start), 0x20))\n      mstore(array, sub(end, start))\n    }\n\n    return array;\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeAccess(\n    address[] storage arr,\n    uint256 pos\n  ) internal pure returns (StorageSlot.AddressSlot storage) {\n    bytes32 slot;\n    assembly ('memory-safe') {\n      slot := arr.slot\n    }\n    return slot.deriveArray().offset(pos).getAddressSlot();\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeAccess(\n    bytes32[] storage arr,\n    uint256 pos\n  ) internal pure returns (StorageSlot.Bytes32Slot storage) {\n    bytes32 slot;\n    assembly ('memory-safe') {\n      slot := arr.slot\n    }\n    return slot.deriveArray().offset(pos).getBytes32Slot();\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeAccess(\n    uint256[] storage arr,\n    uint256 pos\n  ) internal pure returns (StorageSlot.Uint256Slot storage) {\n    bytes32 slot;\n    assembly ('memory-safe') {\n      slot := arr.slot\n    }\n    return slot.deriveArray().offset(pos).getUint256Slot();\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeAccess(\n    bytes[] storage arr,\n    uint256 pos\n  ) internal pure returns (StorageSlot.BytesSlot storage) {\n    bytes32 slot;\n    assembly ('memory-safe') {\n      slot := arr.slot\n    }\n    return slot.deriveArray().offset(pos).getBytesSlot();\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeAccess(\n    string[] storage arr,\n    uint256 pos\n  ) internal pure returns (StorageSlot.StringSlot storage) {\n    bytes32 slot;\n    assembly ('memory-safe') {\n      slot := arr.slot\n    }\n    return slot.deriveArray().offset(pos).getStringSlot();\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeMemoryAccess(\n    address[] memory arr,\n    uint256 pos\n  ) internal pure returns (address res) {\n    assembly {\n      res := mload(add(add(arr, 0x20), mul(pos, 0x20)))\n    }\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeMemoryAccess(\n    bytes32[] memory arr,\n    uint256 pos\n  ) internal pure returns (bytes32 res) {\n    assembly {\n      res := mload(add(add(arr, 0x20), mul(pos, 0x20)))\n    }\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeMemoryAccess(\n    uint256[] memory arr,\n    uint256 pos\n  ) internal pure returns (uint256 res) {\n    assembly {\n      res := mload(add(add(arr, 0x20), mul(pos, 0x20)))\n    }\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeMemoryAccess(\n    bytes[] memory arr,\n    uint256 pos\n  ) internal pure returns (bytes memory res) {\n    assembly {\n      res := mload(add(add(arr, 0x20), mul(pos, 0x20)))\n    }\n  }\n\n  /**\n   * @dev Access an array in an \"unsafe\" way. Skips solidity \"index-out-of-range\" check.\n   *\n   * WARNING: Only use if you are certain `pos` is lower than the array length.\n   */\n  function unsafeMemoryAccess(\n    string[] memory arr,\n    uint256 pos\n  ) internal pure returns (string memory res) {\n    assembly {\n      res := mload(add(add(arr, 0x20), mul(pos, 0x20)))\n    }\n  }\n\n  /**\n   * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden.\n   *\n   * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased.\n   */\n  function unsafeSetLength(address[] storage array, uint256 len) internal {\n    assembly ('memory-safe') {\n      sstore(array.slot, len)\n    }\n  }\n\n  /**\n   * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden.\n   *\n   * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased.\n   */\n  function unsafeSetLength(bytes32[] storage array, uint256 len) internal {\n    assembly ('memory-safe') {\n      sstore(array.slot, len)\n    }\n  }\n\n  /**\n   * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden.\n   *\n   * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased.\n   */\n  function unsafeSetLength(uint256[] storage array, uint256 len) internal {\n    assembly ('memory-safe') {\n      sstore(array.slot, len)\n    }\n  }\n\n  /**\n   * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden.\n   *\n   * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased.\n   */\n  function unsafeSetLength(bytes[] storage array, uint256 len) internal {\n    assembly ('memory-safe') {\n      sstore(array.slot, len)\n    }\n  }\n\n  /**\n   * @dev Helper to set the length of a dynamic array. Directly writing to `.length` is forbidden.\n   *\n   * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased.\n   */\n  function unsafeSetLength(string[] storage array, uint256 len) internal {\n    assembly ('memory-safe') {\n      sstore(array.slot, len)\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\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 value of tokens in existence.\n   */\n  function totalSupply() external view returns (uint256);\n\n  /**\n   * @dev Returns the value of tokens owned by `account`.\n   */\n  function balanceOf(address account) external view returns (uint256);\n\n  /**\n   * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n   * 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 value) external returns (bool);\n\n  /**\n   * @dev Moves a `value` amount of tokens from `from` to `to` using the\n   * allowance mechanism. `value` 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 value) external returns (bool);\n}\n"},"src/dependencies/openzeppelin/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n  /**\n   * @dev Returns true if this contract implements the interface defined by\n   * `interfaceId`. See the corresponding\n   * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n   * to learn more about how these ids are created.\n   *\n   * This function call must use less than 30 000 gas.\n   */\n  function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"src/dependencies/openzeppelin/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from './IERC20.sol';\nimport {IERC165} from './IERC165.sol';\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n  /*\n   * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n   * 0xb0202a11 ===\n   *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n   *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n   *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n   *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n   *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n   *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n   */\n\n  /**\n   * @dev Moves a `value` amount of tokens from the caller's account to `to`\n   * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n   * @param to The address which you want to transfer to.\n   * @param value The amount of tokens to be transferred.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function transferAndCall(address to, uint256 value) external returns (bool);\n\n  /**\n   * @dev Moves a `value` amount of tokens from the caller's account to `to`\n   * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n   * @param to The address which you want to transfer to.\n   * @param value The amount of tokens to be transferred.\n   * @param data Additional data with no specified format, sent in call to `to`.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n  /**\n   * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n   * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n   * @param from The address which you want to send tokens from.\n   * @param to The address which you want to transfer to.\n   * @param value The amount of tokens to be transferred.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n  /**\n   * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n   * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n   * @param from The address which you want to send tokens from.\n   * @param to The address which you want to transfer to.\n   * @param value The amount of tokens to be transferred.\n   * @param data Additional data with no specified format, sent in call to `to`.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function transferFromAndCall(\n    address from,\n    address to,\n    uint256 value,\n    bytes calldata data\n  ) external returns (bool);\n\n  /**\n   * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n   * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n   * @param spender The address which will spend the funds.\n   * @param value The amount of tokens to be spent.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function approveAndCall(address spender, uint256 value) external returns (bool);\n\n  /**\n   * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n   * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n   * @param spender The address which will spend the funds.\n   * @param value The amount of tokens to be spent.\n   * @param data Additional data with no specified format, sent in call to `spender`.\n   * @return A boolean value indicating whether the operation succeeded unless throwing.\n   */\n  function approveAndCall(\n    address spender,\n    uint256 value,\n    bytes calldata data\n  ) external returns (bool);\n}\n"},"src/dependencies/openzeppelin/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeCast {\n  /**\n   * @dev Value doesn't fit in an uint of `bits` size.\n   */\n  error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n  /**\n   * @dev An int value doesn't fit in an uint of `bits` size.\n   */\n  error SafeCastOverflowedIntToUint(int256 value);\n\n  /**\n   * @dev Value doesn't fit in an int of `bits` size.\n   */\n  error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n  /**\n   * @dev An uint value doesn't fit in an int of `bits` size.\n   */\n  error SafeCastOverflowedUintToInt(uint256 value);\n\n  /**\n   * @dev Returns the downcasted uint248 from uint256, reverting on\n   * overflow (when the input is greater than largest uint248).\n   *\n   * Counterpart to Solidity's `uint248` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 248 bits\n   */\n  function toUint248(uint256 value) internal pure returns (uint248) {\n    if (value > type(uint248).max) {\n      revert SafeCastOverflowedUintDowncast(248, value);\n    }\n    return uint248(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint240 from uint256, reverting on\n   * overflow (when the input is greater than largest uint240).\n   *\n   * Counterpart to Solidity's `uint240` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 240 bits\n   */\n  function toUint240(uint256 value) internal pure returns (uint240) {\n    if (value > type(uint240).max) {\n      revert SafeCastOverflowedUintDowncast(240, value);\n    }\n    return uint240(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint232 from uint256, reverting on\n   * overflow (when the input is greater than largest uint232).\n   *\n   * Counterpart to Solidity's `uint232` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 232 bits\n   */\n  function toUint232(uint256 value) internal pure returns (uint232) {\n    if (value > type(uint232).max) {\n      revert SafeCastOverflowedUintDowncast(232, value);\n    }\n    return uint232(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint224 from uint256, reverting on\n   * overflow (when the input is greater than largest uint224).\n   *\n   * Counterpart to Solidity's `uint224` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 224 bits\n   */\n  function toUint224(uint256 value) internal pure returns (uint224) {\n    if (value > type(uint224).max) {\n      revert SafeCastOverflowedUintDowncast(224, value);\n    }\n    return uint224(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint216 from uint256, reverting on\n   * overflow (when the input is greater than largest uint216).\n   *\n   * Counterpart to Solidity's `uint216` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 216 bits\n   */\n  function toUint216(uint256 value) internal pure returns (uint216) {\n    if (value > type(uint216).max) {\n      revert SafeCastOverflowedUintDowncast(216, value);\n    }\n    return uint216(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint208 from uint256, reverting on\n   * overflow (when the input is greater than largest uint208).\n   *\n   * Counterpart to Solidity's `uint208` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 208 bits\n   */\n  function toUint208(uint256 value) internal pure returns (uint208) {\n    if (value > type(uint208).max) {\n      revert SafeCastOverflowedUintDowncast(208, value);\n    }\n    return uint208(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint200 from uint256, reverting on\n   * overflow (when the input is greater than largest uint200).\n   *\n   * Counterpart to Solidity's `uint200` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 200 bits\n   */\n  function toUint200(uint256 value) internal pure returns (uint200) {\n    if (value > type(uint200).max) {\n      revert SafeCastOverflowedUintDowncast(200, value);\n    }\n    return uint200(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint192 from uint256, reverting on\n   * overflow (when the input is greater than largest uint192).\n   *\n   * Counterpart to Solidity's `uint192` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 192 bits\n   */\n  function toUint192(uint256 value) internal pure returns (uint192) {\n    if (value > type(uint192).max) {\n      revert SafeCastOverflowedUintDowncast(192, value);\n    }\n    return uint192(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint184 from uint256, reverting on\n   * overflow (when the input is greater than largest uint184).\n   *\n   * Counterpart to Solidity's `uint184` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 184 bits\n   */\n  function toUint184(uint256 value) internal pure returns (uint184) {\n    if (value > type(uint184).max) {\n      revert SafeCastOverflowedUintDowncast(184, value);\n    }\n    return uint184(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint176 from uint256, reverting on\n   * overflow (when the input is greater than largest uint176).\n   *\n   * Counterpart to Solidity's `uint176` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 176 bits\n   */\n  function toUint176(uint256 value) internal pure returns (uint176) {\n    if (value > type(uint176).max) {\n      revert SafeCastOverflowedUintDowncast(176, value);\n    }\n    return uint176(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint168 from uint256, reverting on\n   * overflow (when the input is greater than largest uint168).\n   *\n   * Counterpart to Solidity's `uint168` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 168 bits\n   */\n  function toUint168(uint256 value) internal pure returns (uint168) {\n    if (value > type(uint168).max) {\n      revert SafeCastOverflowedUintDowncast(168, value);\n    }\n    return uint168(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint160 from uint256, reverting on\n   * overflow (when the input is greater than largest uint160).\n   *\n   * Counterpart to Solidity's `uint160` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 160 bits\n   */\n  function toUint160(uint256 value) internal pure returns (uint160) {\n    if (value > type(uint160).max) {\n      revert SafeCastOverflowedUintDowncast(160, value);\n    }\n    return uint160(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint152 from uint256, reverting on\n   * overflow (when the input is greater than largest uint152).\n   *\n   * Counterpart to Solidity's `uint152` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 152 bits\n   */\n  function toUint152(uint256 value) internal pure returns (uint152) {\n    if (value > type(uint152).max) {\n      revert SafeCastOverflowedUintDowncast(152, value);\n    }\n    return uint152(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint144 from uint256, reverting on\n   * overflow (when the input is greater than largest uint144).\n   *\n   * Counterpart to Solidity's `uint144` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 144 bits\n   */\n  function toUint144(uint256 value) internal pure returns (uint144) {\n    if (value > type(uint144).max) {\n      revert SafeCastOverflowedUintDowncast(144, value);\n    }\n    return uint144(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint136 from uint256, reverting on\n   * overflow (when the input is greater than largest uint136).\n   *\n   * Counterpart to Solidity's `uint136` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 136 bits\n   */\n  function toUint136(uint256 value) internal pure returns (uint136) {\n    if (value > type(uint136).max) {\n      revert SafeCastOverflowedUintDowncast(136, value);\n    }\n    return uint136(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint128 from uint256, reverting on\n   * overflow (when the input is greater than largest uint128).\n   *\n   * Counterpart to Solidity's `uint128` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 128 bits\n   */\n  function toUint128(uint256 value) internal pure returns (uint128) {\n    if (value > type(uint128).max) {\n      revert SafeCastOverflowedUintDowncast(128, value);\n    }\n    return uint128(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint120 from uint256, reverting on\n   * overflow (when the input is greater than largest uint120).\n   *\n   * Counterpart to Solidity's `uint120` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 120 bits\n   */\n  function toUint120(uint256 value) internal pure returns (uint120) {\n    if (value > type(uint120).max) {\n      revert SafeCastOverflowedUintDowncast(120, value);\n    }\n    return uint120(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint112 from uint256, reverting on\n   * overflow (when the input is greater than largest uint112).\n   *\n   * Counterpart to Solidity's `uint112` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 112 bits\n   */\n  function toUint112(uint256 value) internal pure returns (uint112) {\n    if (value > type(uint112).max) {\n      revert SafeCastOverflowedUintDowncast(112, value);\n    }\n    return uint112(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint104 from uint256, reverting on\n   * overflow (when the input is greater than largest uint104).\n   *\n   * Counterpart to Solidity's `uint104` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 104 bits\n   */\n  function toUint104(uint256 value) internal pure returns (uint104) {\n    if (value > type(uint104).max) {\n      revert SafeCastOverflowedUintDowncast(104, value);\n    }\n    return uint104(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint96 from uint256, reverting on\n   * overflow (when the input is greater than largest uint96).\n   *\n   * Counterpart to Solidity's `uint96` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 96 bits\n   */\n  function toUint96(uint256 value) internal pure returns (uint96) {\n    if (value > type(uint96).max) {\n      revert SafeCastOverflowedUintDowncast(96, value);\n    }\n    return uint96(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint88 from uint256, reverting on\n   * overflow (when the input is greater than largest uint88).\n   *\n   * Counterpart to Solidity's `uint88` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 88 bits\n   */\n  function toUint88(uint256 value) internal pure returns (uint88) {\n    if (value > type(uint88).max) {\n      revert SafeCastOverflowedUintDowncast(88, value);\n    }\n    return uint88(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint80 from uint256, reverting on\n   * overflow (when the input is greater than largest uint80).\n   *\n   * Counterpart to Solidity's `uint80` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 80 bits\n   */\n  function toUint80(uint256 value) internal pure returns (uint80) {\n    if (value > type(uint80).max) {\n      revert SafeCastOverflowedUintDowncast(80, value);\n    }\n    return uint80(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint72 from uint256, reverting on\n   * overflow (when the input is greater than largest uint72).\n   *\n   * Counterpart to Solidity's `uint72` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 72 bits\n   */\n  function toUint72(uint256 value) internal pure returns (uint72) {\n    if (value > type(uint72).max) {\n      revert SafeCastOverflowedUintDowncast(72, value);\n    }\n    return uint72(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint64 from uint256, reverting on\n   * overflow (when the input is greater than largest uint64).\n   *\n   * Counterpart to Solidity's `uint64` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 64 bits\n   */\n  function toUint64(uint256 value) internal pure returns (uint64) {\n    if (value > type(uint64).max) {\n      revert SafeCastOverflowedUintDowncast(64, value);\n    }\n    return uint64(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint56 from uint256, reverting on\n   * overflow (when the input is greater than largest uint56).\n   *\n   * Counterpart to Solidity's `uint56` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 56 bits\n   */\n  function toUint56(uint256 value) internal pure returns (uint56) {\n    if (value > type(uint56).max) {\n      revert SafeCastOverflowedUintDowncast(56, value);\n    }\n    return uint56(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint48 from uint256, reverting on\n   * overflow (when the input is greater than largest uint48).\n   *\n   * Counterpart to Solidity's `uint48` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 48 bits\n   */\n  function toUint48(uint256 value) internal pure returns (uint48) {\n    if (value > type(uint48).max) {\n      revert SafeCastOverflowedUintDowncast(48, value);\n    }\n    return uint48(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint40 from uint256, reverting on\n   * overflow (when the input is greater than largest uint40).\n   *\n   * Counterpart to Solidity's `uint40` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 40 bits\n   */\n  function toUint40(uint256 value) internal pure returns (uint40) {\n    if (value > type(uint40).max) {\n      revert SafeCastOverflowedUintDowncast(40, value);\n    }\n    return uint40(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint32 from uint256, reverting on\n   * overflow (when the input is greater than largest uint32).\n   *\n   * Counterpart to Solidity's `uint32` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 32 bits\n   */\n  function toUint32(uint256 value) internal pure returns (uint32) {\n    if (value > type(uint32).max) {\n      revert SafeCastOverflowedUintDowncast(32, value);\n    }\n    return uint32(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint24 from uint256, reverting on\n   * overflow (when the input is greater than largest uint24).\n   *\n   * Counterpart to Solidity's `uint24` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 24 bits\n   */\n  function toUint24(uint256 value) internal pure returns (uint24) {\n    if (value > type(uint24).max) {\n      revert SafeCastOverflowedUintDowncast(24, value);\n    }\n    return uint24(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint16 from uint256, reverting on\n   * overflow (when the input is greater than largest uint16).\n   *\n   * Counterpart to Solidity's `uint16` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 16 bits\n   */\n  function toUint16(uint256 value) internal pure returns (uint16) {\n    if (value > type(uint16).max) {\n      revert SafeCastOverflowedUintDowncast(16, value);\n    }\n    return uint16(value);\n  }\n\n  /**\n   * @dev Returns the downcasted uint8 from uint256, reverting on\n   * overflow (when the input is greater than largest uint8).\n   *\n   * Counterpart to Solidity's `uint8` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 8 bits\n   */\n  function toUint8(uint256 value) internal pure returns (uint8) {\n    if (value > type(uint8).max) {\n      revert SafeCastOverflowedUintDowncast(8, value);\n    }\n    return uint8(value);\n  }\n\n  /**\n   * @dev Converts a signed int256 into an unsigned uint256.\n   *\n   * Requirements:\n   *\n   * - input must be greater than or equal to 0.\n   */\n  function toUint256(int256 value) internal pure returns (uint256) {\n    if (value < 0) {\n      revert SafeCastOverflowedIntToUint(value);\n    }\n    return uint256(value);\n  }\n\n  /**\n   * @dev Returns the downcasted int248 from int256, reverting on\n   * overflow (when the input is less than smallest int248 or\n   * greater than largest int248).\n   *\n   * Counterpart to Solidity's `int248` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 248 bits\n   */\n  function toInt248(int256 value) internal pure returns (int248 downcasted) {\n    downcasted = int248(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(248, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int240 from int256, reverting on\n   * overflow (when the input is less than smallest int240 or\n   * greater than largest int240).\n   *\n   * Counterpart to Solidity's `int240` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 240 bits\n   */\n  function toInt240(int256 value) internal pure returns (int240 downcasted) {\n    downcasted = int240(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(240, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int232 from int256, reverting on\n   * overflow (when the input is less than smallest int232 or\n   * greater than largest int232).\n   *\n   * Counterpart to Solidity's `int232` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 232 bits\n   */\n  function toInt232(int256 value) internal pure returns (int232 downcasted) {\n    downcasted = int232(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(232, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int224 from int256, reverting on\n   * overflow (when the input is less than smallest int224 or\n   * greater than largest int224).\n   *\n   * Counterpart to Solidity's `int224` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 224 bits\n   */\n  function toInt224(int256 value) internal pure returns (int224 downcasted) {\n    downcasted = int224(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(224, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int216 from int256, reverting on\n   * overflow (when the input is less than smallest int216 or\n   * greater than largest int216).\n   *\n   * Counterpart to Solidity's `int216` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 216 bits\n   */\n  function toInt216(int256 value) internal pure returns (int216 downcasted) {\n    downcasted = int216(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(216, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int208 from int256, reverting on\n   * overflow (when the input is less than smallest int208 or\n   * greater than largest int208).\n   *\n   * Counterpart to Solidity's `int208` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 208 bits\n   */\n  function toInt208(int256 value) internal pure returns (int208 downcasted) {\n    downcasted = int208(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(208, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int200 from int256, reverting on\n   * overflow (when the input is less than smallest int200 or\n   * greater than largest int200).\n   *\n   * Counterpart to Solidity's `int200` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 200 bits\n   */\n  function toInt200(int256 value) internal pure returns (int200 downcasted) {\n    downcasted = int200(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(200, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int192 from int256, reverting on\n   * overflow (when the input is less than smallest int192 or\n   * greater than largest int192).\n   *\n   * Counterpart to Solidity's `int192` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 192 bits\n   */\n  function toInt192(int256 value) internal pure returns (int192 downcasted) {\n    downcasted = int192(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(192, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int184 from int256, reverting on\n   * overflow (when the input is less than smallest int184 or\n   * greater than largest int184).\n   *\n   * Counterpart to Solidity's `int184` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 184 bits\n   */\n  function toInt184(int256 value) internal pure returns (int184 downcasted) {\n    downcasted = int184(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(184, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int176 from int256, reverting on\n   * overflow (when the input is less than smallest int176 or\n   * greater than largest int176).\n   *\n   * Counterpart to Solidity's `int176` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 176 bits\n   */\n  function toInt176(int256 value) internal pure returns (int176 downcasted) {\n    downcasted = int176(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(176, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int168 from int256, reverting on\n   * overflow (when the input is less than smallest int168 or\n   * greater than largest int168).\n   *\n   * Counterpart to Solidity's `int168` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 168 bits\n   */\n  function toInt168(int256 value) internal pure returns (int168 downcasted) {\n    downcasted = int168(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(168, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int160 from int256, reverting on\n   * overflow (when the input is less than smallest int160 or\n   * greater than largest int160).\n   *\n   * Counterpart to Solidity's `int160` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 160 bits\n   */\n  function toInt160(int256 value) internal pure returns (int160 downcasted) {\n    downcasted = int160(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(160, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int152 from int256, reverting on\n   * overflow (when the input is less than smallest int152 or\n   * greater than largest int152).\n   *\n   * Counterpart to Solidity's `int152` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 152 bits\n   */\n  function toInt152(int256 value) internal pure returns (int152 downcasted) {\n    downcasted = int152(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(152, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int144 from int256, reverting on\n   * overflow (when the input is less than smallest int144 or\n   * greater than largest int144).\n   *\n   * Counterpart to Solidity's `int144` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 144 bits\n   */\n  function toInt144(int256 value) internal pure returns (int144 downcasted) {\n    downcasted = int144(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(144, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int136 from int256, reverting on\n   * overflow (when the input is less than smallest int136 or\n   * greater than largest int136).\n   *\n   * Counterpart to Solidity's `int136` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 136 bits\n   */\n  function toInt136(int256 value) internal pure returns (int136 downcasted) {\n    downcasted = int136(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(136, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int128 from int256, reverting on\n   * overflow (when the input is less than smallest int128 or\n   * greater than largest int128).\n   *\n   * Counterpart to Solidity's `int128` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 128 bits\n   */\n  function toInt128(int256 value) internal pure returns (int128 downcasted) {\n    downcasted = int128(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(128, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int120 from int256, reverting on\n   * overflow (when the input is less than smallest int120 or\n   * greater than largest int120).\n   *\n   * Counterpart to Solidity's `int120` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 120 bits\n   */\n  function toInt120(int256 value) internal pure returns (int120 downcasted) {\n    downcasted = int120(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(120, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int112 from int256, reverting on\n   * overflow (when the input is less than smallest int112 or\n   * greater than largest int112).\n   *\n   * Counterpart to Solidity's `int112` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 112 bits\n   */\n  function toInt112(int256 value) internal pure returns (int112 downcasted) {\n    downcasted = int112(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(112, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int104 from int256, reverting on\n   * overflow (when the input is less than smallest int104 or\n   * greater than largest int104).\n   *\n   * Counterpart to Solidity's `int104` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 104 bits\n   */\n  function toInt104(int256 value) internal pure returns (int104 downcasted) {\n    downcasted = int104(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(104, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int96 from int256, reverting on\n   * overflow (when the input is less than smallest int96 or\n   * greater than largest int96).\n   *\n   * Counterpart to Solidity's `int96` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 96 bits\n   */\n  function toInt96(int256 value) internal pure returns (int96 downcasted) {\n    downcasted = int96(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(96, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int88 from int256, reverting on\n   * overflow (when the input is less than smallest int88 or\n   * greater than largest int88).\n   *\n   * Counterpart to Solidity's `int88` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 88 bits\n   */\n  function toInt88(int256 value) internal pure returns (int88 downcasted) {\n    downcasted = int88(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(88, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int80 from int256, reverting on\n   * overflow (when the input is less than smallest int80 or\n   * greater than largest int80).\n   *\n   * Counterpart to Solidity's `int80` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 80 bits\n   */\n  function toInt80(int256 value) internal pure returns (int80 downcasted) {\n    downcasted = int80(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(80, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int72 from int256, reverting on\n   * overflow (when the input is less than smallest int72 or\n   * greater than largest int72).\n   *\n   * Counterpart to Solidity's `int72` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 72 bits\n   */\n  function toInt72(int256 value) internal pure returns (int72 downcasted) {\n    downcasted = int72(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(72, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int64 from int256, reverting on\n   * overflow (when the input is less than smallest int64 or\n   * greater than largest int64).\n   *\n   * Counterpart to Solidity's `int64` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 64 bits\n   */\n  function toInt64(int256 value) internal pure returns (int64 downcasted) {\n    downcasted = int64(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(64, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int56 from int256, reverting on\n   * overflow (when the input is less than smallest int56 or\n   * greater than largest int56).\n   *\n   * Counterpart to Solidity's `int56` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 56 bits\n   */\n  function toInt56(int256 value) internal pure returns (int56 downcasted) {\n    downcasted = int56(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(56, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int48 from int256, reverting on\n   * overflow (when the input is less than smallest int48 or\n   * greater than largest int48).\n   *\n   * Counterpart to Solidity's `int48` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 48 bits\n   */\n  function toInt48(int256 value) internal pure returns (int48 downcasted) {\n    downcasted = int48(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(48, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int40 from int256, reverting on\n   * overflow (when the input is less than smallest int40 or\n   * greater than largest int40).\n   *\n   * Counterpart to Solidity's `int40` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 40 bits\n   */\n  function toInt40(int256 value) internal pure returns (int40 downcasted) {\n    downcasted = int40(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(40, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int32 from int256, reverting on\n   * overflow (when the input is less than smallest int32 or\n   * greater than largest int32).\n   *\n   * Counterpart to Solidity's `int32` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 32 bits\n   */\n  function toInt32(int256 value) internal pure returns (int32 downcasted) {\n    downcasted = int32(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(32, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int24 from int256, reverting on\n   * overflow (when the input is less than smallest int24 or\n   * greater than largest int24).\n   *\n   * Counterpart to Solidity's `int24` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 24 bits\n   */\n  function toInt24(int256 value) internal pure returns (int24 downcasted) {\n    downcasted = int24(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(24, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int16 from int256, reverting on\n   * overflow (when the input is less than smallest int16 or\n   * greater than largest int16).\n   *\n   * Counterpart to Solidity's `int16` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 16 bits\n   */\n  function toInt16(int256 value) internal pure returns (int16 downcasted) {\n    downcasted = int16(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(16, value);\n    }\n  }\n\n  /**\n   * @dev Returns the downcasted int8 from int256, reverting on\n   * overflow (when the input is less than smallest int8 or\n   * greater than largest int8).\n   *\n   * Counterpart to Solidity's `int8` operator.\n   *\n   * Requirements:\n   *\n   * - input must fit into 8 bits\n   */\n  function toInt8(int256 value) internal pure returns (int8 downcasted) {\n    downcasted = int8(value);\n    if (downcasted != value) {\n      revert SafeCastOverflowedIntDowncast(8, value);\n    }\n  }\n\n  /**\n   * @dev Converts an unsigned uint256 into a signed int256.\n   *\n   * Requirements:\n   *\n   * - input must be less than or equal to maxInt256.\n   */\n  function toInt256(uint256 value) internal pure returns (int256) {\n    // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n    if (value > uint256(type(int256).max)) {\n      revert SafeCastOverflowedUintToInt(value);\n    }\n    return int256(value);\n  }\n\n  /**\n   * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n   */\n  function toUint(bool b) internal pure returns (uint256 u) {\n    assembly ('memory-safe') {\n      u := iszero(iszero(b))\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from './IERC20.sol';\nimport {IERC1363} from './IERC1363.sol';\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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  /**\n   * @dev An operation with an ERC-20 token failed.\n   */\n  error SafeERC20FailedOperation(address token);\n\n  /**\n   * @dev Indicates a failed `decreaseAllowance` request.\n   */\n  error SafeERC20FailedDecreaseAllowance(\n    address spender,\n    uint256 currentAllowance,\n    uint256 requestedDecrease\n  );\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    if (!_safeTransfer(token, to, value, true)) {\n      revert SafeERC20FailedOperation(address(token));\n    }\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    if (!_safeTransferFrom(token, from, to, value, true)) {\n      revert SafeERC20FailedOperation(address(token));\n    }\n  }\n\n  /**\n   * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n   */\n  function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n    return _safeTransfer(token, to, value, false);\n  }\n\n  /**\n   * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n   */\n  function trySafeTransferFrom(\n    IERC20 token,\n    address from,\n    address to,\n    uint256 value\n  ) internal returns (bool) {\n    return _safeTransferFrom(token, from, to, value, false);\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   * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n   * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n   * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n   * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n   */\n  function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n    uint256 oldAllowance = token.allowance(address(this), spender);\n    forceApprove(token, spender, oldAllowance + value);\n  }\n\n  /**\n   * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n   * value, non-reverting calls are assumed to be successful.\n   *\n   * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n   * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n   * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n   * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n   */\n  function safeDecreaseAllowance(\n    IERC20 token,\n    address spender,\n    uint256 requestedDecrease\n  ) internal {\n    unchecked {\n      uint256 currentAllowance = token.allowance(address(this), spender);\n      if (currentAllowance < requestedDecrease) {\n        revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n      }\n      forceApprove(token, spender, currentAllowance - requestedDecrease);\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   * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n   * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n   * set here.\n   */\n  function forceApprove(IERC20 token, address spender, uint256 value) internal {\n    if (!_safeApprove(token, spender, value, false)) {\n      if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));\n      if (!_safeApprove(token, spender, value, true))\n        revert SafeERC20FailedOperation(address(token));\n    }\n  }\n\n  /**\n   * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n   * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n   * targeting contracts.\n   *\n   * Reverts if the returned value is other than `true`.\n   */\n  function transferAndCallRelaxed(\n    IERC1363 token,\n    address to,\n    uint256 value,\n    bytes memory data\n  ) internal {\n    if (to.code.length == 0) {\n      safeTransfer(token, to, value);\n    } else if (!token.transferAndCall(to, value, data)) {\n      revert SafeERC20FailedOperation(address(token));\n    }\n  }\n\n  /**\n   * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n   * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n   * targeting contracts.\n   *\n   * Reverts if the returned value is other than `true`.\n   */\n  function transferFromAndCallRelaxed(\n    IERC1363 token,\n    address from,\n    address to,\n    uint256 value,\n    bytes memory data\n  ) internal {\n    if (to.code.length == 0) {\n      safeTransferFrom(token, from, to, value);\n    } else if (!token.transferFromAndCall(from, to, value, data)) {\n      revert SafeERC20FailedOperation(address(token));\n    }\n  }\n\n  /**\n   * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n   * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n   * targeting contracts.\n   *\n   * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n   * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n   * once without retrying, and relies on the returned value to be true.\n   *\n   * Reverts if the returned value is other than `true`.\n   */\n  function approveAndCallRelaxed(\n    IERC1363 token,\n    address to,\n    uint256 value,\n    bytes memory data\n  ) internal {\n    if (to.code.length == 0) {\n      forceApprove(token, to, value);\n    } else if (!token.approveAndCall(to, value, data)) {\n      revert SafeERC20FailedOperation(address(token));\n    }\n  }\n\n  /**\n   * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the\n   * return value is optional (but if data is returned, it must not be false).\n   *\n   * @param token The token targeted by the call.\n   * @param to The recipient of the tokens\n   * @param value The amount of token to transfer\n   * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n   */\n  function _safeTransfer(\n    IERC20 token,\n    address to,\n    uint256 value,\n    bool bubble\n  ) private returns (bool success) {\n    bytes4 selector = IERC20.transfer.selector;\n\n    assembly ('memory-safe') {\n      let fmp := mload(0x40)\n      mstore(0x00, selector)\n      mstore(0x04, and(to, shr(96, not(0))))\n      mstore(0x24, value)\n      success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n      // if call success and return is true, all is good.\n      // otherwise (not success or return is not true), we need to perform further checks\n      if iszero(and(success, eq(mload(0x00), 1))) {\n        // if the call was a failure and bubble is enabled, bubble the error\n        if and(iszero(success), bubble) {\n          returndatacopy(fmp, 0x00, returndatasize())\n          revert(fmp, returndatasize())\n        }\n        // if the return value is not true, then the call is only successful if:\n        // - the token address has code\n        // - the returndata is empty\n        success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n      }\n      mstore(0x40, fmp)\n    }\n  }\n\n  /**\n   * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return\n   * value: the return value is optional (but if data is returned, it must not be false).\n   *\n   * @param token The token targeted by the call.\n   * @param from The sender of the tokens\n   * @param to The recipient of the tokens\n   * @param value The amount of token to transfer\n   * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n   */\n  function _safeTransferFrom(\n    IERC20 token,\n    address from,\n    address to,\n    uint256 value,\n    bool bubble\n  ) private returns (bool success) {\n    bytes4 selector = IERC20.transferFrom.selector;\n\n    assembly ('memory-safe') {\n      let fmp := mload(0x40)\n      mstore(0x00, selector)\n      mstore(0x04, and(from, shr(96, not(0))))\n      mstore(0x24, and(to, shr(96, not(0))))\n      mstore(0x44, value)\n      success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)\n      // if call success and return is true, all is good.\n      // otherwise (not success or return is not true), we need to perform further checks\n      if iszero(and(success, eq(mload(0x00), 1))) {\n        // if the call was a failure and bubble is enabled, bubble the error\n        if and(iszero(success), bubble) {\n          returndatacopy(fmp, 0x00, returndatasize())\n          revert(fmp, returndatasize())\n        }\n        // if the return value is not true, then the call is only successful if:\n        // - the token address has code\n        // - the returndata is empty\n        success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n      }\n      mstore(0x40, fmp)\n      mstore(0x60, 0)\n    }\n  }\n\n  /**\n   * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:\n   * the return value is optional (but if data is returned, it must not be false).\n   *\n   * @param token The token targeted by the call.\n   * @param spender The spender of the tokens\n   * @param value The amount of token to transfer\n   * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n   */\n  function _safeApprove(\n    IERC20 token,\n    address spender,\n    uint256 value,\n    bool bubble\n  ) private returns (bool success) {\n    bytes4 selector = IERC20.approve.selector;\n\n    assembly ('memory-safe') {\n      let fmp := mload(0x40)\n      mstore(0x00, selector)\n      mstore(0x04, and(spender, shr(96, not(0))))\n      mstore(0x24, value)\n      success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n      // if call success and return is true, all is good.\n      // otherwise (not success or return is not true), we need to perform further checks\n      if iszero(and(success, eq(mload(0x00), 1))) {\n        // if the call was a failure and bubble is enabled, bubble the error\n        if and(iszero(success), bubble) {\n          returndatacopy(fmp, 0x00, returndatasize())\n          revert(fmp, returndatasize())\n        }\n        // if the return value is not true, then the call is only successful if:\n        // - the token address has code\n        // - the returndata is empty\n        success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n      }\n      mstore(0x40, fmp)\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/IAuthority.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (access/manager/IAuthority.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Standard interface for permissioning originally defined in Dappsys.\n */\ninterface IAuthority {\n  /**\n   * @dev Returns true if the caller can invoke on a target the function identified by a function selector.\n   */\n  function canCall(\n    address caller,\n    address target,\n    bytes4 selector\n  ) external view returns (bool allowed);\n}\n"},"src/dependencies/openzeppelin/Comparators.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Comparators.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides a set of functions to compare values.\n *\n * _Available since v5.1._\n */\nlibrary Comparators {\n  function lt(uint256 a, uint256 b) internal pure returns (bool) {\n    return a < b;\n  }\n\n  function gt(uint256 a, uint256 b) internal pure returns (bool) {\n    return a > b;\n  }\n}\n"},"src/dependencies/openzeppelin/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 Int256Slot {\n    int256 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    assembly ('memory-safe') {\n      r.slot := slot\n    }\n  }\n\n  /**\n   * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n   */\n  function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n    assembly ('memory-safe') {\n      r.slot := slot\n    }\n  }\n\n  /**\n   * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n   */\n  function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n    assembly ('memory-safe') {\n      r.slot := slot\n    }\n  }\n\n  /**\n   * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n   */\n  function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n    assembly ('memory-safe') {\n      r.slot := slot\n    }\n  }\n\n  /**\n   * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n   */\n  function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n    assembly ('memory-safe') {\n      r.slot := slot\n    }\n  }\n\n  /**\n   * @dev Returns a `StringSlot` with member `value` located at `slot`.\n   */\n  function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n    assembly ('memory-safe') {\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    assembly ('memory-safe') {\n      r.slot := store.slot\n    }\n  }\n\n  /**\n   * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n   */\n  function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n    assembly ('memory-safe') {\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    assembly ('memory-safe') {\n      r.slot := store.slot\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/EnumerableSet.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/structs/EnumerableSet.sol)\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\n\npragma solidity ^0.8.24;\n\nimport {Arrays} from './Arrays.sol';\nimport {Math} from './Math.sol';\n\n/**\n * @dev Library for managing\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\n * types.\n *\n * Sets have the following properties:\n *\n * - Elements are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\n * - Set can be cleared (all elements removed) in O(n).\n *\n * ```solidity\n * contract Example {\n *     // Add the library methods\n *     using EnumerableSet for EnumerableSet.AddressSet;\n *\n *     // Declare a set state variable\n *     EnumerableSet.AddressSet private mySet;\n * }\n * ```\n *\n * The following types are supported:\n *\n * - `bytes32` (`Bytes32Set`) since v3.3.0\n * - `address` (`AddressSet`) since v3.3.0\n * - `uint256` (`UintSet`) since v3.3.0\n * - `string` (`StringSet`) since v5.4.0\n * - `bytes` (`BytesSet`) since v5.4.0\n *\n * [WARNING]\n * ====\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\n * unusable.\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\n *\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\n * array of EnumerableSet.\n * ====\n */\nlibrary EnumerableSet {\n  // To implement this library for multiple types with as little code\n  // repetition as possible, we write it in terms of a generic Set type with\n  // bytes32 values.\n  // The Set implementation uses private functions, and user-facing\n  // implementations (such as AddressSet) are just wrappers around the\n  // underlying Set.\n  // This means that we can only create new EnumerableSets for types that fit\n  // in bytes32.\n\n  struct Set {\n    // Storage of set values\n    bytes32[] _values;\n    // Position is the index of the value in the `values` array plus 1.\n    // Position 0 is used to mean a value is not in the set.\n    mapping(bytes32 value => uint256) _positions;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function _add(Set storage set, bytes32 value) private returns (bool) {\n    if (!_contains(set, value)) {\n      set._values.push(value);\n      // The value is stored at length-1, but we add 1 to all indexes\n      // and use 0 as a sentinel value\n      set._positions[value] = set._values.length;\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function _remove(Set storage set, bytes32 value) private returns (bool) {\n    // We cache the value's position to prevent multiple reads from the same storage slot\n    uint256 position = set._positions[value];\n\n    if (position != 0) {\n      // Equivalent to contains(set, value)\n      // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n      // the array, and then remove the last element (sometimes called as 'swap and pop').\n      // This modifies the order of the array, as noted in {at}.\n\n      uint256 valueIndex = position - 1;\n      uint256 lastIndex = set._values.length - 1;\n\n      if (valueIndex != lastIndex) {\n        bytes32 lastValue = set._values[lastIndex];\n\n        // Move the lastValue to the index where the value to delete is\n        set._values[valueIndex] = lastValue;\n        // Update the tracked position of the lastValue (that was just moved)\n        set._positions[lastValue] = position;\n      }\n\n      // Delete the slot where the moved value was stored\n      set._values.pop();\n\n      // Delete the tracked position for the deleted slot\n      delete set._positions[value];\n\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: This function has an unbounded cost that scales with set size. Developers should keep in mind that\n   * using it may render the function uncallable if the set grows to the point where clearing it consumes too much\n   * gas to fit in a block.\n   */\n  function _clear(Set storage set) private {\n    uint256 len = _length(set);\n    for (uint256 i = 0; i < len; ++i) {\n      delete set._positions[set._values[i]];\n    }\n    Arrays.unsafeSetLength(set._values, 0);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function _contains(Set storage set, bytes32 value) private view returns (bool) {\n    return set._positions[value] != 0;\n  }\n\n  /**\n   * @dev Returns the number of values on the set. O(1).\n   */\n  function _length(Set storage set) private view returns (uint256) {\n    return set._values.length;\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function _at(Set storage set, uint256 index) private view returns (bytes32) {\n    return set._values[index];\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function _values(Set storage set) private view returns (bytes32[] memory) {\n    return set._values;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function _values(\n    Set storage set,\n    uint256 start,\n    uint256 end\n  ) private view returns (bytes32[] memory) {\n    unchecked {\n      end = Math.min(end, _length(set));\n      start = Math.min(start, end);\n\n      uint256 len = end - start;\n      bytes32[] memory result = new bytes32[](len);\n      for (uint256 i = 0; i < len; ++i) {\n        result[i] = Arrays.unsafeAccess(set._values, start + i).value;\n      }\n      return result;\n    }\n  }\n\n  // Bytes32Set\n\n  struct Bytes32Set {\n    Set _inner;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n    return _add(set._inner, value);\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n    return _remove(set._inner, value);\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the\n   * function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.\n   */\n  function clear(Bytes32Set storage set) internal {\n    _clear(set._inner);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\n    return _contains(set._inner, value);\n  }\n\n  /**\n   * @dev Returns the number of values in the set. O(1).\n   */\n  function length(Bytes32Set storage set) internal view returns (uint256) {\n    return _length(set._inner);\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\n    return _at(set._inner, index);\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\n    bytes32[] memory store = _values(set._inner);\n    bytes32[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(\n    Bytes32Set storage set,\n    uint256 start,\n    uint256 end\n  ) internal view returns (bytes32[] memory) {\n    bytes32[] memory store = _values(set._inner, start, end);\n    bytes32[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  // AddressSet\n\n  struct AddressSet {\n    Set _inner;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(AddressSet storage set, address value) internal returns (bool) {\n    return _add(set._inner, bytes32(uint256(uint160(value))));\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(AddressSet storage set, address value) internal returns (bool) {\n    return _remove(set._inner, bytes32(uint256(uint160(value))));\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the\n   * function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.\n   */\n  function clear(AddressSet storage set) internal {\n    _clear(set._inner);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(AddressSet storage set, address value) internal view returns (bool) {\n    return _contains(set._inner, bytes32(uint256(uint160(value))));\n  }\n\n  /**\n   * @dev Returns the number of values in the set. O(1).\n   */\n  function length(AddressSet storage set) internal view returns (uint256) {\n    return _length(set._inner);\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(AddressSet storage set, uint256 index) internal view returns (address) {\n    return address(uint160(uint256(_at(set._inner, index))));\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(AddressSet storage set) internal view returns (address[] memory) {\n    bytes32[] memory store = _values(set._inner);\n    address[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(\n    AddressSet storage set,\n    uint256 start,\n    uint256 end\n  ) internal view returns (address[] memory) {\n    bytes32[] memory store = _values(set._inner, start, end);\n    address[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  // UintSet\n\n  struct UintSet {\n    Set _inner;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(UintSet storage set, uint256 value) internal returns (bool) {\n    return _add(set._inner, bytes32(value));\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(UintSet storage set, uint256 value) internal returns (bool) {\n    return _remove(set._inner, bytes32(value));\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the\n   * function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.\n   */\n  function clear(UintSet storage set) internal {\n    _clear(set._inner);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(UintSet storage set, uint256 value) internal view returns (bool) {\n    return _contains(set._inner, bytes32(value));\n  }\n\n  /**\n   * @dev Returns the number of values in the set. O(1).\n   */\n  function length(UintSet storage set) internal view returns (uint256) {\n    return _length(set._inner);\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(UintSet storage set, uint256 index) internal view returns (uint256) {\n    return uint256(_at(set._inner, index));\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(UintSet storage set) internal view returns (uint256[] memory) {\n    bytes32[] memory store = _values(set._inner);\n    uint256[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(\n    UintSet storage set,\n    uint256 start,\n    uint256 end\n  ) internal view returns (uint256[] memory) {\n    bytes32[] memory store = _values(set._inner, start, end);\n    uint256[] memory result;\n\n    assembly ('memory-safe') {\n      result := store\n    }\n\n    return result;\n  }\n\n  struct StringSet {\n    // Storage of set values\n    string[] _values;\n    // Position is the index of the value in the `values` array plus 1.\n    // Position 0 is used to mean a value is not in the set.\n    mapping(string value => uint256) _positions;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(StringSet storage set, string memory value) internal returns (bool) {\n    if (!contains(set, value)) {\n      set._values.push(value);\n      // The value is stored at length-1, but we add 1 to all indexes\n      // and use 0 as a sentinel value\n      set._positions[value] = set._values.length;\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(StringSet storage set, string memory value) internal returns (bool) {\n    // We cache the value's position to prevent multiple reads from the same storage slot\n    uint256 position = set._positions[value];\n\n    if (position != 0) {\n      // Equivalent to contains(set, value)\n      // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n      // the array, and then remove the last element (sometimes called as 'swap and pop').\n      // This modifies the order of the array, as noted in {at}.\n\n      uint256 valueIndex = position - 1;\n      uint256 lastIndex = set._values.length - 1;\n\n      if (valueIndex != lastIndex) {\n        string memory lastValue = set._values[lastIndex];\n\n        // Move the lastValue to the index where the value to delete is\n        set._values[valueIndex] = lastValue;\n        // Update the tracked position of the lastValue (that was just moved)\n        set._positions[lastValue] = position;\n      }\n\n      // Delete the slot where the moved value was stored\n      set._values.pop();\n\n      // Delete the tracked position for the deleted slot\n      delete set._positions[value];\n\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the\n   * function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.\n   */\n  function clear(StringSet storage set) internal {\n    uint256 len = length(set);\n    for (uint256 i = 0; i < len; ++i) {\n      delete set._positions[set._values[i]];\n    }\n    Arrays.unsafeSetLength(set._values, 0);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(StringSet storage set, string memory value) internal view returns (bool) {\n    return set._positions[value] != 0;\n  }\n\n  /**\n   * @dev Returns the number of values on the set. O(1).\n   */\n  function length(StringSet storage set) internal view returns (uint256) {\n    return set._values.length;\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(StringSet storage set, uint256 index) internal view returns (string memory) {\n    return set._values[index];\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(StringSet storage set) internal view returns (string[] memory) {\n    return set._values;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(\n    StringSet storage set,\n    uint256 start,\n    uint256 end\n  ) internal view returns (string[] memory) {\n    unchecked {\n      end = Math.min(end, length(set));\n      start = Math.min(start, end);\n\n      uint256 len = end - start;\n      string[] memory result = new string[](len);\n      for (uint256 i = 0; i < len; ++i) {\n        result[i] = Arrays.unsafeAccess(set._values, start + i).value;\n      }\n      return result;\n    }\n  }\n\n  struct BytesSet {\n    // Storage of set values\n    bytes[] _values;\n    // Position is the index of the value in the `values` array plus 1.\n    // Position 0 is used to mean a value is not in the set.\n    mapping(bytes value => uint256) _positions;\n  }\n\n  /**\n   * @dev Add a value to a set. O(1).\n   *\n   * Returns true if the value was added to the set, that is if it was not\n   * already present.\n   */\n  function add(BytesSet storage set, bytes memory value) internal returns (bool) {\n    if (!contains(set, value)) {\n      set._values.push(value);\n      // The value is stored at length-1, but we add 1 to all indexes\n      // and use 0 as a sentinel value\n      set._positions[value] = set._values.length;\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes a value from a set. O(1).\n   *\n   * Returns true if the value was removed from the set, that is if it was\n   * present.\n   */\n  function remove(BytesSet storage set, bytes memory value) internal returns (bool) {\n    // We cache the value's position to prevent multiple reads from the same storage slot\n    uint256 position = set._positions[value];\n\n    if (position != 0) {\n      // Equivalent to contains(set, value)\n      // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n      // the array, and then remove the last element (sometimes called as 'swap and pop').\n      // This modifies the order of the array, as noted in {at}.\n\n      uint256 valueIndex = position - 1;\n      uint256 lastIndex = set._values.length - 1;\n\n      if (valueIndex != lastIndex) {\n        bytes memory lastValue = set._values[lastIndex];\n\n        // Move the lastValue to the index where the value to delete is\n        set._values[valueIndex] = lastValue;\n        // Update the tracked position of the lastValue (that was just moved)\n        set._positions[lastValue] = position;\n      }\n\n      // Delete the slot where the moved value was stored\n      set._values.pop();\n\n      // Delete the tracked position for the deleted slot\n      delete set._positions[value];\n\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  /**\n   * @dev Removes all the values from a set. O(n).\n   *\n   * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the\n   * function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.\n   */\n  function clear(BytesSet storage set) internal {\n    uint256 len = length(set);\n    for (uint256 i = 0; i < len; ++i) {\n      delete set._positions[set._values[i]];\n    }\n    Arrays.unsafeSetLength(set._values, 0);\n  }\n\n  /**\n   * @dev Returns true if the value is in the set. O(1).\n   */\n  function contains(BytesSet storage set, bytes memory value) internal view returns (bool) {\n    return set._positions[value] != 0;\n  }\n\n  /**\n   * @dev Returns the number of values on the set. O(1).\n   */\n  function length(BytesSet storage set) internal view returns (uint256) {\n    return set._values.length;\n  }\n\n  /**\n   * @dev Returns the value stored at position `index` in the set. O(1).\n   *\n   * Note that there are no guarantees on the ordering of values inside the\n   * array, and it may change when more values are added or removed.\n   *\n   * Requirements:\n   *\n   * - `index` must be strictly less than {length}.\n   */\n  function at(BytesSet storage set, uint256 index) internal view returns (bytes memory) {\n    return set._values[index];\n  }\n\n  /**\n   * @dev Return the entire set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(BytesSet storage set) internal view returns (bytes[] memory) {\n    return set._values;\n  }\n\n  /**\n   * @dev Return a slice of the set in an array\n   *\n   * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n   * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n   * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n   * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n   */\n  function values(\n    BytesSet storage set,\n    uint256 start,\n    uint256 end\n  ) internal view returns (bytes[] memory) {\n    unchecked {\n      end = Math.min(end, length(set));\n      start = Math.min(start, end);\n\n      uint256 len = end - start;\n      bytes[] memory result = new bytes[](len);\n      for (uint256 i = 0; i < len; ++i) {\n        result[i] = Arrays.unsafeAccess(set._values, start + i).value;\n      }\n      return result;\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/AuthorityUtils.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (access/manager/AuthorityUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {IAuthority} from './IAuthority.sol';\n\nlibrary AuthorityUtils {\n  /**\n   * @dev Since `AccessManager` implements an extended IAuthority interface, invoking `canCall` with backwards compatibility\n   * for the preexisting `IAuthority` interface requires special care to avoid reverting on insufficient return data.\n   * This helper function takes care of invoking `canCall` in a backwards compatible way without reverting.\n   */\n  function canCallWithDelay(\n    address authority,\n    address caller,\n    address target,\n    bytes4 selector\n  ) internal view returns (bool immediate, uint32 delay) {\n    bytes memory data = abi.encodeCall(IAuthority.canCall, (caller, target, selector));\n\n    assembly ('memory-safe') {\n      mstore(0x00, 0x00)\n      mstore(0x20, 0x00)\n\n      if staticcall(gas(), authority, add(data, 0x20), mload(data), 0x00, 0x40) {\n        immediate := mload(0x00)\n        delay := mload(0x20)\n\n        // If delay does not fit in a uint32, return 0 (no delay)\n        // equivalent to: if gt(delay, 0xFFFFFFFF) { delay := 0 }\n        delay := mul(delay, iszero(shr(32, delay)))\n      }\n    }\n  }\n}\n"},"src/dependencies/openzeppelin/IAccessManaged.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (access/manager/IAccessManaged.sol)\n\npragma solidity >=0.8.4;\n\ninterface IAccessManaged {\n  /**\n   * @dev Authority that manages this contract was updated.\n   */\n  event AuthorityUpdated(address authority);\n\n  error AccessManagedUnauthorized(address caller);\n  error AccessManagedRequiredDelay(address caller, uint32 delay);\n  error AccessManagedInvalidAuthority(address authority);\n\n  /**\n   * @dev Returns the current authority.\n   */\n  function authority() external view returns (address);\n\n  /**\n   * @dev Transfers control to a new authority. The caller must be the current authority.\n   */\n  function setAuthority(address) external;\n\n  /**\n   * @dev Returns true only in the context of a delayed restricted call, at the moment that the scheduled operation is\n   * being consumed. Prevents denial of service for delayed restricted calls in the case that the contract performs\n   * attacker controlled calls.\n   */\n  function isConsumingScheduledOp() external view returns (bytes4);\n}\n"},"src/dependencies/openzeppelin/IAccessManager.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (access/manager/IAccessManager.sol)\n\npragma solidity >=0.8.4;\n\ninterface IAccessManager {\n  /**\n   * @dev A delayed operation was scheduled.\n   */\n  event OperationScheduled(\n    bytes32 indexed operationId,\n    uint32 indexed nonce,\n    uint48 schedule,\n    address caller,\n    address target,\n    bytes data\n  );\n\n  /**\n   * @dev A scheduled operation was executed.\n   */\n  event OperationExecuted(bytes32 indexed operationId, uint32 indexed nonce);\n\n  /**\n   * @dev A scheduled operation was canceled.\n   */\n  event OperationCanceled(bytes32 indexed operationId, uint32 indexed nonce);\n\n  /**\n   * @dev Informational labelling for a roleId.\n   */\n  event RoleLabel(uint64 indexed roleId, string label);\n\n  /**\n   * @dev Emitted when `account` is granted `roleId`.\n   *\n   * NOTE: The meaning of the `since` argument depends on the `newMember` argument.\n   * If the role is granted to a new member, the `since` argument indicates when the account becomes a member of the role,\n   * otherwise it indicates the execution delay for this account and roleId is updated.\n   */\n  event RoleGranted(\n    uint64 indexed roleId,\n    address indexed account,\n    uint32 delay,\n    uint48 since,\n    bool newMember\n  );\n\n  /**\n   * @dev Emitted when `account` membership or `roleId` is revoked. Unlike granting, revoking is instantaneous.\n   */\n  event RoleRevoked(uint64 indexed roleId, address indexed account);\n\n  /**\n   * @dev Role acting as admin over a given `roleId` is updated.\n   */\n  event RoleAdminChanged(uint64 indexed roleId, uint64 indexed admin);\n\n  /**\n   * @dev Role acting as guardian over a given `roleId` is updated.\n   */\n  event RoleGuardianChanged(uint64 indexed roleId, uint64 indexed guardian);\n\n  /**\n   * @dev Grant delay for a given `roleId` will be updated to `delay` when `since` is reached.\n   */\n  event RoleGrantDelayChanged(uint64 indexed roleId, uint32 delay, uint48 since);\n\n  /**\n   * @dev Target mode is updated (true = closed, false = open).\n   */\n  event TargetClosed(address indexed target, bool closed);\n\n  /**\n   * @dev Role required to invoke `selector` on `target` is updated to `roleId`.\n   */\n  event TargetFunctionRoleUpdated(address indexed target, bytes4 selector, uint64 indexed roleId);\n\n  /**\n   * @dev Admin delay for a given `target` will be updated to `delay` when `since` is reached.\n   */\n  event TargetAdminDelayUpdated(address indexed target, uint32 delay, uint48 since);\n\n  error AccessManagerAlreadyScheduled(bytes32 operationId);\n  error AccessManagerNotScheduled(bytes32 operationId);\n  error AccessManagerNotReady(bytes32 operationId);\n  error AccessManagerExpired(bytes32 operationId);\n  error AccessManagerLockedRole(uint64 roleId);\n  error AccessManagerBadConfirmation();\n  error AccessManagerUnauthorizedAccount(address msgsender, uint64 roleId);\n  error AccessManagerUnauthorizedCall(address caller, address target, bytes4 selector);\n  error AccessManagerUnauthorizedConsume(address target);\n  error AccessManagerUnauthorizedCancel(\n    address msgsender,\n    address caller,\n    address target,\n    bytes4 selector\n  );\n  error AccessManagerInvalidInitialAdmin(address initialAdmin);\n\n  /**\n   * @dev Check if an address (`caller`) is authorised to call a given function on a given contract directly (with\n   * no restriction). Additionally, it returns the delay needed to perform the call indirectly through the {schedule}\n   * & {execute} workflow.\n   *\n   * This function is usually called by the targeted contract to control immediate execution of restricted functions.\n   * Therefore we only return true if the call can be performed without any delay. If the call is subject to a\n   * previously set delay (not zero), then the function should return false and the caller should schedule the operation\n   * for future execution.\n   *\n   * If `allowed` is true, the delay can be disregarded and the operation can be immediately executed, otherwise\n   * the operation can be executed if and only if delay is greater than 0.\n   *\n   * NOTE: The IAuthority interface does not include the `uint32` delay. This is an extension of that interface that\n   * is backward compatible. Some contracts may thus ignore the second return argument. In that case they will fail\n   * to identify the indirect workflow, and will consider calls that require a delay to be forbidden.\n   *\n   * NOTE: This function does not report the permissions of the admin functions in the manager itself. These are defined by the\n   * {AccessManager} documentation.\n   */\n  function canCall(\n    address caller,\n    address target,\n    bytes4 selector\n  ) external view returns (bool allowed, uint32 delay);\n\n  /**\n   * @dev Expiration delay for scheduled proposals. Defaults to 1 week.\n   *\n   * IMPORTANT: Avoid overriding the expiration with 0. Otherwise every contract proposal will be expired immediately,\n   * disabling any scheduling usage.\n   */\n  function expiration() external view returns (uint32);\n\n  /**\n   * @dev Minimum setback for all delay updates, with the exception of execution delays. It\n   * can be increased without setback (and reset via {revokeRole} in the event of an\n   * accidental increase). Defaults to 5 days.\n   */\n  function minSetback() external view returns (uint32);\n\n  /**\n   * @dev Get whether the contract is closed disabling any access. Otherwise role permissions are applied.\n   *\n   * NOTE: When the manager itself is closed, admin functions are still accessible to avoid locking the contract.\n   */\n  function isTargetClosed(address target) external view returns (bool);\n\n  /**\n   * @dev Get the role required to call a function.\n   */\n  function getTargetFunctionRole(address target, bytes4 selector) external view returns (uint64);\n\n  /**\n   * @dev Get the admin delay for a target contract. Changes to contract configuration are subject to this delay.\n   */\n  function getTargetAdminDelay(address target) external view returns (uint32);\n\n  /**\n   * @dev Get the id of the role that acts as an admin for the given role.\n   *\n   * The admin permission is required to grant the role, revoke the role and update the execution delay to execute\n   * an operation that is restricted to this role.\n   */\n  function getRoleAdmin(uint64 roleId) external view returns (uint64);\n\n  /**\n   * @dev Get the role that acts as a guardian for a given role.\n   *\n   * The guardian permission allows canceling operations that have been scheduled under the role.\n   */\n  function getRoleGuardian(uint64 roleId) external view returns (uint64);\n\n  /**\n   * @dev Get the role current grant delay.\n   *\n   * Its value may change at any point without an event emitted following a call to {setGrantDelay}.\n   * Changes to this value, including effect timepoint are notified in advance by the {RoleGrantDelayChanged} event.\n   */\n  function getRoleGrantDelay(uint64 roleId) external view returns (uint32);\n\n  /**\n   * @dev Get the access details for a given account for a given role. These details include the timepoint at which\n   * membership becomes active, and the delay applied to all operations by this user that requires this permission\n   * level.\n   *\n   * Returns:\n   * [0] Timestamp at which the account membership becomes valid. 0 means role is not granted.\n   * [1] Current execution delay for the account.\n   * [2] Pending execution delay for the account.\n   * [3] Timestamp at which the pending execution delay will become active. 0 means no delay update is scheduled.\n   */\n  function getAccess(\n    uint64 roleId,\n    address account\n  ) external view returns (uint48 since, uint32 currentDelay, uint32 pendingDelay, uint48 effect);\n\n  /**\n   * @dev Check if a given account currently has the permission level corresponding to a given role. Note that this\n   * permission might be associated with an execution delay. {getAccess} can provide more details.\n   */\n  function hasRole(\n    uint64 roleId,\n    address account\n  ) external view returns (bool isMember, uint32 executionDelay);\n\n  /**\n   * @dev Give a label to a role, for improved role discoverability by UIs.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {RoleLabel} event.\n   */\n  function labelRole(uint64 roleId, string calldata label) external;\n\n  /**\n   * @dev Add `account` to `roleId`, or change its execution delay.\n   *\n   * This gives the account the authorization to call any function that is restricted to this role. An optional\n   * execution delay (in seconds) can be set. If that delay is non 0, the user is required to schedule any operation\n   * that is restricted to members of this role. The user will only be able to execute the operation after the delay has\n   * passed, before it has expired. During this period, admin and guardians can cancel the operation (see {cancel}).\n   *\n   * If the account has already been granted this role, the execution delay will be updated. This update is not\n   * immediate and follows the delay rules. For example, if a user currently has a delay of 3 hours, and this is\n   * called to reduce that delay to 1 hour, the new delay will take some time to take effect, enforcing that any\n   * operation executed in the 3 hours that follows this update was indeed scheduled before this update.\n   *\n   * Requirements:\n   *\n   * - the caller must be an admin for the role (see {getRoleAdmin})\n   * - granted role must not be the `PUBLIC_ROLE`\n   *\n   * Emits a {RoleGranted} event.\n   */\n  function grantRole(uint64 roleId, address account, uint32 executionDelay) external;\n\n  /**\n   * @dev Remove an account from a role, with immediate effect. If the account does not have the role, this call has\n   * no effect.\n   *\n   * Requirements:\n   *\n   * - the caller must be an admin for the role (see {getRoleAdmin})\n   * - revoked role must not be the `PUBLIC_ROLE`\n   *\n   * Emits a {RoleRevoked} event if the account had the role.\n   */\n  function revokeRole(uint64 roleId, address account) external;\n\n  /**\n   * @dev Renounce role permissions for the calling account with immediate effect. If the sender is not in\n   * the role this call has no effect.\n   *\n   * Requirements:\n   *\n   * - the caller must be `callerConfirmation`.\n   *\n   * Emits a {RoleRevoked} event if the account had the role.\n   */\n  function renounceRole(uint64 roleId, address callerConfirmation) external;\n\n  /**\n   * @dev Change admin role for a given role.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {RoleAdminChanged} event\n   */\n  function setRoleAdmin(uint64 roleId, uint64 admin) external;\n\n  /**\n   * @dev Change guardian role for a given role.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {RoleGuardianChanged} event\n   */\n  function setRoleGuardian(uint64 roleId, uint64 guardian) external;\n\n  /**\n   * @dev Update the delay for granting a `roleId`.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {RoleGrantDelayChanged} event.\n   */\n  function setGrantDelay(uint64 roleId, uint32 newDelay) external;\n\n  /**\n   * @dev Set the role required to call functions identified by the `selectors` in the `target` contract.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {TargetFunctionRoleUpdated} event per selector.\n   */\n  function setTargetFunctionRole(\n    address target,\n    bytes4[] calldata selectors,\n    uint64 roleId\n  ) external;\n\n  /**\n   * @dev Set the delay for changing the configuration of a given target contract.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {TargetAdminDelayUpdated} event.\n   */\n  function setTargetAdminDelay(address target, uint32 newDelay) external;\n\n  /**\n   * @dev Set the closed flag for a contract.\n   *\n   * Closing the manager itself won't disable access to admin methods to avoid locking the contract.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   *\n   * Emits a {TargetClosed} event.\n   */\n  function setTargetClosed(address target, bool closed) external;\n\n  /**\n   * @dev Return the timepoint at which a scheduled operation will be ready for execution. This returns 0 if the\n   * operation is not yet scheduled, has expired, was executed, or was canceled.\n   */\n  function getSchedule(bytes32 id) external view returns (uint48);\n\n  /**\n   * @dev Return the nonce for the latest scheduled operation with a given id. Returns 0 if the operation has never\n   * been scheduled.\n   */\n  function getNonce(bytes32 id) external view returns (uint32);\n\n  /**\n   * @dev Schedule a delayed operation for future execution, and return the operation identifier. It is possible to\n   * choose the timestamp at which the operation becomes executable as long as it satisfies the execution delays\n   * required for the caller. The special value zero will automatically set the earliest possible time.\n   *\n   * Returns the `operationId` that was scheduled. Since this value is a hash of the parameters, it can reoccur when\n   * the same parameters are used; if this is relevant, the returned `nonce` can be used to uniquely identify this\n   * scheduled operation from other occurrences of the same `operationId` in invocations of {execute} and {cancel}.\n   *\n   * Emits a {OperationScheduled} event.\n   *\n   * NOTE: It is not possible to concurrently schedule more than one operation with the same `target` and `data`. If\n   * this is necessary, a random byte can be appended to `data` to act as a salt that will be ignored by the target\n   * contract if it is using standard Solidity ABI encoding.\n   */\n  function schedule(\n    address target,\n    bytes calldata data,\n    uint48 when\n  ) external returns (bytes32 operationId, uint32 nonce);\n\n  /**\n   * @dev Execute a function that is delay restricted, provided it was properly scheduled beforehand, or the\n   * execution delay is 0.\n   *\n   * Returns the nonce that identifies the previously scheduled operation that is executed, or 0 if the\n   * operation wasn't previously scheduled (if the caller doesn't have an execution delay).\n   *\n   * Emits an {OperationExecuted} event only if the call was scheduled and delayed.\n   */\n  function execute(address target, bytes calldata data) external payable returns (uint32);\n\n  /**\n   * @dev Cancel a scheduled (delayed) operation. Returns the nonce that identifies the previously scheduled\n   * operation that is cancelled.\n   *\n   * Requirements:\n   *\n   * - the caller must be the proposer, a guardian of the targeted function, or a global admin\n   *\n   * Emits a {OperationCanceled} event.\n   */\n  function cancel(address caller, address target, bytes calldata data) external returns (uint32);\n\n  /**\n   * @dev Consume a scheduled operation targeting the caller. If such an operation exists, mark it as consumed\n   * (emit an {OperationExecuted} event and clean the state). Otherwise, throw an error.\n   *\n   * This is useful for contracts that want to enforce that calls targeting them were scheduled on the manager,\n   * with all the verifications that it implies.\n   *\n   * Emit a {OperationExecuted} event.\n   */\n  function consumeScheduledOp(address caller, bytes calldata data) external;\n\n  /**\n   * @dev Hashing function for delayed operations.\n   */\n  function hashOperation(\n    address caller,\n    address target,\n    bytes calldata data\n  ) external view returns (bytes32);\n\n  /**\n   * @dev Changes the authority of a target managed by this manager instance.\n   *\n   * Requirements:\n   *\n   * - the caller must be a global admin\n   */\n  function updateAuthority(address target, address newAuthority) external;\n}\n"},"src/dependencies/openzeppelin/SlotDerivation.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/SlotDerivation.sol)\n// This file was procedurally generated from scripts/generate/templates/SlotDerivation.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Library for computing storage (and transient storage) locations from namespaces and deriving slots\n * corresponding to standard patterns. The derivation method for array and mapping matches the storage layout used by\n * the solidity language / compiler.\n *\n * See https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays[Solidity docs for mappings and dynamic arrays.].\n *\n * Example usage:\n * ```solidity\n * contract Example {\n *     // Add the library methods\n *     using StorageSlot for bytes32;\n *     using SlotDerivation for *;\n *\n *     // Declare a namespace\n *     string private constant _NAMESPACE = \"<namespace>\"; // eg. OpenZeppelin.Slot\n *\n *     function setValueInNamespace(uint256 key, address newValue) internal {\n *         _NAMESPACE.erc7201Slot().deriveMapping(key).getAddressSlot().value = newValue;\n *     }\n *\n *     function getValueInNamespace(uint256 key) internal view returns (address) {\n *         return _NAMESPACE.erc7201Slot().deriveMapping(key).getAddressSlot().value;\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {StorageSlot}.\n *\n * NOTE: This library provides a way to manipulate storage locations in a non-standard way. Tooling for checking\n * upgrade safety will ignore the slots accessed through this library.\n *\n * _Available since v5.1._\n */\nlibrary SlotDerivation {\n  /**\n   * @dev Derive an ERC-7201 slot from a string (namespace).\n   */\n  function erc7201Slot(string memory namespace) internal pure returns (bytes32 slot) {\n    assembly ('memory-safe') {\n      mstore(0x00, sub(keccak256(add(namespace, 0x20), mload(namespace)), 1))\n      slot := and(keccak256(0x00, 0x20), not(0xff))\n    }\n  }\n\n  /**\n   * @dev Add an offset to a slot to get the n-th element of a structure or an array.\n   */\n  function offset(bytes32 slot, uint256 pos) internal pure returns (bytes32 result) {\n    unchecked {\n      return bytes32(uint256(slot) + pos);\n    }\n  }\n\n  /**\n   * @dev Derive the location of the first element in an array from the slot where the length is stored.\n   */\n  function deriveArray(bytes32 slot) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, slot)\n      result := keccak256(0x00, 0x20)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, address key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, and(key, shr(96, not(0))))\n      mstore(0x20, slot)\n      result := keccak256(0x00, 0x40)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, bool key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, iszero(iszero(key)))\n      mstore(0x20, slot)\n      result := keccak256(0x00, 0x40)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, bytes32 key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, key)\n      mstore(0x20, slot)\n      result := keccak256(0x00, 0x40)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, uint256 key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, key)\n      mstore(0x20, slot)\n      result := keccak256(0x00, 0x40)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, int256 key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      mstore(0x00, key)\n      mstore(0x20, slot)\n      result := keccak256(0x00, 0x40)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, string memory key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      let length := mload(key)\n      let begin := add(key, 0x20)\n      let end := add(begin, length)\n      let cache := mload(end)\n      mstore(end, slot)\n      result := keccak256(begin, add(length, 0x20))\n      mstore(end, cache)\n    }\n  }\n\n  /**\n   * @dev Derive the location of a mapping element from the key.\n   */\n  function deriveMapping(bytes32 slot, bytes memory key) internal pure returns (bytes32 result) {\n    assembly ('memory-safe') {\n      let length := mload(key)\n      let begin := add(key, 0x20)\n      let end := add(begin, length)\n      let cache := mload(end)\n      mstore(end, slot)\n      result := keccak256(begin, add(length, 0x20))\n      mstore(end, cache)\n    }\n  }\n}\n"},"src/hub/interfaces/IBasicInterestRateStrategy.sol":{"content":"// SPDX-License-Identifier: LicenseRef-BUSL\npragma solidity ^0.8.0;\n\n/// @title IBasicInterestRateStrategy\n/// @author Aave Labs\n/// @notice Basic interface for any interest rate strategy.\ninterface IBasicInterestRateStrategy {\n  /// @notice Thrown when the interest rate data is not set for the asset.\n  /// @param assetId The identifier of the asset with no interest rate data set.\n  error InterestRateDataNotSet(uint256 assetId);\n\n  /// @notice Sets the interest rate parameters for a specified asset.\n  /// @param assetId The identifier of the asset.\n  /// @param data The encoded parameters used to configure the interest rate of the asset.\n  function setInterestRateData(uint256 assetId, bytes calldata data) external;\n\n  /// @notice Calculates the interest rate depending on the asset's state and configurations.\n  /// @param assetId The identifier of the asset.\n  /// @param liquidity The current available liquidity of the asset.\n  /// @param drawn The current drawn amount of the asset.\n  /// @param deficit The current deficit of the asset.\n  /// @param swept The current swept (reinvested) amount of the asset.\n  /// @return The interest rate, expressed in RAY.\n  function calculateInterestRate(\n    uint256 assetId,\n    uint256 liquidity,\n    uint256 drawn,\n    uint256 deficit,\n    uint256 swept\n  ) external view returns (uint256);\n}\n"},"src/dependencies/openzeppelin-upgradeable/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n *     function initialize() initializer public {\n *         __ERC20_init(\"MyToken\", \"MTK\");\n *     }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n *     function initializeV2() reinitializer(2) public {\n *         __ERC20Permit_init(\"MyToken\");\n *     }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n *     _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n  /**\n   * @dev Storage of the initializable contract.\n   *\n   * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n   * when using with upgradeable contracts.\n   *\n   * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n   */\n  struct InitializableStorage {\n    /**\n     * @dev Indicates that the contract has been initialized.\n     */\n    uint64 _initialized;\n    /**\n     * @dev Indicates that the contract is in the process of being initialized.\n     */\n    bool _initializing;\n  }\n\n  // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n  bytes32 private constant INITIALIZABLE_STORAGE =\n    0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n  /**\n   * @dev The contract is already initialized.\n   */\n  error InvalidInitialization();\n\n  /**\n   * @dev The contract is not initializing.\n   */\n  error NotInitializing();\n\n  /**\n   * @dev Triggered when the contract has been initialized or reinitialized.\n   */\n  event Initialized(uint64 version);\n\n  /**\n   * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n   * `onlyInitializing` functions can be used to initialize parent contracts.\n   *\n   * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n   * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n   * production.\n   *\n   * Emits an {Initialized} event.\n   */\n  modifier initializer() {\n    // solhint-disable-next-line var-name-mixedcase\n    InitializableStorage storage $ = _getInitializableStorage();\n\n    // Cache values to avoid duplicated sloads\n    bool isTopLevelCall = !$._initializing;\n    uint64 initialized = $._initialized;\n\n    // Allowed calls:\n    // - initialSetup: the contract is not in the initializing state and no previous version was\n    //                 initialized\n    // - construction: the contract is initialized at version 1 (no reinitialization) and the\n    //                 current contract is just being deployed\n    bool initialSetup = initialized == 0 && isTopLevelCall;\n    bool construction = initialized == 1 && address(this).code.length == 0;\n\n    if (!initialSetup && !construction) {\n      revert InvalidInitialization();\n    }\n    $._initialized = 1;\n    if (isTopLevelCall) {\n      $._initializing = true;\n    }\n    _;\n    if (isTopLevelCall) {\n      $._initializing = false;\n      emit Initialized(1);\n    }\n  }\n\n  /**\n   * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n   * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n   * used to initialize parent contracts.\n   *\n   * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n   * are added through upgrades and that require initialization.\n   *\n   * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n   * cannot be nested. If one is invoked in the context of another, execution will revert.\n   *\n   * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n   * a contract, executing them in the right order is up to the developer or operator.\n   *\n   * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n   *\n   * Emits an {Initialized} event.\n   */\n  modifier reinitializer(uint64 version) {\n    // solhint-disable-next-line var-name-mixedcase\n    InitializableStorage storage $ = _getInitializableStorage();\n\n    if ($._initializing || $._initialized >= version) {\n      revert InvalidInitialization();\n    }\n    $._initialized = version;\n    $._initializing = true;\n    _;\n    $._initializing = false;\n    emit Initialized(version);\n  }\n\n  /**\n   * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n   * {initializer} and {reinitializer} modifiers, directly or indirectly.\n   */\n  modifier onlyInitializing() {\n    _checkInitializing();\n    _;\n  }\n\n  /**\n   * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n   */\n  function _checkInitializing() internal view virtual {\n    if (!_isInitializing()) {\n      revert NotInitializing();\n    }\n  }\n\n  /**\n   * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n   * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n   * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n   * through proxies.\n   *\n   * Emits an {Initialized} event the first time it is successfully executed.\n   */\n  function _disableInitializers() internal virtual {\n    // solhint-disable-next-line var-name-mixedcase\n    InitializableStorage storage $ = _getInitializableStorage();\n\n    if ($._initializing) {\n      revert InvalidInitialization();\n    }\n    if ($._initialized != type(uint64).max) {\n      $._initialized = type(uint64).max;\n      emit Initialized(type(uint64).max);\n    }\n  }\n\n  /**\n   * @dev Returns the highest version that has been initialized. See {reinitializer}.\n   */\n  function _getInitializedVersion() internal view returns (uint64) {\n    return _getInitializableStorage()._initialized;\n  }\n\n  /**\n   * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n   */\n  function _isInitializing() internal view returns (bool) {\n    return _getInitializableStorage()._initializing;\n  }\n\n  /**\n   * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n   *\n   * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n   */\n  function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n    return INITIALIZABLE_STORAGE;\n  }\n\n  /**\n   * @dev Returns a pointer to the storage namespace.\n   */\n  // solhint-disable-next-line var-name-mixedcase\n  function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n    bytes32 slot = _initializableStorageSlot();\n    assembly {\n      $.slot := slot\n    }\n  }\n}\n"},"src/dependencies/openzeppelin-upgradeable/ContextUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from './Initializable.sol';\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 ContextUpgradeable is Initializable {\n    function __Context_init() internal onlyInitializing {\n    }\n\n    function __Context_init_unchained() internal onlyInitializing {\n    }\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"},"src/dependencies/openzeppelin-upgradeable/AccessManagedUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (access/manager/AccessManaged.sol)\n\npragma solidity ^0.8.20;\n\nimport {AuthorityUtils} from '../openzeppelin/AuthorityUtils.sol';\nimport {IAccessManager} from '../openzeppelin/IAccessManager.sol';\nimport {IAccessManaged} from '../openzeppelin/IAccessManaged.sol';\nimport {ContextUpgradeable} from './ContextUpgradeable.sol';\nimport {Initializable} from './Initializable.sol';\n\n/**\n * @dev This contract module makes available a {restricted} modifier. Functions decorated with this modifier will be\n * permissioned according to an \"authority\": a contract like {AccessManager} that follows the {IAuthority} interface,\n * implementing a policy that allows certain callers to access certain functions.\n *\n * IMPORTANT: The `restricted` modifier should never be used on `internal` functions, judiciously used in `public`\n * functions, and ideally only used in `external` functions. See {restricted}.\n */\nabstract contract AccessManagedUpgradeable is Initializable, ContextUpgradeable, IAccessManaged {\n  /// @custom:storage-location erc7201:openzeppelin.storage.AccessManaged\n  struct AccessManagedStorage {\n    address _authority;\n    bool _consumingSchedule;\n  }\n\n  // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.AccessManaged\")) - 1)) & ~bytes32(uint256(0xff))\n  bytes32 private constant AccessManagedStorageLocation =\n    0xf3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00;\n\n  function _getAccessManagedStorage() private pure returns (AccessManagedStorage storage $) {\n    assembly {\n      $.slot := AccessManagedStorageLocation\n    }\n  }\n\n  /**\n   * @dev Initializes the contract connected to an initial authority.\n   */\n  function __AccessManaged_init(address initialAuthority) internal onlyInitializing {\n    __AccessManaged_init_unchained(initialAuthority);\n  }\n\n  function __AccessManaged_init_unchained(address initialAuthority) internal onlyInitializing {\n    _setAuthority(initialAuthority);\n  }\n\n  /**\n   * @dev Restricts access to a function as defined by the connected Authority for this contract and the\n   * caller and selector of the function that entered the contract.\n   *\n   * [IMPORTANT]\n   * ====\n   * In general, this modifier should only be used on `external` functions. It is okay to use it on `public`\n   * functions that are used as external entry points and are not called internally. Unless you know what you're\n   * doing, it should never be used on `internal` functions. Failure to follow these rules can have critical security\n   * implications! This is because the permissions are determined by the function that entered the contract, i.e. the\n   * function at the bottom of the call stack, and not the function where the modifier is visible in the source code.\n   * ====\n   *\n   * [WARNING]\n   * ====\n   * Avoid adding this modifier to the https://docs.soliditylang.org/en/v0.8.20/contracts.html#receive-ether-function[`receive()`]\n   * function or the https://docs.soliditylang.org/en/v0.8.20/contracts.html#fallback-function[`fallback()`]. These\n   * functions are the only execution paths where a function selector cannot be unambiguously determined from the calldata\n   * since the selector defaults to `0x00000000` in the `receive()` function and similarly in the `fallback()` function\n   * if no calldata is provided. (See {_checkCanCall}).\n   *\n   * The `receive()` function will always panic whereas the `fallback()` may panic depending on the calldata length.\n   * ====\n   */\n  modifier restricted() {\n    _checkCanCall(_msgSender(), _msgData());\n    _;\n  }\n\n  /// @inheritdoc IAccessManaged\n  function authority() public view virtual returns (address) {\n    AccessManagedStorage storage $ = _getAccessManagedStorage();\n    return $._authority;\n  }\n\n  /// @inheritdoc IAccessManaged\n  function setAuthority(address newAuthority) public virtual {\n    address caller = _msgSender();\n    if (caller != authority()) {\n      revert AccessManagedUnauthorized(caller);\n    }\n    if (newAuthority.code.length == 0) {\n      revert AccessManagedInvalidAuthority(newAuthority);\n    }\n    _setAuthority(newAuthority);\n  }\n\n  /// @inheritdoc IAccessManaged\n  function isConsumingScheduledOp() public view returns (bytes4) {\n    AccessManagedStorage storage $ = _getAccessManagedStorage();\n    return $._consumingSchedule ? this.isConsumingScheduledOp.selector : bytes4(0);\n  }\n\n  /**\n   * @dev Transfers control to a new authority. Internal function with no access restriction. Allows bypassing the\n   * permissions set by the current authority.\n   */\n  function _setAuthority(address newAuthority) internal virtual {\n    AccessManagedStorage storage $ = _getAccessManagedStorage();\n    $._authority = newAuthority;\n    emit AuthorityUpdated(newAuthority);\n  }\n\n  /**\n   * @dev Reverts if the caller is not allowed to call the function identified by a selector. Panics if the calldata\n   * is less than 4 bytes long.\n   */\n  function _checkCanCall(address caller, bytes calldata data) internal virtual {\n    AccessManagedStorage storage $ = _getAccessManagedStorage();\n    (bool immediate, uint32 delay) = AuthorityUtils.canCallWithDelay(\n      authority(),\n      caller,\n      address(this),\n      bytes4(data[0:4])\n    );\n    if (!immediate) {\n      if (delay > 0) {\n        $._consumingSchedule = true;\n        IAccessManager(authority()).consumeScheduledOp(caller, data);\n        $._consumingSchedule = false;\n      } else {\n        revert AccessManagedUnauthorized(caller);\n      }\n    }\n  }\n}\n"}},"language":"Solidity","settings":{"viaIR":true,"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"optimizer":{"runs":22300,"enabled":true},"evmVersion":"cancun","remappings":["erc4626-tests/=lib/erc4626-tests/","forge-std/=lib/forge-std/src/"]}},"stdJsonOutput":{"sources":{"src/hub/Hub.sol":{"id":19},"src/hub/HubStorage.sol":{"id":20},"src/hub/interfaces/IHub.sol":{"id":23},"src/hub/libraries/Premium.sol":{"id":26},"src/hub/interfaces/IHubBase.sol":{"id":24},"src/hub/libraries/AssetLogic.sol":{"id":25},"src/hub/libraries/SharesMath.sol":{"id":27},"src/libraries/math/MathUtils.sol":{"id":28},"src/hub/instances/HubInstance.sol":{"id":21},"src/libraries/math/WadRayMath.sol":{"id":30},"src/libraries/math/PercentageMath.sol":{"id":29},"src/dependencies/openzeppelin/Math.sol":{"id":13},"src/dependencies/openzeppelin/Panic.sol":{"id":14},"src/dependencies/openzeppelin/Arrays.sol":{"id":3},"src/dependencies/openzeppelin/IERC20.sol":{"id":12},"src/dependencies/openzeppelin/IERC165.sol":{"id":11},"src/dependencies/openzeppelin/IERC1363.sol":{"id":10},"src/dependencies/openzeppelin/SafeCast.sol":{"id":15},"src/dependencies/openzeppelin/SafeERC20.sol":{"id":16},"src/dependencies/openzeppelin/IAuthority.sol":{"id":9},"src/dependencies/openzeppelin/Comparators.sol":{"id":5},"src/dependencies/openzeppelin/StorageSlot.sol":{"id":18},"src/dependencies/openzeppelin/EnumerableSet.sol":{"id":6},"src/dependencies/openzeppelin/AuthorityUtils.sol":{"id":4},"src/dependencies/openzeppelin/IAccessManaged.sol":{"id":7},"src/dependencies/openzeppelin/IAccessManager.sol":{"id":8},"src/dependencies/openzeppelin/SlotDerivation.sol":{"id":17},"src/hub/interfaces/IBasicInterestRateStrategy.sol":{"id":22},"src/dependencies/openzeppelin-upgradeable/Initializable.sol":{"id":2},"src/dependencies/openzeppelin-upgradeable/ContextUpgradeable.sol":{"id":1},"src/dependencies/openzeppelin-upgradeable/AccessManagedUpgradeable.sol":{"id":0}},"contracts":{"src/hub/instances/HubInstance.sol":{"HubInstance":{"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"name":"AccessManagedInvalidAuthority","type":"error","inputs":[{"name":"authority","type":"address","internalType":"address"}]},{"name":"AccessManagedRequiredDelay","type":"error","inputs":[{"name":"caller","type":"address","internalType":"address"},{"name":"delay","type":"uint32","internalType":"uint32"}]},{"name":"AccessManagedUnauthorized","type":"error","inputs":[{"name":"caller","type":"address","internalType":"address"}]},{"name":"AddCapExceeded","type":"error","inputs":[{"name":"addCap","type":"uint256","internalType":"uint256"}]},{"name":"AssetNotListed","type":"error","inputs":[]},{"name":"DrawCapExceeded","type":"error","inputs":[{"name":"drawCap","type":"uint256","internalType":"uint256"}]},{"name":"InsufficientLiquidity","type":"error","inputs":[{"name":"liquidity","type":"uint256","internalType":"uint256"}]},{"name":"InsufficientTransferred","type":"error","inputs":[{"name":"liquidityNeeded","type":"uint256","internalType":"uint256"}]},{"name":"InvalidAddress","type":"error","inputs":[]},{"name":"InvalidAmount","type":"error","inputs":[]},{"name":"InvalidAssetDecimals","type":"error","inputs":[]},{"name":"InvalidInitialization","type":"error","inputs":[]},{"name":"InvalidInterestRateStrategy","type":"error","inputs":[]},{"name":"InvalidLiquidityFee","type":"error","inputs":[]},{"name":"InvalidPremiumChange","type":"error","inputs":[]},{"name":"InvalidReinvestmentController","type":"error","inputs":[]},{"name":"InvalidShares","type":"error","inputs":[]},{"name":"NotInitializing","type":"error","inputs":[]},{"name":"OnlyReinvestmentController","type":"error","inputs":[]},{"name":"SafeCastOverflowedIntDowncast","type":"error","inputs":[{"name":"bits","type":"uint8","internalType":"uint8"},{"name":"value","type":"int256","internalType":"int256"}]},{"name":"SafeCastOverflowedIntToUint","type":"error","inputs":[{"name":"value","type":"int256","internalType":"int256"}]},{"name":"SafeCastOverflowedUintDowncast","type":"error","inputs":[{"name":"bits","type":"uint8","internalType":"uint8"},{"name":"value","type":"uint256","internalType":"uint256"}]},{"name":"SafeCastOverflowedUintToInt","type":"error","inputs":[{"name":"value","type":"uint256","internalType":"uint256"}]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"SpokeAlreadyListed","type":"error","inputs":[]},{"name":"SpokeHalted","type":"error","inputs":[]},{"name":"SpokeNotActive","type":"error","inputs":[]},{"name":"SpokeNotListed","type":"error","inputs":[]},{"name":"SurplusDrawnDeficitReported","type":"error","inputs":[{"name":"maxAllowedDeficit","type":"uint256","internalType":"uint256"}]},{"name":"SurplusDrawnRestored","type":"error","inputs":[{"name":"maxAllowedRestore","type":"uint256","internalType":"uint256"}]},{"name":"SurplusPremiumRayDeficitReported","type":"error","inputs":[{"name":"maxAllowedDeficitRay","type":"uint256","internalType":"uint256"}]},{"name":"SurplusPremiumRayRestored","type":"error","inputs":[{"name":"maxAllowedRestoreRay","type":"uint256","internalType":"uint256"}]},{"name":"UnderlyingAlreadyListed","type":"error","inputs":[]},{"name":"Add","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"AddAsset","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"underlying","type":"address","indexed":true,"internalType":"address"},{"name":"decimals","type":"uint8","indexed":false,"internalType":"uint8"}],"anonymous":false},{"name":"AddSpoke","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"AuthorityUpdated","type":"event","inputs":[{"name":"authority","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Draw","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"drawnShares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"drawnAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"EliminateDeficit","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"callerSpoke","type":"address","indexed":true,"internalType":"address"},{"name":"coveredSpoke","type":"address","indexed":true,"internalType":"address"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"deficitAmountRay","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Initialized","type":"event","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"name":"MintFeeShares","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"feeReceiver","type":"address","indexed":true,"internalType":"address"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"assets","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Reclaim","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"reinvestmentController","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"RefreshPremium","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"premiumDelta","type":"tuple","indexed":false,"components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"}],"anonymous":false},{"name":"Remove","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"ReportDeficit","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"drawnShares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"premiumDelta","type":"tuple","indexed":false,"components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"},{"name":"deficitAmountRay","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Restore","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"drawnShares","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"premiumDelta","type":"tuple","indexed":false,"components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"},{"name":"drawnAmount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"premiumAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Sweep","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"reinvestmentController","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"TransferShares","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"sender","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"shares","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"UpdateAsset","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"drawnIndex","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"drawnRate","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"accruedFees","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"UpdateAssetConfig","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"config","type":"tuple","indexed":false,"components":[{"name":"feeReceiver","type":"address","internalType":"address"},{"name":"liquidityFee","type":"uint16","internalType":"uint16"},{"name":"irStrategy","type":"address","internalType":"address"},{"name":"reinvestmentController","type":"address","internalType":"address"}],"internalType":"struct IHub.AssetConfig"}],"anonymous":false},{"name":"UpdateSpokeConfig","type":"event","inputs":[{"name":"assetId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"spoke","type":"address","indexed":true,"internalType":"address"},{"name":"config","type":"tuple","indexed":false,"components":[{"name":"addCap","type":"uint40","internalType":"uint40"},{"name":"drawCap","type":"uint40","internalType":"uint40"},{"name":"riskPremiumThreshold","type":"uint24","internalType":"uint24"},{"name":"active","type":"bool","internalType":"bool"},{"name":"halted","type":"bool","internalType":"bool"}],"internalType":"struct IHub.SpokeConfig"}],"anonymous":false},{"name":"HUB_REVISION","type":"function","inputs":[],"outputs":[{"name":"","type":"uint64","internalType":"uint64"}],"stateMutability":"view"},{"name":"MAX_ALLOWED_SPOKE_CAP","type":"function","inputs":[],"outputs":[{"name":"","type":"uint40","internalType":"uint40"}],"stateMutability":"view"},{"name":"MAX_ALLOWED_UNDERLYING_DECIMALS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"MAX_RISK_PREMIUM_THRESHOLD","type":"function","inputs":[],"outputs":[{"name":"","type":"uint24","internalType":"uint24"}],"stateMutability":"view"},{"name":"MIN_ALLOWED_UNDERLYING_DECIMALS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"add","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"addAsset","type":"function","inputs":[{"name":"underlying","type":"address","internalType":"address"},{"name":"decimals","type":"uint8","internalType":"uint8"},{"name":"feeReceiver","type":"address","internalType":"address"},{"name":"irStrategy","type":"address","internalType":"address"},{"name":"irData","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"addSpoke","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"},{"name":"config","type":"tuple","components":[{"name":"addCap","type":"uint40","internalType":"uint40"},{"name":"drawCap","type":"uint40","internalType":"uint40"},{"name":"riskPremiumThreshold","type":"uint24","internalType":"uint24"},{"name":"active","type":"bool","internalType":"bool"},{"name":"halted","type":"bool","internalType":"bool"}],"internalType":"struct IHub.SpokeConfig"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"authority","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"draw","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"to","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"eliminateDeficit","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"getAddedAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAddedShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAsset","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"liquidity","type":"uint120","internalType":"uint120"},{"name":"realizedFees","type":"uint120","internalType":"uint120"},{"name":"decimals","type":"uint8","internalType":"uint8"},{"name":"addedShares","type":"uint120","internalType":"uint120"},{"name":"swept","type":"uint120","internalType":"uint120"},{"name":"premiumOffsetRay","type":"int200","internalType":"int200"},{"name":"drawnShares","type":"uint120","internalType":"uint120"},{"name":"premiumShares","type":"uint120","internalType":"uint120"},{"name":"liquidityFee","type":"uint16","internalType":"uint16"},{"name":"drawnIndex","type":"uint120","internalType":"uint120"},{"name":"drawnRate","type":"uint96","internalType":"uint96"},{"name":"lastUpdateTimestamp","type":"uint40","internalType":"uint40"},{"name":"underlying","type":"address","internalType":"address"},{"name":"irStrategy","type":"address","internalType":"address"},{"name":"reinvestmentController","type":"address","internalType":"address"},{"name":"feeReceiver","type":"address","internalType":"address"},{"name":"deficitRay","type":"uint200","internalType":"uint200"}],"internalType":"struct IHub.Asset"}],"stateMutability":"view"},{"name":"getAssetAccruedFees","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetConfig","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"feeReceiver","type":"address","internalType":"address"},{"name":"liquidityFee","type":"uint16","internalType":"uint16"},{"name":"irStrategy","type":"address","internalType":"address"},{"name":"reinvestmentController","type":"address","internalType":"address"}],"internalType":"struct IHub.AssetConfig"}],"stateMutability":"view"},{"name":"getAssetCount","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetDeficitRay","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetDrawnIndex","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetDrawnRate","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetDrawnShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetId","type":"function","inputs":[{"name":"underlying","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetLiquidity","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetOwed","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetPremiumData","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"int256","internalType":"int256"}],"stateMutability":"view"},{"name":"getAssetPremiumRay","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetSwept","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetTotalOwed","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getAssetUnderlyingAndDecimals","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"getSpoke","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"drawnShares","type":"uint120","internalType":"uint120"},{"name":"premiumShares","type":"uint120","internalType":"uint120"},{"name":"premiumOffsetRay","type":"int200","internalType":"int200"},{"name":"addedShares","type":"uint120","internalType":"uint120"},{"name":"addCap","type":"uint40","internalType":"uint40"},{"name":"drawCap","type":"uint40","internalType":"uint40"},{"name":"riskPremiumThreshold","type":"uint24","internalType":"uint24"},{"name":"active","type":"bool","internalType":"bool"},{"name":"halted","type":"bool","internalType":"bool"},{"name":"deficitRay","type":"uint200","internalType":"uint200"}],"internalType":"struct IHub.SpokeData"}],"stateMutability":"view"},{"name":"getSpokeAddedAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeAddedShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeAddress","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"getSpokeConfig","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"addCap","type":"uint40","internalType":"uint40"},{"name":"drawCap","type":"uint40","internalType":"uint40"},{"name":"riskPremiumThreshold","type":"uint24","internalType":"uint24"},{"name":"active","type":"bool","internalType":"bool"},{"name":"halted","type":"bool","internalType":"bool"}],"internalType":"struct IHub.SpokeConfig"}],"stateMutability":"view"},{"name":"getSpokeCount","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeDeficitRay","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeDrawnShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeOwed","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokePremiumData","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"int256","internalType":"int256"}],"stateMutability":"view"},{"name":"getSpokePremiumRay","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getSpokeTotalOwed","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"initialize","type":"function","inputs":[{"name":"authority","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"isConsumingScheduledOp","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes4","internalType":"bytes4"}],"stateMutability":"view"},{"name":"isSpokeListed","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"isUnderlyingListed","type":"function","inputs":[{"name":"underlying","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mintFeeShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"payFeeShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"previewAddByAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"assets","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewAddByShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewDrawByAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"assets","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewDrawByShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewRemoveByAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"assets","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewRemoveByShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewRestoreByAssets","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"assets","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"previewRestoreByShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"reclaim","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"refreshPremium","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"premiumDelta","type":"tuple","components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"remove","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"to","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"reportDeficit","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"drawnAmount","type":"uint256","internalType":"uint256"},{"name":"premiumDelta","type":"tuple","components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"restore","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"drawnAmount","type":"uint256","internalType":"uint256"},{"name":"premiumDelta","type":"tuple","components":[{"name":"sharesDelta","type":"int256","internalType":"int256"},{"name":"offsetRayDelta","type":"int256","internalType":"int256"},{"name":"restoredPremiumRay","type":"uint256","internalType":"uint256"}],"internalType":"struct IHubBase.PremiumDelta"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"setAuthority","type":"function","inputs":[{"name":"newAuthority","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setInterestRateData","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"irData","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"sweep","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"transferShares","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"shares","type":"uint256","internalType":"uint256"},{"name":"toSpoke","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"updateAssetConfig","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"config","type":"tuple","components":[{"name":"feeReceiver","type":"address","internalType":"address"},{"name":"liquidityFee","type":"uint16","internalType":"uint16"},{"name":"irStrategy","type":"address","internalType":"address"},{"name":"reinvestmentController","type":"address","internalType":"address"}],"internalType":"struct IHub.AssetConfig"},{"name":"irData","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"updateSpokeConfig","type":"function","inputs":[{"name":"assetId","type":"uint256","internalType":"uint256"},{"name":"spoke","type":"address","internalType":"address"},{"name":"config","type":"tuple","components":[{"name":"addCap","type":"uint40","internalType":"uint40"},{"name":"drawCap","type":"uint40","internalType":"uint40"},{"name":"riskPremiumThreshold","type":"uint24","internalType":"uint24"},{"name":"active","type":"bool","internalType":"bool"},{"name":"halted","type":"bool","internalType":"bool"}],"internalType":"struct IHub.SpokeConfig"}],"outputs":[],"stateMutability":"nonpayable"}],"metadata":"{\"compiler\":{\"version\":\"0.8.28+commit.7893614a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\"}],\"name\":\"AccessManagedInvalidAuthority\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"delay\",\"type\":\"uint32\"}],\"name\":\"AccessManagedRequiredDelay\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"AccessManagedUnauthorized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"addCap\",\"type\":\"uint256\"}],\"name\":\"AddCapExceeded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AssetNotListed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"drawCap\",\"type\":\"uint256\"}],\"name\":\"DrawCapExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"name\":\"InsufficientLiquidity\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidityNeeded\",\"type\":\"uint256\"}],\"name\":\"InsufficientTransferred\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAssetDecimals\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInterestRateStrategy\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidLiquidityFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPremiumChange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidReinvestmentController\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidShares\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyReinvestmentController\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\"}],\"name\":\"SafeCastOverflowedIntDowncast\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"value\",\"type\":\"int256\"}],\"name\":\"SafeCastOverflowedIntToUint\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintToInt\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpokeAlreadyListed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpokeHalted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpokeNotActive\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SpokeNotListed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxAllowedDeficit\",\"type\":\"uint256\"}],\"name\":\"SurplusDrawnDeficitReported\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxAllowedRestore\",\"type\":\"uint256\"}],\"name\":\"SurplusDrawnRestored\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxAllowedDeficitRay\",\"type\":\"uint256\"}],\"name\":\"SurplusPremiumRayDeficitReported\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxAllowedRestoreRay\",\"type\":\"uint256\"}],\"name\":\"SurplusPremiumRayRestored\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UnderlyingAlreadyListed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Add\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"}],\"name\":\"AddAsset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"AddSpoke\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\"}],\"name\":\"AuthorityUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"drawnShares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"drawnAmount\",\"type\":\"uint256\"}],\"name\":\"Draw\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"callerSpoke\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"coveredSpoke\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deficitAmountRay\",\"type\":\"uint256\"}],\"name\":\"EliminateDeficit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"feeReceiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"MintFeeShares\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reinvestmentController\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Reclaim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"sharesDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"offsetRayDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"restoredPremiumRay\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct IHubBase.PremiumDelta\",\"name\":\"premiumDelta\",\"type\":\"tuple\"}],\"name\":\"RefreshPremium\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Remove\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"drawnShares\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"sharesDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"offsetRayDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"restoredPremiumRay\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct IHubBase.PremiumDelta\",\"name\":\"premiumDelta\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deficitAmountRay\",\"type\":\"uint256\"}],\"name\":\"ReportDeficit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"drawnShares\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"sharesDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"offsetRayDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"restoredPremiumRay\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"struct IHubBase.PremiumDelta\",\"name\":\"premiumDelta\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"drawnAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"premiumAmount\",\"type\":\"uint256\"}],\"name\":\"Restore\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reinvestmentController\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Sweep\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"TransferShares\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"drawnIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"drawnRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"accruedFees\",\"type\":\"uint256\"}],\"name\":\"UpdateAsset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"feeReceiver\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"liquidityFee\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"irStrategy\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"reinvestmentController\",\"type\":\"address\"}],\"indexed\":false,\"internalType\":\"struct IHub.AssetConfig\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"UpdateAssetConfig\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint40\",\"name\":\"addCap\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"drawCap\",\"type\":\"uint40\"},{\"internalType\":\"uint24\",\"name\":\"riskPremiumThreshold\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"halted\",\"type\":\"bool\"}],\"indexed\":false,\"internalType\":\"struct IHub.SpokeConfig\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"UpdateSpokeConfig\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"HUB_REVISION\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_ALLOWED_SPOKE_CAP\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_ALLOWED_UNDERLYING_DECIMALS\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_RISK_PREMIUM_THRESHOLD\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MIN_ALLOWED_UNDERLYING_DECIMALS\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"add\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"feeReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irStrategy\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"irData\",\"type\":\"bytes\"}],\"name\":\"addAsset\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint40\",\"name\":\"addCap\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"drawCap\",\"type\":\"uint40\"},{\"internalType\":\"uint24\",\"name\":\"riskPremiumThreshold\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"halted\",\"type\":\"bool\"}],\"internalType\":\"struct IHub.SpokeConfig\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"addSpoke\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"authority\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"draw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"eliminateDeficit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAddedAssets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAddedShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAsset\",\"outputs\":[{\"components\":[{\"internalType\":\"uint120\",\"name\":\"liquidity\",\"type\":\"uint120\"},{\"internalType\":\"uint120\",\"name\":\"realizedFees\",\"type\":\"uint120\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"uint120\",\"name\":\"addedShares\",\"type\":\"uint120\"},{\"internalType\":\"uint120\",\"name\":\"swept\",\"type\":\"uint120\"},{\"internalType\":\"int200\",\"name\":\"premiumOffsetRay\",\"type\":\"int200\"},{\"internalType\":\"uint120\",\"name\":\"drawnShares\",\"type\":\"uint120\"},{\"internalType\":\"uint120\",\"name\":\"premiumShares\",\"type\":\"uint120\"},{\"internalType\":\"uint16\",\"name\":\"liquidityFee\",\"type\":\"uint16\"},{\"internalType\":\"uint120\",\"name\":\"drawnIndex\",\"type\":\"uint120\"},{\"internalType\":\"uint96\",\"name\":\"drawnRate\",\"type\":\"uint96\"},{\"internalType\":\"uint40\",\"name\":\"lastUpdateTimestamp\",\"type\":\"uint40\"},{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"irStrategy\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"reinvestmentController\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"feeReceiver\",\"type\":\"address\"},{\"internalType\":\"uint200\",\"name\":\"deficitRay\",\"type\":\"uint200\"}],\"internalType\":\"struct IHub.Asset\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetAccruedFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"feeReceiver\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"liquidityFee\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"irStrategy\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"reinvestmentController\",\"type\":\"address\"}],\"internalType\":\"struct IHub.AssetConfig\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAssetCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetDeficitRay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetDrawnIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetDrawnRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetDrawnShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"}],\"name\":\"getAssetId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetOwed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetPremiumData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetPremiumRay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetSwept\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetTotalOwed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getAssetUnderlyingAndDecimals\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"getSpoke\",\"outputs\":[{\"components\":[{\"internalType\":\"uint120\",\"name\":\"drawnShares\",\"type\":\"uint120\"},{\"internalType\":\"uint120\",\"name\":\"premiumShares\",\"type\":\"uint120\"},{\"internalType\":\"int200\",\"name\":\"premiumOffsetRay\",\"type\":\"int200\"},{\"internalType\":\"uint120\",\"name\":\"addedShares\",\"type\":\"uint120\"},{\"internalType\":\"uint40\",\"name\":\"addCap\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"drawCap\",\"type\":\"uint40\"},{\"internalType\":\"uint24\",\"name\":\"riskPremiumThreshold\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"halted\",\"type\":\"bool\"},{\"internalType\":\"uint200\",\"name\":\"deficitRay\",\"type\":\"uint200\"}],\"internalType\":\"struct IHub.SpokeData\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"getSpokeAddedAssets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"getSpokeAddedShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getSpokeAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"getSpokeConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"uint40\",\"name\":\"addCap\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"drawCap\",\"type\":\"uint40\"},{\"internalType\":\"uint24\",\"name\":\"riskPremiumThreshold\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"halted\",\"type\":\"bool\"}],\"internalType\":\"struct IHub.SpokeConfig\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"getSpokeCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"getSpokeDeficitRay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"getSpokeDrawnShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"getSpokeOwed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"getSpokePremiumData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"getSpokePremiumRay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"getSpokeTotalOwed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isConsumingScheduledOp\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"}],\"name\":\"isSpokeListed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"underlying\",\"type\":\"address\"}],\"name\":\"isUnderlyingListed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"}],\"name\":\"mintFeeShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"payFeeShares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"previewAddByAssets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"previewAddByShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"previewDrawByAssets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"previewDrawByShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"previewRemoveByAssets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"previewRemoveByShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"assets\",\"type\":\"uint256\"}],\"name\":\"previewRestoreByAssets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"}],\"name\":\"previewRestoreByShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"reclaim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"sharesDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"offsetRayDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"restoredPremiumRay\",\"type\":\"uint256\"}],\"internalType\":\"struct IHubBase.PremiumDelta\",\"name\":\"premiumDelta\",\"type\":\"tuple\"}],\"name\":\"refreshPremium\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"remove\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"drawnAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"sharesDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"offsetRayDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"restoredPremiumRay\",\"type\":\"uint256\"}],\"internalType\":\"struct IHubBase.PremiumDelta\",\"name\":\"premiumDelta\",\"type\":\"tuple\"}],\"name\":\"reportDeficit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"drawnAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"sharesDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"offsetRayDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"restoredPremiumRay\",\"type\":\"uint256\"}],\"internalType\":\"struct IHubBase.PremiumDelta\",\"name\":\"premiumDelta\",\"type\":\"tuple\"}],\"name\":\"restore\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAuthority\",\"type\":\"address\"}],\"name\":\"setAuthority\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"irData\",\"type\":\"bytes\"}],\"name\":\"setInterestRateData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"sweep\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"toSpoke\",\"type\":\"address\"}],\"name\":\"transferShares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"feeReceiver\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"liquidityFee\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"irStrategy\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"reinvestmentController\",\"type\":\"address\"}],\"internalType\":\"struct IHub.AssetConfig\",\"name\":\"config\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"irData\",\"type\":\"bytes\"}],\"name\":\"updateAssetConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"assetId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spoke\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint40\",\"name\":\"addCap\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"drawCap\",\"type\":\"uint40\"},{\"internalType\":\"uint24\",\"name\":\"riskPremiumThreshold\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"halted\",\"type\":\"bool\"}],\"internalType\":\"struct IHub.SpokeConfig\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"updateSpokeConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Aave Labs\",\"errors\":{\"AddCapExceeded(uint256)\":[{\"params\":{\"addCap\":\"The current `addCap` of the asset, expressed in whole assets (not scaled by decimals).\"}}],\"DrawCapExceeded(uint256)\":[{\"params\":{\"drawCap\":\"The current `drawCap` of the asset, expressed in whole assets (not scaled by decimals).\"}}],\"InsufficientLiquidity(uint256)\":[{\"params\":{\"liquidity\":\"The current available liquidity.\"}}],\"InsufficientTransferred(uint256)\":[{\"params\":{\"liquidityNeeded\":\"The amount of additional liquidity needed.\"}}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"InvalidInterestRateStrategy()\":[{\"details\":\"The `irData` must be empty if the interest rate strategy is not updated.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"SafeCastOverflowedIntDowncast(uint8,int256)\":[{\"details\":\"Value doesn't fit in an int of `bits` size.\"}],\"SafeCastOverflowedIntToUint(int256)\":[{\"details\":\"An int value doesn't fit in an uint of `bits` size.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}],\"SafeCastOverflowedUintToInt(uint256)\":[{\"details\":\"An uint value doesn't fit in an int of `bits` size.\"}],\"SafeERC20FailedOperation(address)\":[{\"details\":\"An operation with an ERC-20 token failed.\"}],\"SurplusDrawnDeficitReported(uint256)\":[{\"params\":{\"maxAllowedDeficit\":\"The maximum allowed drawn to report as deficit.\"}}],\"SurplusDrawnRestored(uint256)\":[{\"params\":{\"maxAllowedRestore\":\"The maximum allowed drawn amount to restore.\"}}],\"SurplusPremiumRayDeficitReported(uint256)\":[{\"params\":{\"maxAllowedDeficitRay\":\"The maximum allowed premium to report as deficit, expressed in asset units and scaled by RAY.\"}}],\"SurplusPremiumRayRestored(uint256)\":[{\"params\":{\"maxAllowedRestoreRay\":\"The maximum allowed premium amount to restore, expressed in asset units and scaled by RAY.\"}}]},\"events\":{\"Add(uint256,address,uint256,uint256)\":{\"params\":{\"amount\":\"The amount of assets added.\",\"assetId\":\"The identifier of the asset.\",\"shares\":\"The amount of shares added.\",\"spoke\":\"The address of the Spoke.\"}},\"AddAsset(uint256,address,uint8)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"decimals\":\"The number of decimals of the asset.\",\"underlying\":\"The address of the underlying asset.\"}},\"AddSpoke(uint256,address)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"}},\"AuthorityUpdated(address)\":{\"details\":\"Authority that manages this contract was updated.\"},\"Draw(uint256,address,uint256,uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"drawnAmount\":\"The amount of drawn assets.\",\"drawnShares\":\"The amount of drawn shares.\",\"spoke\":\"The address of the Spoke.\"}},\"EliminateDeficit(uint256,address,address,uint256,uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"callerSpoke\":\"The spoke that eliminated the deficit using its added shares.\",\"coveredSpoke\":\"The spoke for which the deficit was eliminated.\",\"deficitAmountRay\":\"The amount of deficit eliminated, expressed in asset units and scaled by RAY.\",\"shares\":\"The amount of shares removed.\"}},\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"MintFeeShares(uint256,address,uint256,uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"assets\":\"The amount of assets used to mint the shares.\",\"feeReceiver\":\"The address of the current fee receiver spoke.\",\"shares\":\"The amount of shares minted.\"}},\"Reclaim(uint256,address,uint256)\":{\"params\":{\"amount\":\"The amount reclaimed.\",\"assetId\":\"The identifier of the asset.\",\"reinvestmentController\":\"The active asset controller.\"}},\"RefreshPremium(uint256,address,(int256,int256,uint256))\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"premiumDelta\":\"The premium delta data struct.\",\"spoke\":\"The address of the Spoke.\"}},\"Remove(uint256,address,uint256,uint256)\":{\"params\":{\"amount\":\"The amount of assets removed.\",\"assetId\":\"The identifier of the asset.\",\"shares\":\"The amount of shares removed.\",\"spoke\":\"The address of the Spoke.\"}},\"ReportDeficit(uint256,address,uint256,(int256,int256,uint256),uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"deficitAmountRay\":\"The amount of deficit reported, expressed in asset units and scaled by RAY.\",\"drawnShares\":\"The amount of drawn shares reported as deficit.\",\"premiumDelta\":\"The premium delta data struct.\",\"spoke\":\"The address of the Spoke.\"}},\"Restore(uint256,address,uint256,(int256,int256,uint256),uint256,uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"drawnAmount\":\"The amount of drawn assets restored.\",\"drawnShares\":\"The amount of drawn shares.\",\"premiumAmount\":\"The amount of premium assets restored.\",\"premiumDelta\":\"The premium delta data struct.\",\"spoke\":\"The address of the Spoke.\"}},\"Sweep(uint256,address,uint256)\":{\"params\":{\"amount\":\"The amount invested.\",\"assetId\":\"The identifier of the asset.\",\"reinvestmentController\":\"The active asset controller.\"}},\"TransferShares(uint256,address,address,uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"receiver\":\"The address of the receiver.\",\"sender\":\"The address of the sender.\",\"shares\":\"The amount of shares transferred.\"}},\"UpdateAsset(uint256,uint256,uint256,uint256)\":{\"params\":{\"accruedFees\":\"The accrued fees of the asset since the last mint.\",\"assetId\":\"The identifier of the asset.\",\"drawnIndex\":\"The new drawn index of the asset.\",\"drawnRate\":\"The new drawn rate of the asset.\"}},\"UpdateAssetConfig(uint256,(address,uint16,address,address))\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"config\":\"The new asset configuration struct.\"}},\"UpdateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"config\":\"The new spoke configuration struct.\",\"spoke\":\"The address of the Spoke.\"}}},\"kind\":\"dev\",\"methods\":{\"add(uint256,uint256)\":{\"details\":\"Only callable by active spokes.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.\",\"params\":{\"amount\":\"The amount of asset liquidity to add.\",\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of shares added.\"}},\"addAsset(address,uint8,address,address,bytes)\":{\"details\":\"The same underlying asset address cannot be added as an asset multiple times.The fee receiver is added as a new spoke with maximum add cap and zero draw cap.\",\"params\":{\"decimals\":\"The number of decimals of `underlying`.\",\"feeReceiver\":\"The address of the fee receiver spoke.\",\"irData\":\"The interest rate data to apply to the given asset encoded in bytes.\",\"irStrategy\":\"The address of the interest rate strategy contract.\",\"underlying\":\"The address of the underlying asset.\"},\"returns\":{\"_0\":\"The unique identifier of the added asset.\"}},\"addSpoke(uint256,address,(uint40,uint40,uint24,bool,bool))\":{\"details\":\"Reverts with `SpokeAlreadyListed` if spoke is already listed.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"params\":\"The configuration parameters for the Spoke.\",\"spoke\":\"The address of the Spoke to add.\"}},\"authority()\":{\"details\":\"Returns the current authority.\"},\"constructor\":{\"details\":\"Constructor.\"},\"draw(uint256,uint256,address)\":{\"details\":\"Only callable by active spokes.\",\"params\":{\"amount\":\"The amount of assets to draw.\",\"assetId\":\"The identifier of the asset.\",\"to\":\"The address to transfer the underlying assets to.\"},\"returns\":{\"_0\":\"The amount of drawn shares.\"}},\"eliminateDeficit(uint256,uint256,address)\":{\"details\":\"Only callable by active and authorized spokes.\",\"params\":{\"amount\":\"The amount of deficit to eliminate.\",\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The spoke for which the deficit is eliminated.\"},\"returns\":{\"_0\":\"The amount of added shares removed.\",\"_1\":\"The amount of deficit eliminated, expressed in asset units.\"}},\"getAddedAssets(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of the asset added.\"}},\"getAddedShares(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of shares of the asset added.\"}},\"getAsset(uint256)\":{\"details\":\"`drawnIndex`, `drawnRate` and `lastUpdateTimestamp` can be outdated due to passage of time.\",\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The asset struct.\"}},\"getAssetAccruedFees(uint256)\":{\"details\":\"Accrued fees are excluded from total added assets.\",\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of accrued fees.\"}},\"getAssetConfig(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The asset configuration struct.\"}},\"getAssetDeficitRay(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of deficit, expressed in asset units and scaled by RAY.\"}},\"getAssetDrawnIndex(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The current drawn index of the asset.\"}},\"getAssetDrawnRate(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The current drawn rate of the asset.\"}},\"getAssetDrawnShares(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of drawn shares.\"}},\"getAssetId(address)\":{\"details\":\"Reverts with `AssetNotListed` if the underlying is not listed.\",\"params\":{\"underlying\":\"The address of the underlying asset.\"}},\"getAssetLiquidity(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of available liquidity.\"}},\"getAssetOwed(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of owed drawn assets.\",\"_1\":\"The amount of owed premium assets.\"}},\"getAssetPremiumData(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of premium shares owed to the asset.\",\"_1\":\"The premium offset of the asset, expressed in asset units and scaled by RAY.\"}},\"getAssetPremiumRay(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of premium owed, expressed in asset units and scaled by RAY.\"}},\"getAssetSwept(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of liquidity swept.\"}},\"getAssetTotalOwed(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The total amount of the assets owed.\"}},\"getAssetUnderlyingAndDecimals(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The underlying address of the asset.\",\"_1\":\"The decimals of the asset.\"}},\"getSpoke(uint256,address)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"The spoke data struct.\"}},\"getSpokeAddedAssets(uint256,address)\":{\"details\":\"If spoke is `asset.feeReceiver`, includes converted `unrealizedFeeShares` in return value.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"The amount of added assets.\"}},\"getSpokeAddedShares(uint256,address)\":{\"details\":\"If spoke is `asset.feeReceiver`, includes `unrealizedFeeShares` in return value.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"The amount of added shares.\"}},\"getSpokeAddress(uint256,uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"index\":\"The index of the Spoke.\"},\"returns\":{\"_0\":\"The address of the Spoke.\"}},\"getSpokeConfig(uint256,address)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"The spoke configuration struct.\"}},\"getSpokeCount(uint256)\":{\"params\":{\"assetId\":\"The identifier of the asset.\"}},\"getSpokeDeficitRay(uint256,address)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"The amount of deficit, expressed in asset units and scaled by RAY.\"}},\"getSpokeDrawnShares(uint256,address)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"The amount of drawn shares.\"}},\"getSpokeOwed(uint256,address)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"The amount of owed drawn assets.\",\"_1\":\"The amount of owed premium assets.\"}},\"getSpokePremiumData(uint256,address)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"The amount of premium shares.\",\"_1\":\"The premium offset, expressed in asset units and scaled by RAY.\"}},\"getSpokePremiumRay(uint256,address)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"The amount of owed premium assets, expressed in asset units and scaled by RAY.\"}},\"getSpokeTotalOwed(uint256,address)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"The total amount of the asset owed.\"}},\"initialize(address)\":{\"details\":\"The authority contract must implement the `AccessManaged` interface for access control.\",\"params\":{\"authority\":\"The address of the authority contract which manages permissions.\"}},\"isConsumingScheduledOp()\":{\"details\":\"Returns true only in the context of a delayed restricted call, at the moment that the scheduled operation is being consumed. Prevents denial of service for delayed restricted calls in the case that the contract performs attacker controlled calls.\"},\"isSpokeListed(uint256,address)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"spoke\":\"The address of the Spoke.\"},\"returns\":{\"_0\":\"True if the Spoke is listed.\"}},\"isUnderlyingListed(address)\":{\"params\":{\"underlying\":\"The address of the underlying asset.\"},\"returns\":{\"_0\":\"True if the underlying asset is listed.\"}},\"mintFeeShares(uint256)\":{\"details\":\"No op when fees are worth less than one share.\",\"params\":{\"assetId\":\"The identifier of the asset.\"},\"returns\":{\"_0\":\"The amount of shares minted.\"}},\"payFeeShares(uint256,uint256)\":{\"details\":\"It can be used to execute one-time payments to the fee receiver Spoke (e.g., liquidation fees).Only callable by active spokes.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"shares\":\"The amount of shares to pay to feeReceiver.\"}},\"previewAddByAssets(uint256,uint256)\":{\"details\":\"Rounds down to the nearest shares amount.Defaults to a 1:1 exchange rate.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"assets\":\"The amount of assets to convert to shares amount.\"},\"returns\":{\"_0\":\"The amount of shares converted from assets amount.\"}},\"previewAddByShares(uint256,uint256)\":{\"details\":\"Rounds up to the nearest assets amount.Defaults to a 1:1 exchange rate.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"shares\":\"The amount of shares to convert to assets amount.\"},\"returns\":{\"_0\":\"The amount of assets converted from shares amount.\"}},\"previewDrawByAssets(uint256,uint256)\":{\"details\":\"Rounds up to the nearest shares amount.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"assets\":\"The amount of assets to convert to shares amount.\"},\"returns\":{\"_0\":\"The amount of shares converted from assets amount.\"}},\"previewDrawByShares(uint256,uint256)\":{\"details\":\"Rounds down to the nearest assets amount.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"shares\":\"The amount of shares to convert to assets amount.\"},\"returns\":{\"_0\":\"The amount of assets converted from shares amount.\"}},\"previewRemoveByAssets(uint256,uint256)\":{\"details\":\"Rounds up to the nearest shares amount.Defaults to a 1:1 exchange rate.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"assets\":\"The amount of assets to convert to shares amount.\"},\"returns\":{\"_0\":\"The amount of shares converted from assets amount.\"}},\"previewRemoveByShares(uint256,uint256)\":{\"details\":\"Rounds down to the nearest assets amount.Defaults to a 1:1 exchange rate.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"shares\":\"The amount of shares to convert to assets amount.\"},\"returns\":{\"_0\":\"The amount of assets converted from shares amount.\"}},\"previewRestoreByAssets(uint256,uint256)\":{\"details\":\"Rounds down to the nearest shares amount.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"assets\":\"The amount of assets to convert to shares amount.\"},\"returns\":{\"_0\":\"The amount of shares converted from assets amount.\"}},\"previewRestoreByShares(uint256,uint256)\":{\"details\":\"Rounds up to the nearest assets amount.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"shares\":\"The amount of drawn shares to convert to assets amount.\"},\"returns\":{\"_0\":\"The amount of assets converted from shares amount.\"}},\"reclaim(uint256,uint256)\":{\"details\":\"The controller can only reclaim up to swept amount. All accrued interest is distributed offchain.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.\",\"params\":{\"amount\":\"The amount to reclaim.\",\"assetId\":\"The identifier of the asset.\"}},\"refreshPremium(uint256,(int256,int256,uint256))\":{\"details\":\"Only callable by active spokes.Asset and spoke premium should not decrease.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"premiumDelta\":\"The change in premium.\"}},\"remove(uint256,uint256,address)\":{\"details\":\"Only callable by active spokes.\",\"params\":{\"amount\":\"The amount of asset liquidity to remove.\",\"assetId\":\"The identifier of the asset.\",\"to\":\"The address to transfer the assets to.\"},\"returns\":{\"_0\":\"The amount of shares removed.\"}},\"reportDeficit(uint256,uint256,(int256,int256,uint256))\":{\"details\":\"Only callable by active spokes.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"drawnAmount\":\"The drawn amount to report as deficit.\",\"premiumDelta\":\"The premium delta to apply which signals premium deficit.\"},\"returns\":{\"_0\":\"The amount of drawn shares reported as deficit.\",\"_1\":\"The amount of deficit reported, expressed in asset units.\"}},\"restore(uint256,uint256,(int256,int256,uint256))\":{\"details\":\"Only callable by active spokes.Interest is always paid off first from premium, then from drawn.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"drawnAmount\":\"The drawn amount to restore.\",\"premiumDelta\":\"The premium delta to apply which signals premium repayment.\"},\"returns\":{\"_0\":\"The amount of drawn shares restored.\"}},\"setAuthority(address)\":{\"details\":\"Transfers control to a new authority. The caller must be the current authority.\"},\"setInterestRateData(uint256,bytes)\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"irData\":\"The interest rate data to apply to the given asset, encoded in bytes.\"}},\"sweep(uint256,uint256)\":{\"details\":\"The controller handles the actual reinvestment of funds, redistribution of interest, and investment caps.\",\"params\":{\"amount\":\"The amount to sweep.\",\"assetId\":\"The identifier of the asset.\"}},\"transferShares(uint256,uint256,address)\":{\"details\":\"Only callable by spokes.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"shares\":\"The amount of shares to move.\",\"toSpoke\":\"The address of the recipient spoke.\"}},\"updateAssetConfig(uint256,(address,uint16,address,address),bytes)\":{\"details\":\"If the fee receiver is updated, adds it as a new spoke with maximum add cap and zero draw cap, and sets old fee receiver caps to zero.If the fee receiver is updated, accrued fees are minted as shares before the update if their value exceeds one share.If the interest rate strategy is updated, it is configured with `irData`. Otherwise, `irData` must be empty.\",\"params\":{\"assetId\":\"The identifier of the asset.\",\"config\":\"The new configuration for the asset.\",\"irData\":\"The interest rate data to apply to the given asset, encoded in bytes.\"}},\"updateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))\":{\"params\":{\"assetId\":\"The identifier of the asset.\",\"config\":\"The new configuration for the Spoke.\",\"spoke\":\"The address of the Spoke to update.\"}}},\"title\":\"HubInstance\",\"version\":1},\"userdoc\":{\"errors\":{\"AddCapExceeded(uint256)\":[{\"notice\":\"Thrown when the add cap is exceeded.\"}],\"AssetNotListed()\":[{\"notice\":\"Thrown when an asset is not listed.\"}],\"DrawCapExceeded(uint256)\":[{\"notice\":\"Thrown when the draw cap is exceeded.\"}],\"InsufficientLiquidity(uint256)\":[{\"notice\":\"Thrown when the available liquidity is insufficient.\"}],\"InsufficientTransferred(uint256)\":[{\"notice\":\"Thrown when the transferred liquidity is insufficient.\"}],\"InvalidAddress()\":[{\"notice\":\"Thrown when an input address is invalid.\"}],\"InvalidAmount()\":[{\"notice\":\"Thrown when the amount is invalid.\"}],\"InvalidAssetDecimals()\":[{\"notice\":\"Thrown when the asset decimals exceed the maximum allowed decimals.\"}],\"InvalidInterestRateStrategy()\":[{\"notice\":\"Thrown if the interest rate strategy or data are invalid when updating an asset configuration.\"}],\"InvalidLiquidityFee()\":[{\"notice\":\"Thrown if the liquidity fee is invalid when updating an asset configuration.\"}],\"InvalidPremiumChange()\":[{\"notice\":\"Thrown when the premium change is invalid.\"}],\"InvalidReinvestmentController()\":[{\"notice\":\"Thrown when a new reinvestment controller is the zero address and the asset has existing swept liquidity.\"}],\"InvalidShares()\":[{\"notice\":\"Thrown when the shares amount is invalid.\"}],\"OnlyReinvestmentController()\":[{\"notice\":\"Thrown when an invalid reinvestment controller attempts to perform a `sweep` action.\"}],\"SpokeAlreadyListed()\":[{\"notice\":\"Thrown when a spoke being added is already listed.\"}],\"SpokeHalted()\":[{\"notice\":\"Thrown when a spoke is halted.\"}],\"SpokeNotActive()\":[{\"notice\":\"Thrown when a spoke is not active.\"}],\"SpokeNotListed()\":[{\"notice\":\"Thrown when a spoke being updated is not listed.\"}],\"SurplusDrawnDeficitReported(uint256)\":[{\"notice\":\"Thrown when a surplus amount of drawn is reported as deficit.\"}],\"SurplusDrawnRestored(uint256)\":[{\"notice\":\"Thrown when a surplus amount of drawn is restored.\"}],\"SurplusPremiumRayDeficitReported(uint256)\":[{\"notice\":\"Thrown when a surplus amount of premium is reported as deficit.\"}],\"SurplusPremiumRayRestored(uint256)\":[{\"notice\":\"Thrown when a surplus amount of premium is restored.\"}],\"UnderlyingAlreadyListed()\":[{\"notice\":\"Thrown when an underlying asset is already listed.\"}]},\"events\":{\"Add(uint256,address,uint256,uint256)\":{\"notice\":\"Emitted on the `add` action.\"},\"AddAsset(uint256,address,uint8)\":{\"notice\":\"Emitted when an asset is added.\"},\"AddSpoke(uint256,address)\":{\"notice\":\"Emitted when a spoke is added.\"},\"Draw(uint256,address,uint256,uint256)\":{\"notice\":\"Emitted on the `draw` action.\"},\"EliminateDeficit(uint256,address,address,uint256,uint256)\":{\"notice\":\"Emitted when a deficit is eliminated.\"},\"MintFeeShares(uint256,address,uint256,uint256)\":{\"notice\":\"Emitted when fees are minted to the fee receiver spoke.\"},\"Reclaim(uint256,address,uint256)\":{\"notice\":\"Emitted when liquidity is reclaimed (from swept liquidity) by the reinvestment controller.\"},\"RefreshPremium(uint256,address,(int256,int256,uint256))\":{\"notice\":\"Emitted on the `refreshPremium` action.\"},\"Remove(uint256,address,uint256,uint256)\":{\"notice\":\"Emitted on the `remove` action.\"},\"ReportDeficit(uint256,address,uint256,(int256,int256,uint256),uint256)\":{\"notice\":\"Emitted on the `reportDeficit` action.\"},\"Restore(uint256,address,uint256,(int256,int256,uint256),uint256,uint256)\":{\"notice\":\"Emitted on the `restore` action.\"},\"Sweep(uint256,address,uint256)\":{\"notice\":\"Emitted when liquidity is invested by the reinvestment controller.\"},\"TransferShares(uint256,address,address,uint256)\":{\"notice\":\"Emitted on the `transferShares` action.\"},\"UpdateAsset(uint256,uint256,uint256,uint256)\":{\"notice\":\"Emitted when an asset is updated.\"},\"UpdateAssetConfig(uint256,(address,uint16,address,address))\":{\"notice\":\"Emitted when an asset configuration is updated.\"},\"UpdateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))\":{\"notice\":\"Emitted when a spoke configuration is updated.\"}},\"kind\":\"user\",\"methods\":{\"MAX_ALLOWED_SPOKE_CAP()\":{\"notice\":\"Returns the maximum value for any spoke cap (add or draw).\"},\"MAX_ALLOWED_UNDERLYING_DECIMALS()\":{\"notice\":\"Returns the maximum allowed number of decimals for the underlying asset.\"},\"MAX_RISK_PREMIUM_THRESHOLD()\":{\"notice\":\"Returns the maximum value for any spoke risk premium threshold.\"},\"MIN_ALLOWED_UNDERLYING_DECIMALS()\":{\"notice\":\"Returns the minimum allowed number of decimals for the underlying asset.\"},\"add(uint256,uint256)\":{\"notice\":\"Adds assets on behalf of a user.\"},\"addAsset(address,uint8,address,address,bytes)\":{\"notice\":\"Adds a new asset to the Hub.\"},\"addSpoke(uint256,address,(uint40,uint40,uint24,bool,bool))\":{\"notice\":\"Registers a new spoke for a specific asset in the Hub.\"},\"draw(uint256,uint256,address)\":{\"notice\":\"Draws assets on behalf of a user.\"},\"eliminateDeficit(uint256,uint256,address)\":{\"notice\":\"Eliminates deficit by removing added shares of caller spoke.\"},\"getAddedAssets(uint256)\":{\"notice\":\"Returns the total amount of the specified asset added to the Hub.\"},\"getAddedShares(uint256)\":{\"notice\":\"Returns the total amount of shares of the specified asset added to the Hub.\"},\"getAsset(uint256)\":{\"notice\":\"Returns information regarding the specified asset.\"},\"getAssetAccruedFees(uint256)\":{\"notice\":\"Returns the accrued fees for the asset, expressed in asset units.\"},\"getAssetConfig(uint256)\":{\"notice\":\"Returns the asset configuration for the specified asset.\"},\"getAssetCount()\":{\"notice\":\"Returns the number of listed assets.\"},\"getAssetDeficitRay(uint256)\":{\"notice\":\"Returns the amount of deficit with full precision of the specified asset.\"},\"getAssetDrawnIndex(uint256)\":{\"notice\":\"Calculates the current drawn index for the specified asset.\"},\"getAssetDrawnRate(uint256)\":{\"notice\":\"Calculates the current drawn rate for the specified asset.\"},\"getAssetDrawnShares(uint256)\":{\"notice\":\"Returns the amount of drawn shares of the specified asset.\"},\"getAssetId(address)\":{\"notice\":\"Returns the asset identifier for the specified underlying asset.\"},\"getAssetLiquidity(uint256)\":{\"notice\":\"Returns the amount of available liquidity for the specified asset.\"},\"getAssetOwed(uint256)\":{\"notice\":\"Returns the amount of owed drawn and premium assets for the specified asset.\"},\"getAssetPremiumData(uint256)\":{\"notice\":\"Returns the information regarding premium shares of the specified asset.\"},\"getAssetPremiumRay(uint256)\":{\"notice\":\"Returns the amount of owed premium with full precision for specified asset.\"},\"getAssetSwept(uint256)\":{\"notice\":\"Returns the amount of liquidity swept by the reinvestment controller for the specified asset.\"},\"getAssetTotalOwed(uint256)\":{\"notice\":\"Returns the total amount of assets owed to the Hub.\"},\"getAssetUnderlyingAndDecimals(uint256)\":{\"notice\":\"Returns the underlying address and decimals of the specified asset.\"},\"getSpoke(uint256,address)\":{\"notice\":\"Returns the Spoke data struct.\"},\"getSpokeAddedAssets(uint256,address)\":{\"notice\":\"Returns the total amount of the specified assets added to the Hub by the specified spoke.\"},\"getSpokeAddedShares(uint256,address)\":{\"notice\":\"Returns the total amount of shares of the specified asset added to the Hub by the specified spoke.\"},\"getSpokeAddress(uint256,uint256)\":{\"notice\":\"Returns the address of the Spoke for an asset at the given index.\"},\"getSpokeConfig(uint256,address)\":{\"notice\":\"Returns the Spoke configuration struct.\"},\"getSpokeCount(uint256)\":{\"notice\":\"Returns the number of spokes listed for the specified asset.\"},\"getSpokeDeficitRay(uint256,address)\":{\"notice\":\"Returns the amount of a given spoke's deficit with full precision for the specified asset.\"},\"getSpokeDrawnShares(uint256,address)\":{\"notice\":\"Returns the amount of drawn shares of the specified asset by the specified spoke.\"},\"getSpokeOwed(uint256,address)\":{\"notice\":\"Returns the amount of the specified assets owed to the Hub by the specified spoke.\"},\"getSpokePremiumData(uint256,address)\":{\"notice\":\"Returns the information regarding premium shares of the specified asset for the specified spoke.\"},\"getSpokePremiumRay(uint256,address)\":{\"notice\":\"Returns the amount of owed premium with full precision for specified asset and spoke.\"},\"getSpokeTotalOwed(uint256,address)\":{\"notice\":\"Returns the total amount of the specified asset owed to the Hub by the specified spoke.\"},\"initialize(address)\":{\"notice\":\"Initializer.\"},\"isSpokeListed(uint256,address)\":{\"notice\":\"Returns whether the Spoke is listed for the specified asset.\"},\"isUnderlyingListed(address)\":{\"notice\":\"Returns whether the underlying is listed as an asset.\"},\"mintFeeShares(uint256)\":{\"notice\":\"Mints shares to the fee receiver from accrued fees.\"},\"payFeeShares(uint256,uint256)\":{\"notice\":\"Transfers an amount of added shares of the caller Spoke to the fee receiver Spoke.\"},\"previewAddByAssets(uint256,uint256)\":{\"notice\":\"Converts the specified amount of assets to shares upon an `add` action.\"},\"previewAddByShares(uint256,uint256)\":{\"notice\":\"Converts the specified shares amount to assets amount added upon an `add` action.\"},\"previewDrawByAssets(uint256,uint256)\":{\"notice\":\"Converts the specified amount of assets to shares amount drawn upon a `draw` action.\"},\"previewDrawByShares(uint256,uint256)\":{\"notice\":\"Converts the specified amount of shares to assets amount drawn upon a `draw` action.\"},\"previewRemoveByAssets(uint256,uint256)\":{\"notice\":\"Converts the specified amount of assets to shares amount removed upon a `remove` action.\"},\"previewRemoveByShares(uint256,uint256)\":{\"notice\":\"Converts the specified amount of shares to assets amount removed upon a `remove` action.\"},\"previewRestoreByAssets(uint256,uint256)\":{\"notice\":\"Converts the specified amount of assets to shares amount restored upon a `restore` action.\"},\"previewRestoreByShares(uint256,uint256)\":{\"notice\":\"Converts the specified amount of shares to assets amount restored upon a `restore` action.\"},\"reclaim(uint256,uint256)\":{\"notice\":\"Reclaims an amount of liquidity of the corresponding asset from the configured reinvestment controller.\"},\"refreshPremium(uint256,(int256,int256,uint256))\":{\"notice\":\"Refreshes premium accounting.\"},\"remove(uint256,uint256,address)\":{\"notice\":\"Removes assets on behalf of a user.\"},\"reportDeficit(uint256,uint256,(int256,int256,uint256))\":{\"notice\":\"Reports an owed amount by the caller Spoke as a deficit.\"},\"restore(uint256,uint256,(int256,int256,uint256))\":{\"notice\":\"Restores assets on behalf of a user.\"},\"setInterestRateData(uint256,bytes)\":{\"notice\":\"Updates the interest rate strategy for a specified asset.\"},\"sweep(uint256,uint256)\":{\"notice\":\"Sweeps an amount of liquidity of the corresponding asset and sends it to the configured reinvestment controller.\"},\"transferShares(uint256,uint256,address)\":{\"notice\":\"Allows a spoke to transfer its added shares of an asset to another spoke.\"},\"updateAssetConfig(uint256,(address,uint16,address,address),bytes)\":{\"notice\":\"Updates the configuration of an asset.\"},\"updateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))\":{\"notice\":\"Updates the configuration of a spoke for a specific asset.\"}},\"notice\":\"Implementation contract for the Hub.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/hub/instances/HubInstance.sol\":\"HubInstance\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":22300},\"remappings\":[\":erc4626-tests/=lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\"],\"viaIR\":true},\"sources\":{\"src/dependencies/openzeppelin-upgradeable/AccessManagedUpgradeable.sol\":{\"keccak256\":\"0x218ec980753d90a4a3a494a7038ce7d0eb557bc35f7c474a1519647fec1042fb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a138d868459593bd8df3825d77b763ff91cf71745cf881b7db34885b70f97b3d\",\"dweb:/ipfs/QmaCuuXWi83y7xAnoj6c4jnzmS6XiwnS6zgXrADV6zZUgo\"]},\"src/dependencies/openzeppelin-upgradeable/ContextUpgradeable.sol\":{\"keccak256\":\"0x1f1dc9ec80170fa2c6024606f1da23698f0a7a7611d897d59fb175e7ffc9c27e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a5e2a139a512404e537655a2758e52ace14efa2c1654413c5e0978e3ecf3f5e4\",\"dweb:/ipfs/QmNsuK7vXGqSTjZKezyhiTedU6EbcsLqdARmiGGU7xXP4Y\"]},\"src/dependencies/openzeppelin-upgradeable/Initializable.sol\":{\"keccak256\":\"0x5cbc1660ced95b6f1d3706eb6dce9aa3f9b9696bd4b37980118cf936cf95927a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8db8294cb06ff3b4bd8532bdeb45dd677248b979c702c898cba382e883a90062\",\"dweb:/ipfs/QmWvq7Nk2rtTGAbdfPDAtDH7RAdRzePsJMTNkq8WU6xCDv\"]},\"src/dependencies/openzeppelin/Arrays.sol\":{\"keccak256\":\"0x048aa195371d780a9513eb31d2069dcbd1e215e3995acf81645e67c0ed2d04ef\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b1113bab8cf5c09940d1e0062597e84e4d07adb693eafd6e607dd294cfd65210\",\"dweb:/ipfs/QmantLhvDapqqn2R7STPiDDCXwtoPvVryRDxrthiWUhHfN\"]},\"src/dependencies/openzeppelin/AuthorityUtils.sol\":{\"keccak256\":\"0xab0d159df7b77876cc8506912fe5189ba3f1c28409eb8444185ea2f75f402397\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9516b4d82833c81fcd8f69f9728b1d9ad0b0df3f3a2696249f10235b04891e09\",\"dweb:/ipfs/QmdhSgonssLF7rNeTGD9Q3bZHkma3o6nTga3Y1wvy6fkXA\"]},\"src/dependencies/openzeppelin/Comparators.sol\":{\"keccak256\":\"0x405d597723b2b95dc72b49bc69d358389e5517628988ed552415e0533a9a0a0f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6e40373de226ad21fb753b2347237fc38da2619e657e3aca3605c479118633a6\",\"dweb:/ipfs/QmNpcGdNVWNPTRmKqLzkPx6TimVqnYFBoJdhDfd24X3W6P\"]},\"src/dependencies/openzeppelin/EnumerableSet.sol\":{\"keccak256\":\"0xe18a318a64bac9a9d17f2c3b70f34232ea6f9a3b6ac7f38e607e83de1fc61ff6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fc36bafd05141f1b56e035ce5e8c5e25eb386274ff1b046154c713a96a3d550e\",\"dweb:/ipfs/Qmdu36AmWh2B9m8EkMmrPYPFNQLew5GpABnm9Lbk6h1TmS\"]},\"src/dependencies/openzeppelin/IAccessManaged.sol\":{\"keccak256\":\"0xe74c9bbe7d4c8dd0ae9c46e5352063628d57475f164dd9c6bf4afa0a1cd55bee\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fe78d3a6dd12650ce63780b9b437f6e0f38bdce1a22e89d1c973771dd19c1e54\",\"dweb:/ipfs/QmPVzV3e6oScjHmML7fPZH27NfXeWwtHau47RmbEGZbfTk\"]},\"src/dependencies/openzeppelin/IAccessManager.sol\":{\"keccak256\":\"0x44bd53651ba4f80f635201b217d52788de9d1afd272170dd645efbdad01e3352\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8da64e9fd4290c1f4416fa6ddd98df1071b927014d4b4b684875fcaaaae85612\",\"dweb:/ipfs/Qmf1CTy8ycp77YVa5JkaHzN1k9QfL3erVNkVmkzFqBkSQX\"]},\"src/dependencies/openzeppelin/IAuthority.sol\":{\"keccak256\":\"0xd4169863322de1e1db8576fd4b81e452fc31a290f7340d595be57cbe65daafd0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a6dd771d92f2d93958ec7b706ee89969f1a57537d762c72ff094346d26797f4f\",\"dweb:/ipfs/QmZvyeEF36de6fBCunJvA1K6TSfoZbivBWRjdBwAQ8D5ot\"]},\"src/dependencies/openzeppelin/IERC1363.sol\":{\"keccak256\":\"0x5ee92fd9cc0b4083aa8ec1ee6d4fca70f90580ac00b8e61013dbd32ab70e517c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bb156b7c8788c77b25214f1ac61b596d68e2da4ccfdd03a52cb4348995458472\",\"dweb:/ipfs/Qmbs94VctN4S55YAHaBYsrwZsK6quqrTooJU7o2bbQyydk\"]},\"src/dependencies/openzeppelin/IERC165.sol\":{\"keccak256\":\"0x0980606918bfb0a7834ed5d8bf063ec4943d6385ac34e225de15787fb3bb3cff\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://03cef70995e256ef15aadd8b2ae9e3adc0fd7b16aad52bf16747e9c4420ab74c\",\"dweb:/ipfs/QmV3hJkxDnMKHGaBMoRK54wLRRdvgPufLVPVVz624g3Tc9\"]},\"src/dependencies/openzeppelin/IERC20.sol\":{\"keccak256\":\"0x8a224041f1d047bd817a7b40464b396d53097902ee412ce7aa4f37e0016a0baa\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://27a58eb6e43022fcf214432f43c8680b120b179ea4e6dc852523ab406ec0dd63\",\"dweb:/ipfs/QmYKJJzVpEPuAMA2vL5bzdzCjTzXcYwoxbw4Bo8deKevPR\"]},\"src/dependencies/openzeppelin/Math.sol\":{\"keccak256\":\"0x70fba311f1d66a06157f03195c0ceb48efebefcca4d62e8f00730f194280387f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://978d696c0d00cff104fea84e7d28e2690a6c765208f1bec953ea5c0f161b3e98\",\"dweb:/ipfs/QmV9jjMuyaeDfbqn6JvyPYfdcEjB52QJWTrjuXRVUwXwqW\"]},\"src/dependencies/openzeppelin/Panic.sol\":{\"keccak256\":\"0x22183a191d4d0cbbebac514b7d81d8da17dd6be63ebb76bb4b5c75963b44fa67\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://07a9e5ae397c81f8adcbceb16a5432290adc10254dc220ca6912a7a441497696\",\"dweb:/ipfs/QmXgwkdJoq9DGrjU6gnE5r7Q5dWzm8xLXAZsoTnRZke3D6\"]},\"src/dependencies/openzeppelin/SafeCast.sol\":{\"keccak256\":\"0x9aff97434848c662a3ff99ac8f31b7b590e447ab4f02c5df720fd6a976a1a853\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://01143bc370fb0b5f948093a31250df3149318a3f563b7f0a376186b8a628ca99\",\"dweb:/ipfs/QmQwUz4S242PFcJTgNpLpTjYj5YV2w8ys8qzK9LYjcmSac\"]},\"src/dependencies/openzeppelin/SafeERC20.sol\":{\"keccak256\":\"0xdc5b65ff3c0a8b8b8cd9329395f2cc705d75c64b788b3c08a1aa620a049a12dd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://56b63ed0c8c7958716bd0d253a7feb27b23472e894c1e11f9a614bfdedc459b7\",\"dweb:/ipfs/QmWXxSyQPUE1au1Lfd4iQKksj6DyuPLBoXAvtDknoM8kh3\"]},\"src/dependencies/openzeppelin/SlotDerivation.sol\":{\"keccak256\":\"0x67ce9e58806a8ade5602fd9f371ecb30bbf422ec38dae1b5f0efdc973fb13f51\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://43a5a95b1a929a343ddc2b70c65de1a9e972ac16e440e24af118b7b46cd641f9\",\"dweb:/ipfs/Qma1ZiZRyGsgW2ZbqVHjoL1R1U3hpqCEwDrqAhFRNaHFPZ\"]},\"src/dependencies/openzeppelin/StorageSlot.sol\":{\"keccak256\":\"0xc9a74939e8c3efe08efd7730aef5bdb595b1f0b3a4a636ac7d5d80f55a849cde\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://08cd8a51bacec9bba6b8bdcdebb734a132ed2507d600be4f885279a3ffec144d\",\"dweb:/ipfs/QmPQ5gu9FTFZKTrSbGGM7ERJxTYNVU3Z2X8AkDYpb9PZe5\"]},\"src/hub/Hub.sol\":{\"keccak256\":\"0x6ecf1025ac2b4d3df334c7e5277fdc7ce664d8d90cdfd6550cafc872781929a3\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://f3f5e9765720cafe85655c5d411cd8160fcaba998cd132bee06a45ad00c3c6a6\",\"dweb:/ipfs/Qmb9J84UXj8eEC4L9W2LTyuguRFP8aMPgAMtQqQK4orwCd\"]},\"src/hub/HubStorage.sol\":{\"keccak256\":\"0xed111c023b39a781af05351624cbe66a2cc7541b137df6f09d95364321b7ebab\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://ece98421294f81b211631478817d74d34fa396e9588de5b9ee67c1a04236596c\",\"dweb:/ipfs/QmNnGLVcJBsoENBcfqtmK11zoEyxdsTBFNNPcQmcCpFRvX\"]},\"src/hub/instances/HubInstance.sol\":{\"keccak256\":\"0xecf9b796f7bc710bd181b83f0fd7d0221c9fec4b79bdee789650a29f05cf37bc\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://78e4601c5eddc1a3c8acaee7dab36a9f80bc9ddcf3fb65c16424d7c142485c66\",\"dweb:/ipfs/QmP93SN4knj4o69V35CH4WD7XGTiuLFiyMpGnkdS64jgSv\"]},\"src/hub/interfaces/IBasicInterestRateStrategy.sol\":{\"keccak256\":\"0x2d8ec4a424c3db4d177547fcdb399a380420cbc1ffdfd1dccb3182f67027518c\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://4112dabbe96fcaf1e2ab4651029e0dc5517de3360c15ed3a3276b7be37acdc04\",\"dweb:/ipfs/QmRNVPRQfstLFdiKnKYDS2bzgzG2i1Hca2jhxCH6dg9nX3\"]},\"src/hub/interfaces/IHub.sol\":{\"keccak256\":\"0x2339502336b1e4382a23398b3a657797616e78688c930912e77a86c3b4bf0cc3\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://49111f729737639a954aeefa13963204c19e1f9a016124ddce851d5d0bf303de\",\"dweb:/ipfs/QmbUWH7cQxY4eYq2RLB7u1RpHiakj6fmBweUFdjzSq19m5\"]},\"src/hub/interfaces/IHubBase.sol\":{\"keccak256\":\"0x72639b6b17dd6c09f84760e038963a12c739e9c8cb91e02b9e5fc7d834c81e24\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://d5ec9fc62c6033f33460b08fcac061c67c8a679ae68cf8ca738c503ecc090c77\",\"dweb:/ipfs/Qmc7yR3eynsAYxmc3kXpouD87QsTggE4VDg23xt68u99sc\"]},\"src/hub/libraries/AssetLogic.sol\":{\"keccak256\":\"0xde90bd9216131289c2f654b340e06bd300736ed06ebb95e5b4c06b94dd12ba43\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://9923d04190b5c1e195ccfa12979930fbe1e088540b66bd43fbe5a7000d913629\",\"dweb:/ipfs/QmNwCehU7CMVYTzchG6rNJnr9AgUseFtaLkTbpzHofPQhM\"]},\"src/hub/libraries/Premium.sol\":{\"keccak256\":\"0x3bccc2d3b85d8171c51b6108f444e9c84857f5cb9b6777740b5cd8c2c6aa021c\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://9aef322193c748fbcc1e9759284d03a4125225b9cff15402939d881f1620fabd\",\"dweb:/ipfs/QmdaaHjhcnzvUQdy19Y237XaMpPDNu4PkXeR6RzEi8yfgu\"]},\"src/hub/libraries/SharesMath.sol\":{\"keccak256\":\"0x5e72c6c89948a0c611a44da78ff6947bf76262400d2ef0fd590ab370e2e0074d\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://1ab4a897f82020f9c5134b60c82382ee63a9c20bad3d1890e41c74d174683c1d\",\"dweb:/ipfs/QmZ1vT5EhGJWz4aQ7hNTK1oijQqn3UiKs9mzWECLX7SkKQ\"]},\"src/libraries/math/MathUtils.sol\":{\"keccak256\":\"0x7c95859b5c5b5afb49b7e57577560c27eea143c7c98ee34ea6cdbfbf99226dd5\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://39f93933247c455983637c1451a885bdafd91d86084a6cbcf66a84e6fe5d110e\",\"dweb:/ipfs/QmUpaBQ44tPYiHuXatYUeykP2YvRVYPXTa6EqUynamQtXz\"]},\"src/libraries/math/PercentageMath.sol\":{\"keccak256\":\"0xec3fe4ee52795177bf242ccd9d05598ed16abc1bc304c714f0840370ed153e6a\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://a9f143cb4fd7a00713b8256671ba2c40618c7bd1cd07211fbfb046a588142ca7\",\"dweb:/ipfs/QmNzDYENhPfDqXdVU3ToBRnGf5iZULeYVeBYoiwGQMGxBz\"]},\"src/libraries/math/WadRayMath.sol\":{\"keccak256\":\"0xc9ed6fbccfaf54e0acf2c2556970b999bd3dd9562c2c338a7889a021359ffa26\",\"license\":\"LicenseRef-BUSL\",\"urls\":[\"bzz-raw://3b032b88890315538e4a5a7ef8e96ef1a4379895ca8b1926d76c794fa9bcc435\",\"dweb:/ipfs/QmaLBhgCP1PstTcATGRfKiUeJeSQdviZoN7FQjhSR41UGP\"]}},\"version\":1}","userdoc":{"kind":"user","errors":{"SpokeHalted()":[{"notice":"Thrown when a spoke is halted."}],"InvalidAmount()":[{"notice":"Thrown when the amount is invalid."}],"InvalidShares()":[{"notice":"Thrown when the shares amount is invalid."}],"AssetNotListed()":[{"notice":"Thrown when an asset is not listed."}],"InvalidAddress()":[{"notice":"Thrown when an input address is invalid."}],"SpokeNotActive()":[{"notice":"Thrown when a spoke is not active."}],"SpokeNotListed()":[{"notice":"Thrown when a spoke being updated is not listed."}],"SpokeAlreadyListed()":[{"notice":"Thrown when a spoke being added is already listed."}],"InvalidLiquidityFee()":[{"notice":"Thrown if the liquidity fee is invalid when updating an asset configuration."}],"InvalidAssetDecimals()":[{"notice":"Thrown when the asset decimals exceed the maximum allowed decimals."}],"InvalidPremiumChange()":[{"notice":"Thrown when the premium change is invalid."}],"AddCapExceeded(uint256)":[{"notice":"Thrown when the add cap is exceeded."}],"DrawCapExceeded(uint256)":[{"notice":"Thrown when the draw cap is exceeded."}],"UnderlyingAlreadyListed()":[{"notice":"Thrown when an underlying asset is already listed."}],"OnlyReinvestmentController()":[{"notice":"Thrown when an invalid reinvestment controller attempts to perform a `sweep` action."}],"InvalidInterestRateStrategy()":[{"notice":"Thrown if the interest rate strategy or data are invalid when updating an asset configuration."}],"SurplusDrawnRestored(uint256)":[{"notice":"Thrown when a surplus amount of drawn is restored."}],"InsufficientLiquidity(uint256)":[{"notice":"Thrown when the available liquidity is insufficient."}],"InvalidReinvestmentController()":[{"notice":"Thrown when a new reinvestment controller is the zero address and the asset has existing swept liquidity."}],"InsufficientTransferred(uint256)":[{"notice":"Thrown when the transferred liquidity is insufficient."}],"SurplusPremiumRayRestored(uint256)":[{"notice":"Thrown when a surplus amount of premium is restored."}],"SurplusDrawnDeficitReported(uint256)":[{"notice":"Thrown when a surplus amount of drawn is reported as deficit."}],"SurplusPremiumRayDeficitReported(uint256)":[{"notice":"Thrown when a surplus amount of premium is reported as deficit."}]},"events":{"AddSpoke(uint256,address)":{"notice":"Emitted when a spoke is added."},"Sweep(uint256,address,uint256)":{"notice":"Emitted when liquidity is invested by the reinvestment controller."},"AddAsset(uint256,address,uint8)":{"notice":"Emitted when an asset is added."},"Reclaim(uint256,address,uint256)":{"notice":"Emitted when liquidity is reclaimed (from swept liquidity) by the reinvestment controller."},"Add(uint256,address,uint256,uint256)":{"notice":"Emitted on the `add` action."},"Draw(uint256,address,uint256,uint256)":{"notice":"Emitted on the `draw` action."},"Remove(uint256,address,uint256,uint256)":{"notice":"Emitted on the `remove` action."},"UpdateAsset(uint256,uint256,uint256,uint256)":{"notice":"Emitted when an asset is updated."},"MintFeeShares(uint256,address,uint256,uint256)":{"notice":"Emitted when fees are minted to the fee receiver spoke."},"TransferShares(uint256,address,address,uint256)":{"notice":"Emitted on the `transferShares` action."},"RefreshPremium(uint256,address,(int256,int256,uint256))":{"notice":"Emitted on the `refreshPremium` action."},"EliminateDeficit(uint256,address,address,uint256,uint256)":{"notice":"Emitted when a deficit is eliminated."},"UpdateAssetConfig(uint256,(address,uint16,address,address))":{"notice":"Emitted when an asset configuration is updated."},"UpdateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"notice":"Emitted when a spoke configuration is updated."},"ReportDeficit(uint256,address,uint256,(int256,int256,uint256),uint256)":{"notice":"Emitted on the `reportDeficit` action."},"Restore(uint256,address,uint256,(int256,int256,uint256),uint256,uint256)":{"notice":"Emitted on the `restore` action."}},"notice":"Implementation contract for the Hub.","methods":{"getAssetCount()":{"notice":"Returns the number of listed assets."},"getAsset(uint256)":{"notice":"Returns information regarding the specified asset."},"getAssetId(address)":{"notice":"Returns the asset identifier for the specified underlying asset."},"initialize(address)":{"notice":"Initializer."},"add(uint256,uint256)":{"notice":"Adds assets on behalf of a user."},"getAssetOwed(uint256)":{"notice":"Returns the amount of owed drawn and premium assets for the specified asset."},"getAssetSwept(uint256)":{"notice":"Returns the amount of liquidity swept by the reinvestment controller for the specified asset."},"getSpokeCount(uint256)":{"notice":"Returns the number of spokes listed for the specified asset."},"mintFeeShares(uint256)":{"notice":"Mints shares to the fee receiver from accrued fees."},"sweep(uint256,uint256)":{"notice":"Sweeps an amount of liquidity of the corresponding asset and sends it to the configured reinvestment controller."},"MAX_ALLOWED_SPOKE_CAP()":{"notice":"Returns the maximum value for any spoke cap (add or draw)."},"getAddedAssets(uint256)":{"notice":"Returns the total amount of the specified asset added to the Hub."},"getAddedShares(uint256)":{"notice":"Returns the total amount of shares of the specified asset added to the Hub."},"getAssetConfig(uint256)":{"notice":"Returns the asset configuration for the specified asset."},"reclaim(uint256,uint256)":{"notice":"Reclaims an amount of liquidity of the corresponding asset from the configured reinvestment controller."},"getSpoke(uint256,address)":{"notice":"Returns the Spoke data struct."},"getAssetDrawnRate(uint256)":{"notice":"Calculates the current drawn rate for the specified asset."},"getAssetLiquidity(uint256)":{"notice":"Returns the amount of available liquidity for the specified asset."},"getAssetTotalOwed(uint256)":{"notice":"Returns the total amount of assets owed to the Hub."},"getAssetDeficitRay(uint256)":{"notice":"Returns the amount of deficit with full precision of the specified asset."},"getAssetDrawnIndex(uint256)":{"notice":"Calculates the current drawn index for the specified asset."},"getAssetPremiumRay(uint256)":{"notice":"Returns the amount of owed premium with full precision for specified asset."},"isUnderlyingListed(address)":{"notice":"Returns whether the underlying is listed as an asset."},"MAX_RISK_PREMIUM_THRESHOLD()":{"notice":"Returns the maximum value for any spoke risk premium threshold."},"getAssetAccruedFees(uint256)":{"notice":"Returns the accrued fees for the asset, expressed in asset units."},"getAssetDrawnShares(uint256)":{"notice":"Returns the amount of drawn shares of the specified asset."},"getAssetPremiumData(uint256)":{"notice":"Returns the information regarding premium shares of the specified asset."},"draw(uint256,uint256,address)":{"notice":"Draws assets on behalf of a user."},"getSpokeOwed(uint256,address)":{"notice":"Returns the amount of the specified assets owed to the Hub by the specified spoke."},"payFeeShares(uint256,uint256)":{"notice":"Transfers an amount of added shares of the caller Spoke to the fee receiver Spoke."},"isSpokeListed(uint256,address)":{"notice":"Returns whether the Spoke is listed for the specified asset."},"getSpokeConfig(uint256,address)":{"notice":"Returns the Spoke configuration struct."},"remove(uint256,uint256,address)":{"notice":"Removes assets on behalf of a user."},"getSpokeAddress(uint256,uint256)":{"notice":"Returns the address of the Spoke for an asset at the given index."},"MAX_ALLOWED_UNDERLYING_DECIMALS()":{"notice":"Returns the maximum allowed number of decimals for the underlying asset."},"MIN_ALLOWED_UNDERLYING_DECIMALS()":{"notice":"Returns the minimum allowed number of decimals for the underlying asset."},"getSpokeTotalOwed(uint256,address)":{"notice":"Returns the total amount of the specified asset owed to the Hub by the specified spoke."},"setInterestRateData(uint256,bytes)":{"notice":"Updates the interest rate strategy for a specified asset."},"getSpokeDeficitRay(uint256,address)":{"notice":"Returns the amount of a given spoke's deficit with full precision for the specified asset."},"getSpokePremiumRay(uint256,address)":{"notice":"Returns the amount of owed premium with full precision for specified asset and spoke."},"previewAddByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares upon an `add` action."},"previewAddByShares(uint256,uint256)":{"notice":"Converts the specified shares amount to assets amount added upon an `add` action."},"getSpokeAddedAssets(uint256,address)":{"notice":"Returns the total amount of the specified assets added to the Hub by the specified spoke."},"getSpokeAddedShares(uint256,address)":{"notice":"Returns the total amount of shares of the specified asset added to the Hub by the specified spoke."},"getSpokeDrawnShares(uint256,address)":{"notice":"Returns the amount of drawn shares of the specified asset by the specified spoke."},"getSpokePremiumData(uint256,address)":{"notice":"Returns the information regarding premium shares of the specified asset for the specified spoke."},"previewDrawByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares amount drawn upon a `draw` action."},"previewDrawByShares(uint256,uint256)":{"notice":"Converts the specified amount of shares to assets amount drawn upon a `draw` action."},"getAssetUnderlyingAndDecimals(uint256)":{"notice":"Returns the underlying address and decimals of the specified asset."},"previewRemoveByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares amount removed upon a `remove` action."},"previewRemoveByShares(uint256,uint256)":{"notice":"Converts the specified amount of shares to assets amount removed upon a `remove` action."},"previewRestoreByAssets(uint256,uint256)":{"notice":"Converts the specified amount of assets to shares amount restored upon a `restore` action."},"previewRestoreByShares(uint256,uint256)":{"notice":"Converts the specified amount of shares to assets amount restored upon a `restore` action."},"transferShares(uint256,uint256,address)":{"notice":"Allows a spoke to transfer its added shares of an asset to another spoke."},"eliminateDeficit(uint256,uint256,address)":{"notice":"Eliminates deficit by removing added shares of caller spoke."},"addAsset(address,uint8,address,address,bytes)":{"notice":"Adds a new asset to the Hub."},"refreshPremium(uint256,(int256,int256,uint256))":{"notice":"Refreshes premium accounting."},"restore(uint256,uint256,(int256,int256,uint256))":{"notice":"Restores assets on behalf of a user."},"reportDeficit(uint256,uint256,(int256,int256,uint256))":{"notice":"Reports an owed amount by the caller Spoke as a deficit."},"addSpoke(uint256,address,(uint40,uint40,uint24,bool,bool))":{"notice":"Registers a new spoke for a specific asset in the Hub."},"updateAssetConfig(uint256,(address,uint16,address,address),bytes)":{"notice":"Updates the configuration of an asset."},"updateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"notice":"Updates the configuration of a spoke for a specific asset."}},"version":1},"devdoc":{"kind":"dev","title":"HubInstance","author":"Aave Labs","errors":{"NotInitializing()":[{"details":"The contract is not initializing."}],"AddCapExceeded(uint256)":[{"params":{"addCap":"The current `addCap` of the asset, expressed in whole assets (not scaled by decimals)."}}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"DrawCapExceeded(uint256)":[{"params":{"drawCap":"The current `drawCap` of the asset, expressed in whole assets (not scaled by decimals)."}}],"InvalidInterestRateStrategy()":[{"details":"The `irData` must be empty if the interest rate strategy is not updated."}],"SurplusDrawnRestored(uint256)":[{"params":{"maxAllowedRestore":"The maximum allowed drawn amount to restore."}}],"InsufficientLiquidity(uint256)":[{"params":{"liquidity":"The current available liquidity."}}],"InsufficientTransferred(uint256)":[{"params":{"liquidityNeeded":"The amount of additional liquidity needed."}}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}],"SurplusPremiumRayRestored(uint256)":[{"params":{"maxAllowedRestoreRay":"The maximum allowed premium amount to restore, expressed in asset units and scaled by RAY."}}],"SafeCastOverflowedIntToUint(int256)":[{"details":"An int value doesn't fit in an uint of `bits` size."}],"SafeCastOverflowedUintToInt(uint256)":[{"details":"An uint value doesn't fit in an int of `bits` size."}],"SurplusDrawnDeficitReported(uint256)":[{"params":{"maxAllowedDeficit":"The maximum allowed drawn to report as deficit."}}],"SurplusPremiumRayDeficitReported(uint256)":[{"params":{"maxAllowedDeficitRay":"The maximum allowed premium to report as deficit, expressed in asset units and scaled by RAY."}}],"SafeCastOverflowedIntDowncast(uint8,int256)":[{"details":"Value doesn't fit in an int of `bits` size."}],"SafeCastOverflowedUintDowncast(uint8,uint256)":[{"details":"Value doesn't fit in an uint of `bits` size."}]},"events":{"Initialized(uint64)":{"details":"Triggered when the contract has been initialized or reinitialized."},"AddSpoke(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."}},"AuthorityUpdated(address)":{"details":"Authority that manages this contract was updated."},"Sweep(uint256,address,uint256)":{"params":{"amount":"The amount invested.","assetId":"The identifier of the asset.","reinvestmentController":"The active asset controller."}},"AddAsset(uint256,address,uint8)":{"params":{"assetId":"The identifier of the asset.","decimals":"The number of decimals of the asset.","underlying":"The address of the underlying asset."}},"Reclaim(uint256,address,uint256)":{"params":{"amount":"The amount reclaimed.","assetId":"The identifier of the asset.","reinvestmentController":"The active asset controller."}},"Add(uint256,address,uint256,uint256)":{"params":{"spoke":"The address of the Spoke.","amount":"The amount of assets added.","shares":"The amount of shares added.","assetId":"The identifier of the asset."}},"Draw(uint256,address,uint256,uint256)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset.","drawnAmount":"The amount of drawn assets.","drawnShares":"The amount of drawn shares."}},"Remove(uint256,address,uint256,uint256)":{"params":{"spoke":"The address of the Spoke.","amount":"The amount of assets removed.","shares":"The amount of shares removed.","assetId":"The identifier of the asset."}},"UpdateAsset(uint256,uint256,uint256,uint256)":{"params":{"assetId":"The identifier of the asset.","drawnRate":"The new drawn rate of the asset.","drawnIndex":"The new drawn index of the asset.","accruedFees":"The accrued fees of the asset since the last mint."}},"MintFeeShares(uint256,address,uint256,uint256)":{"params":{"assets":"The amount of assets used to mint the shares.","shares":"The amount of shares minted.","assetId":"The identifier of the asset.","feeReceiver":"The address of the current fee receiver spoke."}},"TransferShares(uint256,address,address,uint256)":{"params":{"sender":"The address of the sender.","shares":"The amount of shares transferred.","assetId":"The identifier of the asset.","receiver":"The address of the receiver."}},"RefreshPremium(uint256,address,(int256,int256,uint256))":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset.","premiumDelta":"The premium delta data struct."}},"EliminateDeficit(uint256,address,address,uint256,uint256)":{"params":{"shares":"The amount of shares removed.","assetId":"The identifier of the asset.","callerSpoke":"The spoke that eliminated the deficit using its added shares.","coveredSpoke":"The spoke for which the deficit was eliminated.","deficitAmountRay":"The amount of deficit eliminated, expressed in asset units and scaled by RAY."}},"UpdateAssetConfig(uint256,(address,uint16,address,address))":{"params":{"config":"The new asset configuration struct.","assetId":"The identifier of the asset."}},"UpdateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"params":{"spoke":"The address of the Spoke.","config":"The new spoke configuration struct.","assetId":"The identifier of the asset."}},"ReportDeficit(uint256,address,uint256,(int256,int256,uint256),uint256)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset.","drawnShares":"The amount of drawn shares reported as deficit.","premiumDelta":"The premium delta data struct.","deficitAmountRay":"The amount of deficit reported, expressed in asset units and scaled by RAY."}},"Restore(uint256,address,uint256,(int256,int256,uint256),uint256,uint256)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset.","drawnAmount":"The amount of drawn assets restored.","drawnShares":"The amount of drawn shares.","premiumDelta":"The premium delta data struct.","premiumAmount":"The amount of premium assets restored."}}},"methods":{"authority()":{"details":"Returns the current authority."},"constructor":{"details":"Constructor."},"getAsset(uint256)":{"params":{"assetId":"The identifier of the asset."},"details":"`drawnIndex`, `drawnRate` and `lastUpdateTimestamp` can be outdated due to passage of time.","returns":{"_0":"The asset struct."}},"getAssetId(address)":{"params":{"underlying":"The address of the underlying asset."},"details":"Reverts with `AssetNotListed` if the underlying is not listed."},"initialize(address)":{"params":{"authority":"The address of the authority contract which manages permissions."},"details":"The authority contract must implement the `AccessManaged` interface for access control."},"add(uint256,uint256)":{"params":{"amount":"The amount of asset liquidity to add.","assetId":"The identifier of the asset."},"details":"Only callable by active spokes.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.","returns":{"_0":"The amount of shares added."}},"getAssetOwed(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of owed drawn assets.","_1":"The amount of owed premium assets."}},"setAuthority(address)":{"details":"Transfers control to a new authority. The caller must be the current authority."},"getAssetSwept(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of liquidity swept."}},"getSpokeCount(uint256)":{"params":{"assetId":"The identifier of the asset."}},"mintFeeShares(uint256)":{"params":{"assetId":"The identifier of the asset."},"details":"No op when fees are worth less than one share.","returns":{"_0":"The amount of shares minted."}},"sweep(uint256,uint256)":{"params":{"amount":"The amount to sweep.","assetId":"The identifier of the asset."},"details":"The controller handles the actual reinvestment of funds, redistribution of interest, and investment caps."},"getAddedAssets(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of the asset added."}},"getAddedShares(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of shares of the asset added."}},"getAssetConfig(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The asset configuration struct."}},"isConsumingScheduledOp()":{"details":"Returns true only in the context of a delayed restricted call, at the moment that the scheduled operation is being consumed. Prevents denial of service for delayed restricted calls in the case that the contract performs attacker controlled calls."},"reclaim(uint256,uint256)":{"params":{"amount":"The amount to reclaim.","assetId":"The identifier of the asset."},"details":"The controller can only reclaim up to swept amount. All accrued interest is distributed offchain.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action."},"getSpoke(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The spoke data struct."}},"getAssetDrawnRate(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The current drawn rate of the asset."}},"getAssetLiquidity(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of available liquidity."}},"getAssetTotalOwed(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The total amount of the assets owed."}},"getAssetDeficitRay(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of deficit, expressed in asset units and scaled by RAY."}},"getAssetDrawnIndex(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The current drawn index of the asset."}},"getAssetPremiumRay(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of premium owed, expressed in asset units and scaled by RAY."}},"isUnderlyingListed(address)":{"params":{"underlying":"The address of the underlying asset."},"returns":{"_0":"True if the underlying asset is listed."}},"getAssetAccruedFees(uint256)":{"params":{"assetId":"The identifier of the asset."},"details":"Accrued fees are excluded from total added assets.","returns":{"_0":"The amount of accrued fees."}},"getAssetDrawnShares(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of drawn shares."}},"getAssetPremiumData(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The amount of premium shares owed to the asset.","_1":"The premium offset of the asset, expressed in asset units and scaled by RAY."}},"draw(uint256,uint256,address)":{"params":{"to":"The address to transfer the underlying assets to.","amount":"The amount of assets to draw.","assetId":"The identifier of the asset."},"details":"Only callable by active spokes.","returns":{"_0":"The amount of drawn shares."}},"getSpokeOwed(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of owed drawn assets.","_1":"The amount of owed premium assets."}},"payFeeShares(uint256,uint256)":{"params":{"shares":"The amount of shares to pay to feeReceiver.","assetId":"The identifier of the asset."},"details":"It can be used to execute one-time payments to the fee receiver Spoke (e.g., liquidation fees).Only callable by active spokes."},"isSpokeListed(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"True if the Spoke is listed."}},"getSpokeConfig(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The spoke configuration struct."}},"remove(uint256,uint256,address)":{"params":{"to":"The address to transfer the assets to.","amount":"The amount of asset liquidity to remove.","assetId":"The identifier of the asset."},"details":"Only callable by active spokes.","returns":{"_0":"The amount of shares removed."}},"getSpokeAddress(uint256,uint256)":{"params":{"index":"The index of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The address of the Spoke."}},"getSpokeTotalOwed(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The total amount of the asset owed."}},"setInterestRateData(uint256,bytes)":{"params":{"irData":"The interest rate data to apply to the given asset, encoded in bytes.","assetId":"The identifier of the asset."}},"getSpokeDeficitRay(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of deficit, expressed in asset units and scaled by RAY."}},"getSpokePremiumRay(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of owed premium assets, expressed in asset units and scaled by RAY."}},"previewAddByAssets(uint256,uint256)":{"params":{"assets":"The amount of assets to convert to shares amount.","assetId":"The identifier of the asset."},"details":"Rounds down to the nearest shares amount.Defaults to a 1:1 exchange rate.","returns":{"_0":"The amount of shares converted from assets amount."}},"previewAddByShares(uint256,uint256)":{"params":{"shares":"The amount of shares to convert to assets amount.","assetId":"The identifier of the asset."},"details":"Rounds up to the nearest assets amount.Defaults to a 1:1 exchange rate.","returns":{"_0":"The amount of assets converted from shares amount."}},"getSpokeAddedAssets(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"details":"If spoke is `asset.feeReceiver`, includes converted `unrealizedFeeShares` in return value.","returns":{"_0":"The amount of added assets."}},"getSpokeAddedShares(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"details":"If spoke is `asset.feeReceiver`, includes `unrealizedFeeShares` in return value.","returns":{"_0":"The amount of added shares."}},"getSpokeDrawnShares(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of drawn shares."}},"getSpokePremiumData(uint256,address)":{"params":{"spoke":"The address of the Spoke.","assetId":"The identifier of the asset."},"returns":{"_0":"The amount of premium shares.","_1":"The premium offset, expressed in asset units and scaled by RAY."}},"previewDrawByAssets(uint256,uint256)":{"params":{"assets":"The amount of assets to convert to shares amount.","assetId":"The identifier of the asset."},"details":"Rounds up to the nearest shares amount.","returns":{"_0":"The amount of shares converted from assets amount."}},"previewDrawByShares(uint256,uint256)":{"params":{"shares":"The amount of shares to convert to assets amount.","assetId":"The identifier of the asset."},"details":"Rounds down to the nearest assets amount.","returns":{"_0":"The amount of assets converted from shares amount."}},"getAssetUnderlyingAndDecimals(uint256)":{"params":{"assetId":"The identifier of the asset."},"returns":{"_0":"The underlying address of the asset.","_1":"The decimals of the asset."}},"previewRemoveByAssets(uint256,uint256)":{"params":{"assets":"The amount of assets to convert to shares amount.","assetId":"The identifier of the asset."},"details":"Rounds up to the nearest shares amount.Defaults to a 1:1 exchange rate.","returns":{"_0":"The amount of shares converted from assets amount."}},"previewRemoveByShares(uint256,uint256)":{"params":{"shares":"The amount of shares to convert to assets amount.","assetId":"The identifier of the asset."},"details":"Rounds down to the nearest assets amount.Defaults to a 1:1 exchange rate.","returns":{"_0":"The amount of assets converted from shares amount."}},"previewRestoreByAssets(uint256,uint256)":{"params":{"assets":"The amount of assets to convert to shares amount.","assetId":"The identifier of the asset."},"details":"Rounds down to the nearest shares amount.","returns":{"_0":"The amount of shares converted from assets amount."}},"previewRestoreByShares(uint256,uint256)":{"params":{"shares":"The amount of drawn shares to convert to assets amount.","assetId":"The identifier of the asset."},"details":"Rounds up to the nearest assets amount.","returns":{"_0":"The amount of assets converted from shares amount."}},"transferShares(uint256,uint256,address)":{"params":{"shares":"The amount of shares to move.","assetId":"The identifier of the asset.","toSpoke":"The address of the recipient spoke."},"details":"Only callable by spokes."},"eliminateDeficit(uint256,uint256,address)":{"params":{"spoke":"The spoke for which the deficit is eliminated.","amount":"The amount of deficit to eliminate.","assetId":"The identifier of the asset."},"details":"Only callable by active and authorized spokes.","returns":{"_0":"The amount of added shares removed.","_1":"The amount of deficit eliminated, expressed in asset units."}},"addAsset(address,uint8,address,address,bytes)":{"params":{"irData":"The interest rate data to apply to the given asset encoded in bytes.","decimals":"The number of decimals of `underlying`.","irStrategy":"The address of the interest rate strategy contract.","underlying":"The address of the underlying asset.","feeReceiver":"The address of the fee receiver spoke."},"details":"The same underlying asset address cannot be added as an asset multiple times.The fee receiver is added as a new spoke with maximum add cap and zero draw cap.","returns":{"_0":"The unique identifier of the added asset."}},"refreshPremium(uint256,(int256,int256,uint256))":{"params":{"assetId":"The identifier of the asset.","premiumDelta":"The change in premium."},"details":"Only callable by active spokes.Asset and spoke premium should not decrease."},"restore(uint256,uint256,(int256,int256,uint256))":{"params":{"assetId":"The identifier of the asset.","drawnAmount":"The drawn amount to restore.","premiumDelta":"The premium delta to apply which signals premium repayment."},"details":"Only callable by active spokes.Interest is always paid off first from premium, then from drawn.Underlying assets must be transferred to the Hub before invocation.Extra untracked underlying liquidity in the Hub can be skimmed into the Hub's liquidity accounting through this action.","returns":{"_0":"The amount of drawn shares restored."}},"reportDeficit(uint256,uint256,(int256,int256,uint256))":{"params":{"assetId":"The identifier of the asset.","drawnAmount":"The drawn amount to report as deficit.","premiumDelta":"The premium delta to apply which signals premium deficit."},"details":"Only callable by active spokes.","returns":{"_0":"The amount of drawn shares reported as deficit.","_1":"The amount of deficit reported, expressed in asset units."}},"addSpoke(uint256,address,(uint40,uint40,uint24,bool,bool))":{"params":{"spoke":"The address of the Spoke to add.","params":"The configuration parameters for the Spoke.","assetId":"The identifier of the asset."},"details":"Reverts with `SpokeAlreadyListed` if spoke is already listed."},"updateAssetConfig(uint256,(address,uint16,address,address),bytes)":{"params":{"config":"The new configuration for the asset.","irData":"The interest rate data to apply to the given asset, encoded in bytes.","assetId":"The identifier of the asset."},"details":"If the fee receiver is updated, adds it as a new spoke with maximum add cap and zero draw cap, and sets old fee receiver caps to zero.If the fee receiver is updated, accrued fees are minted as shares before the update if their value exceeds one share.If the interest rate strategy is updated, it is configured with `irData`. Otherwise, `irData` must be empty."},"updateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))":{"params":{"spoke":"The address of the Spoke to update.","config":"The new configuration for the Spoke.","assetId":"The identifier of the asset."}}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_uint8":{"label":"uint8","encoding":"inplace","numberOfBytes":"1"},"t_int200":{"label":"int200","encoding":"inplace","numberOfBytes":"25"},"t_uint16":{"label":"uint16","encoding":"inplace","numberOfBytes":"2"},"t_uint24":{"label":"uint24","encoding":"inplace","numberOfBytes":"3"},"t_uint40":{"label":"uint40","encoding":"inplace","numberOfBytes":"5"},"t_uint96":{"label":"uint96","encoding":"inplace","numberOfBytes":"12"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_bytes32":{"label":"bytes32","encoding":"inplace","numberOfBytes":"32"},"t_uint120":{"label":"uint120","encoding":"inplace","numberOfBytes":"15"},"t_uint200":{"label":"uint200","encoding":"inplace","numberOfBytes":"25"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_struct(Set)1988_storage":{"label":"struct EnumerableSet.Set","members":[{"slot":"0","type":"t_array(t_bytes32)dyn_storage","astId":1983,"label":"_values","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"1","type":"t_mapping(t_bytes32,t_uint256)","astId":1987,"label":"_positions","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"}],"encoding":"inplace","numberOfBytes":"64"},"t_array(t_uint256)50_storage":{"base":"t_uint256","label":"uint256[50]","encoding":"inplace","numberOfBytes":"1600"},"t_struct(Asset)12059_storage":{"label":"struct IHub.Asset","members":[{"slot":"0","type":"t_uint120","astId":12026,"label":"liquidity","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"0","type":"t_uint120","astId":12028,"label":"realizedFees","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"0","type":"t_uint8","astId":12030,"label":"decimals","offset":30,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"1","type":"t_uint120","astId":12032,"label":"addedShares","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"1","type":"t_uint120","astId":12034,"label":"swept","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_int200","astId":12036,"label":"premiumOffsetRay","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"3","type":"t_uint120","astId":12038,"label":"drawnShares","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"3","type":"t_uint120","astId":12040,"label":"premiumShares","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"3","type":"t_uint16","astId":12042,"label":"liquidityFee","offset":30,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"4","type":"t_uint120","astId":12044,"label":"drawnIndex","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"4","type":"t_uint96","astId":12046,"label":"drawnRate","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"4","type":"t_uint40","astId":12048,"label":"lastUpdateTimestamp","offset":27,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"5","type":"t_address","astId":12050,"label":"underlying","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"6","type":"t_address","astId":12052,"label":"irStrategy","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"7","type":"t_address","astId":12054,"label":"reinvestmentController","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"8","type":"t_address","astId":12056,"label":"feeReceiver","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"9","type":"t_uint200","astId":12058,"label":"deficitRay","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"}],"encoding":"inplace","numberOfBytes":"320"},"t_array(t_bytes32)dyn_storage":{"base":"t_bytes32","label":"bytes32[]","encoding":"dynamic_array","numberOfBytes":"32"},"t_mapping(t_address,t_uint256)":{"key":"t_address","label":"mapping(address => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_bytes32,t_uint256)":{"key":"t_bytes32","label":"mapping(bytes32 => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_struct(AddressSet)2474_storage":{"label":"struct EnumerableSet.AddressSet","members":[{"slot":"0","type":"t_struct(Set)1988_storage","astId":2473,"label":"_inner","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"}],"encoding":"inplace","numberOfBytes":"64"},"t_struct(SpokeData)12091_storage":{"label":"struct IHub.SpokeData","members":[{"slot":"0","type":"t_uint120","astId":12072,"label":"drawnShares","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"0","type":"t_uint120","astId":12074,"label":"premiumShares","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"1","type":"t_int200","astId":12076,"label":"premiumOffsetRay","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_uint120","astId":12078,"label":"addedShares","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_uint40","astId":12080,"label":"addCap","offset":15,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_uint40","astId":12082,"label":"drawCap","offset":20,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_uint24","astId":12084,"label":"riskPremiumThreshold","offset":25,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_bool","astId":12086,"label":"active","offset":28,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_bool","astId":12088,"label":"halted","offset":29,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"3","type":"t_uint200","astId":12090,"label":"deficitRay","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"}],"encoding":"inplace","numberOfBytes":"128"},"t_mapping(t_uint256,t_struct(Asset)12059_storage)":{"key":"t_uint256","label":"mapping(uint256 => struct IHub.Asset)","value":"t_struct(Asset)12059_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_struct(SpokeData)12091_storage)":{"key":"t_address","label":"mapping(address => struct IHub.SpokeData)","value":"t_struct(SpokeData)12091_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_struct(AddressSet)2474_storage)":{"key":"t_uint256","label":"mapping(uint256 => struct EnumerableSet.AddressSet)","value":"t_struct(AddressSet)2474_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_mapping(t_address,t_struct(SpokeData)12091_storage))":{"key":"t_uint256","label":"mapping(uint256 => mapping(address => struct IHub.SpokeData))","value":"t_mapping(t_address,t_struct(SpokeData)12091_storage)","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_uint256","astId":11903,"label":"_assetCount","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"1","type":"t_mapping(t_uint256,t_struct(Asset)12059_storage)","astId":11909,"label":"_assets","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"2","type":"t_mapping(t_uint256,t_mapping(t_address,t_struct(SpokeData)12091_storage))","astId":11917,"label":"_spokes","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"3","type":"t_mapping(t_uint256,t_struct(AddressSet)2474_storage)","astId":11923,"label":"_assetToSpokes","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"4","type":"t_mapping(t_address,t_uint256)","astId":11928,"label":"_underlyingToAssetId","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"},{"slot":"5","type":"t_array(t_uint256)50_storage","astId":11933,"label":"__gap","offset":0,"contract":"src/hub/instances/HubInstance.sol:HubInstance"}]},"transientStorageLayout":{"types":null,"storage":[]},"evm":{"bytecode":{"object":"6080806040523460aa575f516020615fd05f395f51905f525460ff8160401c16609b576002600160401b03196001600160401b038216016049575b604051615f2190816100af8239f35b6001600160401b0319166001600160401b039081175f516020615fd05f395f51905f525581527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a15f80603a565b63f92ee8a960e01b5f5260045ffd5b5f80fdfe60806040526004361015610011575f80fd5b5f5f3560e01c8063033a06951461428b578063066dd830146141695780630752c44c146141395780630c90e7fe146140e9578063132a8bea146140ae578063152ee0d3146140515780631901057d14613ffe5780631e83287e146136fe57806321a3bebc1461369a578063228e731f1461367a57806324ba667f1461365157806324e4c1af146131855780632a5b380314612e0d5780633369706614612def578063341f7dcf14612aac5780633992163714612a5e5780633a445c4e14612a105780633c9a9ee514612984578063403d77781461291857806341a009eb146128d857806358a54078146128ae5780635e39616d146128945780635ff1c4821461283d5780637333a3b41461266f5780637658c64414612631578063771602f7146122fa5780637a9e5e4b1461223f57806380c099f41461221a57806383e4bcb71461212057806387a7dc7714611f385780638accc4a314611f025780638fb3603714611e6d5780639c7ee64f14611e075780639f9b199014611dcc578063a0aead4d14611daf578063a0b3d9d814611d8f578063a2763d2914611d01578063a436458d14611a83578063a467cc5914611963578063aab9eb071461193b578063b0745f2b146118fe578063b33454e5146118e2578063b5f460c8146118b9578063be10528014611607578063bf7e214f146115c1578063c04d164e1461159c578063c25d82fe146114f6578063c435e92814611490578063c4d66de8146112fa578063cc0e1c1c14610fc0578063ceb233b314610f9b578063d3c6a11d14610f4a578063d5d15a1114610f02578063d6abe64214610e66578063de079b5714610e23578063de31ea9f14610d54578063e5c9274514610cfa578063e840427d14610aaf578063eac8f5b814610736578063efdba7c0146106a2578063f51f1a351461064f578063f701f06e1461055c578063f8447aaf1461052f578063f899860514610513578063f91ebd52146104f75763fce56a0b146102f0575f80fd5b346104f45760406003193601126104f457610309614309565b908060405161031781614507565b8181528160208201528160408201528160608201528160808201528160a08201528160c08201528160e08201528161010082015261012001526004358152600260205260409020906001600160a01b03165f5260205260405f2060405161037d81614507565b81546effffffffffffffffffffffffffffff811692838352602083019160781c6effffffffffffffffffffffffffffff168252600181015460180b9160408401928352600282015492606085016effffffffffffffffffffffffffffff8516815260808601908560781c64ffffffffff16825260a08701928660a01c64ffffffffff16845260c08801948760c81c62ffffff16865260e08901968860e01c60ff16151588526101008a019860e81c60ff16151589526003015478ffffffffffffffffffffffffffffffffffffffffffffffffff169861012001988952604051998a52516effffffffffffffffffffffffffffff1660208a01525160180b6040890152516effffffffffffffffffffffffffffff1660608801525164ffffffffff1660808701525164ffffffffff1660a08601525162ffffff1660c085015251151560e08401525115156101008301525178ffffffffffffffffffffffffffffffffffffffffffffffffff1661012082015261014090f35b80fd5b50346104f457806003193601126104f457602060405160068152f35b50346104f457806003193601126104f457602060405160128152f35b50346104f4576105546020916040610546366142dd565b929081526001855220615848565b604051908152f35b50346104f45760406003193601126104f4576001600160a01b036040610580614309565b92610589614610565b50600435815260026020522091165f5260205261064b600260405f20015460ff604051916105b6836144eb565b64ffffffffff8160781c16835264ffffffffff8160a01c16602084015262ffffff8160c81c166040840152818160e01c161515606084015260e81c16151560808201526040519182918291909160808060a083019464ffffffffff815116845264ffffffffff602082015116602085015262ffffff604082015116604085015260608101511515606085015201511515910152565b0390f35b50346104f45760206003193601126104f45761055460406020926004358152600184522061069c6effffffffffffffffffffffffffffff825460781c169161069681614ee6565b906159a0565b9061466a565b50346104f45760406003193601126104f457610554602091600435906001600160a01b0360406106d0614309565b9284815260018752818120948152600287522091165f52835261071b60405f206107156effffffffffffffffffffffffffffff82541661070f85614ee6565b90615b17565b9261596b565b6b033b2e3c9fd0803ce800000080820615159104019061466a565b50346104f45760206003193601126104f45760408161022092610200835161075d81614485565b82815282602082015282858201528260608201528260808201528260a08201528260c08201528260e08201528261010082015282610120820152826101408201528261016082015282610180820152826101a0820152826101c0820152826101e08201520152600435815260016020522078ffffffffffffffffffffffffffffffffffffffffffffffffff6102006040516107f781614485565b8260098554956effffffffffffffffffffffffffffff871684526effffffffffffffffffffffffffffff8760781c16602085015260ff8760f01c1660408501526effffffffffffffffffffffffffffff6001820154818116606087015260781c166080850152600281015460180b60a085015260038101546effffffffffffffffffffffffffffff811660c08601526effffffffffffffffffffffffffffff8160781c1660e086015260f01c61010085015260048101546effffffffffffffffffffffffffffff81166101208601526bffffffffffffffffffffffff8160781c1661014086015260d81c6101608501526001600160a01b036005820154166101808501526001600160a01b036006820154166101a08501526001600160a01b036007820154166101c08501526001600160a01b036008820154166101e0850152015416828201526effffffffffffffffffffffffffffff604051941684526effffffffffffffffffffffffffffff602082015116602085015260ff60408201511660408501526effffffffffffffffffffffffffffff60608201511660608501526effffffffffffffffffffffffffffff608082015116608085015260a081015160180b60a08501526effffffffffffffffffffffffffffff60c08201511660c08501526effffffffffffffffffffffffffffff60e08201511660e085015261ffff610100820151166101008501526effffffffffffffffffffffffffffff610120820151166101208501526bffffffffffffffffffffffff6101408201511661014085015264ffffffffff610160820151166101608501526001600160a01b03610180820151166101808501526001600160a01b036101a0820151166101a08501526001600160a01b036101c0820151166101c08501526001600160a01b036101e0820151166101e0850152015116610200820152f35b50346104f457610abe366143a5565b9092828152600160205260408120908381526002602052604081206001600160a01b0333165f5260205260405f20610af583614a5e565b306001600160a01b03851614610cd2578515610caa5760020190815460ff8160e01c1615610c825760e81c60ff16610c5a576020610bad8787610bf582896001600160a01b0360058b6effffffffffffffffffffffffffffff610bcb868e8385541690610b658280851115614422565b84610b78610b738589615848565b614ddc565b9e8f6001890183610b8c838284541661463a565b166effffffffffffffffffffffffffffff198254161790558284541661463a565b166effffffffffffffffffffffffffffff1982541617905503614ddc565b166effffffffffffffffffffffffffffff19825416178155610bed8782614cb6565b015416614e36565b604080516effffffffffffffffffffffffffffff85168152602081019390935233927f535be2ff85ab4c5d0991e10dc057a4951ea2bac426ffb036eded23036a3942b291819081015b0390a36effffffffffffffffffffffffffffff60405191168152f35b807f9db9b3550000000000000000000000000000000000000000000000000000000060049252fd5b6004827fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004827f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b6004827fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760406003193601126104f4576001600160a01b036040610d1e614309565b92600435815260026020522091165f5260205260206effffffffffffffffffffffffffffff600260405f20015416604051908152f35b50346104f45760206003193601126104f45760408161064b9260608351610d7a816144cf565b8281528260208201528285820152015260043581526001602052206001600160a01b0360088201541690600381015460f01c906001600160a01b03600781600684015416920154169160405193610dd0856144cf565b84526020840152604083015260608201526040519182918291909160606001600160a01b0381608084019582815116855261ffff6020820151166020860152826040820151166040860152015116910152565b50346104f45760206003193601126104f45760408091600435815260016020522060ff6001600160a01b03600583015416915460f01c1682519182526020820152f35b50346104f45760206003193601126104f457610e806142f3565b610eb6816001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b15610eda576020916001600160a01b03604092168152600483522054604051908152f35b6004827fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f45778ffffffffffffffffffffffffffffffffffffffffffffffffff6009604060209360043581526001855220015416604051908152f35b50346104f45760406003193601126104f457610554602091600435906001600160a01b036040610f78614309565b9284815260018752818120948152600287522091165f52835260405f209061596b565b50346104f4576105546020916040610fb2366142dd565b92908152600185522061556b565b50346104f457610fcf36614363565b8284939452600160205260408320938084526002602052604084206001600160a01b0333165f5260205260405f209261100786614a5e565b60408301359481158015906112f1575b156112c95760ff600286015460e01c16156112a15761104b6effffffffffffffffffffffffffffff86541661070f89614ee6565b611055868961596b565b90808411611276575080871161124a57505081866111186effffffffffffffffffffffffffffff611097610b736111d69661109160409d614ee6565b90615bba565b60038401826110a9838284541661463a565b166effffffffffffffffffffffffffffff19825416179055816110cf82828c541661463a565b166effffffffffffffffffffffffffffff198a54161789556110f2888a86615376565b16976111136effffffffffffffffffffffffffffff6004850154168a61477e565b61466a565b956111228761588a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff61114d600985019282845416614791565b167fffffffffffffff0000000000000000000000000000000000000000000000000082541617905578ffffffffffffffffffffffffffffffffffffffffffffffffff6111a9600361119d8a61588a565b93019282845416614791565b167fffffffffffffff00000000000000000000000000000000000000000000000000825416179055614cb6565b6111fd85519285845260208401906040809180358452602081013560208501520135910152565b8260808301527f4845ee5c72bde2b62defc8a1ca2f0fc3313b2d9e799997ce4f6776da9773bcbf60a03393a382519182526b033b2e3c9fd0803ce800000080820615159104016020820152f35b602492507f37f3f9b7000000000000000000000000000000000000000000000000000000008252600452fd5b7f04ddd91f000000000000000000000000000000000000000000000000000000008352600452602482fd5b807fe86fa0320000000000000000000000000000000000000000000000000000000060049252fd5b807f2c5211c60000000000000000000000000000000000000000000000000000000060049252fd5b50851515611017565b50346104f45760206003193601126104f4576113146142f3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460ff8160401c16801561147b575b611453577fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000001668010000000000000001177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00556001600160a01b03811615610cd2576113bf906113b2615d27565b6113ba615d27565b6155ad565b7fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054167ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a180f35b6004837ff92ee8a9000000000000000000000000000000000000000000000000000000008152fd5b50600167ffffffffffffffff82161015611344565b50346104f45760406003193601126104f4576001600160a01b0360406114b4614309565b92600435815260026020522091165f526020526040805f2060016effffffffffffffffffffffffffffff825460781c1691015460180b82519182526020820152f35b50346104f457611505366143cf565b92919061151236336147d5565b8254821015611574576001600160a01b0381161561154c57611543611549939461153c83856158f8565b36906146c9565b916151a7565b80f35b6004837fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b6004837fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f45761055460209160406115b3366142dd565b929081526001855220615805565b50346104f457806003193601126104f45760206001600160a01b037ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005416604051908152f35b50346104f457611616366143a5565b61162393929336336147d5565b838352600160205260408320938084526002602052604084206001600160a01b0333165f5260205260405f20908085526002602052604085206001600160a01b0384165f52602052600360405f2061167a88614a5e565b019378ffffffffffffffffffffffffffffffffffffffffffffffffff8554166b033b2e3c9fd0803ce8000000810615156b033b2e3c9fd0803ce800000082040182105f146118af57506b033b2e3c9fd0803ce80000008102906b033b2e3c9fd0803ce80000008204036118ab57600290925b019460ff865460e01c16156112a15782156112c95750611832816040976b033b2e3c9fd0803ce8000000850615156b033b2e3c9fd0803ce800000086040196611738610b738984615848565b98600183016effffffffffffffffffffffffffffff61175a8c8284541661463a565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff61178f8b8284541661463a565b166effffffffffffffffffffffffffffff198254161790556117b08661588a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff6117db60098501928284541661473a565b167fffffffffffffff0000000000000000000000000000000000000000000000000082541617905578ffffffffffffffffffffffffffffffffffffffffffffffffff6111a96118298861588a565b8284541661473a565b7fe97b8576ac531cdc817b933309d0518ca3d26c6b46d490f3ae9fa39426a141ee6001600160a01b0387519416938061188b33958983602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a46effffffffffffffffffffffffffffff8351921682526020820152f35b8580fd5b60029150926116ec565b50346104f45760206003193601126104f457610554604060209260043581526001845220614ee6565b50346104f457806003193601126104f457602060405160018152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff60016040602093600435815282855220015416604051908152f35b50346104f4576105546020916110916040611955366142dd565b939081526001865220614ee6565b50346104f45760406003193601126104f45760043560243567ffffffffffffffff8111611a4857611998903690600401614335565b6119a592919236336147d5565b8354821015611a5b578390828252600160205260408220936119c685614a5e565b6001600160a01b0360068601541691823b15611a5757611a19928492836040518096819582947fa467cc590000000000000000000000000000000000000000000000000000000084528b600485016145a3565b03925af18015611a4c57611a33575b505061154991614cb6565b81611a3d91614524565b611a4857825f611a28565b8280fd5b6040513d84823e3d90fd5b8380fd5b6004847fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f457611a92366143a5565b9092828152600160205260408120908381526002602052604081206001600160a01b0333165f5260205260405f2090611aca83614a5e565b306001600160a01b03851614611cd95785156112c957600282015460ff8160e01c1615610c825760ff8160e81c16611cb15764ffffffffff9060a01c16611b33611b296effffffffffffffffffffffffffffff85541661070f87614ee6565b61071b858761596b565b64ffffffffff8214908115611c4b575b5015611c1f576020610bad8888611bd2828a6001600160a01b0360058c6effffffffffffffffffffffffffffff610bcb868f8385541690611b878280851115614422565b84611b9d610b73611b9789614ee6565b86615b81565b9e8f6003890183611bb18382845416614455565b166effffffffffffffffffffffffffffff1982541617905582845416614455565b604080516effffffffffffffffffffffffffffff85168152602081019390935233927fe2497bc41b1fa7c4ba996f24dc2affdffb2a5571584db6db0eed8fbbf1dc85179181908101610c3e565b602492507f3ad30dd0000000000000000000000000000000000000000000000000000000008252600452fd5b9050611ca9611c6e89611c6860ff895460f01c16600a0a8661477e565b9361466a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff6003870154166b033b2e3c9fd0803ce800000080820615159104019061466a565b11155f611b43565b6004827f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b807fe6c4247b0000000000000000000000000000000000000000000000000000000060049252fd5b50346104f457611d10366143cf565b929190611d1d36336147d5565b8254821015611574578183526003602052611d53604084206001600160a01b038316906001915f520160205260405f2054151590565b15611d6757611543611549939436906146c9565b6004837faa1b05f0000000000000000000000000000000000000000000000000000000008152fd5b50346104f457806003193601126104f457602060405164ffffffffff8152f35b50346104f457806003193601126104f45760209054604051908152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff6040602092600435815260018452205416604051908152f35b50346104f45760406003193601126104f457610554602091600435906001600160a01b036040611e35614309565b9284815260018752818120948152600287522091165f5283526effffffffffffffffffffffffffffff600260405f2001541690615805565b50346104f457806003193601126104f4577ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005460a01c60ff1615611efa575060207f8fb36037000000000000000000000000000000000000000000000000000000005b7fffffffff0000000000000000000000000000000000000000000000000000000060405191168152f35b602090611ed0565b50346104f45760206003193601126104f457610554602091604060043591828152600185522090611f3282614ee6565b916156e9565b50346104f457611f47366143a5565b8284526001602052604084208385526002602052604085206001600160a01b0333165f5260205260405f208486526002602052604086206001600160a01b0384165f5260205260405f2090611f9b83614a5e565b600281015460ff8160e01c168061210f575b156120e75760e81c60ff1615806120d5575b156120ad578415612085576001600160a01b03939261200d86848994612008600261201298015464ffffffffff8160781c169064ffffffffff8214908115612043575b50615538565b61568e565b614cb6565b60405192835216917f0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a060203393a480f35b905061207d612077876effffffffffffffffffffffffffffff61207060ff8d5460f01c16600a0a8761477e565b941661466a565b8961564b565b11155f612002565b6004877f6edcc523000000000000000000000000000000000000000000000000000000008152fd5b6004877f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b5060ff600283015460e81c1615611fbf565b6004887fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b5060ff600284015460e01c16611fad565b50346104f45761212f366142dd565b8183526001602052604083209180845260016020526001600160a01b03600860408620015416928185526002602052604085206001600160a01b0385165f5260205260405f208286526002602052604086206001600160a01b0333165f5260205260405f2061219d83614a5e565b60ff600282015460e01c16156121f2578415612085579161200d8585936121c39561568e565b6040519182527f0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a060203393a480f35b6004877fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b50346104f4576105546020916040612231366142dd565b92908152600185522061564b565b50346104f45760206003193601126104f4576122596142f3565b6001600160a01b037ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00541633036122ce57803b1561229a57611549906155ad565b7fc2f31e5e0000000000000000000000000000000000000000000000000000000082526001600160a01b0316600452602490fd5b6024827f068ca9d800000000000000000000000000000000000000000000000000000000815233600452fd5b50346104f457612309366142dd565b9190808252600160205260408220908083526002602052604083206001600160a01b0333165f5260205260405f2061234083614a5e565b84156126095760020191825460ff8160e01c16156125e15760ff8160e81c166125b9578064ffffffffff6123889260781c169064ffffffffff82149081156125845750615538565b6123a4856effffffffffffffffffffffffffffff83541661466a565b602460206001600160a01b03600585015416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa8015612579578690612541575b612406915082818103911015614677565b612413610b73878461556b565b936effffffffffffffffffffffffffffff85169586156125195750956124e284846effffffffffffffffffffffffffffff6124c561250e9660209c8b8461248260017fb233dd05ed21346e144167b35a6213bcf04768dbdffdc8339e8b027b94b9f3059d019282845416614455565b166effffffffffffffffffffffffffffff19825416179055836124a88d82845416614455565b166effffffffffffffffffffffffffffff19825416179055614ddc565b166effffffffffffffffffffffffffffff19825416178155614cb6565b604051918291339683602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a3604051908152f35b807f6edcc5230000000000000000000000000000000000000000000000000000000060049252fd5b506020813d602011612571575b8161255b60209383614524565b8101031261256d5761240690516123f5565b5f80fd5b3d915061254e565b6040513d88823e3d90fd5b905061207d886111136effffffffffffffffffffffffffffff6125b160ff895460f01c16600a0a8761477e565b94168761564b565b6004857f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b6004857fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004847f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff6003604060209360043581526001855220015416604051908152f35b50346104f45761267e366142dd565b9082548110156115745780835260016020526040832061269d81614a5e565b6126a8833383614d6f565b60246126c6846effffffffffffffffffffffffffffff84541661466a565b9160206001600160a01b03600583015416604051938480927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa80156125795784928791612804575b5061274084610b7383826effffffffffffffffffffffffffffff956127d59903911015614677565b166effffffffffffffffffffffffffffff1982541617815561200d61276486614ddc565b61278760018401916effffffffffffffffffffffffffffff835460781c1661463a565b7fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b6040519182527f566111831db1f090374baff3c3f9fc512084f5a9b8f5b199fb475d9c43a8013f60203393a380f35b9250506020823d602011612835575b8161282060209383614524565b8101031261256d579051839190612740612718565b3d9150612813565b50346104f45760406003193601126104f4576001600160a01b036040612861614309565b92600435815260026020522091165f5260205260206effffffffffffffffffffffffffffff60405f205416604051908152f35b50346104f45761055460209161070f6040611955366142dd565b50346104f45760206003193601126104f45760406020916004358152600383522054604051908152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff60016040602093600435815282855220015460781c16604051908152f35b50346104f45760206003193601126104f45761055461297f60406020936004358152600185522061297a6129756effffffffffffffffffffffffffffff600384015460781c1661296f600285015460180b94614ee6565b9061477e565b615c9d565b615520565b615cf2565b50346104f45760406003193601126104f457604090600435906001600160a01b03836129ae614309565b92848152600160205281812094815260026020522091165f526020526129ef825f206107156effffffffffffffffffffffffffffff82541661070f85614ee6565b82519182526b033b2e3c9fd0803ce800000080820615159104016020820152f35b50346104f457612a1f366142dd565b9082526001602052612a3360408320614ee6565b91825f1904821115831517156104f457506b033b2e3c9fd0803ce80000006020926040519202048152f35b50346104f45760206003193601126104f45760408091600435815260016020522060026effffffffffffffffffffffffffffff600383015460781c1691015460180b82519182526020820152f35b50346104f45760806003193601126104f45760043560607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112612deb57808252600160205260408220908083526002602052604083206001600160a01b0333165f5260205260405f2091612b2181614a5e565b600283019260ff845460e01c16156125e1576064359384612dc35762ffffff90612ce36effffffffffffffffffffffffffffff600486015416612c22600387016effffffffffffffffffffffffffffff815460781c1690612b8e602460028b0193845460180b9087615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000084929454169078ffffffffffffffffffffffffffffffffffffffffffffffffff16179055907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b612c4e60246effffffffffffffffffffffffffffff875460781c16926001880193845460180b91615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000083929354169078ffffffffffffffffffffffffffffffffffffffffffffffffff1617905584907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b5460c81c1662ffffff8114918215612d6e575b505015612d465781612d0791614cb6565b604051916024358352604435602084015260408301527f3fa96ecf17429fddfbb919a64196f4e43f71b57f0c5c38c49a21c8e1e763d18c60603393a380f35b6004847fa664e075000000000000000000000000000000000000000000000000000000008152fd5b5491506effffffffffffffffffffffffffffff82169080155f198290048311151715612dbf576effffffffffffffffffffffffffffff910261271080820615159104019160781c1611155f80612cf6565b8680fd5b6004867fa664e075000000000000000000000000000000000000000000000000000000008152fd5b5080fd5b50346104f457806003193601126104f457602060405162ffffff8152f35b50346104f457612e1c36614363565b91808452600160205260408420938181526002602052604081206001600160a01b0333165f5260205260405f2092612e5386614a5e565b6040850135811580159061317c575b1561315457600285015460ff8160e01c161561312c5760e81c60ff1661310457612ea16effffffffffffffffffffffffffffff86541661070f89614ee6565b612eab868961596b565b908084116130d957508082116130ae5750612f4a86612ed5610b73612ecf8b614ee6565b86615bba565b9660038a016effffffffffffffffffffffffffffff612ef78a8284541661463a565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff612f2c898284541661463a565b166effffffffffffffffffffffffffffff1982541617815589615376565b6b033b2e3c9fd0803ce8000000808206151591040191612f8083611113846effffffffffffffffffffffffffffff8b541661466a565b90602460206001600160a01b0360058b015416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa9182156130a2579161306f575b506020976effffffffffffffffffffffffffffff6124c584610b7385828b97612ffe9903911015614677565b6130376effffffffffffffffffffffffffffff604051951695868652878601906040809180358452602081013560208501520135910152565b608084015260a08301527f119e7f996dc987b3ae79eb3735f1620c4292f6a7761a1e0f834c445f7798b91260c03393a3604051908152f35b90506020813d60201161309a575b8161308a60209383614524565b8101031261256d57516020612fd2565b3d915061307d565b604051903d90823e3d90fd5b7fdc868246000000000000000000000000000000000000000000000000000000008452600452602483fd5b7f4bd9e476000000000000000000000000000000000000000000000000000000008552600452602484fd5b6004837f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b6004847fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004837f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b50801515612e62565b50346104f45760c06003193601126104f45760043560807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112612deb5760a43567ffffffffffffffff8111611a48576131e4903690600401614335565b6131ee36336147d5565b8354831015611a5b578284526001602052604084209161320d83614a5e565b61271061ffff61321b6145bd565b1611613629576001600160a01b036132316145ce565b16151580613610575b156135e8576001600160a01b0361324f6145fa565b16158015906135c8575b156135a05784906132be61326b6145bd565b60038601907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fffff00000000000000000000000000000000000000000000000000000000000083549260f01b169116179055565b6132c66145fa565b6001600160a01b036007860191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055600884016001600160a01b038154166001600160a01b0361331a6145ce565b1681036134d2575b505061332c6145e4565b60068501805490916001600160a01b03908116911614613499576001600160a01b036133566145e4565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556001600160a01b0361338e6145e4565b1692833b15611a48576133d4938392836040518097819582947fa467cc590000000000000000000000000000000000000000000000000000000084528c600485016145a3565b03925af191821561348c578492613473575b50506133f191614cb6565b6040516001600160a01b03613404614309565b16815260443561ffff8116809103611a575760208201526001600160a01b0361342b61431f565b1660408201526084356001600160a01b038116809103611a57578160809160607fea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b974940152a280f35b8192509061348091614524565b611a485781835f6133e6565b50604051903d90823e3d90fd5b5050506134aa57816133f191614cb6565b6004837f38ad7932000000000000000000000000000000000000000000000000000000008152fd5b613550906134e08888614b1f565b506134e9614610565b908886526002602052604086206001600160a01b0382165f5260205260ff600260405f20015460e01c16151560608301528886526002602052604086206001600160a01b0382165f5260205260ff600260405f20015460e81c1615156080830152886151a7565b6001600160a01b036135606145ce565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556135996135936145ce565b8661507e565b5f80613322565b6004857f91eaafa1000000000000000000000000000000000000000000000000000000008152fd5b506effffffffffffffffffffffffffffff600184015460781c1615613259565b6004857fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b506001600160a01b036136216145e4565b16151561323a565b6004857fe15e46cb000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f4576105546040602092600435815260018452206150cc565b50346104f4576105546020916136946040611955366142dd565b90615b81565b50346104f45760406003193601126104f4576001600160a01b0360406136be614309565b92600435815260026020522091165f52602052602078ffffffffffffffffffffffffffffffffffffffffffffffffff600360405f20015416604051908152f35b503461256d5760a060031936011261256d576137186142f3565b60243560ff811680910361256d57604435926001600160a01b038416840361256d5761374261431f565b9260843567ffffffffffffffff811161256d57613763903690600401614335565b61377096919636336147d5565b6001600160a01b0383169283151580613fec575b80613fda575b15613fb257856006111580613fa7575b15613f7f576137d5906001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b613f57575f54955f198714613f2a576001600160a01b0390600188015f55845f5260046020528760405f20551696873b1561256d57613845915f9160405193849283927fa467cc590000000000000000000000000000000000000000000000000000000084528b600485016145a3565b0381838b5af18015613f1f57613f0a575b50604051957ff5fe86ee00000000000000000000000000000000000000000000000000000000875285600488015283602488015283604488015283606488015283608488015260208760a481845afa928315613eff5786978594613ec4575b5090869291836b033b2e3c9fd0803ce800000097426138d390614fe4565b6138dc8861502a565b90604051916138ea83614485565b8a83528a60208401528360408401528a60608401528a60808401528a60a08401528a60c08401528a60e08401528a6101008401528b6101208401526bffffffffffffffffffffffff1661014083015264ffffffffff1661016082015283610180820152846101a0820152886101c08201526001600160a01b0386166101e0820152886102008201528289526001602052604089209080516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1682546effffffffffffffffffffffffffffff191617825560208101516effffffffffffffffffffffffffffff16613a249083907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b604081015182549060f01b7eff00000000000000000000000000000000000000000000000000000000000016907fff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff161782556001820160608201516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1681546effffffffffffffffffffffffffffff191617815560808201516effffffffffffffffffffffffffffff16613b2191907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b60a081015160180b600283019081547fffffffffffffff00000000000000000000000000000000000000000000000000169078ffffffffffffffffffffffffffffffffffffffffffffffffff161790556003820160c08201516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1681546effffffffffffffffffffffffffffff191617815560e08201516effffffffffffffffffffffffffffff16613c1d9082907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b61010082015181547fffff00000000000000000000000000000000000000000000000000000000000060f09290921b919091167dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90911617905561012081015161014082015161016083015160d81b7fffffffffff000000000000000000000000000000000000000000000000000000166effffffffffffffffffffffffffffff90921660789190911b7affffffffffffffffffffffff00000000000000000000000000000016171760048301556101808101516005830180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b03938416179091556101a083015160068501805483169184169190911790556101c083015160078501805483169184169190911790556101e083015160088501805490921692169190911790556102000151600990910180547fffffffffffffff000000000000000000000000000000000000000000000000001678ffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055613dc8858361507e565b60405190815260207f92fb402b777f3710166f15b30098f41042b439850df67d0195196d125458e7b391a360405191613e00836144cf565b6001600160a01b031682528460208301526040820152836060820152604051613e6081928291909160606001600160a01b0381608084019582815116855261ffff6020820151166020860152826040820151166040860152015116910152565b037fea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b97491a26040519283526020830152604082015260607fa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f1488335091a2604051908152602090f35b9291965092506020823d602011613ef7575b81613ee360209383614524565b8101031261256d57905186959092866138b5565b3d9150613ed6565b6040513d86823e3d90fd5b613f179193505f90614524565b5f915f613856565b6040513d5f823e3d90fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b7f603c058b000000000000000000000000000000000000000000000000000000005f5260045ffd5b7fe2364765000000000000000000000000000000000000000000000000000000005f5260045ffd5b50601286111561379a565b7fe6c4247b000000000000000000000000000000000000000000000000000000005f5260045ffd5b506001600160a01b038716151561378a565b506001600160a01b0383161515613784565b3461256d57604060031936011261256d57602061404761401c614309565b6004355f52600383526001600160a01b0360405f209116906001915f520160205260405f2054151590565b6040519015158152f35b3461256d57602060031936011261256d576004355f5260016020526040805f206140a261407d82614ee6565b61409c816effffffffffffffffffffffffffffff600386015416615b17565b92614f97565b82519182526020820152f35b3461256d5760206001600160a01b036140d96140c9366142dd565b905f526003845260405f20615b3f565b90549060031b1c16604051908152f35b3461256d57602060031936011261256d5760206140476141076142f3565b6001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b3461256d57602060031936011261256d576004355f526001602052602061055460405f2061069c61407d82614ee6565b3461256d57614177366142dd565b905f5481101561426357805f5260016020526142358260405f2061419a81614a5e565b6141a5823383614d6f565b6effffffffffffffffffffffffffffff6141d083828454166141ca8180841115614422565b03614ddc565b166effffffffffffffffffffffffffffff198254161781556142176141f483614ddc565b61278760018401916effffffffffffffffffffffffffffff835460781c16614455565b6142218482614cb6565b6001600160a01b0360053392015416614e36565b6040519182527f69bb3893073d7a893f3933f3871309fc25acfc72e365b71f554d439a85b20e8b60203393a3005b7fb77e1e0f000000000000000000000000000000000000000000000000000000005f5260045ffd5b3461256d57602060031936011261256d576004356142a936336147d5565b5f5481101561426357806020915f526001825261055460405f20916142cd83614a5e565b6142d78184614b1f565b92614cb6565b600319604091011261256d576004359060243590565b600435906001600160a01b038216820361256d57565b602435906001600160a01b038216820361256d57565b606435906001600160a01b038216820361256d57565b9181601f8401121561256d5782359167ffffffffffffffff831161256d576020838186019501011161256d57565b60a060031982011261256d576004359160607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc60243593011261256d57604490565b600319606091011261256d5760043590602435906044356001600160a01b038116810361256d5790565b60e060031982011261256d57600435916024356001600160a01b038116810361256d577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc60a09193011261256d57604490565b1561442a5750565b7fc730333f000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b906effffffffffffffffffffffffffffff809116911601906effffffffffffffffffffffffffffff8211613f2a57565b610220810190811067ffffffffffffffff8211176144a257604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6080810190811067ffffffffffffffff8211176144a257604052565b60a0810190811067ffffffffffffffff8211176144a257604052565b610140810190811067ffffffffffffffff8211176144a257604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176144a257604052565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe093818652868601375f8582860101520116010190565b6040906145ba949281528160208201520191614565565b90565b60443561ffff8116810361256d5790565b6024356001600160a01b038116810361256d5790565b6064356001600160a01b038116810361256d5790565b6084356001600160a01b038116810361256d5790565b6040519061461d826144eb565b5f6080838281528260208201528260408201528260608201520152565b906effffffffffffffffffffffffffffff809116911603906effffffffffffffffffffffffffffff8211613f2a57565b91908201809211613f2a57565b1561467f5750565b7f80561eeb000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b359064ffffffffff8216820361256d57565b3590811515820361256d57565b91908260a091031261256d576040516146e1816144eb565b80926146ec816146aa565b82526146fa602082016146aa565b602083015260408101359062ffffff8216820361256d576080614735918193604086015261472a606082016146bc565b6060860152016146bc565b910152565b9078ffffffffffffffffffffffffffffffffffffffffffffffffff8091169116039078ffffffffffffffffffffffffffffffffffffffffffffffffff8211613f2a57565b81810292918115918404141715613f2a57565b9078ffffffffffffffffffffffffffffffffffffffffffffffffff8091169116019078ffffffffffffffffffffffffffffffffffffffffffffffffff8211613f2a57565b7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0054916001600160a01b038316928160041161256d575f5f9060405f8151966001600160a01b0360208901917fb700961300000000000000000000000000000000000000000000000000000000835216978860248201523060448201527fffffffff0000000000000000000000000000000000000000000000000000000083351660648201526064815261488a608482614524565b828052826020525190895afa614a4b575b156148a8575b5050505050565b63ffffffff1615614a1f577fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000177ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0055823b1561256d576020925f92836040518096819582947f94c7d7ee0000000000000000000000000000000000000000000000000000000084526004840152604060248401527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6044850192808452808786860137868582860101520116010103925af18015613f1f57614a0f575b507fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0054167ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00555f808080806148a1565b5f614a1991614524565b5f61499e565b827f068ca9d8000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b50505f516020518060201c15029061489b565b60048101805460d81c4214614b1b576effffffffffffffffffffffffffffff614aad83610b73614a90614b1996614ee6565b91612787614aa1610b7385846159a0565b86835460781c16614455565b166effffffffffffffffffffffffffffff19825416178155614ace42614fe4565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff7fffffffffff00000000000000000000000000000000000000000000000000000083549260d81b169116179055565b565b5050565b6effffffffffffffffffffffffffffff815460781c1691614b43610b73848461556b565b916effffffffffffffffffffffffffffff8316938415614cad576001600160a01b0360088301541693835f52600260205260405f206001600160a01b0386165f52602052600260405f20019260ff845460e01c1615614c85577fafd21228e21de4a3f779e1cc3617e12672c3da091dcf3812a931036aa0bf633c93600182016effffffffffffffffffffffffffffff614bdf8582845416614455565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff614c148482845416614455565b166effffffffffffffffffffffffffffff198254161790557fffff000000000000000000000000000000ffffffffffffffffffffffffffffff8154169055614c7f60405192839283602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a390565b7fe86fa032000000000000000000000000000000000000000000000000000000005f5260045ffd5b50505050505f90565b60607fa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f1488335091600481016effffffffffffffffffffffffffffff8082541692614d56614d018589846156e9565b93614d0b8561502a565b7fffffffffff000000000000000000000000ffffffffffffffffffffffffffffff7affffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b5460781c169060405192835260208301526040820152a2565b6001600160a01b0360078192015416911603614db45715614d8c57565b7f2c5211c6000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f3c6b7746000000000000000000000000000000000000000000000000000000005f5260045ffd5b6effffffffffffffffffffffffffffff8111614e06576effffffffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52607860045260245260445ffd5b916001600160a01b03604051927fa9059cbb000000000000000000000000000000000000000000000000000000005f521660045260245260205f60448180865af19060015f5114821615614ec5575b60405215614e905750565b6001600160a01b03907f5274afe7000000000000000000000000000000000000000000000000000000005f521660045260245ffd5b906001811516614edd57823b15153d15161690614e85565b503d5f823e3d90fd5b60048101546effffffffffffffffffffffffffffff8116908060d81c92428414908115614f54575b50614f4e5742831161256d576301e133806b033b2e3c9fd0803ce8000000916bffffffffffffffffffffffff6145ba9542039160781c1602040190615b17565b50905090565b600301546effffffffffffffffffffffffffffff811615915081614f7a575b505f614f0e565b6effffffffffffffffffffffffffffff915060781c16155f614f73565b61297f9061297a612975614fcc9460026effffffffffffffffffffffffffffff600386015460781c1694015460180b9361477e565b6b033b2e3c9fd0803ce8000000808206151591040190565b64ffffffffff8111614ffa5764ffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52602860045260245260445ffd5b6bffffffffffffffffffffffff811161504e576bffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52606060045260245260445ffd5b614b199161508c81836158f8565b60405191615099836144eb565b64ffffffffff83525f60208401525f6040840152600160608401525f60808401526151a7565b91908203918211613f2a57565b6145ba906151a16150dc82614ee6565b61519b615147846111136003820154611113866effffffffffffffffffffffffffffff61514061297f78ffffffffffffffffffffffffffffffffffffffffffffffffff600960028a015460180b990154169761297a61297586868a60781c1661477e565b931661477e565b6effffffffffffffffffffffffffffff615190865492826151738160018b015460781c16828716614455565b916b033b2e3c9fd0803ce80000008082061515910401911661466a565b9160781c16906150bf565b926159a0565b906150bf565b906001600160a01b037f90984699e37aaae5f79c2f33e480f273509662005a8ff82a17b325eb7072454e91835f52600260205260405f208282165f5260205260405f2060028651910190867cff0000000000000000000000000000000000000000000000000000000083547fffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff78ffffffffff0000000000000000000000000000000000000000602085015160a01b167fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff7bffffff00000000000000000000000000000000000000000000000000604087015160c81b16937fffffffff00000000000000000000000000ffffffffffffffffffffffffffffff73ffffffffff0000000000000000000000000000007dff0000000000000000000000000000000000000000000000000000000000608060608b0151151560e01b9a0151151560e81b169960781b169116171617161791161717905561537160405192839216958291909160808060a083019464ffffffffff815116845264ffffffffff602082015116602085015262ffffff604082015116604085015260608101511515606085015201511515910152565b0390a3565b6153ee61548392936153c76effffffffffffffffffffffffffffff6004850154169360038101612b8e8460026effffffffffffffffffffffffffffff845460781c16940193845460180b9089615beb565b6effffffffffffffffffffffffffffff855460781c16926001860193845460180b91615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000083929354169078ffffffffffffffffffffffffffffffffffffffffffffffffff1617905582907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b62ffffff600282015460c81c1662ffffff81149182156154cf575b5050156154a757565b7fa664e075000000000000000000000000000000000000000000000000000000005f5260045ffd5b5491506effffffffffffffffffffffffffffff82169080155f19829004831115171561256d576effffffffffffffffffffffffffffff910261271080820615159104019160781c1611155f8061549e565b81810392915f138015828513169184121617613f2a57565b156155405750565b7fde3fc6ae000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b6effffffffffffffffffffffffffffff6001615586836150cc565b92015416620f42408101809111613f2a57620f42408201809211613f2a576145ba92615e75565b60206001600160a01b037f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9216807fffffffffffffffffffffffff00000000000000000000000000000000000000007ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005416177ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0055604051908152a1565b6effffffffffffffffffffffffffffff6001615666836150cc565b9201541690620f42408101809111613f2a57620f42408201809211613f2a576145ba92615dc3565b60026156c36effffffffffffffffffffffffffffff93946156cf93856124a8856156b785614ddc565b9301928284541661463a565b93019282845416614455565b166effffffffffffffffffffffffffffff19825416179055565b9160a46020926001600160a01b0360068601541661572f6effffffffffffffffffffffffffffff875416946effffffffffffffffffffffffffffff600389015416615b17565b956effffffffffffffffffffffffffffff600178ffffffffffffffffffffffffffffffffffffffffffffffffff60098401541692015460781c169060405197889687957ff5fe86ee0000000000000000000000000000000000000000000000000000000087526004870152602486015260448501526b033b2e3c9fd0803ce80000008082061515910401606484015260848301525afa908115613f1f575f916157d6575090565b90506020813d6020116157fd575b816157f160209383614524565b8101031261256d575190565b3d91506157e4565b6effffffffffffffffffffffffffffff6001615820836150cc565b9201541690620f42408101809111613f2a57620f42408201809211613f2a576145ba92615e75565b6effffffffffffffffffffffffffffff6001615863836150cc565b92015416620f42408101809111613f2a57620f42408201809211613f2a576145ba92615dc3565b78ffffffffffffffffffffffffffffffffffffffffffffffffff81116158c85778ffffffffffffffffffffffffffffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f5260c860045260245260445ffd5b805f5260036020526159186001600160a01b0360405f2093168093615e10565b15615943577f47acdb603dbca71028fbd9b37192e17a62e64fa160e2e607eef3853b792ea5ab5f80a3565b7f04c94583000000000000000000000000000000000000000000000000000000005f5260045ffd5b61297f9061297a6129756145ba9461296f60016effffffffffffffffffffffffffffff835460781c1692015460180b94614ee6565b906effffffffffffffffffffffffffffff60048301541690808214615b10576003830154928360f01c938415614cad5783916effffffffffffffffffffffffffffff82169160781c6effffffffffffffffffffffffffffff16600282015460180b916009015478ffffffffffffffffffffffffffffffffffffffffffffffffff168583615a2e83988561477e565b615a3790615c9d565b90615a4191615520565b615a4a90615cf2565b90615a55908661477e565b90615a5f9161466a565b90615a699161466a565b95615a739161477e565b615a7c90615c9d565b90615a8691615520565b615a8f90615cf2565b91615a999161477e565b90615aa39161466a565b90615aad9161466a565b6b033b2e3c9fd0803ce800000081061515906b033b2e3c9fd0803ce8000000900401906b033b2e3c9fd0803ce800000081061515906b033b2e3c9fd0803ce800000090040190615afc916150bf565b90805f1904821161256d5761271091020490565b5050505f90565b815f19048111158215171561256d57026b033b2e3c9fd0803ce8000000808206151591040190565b8054821015615b54575f5260205f2001905f90565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b744f3a68dbc8f03f243baf513267aa9a3ee524f8e028811182151761256d576b033b2e3c9fd0803ce80000000290808206151591040190565b744f3a68dbc8f03f243baf513267aa9a3ee524f8e028811182151761256d576b033b2e3c9fd0803ce8000000020490565b93929193615c0f615c0661297f8761297a612975868861477e565b92843590615d7e565b926020810135955f8782019788129112908015821691151617613f2a576040615c4561297f8861297a612975615c4e978a61477e565b9101359061466a565b036154a757615c5c90614ddc565b8260180b92808403615c6d57509190565b7f327269a7000000000000000000000000000000000000000000000000000000005f5260c860045260245260445ffd5b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8111615cc75790565b7f24775e06000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b5f8112615cfc5790565b7fa8ce4432000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c1615615d5657565b7fd7e6bcf8000000000000000000000000000000000000000000000000000000005f5260045ffd5b5f821215615db9577f80000000000000000000000000000000000000000000000000000000000000008214613f2a576145ba915f03906150bf565b906145ba9161466a565b91615dcf818385615e75565b918115615de3576145ba930915159061466a565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f828152600182016020526040902054615e6f57805490680100000000000000008210156144a257615e49826001809401835582615b3f565b81549060031b905f1986831b921b19161790558054925f520160205260405f2055600190565b50505f90565b90915f198383099280830292838086109503948086039514615f065784831115615eee5790829109815f0382168092046002816003021880820260020302808202600203028082026002030280820260020302808202600203028091026002030293600183805f03040190848311900302920304170290565b82634e487b715f52156003026011186020526024601cfd5b505080925015615de357049056fea164736f6c634300081c000af0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00","sourceMap":"201:550:21:-:0;;;;;;;-1:-1:-1;;;;;;;;;;;201:550:21;;;;;;7534:66:2;;-1:-1:-1;;;;;;;;;;;201:550:21;;7609:34:2;7605:130;;-1:-1:-1;201:550:21;;;;;;;;;7605:130:2;-1:-1:-1;;;;;;201:550:21;-1:-1:-1;;;;;201:550:21;;;-1:-1:-1;;;;;;;;;;;201:550:21;;;7699:29:2;;201:550:21;;7699:29:2;7605:130;;;;7534:66;7570:23;;;-1:-1:-1;7570:23:2;;-1:-1:-1;7570:23:2;201:550:21;;;","linkReferences":{}},"deployedBytecode":{"object":"60806040526004361015610011575f80fd5b5f5f3560e01c8063033a06951461428b578063066dd830146141695780630752c44c146141395780630c90e7fe146140e9578063132a8bea146140ae578063152ee0d3146140515780631901057d14613ffe5780631e83287e146136fe57806321a3bebc1461369a578063228e731f1461367a57806324ba667f1461365157806324e4c1af146131855780632a5b380314612e0d5780633369706614612def578063341f7dcf14612aac5780633992163714612a5e5780633a445c4e14612a105780633c9a9ee514612984578063403d77781461291857806341a009eb146128d857806358a54078146128ae5780635e39616d146128945780635ff1c4821461283d5780637333a3b41461266f5780637658c64414612631578063771602f7146122fa5780637a9e5e4b1461223f57806380c099f41461221a57806383e4bcb71461212057806387a7dc7714611f385780638accc4a314611f025780638fb3603714611e6d5780639c7ee64f14611e075780639f9b199014611dcc578063a0aead4d14611daf578063a0b3d9d814611d8f578063a2763d2914611d01578063a436458d14611a83578063a467cc5914611963578063aab9eb071461193b578063b0745f2b146118fe578063b33454e5146118e2578063b5f460c8146118b9578063be10528014611607578063bf7e214f146115c1578063c04d164e1461159c578063c25d82fe146114f6578063c435e92814611490578063c4d66de8146112fa578063cc0e1c1c14610fc0578063ceb233b314610f9b578063d3c6a11d14610f4a578063d5d15a1114610f02578063d6abe64214610e66578063de079b5714610e23578063de31ea9f14610d54578063e5c9274514610cfa578063e840427d14610aaf578063eac8f5b814610736578063efdba7c0146106a2578063f51f1a351461064f578063f701f06e1461055c578063f8447aaf1461052f578063f899860514610513578063f91ebd52146104f75763fce56a0b146102f0575f80fd5b346104f45760406003193601126104f457610309614309565b908060405161031781614507565b8181528160208201528160408201528160608201528160808201528160a08201528160c08201528160e08201528161010082015261012001526004358152600260205260409020906001600160a01b03165f5260205260405f2060405161037d81614507565b81546effffffffffffffffffffffffffffff811692838352602083019160781c6effffffffffffffffffffffffffffff168252600181015460180b9160408401928352600282015492606085016effffffffffffffffffffffffffffff8516815260808601908560781c64ffffffffff16825260a08701928660a01c64ffffffffff16845260c08801948760c81c62ffffff16865260e08901968860e01c60ff16151588526101008a019860e81c60ff16151589526003015478ffffffffffffffffffffffffffffffffffffffffffffffffff169861012001988952604051998a52516effffffffffffffffffffffffffffff1660208a01525160180b6040890152516effffffffffffffffffffffffffffff1660608801525164ffffffffff1660808701525164ffffffffff1660a08601525162ffffff1660c085015251151560e08401525115156101008301525178ffffffffffffffffffffffffffffffffffffffffffffffffff1661012082015261014090f35b80fd5b50346104f457806003193601126104f457602060405160068152f35b50346104f457806003193601126104f457602060405160128152f35b50346104f4576105546020916040610546366142dd565b929081526001855220615848565b604051908152f35b50346104f45760406003193601126104f4576001600160a01b036040610580614309565b92610589614610565b50600435815260026020522091165f5260205261064b600260405f20015460ff604051916105b6836144eb565b64ffffffffff8160781c16835264ffffffffff8160a01c16602084015262ffffff8160c81c166040840152818160e01c161515606084015260e81c16151560808201526040519182918291909160808060a083019464ffffffffff815116845264ffffffffff602082015116602085015262ffffff604082015116604085015260608101511515606085015201511515910152565b0390f35b50346104f45760206003193601126104f45761055460406020926004358152600184522061069c6effffffffffffffffffffffffffffff825460781c169161069681614ee6565b906159a0565b9061466a565b50346104f45760406003193601126104f457610554602091600435906001600160a01b0360406106d0614309565b9284815260018752818120948152600287522091165f52835261071b60405f206107156effffffffffffffffffffffffffffff82541661070f85614ee6565b90615b17565b9261596b565b6b033b2e3c9fd0803ce800000080820615159104019061466a565b50346104f45760206003193601126104f45760408161022092610200835161075d81614485565b82815282602082015282858201528260608201528260808201528260a08201528260c08201528260e08201528261010082015282610120820152826101408201528261016082015282610180820152826101a0820152826101c0820152826101e08201520152600435815260016020522078ffffffffffffffffffffffffffffffffffffffffffffffffff6102006040516107f781614485565b8260098554956effffffffffffffffffffffffffffff871684526effffffffffffffffffffffffffffff8760781c16602085015260ff8760f01c1660408501526effffffffffffffffffffffffffffff6001820154818116606087015260781c166080850152600281015460180b60a085015260038101546effffffffffffffffffffffffffffff811660c08601526effffffffffffffffffffffffffffff8160781c1660e086015260f01c61010085015260048101546effffffffffffffffffffffffffffff81166101208601526bffffffffffffffffffffffff8160781c1661014086015260d81c6101608501526001600160a01b036005820154166101808501526001600160a01b036006820154166101a08501526001600160a01b036007820154166101c08501526001600160a01b036008820154166101e0850152015416828201526effffffffffffffffffffffffffffff604051941684526effffffffffffffffffffffffffffff602082015116602085015260ff60408201511660408501526effffffffffffffffffffffffffffff60608201511660608501526effffffffffffffffffffffffffffff608082015116608085015260a081015160180b60a08501526effffffffffffffffffffffffffffff60c08201511660c08501526effffffffffffffffffffffffffffff60e08201511660e085015261ffff610100820151166101008501526effffffffffffffffffffffffffffff610120820151166101208501526bffffffffffffffffffffffff6101408201511661014085015264ffffffffff610160820151166101608501526001600160a01b03610180820151166101808501526001600160a01b036101a0820151166101a08501526001600160a01b036101c0820151166101c08501526001600160a01b036101e0820151166101e0850152015116610200820152f35b50346104f457610abe366143a5565b9092828152600160205260408120908381526002602052604081206001600160a01b0333165f5260205260405f20610af583614a5e565b306001600160a01b03851614610cd2578515610caa5760020190815460ff8160e01c1615610c825760e81c60ff16610c5a576020610bad8787610bf582896001600160a01b0360058b6effffffffffffffffffffffffffffff610bcb868e8385541690610b658280851115614422565b84610b78610b738589615848565b614ddc565b9e8f6001890183610b8c838284541661463a565b166effffffffffffffffffffffffffffff198254161790558284541661463a565b166effffffffffffffffffffffffffffff1982541617905503614ddc565b166effffffffffffffffffffffffffffff19825416178155610bed8782614cb6565b015416614e36565b604080516effffffffffffffffffffffffffffff85168152602081019390935233927f535be2ff85ab4c5d0991e10dc057a4951ea2bac426ffb036eded23036a3942b291819081015b0390a36effffffffffffffffffffffffffffff60405191168152f35b807f9db9b3550000000000000000000000000000000000000000000000000000000060049252fd5b6004827fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004827f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b6004827fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760406003193601126104f4576001600160a01b036040610d1e614309565b92600435815260026020522091165f5260205260206effffffffffffffffffffffffffffff600260405f20015416604051908152f35b50346104f45760206003193601126104f45760408161064b9260608351610d7a816144cf565b8281528260208201528285820152015260043581526001602052206001600160a01b0360088201541690600381015460f01c906001600160a01b03600781600684015416920154169160405193610dd0856144cf565b84526020840152604083015260608201526040519182918291909160606001600160a01b0381608084019582815116855261ffff6020820151166020860152826040820151166040860152015116910152565b50346104f45760206003193601126104f45760408091600435815260016020522060ff6001600160a01b03600583015416915460f01c1682519182526020820152f35b50346104f45760206003193601126104f457610e806142f3565b610eb6816001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b15610eda576020916001600160a01b03604092168152600483522054604051908152f35b6004827fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f45778ffffffffffffffffffffffffffffffffffffffffffffffffff6009604060209360043581526001855220015416604051908152f35b50346104f45760406003193601126104f457610554602091600435906001600160a01b036040610f78614309565b9284815260018752818120948152600287522091165f52835260405f209061596b565b50346104f4576105546020916040610fb2366142dd565b92908152600185522061556b565b50346104f457610fcf36614363565b8284939452600160205260408320938084526002602052604084206001600160a01b0333165f5260205260405f209261100786614a5e565b60408301359481158015906112f1575b156112c95760ff600286015460e01c16156112a15761104b6effffffffffffffffffffffffffffff86541661070f89614ee6565b611055868961596b565b90808411611276575080871161124a57505081866111186effffffffffffffffffffffffffffff611097610b736111d69661109160409d614ee6565b90615bba565b60038401826110a9838284541661463a565b166effffffffffffffffffffffffffffff19825416179055816110cf82828c541661463a565b166effffffffffffffffffffffffffffff198a54161789556110f2888a86615376565b16976111136effffffffffffffffffffffffffffff6004850154168a61477e565b61466a565b956111228761588a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff61114d600985019282845416614791565b167fffffffffffffff0000000000000000000000000000000000000000000000000082541617905578ffffffffffffffffffffffffffffffffffffffffffffffffff6111a9600361119d8a61588a565b93019282845416614791565b167fffffffffffffff00000000000000000000000000000000000000000000000000825416179055614cb6565b6111fd85519285845260208401906040809180358452602081013560208501520135910152565b8260808301527f4845ee5c72bde2b62defc8a1ca2f0fc3313b2d9e799997ce4f6776da9773bcbf60a03393a382519182526b033b2e3c9fd0803ce800000080820615159104016020820152f35b602492507f37f3f9b7000000000000000000000000000000000000000000000000000000008252600452fd5b7f04ddd91f000000000000000000000000000000000000000000000000000000008352600452602482fd5b807fe86fa0320000000000000000000000000000000000000000000000000000000060049252fd5b807f2c5211c60000000000000000000000000000000000000000000000000000000060049252fd5b50851515611017565b50346104f45760206003193601126104f4576113146142f3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460ff8160401c16801561147b575b611453577fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000001668010000000000000001177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00556001600160a01b03811615610cd2576113bf906113b2615d27565b6113ba615d27565b6155ad565b7fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054167ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a180f35b6004837ff92ee8a9000000000000000000000000000000000000000000000000000000008152fd5b50600167ffffffffffffffff82161015611344565b50346104f45760406003193601126104f4576001600160a01b0360406114b4614309565b92600435815260026020522091165f526020526040805f2060016effffffffffffffffffffffffffffff825460781c1691015460180b82519182526020820152f35b50346104f457611505366143cf565b92919061151236336147d5565b8254821015611574576001600160a01b0381161561154c57611543611549939461153c83856158f8565b36906146c9565b916151a7565b80f35b6004837fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b6004837fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f45761055460209160406115b3366142dd565b929081526001855220615805565b50346104f457806003193601126104f45760206001600160a01b037ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005416604051908152f35b50346104f457611616366143a5565b61162393929336336147d5565b838352600160205260408320938084526002602052604084206001600160a01b0333165f5260205260405f20908085526002602052604085206001600160a01b0384165f52602052600360405f2061167a88614a5e565b019378ffffffffffffffffffffffffffffffffffffffffffffffffff8554166b033b2e3c9fd0803ce8000000810615156b033b2e3c9fd0803ce800000082040182105f146118af57506b033b2e3c9fd0803ce80000008102906b033b2e3c9fd0803ce80000008204036118ab57600290925b019460ff865460e01c16156112a15782156112c95750611832816040976b033b2e3c9fd0803ce8000000850615156b033b2e3c9fd0803ce800000086040196611738610b738984615848565b98600183016effffffffffffffffffffffffffffff61175a8c8284541661463a565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff61178f8b8284541661463a565b166effffffffffffffffffffffffffffff198254161790556117b08661588a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff6117db60098501928284541661473a565b167fffffffffffffff0000000000000000000000000000000000000000000000000082541617905578ffffffffffffffffffffffffffffffffffffffffffffffffff6111a96118298861588a565b8284541661473a565b7fe97b8576ac531cdc817b933309d0518ca3d26c6b46d490f3ae9fa39426a141ee6001600160a01b0387519416938061188b33958983602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a46effffffffffffffffffffffffffffff8351921682526020820152f35b8580fd5b60029150926116ec565b50346104f45760206003193601126104f457610554604060209260043581526001845220614ee6565b50346104f457806003193601126104f457602060405160018152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff60016040602093600435815282855220015416604051908152f35b50346104f4576105546020916110916040611955366142dd565b939081526001865220614ee6565b50346104f45760406003193601126104f45760043560243567ffffffffffffffff8111611a4857611998903690600401614335565b6119a592919236336147d5565b8354821015611a5b578390828252600160205260408220936119c685614a5e565b6001600160a01b0360068601541691823b15611a5757611a19928492836040518096819582947fa467cc590000000000000000000000000000000000000000000000000000000084528b600485016145a3565b03925af18015611a4c57611a33575b505061154991614cb6565b81611a3d91614524565b611a4857825f611a28565b8280fd5b6040513d84823e3d90fd5b8380fd5b6004847fb77e1e0f000000000000000000000000000000000000000000000000000000008152fd5b50346104f457611a92366143a5565b9092828152600160205260408120908381526002602052604081206001600160a01b0333165f5260205260405f2090611aca83614a5e565b306001600160a01b03851614611cd95785156112c957600282015460ff8160e01c1615610c825760ff8160e81c16611cb15764ffffffffff9060a01c16611b33611b296effffffffffffffffffffffffffffff85541661070f87614ee6565b61071b858761596b565b64ffffffffff8214908115611c4b575b5015611c1f576020610bad8888611bd2828a6001600160a01b0360058c6effffffffffffffffffffffffffffff610bcb868f8385541690611b878280851115614422565b84611b9d610b73611b9789614ee6565b86615b81565b9e8f6003890183611bb18382845416614455565b166effffffffffffffffffffffffffffff1982541617905582845416614455565b604080516effffffffffffffffffffffffffffff85168152602081019390935233927fe2497bc41b1fa7c4ba996f24dc2affdffb2a5571584db6db0eed8fbbf1dc85179181908101610c3e565b602492507f3ad30dd0000000000000000000000000000000000000000000000000000000008252600452fd5b9050611ca9611c6e89611c6860ff895460f01c16600a0a8661477e565b9361466a565b78ffffffffffffffffffffffffffffffffffffffffffffffffff6003870154166b033b2e3c9fd0803ce800000080820615159104019061466a565b11155f611b43565b6004827f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b807fe6c4247b0000000000000000000000000000000000000000000000000000000060049252fd5b50346104f457611d10366143cf565b929190611d1d36336147d5565b8254821015611574578183526003602052611d53604084206001600160a01b038316906001915f520160205260405f2054151590565b15611d6757611543611549939436906146c9565b6004837faa1b05f0000000000000000000000000000000000000000000000000000000008152fd5b50346104f457806003193601126104f457602060405164ffffffffff8152f35b50346104f457806003193601126104f45760209054604051908152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff6040602092600435815260018452205416604051908152f35b50346104f45760406003193601126104f457610554602091600435906001600160a01b036040611e35614309565b9284815260018752818120948152600287522091165f5283526effffffffffffffffffffffffffffff600260405f2001541690615805565b50346104f457806003193601126104f4577ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005460a01c60ff1615611efa575060207f8fb36037000000000000000000000000000000000000000000000000000000005b7fffffffff0000000000000000000000000000000000000000000000000000000060405191168152f35b602090611ed0565b50346104f45760206003193601126104f457610554602091604060043591828152600185522090611f3282614ee6565b916156e9565b50346104f457611f47366143a5565b8284526001602052604084208385526002602052604085206001600160a01b0333165f5260205260405f208486526002602052604086206001600160a01b0384165f5260205260405f2090611f9b83614a5e565b600281015460ff8160e01c168061210f575b156120e75760e81c60ff1615806120d5575b156120ad578415612085576001600160a01b03939261200d86848994612008600261201298015464ffffffffff8160781c169064ffffffffff8214908115612043575b50615538565b61568e565b614cb6565b60405192835216917f0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a060203393a480f35b905061207d612077876effffffffffffffffffffffffffffff61207060ff8d5460f01c16600a0a8761477e565b941661466a565b8961564b565b11155f612002565b6004877f6edcc523000000000000000000000000000000000000000000000000000000008152fd5b6004877f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b5060ff600283015460e81c1615611fbf565b6004887fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b5060ff600284015460e01c16611fad565b50346104f45761212f366142dd565b8183526001602052604083209180845260016020526001600160a01b03600860408620015416928185526002602052604085206001600160a01b0385165f5260205260405f208286526002602052604086206001600160a01b0333165f5260205260405f2061219d83614a5e565b60ff600282015460e01c16156121f2578415612085579161200d8585936121c39561568e565b6040519182527f0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a060203393a480f35b6004877fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b50346104f4576105546020916040612231366142dd565b92908152600185522061564b565b50346104f45760206003193601126104f4576122596142f3565b6001600160a01b037ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00541633036122ce57803b1561229a57611549906155ad565b7fc2f31e5e0000000000000000000000000000000000000000000000000000000082526001600160a01b0316600452602490fd5b6024827f068ca9d800000000000000000000000000000000000000000000000000000000815233600452fd5b50346104f457612309366142dd565b9190808252600160205260408220908083526002602052604083206001600160a01b0333165f5260205260405f2061234083614a5e565b84156126095760020191825460ff8160e01c16156125e15760ff8160e81c166125b9578064ffffffffff6123889260781c169064ffffffffff82149081156125845750615538565b6123a4856effffffffffffffffffffffffffffff83541661466a565b602460206001600160a01b03600585015416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa8015612579578690612541575b612406915082818103911015614677565b612413610b73878461556b565b936effffffffffffffffffffffffffffff85169586156125195750956124e284846effffffffffffffffffffffffffffff6124c561250e9660209c8b8461248260017fb233dd05ed21346e144167b35a6213bcf04768dbdffdc8339e8b027b94b9f3059d019282845416614455565b166effffffffffffffffffffffffffffff19825416179055836124a88d82845416614455565b166effffffffffffffffffffffffffffff19825416179055614ddc565b166effffffffffffffffffffffffffffff19825416178155614cb6565b604051918291339683602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a3604051908152f35b807f6edcc5230000000000000000000000000000000000000000000000000000000060049252fd5b506020813d602011612571575b8161255b60209383614524565b8101031261256d5761240690516123f5565b5f80fd5b3d915061254e565b6040513d88823e3d90fd5b905061207d886111136effffffffffffffffffffffffffffff6125b160ff895460f01c16600a0a8761477e565b94168761564b565b6004857f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b6004857fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004847f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff6003604060209360043581526001855220015416604051908152f35b50346104f45761267e366142dd565b9082548110156115745780835260016020526040832061269d81614a5e565b6126a8833383614d6f565b60246126c6846effffffffffffffffffffffffffffff84541661466a565b9160206001600160a01b03600583015416604051938480927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa80156125795784928791612804575b5061274084610b7383826effffffffffffffffffffffffffffff956127d59903911015614677565b166effffffffffffffffffffffffffffff1982541617815561200d61276486614ddc565b61278760018401916effffffffffffffffffffffffffffff835460781c1661463a565b7fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b6040519182527f566111831db1f090374baff3c3f9fc512084f5a9b8f5b199fb475d9c43a8013f60203393a380f35b9250506020823d602011612835575b8161282060209383614524565b8101031261256d579051839190612740612718565b3d9150612813565b50346104f45760406003193601126104f4576001600160a01b036040612861614309565b92600435815260026020522091165f5260205260206effffffffffffffffffffffffffffff60405f205416604051908152f35b50346104f45761055460209161070f6040611955366142dd565b50346104f45760206003193601126104f45760406020916004358152600383522054604051908152f35b50346104f45760206003193601126104f4576effffffffffffffffffffffffffffff60016040602093600435815282855220015460781c16604051908152f35b50346104f45760206003193601126104f45761055461297f60406020936004358152600185522061297a6129756effffffffffffffffffffffffffffff600384015460781c1661296f600285015460180b94614ee6565b9061477e565b615c9d565b615520565b615cf2565b50346104f45760406003193601126104f457604090600435906001600160a01b03836129ae614309565b92848152600160205281812094815260026020522091165f526020526129ef825f206107156effffffffffffffffffffffffffffff82541661070f85614ee6565b82519182526b033b2e3c9fd0803ce800000080820615159104016020820152f35b50346104f457612a1f366142dd565b9082526001602052612a3360408320614ee6565b91825f1904821115831517156104f457506b033b2e3c9fd0803ce80000006020926040519202048152f35b50346104f45760206003193601126104f45760408091600435815260016020522060026effffffffffffffffffffffffffffff600383015460781c1691015460180b82519182526020820152f35b50346104f45760806003193601126104f45760043560607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112612deb57808252600160205260408220908083526002602052604083206001600160a01b0333165f5260205260405f2091612b2181614a5e565b600283019260ff845460e01c16156125e1576064359384612dc35762ffffff90612ce36effffffffffffffffffffffffffffff600486015416612c22600387016effffffffffffffffffffffffffffff815460781c1690612b8e602460028b0193845460180b9087615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000084929454169078ffffffffffffffffffffffffffffffffffffffffffffffffff16179055907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b612c4e60246effffffffffffffffffffffffffffff875460781c16926001880193845460180b91615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000083929354169078ffffffffffffffffffffffffffffffffffffffffffffffffff1617905584907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b5460c81c1662ffffff8114918215612d6e575b505015612d465781612d0791614cb6565b604051916024358352604435602084015260408301527f3fa96ecf17429fddfbb919a64196f4e43f71b57f0c5c38c49a21c8e1e763d18c60603393a380f35b6004847fa664e075000000000000000000000000000000000000000000000000000000008152fd5b5491506effffffffffffffffffffffffffffff82169080155f198290048311151715612dbf576effffffffffffffffffffffffffffff910261271080820615159104019160781c1611155f80612cf6565b8680fd5b6004867fa664e075000000000000000000000000000000000000000000000000000000008152fd5b5080fd5b50346104f457806003193601126104f457602060405162ffffff8152f35b50346104f457612e1c36614363565b91808452600160205260408420938181526002602052604081206001600160a01b0333165f5260205260405f2092612e5386614a5e565b6040850135811580159061317c575b1561315457600285015460ff8160e01c161561312c5760e81c60ff1661310457612ea16effffffffffffffffffffffffffffff86541661070f89614ee6565b612eab868961596b565b908084116130d957508082116130ae5750612f4a86612ed5610b73612ecf8b614ee6565b86615bba565b9660038a016effffffffffffffffffffffffffffff612ef78a8284541661463a565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff612f2c898284541661463a565b166effffffffffffffffffffffffffffff1982541617815589615376565b6b033b2e3c9fd0803ce8000000808206151591040191612f8083611113846effffffffffffffffffffffffffffff8b541661466a565b90602460206001600160a01b0360058b015416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa9182156130a2579161306f575b506020976effffffffffffffffffffffffffffff6124c584610b7385828b97612ffe9903911015614677565b6130376effffffffffffffffffffffffffffff604051951695868652878601906040809180358452602081013560208501520135910152565b608084015260a08301527f119e7f996dc987b3ae79eb3735f1620c4292f6a7761a1e0f834c445f7798b91260c03393a3604051908152f35b90506020813d60201161309a575b8161308a60209383614524565b8101031261256d57516020612fd2565b3d915061307d565b604051903d90823e3d90fd5b7fdc868246000000000000000000000000000000000000000000000000000000008452600452602483fd5b7f4bd9e476000000000000000000000000000000000000000000000000000000008552600452602484fd5b6004837f9db9b355000000000000000000000000000000000000000000000000000000008152fd5b6004847fe86fa032000000000000000000000000000000000000000000000000000000008152fd5b6004837f2c5211c6000000000000000000000000000000000000000000000000000000008152fd5b50801515612e62565b50346104f45760c06003193601126104f45760043560807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc360112612deb5760a43567ffffffffffffffff8111611a48576131e4903690600401614335565b6131ee36336147d5565b8354831015611a5b578284526001602052604084209161320d83614a5e565b61271061ffff61321b6145bd565b1611613629576001600160a01b036132316145ce565b16151580613610575b156135e8576001600160a01b0361324f6145fa565b16158015906135c8575b156135a05784906132be61326b6145bd565b60038601907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fffff00000000000000000000000000000000000000000000000000000000000083549260f01b169116179055565b6132c66145fa565b6001600160a01b036007860191167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055600884016001600160a01b038154166001600160a01b0361331a6145ce565b1681036134d2575b505061332c6145e4565b60068501805490916001600160a01b03908116911614613499576001600160a01b036133566145e4565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556001600160a01b0361338e6145e4565b1692833b15611a48576133d4938392836040518097819582947fa467cc590000000000000000000000000000000000000000000000000000000084528c600485016145a3565b03925af191821561348c578492613473575b50506133f191614cb6565b6040516001600160a01b03613404614309565b16815260443561ffff8116809103611a575760208201526001600160a01b0361342b61431f565b1660408201526084356001600160a01b038116809103611a57578160809160607fea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b974940152a280f35b8192509061348091614524565b611a485781835f6133e6565b50604051903d90823e3d90fd5b5050506134aa57816133f191614cb6565b6004837f38ad7932000000000000000000000000000000000000000000000000000000008152fd5b613550906134e08888614b1f565b506134e9614610565b908886526002602052604086206001600160a01b0382165f5260205260ff600260405f20015460e01c16151560608301528886526002602052604086206001600160a01b0382165f5260205260ff600260405f20015460e81c1615156080830152886151a7565b6001600160a01b036135606145ce565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008254161790556135996135936145ce565b8661507e565b5f80613322565b6004857f91eaafa1000000000000000000000000000000000000000000000000000000008152fd5b506effffffffffffffffffffffffffffff600184015460781c1615613259565b6004857fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b506001600160a01b036136216145e4565b16151561323a565b6004857fe15e46cb000000000000000000000000000000000000000000000000000000008152fd5b50346104f45760206003193601126104f4576105546040602092600435815260018452206150cc565b50346104f4576105546020916136946040611955366142dd565b90615b81565b50346104f45760406003193601126104f4576001600160a01b0360406136be614309565b92600435815260026020522091165f52602052602078ffffffffffffffffffffffffffffffffffffffffffffffffff600360405f20015416604051908152f35b503461256d5760a060031936011261256d576137186142f3565b60243560ff811680910361256d57604435926001600160a01b038416840361256d5761374261431f565b9260843567ffffffffffffffff811161256d57613763903690600401614335565b61377096919636336147d5565b6001600160a01b0383169283151580613fec575b80613fda575b15613fb257856006111580613fa7575b15613f7f576137d5906001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b613f57575f54955f198714613f2a576001600160a01b0390600188015f55845f5260046020528760405f20551696873b1561256d57613845915f9160405193849283927fa467cc590000000000000000000000000000000000000000000000000000000084528b600485016145a3565b0381838b5af18015613f1f57613f0a575b50604051957ff5fe86ee00000000000000000000000000000000000000000000000000000000875285600488015283602488015283604488015283606488015283608488015260208760a481845afa928315613eff5786978594613ec4575b5090869291836b033b2e3c9fd0803ce800000097426138d390614fe4565b6138dc8861502a565b90604051916138ea83614485565b8a83528a60208401528360408401528a60608401528a60808401528a60a08401528a60c08401528a60e08401528a6101008401528b6101208401526bffffffffffffffffffffffff1661014083015264ffffffffff1661016082015283610180820152846101a0820152886101c08201526001600160a01b0386166101e0820152886102008201528289526001602052604089209080516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1682546effffffffffffffffffffffffffffff191617825560208101516effffffffffffffffffffffffffffff16613a249083907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b604081015182549060f01b7eff00000000000000000000000000000000000000000000000000000000000016907fff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff161782556001820160608201516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1681546effffffffffffffffffffffffffffff191617815560808201516effffffffffffffffffffffffffffff16613b2191907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b60a081015160180b600283019081547fffffffffffffff00000000000000000000000000000000000000000000000000169078ffffffffffffffffffffffffffffffffffffffffffffffffff161790556003820160c08201516effffffffffffffffffffffffffffff166effffffffffffffffffffffffffffff1681546effffffffffffffffffffffffffffff191617815560e08201516effffffffffffffffffffffffffffff16613c1d9082907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b61010082015181547fffff00000000000000000000000000000000000000000000000000000000000060f09290921b919091167dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90911617905561012081015161014082015161016083015160d81b7fffffffffff000000000000000000000000000000000000000000000000000000166effffffffffffffffffffffffffffff90921660789190911b7affffffffffffffffffffffff00000000000000000000000000000016171760048301556101808101516005830180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b03938416179091556101a083015160068501805483169184169190911790556101c083015160078501805483169184169190911790556101e083015160088501805490921692169190911790556102000151600990910180547fffffffffffffff000000000000000000000000000000000000000000000000001678ffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055613dc8858361507e565b60405190815260207f92fb402b777f3710166f15b30098f41042b439850df67d0195196d125458e7b391a360405191613e00836144cf565b6001600160a01b031682528460208301526040820152836060820152604051613e6081928291909160606001600160a01b0381608084019582815116855261ffff6020820151166020860152826040820151166040860152015116910152565b037fea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b97491a26040519283526020830152604082015260607fa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f1488335091a2604051908152602090f35b9291965092506020823d602011613ef7575b81613ee360209383614524565b8101031261256d57905186959092866138b5565b3d9150613ed6565b6040513d86823e3d90fd5b613f179193505f90614524565b5f915f613856565b6040513d5f823e3d90fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b7f603c058b000000000000000000000000000000000000000000000000000000005f5260045ffd5b7fe2364765000000000000000000000000000000000000000000000000000000005f5260045ffd5b50601286111561379a565b7fe6c4247b000000000000000000000000000000000000000000000000000000005f5260045ffd5b506001600160a01b038716151561378a565b506001600160a01b0383161515613784565b3461256d57604060031936011261256d57602061404761401c614309565b6004355f52600383526001600160a01b0360405f209116906001915f520160205260405f2054151590565b6040519015158152f35b3461256d57602060031936011261256d576004355f5260016020526040805f206140a261407d82614ee6565b61409c816effffffffffffffffffffffffffffff600386015416615b17565b92614f97565b82519182526020820152f35b3461256d5760206001600160a01b036140d96140c9366142dd565b905f526003845260405f20615b3f565b90549060031b1c16604051908152f35b3461256d57602060031936011261256d5760206140476141076142f3565b6001600160a01b0316805f52600460205260405f20545f5260016020526001600160a01b03600560405f200154161490565b3461256d57602060031936011261256d576004355f526001602052602061055460405f2061069c61407d82614ee6565b3461256d57614177366142dd565b905f5481101561426357805f5260016020526142358260405f2061419a81614a5e565b6141a5823383614d6f565b6effffffffffffffffffffffffffffff6141d083828454166141ca8180841115614422565b03614ddc565b166effffffffffffffffffffffffffffff198254161781556142176141f483614ddc565b61278760018401916effffffffffffffffffffffffffffff835460781c16614455565b6142218482614cb6565b6001600160a01b0360053392015416614e36565b6040519182527f69bb3893073d7a893f3933f3871309fc25acfc72e365b71f554d439a85b20e8b60203393a3005b7fb77e1e0f000000000000000000000000000000000000000000000000000000005f5260045ffd5b3461256d57602060031936011261256d576004356142a936336147d5565b5f5481101561426357806020915f526001825261055460405f20916142cd83614a5e565b6142d78184614b1f565b92614cb6565b600319604091011261256d576004359060243590565b600435906001600160a01b038216820361256d57565b602435906001600160a01b038216820361256d57565b606435906001600160a01b038216820361256d57565b9181601f8401121561256d5782359167ffffffffffffffff831161256d576020838186019501011161256d57565b60a060031982011261256d576004359160607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc60243593011261256d57604490565b600319606091011261256d5760043590602435906044356001600160a01b038116810361256d5790565b60e060031982011261256d57600435916024356001600160a01b038116810361256d577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc60a09193011261256d57604490565b1561442a5750565b7fc730333f000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b906effffffffffffffffffffffffffffff809116911601906effffffffffffffffffffffffffffff8211613f2a57565b610220810190811067ffffffffffffffff8211176144a257604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6080810190811067ffffffffffffffff8211176144a257604052565b60a0810190811067ffffffffffffffff8211176144a257604052565b610140810190811067ffffffffffffffff8211176144a257604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176144a257604052565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe093818652868601375f8582860101520116010190565b6040906145ba949281528160208201520191614565565b90565b60443561ffff8116810361256d5790565b6024356001600160a01b038116810361256d5790565b6064356001600160a01b038116810361256d5790565b6084356001600160a01b038116810361256d5790565b6040519061461d826144eb565b5f6080838281528260208201528260408201528260608201520152565b906effffffffffffffffffffffffffffff809116911603906effffffffffffffffffffffffffffff8211613f2a57565b91908201809211613f2a57565b1561467f5750565b7f80561eeb000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b359064ffffffffff8216820361256d57565b3590811515820361256d57565b91908260a091031261256d576040516146e1816144eb565b80926146ec816146aa565b82526146fa602082016146aa565b602083015260408101359062ffffff8216820361256d576080614735918193604086015261472a606082016146bc565b6060860152016146bc565b910152565b9078ffffffffffffffffffffffffffffffffffffffffffffffffff8091169116039078ffffffffffffffffffffffffffffffffffffffffffffffffff8211613f2a57565b81810292918115918404141715613f2a57565b9078ffffffffffffffffffffffffffffffffffffffffffffffffff8091169116019078ffffffffffffffffffffffffffffffffffffffffffffffffff8211613f2a57565b7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0054916001600160a01b038316928160041161256d575f5f9060405f8151966001600160a01b0360208901917fb700961300000000000000000000000000000000000000000000000000000000835216978860248201523060448201527fffffffff0000000000000000000000000000000000000000000000000000000083351660648201526064815261488a608482614524565b828052826020525190895afa614a4b575b156148a8575b5050505050565b63ffffffff1615614a1f577fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000177ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0055823b1561256d576020925f92836040518096819582947f94c7d7ee0000000000000000000000000000000000000000000000000000000084526004840152604060248401527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6044850192808452808786860137868582860101520116010103925af18015613f1f57614a0f575b507fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0054167ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00555f808080806148a1565b5f614a1991614524565b5f61499e565b827f068ca9d8000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b50505f516020518060201c15029061489b565b60048101805460d81c4214614b1b576effffffffffffffffffffffffffffff614aad83610b73614a90614b1996614ee6565b91612787614aa1610b7385846159a0565b86835460781c16614455565b166effffffffffffffffffffffffffffff19825416178155614ace42614fe4565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff7fffffffffff00000000000000000000000000000000000000000000000000000083549260d81b169116179055565b565b5050565b6effffffffffffffffffffffffffffff815460781c1691614b43610b73848461556b565b916effffffffffffffffffffffffffffff8316938415614cad576001600160a01b0360088301541693835f52600260205260405f206001600160a01b0386165f52602052600260405f20019260ff845460e01c1615614c85577fafd21228e21de4a3f779e1cc3617e12672c3da091dcf3812a931036aa0bf633c93600182016effffffffffffffffffffffffffffff614bdf8582845416614455565b166effffffffffffffffffffffffffffff198254161790556effffffffffffffffffffffffffffff614c148482845416614455565b166effffffffffffffffffffffffffffff198254161790557fffff000000000000000000000000000000ffffffffffffffffffffffffffffff8154169055614c7f60405192839283602090939291936effffffffffffffffffffffffffffff60408201951681520152565b0390a390565b7fe86fa032000000000000000000000000000000000000000000000000000000005f5260045ffd5b50505050505f90565b60607fa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f1488335091600481016effffffffffffffffffffffffffffff8082541692614d56614d018589846156e9565b93614d0b8561502a565b7fffffffffff000000000000000000000000ffffffffffffffffffffffffffffff7affffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b5460781c169060405192835260208301526040820152a2565b6001600160a01b0360078192015416911603614db45715614d8c57565b7f2c5211c6000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f3c6b7746000000000000000000000000000000000000000000000000000000005f5260045ffd5b6effffffffffffffffffffffffffffff8111614e06576effffffffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52607860045260245260445ffd5b916001600160a01b03604051927fa9059cbb000000000000000000000000000000000000000000000000000000005f521660045260245260205f60448180865af19060015f5114821615614ec5575b60405215614e905750565b6001600160a01b03907f5274afe7000000000000000000000000000000000000000000000000000000005f521660045260245ffd5b906001811516614edd57823b15153d15161690614e85565b503d5f823e3d90fd5b60048101546effffffffffffffffffffffffffffff8116908060d81c92428414908115614f54575b50614f4e5742831161256d576301e133806b033b2e3c9fd0803ce8000000916bffffffffffffffffffffffff6145ba9542039160781c1602040190615b17565b50905090565b600301546effffffffffffffffffffffffffffff811615915081614f7a575b505f614f0e565b6effffffffffffffffffffffffffffff915060781c16155f614f73565b61297f9061297a612975614fcc9460026effffffffffffffffffffffffffffff600386015460781c1694015460180b9361477e565b6b033b2e3c9fd0803ce8000000808206151591040190565b64ffffffffff8111614ffa5764ffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52602860045260245260445ffd5b6bffffffffffffffffffffffff811161504e576bffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f52606060045260245260445ffd5b614b199161508c81836158f8565b60405191615099836144eb565b64ffffffffff83525f60208401525f6040840152600160608401525f60808401526151a7565b91908203918211613f2a57565b6145ba906151a16150dc82614ee6565b61519b615147846111136003820154611113866effffffffffffffffffffffffffffff61514061297f78ffffffffffffffffffffffffffffffffffffffffffffffffff600960028a015460180b990154169761297a61297586868a60781c1661477e565b931661477e565b6effffffffffffffffffffffffffffff615190865492826151738160018b015460781c16828716614455565b916b033b2e3c9fd0803ce80000008082061515910401911661466a565b9160781c16906150bf565b926159a0565b906150bf565b906001600160a01b037f90984699e37aaae5f79c2f33e480f273509662005a8ff82a17b325eb7072454e91835f52600260205260405f208282165f5260205260405f2060028651910190867cff0000000000000000000000000000000000000000000000000000000083547fffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff78ffffffffff0000000000000000000000000000000000000000602085015160a01b167fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff7bffffff00000000000000000000000000000000000000000000000000604087015160c81b16937fffffffff00000000000000000000000000ffffffffffffffffffffffffffffff73ffffffffff0000000000000000000000000000007dff0000000000000000000000000000000000000000000000000000000000608060608b0151151560e01b9a0151151560e81b169960781b169116171617161791161717905561537160405192839216958291909160808060a083019464ffffffffff815116845264ffffffffff602082015116602085015262ffffff604082015116604085015260608101511515606085015201511515910152565b0390a3565b6153ee61548392936153c76effffffffffffffffffffffffffffff6004850154169360038101612b8e8460026effffffffffffffffffffffffffffff845460781c16940193845460180b9089615beb565b6effffffffffffffffffffffffffffff855460781c16926001860193845460180b91615beb565b7fffffffffffffff0000000000000000000000000000000000000000000000000083929354169078ffffffffffffffffffffffffffffffffffffffffffffffffff1617905582907fffff000000000000000000000000000000ffffffffffffffffffffffffffffff7dffffffffffffffffffffffffffffff00000000000000000000000000000083549260781b169116179055565b62ffffff600282015460c81c1662ffffff81149182156154cf575b5050156154a757565b7fa664e075000000000000000000000000000000000000000000000000000000005f5260045ffd5b5491506effffffffffffffffffffffffffffff82169080155f19829004831115171561256d576effffffffffffffffffffffffffffff910261271080820615159104019160781c1611155f8061549e565b81810392915f138015828513169184121617613f2a57565b156155405750565b7fde3fc6ae000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b6effffffffffffffffffffffffffffff6001615586836150cc565b92015416620f42408101809111613f2a57620f42408201809211613f2a576145ba92615e75565b60206001600160a01b037f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9216807fffffffffffffffffffffffff00000000000000000000000000000000000000007ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a005416177ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0055604051908152a1565b6effffffffffffffffffffffffffffff6001615666836150cc565b9201541690620f42408101809111613f2a57620f42408201809211613f2a576145ba92615dc3565b60026156c36effffffffffffffffffffffffffffff93946156cf93856124a8856156b785614ddc565b9301928284541661463a565b93019282845416614455565b166effffffffffffffffffffffffffffff19825416179055565b9160a46020926001600160a01b0360068601541661572f6effffffffffffffffffffffffffffff875416946effffffffffffffffffffffffffffff600389015416615b17565b956effffffffffffffffffffffffffffff600178ffffffffffffffffffffffffffffffffffffffffffffffffff60098401541692015460781c169060405197889687957ff5fe86ee0000000000000000000000000000000000000000000000000000000087526004870152602486015260448501526b033b2e3c9fd0803ce80000008082061515910401606484015260848301525afa908115613f1f575f916157d6575090565b90506020813d6020116157fd575b816157f160209383614524565b8101031261256d575190565b3d91506157e4565b6effffffffffffffffffffffffffffff6001615820836150cc565b9201541690620f42408101809111613f2a57620f42408201809211613f2a576145ba92615e75565b6effffffffffffffffffffffffffffff6001615863836150cc565b92015416620f42408101809111613f2a57620f42408201809211613f2a576145ba92615dc3565b78ffffffffffffffffffffffffffffffffffffffffffffffffff81116158c85778ffffffffffffffffffffffffffffffffffffffffffffffffff1690565b7f6dfcc650000000000000000000000000000000000000000000000000000000005f5260c860045260245260445ffd5b805f5260036020526159186001600160a01b0360405f2093168093615e10565b15615943577f47acdb603dbca71028fbd9b37192e17a62e64fa160e2e607eef3853b792ea5ab5f80a3565b7f04c94583000000000000000000000000000000000000000000000000000000005f5260045ffd5b61297f9061297a6129756145ba9461296f60016effffffffffffffffffffffffffffff835460781c1692015460180b94614ee6565b906effffffffffffffffffffffffffffff60048301541690808214615b10576003830154928360f01c938415614cad5783916effffffffffffffffffffffffffffff82169160781c6effffffffffffffffffffffffffffff16600282015460180b916009015478ffffffffffffffffffffffffffffffffffffffffffffffffff168583615a2e83988561477e565b615a3790615c9d565b90615a4191615520565b615a4a90615cf2565b90615a55908661477e565b90615a5f9161466a565b90615a699161466a565b95615a739161477e565b615a7c90615c9d565b90615a8691615520565b615a8f90615cf2565b91615a999161477e565b90615aa39161466a565b90615aad9161466a565b6b033b2e3c9fd0803ce800000081061515906b033b2e3c9fd0803ce8000000900401906b033b2e3c9fd0803ce800000081061515906b033b2e3c9fd0803ce800000090040190615afc916150bf565b90805f1904821161256d5761271091020490565b5050505f90565b815f19048111158215171561256d57026b033b2e3c9fd0803ce8000000808206151591040190565b8054821015615b54575f5260205f2001905f90565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b744f3a68dbc8f03f243baf513267aa9a3ee524f8e028811182151761256d576b033b2e3c9fd0803ce80000000290808206151591040190565b744f3a68dbc8f03f243baf513267aa9a3ee524f8e028811182151761256d576b033b2e3c9fd0803ce8000000020490565b93929193615c0f615c0661297f8761297a612975868861477e565b92843590615d7e565b926020810135955f8782019788129112908015821691151617613f2a576040615c4561297f8861297a612975615c4e978a61477e565b9101359061466a565b036154a757615c5c90614ddc565b8260180b92808403615c6d57509190565b7f327269a7000000000000000000000000000000000000000000000000000000005f5260c860045260245260445ffd5b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8111615cc75790565b7f24775e06000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b5f8112615cfc5790565b7fa8ce4432000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c1615615d5657565b7fd7e6bcf8000000000000000000000000000000000000000000000000000000005f5260045ffd5b5f821215615db9577f80000000000000000000000000000000000000000000000000000000000000008214613f2a576145ba915f03906150bf565b906145ba9161466a565b91615dcf818385615e75565b918115615de3576145ba930915159061466a565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f828152600182016020526040902054615e6f57805490680100000000000000008210156144a257615e49826001809401835582615b3f565b81549060031b905f1986831b921b19161790558054925f520160205260405f2055600190565b50505f90565b90915f198383099280830292838086109503948086039514615f065784831115615eee5790829109815f0382168092046002816003021880820260020302808202600203028082026002030280820260020302808202600203028091026002030293600183805f03040190848311900302920304170290565b82634e487b715f52156003026011186020526024601cfd5b505080925015615de357049056fea164736f6c634300081c000a","sourceMap":"201:550:21:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;358:4:30;201:550:21;358:4:30;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;:::i;:::-;;;;;358:4:30;;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23091:7:19;201:550:21;;;;;23091:23:19;-1:-1:-1;;;;;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;;;358:4:30;;;:::i;:::-;201:550:21;;;;;358:4:30;;;;201:550:21;;;;;;;;358:4:30;;201:550:21;;;;;;;;;;358:4:30;;;23091:7:19;201:550:21;;;;;;;;;;358:4:30;;201:550:21;;;;;;;;;358:4:30;;201:550:21;;;;;;;;;358:4:30;;201:550:21;;;;;;;;;;;;;;;;;;;;;;473:3:29;;201:550:21;;;473:3:29;;;201:550:21;;;;473:3:29;;201:550:21;;;;;;;;358:4:30;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;1574:1:19;201:550:21;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;1488:2:19;201:550:21;;;;;;;;16057:40:19;201:550:21;;;;;;:::i;:::-;;;;;16057:7:19;201:550:21;;;16057:40:19;:::i;:::-;201:550:21;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;473:3:29;;;:::i;:::-;;201:550:21;;;;23293:7:19;201:550:21;;;23293:23:19;201:550:21;-1:-1:-1;201:550:21;;;;23293:7:19;201:550:21;-1:-1:-1;201:550:21;23365:16:19;201:550:21;;;;358:4:30;;;;:::i;:::-;201:550:21;;;;;358:4:30;;201:550:21;;;;;;23335:221:19;;358:4:30;201:550:21;;;;;;23335:221:19;;201:550:21;;;;;;;;23335:221:19;;;473:3:29;;;201:550:21;;;23335:221:19;;;473:3:29;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;20124:67:19;201:550:21;;;;;;;;;;;20145:46:19;201:550:21;;;;;;20169:21:19;;;;:::i;:::-;20145:46;;:::i;:::-;20124:67;;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;21644:69:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;;;;;;;;;21608:7:19;201:550:21;;;21608:23:19;201:550:21;-1:-1:-1;201:550:21;;;27265:33:19;201:550:21;-1:-1:-1;201:550:21;1162:38:25;201:550:21;;;;1178:21:25;;;:::i;:::-;1162:38;;:::i;:::-;27265:33:19;;:::i;:::-;5971:149:30;;;;;;;;;21644:69:19;;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;;358:4:30;201:550:21;;;;358:4:30;;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;358:4:30;;;:::i;:::-;201:550:21;;;;;;;;358:4:30;;201:550:21;;;;;;;;358:4:30;201:550:21;;;;;;;;358:4:30;201:550:21;;;;;;;;;;;358:4:30;201:550:21;;;;;;358:4:30;201:550:21;;;;;;;;;358:4:30;201:550:21;;;;;;;;;;358:4:30;201:550:21;;;;;;;;358:4:30;201:550:21;;;;;358:4:30;201:550:21;;;;;;;;;;358:4:30;201:550:21;;;;;;;;358:4:30;201:550:21;;;;;358:4:30;-1:-1:-1;;;;;201:550:21;;;;;;;;358:4:30;-1:-1:-1;;;;;201:550:21;;;;;;;;358:4:30;-1:-1:-1;;;;;201:550:21;;;;;;;;358:4:30;-1:-1:-1;;;;;201:550:21;;;;;;;;358:4:30;201:550:21;;;;;;358:4:30;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;7710:7:19;201:550:21;;;;;;;;;7758:7:19;201:550:21;;;;;-1:-1:-1;;;;;7775:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;7793:12:19;;;:::i;:::-;28414:4;-1:-1:-1;;;;;201:550:21;;28400:19:19;201:550:21;;28452:10:19;;201:550:21;;7758:7:19;28494:12;473:3:29;;;201:550:21;;;;;;;;473:3:29;;201:550:21;;;;;8061:27:19;201:550:21;;8240:6:19;201:550:21;;-1:-1:-1;;;;;8205:16:19;201:550:21;;8112:42:19;201:550:21;;;;;;7903:19:19;7895:62;7903:19;;;;;7895:62;:::i;:::-;7981:29;:41;:29;;;;:::i;:::-;:41;:::i;:::-;8028:17;;7710:7;8028:17;;201:550:21;8028:27:19;201:550:21;;;;;8028:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;;;;8061:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;8112:42:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;8183:7:19;;;;:::i;:::-;8205:16;201:550:21;;8240:6:19;:::i;:::-;201:550:21;;;;;;;;;;;;;;;7775:10:19;;8259:43;;201:550:21;;;;8259:43:19;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;21049:7:19;201:550:21;;;21049:23:19;201:550:21;-1:-1:-1;201:550:21;;;;;21049:7:19;201:550:21;-1:-1:-1;201:550:21;21049:35:19;201:550:21;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;358:4:30;;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19789:17:19;;;201:550:21;;19830:18:19;;;;201:550:21;;;19870:16:19;-1:-1:-1;;;;;19920:28:19;19870:16;;;;201:550:21;;19920:28:19;;201:550:21;;;;;358:4:30;;;;:::i;:::-;;;201:550:21;19754:203:19;;358:4:30;201:550:21;19754:203:19;;358:4:30;201:550:21;19754:203:19;;358:4:30;201:550:21;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17431:16:19;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;:::i;:::-;17148:30:19;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;15375:20:19;201:550:21;;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;15367:7:19;201:550:21;;-1:-1:-1;;;;;15367:52:19;201:550:21;-1:-1:-1;201:550:21;15367:52:19;201:550:21;;15367:66:19;15279:159;;17148:30;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;19415:27:19;201:550:21;;;;;;;;;;;19415:27:19;201:550:21;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;21957:37:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;;;;;;;;;21921:7:19;201:550:21;;;21921:23:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;21957:37:19;;:::i;201:550:21:-;;;;;15688:42:19;201:550:21;;;;;;:::i;:::-;;;;;15688:7:19;201:550:21;;;15688:42:19;:::i;201:550:21:-;;;;;;;;:::i;:::-;;;;;;10420:7:19;201:550:21;;;;;;;;;10468:7:19;201:550:21;;;;;-1:-1:-1;;;;;10485:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;10503:12:19;;;;:::i;:::-;201:550:21;10573:31:19;;201:550:21;30156:15:19;;;;;:39;;;201:550:21;;;;;10468:7:19;30227:12;;473:3:29;201:550:21;;;;;;1162:38:25;201:550:21;;;;1178:21:25;;;:::i;1162:38::-;30335:33:19;;;;:::i;:::-;30382:20;;;;201:550:21;;30453:30:19;;;;201:550:21;;1997:21:25;;;;10844:79:19;201:550:21;10634:48:19;1979:40:25;11060:7:19;1997:21:25;;201:550:21;1997:21:25;;:::i;:::-;1979:40;;:::i;10634:48:19:-;10688:17;;;201:550:21;10688:32:19;201:550:21;;;;;10688:32:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;10726:32:19;201:550:21;;;;;10726:32:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;10797:12:19;;;;;:::i;:::-;201:550:21;10867:16:19;10844:39;201:550:21;;10867:16:19;;201:550:21;;10844:39:19;;:::i;:::-;:79;:::i;:::-;10949:28;;;;:::i;:::-;201:550:21;10929:48:19;:16;;;201:550:21;;;;;10929:48:19;:::i;:::-;201:550:21;358:4:30;;;;;;;201:550:21;10983:48:19;10688:17;11003:28;;;:::i;:::-;10983:16;;201:550:21;;;;;10983:48:19;:::i;:::-;201:550:21;358:4:30;;;;;;;11060:7:19;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11080:79:19;201:550:21;10485:10:19;11080:79;;201:550:21;;;;;5971:149:30;;;;;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30156:39:19;30175:20;;;;30156:39;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;;;:::i;:::-;3095:66:2;201:550:21;;;;;;6175:44:2;;;;201:550:21;6171:95:2;;201:550:21;;;;3095:66:2;201:550:21;-1:-1:-1;;;;;201:550:21;;665:23;201:550;;1992:16:0;6595:66:2;;;:::i;:::-;;;:::i;:::-;1992:16:0;:::i;:::-;201:550:21;3095:66:2;201:550:21;;3095:66:2;201:550:21;6370:20:2;201:550:21;;;271:1;201:550;;6370:20:2;201:550:21;;6171:95:2;201:550:21;6236:23:2;;;;;6175:44;201:550:21;271:1;201:550;;;6194:25:2;;6175:44;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;22356:7:19;201:550:21;;;22356:23:19;201:550:21;-1:-1:-1;201:550:21;;;;;-1:-1:-1;201:550:21;;;;;;;;22418:26:19;;201:550:21;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;3585:10:0;201:550:21;953:10:1;3585::0;:::i;:::-;201:550:21;;5534:21:19;;201:550:21;;;-1:-1:-1;;;;;201:550:21;;5588:19:19;201:550:21;;;5663:42:19;5651:5;;;;;;:::i;:::-;201:550:21;;;:::i;:::-;5663:42:19;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;;;;;16242:42:19;201:550:21;;;;;;:::i;:::-;;;;;16242:7:19;201:550:21;;;16242:42:19;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;-1:-1:-1;;;;;1584:61:0;201:550:21;;;;;;;;;;;;;;;;:::i;:::-;3585:10:0;201:550:21;;;;953:10:1;3585::0;:::i;:::-;201:550:21;;;11413:7:19;201:550:21;;;;;;;;;11467:7:19;201:550:21;;;;;-1:-1:-1;;;;;953:10:1;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;;;;;11467:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;11605:23:19;201:550:21;-1:-1:-1;201:550:21;11564:12:19;;;:::i;:::-;11605:23;201:550:21;;;;;5971:149:30;;;;;;;;;11662:31:19;;11661:63;5971:149:30;;;5396:162;5971:149;5396:162;;;5971:149;5396:162;;;;;11467:7:19;11661:63;;;30671:18;473:3:29;201:550:21;473:3:29;;201:550:21;;;;;;30722:20:19;;201:550:21;;5971:149:30;12142:7:19;5971:149:30;201:550:21;5971:149:30;;;;;;;;;;11873:41:19;:53;:41;;;;:::i;:53::-;11932:17;11413:7;11932:17;;201:550:21;11932:27:19;201:550:21;;;;;11932:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;11965:33:19;201:550:21;;;;;11965:33:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;12024:28:19;;;:::i;:::-;201:550:21;12004:48:19;:16;;;201:550:21;;;;;12004:48:19;:::i;:::-;201:550:21;358:4:30;;;;;;;201:550:21;12058:55:19;12085:28;;;:::i;:::-;201:550:21;;;;12058:55:19;:::i;12142:7::-;12162:70;-1:-1:-1;;;;;201:550:21;;;;953:10:1;;12162:70:19;953:10:1;12162:70:19;;;201:550:21;;;;;;;;;;;;;;;;;12162:70:19;;;;201:550:21;;;;;;;;;;;;5396:162:30;;;;11661:63:19;11467:7;11661:63;;;;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;17590:32:19;201:550:21;;;;;;;;;;;17590:32:19;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;;;271:1;201:550;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;17901:28:19;201:550:21;;;;;;;;;;;;;1979:40:25;201:550:21;;1997:21:25;201:550:21;;;;:::i;:::-;;;;;16798:7:19;201:550:21;;;1997:21:25;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3585:10:0;201:550:21;;;;953:10:1;3585::0;:::i;:::-;201:550:21;;6170:21:19;;201:550:21;;;;;;;;;;;;;;6260:12:19;;;;:::i;:::-;-1:-1:-1;;;;;6307:16:19;;;201:550:21;;6280:81:19;;;;;;;201:550:21;;;;;;6280:81:19;;;;;;201:550:21;6280:81:19;;;201:550:21;6280:81:19;;;:::i;:::-;;;;;;;;;;;201:550:21;6389:7:19;;;;;:::i;6280:81::-;;;;;:::i;:::-;201:550:21;;6280:81:19;;;;201:550:21;;;;6280:81:19;201:550:21;;;;;;;;;6280:81:19;201:550:21;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;8472:7:19;201:550:21;;;;;;;;;8520:7:19;201:550:21;;;;;-1:-1:-1;;;;;8537:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;8555:12:19;;;;:::i;:::-;28900:4;-1:-1:-1;;;;;201:550:21;;28886:19:19;201:550:21;;28938:10:19;;201:550:21;;8520:7:19;28980:12;;473:3:29;201:550:21;;;;;;;;;473:3:29;;;201:550:21;;;;;;;;29112:61:19;1162:38:25;201:550:21;;;;1178:21:25;;;:::i;1162:38::-;27265:33:19;;;;:::i;29112:61::-;201:550:21;29194:32:19;;:163;;;;;201:550:21;;;;;;8838:32:19;201:550:21;;9022:6:19;201:550:21;;-1:-1:-1;;;;;8987:16:19;201:550:21;;8894:42:19;201:550:21;;;;;;8670:19:19;8662:62;8670:19;;;;;8662:62;:::i;:::-;1722:21:25;8753:41:19;1706:38:25;1722:21;;;:::i;:::-;1706:38;;:::i;8753:41:19:-;8800:17;;;;;201:550:21;8800:32:19;201:550:21;;;;;8800:32:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;;;;8838:32:19;:::i;9022:6::-;201:550:21;;;;;;;;;;;;;;;8537:10:19;;9041:46;;201:550:21;;;;9041:46:19;201:550:21;;;;;;;;;;;29194:163:19;201:550:21;;29304:53:19;:13;201:550:21;29238:52:19;201:550:21;;;;;;29271:2:19;201:550:21;29238:52:19;;:::i;:::-;29304:13;;:::i;:::-;201:550:21;29328:16:19;;;201:550:21;;5971:149:30;;;;;;;;;29304:53:19;;:::i;:::-;-1:-1:-1;29238:119:19;29194:163;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;3585:10:0;201:550:21;953:10:1;3585::0;:::i;:::-;201:550:21;;5875:21:19;;201:550:21;;;;;;5929:14:19;201:550:21;;11736:55:6;201:550:21;;;-1:-1:-1;;;;;201:550:21;;11736:55:6;4874:14;4782:123;-1:-1:-1;201:550:21;4874:14:6;201:550:21;;;-1:-1:-1;201:550:21;;4874:26:6;;4782:123;;11736:55;201:550:21;;;;5993:42:19;201:550:21;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;1650:16:19;201:550:21;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;20836:71:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;;;;;;;;;20871:7:19;201:550:21;;;20871:23:19;201:550:21;-1:-1:-1;201:550:21;;;;20871:7:19;201:550:21;-1:-1:-1;201:550:21;20871:35:19;201:550:21;;20836:71:19;;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;1584:61:0;201:550:21;;;;;4338:71:0;;;;201:550:21;;4338:71:0;201:550:21;;;;;;;;4338:71:0;201:550:21;4338:71:0;;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;20495:50:19;201:550:21;;;;;;;;;;;;;20523:21:19;;;;:::i;:::-;20495:50;;:::i;201:550:21:-;;;;;;;;:::i;:::-;;;;13559:7:19;201:550:21;;;;;;;;13613:7:19;201:550:21;;;;;-1:-1:-1;;;;;13630:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;;;;13613:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;13713:12:19;;;;:::i;:::-;13613:7;31151:18;;473:3:29;201:550:21;;;;;31151:42:19;;;201:550:21;;;;473:3:29;;201:550:21;;31226:19:19;;:44;;201:550:21;;;;31300:10:19;;201:550:21;;-1:-1:-1;;;;;31351:20:19;;13876:6;31351:20;;;;31377:216;13613:7;13912;31351:20;;201:550:21;;;;;;31392:31:19;201:550:21;31392:31:19;;:165;;;;;201:550:21;31377:216:19;;:::i;:::-;13876:6;:::i;:::-;13912:7;:::i;:::-;201:550:21;;;;;;13630:10:19;13932:52;201:550:21;13630:10:19;13932:52;;201:550:21;;31392:165:19;201:550:21;;31500:57:19;31522:34;201:550:21;;31435:51:19;201:550:21;;;;;;31467:2:19;201:550:21;31435:51:19;;:::i;:::-;201:550:21;;31522:34:19;:::i;:::-;31500:57;;:::i;:::-;-1:-1:-1;31435:122:19;31392:165;;;201:550:21;;;;;;;;;;;;;;31226:44:19;31250:20;201:550:21;13613:7:19;31250:20;;473:3:29;;;201:550:21;31249:21:19;31226:44;;201:550:21;;;;;;;31151:42:19;31173:20;201:550:21;13613:7:19;31173:20;;473:3:29;201:550:21;;;31151:42:19;;201:550:21;;;;;;;;:::i;:::-;;;;12951:7:19;201:550:21;;;;;;;;;12951:7:19;201:550:21;;-1:-1:-1;;;;;12995:28:19;201:550:21;;;12995:28:19;201:550:21;;;;;;13063:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;;;;13063:7:19;201:550:21;;;;;-1:-1:-1;;;;;13147:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;13165:12:19;;;:::i;:::-;201:550:21;13063:7:19;30878:18;;473:3:29;201:550:21;;;;;;30929:13:19;;201:550:21;;13304:6:19;;;;;13340:7;13304:6;;:::i;13340:7::-;201:550:21;;;;;13360:56:19;201:550:21;13147:10:19;13360:56;;201:550:21;;;;;;;;;;;;;;15872:40:19;201:550:21;;;;;;:::i;:::-;;;;;15872:7:19;201:550:21;;;15872:40:19;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;;:::i;:::-;-1:-1:-1;;;;;1584:61:0;201:550:21;;953:10:1;3940:21:0;3936:82;;4027:24;;:29;4023:100;;4142:12;;;:::i;4023:100::-;4073:43;;;-1:-1:-1;;;;;201:550:21;;;;;4073:43:0;3936:82;201:550:21;3978:33:0;;;;953:10:1;201:550:21;;3978:33:0;201:550:21;;;;;;;;:::i;:::-;;;;;;6876:7:19;201:550:21;;;;;;;;;6924:7:19;201:550:21;;;;;-1:-1:-1;;;;;6941:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;6959:12:19;;;:::i;:::-;27920:10;;201:550:21;;6924:7:19;27962:12;473:3:29;;;201:550:21;;;;;;;;;473:3:29;;;201:550:21;;;;;28077:208:19;201:550:21;;;;28092:31:19;201:550:21;28092:31:19;;:157;;;;;28077:208;;:::i;:::-;7040:24;201:550:21;;;;;7040:24:19;:::i;:::-;7088:49;201:550:21;-1:-1:-1;;;;;7095:16:19;;;201:550:21;;;;7088:49:19;;;;201:550:21;7088:49:19;;7131:4;201:550:21;7088:49:19;;201:550:21;7088:49:19;;;;;;;;;;201:550:21;7143:87:19;201:550:21;;;;;;7151:20:19;;;7143:87;:::i;:::-;7253:43;:31;;;;:::i;:43::-;201:550:21;;;;7310:10:19;;;201:550:21;;7344:17:19;;7478:7;7344:17;;201:550:21;7428:21:19;7498:40;7344:17;201:550:21;7344:17:19;;;:27;6876:7;7498:40;7344:17;;201:550:21;;;;;7344:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;7377:27:19;201:550:21;;;;;7377:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;7428:21:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;7478:7:19;:::i;:::-;201:550:21;;6941:10:19;;;;7498:40;;201:550:21;;;;;;;;;;;;;;;;;7498:40:19;;;;201:550:21;;;;;;;;;;;;;7088:49:19;;201:550:21;7088:49:19;;201:550:21;7088:49:19;;;;;;201:550:21;7088:49:19;;;:::i;:::-;;;201:550:21;;;;7143:87:19;201:550:21;;7088:49:19;;201:550:21;-1:-1:-1;201:550:21;;7088:49:19;;;-1:-1:-1;7088:49:19;;;201:550:21;;;;;;;;;28092:157:19;201:550:21;;28200:49:19;201:550:21;28200:40:19;201:550:21;28135:51:19;201:550:21;;;;;;28167:2:19;201:550:21;28135:51:19;;:::i;:::-;201:550:21;;28200:40:19;;:::i;201:550:21:-;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;18886:28:19;201:550:21;;;;;;;;;;;18886:28:19;201:550:21;;;;;;;;;;;;;;;;:::i;:::-;;;;14707:21:19;;201:550:21;;;;;;14775:7:19;201:550:21;;;;;14798:12:19;;;:::i;:::-;14854:6;14842:10;;14854:6;;:::i;:::-;14936:49;14888:24;201:550:21;;;;;14888:24:19;:::i;:::-;14943:16;201:550:21;-1:-1:-1;;;;;14943:16:19;;;201:550:21;;;;14936:49:19;;;;201:550:21;14936:49:19;;14979:4;201:550:21;14936:49:19;;201:550:21;14936:49:19;;;;;;;;;;;;201:550:21;;15102:21:19;201:550:21;14991:87:19;201:550:21;;;;15191:7:19;201:550:21;;14999:20:19;;;14991:87;:::i;15102:21::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;15129:33:19;15144:18;;;:::i;:::-;15129:33;14775:7;15129:11;;201:550:21;;;;;;;15129:33:19;:::i;:::-;201:550:21;;;;;;;;;;;;;;15191:7:19;201:550:21;;;;;15211:36:19;201:550:21;14842:10:19;15211:36;;201:550:21;;14936:49:19;;;;201:550:21;14936:49:19;;201:550:21;14936:49:19;;;;;;201:550:21;14936:49:19;;;:::i;:::-;;;201:550:21;;;;;;;;-1:-1:-1;15102:21:19;14936:49;;;;;-1:-1:-1;14936:49:19;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;22136:7:19;201:550:21;;;22136:23:19;201:550:21;-1:-1:-1;201:550:21;;;;;;-1:-1:-1;201:550:21;;;;;;;;;;;;;;1162:38:25;201:550:21;;1178:21:25;201:550:21;;;;:::i;:::-;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;20662:14:19;201:550:21;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;20308:22:19;201:550:21;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;808:72:26;809:58;201:550:21;;;;;;;;;;;809:39:26;810:26;201:550:21;18638:19:19;;;201:550:21;;;;18729:21:19;18685:22;;;201:550:21;;;18729:21:19;;:::i;:::-;810:26:26;;:::i;:::-;809:39;:::i;:::-;:58;:::i;:::-;808:72;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;;;;;;;;;21295:7:19;201:550:21;;;21295:23:19;201:550:21;-1:-1:-1;201:550:21;;;27265:33:19;201:550:21;-1:-1:-1;201:550:21;1162:38:25;201:550:21;;;;1178:21:25;;;:::i;27265:33:19:-;201:550:21;;;;;5971:149:30;;;;;;;;;201:550:21;;;;;;;;;;;;;:::i;:::-;;;;16610:7:19;201:550:21;;1453:21:25;201:550:21;;;1453:21:25;:::i;:::-;2842:212:30;;-1:-1:-1;;2842:212:30;;;;;;;;;;201:550:21;2842:212:30;201:550:21;;;;2842:212:30;;;201:550:21;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;19115:22:19;201:550:21;19094:19:19;;;201:550:21;;;;19115:22:19;;201:550:21;;;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;12472:7:19;201:550:21;;;;;-1:-1:-1;;;;;12489:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;12507:12:19;;;;:::i;:::-;12472:7;12535:12;;473:3:29;201:550:21;473:3:29;;201:550:21;;;;;;12613:31:19;201:550:21;12613:36:19;;201:550:21;;;25516:16:19;25777:175;201:550:21;;25516:16:19;;201:550:21;;25567:175:19;25667:19;;;201:550:21;;;;;;25694:22:19;25615:127;201:550:21;12472:7:19;25694:22;;201:550:21;;;;;25615:127:19;;;:::i;:::-;358:4:30;;;;;;;;;;;;201:550:21;;;;;;;;;;;;;;;25567:175:19;25825:127;201:550:21;;;;;;;25904:22:19;201:550:21;25904:22:19;;201:550:21;;;;;25825:127:19;;:::i;:::-;358:4:30;;;;;;;;;;;;25777:175:19;201:550:21;;;;;;;;;;;;;;;25777:175:19;201:550:21;;;;;26036:50:19;;:137;;;;;201:550:21;;;;;;12754:7:19;;;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;;;12774:49:19;201:550:21;12489:10:19;12774:49;;201:550:21;;;;;;;;;26036:137:19;201:550:21;;-1:-1:-1;201:550:21;;;;1439:411:29;;-1:-1:-1;;1439:411:29;;;;;;;;;;201:550:21;1439:411:29;;;;;;;;;;;201:550:21;;;;26098:75:19;;26036:137;;;;1439:411:29;;;;201:550:21;;;;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;1746:16:19;201:550:21;;;;;;;;;;;:::i;:::-;;;;;9310:7:19;201:550:21;;;;;;;;;9358:7:19;201:550:21;;;;;-1:-1:-1;;;;;9375:10:19;201:550:21;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;9393:12:19;;;;:::i;:::-;201:550:21;9457:31:19;;201:550:21;29571:15:19;;;;:39;;;201:550:21;;;;9358:7:19;29642:12;;473:3:29;201:550:21;;;;;;;;473:3:29;;201:550:21;;;;1162:38:25;201:550:21;;;;1178:21:25;;;:::i;1162:38::-;29793:33:19;;;;:::i;:::-;29840:20;;;;201:550:21;;29904:30:19;;;;201:550:21;;1997:21:25;9681:12:19;1997:21:25;9518:48:19;1979:40:25;1997:21;;;:::i;:::-;1979:40;;:::i;9518:48:19:-;9572:17;;;;201:550:21;9572:32:19;201:550:21;;;;;9572:32:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;9610:32:19;201:550:21;;;;;9610:32:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;9681:12:19;;:::i;:::-;5971:149:30;;;;;;;;;201:550:21;9794:45:19;201:550:21;9794:29:19;201:550:21;;;;;9794:29:19;:::i;:45::-;9870:16;9863:49;201:550:21;-1:-1:-1;;;;;9870:16:19;;;201:550:21;;;;9863:49:19;;;;201:550:21;9863:49:19;;9906:4;201:550:21;9863:49:19;;201:550:21;9863:49:19;;;;;;;;;;201:550:21;;;;;10029:21:19;201:550:21;9918:87:19;201:550:21;;;;10079:7:19;201:550:21;;9926:20:19;;;9918:87;:::i;10079:7::-;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10099:83:19;201:550:21;9375:10:19;10099:83;;201:550:21;;;;;;9863:49:19;;;201:550:21;9863:49:19;;201:550:21;9863:49:19;;;;;;201:550:21;9863:49:19;;;:::i;:::-;;;201:550:21;;;;;;9863:49:19;;;;;-1:-1:-1;9863:49:19;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29571:39:19;29590:20;;;;29571:39;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3585:10:0;201:550:21;953:10:1;3585::0;:::i;:::-;201:550:21;;3999:21:19;;201:550:21;;;;;;;;;;;;4089:12:19;;;;:::i;:::-;473:3:29;201:550:21;4118:19:19;;:::i;:::-;201:550:21;4118:55:19;473:3:29;;-1:-1:-1;;;;;4211:18:19;;:::i;:::-;201:550:21;4211:32:19;;:67;;;201:550:21;;;;-1:-1:-1;;;;;4318:29:19;;:::i;:::-;201:550:21;4318:43:19;;;:63;;;201:550:21;473:3:29;;;4454:19:19;;4433:40;4454:19;;:::i;:::-;4433:18;;;358:4:30;;;;;;;;;;;;;;;4433:40:19;4510:29;;:::i;:::-;-1:-1:-1;;;;;4479:28:19;;;201:550:21;;358:4:30;;;;;;;4571:17:19;;;-1:-1:-1;;;;;201:550:21;;;-1:-1:-1;;;;;4616:18:19;;:::i;:::-;201:550:21;4598:36:19;;4594:428;;201:550:21;5032:17:19;;;;:::i;:::-;5053:16;;;201:550:21;;5053:16:19;;-1:-1:-1;;;;;201:550:21;;;;;5032:37:19;201:550:21;;-1:-1:-1;;;;;5098:17:19;;:::i;:::-;201:550:21;358:4:30;;;;;;;-1:-1:-1;;;;;5150:17:19;;:::i;:::-;201:550:21;5123:82:19;;;;;;;201:550:21;;;;;;5123:82:19;;;;;;201:550:21;5123:82:19;;;201:550:21;5123:82:19;;;:::i;:::-;;;;;;;;;;;;;;5028:263;;;5319:7;5028:263;5319:7;:::i;:::-;201:550:21;;-1:-1:-1;;;;;201:550:21;;:::i;:::-;;;;4118:19:19;473:3:29;201:550:21;;;;;;;;;473:3:29;;201:550:21;-1:-1:-1;;;;;201:550:21;;:::i;:::-;;;473:3:29;;201:550:21;4318:29:19;201:550:21;-1:-1:-1;;;;;201:550:21;;;;;;;473:3:29;201:550:21;473:3:29;4318:29:19;5339:34;473:3:29;;201:550:21;5339:34:19;201:550:21;;5123:82:19;;;;;;;;:::i;:::-;201:550:21;;5123:82:19;;;;;;201:550:21;;;;;;;;;;;5028:263:19;5234:18;;;473:3:29;;5028:263:19;5319:7;5028:263;5319:7;:::i;473:3:29:-;201:550:21;473:3:29;;;;;4594:428:19;4905:11;4644:30;;;;;:::i;:::-;;473:3:29;;:::i;:::-;201:550:21;;;;4746:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;;4746:7:19;201:550:21;-1:-1:-1;201:550:21;4746:39:19;473:3:29;201:550:21;;;;;4318:29:19;4725:18;;473:3:29;201:550:21;;;4746:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;;4746:7:19;201:550:21;-1:-1:-1;201:550:21;4814:39:19;473:3:29;;;201:550:21;;;;4793:18:19;;473:3:29;4905:11:19;;:::i;:::-;-1:-1:-1;;;;;4945:18:19;;:::i;:::-;201:550:21;358:4:30;;;;;;;4996:18:19;;;:::i;:::-;;;:::i;:::-;4594:428;;;;473:3:29;201:550:21;473:3:29;;;;;4318:63:19;4365:11;201:550:21;;4365:11:19;;201:550:21;;;;4365:16:19;4318:63;;201:550:21;;;;;;;4211:67:19;4247:17;-1:-1:-1;;;;;4247:17:19;;:::i;:::-;201:550:21;4247:31:19;;4211:67;;473:3:29;201:550:21;473:3:29;;;;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;17744:35:19;201:550:21;;;;;;;;;;;17744:35:19;:::i;201:550:21:-;;;;;1706:38:25;201:550:21;;1722:21:25;201:550:21;;;;:::i;1722:21:25:-;1706:38;;:::i;201:550:21:-;;;;;;-1:-1:-1;;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;;:::i;:::-;;;;;;22586:7:19;201:550:21;;;22586:23:19;201:550:21;-1:-1:-1;201:550:21;;;;;22586:34:19;201:550:21;-1:-1:-1;201:550:21;22586:34:19;201:550:21;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;:::i;:::-;3585:10:0;201:550:21;;;;953:10:1;3585::0;:::i;:::-;-1:-1:-1;;;;;201:550:21;;2120:24:19;;;;:53;;;201:550:21;2120:81:19;;;201:550:21;;;;2252:43:19;1574:1;2252:43;;:90;;;201:550:21;;;;2393:30:19;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;15375:20:19;201:550:21;;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;15367:7:19;201:550:21;;-1:-1:-1;;;;;15367:52:19;201:550:21;-1:-1:-1;201:550:21;15367:52:19;201:550:21;;15367:66:19;15279:159;;2393:30;201:550:21;;;;;-1:-1:-1;;201:550:21;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;;;2544:75:19;;;;;;;201:550:21;;;;;2544:75:19;;;;;201:550:21;2544:75:19;;;201:550:21;2544:75:19;;;:::i;:::-;;;;;;;;;;;;;201:550:21;;;;2645:162:19;201:550:21;2645:162:19;;;201:550:21;2645:162:19;;201:550:21;;;;;;;;;;;;;;;;;;;;;;2645:162:19;;;;;;;;;;;;;;;;;201:550:21;3103:22:19;;;;;9219:21:15;358:4:30;2885:15:19;;3184:30;;;:::i;:::-;3259:20;;;:::i;:::-;201:550:21;;;358:4:30;;;;:::i;:::-;;;;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;;;;358:4:30;2925:511:19;201:550:21;2925:511:19;;358:4:30;2925:511:19;;;;358:4:30;2925:511:19;;;;358:4:30;201:550:21;;2925:511:19;;;358:4:30;201:550:21;;2925:511:19;;;358:4:30;2925:511:19;;;;358:4:30;2925:511:19;;;;358:4:30;2925:511:19;;;;358:4:30;-1:-1:-1;;;;;201:550:21;;2925:511:19;;;358:4:30;2925:511:19;;;;358:4:30;201:550:21;;;;;;;;;358:4:30;;;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;2925:511:19;;358:4:30;201:550:21;;358:4:30;;;201:550:21;;;;;;;;;;;;;;;358:4:30;201:550:21;2925:511:19;;358:4:30;;;;;;;;;;;;;;201:550:21;358:4:30;;201:550:21;2925:511:19;;358:4:30;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;2925:511:19;;358:4:30;201:550:21;;358:4:30;;201:550:21;;;;;;;;;;;;;;;358:4:30;201:550:21;2925:511:19;;358:4:30;201:550:21;;358:4:30;;;;;;;;;;;;;;;;;2925:511:19;;;358:4:30;201:550:21;;;;;;-1:-1:-1;;201:550:21;;;;;2925:511:19;;358:4:30;201:550:21;;358:4:30;;;201:550:21;;;;;;;;;;;;;;;358:4:30;2925:511:19;;;358:4:30;;;;;;;;;;;;;;;;;;;;2925:511:19;;;358:4:30;2925:511:19;;;358:4:30;2925:511:19;;;358:4:30;;;;;201:550:21;;;;;;;;;;;358:4:30;;201:550:21;358:4:30;;;2925:511:19;;;358:4:30;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;358:4:30;;;;2925:511:19;;;358:4:30;1574:1:19;358:4:30;;;;;;201:550:21;;;358:4:30;;;;;;2925:511:19;;;358:4:30;;;;;;;;201:550:21;;;358:4:30;;;;;;2925:511:19;;;358:4:30;;;;;;;;;201:550:21;;358:4:30;;;;;;2925:511:19;;358:4:30;;;;;;;;;201:550:21;;;;358:4:30;;;;;;3467:11:19;;;;:::i;:::-;201:550:21;;;;;;3491:39:19;;;201:550:21;;358:4:30;;;;:::i;:::-;-1:-1:-1;;;;;201:550:21;358:4:30;;3581:156:19;201:550:21;3581:156:19;;358:4:30;201:550:21;3581:156:19;;358:4:30;3581:156:19;201:550:21;3581:156:19;;358:4:30;201:550:21;;3541:202:19;;;;201:550:21;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3541:202:19;;;;;201:550:21;;;;;;358:4:30;;201:550:21;;358:4:30;;201:550:21;;3754:46:19;;;201:550:21;;;;;;;;2645:162:19;;;;;;;201:550:21;2645:162:19;;201:550:21;2645:162:19;;;;;;201:550:21;2645:162:19;;;:::i;:::-;;;201:550:21;;;;;;;;;;;2645:162:19;;;;;-1:-1:-1;2645:162:19;;;201:550:21;;;;;;;;;2544:75:19;;;;;201:550:21;2544:75:19;;:::i;:::-;201:550:21;2544:75:19;;;;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2252:90:19;2299:43;1488:2;2299:43;;;2252:90;;201:550:21;;;;;;;2120:81:19;201:550:21;-1:-1:-1;;;;;201:550:21;;2177:24:19;;2120:81;;:53;201:550:21;-1:-1:-1;;;;;201:550:21;;2148:25:19;;2120:53;;201:550:21;;;;;-1:-1:-1;;201:550:21;;;;;;11736:55:6;201:550:21;;:::i;:::-;;;;;22749:14:19;201:550:21;;-1:-1:-1;;;;;201:550:21;;;;;11736:55:6;4874:14;4782:123;-1:-1:-1;201:550:21;4874:14:6;201:550:21;;;-1:-1:-1;201:550:21;;4874:26:6;;4782:123;;11736:55;201:550:21;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;18176:25:19;18116:21;;;:::i;:::-;2211:38:25;:17;201:550:21;2211:17:25;;;201:550:21;;2211:38:25;:::i;:::-;18176:25:19;;:::i;:::-;201:550:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;5488:18:6;201:550:21;;;:::i;:::-;;;;22922:14:19;201:550:21;;;;;5488:18:6;:::i;:::-;201:550:21;;;22922:14:19;201:550:21;;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;15375:20:19;201:550:21;;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;15367:7:19;201:550:21;;-1:-1:-1;;;;;15367:52:19;201:550:21;-1:-1:-1;201:550:21;15367:52:19;201:550:21;;15367:66:19;15279:159;;201:550:21;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;2862:51:25;201:550:21;;;2888:25:25;18387:21:19;;;:::i;201:550:21:-;;;;;;;:::i;:::-;;;;14087:21:19;;201:550:21;;;;;;14155:7:19;201:550:21;;14549:6:19;201:550:21;;;;14178:12:19;;;:::i;:::-;14232:6;14220:10;;14232:6;;:::i;:::-;201:550:21;14374:42:19;201:550:21;;;;;14287:62:19;14295:19;;;;;14287:62;:::i;:::-;201:550:21;14374:42:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;14422:33:19;14437:18;;;:::i;:::-;14422:33;14155:7;14422:11;;201:550:21;;;;;;;14422:33:19;:::i;:::-;14484:7;;;;:::i;:::-;-1:-1:-1;;;;;14506:16:19;14220:10;14506:16;;201:550:21;;14549:6:19;:::i;:::-;201:550:21;;;;;14568:34:19;201:550:21;14220:10:19;14568:34;;201:550:21;;;;;;;;;;;;;-1:-1:-1;;201:550:21;;;;;;;3585:10:0;201:550:21;953:10:1;3585::0;:::i;:::-;201:550:21;;6521:21:19;;201:550:21;;;;;;;;;;;6709:7:19;201:550:21;;;6611:12:19;;;;:::i;:::-;6651:30;;;;:::i;:::-;6709:7;;:::i;201:550:21:-;-1:-1:-1;;201:550:21;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;201:550:21;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;201:550:21;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;201:550:21;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;;;;;:::o;:::-;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;:::o;:::-;;-1:-1:-1;;201:550:21;;;;;;;;;;-1:-1:-1;;;;;201:550:21;;;;;;;;;;;;;;;;:::o;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;358:4:30;201:550:21;;;;;;;;;;;;;:::o;:::-;;-1:-1:-1;201:550:21;;;;;-1:-1:-1;201:550:21;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;-1:-1:-1;201:550:21;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;4118:19:19;201:550:21;;;;;;;;;:::o;473:3:29:-;201:550:21;473:3:29;-1:-1:-1;;;;;201:550:21;;;;;;473:3:29;:::o;:::-;4247:17:19;473:3:29;-1:-1:-1;;;;;201:550:21;;;;;;473:3:29;:::o;:::-;4318:29:19;473:3:29;-1:-1:-1;;;;;201:550:21;;;;;;473:3:29;:::o;:::-;201:550:21;;358:4:30;;;;:::i;:::-;-1:-1:-1;473:3:29;;;;;;;;;;;201:550:21;473:3:29;;;;;;;;;;:::o;201:550:21:-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;358:4:30;;;:::i;:::-;201:550:21;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;4963:571:0:-;1584:61;201:550:21;;-1:-1:-1;;;;;201:550:21;;;;5251:1:0;201:550:21;;;;;;;;;;772:62:4;-1:-1:-1;;;;;772:62:4;;;;;;;201:550:21;772:62:4;;;;;201:550:21;5224:4:0;201:550:21;;;;;;;;;;;;;772:62:4;;;;;;:::i;:::-;841:420;;;;772:62;841:420;;;;;;;;4963:571:0;5270:10;5266:264;;4963:571;;;;;;:::o;5266:264::-;201:550:21;;5294:9:0;201:550:21;;;;;;1584:61:0;201:550:21;5352:60:0;;;;;201:550:21;;;;;;;5352:60:0;;;;;;201:550:21;5352:60:0;;5251:1;5352:60;;201:550:21;;772:62:4;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5352:60:0;;;;;;;;;;5290:234;201:550:21;;1584:61:0;201:550:21;;1584:61:0;201:550:21;5266:264:0;;;;;;;5352:60;201:550:21;5352:60:0;;;:::i;:::-;201:550:21;5352:60:0;;5290:234;5482:33;;201:550:21;5482:33:0;5251:1;201:550:21;772:62:4;201:550:21;5482:33:0;841:420:4;;;201:550:21;841:420:4;772:62;841:420;;772:62;841:420;;;;;;5275:363:25;5336:25;;;201:550:21;;;;5365:15:25;5336:44;5332:71;;201:550:21;5551:22:25;5430:21;5457:69;5430:21;5579:54;5430:21;;:::i;:::-;5479:35;5457:69;5479:47;:35;;;;:::i;:47::-;201:550:21;;;;;;5457:69:25;:::i;5551:22::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;5607:26:25;5365:15;5607:26;:::i;:::-;358:4:30;;;;;;;;;;;;;;5579:54:25;5275:363::o;5332:71::-;5390:7;;:::o;26218:602:19:-;201:550:21;;;;;;26369:29:19;:41;:29;;;;:::i;:41::-;201:550:21;;;;26420:11:19;;;26416:40;;-1:-1:-1;;;;;26484:17:19;;;201:550:21;;;;;;26544:7:19;201:550:21;;;;;-1:-1:-1;;;;;201:550:21;;-1:-1:-1;201:550:21;;;26544:7:19;201:550:21;-1:-1:-1;201:550:21;26587:23:19;473:3:29;201:550:21;473:3:29;;201:550:21;;;;;;26746:49:19;26636:17;;;;201:550:21;26636:27:19;201:550:21;;;;;26636:27:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;26669:38:19;201:550:21;;;;;26669:38:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;;;;;;;26746:49:19;201:550:21;;26746:49:19;;;;201:550:21;;;;;;;;;;;;;;;;;26746:49:19;;;;26218:602;:::o;201:550:21:-;;;;;;;26416:40:19;26441:8;;;;;201:550:21;26441:8:19;:::o;4883:323:25:-;201:550:21;5130:71:25;4883:323;4987:16;;;201:550:21;;;;;5032:39:25;5077:41;5032:39;;;;;:::i;:::-;5095:23;;;;:::i;:::-;358:4:30;201:550:21;358:4:30;;201:550:21;;;;358:4:30;;;;;;5077:41:25;201:550:21;;;;;;;;;;;;;;;;;;5130:71:25;4883:323::o;31602:279:19:-;-1:-1:-1;;;;;31775:28:19;31602:279;;31775:28;201:550:21;;;;31765:38:19;201:550:21;;31848:10:19;201:550:21;;31602:279:19:o;201:550:21:-;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;9047:198:15;201:550:21;9123:25:15;;9119:95;;201:550:21;;9047:198:15;:::o;9119:95::-;9165:42;;;9196:3;9165:42;201:550:21;;;;9165:42:15;;1190:188:16;;-1:-1:-1;;;;;8231:927:16;;;8200:24;-1:-1:-1;8231:927:16;;;;;;;-1:-1:-1;8231:927:16;;;;;;;1305:4;-1:-1:-1;8231:927:16;;;;;;;1190:188;8231:927;;1272:38;1268:106;;1190:188;:::o;1268:106::-;-1:-1:-1;;;;;1327:40:16;;-1:-1:-1;1327:40:16;201:550:21;8231:927:16;201:550:21;8231:927:16;-1:-1:-1;1327:40:16;8231:927;;1305:4;8231:927;;;;;;;;;;;;;;;;;;;-1:-1:-1;8231:927:16;;;;;5748:474:25;5859:16;;;201:550:21;;;;;;;;5975:15:25;;5952:38;;:94;;;;;5748:474;5941:147;;;5975:15;907:230:28;;;;;;5975:15:25;201:550:21;6106:111:25;5975:15;;907:230:28;201:550:21;;;;907:230:28;;;6106:111:25;;:::i;5941:147::-;6061:20;;;;:::o;5952:94::-;5995:17;;201:550:21;;;;5995:22:25;;-1:-1:-1;5995:22:25;:50;;5952:94;;;;;5995:50;201:550:21;;;;;;6021:24:25;5995:50;;;2330:320;809:58:26;2330:320:25;809:39:26;810:26;808:72;2330:320:25;2591:22;201:550:21;2508:19:25;;;201:550:21;;;;2591:22:25;;201:550:21;;;810:26:26;;:::i;808:72::-;5971:149:30;;;;;;;;;2330:320:25;:::o;13650:193:15:-;201:550:21;13724:24:15;;13720:93;;201:550:21;;13650:193:15;:::o;13720:93::-;13765:41;;;13796:2;13765:41;201:550:21;;;;13765:41:15;;10444:193;201:550:21;10518:24:15;;10514:93;;201:550:21;;10444:193:15;:::o;10514:93::-;10559:41;;;10590:2;10559:41;201:550:21;;;;10559:41:15;;23681:344:19;23856:158;23681:344;23778:11;;;;:::i;:::-;201:550:21;;358:4:30;;;;:::i;:::-;1650:16:19;358:4:30;;-1:-1:-1;23856:158:19;;;358:4:30;-1:-1:-1;201:550:21;23856:158:19;;201:550:21;23978:4:19;23856:158;;;473:3:29;-1:-1:-1;23856:158:19;;;473:3:29;23856:158:19;:::i;201:550:21:-;;;;;;;;;;:::o;2992:565:25:-;3408:144;2992:565;3517:35;3103:21;;;:::i;:::-;3408:100;8687:52;3208:17;8687:39;3208:17;;;201:550:21;8688:24:25;3293:22;201:550:21;808:72:26;809:58;201:550:21;3335:16:25;3293:22;;;201:550:21;;;3335:16:25;;201:550:21;;;809:39:26;810:26;201:550:21;;;;;;810:26:26;:::i;808:72::-;201:550:21;;8688:24:25;:::i;8687:52::-;201:550:21;3408:73:25;201:550:21;;3432:11:25;;3408:35;3432:11;;;;201:550:21;;;;;;;3408:35:25;:::i;:::-;5971:149:30;;;;;;;;;;201:550:21;;3408:73:25;:::i;:::-;201:550:21;;;;3408:100:25;;:::i;:::-;3517:35;;:::i;:::-;3408:144;;:::i;24337:432:19:-;;-1:-1:-1;;;;;24723:41:19;24337:432;201:550:21;-1:-1:-1;201:550:21;24469:7:19;201:550:21;;;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;;;;-1:-1:-1;201:550:21;24469:7:19;358:4:30;;24498:16:19;;201:550:21;;;;;;;;24556:14:19;;358:4:30;201:550:21;;;;;;24609:27:19;;201:550:21;;;;24661:13:19;201:550:21;;;24699:13:19;24661;;;201:550:21;;;;;24699:13:19;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;24723:41:19;201:550:21;;;;;;24723:41:19;;201:550:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24723:41:19;;;;24337:432::o;25354:860::-;25825:127;25777:175;25354:860;;25567:175;201:550:21;25516:16:19;;;201:550:21;;25667:19:19;;;;25615:127;201:550:21;25694:22:19;201:550:21;;;;;;25694:22:19;;201:550:21;;;;;25615:127:19;;;:::i;25567:175::-;201:550:21;;;;;;25904:22:19;;;;201:550:21;;;;;25825:127:19;;:::i;:::-;358:4:30;;;;;;;;;;;;25777:175:19;201:550:21;;;;;;;;;;;;;;;25777:175:19;201:550:21;25694:22:19;25989:26;;201:550:21;;;;;26036:50:19;;:137;;;;;25354:860;201:550:21;;;;;25354:860:19:o;201:550:21:-;;-1:-1:-1;201:550:21;25516:16:19;-1:-1:-1;201:550:21;26036:137:19;201:550:21;;-1:-1:-1;201:550:21;;;;1439:411:29;;-1:-1:-1;;1439:411:29;;;;;;;;;;201:550:21;1439:411:29;;;;;;;;;;;201:550:21;;;;26098:75:19;;26036:137;;;;201:550:21;;;;;;;-1:-1:-1;201:550:21;;;;;;;;;;;;;:::o;:::-;;;;;:::o;:::-;;;;;;;;;4546:195:25;201:550:21;4718:17:25;4692:24;;;:::i;:::-;4718:17;;201:550:21;;482:3:27;201:550:21;;;;;;;482:3:27;201:550:21;;;;;;;10262:25:13;731:126:27;10262:25:13;:::i;4592:206:0:-;201:550:21;-1:-1:-1;;;;;4763:30:0;4592:206;201:550:21;358:4:30;;1584:61:0;358:4:30;;;1584:61:0;358:4:30;201:550:21;;;;;4763:30:0;4592:206::o;3659:191:25:-;201:550:21;3827:17:25;3801:24;;;:::i;:::-;3827:17;;201:550:21;;;482:3:27;201:550:21;;;;;;;482:3:27;201:550:21;;;;;;;1818:93:27;;;:::i;24845:219:19:-;24971:18;25041;201:550:21;24845:219:19;;25017:42;24845:219;24993:18;24971:40;24993:18;;;;:::i;:::-;24971;;201:550:21;;;;;24971:40:19;:::i;25041:18::-;25017:20;;201:550:21;;;;;25017:42:19;:::i;:::-;201:550:21;-1:-1:-1;;201:550:21;;;;;;24845:219:19:o;6464:410:25:-;;6616:253;201:550:21;6464:410:25;-1:-1:-1;;;;;6643:16:25;;;201:550:21;;2211:38:25;201:550:21;;;;2211:17:25;201:550:21;2211:17:25;;;201:550:21;;2211:38:25;:::i;:::-;6804:16;201:550:21;6849:11:25;201:550:21;6804:16:25;;;201:550:21;;6849:11:25;;201:550:21;;;;;;;6616:253:25;;;;;201:550:21;6616:253:25;;;;;201:550:21;;;;;;;;;5971:149:30;;;;;;;;;201:550:21;;;;;;;;6616:253:25;;;;;;;-1:-1:-1;6616:253:25;;;6603:266;6464:410;:::o;6616:253::-;;;201:550:21;6616:253:25;;201:550:21;6616:253:25;;;;;;201:550:21;6616:253:25;;;:::i;:::-;;;201:550:21;;;;;6464:410:25;:::o;6616:253::-;;;-1:-1:-1;6616:253:25;;3954:195;201:550:21;4126:17:25;4100:24;;;:::i;:::-;4126:17;;201:550:21;;;482:3:27;201:550:21;;;;;;;482:3:27;201:550:21;;;;;;;10262:25:13;1107:126:27;10262:25:13;:::i;4251:191:25:-;201:550:21;4419:17:25;4393:24;;;:::i;:::-;4419:17;;201:550:21;;482:3:27;201:550:21;;;;;;;482:3:27;201:550:21;;;;;;;1479:93:27;;;:::i;4377:198:15:-;201:550:21;4453:25:15;;4449:95;;201:550:21;;4377:198:15;:::o;4449:95::-;4495:42;;;4526:3;4495:42;201:550:21;;;;4495:42:15;;24162:171:19;201:550:21;-1:-1:-1;201:550:21;24236:14:19;201:550:21;;10828:50:6;-1:-1:-1;;;;;201:550:21;-1:-1:-1;201:550:21;;;10828:50:6;;;:::i;:::-;201:550:21;;;24304:24:19;-1:-1:-1;24304:24:19;;24162:171::o;201:550:21:-;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;27408:317:19;809:58:26;27408:317:19;809:39:26;810:26;808:72;27408:317:19;27690:21;27646:22;201:550:21;;;;;;27646:22:19;;201:550:21;;;27690:21:19;;:::i;7026:1153:25:-;;201:550:21;7173:16:25;;;201:550:21;;7199:27:25;;;;7195:56;;7280:18;;;201:550:21;;;;;7308:17:25;;;7304:46;;201:550:21;;;;;;;;;;7476:22:25;;;201:550:21;;;7525:16:25;;;201:550:21;;;810:26:26;;;;;;;:::i;:::-;809:39;;;:::i;:::-;:58;;;;:::i;:::-;808:72;;;:::i;:::-;8688:24:25;;;;;:::i;:::-;8687:39;;;;:::i;:::-;:52;;;;:::i;:::-;810:26:26;;;;:::i;:::-;809:39;;;:::i;:::-;:58;;;;:::i;:::-;808:72;;;:::i;:::-;8688:24:25;;;;:::i;:::-;8687:39;;;;:::i;:::-;:52;;;;:::i;:::-;5971:149:30;;;;;;;;;;;;;;;;;;;;;8056:72:25;;;;:::i;:::-;859:211:29;;-1:-1:-1;;859:211:29;;;;;;;;;7026:1153:25;:::o;7195:56::-;7236:8;;;201:550:21;7236:8:25;:::o;3233:412:30:-;3313:328;-1:-1:-1;;3313:328:30;;;;;;;;;;;;;;;;;;;;3233:412;:::o;201:550:21:-;;;;;;;;-1:-1:-1;201:550:21;;-1:-1:-1;201:550:21;;;-1:-1:-1;201:550:21;:::o;:::-;;;;;;;;;;4334:414:30;4414:330;;;;;;;;;;;;;;;;;;;4334:414;:::o;3840:302::-;3922:216;;;;;;;;;;;3840:302;:::o;32270:923:19:-;;;;;32680:43;808:72:26;809:58;810:26;809:39;810:26;;;;:::i;808:72::-;201:550:21;;;32680:43:19;;:::i;:::-;32777:27;;;;201:550:21;;-1:-1:-1;201:550:21;;;;;;;;;;;;;;;;;;;33026:31:19;808:72:26;809:58;810:26;809:39;810:26;33008:49:19;810:26:26;;;:::i;808:72::-;33026:31:19;;201:550:21;33008:49:19;;:::i;:::-;:69;201:550:21;;33127:28:19;;;:::i;:::-;201:550:21;;;19427:19:15;;;;19423:88;;33119:69:19;;32270:923;:::o;19423:88:15:-;19463:41;-1:-1:-1;19463:41:15;19493:3;19463:41;201:550:21;;;;-1:-1:-1;19463:41:15;31630:290;31815:16;31799:33;;31795:95;;31630:290;:::o;31795:95::-;31849:34;;;;201:550:21;;31849:34:15;;15821:173;15904:1;15896:9;;15892:71;;15821:173;:::o;15892:71::-;15922:34;15904:1;15922:34;;201:550:21;;15904:1:15;15922:34;6768:125:2;201:550:21;3095:66:2;201:550:21;;;;6830:18:2;6826:63;;6768:125::o;6826:63::-;6865:17;-1:-1:-1;6865:17:2;;-1:-1:-1;6865:17:2;1690:138:28;201:550:21;1766:6:28;;;1762:33;;201:550:21;;;;;1808:15:28;201:550:21;;;1808:15:28;;:::i;1762:33::-;1781:14;;;;:::i;10113:264:13:-;;10262:25;;;;;:::i;:::-;10312:26;10342:25;;;;10262:110;10342:25;;:29;;10262:110;;:::i;10342:25::-;201:550:21;-1:-1:-1;201:550:21;;;;;-1:-1:-1;201:550:21;2436:356:6;-1:-1:-1;201:550:21;;;4874:14:6;;;201:550:21;;;;;;2516:21:6;;201:550:21;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;201:550:21;;;;;;;;;;;;;;;2687:14:6;201:550:21;;;;;;;2737:11:6;:::o;2511:277::-;2769:12;;201:550:21;2769:12:6;:::o;6665:3327:13:-;;;-1:-1:-1;;1329:137:13;;;;;;;;;;;;;;;;;;6915:9;;6911:327;;7336:19;;;;7332:128;;7707:262;;;;201:550:21;;;8170:31:13;;8209:330;;;8957:1;928:4:14;8938:1:13;928:4:14;8937:21:13;928:4:14;;;8957:1:13;201:550:21;928:4:14;;;;8957:1:13;201:550:21;928:4:14;;;;8957:1:13;201:550:21;928:4:14;;;;8957:1:13;201:550:21;928:4:14;;;;8957:1:13;201:550:21;928:4:14;;;;8957:1:13;201:550:21;928:4:14;8209:330:13;;;;201:550:21;8209:330:13;;;7707:262;;;;;;928:4:14;7707:262:13;;8209:330;8590:18;928:4:14;6665:3327:13;:::o;7332:128::-;1779:113:14;;201:550:21;1779:113:14;7387:16:13;4875:5;928:4:14;;4869:42:13;1779:113:14;;;;;6911:327:13;201:550:21;;;;;;;;;7205:24:13;:::o","linkReferences":{},"immutableReferences":{}}}}}}},"signatures":{"function":[{"signature":"addAsset(address,uint8,address,address,bytes)","signatureHash4":"0x1e83287e","signatureHash32":"0x1e83287e398ea4dda7d0bbb21c9d50d73110dcd04fe9b47e944b777e67c3c2d3"},{"signature":"addSpoke(uint256,address,(uint40,uint40,uint24,bool,bool))","signatureHash4":"0xc25d82fe","signatureHash32":"0xc25d82fe242c6545544c8bb350341e58182ec96323c0c36286e69c691e1323e5"},{"signature":"add(uint256,uint256)","signatureHash4":"0x771602f7","signatureHash32":"0x771602f7f25ce61b0d4f2430f7e4789bfd9e6e4029613fda01b7f2c89fbf44ad"},{"signature":"authority()","signatureHash4":"0xbf7e214f","signatureHash32":"0xbf7e214f31a3f38fe9f4a469084b43f7ba2b08baeee33415b5739f90405e315f"},{"signature":"draw(uint256,uint256,address)","signatureHash4":"0xa436458d","signatureHash32":"0xa436458d127e90a0a092219202fb7c2cd3f93755aabdaf59c9e2593de7bf113c"},{"signature":"eliminateDeficit(uint256,uint256,address)","signatureHash4":"0xbe105280","signatureHash32":"0xbe105280ee148884644ebd2e567c6ee36751e8839bc544ed51ff73912cf31631"},{"signature":"getAddedAssets(uint256)","signatureHash4":"0x24ba667f","signatureHash32":"0x24ba667fd072bc3b3c2c9a010bbd847c6c80bcf851d09b873624b36049fdb3a6"},{"signature":"getAddedShares(uint256)","signatureHash4":"0xb0745f2b","signatureHash32":"0xb0745f2b891b825b9d0d458e741a3ae81145fe71cbc64e738036ee427110cf70"},{"signature":"getAssetAccruedFees(uint256)","signatureHash4":"0xf51f1a35","signatureHash32":"0xf51f1a357f4f888163ba85fb36d023f14313b85933cfd89d2b391f73a1b0dbb5"},{"signature":"getAssetConfig(uint256)","signatureHash4":"0xde31ea9f","signatureHash32":"0xde31ea9f768d10f11db2c886aa5b2588f263173ba9f283c1451210464e2edf91"},{"signature":"getAssetCount()","signatureHash4":"0xa0aead4d","signatureHash32":"0xa0aead4d7e94e60a8307fffdae32335e0d9d9b0522d9247d941f983ed01f4875"},{"signature":"getAssetDeficitRay(uint256)","signatureHash4":"0xd5d15a11","signatureHash32":"0xd5d15a111981c15f3d22399fae2bcb47fe044801f1791dcd9f9040a71a05aa84"},{"signature":"getAssetDrawnIndex(uint256)","signatureHash4":"0xb5f460c8","signatureHash32":"0xb5f460c81ecc4af6724afe7a44a3dacae9b3f44377ea94c18b145a19b4aeb51c"},{"signature":"getAssetDrawnRate(uint256)","signatureHash4":"0x8accc4a3","signatureHash32":"0x8accc4a313116d6bbc6a5ae4716937cdee88d3c24dfedb28a9767800e89e9924"},{"signature":"getAssetDrawnShares(uint256)","signatureHash4":"0x7658c644","signatureHash32":"0x7658c644ea8cf683cd03ee2e2a11163d7fcdbac899e5958ff2ce888fb1e06e49"},{"signature":"getAssetId(address)","signatureHash4":"0xd6abe642","signatureHash32":"0xd6abe6422e60aaf64b95b61f769fd4d7d188ed9851ea71413ab8f02c449b664f"},{"signature":"getAssetLiquidity(uint256)","signatureHash4":"0x9f9b1990","signatureHash32":"0x9f9b199072fd80f011505730924f27358bb5803840f4523d55020c123cf7341e"},{"signature":"getAssetOwed(uint256)","signatureHash4":"0x152ee0d3","signatureHash32":"0x152ee0d3df3f5260c38f1c18656d561c3b6f799a7424d74a1e5dd268b649cef3"},{"signature":"getAssetPremiumData(uint256)","signatureHash4":"0x39921637","signatureHash32":"0x399216370d56d53f3282be0503ab9b30fef59bf91588f206caa696d589b41311"},{"signature":"getAssetPremiumRay(uint256)","signatureHash4":"0x403d7778","signatureHash32":"0x403d77789b8a52a229ac7e2189cbccddfaf7d99667e20c4dd53591523ad9a07a"},{"signature":"getAssetSwept(uint256)","signatureHash4":"0x41a009eb","signatureHash32":"0x41a009ebdc342532ab026095a5610d3a779f461f65d3eb28b7aedac73073c165"},{"signature":"getAssetTotalOwed(uint256)","signatureHash4":"0x0752c44c","signatureHash32":"0x0752c44c9f55701a9da8176a203b1ecd54129b3260f19aea3d37f0d9a2573085"},{"signature":"getAsset(uint256)","signatureHash4":"0xeac8f5b8","signatureHash32":"0xeac8f5b8089659798f7b4dd7aba7cd313ffb299f494d25ef402ae53be779709c"},{"signature":"getAssetUnderlyingAndDecimals(uint256)","signatureHash4":"0xde079b57","signatureHash32":"0xde079b571bb4a6b33ef15f5d7e5cb6311f4dab01c4ab41592f7a47e9ff71cdff"},{"signature":"getSpokeAddedAssets(uint256,address)","signatureHash4":"0x9c7ee64f","signatureHash32":"0x9c7ee64f15da1bbc84fdd379f458f6fb142c419da0c4c37bd99d1a0982213f59"},{"signature":"getSpokeAddedShares(uint256,address)","signatureHash4":"0xe5c92745","signatureHash32":"0xe5c9274539666ef5fd0f87853668716780bfa1a082402ee523c6315d13b71a2c"},{"signature":"getSpokeAddress(uint256,uint256)","signatureHash4":"0x132a8bea","signatureHash32":"0x132a8bea2c872e539d8ef1f663e7ae2420b890205490c99201177a5b7664bd75"},{"signature":"getSpokeConfig(uint256,address)","signatureHash4":"0xf701f06e","signatureHash32":"0xf701f06e3bc0509dac5ebbc9c8f56b1d3e0286ffc9c10e48d3c9b47ac6544234"},{"signature":"getSpokeCount(uint256)","signatureHash4":"0x58a54078","signatureHash32":"0x58a54078de19f842e4ced3528555c1ce26d8b2e46c32e42becbf1a876721ea2b"},{"signature":"getSpokeDeficitRay(uint256,address)","signatureHash4":"0x21a3bebc","signatureHash32":"0x21a3bebcac52c3f1874bd9adf5779ed3248ed68edd17d627c04730e25e9b1273"},{"signature":"getSpokeDrawnShares(uint256,address)","signatureHash4":"0x5ff1c482","signatureHash32":"0x5ff1c4827bc5e37bc4fca70776f0f21be19153394faf686a2f8d703940e26853"},{"signature":"getSpokeOwed(uint256,address)","signatureHash4":"0x3c9a9ee5","signatureHash32":"0x3c9a9ee53a675083a24fbb1866f4196db329c9fbd3c41b64773b4ffbd338fb9c"},{"signature":"getSpokePremiumData(uint256,address)","signatureHash4":"0xc435e928","signatureHash32":"0xc435e92843159d41b4af963308f79924e827447154dc72e7e37605886356b51a"},{"signature":"getSpokePremiumRay(uint256,address)","signatureHash4":"0xd3c6a11d","signatureHash32":"0xd3c6a11d76c304cd89b15f3cd4d3c89ab898afffdf9c05cde68597116325352b"},{"signature":"getSpokeTotalOwed(uint256,address)","signatureHash4":"0xefdba7c0","signatureHash32":"0xefdba7c0fc8ead5eba92d8e4665291aad7816915d953948b13703f1fa10fdecd"},{"signature":"getSpoke(uint256,address)","signatureHash4":"0xfce56a0b","signatureHash32":"0xfce56a0be08630edff2c631574c3f94f5f8b115caff52469ef33793be2aa2f71"},{"signature":"HUB_REVISION()","signatureHash4":"0xb33454e5","signatureHash32":"0xb33454e5cfcbc06fbfaa02d68c88009c85c5752904d73d583b9e9ef49a64d025"},{"signature":"initialize(address)","signatureHash4":"0xc4d66de8","signatureHash32":"0xc4d66de8473e8f74cb05df264ee8262da16b56717ef1f05d73bfdcea3adc85e5"},{"signature":"isConsumingScheduledOp()","signatureHash4":"0x8fb36037","signatureHash32":"0x8fb360371b4a91c52d4438e929079942d9e7a4a71ec4811fe18ecb85a02bdb76"},{"signature":"isSpokeListed(uint256,address)","signatureHash4":"0x1901057d","signatureHash32":"0x1901057dd10ea4195f8821174e3be43360612bf51cfa215398f9f0efa6d445e7"},{"signature":"isUnderlyingListed(address)","signatureHash4":"0x0c90e7fe","signatureHash32":"0x0c90e7fe956d6542924f746c6d0f94c65fc8d53d6ebf6f8f1f38148efe595549"},{"signature":"MAX_ALLOWED_SPOKE_CAP()","signatureHash4":"0xa0b3d9d8","signatureHash32":"0xa0b3d9d829d70f764fe27f02fbd4421465d2a4e41fa27c0a8ece95901323fbf8"},{"signature":"MAX_ALLOWED_UNDERLYING_DECIMALS()","signatureHash4":"0xf8998605","signatureHash32":"0xf899860563f47d1667506d3669118a8eff71d9f52a4a6a45fd54fde19308b9cd"},{"signature":"MAX_RISK_PREMIUM_THRESHOLD()","signatureHash4":"0x33697066","signatureHash32":"0x3369706683c460098f07830070d63df1657f3fc0fa74e10dbb25cde4df9c5a27"},{"signature":"MIN_ALLOWED_UNDERLYING_DECIMALS()","signatureHash4":"0xf91ebd52","signatureHash32":"0xf91ebd520183b0bbea9ba06e32d3e76da10c624a743ac6c98fd4729460e0af28"},{"signature":"mintFeeShares(uint256)","signatureHash4":"0x033a0695","signatureHash32":"0x033a06950354711ce7a999aa92d44eeea95fef535a9a214dc15f09e366f89218"},{"signature":"payFeeShares(uint256,uint256)","signatureHash4":"0x83e4bcb7","signatureHash32":"0x83e4bcb7d3ea15b31176f2bde7ce0295168010dfac65c749660b995e430d53fe"},{"signature":"previewAddByAssets(uint256,uint256)","signatureHash4":"0xceb233b3","signatureHash32":"0xceb233b3654a1effe2c4aab54edc9d12e9fccbbf0c8c49964b615f6782e82c4f"},{"signature":"previewAddByShares(uint256,uint256)","signatureHash4":"0x80c099f4","signatureHash32":"0x80c099f46d41f9903520f5401e0c4a8dc36832902f2596338101b1efd4c0376b"},{"signature":"previewDrawByAssets(uint256,uint256)","signatureHash4":"0x228e731f","signatureHash32":"0x228e731fd31f3426f2b4ed8a8ac9a9bb526d81153a3a2cf51159f365effe4d4e"},{"signature":"previewDrawByShares(uint256,uint256)","signatureHash4":"0x3a445c4e","signatureHash32":"0x3a445c4e8f97462cea4ef27b483c48218249f32ca5a917af6df90ea89160d7d9"},{"signature":"previewRemoveByAssets(uint256,uint256)","signatureHash4":"0xf8447aaf","signatureHash32":"0xf8447aaf6aa0f2a374ce14f08422ffb2c2453fdf52be4b036a9a6a1009bf22b1"},{"signature":"previewRemoveByShares(uint256,uint256)","signatureHash4":"0xc04d164e","signatureHash32":"0xc04d164e989cf43b46edbb81146e58ec5ca5859c19732e4547f2b9f9c3226b88"},{"signature":"previewRestoreByAssets(uint256,uint256)","signatureHash4":"0xaab9eb07","signatureHash32":"0xaab9eb07eabc7a9b41df002f8fd8ae583ebc4ffd8d67c6e8cbd6bc032aa369eb"},{"signature":"previewRestoreByShares(uint256,uint256)","signatureHash4":"0x5e39616d","signatureHash32":"0x5e39616d35142969ba6aa3da46c195f74f71dfbcfdcc2599c74a6cb5a36dff95"},{"signature":"reclaim(uint256,uint256)","signatureHash4":"0x7333a3b4","signatureHash32":"0x7333a3b441b6f54e6531e50c211a93acce88b6714131412e15432d2fc6a691d1"},{"signature":"refreshPremium(uint256,(int256,int256,uint256))","signatureHash4":"0x341f7dcf","signatureHash32":"0x341f7dcf361f17d794860022909552790d18f531de6308c9a5e21ba762e44e3f"},{"signature":"remove(uint256,uint256,address)","signatureHash4":"0xe840427d","signatureHash32":"0xe840427d1918a536625faaf15d6bb6c7e7cbff1b9fa376e5c388883396ccc429"},{"signature":"reportDeficit(uint256,uint256,(int256,int256,uint256))","signatureHash4":"0xcc0e1c1c","signatureHash32":"0xcc0e1c1ca4c9182fe1d7dc8bc8e7d4f388546fab39cb215c9d26bb91eae08646"},{"signature":"restore(uint256,uint256,(int256,int256,uint256))","signatureHash4":"0x2a5b3803","signatureHash32":"0x2a5b3803a95a397883f1bdafa11ffd7d01d23880581a1ad0339b14a3020db259"},{"signature":"setAuthority(address)","signatureHash4":"0x7a9e5e4b","signatureHash32":"0x7a9e5e4b0fcd5d26f54a5ddb833b014450a2d8c913fa9b2622bbd5aad903cdf4"},{"signature":"setInterestRateData(uint256,bytes)","signatureHash4":"0xa467cc59","signatureHash32":"0xa467cc59c7ad3f3cf733899a410bc13743aff10b1d895cfd164b02baf3a68201"},{"signature":"sweep(uint256,uint256)","signatureHash4":"0x066dd830","signatureHash32":"0x066dd830881a9083823fe799d0d9ef0a866f2df614dc8715c784bfc91997209a"},{"signature":"transferShares(uint256,uint256,address)","signatureHash4":"0x87a7dc77","signatureHash32":"0x87a7dc77d194ca759d704fc42949c2414446d1c3ba31ffdc02952a9acb23eba0"},{"signature":"updateAssetConfig(uint256,(address,uint16,address,address),bytes)","signatureHash4":"0x24e4c1af","signatureHash32":"0x24e4c1af535e60b3e238897c4f7f93b9c9407dbec80583c320607c87607ae38a"},{"signature":"updateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))","signatureHash4":"0xa2763d29","signatureHash32":"0xa2763d299a4cccc30623dd2dfc7c30bdeeab5e60072ed4b0fbf45fbaca2f6bb9"}],"event":[{"signature":"AddAsset(uint256,address,uint8)","signatureHash4":"0x92fb402b","signatureHash32":"0x92fb402b777f3710166f15b30098f41042b439850df67d0195196d125458e7b3"},{"signature":"AddSpoke(uint256,address)","signatureHash4":"0x47acdb60","signatureHash32":"0x47acdb603dbca71028fbd9b37192e17a62e64fa160e2e607eef3853b792ea5ab"},{"signature":"Add(uint256,address,uint256,uint256)","signatureHash4":"0xb233dd05","signatureHash32":"0xb233dd05ed21346e144167b35a6213bcf04768dbdffdc8339e8b027b94b9f305"},{"signature":"AuthorityUpdated(address)","signatureHash4":"0x2f658b44","signatureHash32":"0x2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad"},{"signature":"Draw(uint256,address,uint256,uint256)","signatureHash4":"0xe2497bc4","signatureHash32":"0xe2497bc41b1fa7c4ba996f24dc2affdffb2a5571584db6db0eed8fbbf1dc8517"},{"signature":"EliminateDeficit(uint256,address,address,uint256,uint256)","signatureHash4":"0xe97b8576","signatureHash32":"0xe97b8576ac531cdc817b933309d0518ca3d26c6b46d490f3ae9fa39426a141ee"},{"signature":"Initialized(uint64)","signatureHash4":"0xc7f505b2","signatureHash32":"0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"},{"signature":"MintFeeShares(uint256,address,uint256,uint256)","signatureHash4":"0xafd21228","signatureHash32":"0xafd21228e21de4a3f779e1cc3617e12672c3da091dcf3812a931036aa0bf633c"},{"signature":"Reclaim(uint256,address,uint256)","signatureHash4":"0x56611183","signatureHash32":"0x566111831db1f090374baff3c3f9fc512084f5a9b8f5b199fb475d9c43a8013f"},{"signature":"RefreshPremium(uint256,address,(int256,int256,uint256))","signatureHash4":"0x3fa96ecf","signatureHash32":"0x3fa96ecf17429fddfbb919a64196f4e43f71b57f0c5c38c49a21c8e1e763d18c"},{"signature":"Remove(uint256,address,uint256,uint256)","signatureHash4":"0x535be2ff","signatureHash32":"0x535be2ff85ab4c5d0991e10dc057a4951ea2bac426ffb036eded23036a3942b2"},{"signature":"ReportDeficit(uint256,address,uint256,(int256,int256,uint256),uint256)","signatureHash4":"0x4845ee5c","signatureHash32":"0x4845ee5c72bde2b62defc8a1ca2f0fc3313b2d9e799997ce4f6776da9773bcbf"},{"signature":"Restore(uint256,address,uint256,(int256,int256,uint256),uint256,uint256)","signatureHash4":"0x119e7f99","signatureHash32":"0x119e7f996dc987b3ae79eb3735f1620c4292f6a7761a1e0f834c445f7798b912"},{"signature":"Sweep(uint256,address,uint256)","signatureHash4":"0x69bb3893","signatureHash32":"0x69bb3893073d7a893f3933f3871309fc25acfc72e365b71f554d439a85b20e8b"},{"signature":"TransferShares(uint256,address,address,uint256)","signatureHash4":"0x0d93b0e8","signatureHash32":"0x0d93b0e8579bc9db73c85a1fb79d785ffc47f8e20d346253f809cc98c48292a0"},{"signature":"UpdateAssetConfig(uint256,(address,uint16,address,address))","signatureHash4":"0xea358cc4","signatureHash32":"0xea358cc423f2a5739a0914913452665f0a41d404780bfe9038844d2980e5b974"},{"signature":"UpdateAsset(uint256,uint256,uint256,uint256)","signatureHash4":"0xa1facf11","signatureHash32":"0xa1facf110ded5028ee267fa3d5986f2aa4dc14230b79ffd27e95760f14883350"},{"signature":"UpdateSpokeConfig(uint256,address,(uint40,uint40,uint24,bool,bool))","signatureHash4":"0x90984699","signatureHash32":"0x90984699e37aaae5f79c2f33e480f273509662005a8ff82a17b325eb7072454e"}],"error":[{"signature":"AccessManagedInvalidAuthority(address)","signatureHash4":"0xc2f31e5e","signatureHash32":"0xc2f31e5ee06c96eddd5864bf58d26da15afa7233cb6f74e000aa686fca7a7a0b"},{"signature":"AccessManagedRequiredDelay(address,uint32)","signatureHash4":"0xaf77169d","signatureHash32":"0xaf77169dad650be42a753d4bbd4f4ad0d10be80053e495da3bb1525746eda4e4"},{"signature":"AccessManagedUnauthorized(address)","signatureHash4":"0x068ca9d8","signatureHash32":"0x068ca9d827f779c08fd30d7fda45faef5f2a6b2e57f8b809b3c6bbed99f5fb1f"},{"signature":"AddCapExceeded(uint256)","signatureHash4":"0xde3fc6ae","signatureHash32":"0xde3fc6aee69dbbec9a2f7c28d2693b906873fedfc5a9f02853bf55bed46fb59f"},{"signature":"AssetNotListed()","signatureHash4":"0xb77e1e0f","signatureHash32":"0xb77e1e0fd961542ca6bcecd4d42fe3fa2e9e586f1c9f436d9000c1cfcd839c6e"},{"signature":"DrawCapExceeded(uint256)","signatureHash4":"0x3ad30dd0","signatureHash32":"0x3ad30dd03b1bf1609f8e7f671bc9350110d162bcd9bbdc1f449c1bd229420f76"},{"signature":"InsufficientLiquidity(uint256)","signatureHash4":"0xc730333f","signatureHash32":"0xc730333fa762d7e23f5ff75a9fa2a79a8d4c395282689cd949d10abc9959c023"},{"signature":"InsufficientTransferred(uint256)","signatureHash4":"0x80561eeb","signatureHash32":"0x80561eeb31614a87ae90391b109fd8eebf8fd10e34717989b36c9de264883207"},{"signature":"InvalidAddress()","signatureHash4":"0xe6c4247b","signatureHash32":"0xe6c4247b90bd06996a32d386bb770af9c0018dd1b0ebbb2df2c4499f1eda7b16"},{"signature":"InvalidAmount()","signatureHash4":"0x2c5211c6","signatureHash32":"0x2c5211c6cb73b16841677a034781e8336d18ce66df858e54153c86854e11f7b8"},{"signature":"InvalidAssetDecimals()","signatureHash4":"0xe2364765","signatureHash32":"0xe2364765411dd673f16407cd289b5e0a5ef520c7b451cd71029790adeec4d2c5"},{"signature":"InvalidInitialization()","signatureHash4":"0xf92ee8a9","signatureHash32":"0xf92ee8a957075833165f68c320933b1a1294aafc84ee6e0dd3fb178008f9aaf5"},{"signature":"InvalidInterestRateStrategy()","signatureHash4":"0x38ad7932","signatureHash32":"0x38ad79320b3e4b32db9ac6cb2a92c30586c354501f2e3b4a6fb367f9978c7deb"},{"signature":"InvalidLiquidityFee()","signatureHash4":"0xe15e46cb","signatureHash32":"0xe15e46cbcb7aaf83e1d2bb0f6d26b055a62b135ca156c6a053b620ed7e8208b4"},{"signature":"InvalidPremiumChange()","signatureHash4":"0xa664e075","signatureHash32":"0xa664e075869fc232bbdf51070938880510d93cf39c4da59dcb760ee3fb38687b"},{"signature":"InvalidReinvestmentController()","signatureHash4":"0x91eaafa1","signatureHash32":"0x91eaafa1b7cf791dab34627c37f196b90b6a1905ce2862b499e837d7c44cc0a9"},{"signature":"InvalidShares()","signatureHash4":"0x6edcc523","signatureHash32":"0x6edcc5232bad22a9fc844f62349d66192e45664a1e24b557e8ed043ba3c3dfd4"},{"signature":"NotInitializing()","signatureHash4":"0xd7e6bcf8","signatureHash32":"0xd7e6bcf8597daa127dc9f0048d2f08d5ef140a2cb659feabd700beff1f7a8302"},{"signature":"OnlyReinvestmentController()","signatureHash4":"0x3c6b7746","signatureHash32":"0x3c6b77469dd3a0898d470cc771a4fb0f413d66b022681692111bced8035fb871"},{"signature":"SafeCastOverflowedIntDowncast(uint8,int256)","signatureHash4":"0x327269a7","signatureHash32":"0x327269a7f29c3c5436f42eeed1c1adf0d4d525f36360483f4e83ab79e98f9089"},{"signature":"SafeCastOverflowedIntToUint(int256)","signatureHash4":"0xa8ce4432","signatureHash32":"0xa8ce4432b175c373e5f41aba830358e5361584f628450fd436c066323ad91ac2"},{"signature":"SafeCastOverflowedUintDowncast(uint8,uint256)","signatureHash4":"0x6dfcc650","signatureHash32":"0x6dfcc6503a32754ce7a89698e18201fc5294fd4aad43edefee786f88423b1a12"},{"signature":"SafeCastOverflowedUintToInt(uint256)","signatureHash4":"0x24775e06","signatureHash32":"0x24775e0629ae69d78c11bae050651b81820407f300ff750ff2be51e4ce75c37f"},{"signature":"SafeERC20FailedOperation(address)","signatureHash4":"0x5274afe7","signatureHash32":"0x5274afe73c98b4749fc91ffae6b7b574e7842cb2144a159e9377a5f20b32edf9"},{"signature":"SpokeAlreadyListed()","signatureHash4":"0x04c94583","signatureHash32":"0x04c94583d207f215f43491d576be4ac9214e33d458053dd200feddaf44b3365c"},{"signature":"SpokeHalted()","signatureHash4":"0x9db9b355","signatureHash32":"0x9db9b35554923c0840ecfadd9b204ffa42d0c2e1d2303393f7d2949834713b9c"},{"signature":"SpokeNotActive()","signatureHash4":"0xe86fa032","signatureHash32":"0xe86fa032d1c696af776340711dad1d5e6a4226612764f7964e970385aab26bf6"},{"signature":"SpokeNotListed()","signatureHash4":"0xaa1b05f0","signatureHash32":"0xaa1b05f04e72aaaf4ce29e874d384c890d0f2903ebae839150d9db3fd4911219"},{"signature":"SurplusDrawnDeficitReported(uint256)","signatureHash4":"0x04ddd91f","signatureHash32":"0x04ddd91ff7fb9f2d8b8ddb4e65e1b7f73a47da9844cc7dd34ce1cbb426e79fc7"},{"signature":"SurplusDrawnRestored(uint256)","signatureHash4":"0x4bd9e476","signatureHash32":"0x4bd9e476514492196c99445d15ca638eaab2397ad055ba37aee89d9ee5c1646a"},{"signature":"SurplusPremiumRayDeficitReported(uint256)","signatureHash4":"0x37f3f9b7","signatureHash32":"0x37f3f9b7701e2927e9616d038f37db93081af9bc3f20372043672577131e37cb"},{"signature":"SurplusPremiumRayRestored(uint256)","signatureHash4":"0xdc868246","signatureHash32":"0xdc868246dcaed1dad1ec4fcb312e3c668baf58ba4a4113344ae9583d1c1947b0"},{"signature":"UnderlyingAlreadyListed()","signatureHash4":"0x603c058b","signatureHash32":"0x603c058bf42030de25de7819004449976c5d60c381524fab8d4a7896dcbce380"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"match","chainId":"1","address":"0xfE89fd96F270ac3C0F11921aF0390dbB1340F704"}