{"matchId":"28851421","creationMatch":"match","runtimeMatch":"match","verifiedAt":"2026-05-14T00:25:42Z","creationBytecode":{"onchainBytecode":"0x60a06040523480156200001157600080fd5b50604051620053b3380380620053b38339810160408190526200003491620000d2565b8160006200004a6001600160e01b03620000ce16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b039290921691909117815560025560601b6001600160601b0319166080525062000129565b3390565b60008060408385031215620000e5578182fd5b8251620000f28162000110565b6020840151909250620001058162000110565b809150509250929050565b6001600160a01b03811681146200012657600080fd5b50565b60805160601c6152356200017e600039806102f75280610bab5280610c225280610c515280610c8c52806115eb5280612fbd5280613142528061340d528061344c5280613a885280613ad652506152356000f3fe6080604052600436106100f35760003560e01c8063c1bd162b1161008a578063e9e6f5c111610059578063e9e6f5c114610272578063f1ca6a3f14610292578063f2fde38b146102c0578063f77c4791146102e0576100f3565b8063c1bd162b146101f1578063c97b83b014610211578063de43213814610224578063dfe7533514610252576100f3565b80636ac607a1116100c65780636ac607a114610192578063715018a6146101b2578063847ef08d146101c75780638da5cb5b146101dc576100f3565b80633fc8cef3146100f8578063485cc955146101235780634ee05c4a146101455780635f06cd2c14610165575b600080fd5b34801561010457600080fd5b5061010d6102f5565b60405161011a9190614662565b60405180910390f35b34801561012f57600080fd5b5061014361013e36600461441e565b610319565b005b34801561015157600080fd5b50610143610160366004614237565b6103b0565b34801561017157600080fd5b5061018561018036600461410d565b61059f565b60405161011a9190614893565b34801561019e57600080fd5b506101436101ad366004614456565b61063a565b3480156101be57600080fd5b50610143610846565b3480156101d357600080fd5b506101436108c5565b3480156101e857600080fd5b5061010d6108c7565b3480156101fd57600080fd5b5061014361020c366004614297565b6108d7565b61014361021f3660046144dc565b610b59565b34801561023057600080fd5b5061024461023f36600461410d565b610cc7565b60405161011a9291906148a6565b34801561025e57600080fd5b5061010d61026d36600461410d565b610d77565b34801561027e57600080fd5b5061014361028d36600461435e565b610d92565b34801561029e57600080fd5b506102b26102ad36600461457e565b610e2e565b60405161011a9291906147a3565b3480156102cc57600080fd5b506101436102db36600461410d565b610f4b565b3480156102ec57600080fd5b5061010d611001565b7f000000000000000000000000000000000000000000000000000000000000000081565b81336103258282611010565b8361032f8161103a565b6001600160a01b0385811660008181526003602052604080822080546001600160a01b0319169489169490941790935582516307ff078f60e11b815292519192630ffe0f1e926004808301939282900301818387803b15801561039157600080fd5b505af11580156103a5573d6000803e3d6000fd5b505050505050505050565b6103b86110fe565b6000546001600160a01b039081169116146103ee5760405162461bcd60e51b81526004016103e590614d5e565b60405180910390fd5b6103fe828263ffffffff61110216565b60005b825181101561059a5760015461041f906001600160a01b031661112c565b6001600160a01b031663639a39783084848151811061043a57fe5b60200260200101516040518363ffffffff1660e01b815260040161045f92919061477f565b60206040518083038186803b15801561047757600080fd5b505afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af9190614310565b6104cb5760405162461bcd60e51b81526004016103e590614ce6565b8181815181106104d757fe5b6020026020010151600460008584815181106104ef57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020908051906020019061052a929190613e38565b5082818151811061053757fe5b60200260200101516001600160a01b03167fc58c5ebe64b61aa17ac9e8948fc0664b62dff77268a22b4f1142443b3a583aac83838151811061057557fe5b602002602001015160405161058a9190614893565b60405180910390a2600101610401565b505050565b60046020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156106325780601f1061060757610100808354040283529160200191610632565b820191906000526020600020905b81548152906001019060200180831161061557829003601f168201915b505050505081565b60028054141561065c5760405162461bcd60e51b81526004016103e59061500f565b600280558561066a816111b3565b6000861161068a5760405162461bcd60e51b81526004016103e590614a48565b604051632770a7eb60e21b81526001600160a01b03881690639dc29fac906106b89033908a906004016146ce565b600060405180830381600087803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050506060806106f989896000610e2e565b91509150600080905082518751146107235760405162461bcd60e51b81526004016103e590614f47565b60005b83518110156107b45761074f8b8b86848151811061074057fe5b602002602001015160006111d8565b60006107978c8b8b858151811061076257fe5b602002602001015188868151811061077657fe5b602002602001015188878151811061078a57fe5b6020026020010151611375565b90506107a9838263ffffffff61164316565b925050600101610726565b50848110156107d55760405162461bcd60e51b81526004016103e590614e6f565b6107f06001600160a01b038b1689888463ffffffff61167116565b896001600160a01b03167f6dbb023d3cf13366dd3d689c3004862670c9a3f48ef6b61cd4ff7c1d3007f46e33888c60405161082d939291906146aa565b60405180910390a2505060016002555050505050505050565b61084e6110fe565b6000546001600160a01b0390811691161461087b5760405162461bcd60e51b81526004016103e590614d5e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b565b6000546001600160a01b03165b90565b6108df6110fe565b6000546001600160a01b0390811691161461090c5760405162461bcd60e51b81526004016103e590614d5e565b61091c838363ffffffff61110216565b61092c838263ffffffff61110216565b60005b8351811015610b535760015461094d906001600160a01b031661112c565b6001600160a01b031663639a39783085848151811061096857fe5b60200260200101516040518363ffffffff1660e01b815260040161098d92919061477f565b60206040518083038186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd9190614310565b6109f95760405162461bcd60e51b81526004016103e590614ea6565b828181518110610a0557fe5b602002602001015160056000868481518110610a1d57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000019080519060200190610a5b929190613e38565b50818181518110610a6857fe5b602002602001015160056000868481518110610a8057fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550838181518110610adb57fe5b60200260200101516001600160a01b03167f9b6908663d418cb1b019425f179085f031896cd0545d64837c95ce3cfff91299848381518110610b1957fe5b6020026020010151848481518110610b2d57fe5b6020026020010151604051610b439291906148a6565b60405180910390a260010161092f565b50505050565b600280541415610b7b5760405162461bcd60e51b81526004016103e59061500f565b6002805585610b89816111b3565b60003411610ba95760405162461bcd60e51b81526004016103e590614edd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c0457600080fd5b505af1158015610c18573d6000803e3d6000fd5b5050505050610c497f00000000000000000000000000000000000000000000000000000000000000003089346117b3565b6000610c7b887f0000000000000000000000000000000000000000000000000000000000000000348a8a8a8a8a6117bf565b9050610cb86001600160a01b0389167f0000000000000000000000000000000000000000000000000000000000000000338463ffffffff61167116565b50506001600255505050505050565b60056020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909291839190830182828015610d5e5780601f10610d3357610100808354040283529160200191610d5e565b820191906000526020600020905b815481529060010190602001808311610d4157829003601f168201915b505050600190930154919250506001600160a01b031682565b6003602052600090815260409020546001600160a01b031681565b600280541415610db45760405162461bcd60e51b81526004016103e59061500f565b6002805587610dc2816111b3565b60008711610de25760405162461bcd60e51b81526004016103e590614f12565b610dee88338b8a6117b3565b6000610e008a8a8a8a8a8a8a8a6117bf565b9050610e1d6001600160a01b038b168a338463ffffffff61167116565b505060016002555050505050505050565b606080606080610e3d87611979565b91509150606082516001600160401b0381118015610e5a57600080fd5b50604051908082528060200260200182016040528015610e84578160200160208202803683370190505b50905060005b8251811015610f3c5786610ec357610ebe88848381518110610ea857fe5b6020026020010151611c7f90919063ffffffff16565b610ee9565b610ee988848381518110610ed357fe5b6020026020010151611ca990919063ffffffff16565b828281518110610ef557fe5b6020026020010181815250506000828281518110610f0f57fe5b602002602001015111610f345760405162461bcd60e51b81526004016103e5906148d0565b600101610e8a565b50919791965090945050505050565b610f536110fe565b6000546001600160a01b03908116911614610f805760405162461bcd60e51b81526004016103e590614d5e565b6001600160a01b038116610fa65760405162461bcd60e51b81526004016103e590614a02565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b61101a8282611d00565b6110365760405162461bcd60e51b81526004016103e590614caf565b5050565b60015460405163e37f2b3f60e01b81526001600160a01b039091169063e37f2b3f9061106a908490600401614662565b60206040518083038186803b15801561108257600080fd5b505afa158015611096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ba9190614310565b6110d65760405162461bcd60e51b81526004016103e59061496f565b6110df81611d8e565b6110fb5760405162461bcd60e51b81526004016103e590614ab6565b50565b3390565b80518251146111235760405162461bcd60e51b81526004016103e590614913565b61103682611e0d565b6040516373b2e76b60e11b81526000906001600160a01b0383169063e765ced69061115b908490600401615120565b60206040518083038186803b15801561117357600080fd5b505afa158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614129565b90505b919050565b6111bc81611e54565b6110fb5760405162461bcd60e51b81526004016103e590614fc8565b60405163a7bdad0360e01b81526060906001600160a01b0386169063a7bdad0390611207908690600401614662565b60006040518083038186803b15801561121f57600080fd5b505afa158015611233573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261125b919081019061419c565b905060005b815181101561136d5782156112ec5781818151811061127b57fe5b60200260200101516001600160a01b0316630fb96b2187878760016040518563ffffffff1660e01b81526004016112b59493929190614848565b600060405180830381600087803b1580156112cf57600080fd5b505af11580156112e3573d6000803e3d6000fd5b50505050611365565b8181815181106112f857fe5b60200260200101516001600160a01b031663c137f4d787878760016040518563ffffffff1660e01b81526004016113329493929190614848565b600060405180830381600087803b15801561134c57600080fd5b505af1158015611360573d6000803e3d6000fd5b505050505b600101611260565b505050505050565b600080836001600160a01b0316866001600160a01b03161415611399575081611639565b6001600160a01b03848116600090815260056020526040902060010154166113d3576113ca87858789876001611f08565b91506116399050565b6113db613eb2565b6001600160a01b0385166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156114815780601f1061145657610100808354040283529160200191611481565b820191906000526020600020905b81548152906001019060200180831161146457829003601f168201915b5050509183525050600191909101546001600160a01b031660209091015280519091506000906114b0906120d9565b90506000806115538b85602001518a8a8860000151886001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156114fe57600080fd5b505afa158015611512573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115369190614129565b6001600160a01b03168a602001516001600160a01b0316146120f7565b91509150826001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b15801561159057600080fd5b505afa1580156115a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c89190614129565b6001600160a01b031684602001516001600160a01b0316141561161d576116148b7f00000000000000000000000000000000000000000000000000000000000000008b8d866001611f08565b95506116349050565b6116308b85602001518b8d866001611f08565b9550505b505050505b9695505050505050565b6000828201838110156116685760405162461bcd60e51b81526004016103e590614a7f565b90505b92915050565b8015610b53576040516370a0823160e01b81526000906001600160a01b038516906370a08231906116a6908890600401614662565b60206040518083038186803b1580156116be57600080fd5b505afa1580156116d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f691906145bf565b905061170485858585612177565b6040516370a0823160e01b81526000906001600160a01b038616906370a0823190611733908990600401614662565b60206040518083038186803b15801561174b57600080fd5b505afa15801561175f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178391906145bf565b9050611795828463ffffffff61224416565b811461136d5760405162461bcd60e51b81526004016103e590614d93565b610b5384848484612286565b6000806117ce8a8833876123aa565b905060608a6001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561180b57600080fd5b505afa15801561181f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611847919081019061419c565b9050855181511461186a5760405162461bcd60e51b81526004016103e590614942565b865181511461188b5760405162461bcd60e51b81526004016103e5906150d0565b60008061189c8d8d8d8c8c8b612448565b91509150898210156118c05760405162461bcd60e51b81526004016103e590614b9e565b6040516340c10f1960e01b81526001600160a01b038e16906340c10f19906118ee908a9086906004016146ce565b600060405180830381600087803b15801561190857600080fd5b505af115801561191c573d6000803e3d6000fd5b505050508c6001600160a01b03167f2f42aaf883466d0fb581f939a2ba28df39832ab7f0b4f8a2193836b2b54489503389878686604051611961959493929190614676565b60405180910390a29c9b505050505050505050505050565b6060806060836001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156119b757600080fd5b505afa1580156119cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119f3919081019061419c565b9050606081516001600160401b0381118015611a0e57600080fd5b50604051908082528060200260200182016040528015611a38578160200160208202803683370190505b50905060005b8251811015611c74576000838281518110611a5557fe5b602002602001015190506000876001600160a01b03166366cb8d2f836040518263ffffffff1660e01b8152600401611a8d9190614662565b60206040518083038186803b158015611aa557600080fd5b505afa158015611ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611add91906145bf565b90506060886001600160a01b031663a7bdad03846040518263ffffffff1660e01b8152600401611b0d9190614662565b60006040518083038186803b158015611b2557600080fd5b505afa158015611b39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b61919081019061419c565b805190915015611c495760005b8151811015611c475760008a6001600160a01b03166322ebeba486858581518110611b9557fe5b60200260200101516040518363ffffffff1660e01b8152600401611bba9291906146e7565b60206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a91906145bf565b905060008113611c2c5760405162461bcd60e51b81526004016103e59061507d565b611c3c848263ffffffff61268916565b935050600101611b6e565b505b611c52826126cf565b858581518110611c5e57fe5b6020908102919091010152505050600101611a3e565b509092509050915091565b6000611668670de0b6b3a7640000611c9d858563ffffffff6126f516565b9063ffffffff61272f16565b6000821580611cb6575081155b15611cc35750600061166b565b6116686001611cf4670de0b6b3a7640000611c9d83611ce8898963ffffffff6126f516565b9063ffffffff61224416565b9063ffffffff61164316565b6000816001600160a01b0316836001600160a01b031663481c6a756040518163ffffffff1660e01b815260040160206040518083038186803b158015611d4557600080fd5b505afa158015611d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7d9190614129565b6001600160a01b0316149392505050565b6040516353bae5f760e01b81526000906001600160a01b038316906353bae5f790611dbd903090600401614662565b60206040518083038186803b158015611dd557600080fd5b505afa158015611de9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614310565b6000815111611e2e5760405162461bcd60e51b81526004016103e590614e38565b611e3781612771565b156110fb5760405162461bcd60e51b81526004016103e590614c43565b60015460405163e37f2b3f60e01b81526000916001600160a01b03169063e37f2b3f90611e85908590600401614662565b60206040518083038186803b158015611e9d57600080fd5b505afa158015611eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed59190614310565b80156111ab57506040516335fc6c9f60e21b81526001600160a01b0383169063d7f1b27c90611dbd903090600401614662565b600080846001600160a01b0316876001600160a01b03161415611f2f5750829050806120ce565b611f37613eca565b6001600160a01b0386166000908152600460209081526040918290208054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152611ff1938d93611fe7939190830182828015611fdd5780601f10611fb257610100808354040283529160200191611fdd565b820191906000526020600020905b815481529060010190602001808311611fc057829003601f168201915b50505050506120d9565b8a8a8a8a8a612820565b9050611ffc81612b1d565b612028816000015182602001518360400151846060015185608001518660a00151876101000151612bed565b61203181612da2565b5060006120526120418b8b612e57565b60c08401519063ffffffff61224416565b905060006120688360e00151611ce88d8b612e57565b9050876001600160a01b03168a6001600160a01b03168c6001600160a01b03167f71c90a8e22bbb06ea39d299250bcaff990254be58217e7d1479dcbf2f24aa776866020015186866040516120bf93929190614872565b60405180910390a49093509150505b965096945050505050565b6000806120e583612ed6565b90506120f081612ee1565b9392505050565b60008060008061210b868b8b8b8b8a612fa0565b91509150876001600160a01b0316896001600160a01b03168b6001600160a01b03167f0e631fe8e26e2b6c2ce8c4c55eca1d769c98bb4b5539068aec9ada0a3b429afe85858b60405161216093929190615129565b60405180910390a490999098509650505050505050565b8015610b5357606082826040516024016121929291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663a9059cbb60e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600060405180830381600087803b15801561220857600080fd5b505af115801561221c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136d919081019061432c565b600061166883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131c0565b8015610b53576040516370a0823160e01b81526000906001600160a01b038616906370a08231906122bb908690600401614662565b60206040518083038186803b1580156122d357600080fd5b505afa1580156122e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230b91906145bf565b9050612319858585856131ec565b6040516370a0823160e01b81526000906001600160a01b038716906370a0823190612348908790600401614662565b60206040518083038186803b15801561236057600080fd5b505afa158015612374573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239891906145bf565b9050611795828463ffffffff61164316565b6001600160a01b03808516600090815260036020526040812054909116801561243a5760405163a045808360e01b81526001600160a01b0382169063a0458083906123ff90899089908990899060040161481d565b600060405180830381600087803b15801561241957600080fd5b505af115801561242d573d6000803e3d6000fd5b5050505080915050612440565b60009150505b949350505050565b600080600060001990506060896001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561248d57600080fd5b505afa1580156124a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124c9919081019061419c565b9050606081516001600160401b03811180156124e457600080fd5b5060405190808252806020026020018201604052801561250e578160200160208202803683370190505b50905060005b825181101561266557600061254a6001611ce88b858151811061253357fe5b60200260200101518e611c7f90919063ffffffff16565b905060006125e58e6001600160a01b03166366cb8d2f87868151811061256c57fe5b60200260200101516040518263ffffffff1660e01b81526004016125909190614662565b60206040518083038186803b1580156125a857600080fd5b505afa1580156125bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e091906145bf565b6126cf565b9050600061261c8f8f858f88815181106125fb57fe5b60200260200101518a898151811061260f57fe5b6020026020010151613244565b90508085858151811061262b57fe5b60209081029190910101526000612648828463ffffffff6134de16565b9050878111612655578097505b5050600190920191506125149050565b5060006126768c8c8b85888c6134fc565b939c939b50929950505050505050505050565b600082820181831280159061269e5750838112155b806126b357506000831280156126b357508381125b6116685760405162461bcd60e51b81526004016103e590614b5d565b6000808212156126f15760405162461bcd60e51b81526004016103e590614c7a565b5090565b6000826127045750600061166b565b8282028284828161271157fe5b04146116685760405162461bcd60e51b81526004016103e590614d1d565b600061166883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613679565b6000808251116127935760405162461bcd60e51b81526004016103e5906150fc565b60005b60018351038110156128175760008382815181106127b057fe5b6020026020010151905060008260010190505b845181101561280d578481815181106127d857fe5b60200260200101516001600160a01b0316826001600160a01b0316141561280557600193505050506111ae565b6001016127c3565b5050600101612796565b50600092915050565b612828613eca565b600060606001600160a01b03871615806128535750876001600160a01b0316876001600160a01b0316145b8061286f5750856001600160a01b0316876001600160a01b0316145b156128f557604080516002808252606082018352909160208301908036833701905050905087816000815181106128a257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505085816001815181106128d057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506129a1565b604080516003808252608082019092529060208201606080368337019050509050878160008151811061292457fe5b60200260200101906001600160a01b031690816001600160a01b031681525050868160018151811061295257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050858160028151811061298057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6129a9613eca565b6001600160a01b03808c1682528a8116602083015289811660408301528716606082015260808101869052600060a08201526129e58b8a612e57565b60c08201526129f48b88612e57565b60e082015284612a8657604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612a2d9085906000906004016147f9565b60006040518083038186803b158015612a4557600080fd5b505afa158015612a59573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612a81919081019061432c565b612b09565b604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612ab59085906001906004016147f9565b60006040518083038186803b158015612acd57600080fd5b505afa158015612ae1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b09919081019061432c565b6101008201529a9950505050505050505050565b6000816080015111612b415760405162461bcd60e51b81526004016103e590615046565b600081604001516001600160a01b03166370a0823183600001516040518263ffffffff1660e01b8152600401612b779190614662565b60206040518083038186803b158015612b8f57600080fd5b505afa158015612ba3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc791906145bf565b905081608001518110156110365760405162461bcd60e51b81526004016103e5906149b1565b612c7a85876001600160a01b031663334fc2896040518163ffffffff1660e01b815260040160206040518083038186803b158015612c2a57600080fd5b505afa158015612c3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c629190614129565b6001600160a01b038a1691908663ffffffff6136b016565b6000806060886001600160a01b031663e171fcab89898d8a8a8a6040518763ffffffff1660e01b8152600401612cb596959493929190614701565b60006040518083038186803b158015612ccd57600080fd5b505afa158015612ce1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d099190810190614145565b925092509250896001600160a01b0316638f6f03328484846040518463ffffffff1660e01b8152600401612d3f9392919061474f565b600060405180830381600087803b158015612d5957600080fd5b505af1158015612d6d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d95919081019061432c565b5050505050505050505050565b600080612e318360e0015184606001516001600160a01b03166370a0823186600001516040518263ffffffff1660e01b8152600401612de19190614662565b60206040518083038186803b158015612df957600080fd5b505afa158015612e0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce891906145bf565b90508260a001518110156111ab5760405162461bcd60e51b81526004016103e590614aed565b600080826001600160a01b03166370a08231856040518263ffffffff1660e01b8152600401612e869190614662565b60206040518083038186803b158015612e9e57600080fd5b505afa158015612eb2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061244091906145bf565b805160209091012090565b6001546000908190612efb906001600160a01b031661112c565b6001600160a01b031663e6d642c530856040518363ffffffff1660e01b8152600401612f289291906146ce565b60206040518083038186803b158015612f4057600080fd5b505afa158015612f54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f789190614129565b90506001600160a01b0381166111ab5760405162461bcd60e51b81526004016103e590614c14565b600080612fae878686613721565b600083612fbb5786612fdd565b7f00000000000000000000000000000000000000000000000000000000000000005b90506000612feb8983612e57565b90506000612ff98a89612e57565b905060006130068c6120d9565b90506000816001600160a01b03166383d918098c8c6040518363ffffffff1660e01b81526004016130389291906146e7565b60206040518083038186803b15801561305057600080fd5b505afa158015613064573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130889190614129565b90506130a56001600160a01b038d168b838c63ffffffff6136b016565b61312d8c838a6130b5578d613126565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156130ee57600080fd5b505afa158015613102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131269190614129565b8d8d61376a565b871561316e5761316e6001600160a01b038d167f0000000000000000000000000000000000000000000000000000000000000000813163ffffffff61387f16565b600061317a8d87612e57565b905060006131888e8d612e57565b905061319a828763ffffffff61224416565b6131aa868363ffffffff61224416565b9850985050505050505050965096945050505050565b600081848411156131e45760405162461bcd60e51b81526004016103e59190614893565b505050900390565b610b53846323b872dd60e01b85858560405160240161320d939291906146aa565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613934565b600080826001600160a01b0316866001600160a01b03161415613268575083611639565b6001600160a01b0383811660009081526005602052604090206001015416613299576113ca87878686896001611f08565b6132a1613eb2565b6001600160a01b0384166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156133475780601f1061331c57610100808354040283529160200191613347565b820191906000526020600020905b81548152906001019060200180831161332a57829003601f168201915b5050509183525050600191909101546001600160a01b03166020909101528051909150600090613376906120d9565b90506000809050816001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156133b657600080fd5b505afa1580156133ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133ee9190614129565b6001600160a01b031683602001516001600160a01b0316141561349d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b03161461347c576134738a8a897f00000000000000000000000000000000000000000000000000000000000000008c6001611f08565b915061347f9050565b50865b6134968a84602001518884876000015160016139c3565b93506134d0565b6134b08a8a8986602001518c6001611f08565b9050809150506134cd8a84602001518884876000015160006139c3565b93505b505050905095945050505050565b600061166882611c9d85670de0b6b3a764000063ffffffff6126f516565b60008161350b57506000611639565b60008090506060886001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561354b57600080fd5b505afa15801561355f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613587919081019061419c565b905060005b815181101561366b5760006135c5876135b98d6001600160a01b03166366cb8d2f87878151811061256c57fe5b9063ffffffff611c7f16565b905060006135ef828a85815181106135d957fe5b602002602001015161224490919063ffffffff16565b90506000613603828463ffffffff6134de16565b9050613613612710611c9d613a3f565b8111156136605761365d6136508e8e8e888151811061362e57fe5b602002602001015189898151811061364257fe5b602002602001015187611375565b879063ffffffff61164316565b95505b50505060010161358c565b509098975050505050505050565b6000818361369a5760405162461bcd60e51b81526004016103e59190614893565b5060008385816136a657fe5b0495945050505050565b606082826040516024016136c59291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600081116137415760405162461bcd60e51b81526004016103e590614dca565b8061374c8484612e57565b101561059a5760405162461bcd60e51b81526004016103e590614b17565b6000806060866001600160a01b031663a22fe98e8787876040518463ffffffff1660e01b815260040161379f939291906146aa565b60006040518083038186803b1580156137b757600080fd5b505afa1580156137cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137f39190810190614145565b925092509250876001600160a01b0316638f6f03328484846040518463ffffffff1660e01b81526004016138299392919061474f565b600060405180830381600087803b15801561384357600080fd5b505af1158015613857573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a5919081019061432c565b6040805160048082526024820183526020820180516001600160e01b0316630d0e30db60e41b17905291516347b7819960e11b815290916001600160a01b03861691638f6f0332916138d7918791879187910161474f565b600060405180830381600087803b1580156138f157600080fd5b505af1158015613905573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261392d919081019061432c565b5050505050565b6060613989826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613a4b9092919063ffffffff16565b80519091501561059a57808060200190518101906139a79190614310565b61059a5760405162461bcd60e51b81526004016103e590614f7e565b60008060006139d6858a8a8a8a89613a5a565b91509150866001600160a01b0316886001600160a01b03168a6001600160a01b03167f266efe8e5e4e2e7e407c4814a2818ef8e990768c61e67315ac34a8d3555b438e85858a604051613a2b93929190615129565b60405180910390a498975050505050505050565b670de0b6b3a764000090565b60606124408484600085613c94565b600080600080613a6a8988612e57565b90506000613a778b6120d9565b9050600086613a865789613aa8565b7f00000000000000000000000000000000000000000000000000000000000000005b9050613ab58b828a613721565b613abf8b82612e57565b93508615613b0657613b016001600160a01b038c167f00000000000000000000000000000000000000000000000000000000000000008a63ffffffff613d5516565b613bbb565b604051633d3685e960e11b81526000906001600160a01b03841690637a6d0bd290613b37908e908e906004016146e7565b60206040518083038186803b158015613b4f57600080fd5b505afa158015613b63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b879190614129565b9050613bb98b82613b9f8c600163ffffffff61164316565b8f6001600160a01b03166136b0909392919063ffffffff16565b505b613c438b8389613bcb578c613c3c565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b158015613c0457600080fd5b505afa158015613c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c3c9190614129565b8c8c613dc4565b6000613c4f8c83612e57565b90506000613c5d8d8c612e57565b9050613c6f868363ffffffff61224416565b613c7f828763ffffffff61224416565b97509750505050505050965096945050505050565b606082471015613cb65760405162461bcd60e51b81526004016103e590614bce565b613cbf85613df9565b613cdb5760405162461bcd60e51b81526004016103e590614e01565b60006060866001600160a01b03168587604051613cf89190614646565b60006040518083038185875af1925050503d8060008114613d35576040519150601f19603f3d011682016040523d82523d6000602084013e613d3a565b606091505b5091509150613d4a828286613dff565b979650505050505050565b606081604051602401613d689190615120565b60408051601f198184030181529181526020820180516001600160e01b0316632e1a7d4d60e01b179052516347b7819960e11b81529091506001600160a01b03851690638f6f0332906138d7908690600090869060040161474f565b6000806060866001600160a01b03166377b1aaf88787876040518463ffffffff1660e01b815260040161379f939291906146aa565b3b151590565b60608315613e0e5750816120f0565b825115613e1e5782518084602001fd5b8160405162461bcd60e51b81526004016103e59190614893565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613e7957805160ff1916838001178555613ea6565b82800160010185558215613ea6579182015b82811115613ea6578251825591602001919060010190613e8b565b506126f1929150613f3a565b60408051808201909152606081526000602082015290565b60405180610120016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001606081525090565b6108d491905b808211156126f15760008155600101613f40565b600082601f830112613f64578081fd5b8135613f77613f728261516e565b615148565b818152915060208083019084810181840286018201871015613f9857600080fd5b60005b84811015613fc0578135613fae816151dc565b84529282019290820190600101613f9b565b505050505092915050565b600082601f830112613fdb578081fd5b8135613fe9613f728261516e565b818152915060208083019084810160005b84811015613fc0578135870188603f82011261401557600080fd5b83810135614025613f728261518d565b81815260408b8184860101111561403b57600080fd5b82818501888401375060009181018601919091528552509282019290820190600101613ffa565b600082601f830112614072578081fd5b8135614080613f728261516e565b8181529150602080830190848101818402860182018710156140a157600080fd5b60005b84811015613fc0578135845292820192908201906001016140a4565b600082601f8301126140d0578081fd5b81516140de613f728261518d565b91508082528360208285010111156140f557600080fd5b6141068160208401602086016151b0565b5092915050565b60006020828403121561411e578081fd5b8135611668816151dc565b60006020828403121561413a578081fd5b8151611668816151dc565b600080600060608486031215614159578182fd5b8351614164816151dc565b6020850151604086015191945092506001600160401b03811115614186578182fd5b614192868287016140c0565b9150509250925092565b600060208083850312156141ae578182fd5b82516001600160401b038111156141c3578283fd5b80840185601f8201126141d4578384fd5b805191506141e4613f728361516e565b8281528381019082850185850284018601891015614200578687fd5b8693505b8484101561422b578051614217816151dc565b835260019390930192918501918501614204565b50979650505050505050565b60008060408385031215614249578182fd5b82356001600160401b038082111561425f578384fd5b61426b86838701613f54565b93506020850135915080821115614280578283fd5b5061428d85828601613fcb565b9150509250929050565b6000806000606084860312156142ab578283fd5b83356001600160401b03808211156142c1578485fd5b6142cd87838801613f54565b945060208601359150808211156142e2578384fd5b6142ee87838801613fcb565b93506040860135915080821115614303578283fd5b5061419286828701613f54565b600060208284031215614321578081fd5b8151611668816151f1565b60006020828403121561433d578081fd5b81516001600160401b03811115614352578182fd5b612440848285016140c0565b600080600080600080600080610100898b03121561437a578586fd5b8835614385816151dc565b97506020890135614395816151dc565b9650604089013595506060890135945060808901356001600160401b03808211156143be578586fd5b6143ca8c838d01613f54565b955060a08b01359150808211156143df578485fd5b506143ec8b828c01614062565b93505060c08901356143fd816151dc565b915060e089013561440d816151f1565b809150509295985092959890939650565b60008060408385031215614430578182fd5b823561443b816151dc565b9150602083013561444b816151dc565b809150509250929050565b60008060008060008060c0878903121561446e578384fd5b8635614479816151dc565b9550602087013594506040870135614490816151dc565b935060608701356001600160401b038111156144aa578283fd5b6144b689828a01613f54565b93505060808701356144c7816151dc565b8092505060a087013590509295509295509295565b60008060008060008060c087890312156144f4578384fd5b86356144ff816151dc565b95506020870135945060408701356001600160401b0380821115614521578586fd5b61452d8a838b01613f54565b95506060890135915080821115614542578384fd5b5061454f89828a01614062565b9350506080870135614560816151dc565b915060a0870135614570816151f1565b809150509295509295509295565b600080600060608486031215614592578081fd5b833561459d816151dc565b92506020840135915060408401356145b4816151f1565b809150509250925092565b6000602082840312156145d0578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561460f5781516001600160a01b0316875295820195908201906001016145ea565b509495945050505050565b600081518084526146328160208601602086016151b0565b601f01601f19169290920160200192915050565b600082516146588184602087016151b0565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038781168252868116602083015285166040820152606081018490526080810183905260c060a082018190526000906147439083018461461a565b98975050505050505050565b600060018060a01b038516825283602083015260606040830152614776606083018461461a565b95945050505050565b6001600160a01b03831681526040602082018190526000906124409083018461461a565b6000604082526147b660408301856145d7565b828103602084810191909152845180835285820192820190845b818110156147ec578451835293830193918301916001016147d0565b5090979650505050505050565b60006040825261480c60408301856145d7565b905082151560208301529392505050565b6001600160a01b03948516815260208101939093529083166040830152909116606082015260800190565b6001600160a01b039485168152602081019390935292166040820152901515606082015260800190565b6001600160a01b039390931683526020830191909152604082015260600190565b600060208252611668602083018461461a565b6000604082526148b9604083018561461a565b905060018060a01b03831660208301529392505050565b60208082526023908201527f636f6d706f6e656e7420616d6f756e742073686f756c64206e6f74206265207a60408201526265726f60e81b606082015260800190565b602080825260159082015274082e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b604082015260600190565b6020808252601390820152720eecad2ced0e8d2dccee640dad2e6dac2e8c6d606b1b604082015260600190565b60208082526022908201527f4d75737420626520636f6e74726f6c6c65722d656e61626c656420434b546f6b60408201526132b760f11b606082015260800190565b60208082526031908201527f746f74616c2073656e64207175616e746974792063616e742062652067726561604082015270746572207468616e206578697374696e6760781b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f52656465656d207175616e74697479206d757374206265203e20300000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f4d7573742062652070656e64696e6720696e697469616c697a6174696f6e0000604082015260600190565b60208082526010908201526f536c69707061676520746f6f2062696760801b604082015260600190565b60208082526026908201527f7175616e746974792063616e742062652067726561746572207468616e206578604082015265697374696e6760d01b606082015260800190565b60208082526021908201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526016908201527517db5a5b90dad51bdad95b949958c81b9bdd081b595d60521b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526015908201527426bab9ba103132903b30b634b21030b230b83a32b960591b604082015260600190565b6020808252601a908201527f43616e6e6f74206475706c696361746520616464726573736573000000000000604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252601b908201527f4d7573742062652074686520434b546f6b656e206d616e616765720000000000604082015260600190565b6020808252601a908201527f556e7265636f676e697a65642065786368616e6765206e616d65000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f496e76616c696420706f7374207472616e736665722062616c616e6365000000604082015260600190565b6020808252601e908201527f636f6d706f6e656e74207175616e74697479206d757374206265203e20300000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526018908201527f4172726179206c656e677468206d757374206265203e20300000000000000000604082015260600190565b6020808252601c908201527f5f6d696e52656465656d546f6b656e546f526563206e6f74206d657400000000604082015260600190565b6020808252601e908201527f556e7265636f676e697a656420777261702061646170746572206e616d650000604082015260600190565b6020808252818101527f4973737565206574686572207175616e74697479206d757374206265203e2030604082015260600190565b6020808252818101527f497373756520746f6b656e207175616e74697479206d757374206265203e2030604082015260600190565b6020808252601a908201527f5f6d6964546f6b656e73206c656e677468206d69736d61746368000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526027908201527f4d75737420626520612076616c696420616e6420696e697469616c697a65642060408201526621a5aa37b5b2b760c91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601d908201527f546f6b656e20746f2073656c6c206d757374206265206e6f6e7a65726f000000604082015260600190565b60208082526033908201527f4f6e6c7920706f7369746976652065787465726e616c20756e697420706f73696040820152721d1a5bdb9cc8185c99481cdd5c1c1bdc9d1959606a1b606082015260800190565b6020808252601290820152710dad2c8a8ded6cadce640dad2e6dac2e8c6d60731b604082015260600190565b6020808252600a90820152694120697320656d70747960b01b604082015260600190565b90815260200190565b600084825283602083015260606040830152614776606083018461461a565b6040518181016001600160401b038111828210171561516657600080fd5b604052919050565b60006001600160401b03821115615183578081fd5b5060209081020190565b60006001600160401b038211156151a2578081fd5b50601f01601f191660200190565b60005b838110156151cb5781810151838201526020016151b3565b83811115610b535750506000910152565b6001600160a01b03811681146110fb57600080fd5b80151581146110fb57600080fdfea26469706673582212208b05ec7d7ae8f48e47d4914209a190ab58f7d31cd1ff9e77bd2b37e6c99d538864736f6c634300060a0033000000000000000000000000822aeb433a4ea7a97b76287cb513c3985034a2bd000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c","recompiledBytecode":"0x60a06040523480156200001157600080fd5b50604051620053b3380380620053b38339810160408190526200003491620000d2565b8160006200004a6001600160e01b03620000ce16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b039290921691909117815560025560601b6001600160601b0319166080525062000129565b3390565b60008060408385031215620000e5578182fd5b8251620000f28162000110565b6020840151909250620001058162000110565b809150509250929050565b6001600160a01b03811681146200012657600080fd5b50565b60805160601c6152356200017e600039806102f75280610bab5280610c225280610c515280610c8c52806115eb5280612fbd5280613142528061340d528061344c5280613a885280613ad652506152356000f3fe6080604052600436106100f35760003560e01c8063c1bd162b1161008a578063e9e6f5c111610059578063e9e6f5c114610272578063f1ca6a3f14610292578063f2fde38b146102c0578063f77c4791146102e0576100f3565b8063c1bd162b146101f1578063c97b83b014610211578063de43213814610224578063dfe7533514610252576100f3565b80636ac607a1116100c65780636ac607a114610192578063715018a6146101b2578063847ef08d146101c75780638da5cb5b146101dc576100f3565b80633fc8cef3146100f8578063485cc955146101235780634ee05c4a146101455780635f06cd2c14610165575b600080fd5b34801561010457600080fd5b5061010d6102f5565b60405161011a9190614662565b60405180910390f35b34801561012f57600080fd5b5061014361013e36600461441e565b610319565b005b34801561015157600080fd5b50610143610160366004614237565b6103b0565b34801561017157600080fd5b5061018561018036600461410d565b61059f565b60405161011a9190614893565b34801561019e57600080fd5b506101436101ad366004614456565b61063a565b3480156101be57600080fd5b50610143610846565b3480156101d357600080fd5b506101436108c5565b3480156101e857600080fd5b5061010d6108c7565b3480156101fd57600080fd5b5061014361020c366004614297565b6108d7565b61014361021f3660046144dc565b610b59565b34801561023057600080fd5b5061024461023f36600461410d565b610cc7565b60405161011a9291906148a6565b34801561025e57600080fd5b5061010d61026d36600461410d565b610d77565b34801561027e57600080fd5b5061014361028d36600461435e565b610d92565b34801561029e57600080fd5b506102b26102ad36600461457e565b610e2e565b60405161011a9291906147a3565b3480156102cc57600080fd5b506101436102db36600461410d565b610f4b565b3480156102ec57600080fd5b5061010d611001565b7f000000000000000000000000000000000000000000000000000000000000000081565b81336103258282611010565b8361032f8161103a565b6001600160a01b0385811660008181526003602052604080822080546001600160a01b0319169489169490941790935582516307ff078f60e11b815292519192630ffe0f1e926004808301939282900301818387803b15801561039157600080fd5b505af11580156103a5573d6000803e3d6000fd5b505050505050505050565b6103b86110fe565b6000546001600160a01b039081169116146103ee5760405162461bcd60e51b81526004016103e590614d5e565b60405180910390fd5b6103fe828263ffffffff61110216565b60005b825181101561059a5760015461041f906001600160a01b031661112c565b6001600160a01b031663639a39783084848151811061043a57fe5b60200260200101516040518363ffffffff1660e01b815260040161045f92919061477f565b60206040518083038186803b15801561047757600080fd5b505afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af9190614310565b6104cb5760405162461bcd60e51b81526004016103e590614ce6565b8181815181106104d757fe5b6020026020010151600460008584815181106104ef57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020908051906020019061052a929190613e38565b5082818151811061053757fe5b60200260200101516001600160a01b03167fc58c5ebe64b61aa17ac9e8948fc0664b62dff77268a22b4f1142443b3a583aac83838151811061057557fe5b602002602001015160405161058a9190614893565b60405180910390a2600101610401565b505050565b60046020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156106325780601f1061060757610100808354040283529160200191610632565b820191906000526020600020905b81548152906001019060200180831161061557829003601f168201915b505050505081565b60028054141561065c5760405162461bcd60e51b81526004016103e59061500f565b600280558561066a816111b3565b6000861161068a5760405162461bcd60e51b81526004016103e590614a48565b604051632770a7eb60e21b81526001600160a01b03881690639dc29fac906106b89033908a906004016146ce565b600060405180830381600087803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050506060806106f989896000610e2e565b91509150600080905082518751146107235760405162461bcd60e51b81526004016103e590614f47565b60005b83518110156107b45761074f8b8b86848151811061074057fe5b602002602001015160006111d8565b60006107978c8b8b858151811061076257fe5b602002602001015188868151811061077657fe5b602002602001015188878151811061078a57fe5b6020026020010151611375565b90506107a9838263ffffffff61164316565b925050600101610726565b50848110156107d55760405162461bcd60e51b81526004016103e590614e6f565b6107f06001600160a01b038b1689888463ffffffff61167116565b896001600160a01b03167f6dbb023d3cf13366dd3d689c3004862670c9a3f48ef6b61cd4ff7c1d3007f46e33888c60405161082d939291906146aa565b60405180910390a2505060016002555050505050505050565b61084e6110fe565b6000546001600160a01b0390811691161461087b5760405162461bcd60e51b81526004016103e590614d5e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b565b6000546001600160a01b03165b90565b6108df6110fe565b6000546001600160a01b0390811691161461090c5760405162461bcd60e51b81526004016103e590614d5e565b61091c838363ffffffff61110216565b61092c838263ffffffff61110216565b60005b8351811015610b535760015461094d906001600160a01b031661112c565b6001600160a01b031663639a39783085848151811061096857fe5b60200260200101516040518363ffffffff1660e01b815260040161098d92919061477f565b60206040518083038186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd9190614310565b6109f95760405162461bcd60e51b81526004016103e590614ea6565b828181518110610a0557fe5b602002602001015160056000868481518110610a1d57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000019080519060200190610a5b929190613e38565b50818181518110610a6857fe5b602002602001015160056000868481518110610a8057fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550838181518110610adb57fe5b60200260200101516001600160a01b03167f9b6908663d418cb1b019425f179085f031896cd0545d64837c95ce3cfff91299848381518110610b1957fe5b6020026020010151848481518110610b2d57fe5b6020026020010151604051610b439291906148a6565b60405180910390a260010161092f565b50505050565b600280541415610b7b5760405162461bcd60e51b81526004016103e59061500f565b6002805585610b89816111b3565b60003411610ba95760405162461bcd60e51b81526004016103e590614edd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c0457600080fd5b505af1158015610c18573d6000803e3d6000fd5b5050505050610c497f00000000000000000000000000000000000000000000000000000000000000003089346117b3565b6000610c7b887f0000000000000000000000000000000000000000000000000000000000000000348a8a8a8a8a6117bf565b9050610cb86001600160a01b0389167f0000000000000000000000000000000000000000000000000000000000000000338463ffffffff61167116565b50506001600255505050505050565b60056020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909291839190830182828015610d5e5780601f10610d3357610100808354040283529160200191610d5e565b820191906000526020600020905b815481529060010190602001808311610d4157829003601f168201915b505050600190930154919250506001600160a01b031682565b6003602052600090815260409020546001600160a01b031681565b600280541415610db45760405162461bcd60e51b81526004016103e59061500f565b6002805587610dc2816111b3565b60008711610de25760405162461bcd60e51b81526004016103e590614f12565b610dee88338b8a6117b3565b6000610e008a8a8a8a8a8a8a8a6117bf565b9050610e1d6001600160a01b038b168a338463ffffffff61167116565b505060016002555050505050505050565b606080606080610e3d87611979565b91509150606082516001600160401b0381118015610e5a57600080fd5b50604051908082528060200260200182016040528015610e84578160200160208202803683370190505b50905060005b8251811015610f3c5786610ec357610ebe88848381518110610ea857fe5b6020026020010151611c7f90919063ffffffff16565b610ee9565b610ee988848381518110610ed357fe5b6020026020010151611ca990919063ffffffff16565b828281518110610ef557fe5b6020026020010181815250506000828281518110610f0f57fe5b602002602001015111610f345760405162461bcd60e51b81526004016103e5906148d0565b600101610e8a565b50919791965090945050505050565b610f536110fe565b6000546001600160a01b03908116911614610f805760405162461bcd60e51b81526004016103e590614d5e565b6001600160a01b038116610fa65760405162461bcd60e51b81526004016103e590614a02565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b61101a8282611d00565b6110365760405162461bcd60e51b81526004016103e590614caf565b5050565b60015460405163e37f2b3f60e01b81526001600160a01b039091169063e37f2b3f9061106a908490600401614662565b60206040518083038186803b15801561108257600080fd5b505afa158015611096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ba9190614310565b6110d65760405162461bcd60e51b81526004016103e59061496f565b6110df81611d8e565b6110fb5760405162461bcd60e51b81526004016103e590614ab6565b50565b3390565b80518251146111235760405162461bcd60e51b81526004016103e590614913565b61103682611e0d565b6040516373b2e76b60e11b81526000906001600160a01b0383169063e765ced69061115b908490600401615120565b60206040518083038186803b15801561117357600080fd5b505afa158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614129565b90505b919050565b6111bc81611e54565b6110fb5760405162461bcd60e51b81526004016103e590614fc8565b60405163a7bdad0360e01b81526060906001600160a01b0386169063a7bdad0390611207908690600401614662565b60006040518083038186803b15801561121f57600080fd5b505afa158015611233573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261125b919081019061419c565b905060005b815181101561136d5782156112ec5781818151811061127b57fe5b60200260200101516001600160a01b0316630fb96b2187878760016040518563ffffffff1660e01b81526004016112b59493929190614848565b600060405180830381600087803b1580156112cf57600080fd5b505af11580156112e3573d6000803e3d6000fd5b50505050611365565b8181815181106112f857fe5b60200260200101516001600160a01b031663c137f4d787878760016040518563ffffffff1660e01b81526004016113329493929190614848565b600060405180830381600087803b15801561134c57600080fd5b505af1158015611360573d6000803e3d6000fd5b505050505b600101611260565b505050505050565b600080836001600160a01b0316866001600160a01b03161415611399575081611639565b6001600160a01b03848116600090815260056020526040902060010154166113d3576113ca87858789876001611f08565b91506116399050565b6113db613eb2565b6001600160a01b0385166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156114815780601f1061145657610100808354040283529160200191611481565b820191906000526020600020905b81548152906001019060200180831161146457829003601f168201915b5050509183525050600191909101546001600160a01b031660209091015280519091506000906114b0906120d9565b90506000806115538b85602001518a8a8860000151886001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156114fe57600080fd5b505afa158015611512573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115369190614129565b6001600160a01b03168a602001516001600160a01b0316146120f7565b91509150826001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b15801561159057600080fd5b505afa1580156115a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c89190614129565b6001600160a01b031684602001516001600160a01b0316141561161d576116148b7f00000000000000000000000000000000000000000000000000000000000000008b8d866001611f08565b95506116349050565b6116308b85602001518b8d866001611f08565b9550505b505050505b9695505050505050565b6000828201838110156116685760405162461bcd60e51b81526004016103e590614a7f565b90505b92915050565b8015610b53576040516370a0823160e01b81526000906001600160a01b038516906370a08231906116a6908890600401614662565b60206040518083038186803b1580156116be57600080fd5b505afa1580156116d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f691906145bf565b905061170485858585612177565b6040516370a0823160e01b81526000906001600160a01b038616906370a0823190611733908990600401614662565b60206040518083038186803b15801561174b57600080fd5b505afa15801561175f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178391906145bf565b9050611795828463ffffffff61224416565b811461136d5760405162461bcd60e51b81526004016103e590614d93565b610b5384848484612286565b6000806117ce8a8833876123aa565b905060608a6001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561180b57600080fd5b505afa15801561181f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611847919081019061419c565b9050855181511461186a5760405162461bcd60e51b81526004016103e590614942565b865181511461188b5760405162461bcd60e51b81526004016103e5906150d0565b60008061189c8d8d8d8c8c8b612448565b91509150898210156118c05760405162461bcd60e51b81526004016103e590614b9e565b6040516340c10f1960e01b81526001600160a01b038e16906340c10f19906118ee908a9086906004016146ce565b600060405180830381600087803b15801561190857600080fd5b505af115801561191c573d6000803e3d6000fd5b505050508c6001600160a01b03167f2f42aaf883466d0fb581f939a2ba28df39832ab7f0b4f8a2193836b2b54489503389878686604051611961959493929190614676565b60405180910390a29c9b505050505050505050505050565b6060806060836001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156119b757600080fd5b505afa1580156119cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119f3919081019061419c565b9050606081516001600160401b0381118015611a0e57600080fd5b50604051908082528060200260200182016040528015611a38578160200160208202803683370190505b50905060005b8251811015611c74576000838281518110611a5557fe5b602002602001015190506000876001600160a01b03166366cb8d2f836040518263ffffffff1660e01b8152600401611a8d9190614662565b60206040518083038186803b158015611aa557600080fd5b505afa158015611ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611add91906145bf565b90506060886001600160a01b031663a7bdad03846040518263ffffffff1660e01b8152600401611b0d9190614662565b60006040518083038186803b158015611b2557600080fd5b505afa158015611b39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b61919081019061419c565b805190915015611c495760005b8151811015611c475760008a6001600160a01b03166322ebeba486858581518110611b9557fe5b60200260200101516040518363ffffffff1660e01b8152600401611bba9291906146e7565b60206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a91906145bf565b905060008113611c2c5760405162461bcd60e51b81526004016103e59061507d565b611c3c848263ffffffff61268916565b935050600101611b6e565b505b611c52826126cf565b858581518110611c5e57fe5b6020908102919091010152505050600101611a3e565b509092509050915091565b6000611668670de0b6b3a7640000611c9d858563ffffffff6126f516565b9063ffffffff61272f16565b6000821580611cb6575081155b15611cc35750600061166b565b6116686001611cf4670de0b6b3a7640000611c9d83611ce8898963ffffffff6126f516565b9063ffffffff61224416565b9063ffffffff61164316565b6000816001600160a01b0316836001600160a01b031663481c6a756040518163ffffffff1660e01b815260040160206040518083038186803b158015611d4557600080fd5b505afa158015611d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7d9190614129565b6001600160a01b0316149392505050565b6040516353bae5f760e01b81526000906001600160a01b038316906353bae5f790611dbd903090600401614662565b60206040518083038186803b158015611dd557600080fd5b505afa158015611de9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614310565b6000815111611e2e5760405162461bcd60e51b81526004016103e590614e38565b611e3781612771565b156110fb5760405162461bcd60e51b81526004016103e590614c43565b60015460405163e37f2b3f60e01b81526000916001600160a01b03169063e37f2b3f90611e85908590600401614662565b60206040518083038186803b158015611e9d57600080fd5b505afa158015611eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed59190614310565b80156111ab57506040516335fc6c9f60e21b81526001600160a01b0383169063d7f1b27c90611dbd903090600401614662565b600080846001600160a01b0316876001600160a01b03161415611f2f5750829050806120ce565b611f37613eca565b6001600160a01b0386166000908152600460209081526040918290208054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152611ff1938d93611fe7939190830182828015611fdd5780601f10611fb257610100808354040283529160200191611fdd565b820191906000526020600020905b815481529060010190602001808311611fc057829003601f168201915b50505050506120d9565b8a8a8a8a8a612820565b9050611ffc81612b1d565b612028816000015182602001518360400151846060015185608001518660a00151876101000151612bed565b61203181612da2565b5060006120526120418b8b612e57565b60c08401519063ffffffff61224416565b905060006120688360e00151611ce88d8b612e57565b9050876001600160a01b03168a6001600160a01b03168c6001600160a01b03167f71c90a8e22bbb06ea39d299250bcaff990254be58217e7d1479dcbf2f24aa776866020015186866040516120bf93929190614872565b60405180910390a49093509150505b965096945050505050565b6000806120e583612ed6565b90506120f081612ee1565b9392505050565b60008060008061210b868b8b8b8b8a612fa0565b91509150876001600160a01b0316896001600160a01b03168b6001600160a01b03167f0e631fe8e26e2b6c2ce8c4c55eca1d769c98bb4b5539068aec9ada0a3b429afe85858b60405161216093929190615129565b60405180910390a490999098509650505050505050565b8015610b5357606082826040516024016121929291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663a9059cbb60e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600060405180830381600087803b15801561220857600080fd5b505af115801561221c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136d919081019061432c565b600061166883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131c0565b8015610b53576040516370a0823160e01b81526000906001600160a01b038616906370a08231906122bb908690600401614662565b60206040518083038186803b1580156122d357600080fd5b505afa1580156122e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230b91906145bf565b9050612319858585856131ec565b6040516370a0823160e01b81526000906001600160a01b038716906370a0823190612348908790600401614662565b60206040518083038186803b15801561236057600080fd5b505afa158015612374573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239891906145bf565b9050611795828463ffffffff61164316565b6001600160a01b03808516600090815260036020526040812054909116801561243a5760405163a045808360e01b81526001600160a01b0382169063a0458083906123ff90899089908990899060040161481d565b600060405180830381600087803b15801561241957600080fd5b505af115801561242d573d6000803e3d6000fd5b5050505080915050612440565b60009150505b949350505050565b600080600060001990506060896001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561248d57600080fd5b505afa1580156124a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124c9919081019061419c565b9050606081516001600160401b03811180156124e457600080fd5b5060405190808252806020026020018201604052801561250e578160200160208202803683370190505b50905060005b825181101561266557600061254a6001611ce88b858151811061253357fe5b60200260200101518e611c7f90919063ffffffff16565b905060006125e58e6001600160a01b03166366cb8d2f87868151811061256c57fe5b60200260200101516040518263ffffffff1660e01b81526004016125909190614662565b60206040518083038186803b1580156125a857600080fd5b505afa1580156125bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e091906145bf565b6126cf565b9050600061261c8f8f858f88815181106125fb57fe5b60200260200101518a898151811061260f57fe5b6020026020010151613244565b90508085858151811061262b57fe5b60209081029190910101526000612648828463ffffffff6134de16565b9050878111612655578097505b5050600190920191506125149050565b5060006126768c8c8b85888c6134fc565b939c939b50929950505050505050505050565b600082820181831280159061269e5750838112155b806126b357506000831280156126b357508381125b6116685760405162461bcd60e51b81526004016103e590614b5d565b6000808212156126f15760405162461bcd60e51b81526004016103e590614c7a565b5090565b6000826127045750600061166b565b8282028284828161271157fe5b04146116685760405162461bcd60e51b81526004016103e590614d1d565b600061166883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613679565b6000808251116127935760405162461bcd60e51b81526004016103e5906150fc565b60005b60018351038110156128175760008382815181106127b057fe5b6020026020010151905060008260010190505b845181101561280d578481815181106127d857fe5b60200260200101516001600160a01b0316826001600160a01b0316141561280557600193505050506111ae565b6001016127c3565b5050600101612796565b50600092915050565b612828613eca565b600060606001600160a01b03871615806128535750876001600160a01b0316876001600160a01b0316145b8061286f5750856001600160a01b0316876001600160a01b0316145b156128f557604080516002808252606082018352909160208301908036833701905050905087816000815181106128a257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505085816001815181106128d057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506129a1565b604080516003808252608082019092529060208201606080368337019050509050878160008151811061292457fe5b60200260200101906001600160a01b031690816001600160a01b031681525050868160018151811061295257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050858160028151811061298057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6129a9613eca565b6001600160a01b03808c1682528a8116602083015289811660408301528716606082015260808101869052600060a08201526129e58b8a612e57565b60c08201526129f48b88612e57565b60e082015284612a8657604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612a2d9085906000906004016147f9565b60006040518083038186803b158015612a4557600080fd5b505afa158015612a59573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612a81919081019061432c565b612b09565b604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612ab59085906001906004016147f9565b60006040518083038186803b158015612acd57600080fd5b505afa158015612ae1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b09919081019061432c565b6101008201529a9950505050505050505050565b6000816080015111612b415760405162461bcd60e51b81526004016103e590615046565b600081604001516001600160a01b03166370a0823183600001516040518263ffffffff1660e01b8152600401612b779190614662565b60206040518083038186803b158015612b8f57600080fd5b505afa158015612ba3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc791906145bf565b905081608001518110156110365760405162461bcd60e51b81526004016103e5906149b1565b612c7a85876001600160a01b031663334fc2896040518163ffffffff1660e01b815260040160206040518083038186803b158015612c2a57600080fd5b505afa158015612c3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c629190614129565b6001600160a01b038a1691908663ffffffff6136b016565b6000806060886001600160a01b031663e171fcab89898d8a8a8a6040518763ffffffff1660e01b8152600401612cb596959493929190614701565b60006040518083038186803b158015612ccd57600080fd5b505afa158015612ce1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d099190810190614145565b925092509250896001600160a01b0316638f6f03328484846040518463ffffffff1660e01b8152600401612d3f9392919061474f565b600060405180830381600087803b158015612d5957600080fd5b505af1158015612d6d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d95919081019061432c565b5050505050505050505050565b600080612e318360e0015184606001516001600160a01b03166370a0823186600001516040518263ffffffff1660e01b8152600401612de19190614662565b60206040518083038186803b158015612df957600080fd5b505afa158015612e0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce891906145bf565b90508260a001518110156111ab5760405162461bcd60e51b81526004016103e590614aed565b600080826001600160a01b03166370a08231856040518263ffffffff1660e01b8152600401612e869190614662565b60206040518083038186803b158015612e9e57600080fd5b505afa158015612eb2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061244091906145bf565b805160209091012090565b6001546000908190612efb906001600160a01b031661112c565b6001600160a01b031663e6d642c530856040518363ffffffff1660e01b8152600401612f289291906146ce565b60206040518083038186803b158015612f4057600080fd5b505afa158015612f54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f789190614129565b90506001600160a01b0381166111ab5760405162461bcd60e51b81526004016103e590614c14565b600080612fae878686613721565b600083612fbb5786612fdd565b7f00000000000000000000000000000000000000000000000000000000000000005b90506000612feb8983612e57565b90506000612ff98a89612e57565b905060006130068c6120d9565b90506000816001600160a01b03166383d918098c8c6040518363ffffffff1660e01b81526004016130389291906146e7565b60206040518083038186803b15801561305057600080fd5b505afa158015613064573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130889190614129565b90506130a56001600160a01b038d168b838c63ffffffff6136b016565b61312d8c838a6130b5578d613126565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156130ee57600080fd5b505afa158015613102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131269190614129565b8d8d61376a565b871561316e5761316e6001600160a01b038d167f0000000000000000000000000000000000000000000000000000000000000000813163ffffffff61387f16565b600061317a8d87612e57565b905060006131888e8d612e57565b905061319a828763ffffffff61224416565b6131aa868363ffffffff61224416565b9850985050505050505050965096945050505050565b600081848411156131e45760405162461bcd60e51b81526004016103e59190614893565b505050900390565b610b53846323b872dd60e01b85858560405160240161320d939291906146aa565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613934565b600080826001600160a01b0316866001600160a01b03161415613268575083611639565b6001600160a01b0383811660009081526005602052604090206001015416613299576113ca87878686896001611f08565b6132a1613eb2565b6001600160a01b0384166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156133475780601f1061331c57610100808354040283529160200191613347565b820191906000526020600020905b81548152906001019060200180831161332a57829003601f168201915b5050509183525050600191909101546001600160a01b03166020909101528051909150600090613376906120d9565b90506000809050816001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156133b657600080fd5b505afa1580156133ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133ee9190614129565b6001600160a01b031683602001516001600160a01b0316141561349d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b03161461347c576134738a8a897f00000000000000000000000000000000000000000000000000000000000000008c6001611f08565b915061347f9050565b50865b6134968a84602001518884876000015160016139c3565b93506134d0565b6134b08a8a8986602001518c6001611f08565b9050809150506134cd8a84602001518884876000015160006139c3565b93505b505050905095945050505050565b600061166882611c9d85670de0b6b3a764000063ffffffff6126f516565b60008161350b57506000611639565b60008090506060886001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561354b57600080fd5b505afa15801561355f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613587919081019061419c565b905060005b815181101561366b5760006135c5876135b98d6001600160a01b03166366cb8d2f87878151811061256c57fe5b9063ffffffff611c7f16565b905060006135ef828a85815181106135d957fe5b602002602001015161224490919063ffffffff16565b90506000613603828463ffffffff6134de16565b9050613613612710611c9d613a3f565b8111156136605761365d6136508e8e8e888151811061362e57fe5b602002602001015189898151811061364257fe5b602002602001015187611375565b879063ffffffff61164316565b95505b50505060010161358c565b509098975050505050505050565b6000818361369a5760405162461bcd60e51b81526004016103e59190614893565b5060008385816136a657fe5b0495945050505050565b606082826040516024016136c59291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600081116137415760405162461bcd60e51b81526004016103e590614dca565b8061374c8484612e57565b101561059a5760405162461bcd60e51b81526004016103e590614b17565b6000806060866001600160a01b031663a22fe98e8787876040518463ffffffff1660e01b815260040161379f939291906146aa565b60006040518083038186803b1580156137b757600080fd5b505afa1580156137cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137f39190810190614145565b925092509250876001600160a01b0316638f6f03328484846040518463ffffffff1660e01b81526004016138299392919061474f565b600060405180830381600087803b15801561384357600080fd5b505af1158015613857573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a5919081019061432c565b6040805160048082526024820183526020820180516001600160e01b0316630d0e30db60e41b17905291516347b7819960e11b815290916001600160a01b03861691638f6f0332916138d7918791879187910161474f565b600060405180830381600087803b1580156138f157600080fd5b505af1158015613905573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261392d919081019061432c565b5050505050565b6060613989826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613a4b9092919063ffffffff16565b80519091501561059a57808060200190518101906139a79190614310565b61059a5760405162461bcd60e51b81526004016103e590614f7e565b60008060006139d6858a8a8a8a89613a5a565b91509150866001600160a01b0316886001600160a01b03168a6001600160a01b03167f266efe8e5e4e2e7e407c4814a2818ef8e990768c61e67315ac34a8d3555b438e85858a604051613a2b93929190615129565b60405180910390a498975050505050505050565b670de0b6b3a764000090565b60606124408484600085613c94565b600080600080613a6a8988612e57565b90506000613a778b6120d9565b9050600086613a865789613aa8565b7f00000000000000000000000000000000000000000000000000000000000000005b9050613ab58b828a613721565b613abf8b82612e57565b93508615613b0657613b016001600160a01b038c167f00000000000000000000000000000000000000000000000000000000000000008a63ffffffff613d5516565b613bbb565b604051633d3685e960e11b81526000906001600160a01b03841690637a6d0bd290613b37908e908e906004016146e7565b60206040518083038186803b158015613b4f57600080fd5b505afa158015613b63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b879190614129565b9050613bb98b82613b9f8c600163ffffffff61164316565b8f6001600160a01b03166136b0909392919063ffffffff16565b505b613c438b8389613bcb578c613c3c565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b158015613c0457600080fd5b505afa158015613c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c3c9190614129565b8c8c613dc4565b6000613c4f8c83612e57565b90506000613c5d8d8c612e57565b9050613c6f868363ffffffff61224416565b613c7f828763ffffffff61224416565b97509750505050505050965096945050505050565b606082471015613cb65760405162461bcd60e51b81526004016103e590614bce565b613cbf85613df9565b613cdb5760405162461bcd60e51b81526004016103e590614e01565b60006060866001600160a01b03168587604051613cf89190614646565b60006040518083038185875af1925050503d8060008114613d35576040519150601f19603f3d011682016040523d82523d6000602084013e613d3a565b606091505b5091509150613d4a828286613dff565b979650505050505050565b606081604051602401613d689190615120565b60408051601f198184030181529181526020820180516001600160e01b0316632e1a7d4d60e01b179052516347b7819960e11b81529091506001600160a01b03851690638f6f0332906138d7908690600090869060040161474f565b6000806060866001600160a01b03166377b1aaf88787876040518463ffffffff1660e01b815260040161379f939291906146aa565b3b151590565b60608315613e0e5750816120f0565b825115613e1e5782518084602001fd5b8160405162461bcd60e51b81526004016103e59190614893565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613e7957805160ff1916838001178555613ea6565b82800160010185558215613ea6579182015b82811115613ea6578251825591602001919060010190613e8b565b506126f1929150613f3a565b60408051808201909152606081526000602082015290565b60405180610120016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001606081525090565b6108d491905b808211156126f15760008155600101613f40565b600082601f830112613f64578081fd5b8135613f77613f728261516e565b615148565b818152915060208083019084810181840286018201871015613f9857600080fd5b60005b84811015613fc0578135613fae816151dc565b84529282019290820190600101613f9b565b505050505092915050565b600082601f830112613fdb578081fd5b8135613fe9613f728261516e565b818152915060208083019084810160005b84811015613fc0578135870188603f82011261401557600080fd5b83810135614025613f728261518d565b81815260408b8184860101111561403b57600080fd5b82818501888401375060009181018601919091528552509282019290820190600101613ffa565b600082601f830112614072578081fd5b8135614080613f728261516e565b8181529150602080830190848101818402860182018710156140a157600080fd5b60005b84811015613fc0578135845292820192908201906001016140a4565b600082601f8301126140d0578081fd5b81516140de613f728261518d565b91508082528360208285010111156140f557600080fd5b6141068160208401602086016151b0565b5092915050565b60006020828403121561411e578081fd5b8135611668816151dc565b60006020828403121561413a578081fd5b8151611668816151dc565b600080600060608486031215614159578182fd5b8351614164816151dc565b6020850151604086015191945092506001600160401b03811115614186578182fd5b614192868287016140c0565b9150509250925092565b600060208083850312156141ae578182fd5b82516001600160401b038111156141c3578283fd5b80840185601f8201126141d4578384fd5b805191506141e4613f728361516e565b8281528381019082850185850284018601891015614200578687fd5b8693505b8484101561422b578051614217816151dc565b835260019390930192918501918501614204565b50979650505050505050565b60008060408385031215614249578182fd5b82356001600160401b038082111561425f578384fd5b61426b86838701613f54565b93506020850135915080821115614280578283fd5b5061428d85828601613fcb565b9150509250929050565b6000806000606084860312156142ab578283fd5b83356001600160401b03808211156142c1578485fd5b6142cd87838801613f54565b945060208601359150808211156142e2578384fd5b6142ee87838801613fcb565b93506040860135915080821115614303578283fd5b5061419286828701613f54565b600060208284031215614321578081fd5b8151611668816151f1565b60006020828403121561433d578081fd5b81516001600160401b03811115614352578182fd5b612440848285016140c0565b600080600080600080600080610100898b03121561437a578586fd5b8835614385816151dc565b97506020890135614395816151dc565b9650604089013595506060890135945060808901356001600160401b03808211156143be578586fd5b6143ca8c838d01613f54565b955060a08b01359150808211156143df578485fd5b506143ec8b828c01614062565b93505060c08901356143fd816151dc565b915060e089013561440d816151f1565b809150509295985092959890939650565b60008060408385031215614430578182fd5b823561443b816151dc565b9150602083013561444b816151dc565b809150509250929050565b60008060008060008060c0878903121561446e578384fd5b8635614479816151dc565b9550602087013594506040870135614490816151dc565b935060608701356001600160401b038111156144aa578283fd5b6144b689828a01613f54565b93505060808701356144c7816151dc565b8092505060a087013590509295509295509295565b60008060008060008060c087890312156144f4578384fd5b86356144ff816151dc565b95506020870135945060408701356001600160401b0380821115614521578586fd5b61452d8a838b01613f54565b95506060890135915080821115614542578384fd5b5061454f89828a01614062565b9350506080870135614560816151dc565b915060a0870135614570816151f1565b809150509295509295509295565b600080600060608486031215614592578081fd5b833561459d816151dc565b92506020840135915060408401356145b4816151f1565b809150509250925092565b6000602082840312156145d0578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561460f5781516001600160a01b0316875295820195908201906001016145ea565b509495945050505050565b600081518084526146328160208601602086016151b0565b601f01601f19169290920160200192915050565b600082516146588184602087016151b0565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038781168252868116602083015285166040820152606081018490526080810183905260c060a082018190526000906147439083018461461a565b98975050505050505050565b600060018060a01b038516825283602083015260606040830152614776606083018461461a565b95945050505050565b6001600160a01b03831681526040602082018190526000906124409083018461461a565b6000604082526147b660408301856145d7565b828103602084810191909152845180835285820192820190845b818110156147ec578451835293830193918301916001016147d0565b5090979650505050505050565b60006040825261480c60408301856145d7565b905082151560208301529392505050565b6001600160a01b03948516815260208101939093529083166040830152909116606082015260800190565b6001600160a01b039485168152602081019390935292166040820152901515606082015260800190565b6001600160a01b039390931683526020830191909152604082015260600190565b600060208252611668602083018461461a565b6000604082526148b9604083018561461a565b905060018060a01b03831660208301529392505050565b60208082526023908201527f636f6d706f6e656e7420616d6f756e742073686f756c64206e6f74206265207a60408201526265726f60e81b606082015260800190565b602080825260159082015274082e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b604082015260600190565b6020808252601390820152720eecad2ced0e8d2dccee640dad2e6dac2e8c6d606b1b604082015260600190565b60208082526022908201527f4d75737420626520636f6e74726f6c6c65722d656e61626c656420434b546f6b60408201526132b760f11b606082015260800190565b60208082526031908201527f746f74616c2073656e64207175616e746974792063616e742062652067726561604082015270746572207468616e206578697374696e6760781b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f52656465656d207175616e74697479206d757374206265203e20300000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f4d7573742062652070656e64696e6720696e697469616c697a6174696f6e0000604082015260600190565b60208082526010908201526f536c69707061676520746f6f2062696760801b604082015260600190565b60208082526026908201527f7175616e746974792063616e742062652067726561746572207468616e206578604082015265697374696e6760d01b606082015260800190565b60208082526021908201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526016908201527517db5a5b90dad51bdad95b949958c81b9bdd081b595d60521b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526015908201527426bab9ba103132903b30b634b21030b230b83a32b960591b604082015260600190565b6020808252601a908201527f43616e6e6f74206475706c696361746520616464726573736573000000000000604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252601b908201527f4d7573742062652074686520434b546f6b656e206d616e616765720000000000604082015260600190565b6020808252601a908201527f556e7265636f676e697a65642065786368616e6765206e616d65000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f496e76616c696420706f7374207472616e736665722062616c616e6365000000604082015260600190565b6020808252601e908201527f636f6d706f6e656e74207175616e74697479206d757374206265203e20300000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526018908201527f4172726179206c656e677468206d757374206265203e20300000000000000000604082015260600190565b6020808252601c908201527f5f6d696e52656465656d546f6b656e546f526563206e6f74206d657400000000604082015260600190565b6020808252601e908201527f556e7265636f676e697a656420777261702061646170746572206e616d650000604082015260600190565b6020808252818101527f4973737565206574686572207175616e74697479206d757374206265203e2030604082015260600190565b6020808252818101527f497373756520746f6b656e207175616e74697479206d757374206265203e2030604082015260600190565b6020808252601a908201527f5f6d6964546f6b656e73206c656e677468206d69736d61746368000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526027908201527f4d75737420626520612076616c696420616e6420696e697469616c697a65642060408201526621a5aa37b5b2b760c91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601d908201527f546f6b656e20746f2073656c6c206d757374206265206e6f6e7a65726f000000604082015260600190565b60208082526033908201527f4f6e6c7920706f7369746976652065787465726e616c20756e697420706f73696040820152721d1a5bdb9cc8185c99481cdd5c1c1bdc9d1959606a1b606082015260800190565b6020808252601290820152710dad2c8a8ded6cadce640dad2e6dac2e8c6d60731b604082015260600190565b6020808252600a90820152694120697320656d70747960b01b604082015260600190565b90815260200190565b600084825283602083015260606040830152614776606083018461461a565b6040518181016001600160401b038111828210171561516657600080fd5b604052919050565b60006001600160401b03821115615183578081fd5b5060209081020190565b60006001600160401b038211156151a2578081fd5b50601f01601f191660200190565b60005b838110156151cb5781810151838201526020016151b3565b83811115610b535750506000910152565b6001600160a01b03811681146110fb57600080fd5b80151581146110fb57600080fdfea264697066735822122024de1ac5556d0aad8346cc2b8bf0cdb09a3e6c21a35448805a16d178f9d3353464736f6c634300060a0033","sourceMap":"107190:42670:0:-:0;;;110726:112;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110794:11;21200:17;21220:12;-1:-1:-1;;;;;21220:10:0;:12;:::i;:::-;21243:6;:18;;-1:-1:-1;;;;;;21243:18:0;-1:-1:-1;;;;;21243:18:0;;;;;;;21277:43;;21243:18;;-1:-1:-1;21243:18:0;21277:43;;21243:6;;21277:43;-1:-1:-1;98499:10:0;:24;;-1:-1:-1;;;;;;98499:24:0;-1:-1:-1;;;;;98499:24:0;;;;;;;;;;24438:7;:22;110818:12:::1;::::0;-1:-1:-1;;;;;;110818:12:0;::::1;::::0;-1:-1:-1;107190:42670:0;;735:106;823:10;735:106;:::o;355:467:-1:-;;;521:2;509:9;500:7;496:23;492:32;489:2;;;-1:-1;;527:12;489:2;109:6;103:13;121:53;168:5;121:53;;;710:2;774:22;;278:13;579:94;;-1:-1;296:47;278:13;296:47;;;718:88;;;;483:339;;;;;;1285:157;-1:-1;;;;;1219:54;;1364:55;;1354:2;;1433:1;;1423:12;1354:2;1348:94;;;107190:42670:0;;;;;;;;;;;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa264697066735822122024de1ac5556d0aad8346cc2b8bf0cdb09a3e6c21a35448805a16d178f9d3353464736f6c634300060a0033","offset":21374}},"transformations":[{"id":"1","type":"replace","offset":21374,"reason":"cborAuxdata"},{"type":"insert","offset":21427,"reason":"constructorArguments"}],"transformationValues":{"cborAuxdata":{"1":"0xa26469706673582212208b05ec7d7ae8f48e47d4914209a190ab58f7d31cd1ff9e77bd2b37e6c99d538864736f6c634300060a0033"},"constructorArguments":"0x000000000000000000000000822aeb433a4ea7a97b76287cb513c3985034a2bd000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}},"runtimeBytecode":{"onchainBytecode":"0x6080604052600436106100f35760003560e01c8063c1bd162b1161008a578063e9e6f5c111610059578063e9e6f5c114610272578063f1ca6a3f14610292578063f2fde38b146102c0578063f77c4791146102e0576100f3565b8063c1bd162b146101f1578063c97b83b014610211578063de43213814610224578063dfe7533514610252576100f3565b80636ac607a1116100c65780636ac607a114610192578063715018a6146101b2578063847ef08d146101c75780638da5cb5b146101dc576100f3565b80633fc8cef3146100f8578063485cc955146101235780634ee05c4a146101455780635f06cd2c14610165575b600080fd5b34801561010457600080fd5b5061010d6102f5565b60405161011a9190614662565b60405180910390f35b34801561012f57600080fd5b5061014361013e36600461441e565b610319565b005b34801561015157600080fd5b50610143610160366004614237565b6103b0565b34801561017157600080fd5b5061018561018036600461410d565b61059f565b60405161011a9190614893565b34801561019e57600080fd5b506101436101ad366004614456565b61063a565b3480156101be57600080fd5b50610143610846565b3480156101d357600080fd5b506101436108c5565b3480156101e857600080fd5b5061010d6108c7565b3480156101fd57600080fd5b5061014361020c366004614297565b6108d7565b61014361021f3660046144dc565b610b59565b34801561023057600080fd5b5061024461023f36600461410d565b610cc7565b60405161011a9291906148a6565b34801561025e57600080fd5b5061010d61026d36600461410d565b610d77565b34801561027e57600080fd5b5061014361028d36600461435e565b610d92565b34801561029e57600080fd5b506102b26102ad36600461457e565b610e2e565b60405161011a9291906147a3565b3480156102cc57600080fd5b506101436102db36600461410d565b610f4b565b3480156102ec57600080fd5b5061010d611001565b7f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c81565b81336103258282611010565b8361032f8161103a565b6001600160a01b0385811660008181526003602052604080822080546001600160a01b0319169489169490941790935582516307ff078f60e11b815292519192630ffe0f1e926004808301939282900301818387803b15801561039157600080fd5b505af11580156103a5573d6000803e3d6000fd5b505050505050505050565b6103b86110fe565b6000546001600160a01b039081169116146103ee5760405162461bcd60e51b81526004016103e590614d5e565b60405180910390fd5b6103fe828263ffffffff61110216565b60005b825181101561059a5760015461041f906001600160a01b031661112c565b6001600160a01b031663639a39783084848151811061043a57fe5b60200260200101516040518363ffffffff1660e01b815260040161045f92919061477f565b60206040518083038186803b15801561047757600080fd5b505afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af9190614310565b6104cb5760405162461bcd60e51b81526004016103e590614ce6565b8181815181106104d757fe5b6020026020010151600460008584815181106104ef57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020908051906020019061052a929190613e38565b5082818151811061053757fe5b60200260200101516001600160a01b03167fc58c5ebe64b61aa17ac9e8948fc0664b62dff77268a22b4f1142443b3a583aac83838151811061057557fe5b602002602001015160405161058a9190614893565b60405180910390a2600101610401565b505050565b60046020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156106325780601f1061060757610100808354040283529160200191610632565b820191906000526020600020905b81548152906001019060200180831161061557829003601f168201915b505050505081565b60028054141561065c5760405162461bcd60e51b81526004016103e59061500f565b600280558561066a816111b3565b6000861161068a5760405162461bcd60e51b81526004016103e590614a48565b604051632770a7eb60e21b81526001600160a01b03881690639dc29fac906106b89033908a906004016146ce565b600060405180830381600087803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050506060806106f989896000610e2e565b91509150600080905082518751146107235760405162461bcd60e51b81526004016103e590614f47565b60005b83518110156107b45761074f8b8b86848151811061074057fe5b602002602001015160006111d8565b60006107978c8b8b858151811061076257fe5b602002602001015188868151811061077657fe5b602002602001015188878151811061078a57fe5b6020026020010151611375565b90506107a9838263ffffffff61164316565b925050600101610726565b50848110156107d55760405162461bcd60e51b81526004016103e590614e6f565b6107f06001600160a01b038b1689888463ffffffff61167116565b896001600160a01b03167f6dbb023d3cf13366dd3d689c3004862670c9a3f48ef6b61cd4ff7c1d3007f46e33888c60405161082d939291906146aa565b60405180910390a2505060016002555050505050505050565b61084e6110fe565b6000546001600160a01b0390811691161461087b5760405162461bcd60e51b81526004016103e590614d5e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b565b6000546001600160a01b03165b90565b6108df6110fe565b6000546001600160a01b0390811691161461090c5760405162461bcd60e51b81526004016103e590614d5e565b61091c838363ffffffff61110216565b61092c838263ffffffff61110216565b60005b8351811015610b535760015461094d906001600160a01b031661112c565b6001600160a01b031663639a39783085848151811061096857fe5b60200260200101516040518363ffffffff1660e01b815260040161098d92919061477f565b60206040518083038186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd9190614310565b6109f95760405162461bcd60e51b81526004016103e590614ea6565b828181518110610a0557fe5b602002602001015160056000868481518110610a1d57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000019080519060200190610a5b929190613e38565b50818181518110610a6857fe5b602002602001015160056000868481518110610a8057fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550838181518110610adb57fe5b60200260200101516001600160a01b03167f9b6908663d418cb1b019425f179085f031896cd0545d64837c95ce3cfff91299848381518110610b1957fe5b6020026020010151848481518110610b2d57fe5b6020026020010151604051610b439291906148a6565b60405180910390a260010161092f565b50505050565b600280541415610b7b5760405162461bcd60e51b81526004016103e59061500f565b6002805585610b89816111b3565b60003411610ba95760405162461bcd60e51b81526004016103e590614edd565b7f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c6001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c0457600080fd5b505af1158015610c18573d6000803e3d6000fd5b5050505050610c497f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c3089346117b3565b6000610c7b887f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c348a8a8a8a8a6117bf565b9050610cb86001600160a01b0389167f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c338463ffffffff61167116565b50506001600255505050505050565b60056020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909291839190830182828015610d5e5780601f10610d3357610100808354040283529160200191610d5e565b820191906000526020600020905b815481529060010190602001808311610d4157829003601f168201915b505050600190930154919250506001600160a01b031682565b6003602052600090815260409020546001600160a01b031681565b600280541415610db45760405162461bcd60e51b81526004016103e59061500f565b6002805587610dc2816111b3565b60008711610de25760405162461bcd60e51b81526004016103e590614f12565b610dee88338b8a6117b3565b6000610e008a8a8a8a8a8a8a8a6117bf565b9050610e1d6001600160a01b038b168a338463ffffffff61167116565b505060016002555050505050505050565b606080606080610e3d87611979565b91509150606082516001600160401b0381118015610e5a57600080fd5b50604051908082528060200260200182016040528015610e84578160200160208202803683370190505b50905060005b8251811015610f3c5786610ec357610ebe88848381518110610ea857fe5b6020026020010151611c7f90919063ffffffff16565b610ee9565b610ee988848381518110610ed357fe5b6020026020010151611ca990919063ffffffff16565b828281518110610ef557fe5b6020026020010181815250506000828281518110610f0f57fe5b602002602001015111610f345760405162461bcd60e51b81526004016103e5906148d0565b600101610e8a565b50919791965090945050505050565b610f536110fe565b6000546001600160a01b03908116911614610f805760405162461bcd60e51b81526004016103e590614d5e565b6001600160a01b038116610fa65760405162461bcd60e51b81526004016103e590614a02565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b61101a8282611d00565b6110365760405162461bcd60e51b81526004016103e590614caf565b5050565b60015460405163e37f2b3f60e01b81526001600160a01b039091169063e37f2b3f9061106a908490600401614662565b60206040518083038186803b15801561108257600080fd5b505afa158015611096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ba9190614310565b6110d65760405162461bcd60e51b81526004016103e59061496f565b6110df81611d8e565b6110fb5760405162461bcd60e51b81526004016103e590614ab6565b50565b3390565b80518251146111235760405162461bcd60e51b81526004016103e590614913565b61103682611e0d565b6040516373b2e76b60e11b81526000906001600160a01b0383169063e765ced69061115b908490600401615120565b60206040518083038186803b15801561117357600080fd5b505afa158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614129565b90505b919050565b6111bc81611e54565b6110fb5760405162461bcd60e51b81526004016103e590614fc8565b60405163a7bdad0360e01b81526060906001600160a01b0386169063a7bdad0390611207908690600401614662565b60006040518083038186803b15801561121f57600080fd5b505afa158015611233573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261125b919081019061419c565b905060005b815181101561136d5782156112ec5781818151811061127b57fe5b60200260200101516001600160a01b0316630fb96b2187878760016040518563ffffffff1660e01b81526004016112b59493929190614848565b600060405180830381600087803b1580156112cf57600080fd5b505af11580156112e3573d6000803e3d6000fd5b50505050611365565b8181815181106112f857fe5b60200260200101516001600160a01b031663c137f4d787878760016040518563ffffffff1660e01b81526004016113329493929190614848565b600060405180830381600087803b15801561134c57600080fd5b505af1158015611360573d6000803e3d6000fd5b505050505b600101611260565b505050505050565b600080836001600160a01b0316866001600160a01b03161415611399575081611639565b6001600160a01b03848116600090815260056020526040902060010154166113d3576113ca87858789876001611f08565b91506116399050565b6113db613eb2565b6001600160a01b0385166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156114815780601f1061145657610100808354040283529160200191611481565b820191906000526020600020905b81548152906001019060200180831161146457829003601f168201915b5050509183525050600191909101546001600160a01b031660209091015280519091506000906114b0906120d9565b90506000806115538b85602001518a8a8860000151886001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156114fe57600080fd5b505afa158015611512573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115369190614129565b6001600160a01b03168a602001516001600160a01b0316146120f7565b91509150826001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b15801561159057600080fd5b505afa1580156115a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c89190614129565b6001600160a01b031684602001516001600160a01b0316141561161d576116148b7f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c8b8d866001611f08565b95506116349050565b6116308b85602001518b8d866001611f08565b9550505b505050505b9695505050505050565b6000828201838110156116685760405162461bcd60e51b81526004016103e590614a7f565b90505b92915050565b8015610b53576040516370a0823160e01b81526000906001600160a01b038516906370a08231906116a6908890600401614662565b60206040518083038186803b1580156116be57600080fd5b505afa1580156116d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f691906145bf565b905061170485858585612177565b6040516370a0823160e01b81526000906001600160a01b038616906370a0823190611733908990600401614662565b60206040518083038186803b15801561174b57600080fd5b505afa15801561175f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178391906145bf565b9050611795828463ffffffff61224416565b811461136d5760405162461bcd60e51b81526004016103e590614d93565b610b5384848484612286565b6000806117ce8a8833876123aa565b905060608a6001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561180b57600080fd5b505afa15801561181f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611847919081019061419c565b9050855181511461186a5760405162461bcd60e51b81526004016103e590614942565b865181511461188b5760405162461bcd60e51b81526004016103e5906150d0565b60008061189c8d8d8d8c8c8b612448565b91509150898210156118c05760405162461bcd60e51b81526004016103e590614b9e565b6040516340c10f1960e01b81526001600160a01b038e16906340c10f19906118ee908a9086906004016146ce565b600060405180830381600087803b15801561190857600080fd5b505af115801561191c573d6000803e3d6000fd5b505050508c6001600160a01b03167f2f42aaf883466d0fb581f939a2ba28df39832ab7f0b4f8a2193836b2b54489503389878686604051611961959493929190614676565b60405180910390a29c9b505050505050505050505050565b6060806060836001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156119b757600080fd5b505afa1580156119cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119f3919081019061419c565b9050606081516001600160401b0381118015611a0e57600080fd5b50604051908082528060200260200182016040528015611a38578160200160208202803683370190505b50905060005b8251811015611c74576000838281518110611a5557fe5b602002602001015190506000876001600160a01b03166366cb8d2f836040518263ffffffff1660e01b8152600401611a8d9190614662565b60206040518083038186803b158015611aa557600080fd5b505afa158015611ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611add91906145bf565b90506060886001600160a01b031663a7bdad03846040518263ffffffff1660e01b8152600401611b0d9190614662565b60006040518083038186803b158015611b2557600080fd5b505afa158015611b39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b61919081019061419c565b805190915015611c495760005b8151811015611c475760008a6001600160a01b03166322ebeba486858581518110611b9557fe5b60200260200101516040518363ffffffff1660e01b8152600401611bba9291906146e7565b60206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a91906145bf565b905060008113611c2c5760405162461bcd60e51b81526004016103e59061507d565b611c3c848263ffffffff61268916565b935050600101611b6e565b505b611c52826126cf565b858581518110611c5e57fe5b6020908102919091010152505050600101611a3e565b509092509050915091565b6000611668670de0b6b3a7640000611c9d858563ffffffff6126f516565b9063ffffffff61272f16565b6000821580611cb6575081155b15611cc35750600061166b565b6116686001611cf4670de0b6b3a7640000611c9d83611ce8898963ffffffff6126f516565b9063ffffffff61224416565b9063ffffffff61164316565b6000816001600160a01b0316836001600160a01b031663481c6a756040518163ffffffff1660e01b815260040160206040518083038186803b158015611d4557600080fd5b505afa158015611d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7d9190614129565b6001600160a01b0316149392505050565b6040516353bae5f760e01b81526000906001600160a01b038316906353bae5f790611dbd903090600401614662565b60206040518083038186803b158015611dd557600080fd5b505afa158015611de9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614310565b6000815111611e2e5760405162461bcd60e51b81526004016103e590614e38565b611e3781612771565b156110fb5760405162461bcd60e51b81526004016103e590614c43565b60015460405163e37f2b3f60e01b81526000916001600160a01b03169063e37f2b3f90611e85908590600401614662565b60206040518083038186803b158015611e9d57600080fd5b505afa158015611eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed59190614310565b80156111ab57506040516335fc6c9f60e21b81526001600160a01b0383169063d7f1b27c90611dbd903090600401614662565b600080846001600160a01b0316876001600160a01b03161415611f2f5750829050806120ce565b611f37613eca565b6001600160a01b0386166000908152600460209081526040918290208054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152611ff1938d93611fe7939190830182828015611fdd5780601f10611fb257610100808354040283529160200191611fdd565b820191906000526020600020905b815481529060010190602001808311611fc057829003601f168201915b50505050506120d9565b8a8a8a8a8a612820565b9050611ffc81612b1d565b612028816000015182602001518360400151846060015185608001518660a00151876101000151612bed565b61203181612da2565b5060006120526120418b8b612e57565b60c08401519063ffffffff61224416565b905060006120688360e00151611ce88d8b612e57565b9050876001600160a01b03168a6001600160a01b03168c6001600160a01b03167f71c90a8e22bbb06ea39d299250bcaff990254be58217e7d1479dcbf2f24aa776866020015186866040516120bf93929190614872565b60405180910390a49093509150505b965096945050505050565b6000806120e583612ed6565b90506120f081612ee1565b9392505050565b60008060008061210b868b8b8b8b8a612fa0565b91509150876001600160a01b0316896001600160a01b03168b6001600160a01b03167f0e631fe8e26e2b6c2ce8c4c55eca1d769c98bb4b5539068aec9ada0a3b429afe85858b60405161216093929190615129565b60405180910390a490999098509650505050505050565b8015610b5357606082826040516024016121929291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663a9059cbb60e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600060405180830381600087803b15801561220857600080fd5b505af115801561221c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136d919081019061432c565b600061166883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131c0565b8015610b53576040516370a0823160e01b81526000906001600160a01b038616906370a08231906122bb908690600401614662565b60206040518083038186803b1580156122d357600080fd5b505afa1580156122e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230b91906145bf565b9050612319858585856131ec565b6040516370a0823160e01b81526000906001600160a01b038716906370a0823190612348908790600401614662565b60206040518083038186803b15801561236057600080fd5b505afa158015612374573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239891906145bf565b9050611795828463ffffffff61164316565b6001600160a01b03808516600090815260036020526040812054909116801561243a5760405163a045808360e01b81526001600160a01b0382169063a0458083906123ff90899089908990899060040161481d565b600060405180830381600087803b15801561241957600080fd5b505af115801561242d573d6000803e3d6000fd5b5050505080915050612440565b60009150505b949350505050565b600080600060001990506060896001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561248d57600080fd5b505afa1580156124a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124c9919081019061419c565b9050606081516001600160401b03811180156124e457600080fd5b5060405190808252806020026020018201604052801561250e578160200160208202803683370190505b50905060005b825181101561266557600061254a6001611ce88b858151811061253357fe5b60200260200101518e611c7f90919063ffffffff16565b905060006125e58e6001600160a01b03166366cb8d2f87868151811061256c57fe5b60200260200101516040518263ffffffff1660e01b81526004016125909190614662565b60206040518083038186803b1580156125a857600080fd5b505afa1580156125bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e091906145bf565b6126cf565b9050600061261c8f8f858f88815181106125fb57fe5b60200260200101518a898151811061260f57fe5b6020026020010151613244565b90508085858151811061262b57fe5b60209081029190910101526000612648828463ffffffff6134de16565b9050878111612655578097505b5050600190920191506125149050565b5060006126768c8c8b85888c6134fc565b939c939b50929950505050505050505050565b600082820181831280159061269e5750838112155b806126b357506000831280156126b357508381125b6116685760405162461bcd60e51b81526004016103e590614b5d565b6000808212156126f15760405162461bcd60e51b81526004016103e590614c7a565b5090565b6000826127045750600061166b565b8282028284828161271157fe5b04146116685760405162461bcd60e51b81526004016103e590614d1d565b600061166883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613679565b6000808251116127935760405162461bcd60e51b81526004016103e5906150fc565b60005b60018351038110156128175760008382815181106127b057fe5b6020026020010151905060008260010190505b845181101561280d578481815181106127d857fe5b60200260200101516001600160a01b0316826001600160a01b0316141561280557600193505050506111ae565b6001016127c3565b5050600101612796565b50600092915050565b612828613eca565b600060606001600160a01b03871615806128535750876001600160a01b0316876001600160a01b0316145b8061286f5750856001600160a01b0316876001600160a01b0316145b156128f557604080516002808252606082018352909160208301908036833701905050905087816000815181106128a257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505085816001815181106128d057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506129a1565b604080516003808252608082019092529060208201606080368337019050509050878160008151811061292457fe5b60200260200101906001600160a01b031690816001600160a01b031681525050868160018151811061295257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050858160028151811061298057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6129a9613eca565b6001600160a01b03808c1682528a8116602083015289811660408301528716606082015260808101869052600060a08201526129e58b8a612e57565b60c08201526129f48b88612e57565b60e082015284612a8657604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612a2d9085906000906004016147f9565b60006040518083038186803b158015612a4557600080fd5b505afa158015612a59573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612a81919081019061432c565b612b09565b604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612ab59085906001906004016147f9565b60006040518083038186803b158015612acd57600080fd5b505afa158015612ae1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b09919081019061432c565b6101008201529a9950505050505050505050565b6000816080015111612b415760405162461bcd60e51b81526004016103e590615046565b600081604001516001600160a01b03166370a0823183600001516040518263ffffffff1660e01b8152600401612b779190614662565b60206040518083038186803b158015612b8f57600080fd5b505afa158015612ba3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc791906145bf565b905081608001518110156110365760405162461bcd60e51b81526004016103e5906149b1565b612c7a85876001600160a01b031663334fc2896040518163ffffffff1660e01b815260040160206040518083038186803b158015612c2a57600080fd5b505afa158015612c3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c629190614129565b6001600160a01b038a1691908663ffffffff6136b016565b6000806060886001600160a01b031663e171fcab89898d8a8a8a6040518763ffffffff1660e01b8152600401612cb596959493929190614701565b60006040518083038186803b158015612ccd57600080fd5b505afa158015612ce1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d099190810190614145565b925092509250896001600160a01b0316638f6f03328484846040518463ffffffff1660e01b8152600401612d3f9392919061474f565b600060405180830381600087803b158015612d5957600080fd5b505af1158015612d6d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d95919081019061432c565b5050505050505050505050565b600080612e318360e0015184606001516001600160a01b03166370a0823186600001516040518263ffffffff1660e01b8152600401612de19190614662565b60206040518083038186803b158015612df957600080fd5b505afa158015612e0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce891906145bf565b90508260a001518110156111ab5760405162461bcd60e51b81526004016103e590614aed565b600080826001600160a01b03166370a08231856040518263ffffffff1660e01b8152600401612e869190614662565b60206040518083038186803b158015612e9e57600080fd5b505afa158015612eb2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061244091906145bf565b805160209091012090565b6001546000908190612efb906001600160a01b031661112c565b6001600160a01b031663e6d642c530856040518363ffffffff1660e01b8152600401612f289291906146ce565b60206040518083038186803b158015612f4057600080fd5b505afa158015612f54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f789190614129565b90506001600160a01b0381166111ab5760405162461bcd60e51b81526004016103e590614c14565b600080612fae878686613721565b600083612fbb5786612fdd565b7f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c5b90506000612feb8983612e57565b90506000612ff98a89612e57565b905060006130068c6120d9565b90506000816001600160a01b03166383d918098c8c6040518363ffffffff1660e01b81526004016130389291906146e7565b60206040518083038186803b15801561305057600080fd5b505afa158015613064573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130889190614129565b90506130a56001600160a01b038d168b838c63ffffffff6136b016565b61312d8c838a6130b5578d613126565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156130ee57600080fd5b505afa158015613102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131269190614129565b8d8d61376a565b871561316e5761316e6001600160a01b038d167f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c813163ffffffff61387f16565b600061317a8d87612e57565b905060006131888e8d612e57565b905061319a828763ffffffff61224416565b6131aa868363ffffffff61224416565b9850985050505050505050965096945050505050565b600081848411156131e45760405162461bcd60e51b81526004016103e59190614893565b505050900390565b610b53846323b872dd60e01b85858560405160240161320d939291906146aa565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613934565b600080826001600160a01b0316866001600160a01b03161415613268575083611639565b6001600160a01b0383811660009081526005602052604090206001015416613299576113ca87878686896001611f08565b6132a1613eb2565b6001600160a01b0384166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156133475780601f1061331c57610100808354040283529160200191613347565b820191906000526020600020905b81548152906001019060200180831161332a57829003601f168201915b5050509183525050600191909101546001600160a01b03166020909101528051909150600090613376906120d9565b90506000809050816001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156133b657600080fd5b505afa1580156133ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133ee9190614129565b6001600160a01b031683602001516001600160a01b0316141561349d577f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c6001600160a01b0316896001600160a01b03161461347c576134738a8a897f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c8c6001611f08565b915061347f9050565b50865b6134968a84602001518884876000015160016139c3565b93506134d0565b6134b08a8a8986602001518c6001611f08565b9050809150506134cd8a84602001518884876000015160006139c3565b93505b505050905095945050505050565b600061166882611c9d85670de0b6b3a764000063ffffffff6126f516565b60008161350b57506000611639565b60008090506060886001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561354b57600080fd5b505afa15801561355f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613587919081019061419c565b905060005b815181101561366b5760006135c5876135b98d6001600160a01b03166366cb8d2f87878151811061256c57fe5b9063ffffffff611c7f16565b905060006135ef828a85815181106135d957fe5b602002602001015161224490919063ffffffff16565b90506000613603828463ffffffff6134de16565b9050613613612710611c9d613a3f565b8111156136605761365d6136508e8e8e888151811061362e57fe5b602002602001015189898151811061364257fe5b602002602001015187611375565b879063ffffffff61164316565b95505b50505060010161358c565b509098975050505050505050565b6000818361369a5760405162461bcd60e51b81526004016103e59190614893565b5060008385816136a657fe5b0495945050505050565b606082826040516024016136c59291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600081116137415760405162461bcd60e51b81526004016103e590614dca565b8061374c8484612e57565b101561059a5760405162461bcd60e51b81526004016103e590614b17565b6000806060866001600160a01b031663a22fe98e8787876040518463ffffffff1660e01b815260040161379f939291906146aa565b60006040518083038186803b1580156137b757600080fd5b505afa1580156137cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137f39190810190614145565b925092509250876001600160a01b0316638f6f03328484846040518463ffffffff1660e01b81526004016138299392919061474f565b600060405180830381600087803b15801561384357600080fd5b505af1158015613857573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a5919081019061432c565b6040805160048082526024820183526020820180516001600160e01b0316630d0e30db60e41b17905291516347b7819960e11b815290916001600160a01b03861691638f6f0332916138d7918791879187910161474f565b600060405180830381600087803b1580156138f157600080fd5b505af1158015613905573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261392d919081019061432c565b5050505050565b6060613989826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613a4b9092919063ffffffff16565b80519091501561059a57808060200190518101906139a79190614310565b61059a5760405162461bcd60e51b81526004016103e590614f7e565b60008060006139d6858a8a8a8a89613a5a565b91509150866001600160a01b0316886001600160a01b03168a6001600160a01b03167f266efe8e5e4e2e7e407c4814a2818ef8e990768c61e67315ac34a8d3555b438e85858a604051613a2b93929190615129565b60405180910390a498975050505050505050565b670de0b6b3a764000090565b60606124408484600085613c94565b600080600080613a6a8988612e57565b90506000613a778b6120d9565b9050600086613a865789613aa8565b7f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c5b9050613ab58b828a613721565b613abf8b82612e57565b93508615613b0657613b016001600160a01b038c167f000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c8a63ffffffff613d5516565b613bbb565b604051633d3685e960e11b81526000906001600160a01b03841690637a6d0bd290613b37908e908e906004016146e7565b60206040518083038186803b158015613b4f57600080fd5b505afa158015613b63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b879190614129565b9050613bb98b82613b9f8c600163ffffffff61164316565b8f6001600160a01b03166136b0909392919063ffffffff16565b505b613c438b8389613bcb578c613c3c565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b158015613c0457600080fd5b505afa158015613c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c3c9190614129565b8c8c613dc4565b6000613c4f8c83612e57565b90506000613c5d8d8c612e57565b9050613c6f868363ffffffff61224416565b613c7f828763ffffffff61224416565b97509750505050505050965096945050505050565b606082471015613cb65760405162461bcd60e51b81526004016103e590614bce565b613cbf85613df9565b613cdb5760405162461bcd60e51b81526004016103e590614e01565b60006060866001600160a01b03168587604051613cf89190614646565b60006040518083038185875af1925050503d8060008114613d35576040519150601f19603f3d011682016040523d82523d6000602084013e613d3a565b606091505b5091509150613d4a828286613dff565b979650505050505050565b606081604051602401613d689190615120565b60408051601f198184030181529181526020820180516001600160e01b0316632e1a7d4d60e01b179052516347b7819960e11b81529091506001600160a01b03851690638f6f0332906138d7908690600090869060040161474f565b6000806060866001600160a01b03166377b1aaf88787876040518463ffffffff1660e01b815260040161379f939291906146aa565b3b151590565b60608315613e0e5750816120f0565b825115613e1e5782518084602001fd5b8160405162461bcd60e51b81526004016103e59190614893565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613e7957805160ff1916838001178555613ea6565b82800160010185558215613ea6579182015b82811115613ea6578251825591602001919060010190613e8b565b506126f1929150613f3a565b60408051808201909152606081526000602082015290565b60405180610120016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001606081525090565b6108d491905b808211156126f15760008155600101613f40565b600082601f830112613f64578081fd5b8135613f77613f728261516e565b615148565b818152915060208083019084810181840286018201871015613f9857600080fd5b60005b84811015613fc0578135613fae816151dc565b84529282019290820190600101613f9b565b505050505092915050565b600082601f830112613fdb578081fd5b8135613fe9613f728261516e565b818152915060208083019084810160005b84811015613fc0578135870188603f82011261401557600080fd5b83810135614025613f728261518d565b81815260408b8184860101111561403b57600080fd5b82818501888401375060009181018601919091528552509282019290820190600101613ffa565b600082601f830112614072578081fd5b8135614080613f728261516e565b8181529150602080830190848101818402860182018710156140a157600080fd5b60005b84811015613fc0578135845292820192908201906001016140a4565b600082601f8301126140d0578081fd5b81516140de613f728261518d565b91508082528360208285010111156140f557600080fd5b6141068160208401602086016151b0565b5092915050565b60006020828403121561411e578081fd5b8135611668816151dc565b60006020828403121561413a578081fd5b8151611668816151dc565b600080600060608486031215614159578182fd5b8351614164816151dc565b6020850151604086015191945092506001600160401b03811115614186578182fd5b614192868287016140c0565b9150509250925092565b600060208083850312156141ae578182fd5b82516001600160401b038111156141c3578283fd5b80840185601f8201126141d4578384fd5b805191506141e4613f728361516e565b8281528381019082850185850284018601891015614200578687fd5b8693505b8484101561422b578051614217816151dc565b835260019390930192918501918501614204565b50979650505050505050565b60008060408385031215614249578182fd5b82356001600160401b038082111561425f578384fd5b61426b86838701613f54565b93506020850135915080821115614280578283fd5b5061428d85828601613fcb565b9150509250929050565b6000806000606084860312156142ab578283fd5b83356001600160401b03808211156142c1578485fd5b6142cd87838801613f54565b945060208601359150808211156142e2578384fd5b6142ee87838801613fcb565b93506040860135915080821115614303578283fd5b5061419286828701613f54565b600060208284031215614321578081fd5b8151611668816151f1565b60006020828403121561433d578081fd5b81516001600160401b03811115614352578182fd5b612440848285016140c0565b600080600080600080600080610100898b03121561437a578586fd5b8835614385816151dc565b97506020890135614395816151dc565b9650604089013595506060890135945060808901356001600160401b03808211156143be578586fd5b6143ca8c838d01613f54565b955060a08b01359150808211156143df578485fd5b506143ec8b828c01614062565b93505060c08901356143fd816151dc565b915060e089013561440d816151f1565b809150509295985092959890939650565b60008060408385031215614430578182fd5b823561443b816151dc565b9150602083013561444b816151dc565b809150509250929050565b60008060008060008060c0878903121561446e578384fd5b8635614479816151dc565b9550602087013594506040870135614490816151dc565b935060608701356001600160401b038111156144aa578283fd5b6144b689828a01613f54565b93505060808701356144c7816151dc565b8092505060a087013590509295509295509295565b60008060008060008060c087890312156144f4578384fd5b86356144ff816151dc565b95506020870135945060408701356001600160401b0380821115614521578586fd5b61452d8a838b01613f54565b95506060890135915080821115614542578384fd5b5061454f89828a01614062565b9350506080870135614560816151dc565b915060a0870135614570816151f1565b809150509295509295509295565b600080600060608486031215614592578081fd5b833561459d816151dc565b92506020840135915060408401356145b4816151f1565b809150509250925092565b6000602082840312156145d0578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561460f5781516001600160a01b0316875295820195908201906001016145ea565b509495945050505050565b600081518084526146328160208601602086016151b0565b601f01601f19169290920160200192915050565b600082516146588184602087016151b0565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038781168252868116602083015285166040820152606081018490526080810183905260c060a082018190526000906147439083018461461a565b98975050505050505050565b600060018060a01b038516825283602083015260606040830152614776606083018461461a565b95945050505050565b6001600160a01b03831681526040602082018190526000906124409083018461461a565b6000604082526147b660408301856145d7565b828103602084810191909152845180835285820192820190845b818110156147ec578451835293830193918301916001016147d0565b5090979650505050505050565b60006040825261480c60408301856145d7565b905082151560208301529392505050565b6001600160a01b03948516815260208101939093529083166040830152909116606082015260800190565b6001600160a01b039485168152602081019390935292166040820152901515606082015260800190565b6001600160a01b039390931683526020830191909152604082015260600190565b600060208252611668602083018461461a565b6000604082526148b9604083018561461a565b905060018060a01b03831660208301529392505050565b60208082526023908201527f636f6d706f6e656e7420616d6f756e742073686f756c64206e6f74206265207a60408201526265726f60e81b606082015260800190565b602080825260159082015274082e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b604082015260600190565b6020808252601390820152720eecad2ced0e8d2dccee640dad2e6dac2e8c6d606b1b604082015260600190565b60208082526022908201527f4d75737420626520636f6e74726f6c6c65722d656e61626c656420434b546f6b60408201526132b760f11b606082015260800190565b60208082526031908201527f746f74616c2073656e64207175616e746974792063616e742062652067726561604082015270746572207468616e206578697374696e6760781b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f52656465656d207175616e74697479206d757374206265203e20300000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f4d7573742062652070656e64696e6720696e697469616c697a6174696f6e0000604082015260600190565b60208082526010908201526f536c69707061676520746f6f2062696760801b604082015260600190565b60208082526026908201527f7175616e746974792063616e742062652067726561746572207468616e206578604082015265697374696e6760d01b606082015260800190565b60208082526021908201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526016908201527517db5a5b90dad51bdad95b949958c81b9bdd081b595d60521b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526015908201527426bab9ba103132903b30b634b21030b230b83a32b960591b604082015260600190565b6020808252601a908201527f43616e6e6f74206475706c696361746520616464726573736573000000000000604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252601b908201527f4d7573742062652074686520434b546f6b656e206d616e616765720000000000604082015260600190565b6020808252601a908201527f556e7265636f676e697a65642065786368616e6765206e616d65000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f496e76616c696420706f7374207472616e736665722062616c616e6365000000604082015260600190565b6020808252601e908201527f636f6d706f6e656e74207175616e74697479206d757374206265203e20300000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526018908201527f4172726179206c656e677468206d757374206265203e20300000000000000000604082015260600190565b6020808252601c908201527f5f6d696e52656465656d546f6b656e546f526563206e6f74206d657400000000604082015260600190565b6020808252601e908201527f556e7265636f676e697a656420777261702061646170746572206e616d650000604082015260600190565b6020808252818101527f4973737565206574686572207175616e74697479206d757374206265203e2030604082015260600190565b6020808252818101527f497373756520746f6b656e207175616e74697479206d757374206265203e2030604082015260600190565b6020808252601a908201527f5f6d6964546f6b656e73206c656e677468206d69736d61746368000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526027908201527f4d75737420626520612076616c696420616e6420696e697469616c697a65642060408201526621a5aa37b5b2b760c91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601d908201527f546f6b656e20746f2073656c6c206d757374206265206e6f6e7a65726f000000604082015260600190565b60208082526033908201527f4f6e6c7920706f7369746976652065787465726e616c20756e697420706f73696040820152721d1a5bdb9cc8185c99481cdd5c1c1bdc9d1959606a1b606082015260800190565b6020808252601290820152710dad2c8a8ded6cadce640dad2e6dac2e8c6d60731b604082015260600190565b6020808252600a90820152694120697320656d70747960b01b604082015260600190565b90815260200190565b600084825283602083015260606040830152614776606083018461461a565b6040518181016001600160401b038111828210171561516657600080fd5b604052919050565b60006001600160401b03821115615183578081fd5b5060209081020190565b60006001600160401b038211156151a2578081fd5b50601f01601f191660200190565b60005b838110156151cb5781810151838201526020016151b3565b83811115610b535750506000910152565b6001600160a01b03811681146110fb57600080fd5b80151581146110fb57600080fdfea26469706673582212208b05ec7d7ae8f48e47d4914209a190ab58f7d31cd1ff9e77bd2b37e6c99d538864736f6c634300060a0033","recompiledBytecode":"0x6080604052600436106100f35760003560e01c8063c1bd162b1161008a578063e9e6f5c111610059578063e9e6f5c114610272578063f1ca6a3f14610292578063f2fde38b146102c0578063f77c4791146102e0576100f3565b8063c1bd162b146101f1578063c97b83b014610211578063de43213814610224578063dfe7533514610252576100f3565b80636ac607a1116100c65780636ac607a114610192578063715018a6146101b2578063847ef08d146101c75780638da5cb5b146101dc576100f3565b80633fc8cef3146100f8578063485cc955146101235780634ee05c4a146101455780635f06cd2c14610165575b600080fd5b34801561010457600080fd5b5061010d6102f5565b60405161011a9190614662565b60405180910390f35b34801561012f57600080fd5b5061014361013e36600461441e565b610319565b005b34801561015157600080fd5b50610143610160366004614237565b6103b0565b34801561017157600080fd5b5061018561018036600461410d565b61059f565b60405161011a9190614893565b34801561019e57600080fd5b506101436101ad366004614456565b61063a565b3480156101be57600080fd5b50610143610846565b3480156101d357600080fd5b506101436108c5565b3480156101e857600080fd5b5061010d6108c7565b3480156101fd57600080fd5b5061014361020c366004614297565b6108d7565b61014361021f3660046144dc565b610b59565b34801561023057600080fd5b5061024461023f36600461410d565b610cc7565b60405161011a9291906148a6565b34801561025e57600080fd5b5061010d61026d36600461410d565b610d77565b34801561027e57600080fd5b5061014361028d36600461435e565b610d92565b34801561029e57600080fd5b506102b26102ad36600461457e565b610e2e565b60405161011a9291906147a3565b3480156102cc57600080fd5b506101436102db36600461410d565b610f4b565b3480156102ec57600080fd5b5061010d611001565b7f000000000000000000000000000000000000000000000000000000000000000081565b81336103258282611010565b8361032f8161103a565b6001600160a01b0385811660008181526003602052604080822080546001600160a01b0319169489169490941790935582516307ff078f60e11b815292519192630ffe0f1e926004808301939282900301818387803b15801561039157600080fd5b505af11580156103a5573d6000803e3d6000fd5b505050505050505050565b6103b86110fe565b6000546001600160a01b039081169116146103ee5760405162461bcd60e51b81526004016103e590614d5e565b60405180910390fd5b6103fe828263ffffffff61110216565b60005b825181101561059a5760015461041f906001600160a01b031661112c565b6001600160a01b031663639a39783084848151811061043a57fe5b60200260200101516040518363ffffffff1660e01b815260040161045f92919061477f565b60206040518083038186803b15801561047757600080fd5b505afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af9190614310565b6104cb5760405162461bcd60e51b81526004016103e590614ce6565b8181815181106104d757fe5b6020026020010151600460008584815181106104ef57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020908051906020019061052a929190613e38565b5082818151811061053757fe5b60200260200101516001600160a01b03167fc58c5ebe64b61aa17ac9e8948fc0664b62dff77268a22b4f1142443b3a583aac83838151811061057557fe5b602002602001015160405161058a9190614893565b60405180910390a2600101610401565b505050565b60046020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156106325780601f1061060757610100808354040283529160200191610632565b820191906000526020600020905b81548152906001019060200180831161061557829003601f168201915b505050505081565b60028054141561065c5760405162461bcd60e51b81526004016103e59061500f565b600280558561066a816111b3565b6000861161068a5760405162461bcd60e51b81526004016103e590614a48565b604051632770a7eb60e21b81526001600160a01b03881690639dc29fac906106b89033908a906004016146ce565b600060405180830381600087803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050506060806106f989896000610e2e565b91509150600080905082518751146107235760405162461bcd60e51b81526004016103e590614f47565b60005b83518110156107b45761074f8b8b86848151811061074057fe5b602002602001015160006111d8565b60006107978c8b8b858151811061076257fe5b602002602001015188868151811061077657fe5b602002602001015188878151811061078a57fe5b6020026020010151611375565b90506107a9838263ffffffff61164316565b925050600101610726565b50848110156107d55760405162461bcd60e51b81526004016103e590614e6f565b6107f06001600160a01b038b1689888463ffffffff61167116565b896001600160a01b03167f6dbb023d3cf13366dd3d689c3004862670c9a3f48ef6b61cd4ff7c1d3007f46e33888c60405161082d939291906146aa565b60405180910390a2505060016002555050505050505050565b61084e6110fe565b6000546001600160a01b0390811691161461087b5760405162461bcd60e51b81526004016103e590614d5e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b565b6000546001600160a01b03165b90565b6108df6110fe565b6000546001600160a01b0390811691161461090c5760405162461bcd60e51b81526004016103e590614d5e565b61091c838363ffffffff61110216565b61092c838263ffffffff61110216565b60005b8351811015610b535760015461094d906001600160a01b031661112c565b6001600160a01b031663639a39783085848151811061096857fe5b60200260200101516040518363ffffffff1660e01b815260040161098d92919061477f565b60206040518083038186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd9190614310565b6109f95760405162461bcd60e51b81526004016103e590614ea6565b828181518110610a0557fe5b602002602001015160056000868481518110610a1d57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000019080519060200190610a5b929190613e38565b50818181518110610a6857fe5b602002602001015160056000868481518110610a8057fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550838181518110610adb57fe5b60200260200101516001600160a01b03167f9b6908663d418cb1b019425f179085f031896cd0545d64837c95ce3cfff91299848381518110610b1957fe5b6020026020010151848481518110610b2d57fe5b6020026020010151604051610b439291906148a6565b60405180910390a260010161092f565b50505050565b600280541415610b7b5760405162461bcd60e51b81526004016103e59061500f565b6002805585610b89816111b3565b60003411610ba95760405162461bcd60e51b81526004016103e590614edd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c0457600080fd5b505af1158015610c18573d6000803e3d6000fd5b5050505050610c497f00000000000000000000000000000000000000000000000000000000000000003089346117b3565b6000610c7b887f0000000000000000000000000000000000000000000000000000000000000000348a8a8a8a8a6117bf565b9050610cb86001600160a01b0389167f0000000000000000000000000000000000000000000000000000000000000000338463ffffffff61167116565b50506001600255505050505050565b60056020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909291839190830182828015610d5e5780601f10610d3357610100808354040283529160200191610d5e565b820191906000526020600020905b815481529060010190602001808311610d4157829003601f168201915b505050600190930154919250506001600160a01b031682565b6003602052600090815260409020546001600160a01b031681565b600280541415610db45760405162461bcd60e51b81526004016103e59061500f565b6002805587610dc2816111b3565b60008711610de25760405162461bcd60e51b81526004016103e590614f12565b610dee88338b8a6117b3565b6000610e008a8a8a8a8a8a8a8a6117bf565b9050610e1d6001600160a01b038b168a338463ffffffff61167116565b505060016002555050505050505050565b606080606080610e3d87611979565b91509150606082516001600160401b0381118015610e5a57600080fd5b50604051908082528060200260200182016040528015610e84578160200160208202803683370190505b50905060005b8251811015610f3c5786610ec357610ebe88848381518110610ea857fe5b6020026020010151611c7f90919063ffffffff16565b610ee9565b610ee988848381518110610ed357fe5b6020026020010151611ca990919063ffffffff16565b828281518110610ef557fe5b6020026020010181815250506000828281518110610f0f57fe5b602002602001015111610f345760405162461bcd60e51b81526004016103e5906148d0565b600101610e8a565b50919791965090945050505050565b610f536110fe565b6000546001600160a01b03908116911614610f805760405162461bcd60e51b81526004016103e590614d5e565b6001600160a01b038116610fa65760405162461bcd60e51b81526004016103e590614a02565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b61101a8282611d00565b6110365760405162461bcd60e51b81526004016103e590614caf565b5050565b60015460405163e37f2b3f60e01b81526001600160a01b039091169063e37f2b3f9061106a908490600401614662565b60206040518083038186803b15801561108257600080fd5b505afa158015611096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ba9190614310565b6110d65760405162461bcd60e51b81526004016103e59061496f565b6110df81611d8e565b6110fb5760405162461bcd60e51b81526004016103e590614ab6565b50565b3390565b80518251146111235760405162461bcd60e51b81526004016103e590614913565b61103682611e0d565b6040516373b2e76b60e11b81526000906001600160a01b0383169063e765ced69061115b908490600401615120565b60206040518083038186803b15801561117357600080fd5b505afa158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614129565b90505b919050565b6111bc81611e54565b6110fb5760405162461bcd60e51b81526004016103e590614fc8565b60405163a7bdad0360e01b81526060906001600160a01b0386169063a7bdad0390611207908690600401614662565b60006040518083038186803b15801561121f57600080fd5b505afa158015611233573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261125b919081019061419c565b905060005b815181101561136d5782156112ec5781818151811061127b57fe5b60200260200101516001600160a01b0316630fb96b2187878760016040518563ffffffff1660e01b81526004016112b59493929190614848565b600060405180830381600087803b1580156112cf57600080fd5b505af11580156112e3573d6000803e3d6000fd5b50505050611365565b8181815181106112f857fe5b60200260200101516001600160a01b031663c137f4d787878760016040518563ffffffff1660e01b81526004016113329493929190614848565b600060405180830381600087803b15801561134c57600080fd5b505af1158015611360573d6000803e3d6000fd5b505050505b600101611260565b505050505050565b600080836001600160a01b0316866001600160a01b03161415611399575081611639565b6001600160a01b03848116600090815260056020526040902060010154166113d3576113ca87858789876001611f08565b91506116399050565b6113db613eb2565b6001600160a01b0385166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156114815780601f1061145657610100808354040283529160200191611481565b820191906000526020600020905b81548152906001019060200180831161146457829003601f168201915b5050509183525050600191909101546001600160a01b031660209091015280519091506000906114b0906120d9565b90506000806115538b85602001518a8a8860000151886001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156114fe57600080fd5b505afa158015611512573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115369190614129565b6001600160a01b03168a602001516001600160a01b0316146120f7565b91509150826001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b15801561159057600080fd5b505afa1580156115a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c89190614129565b6001600160a01b031684602001516001600160a01b0316141561161d576116148b7f00000000000000000000000000000000000000000000000000000000000000008b8d866001611f08565b95506116349050565b6116308b85602001518b8d866001611f08565b9550505b505050505b9695505050505050565b6000828201838110156116685760405162461bcd60e51b81526004016103e590614a7f565b90505b92915050565b8015610b53576040516370a0823160e01b81526000906001600160a01b038516906370a08231906116a6908890600401614662565b60206040518083038186803b1580156116be57600080fd5b505afa1580156116d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f691906145bf565b905061170485858585612177565b6040516370a0823160e01b81526000906001600160a01b038616906370a0823190611733908990600401614662565b60206040518083038186803b15801561174b57600080fd5b505afa15801561175f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178391906145bf565b9050611795828463ffffffff61224416565b811461136d5760405162461bcd60e51b81526004016103e590614d93565b610b5384848484612286565b6000806117ce8a8833876123aa565b905060608a6001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561180b57600080fd5b505afa15801561181f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611847919081019061419c565b9050855181511461186a5760405162461bcd60e51b81526004016103e590614942565b865181511461188b5760405162461bcd60e51b81526004016103e5906150d0565b60008061189c8d8d8d8c8c8b612448565b91509150898210156118c05760405162461bcd60e51b81526004016103e590614b9e565b6040516340c10f1960e01b81526001600160a01b038e16906340c10f19906118ee908a9086906004016146ce565b600060405180830381600087803b15801561190857600080fd5b505af115801561191c573d6000803e3d6000fd5b505050508c6001600160a01b03167f2f42aaf883466d0fb581f939a2ba28df39832ab7f0b4f8a2193836b2b54489503389878686604051611961959493929190614676565b60405180910390a29c9b505050505050505050505050565b6060806060836001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156119b757600080fd5b505afa1580156119cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119f3919081019061419c565b9050606081516001600160401b0381118015611a0e57600080fd5b50604051908082528060200260200182016040528015611a38578160200160208202803683370190505b50905060005b8251811015611c74576000838281518110611a5557fe5b602002602001015190506000876001600160a01b03166366cb8d2f836040518263ffffffff1660e01b8152600401611a8d9190614662565b60206040518083038186803b158015611aa557600080fd5b505afa158015611ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611add91906145bf565b90506060886001600160a01b031663a7bdad03846040518263ffffffff1660e01b8152600401611b0d9190614662565b60006040518083038186803b158015611b2557600080fd5b505afa158015611b39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b61919081019061419c565b805190915015611c495760005b8151811015611c475760008a6001600160a01b03166322ebeba486858581518110611b9557fe5b60200260200101516040518363ffffffff1660e01b8152600401611bba9291906146e7565b60206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a91906145bf565b905060008113611c2c5760405162461bcd60e51b81526004016103e59061507d565b611c3c848263ffffffff61268916565b935050600101611b6e565b505b611c52826126cf565b858581518110611c5e57fe5b6020908102919091010152505050600101611a3e565b509092509050915091565b6000611668670de0b6b3a7640000611c9d858563ffffffff6126f516565b9063ffffffff61272f16565b6000821580611cb6575081155b15611cc35750600061166b565b6116686001611cf4670de0b6b3a7640000611c9d83611ce8898963ffffffff6126f516565b9063ffffffff61224416565b9063ffffffff61164316565b6000816001600160a01b0316836001600160a01b031663481c6a756040518163ffffffff1660e01b815260040160206040518083038186803b158015611d4557600080fd5b505afa158015611d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7d9190614129565b6001600160a01b0316149392505050565b6040516353bae5f760e01b81526000906001600160a01b038316906353bae5f790611dbd903090600401614662565b60206040518083038186803b158015611dd557600080fd5b505afa158015611de9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614310565b6000815111611e2e5760405162461bcd60e51b81526004016103e590614e38565b611e3781612771565b156110fb5760405162461bcd60e51b81526004016103e590614c43565b60015460405163e37f2b3f60e01b81526000916001600160a01b03169063e37f2b3f90611e85908590600401614662565b60206040518083038186803b158015611e9d57600080fd5b505afa158015611eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed59190614310565b80156111ab57506040516335fc6c9f60e21b81526001600160a01b0383169063d7f1b27c90611dbd903090600401614662565b600080846001600160a01b0316876001600160a01b03161415611f2f5750829050806120ce565b611f37613eca565b6001600160a01b0386166000908152600460209081526040918290208054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152611ff1938d93611fe7939190830182828015611fdd5780601f10611fb257610100808354040283529160200191611fdd565b820191906000526020600020905b815481529060010190602001808311611fc057829003601f168201915b50505050506120d9565b8a8a8a8a8a612820565b9050611ffc81612b1d565b612028816000015182602001518360400151846060015185608001518660a00151876101000151612bed565b61203181612da2565b5060006120526120418b8b612e57565b60c08401519063ffffffff61224416565b905060006120688360e00151611ce88d8b612e57565b9050876001600160a01b03168a6001600160a01b03168c6001600160a01b03167f71c90a8e22bbb06ea39d299250bcaff990254be58217e7d1479dcbf2f24aa776866020015186866040516120bf93929190614872565b60405180910390a49093509150505b965096945050505050565b6000806120e583612ed6565b90506120f081612ee1565b9392505050565b60008060008061210b868b8b8b8b8a612fa0565b91509150876001600160a01b0316896001600160a01b03168b6001600160a01b03167f0e631fe8e26e2b6c2ce8c4c55eca1d769c98bb4b5539068aec9ada0a3b429afe85858b60405161216093929190615129565b60405180910390a490999098509650505050505050565b8015610b5357606082826040516024016121929291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663a9059cbb60e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600060405180830381600087803b15801561220857600080fd5b505af115801561221c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136d919081019061432c565b600061166883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131c0565b8015610b53576040516370a0823160e01b81526000906001600160a01b038616906370a08231906122bb908690600401614662565b60206040518083038186803b1580156122d357600080fd5b505afa1580156122e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230b91906145bf565b9050612319858585856131ec565b6040516370a0823160e01b81526000906001600160a01b038716906370a0823190612348908790600401614662565b60206040518083038186803b15801561236057600080fd5b505afa158015612374573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239891906145bf565b9050611795828463ffffffff61164316565b6001600160a01b03808516600090815260036020526040812054909116801561243a5760405163a045808360e01b81526001600160a01b0382169063a0458083906123ff90899089908990899060040161481d565b600060405180830381600087803b15801561241957600080fd5b505af115801561242d573d6000803e3d6000fd5b5050505080915050612440565b60009150505b949350505050565b600080600060001990506060896001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561248d57600080fd5b505afa1580156124a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124c9919081019061419c565b9050606081516001600160401b03811180156124e457600080fd5b5060405190808252806020026020018201604052801561250e578160200160208202803683370190505b50905060005b825181101561266557600061254a6001611ce88b858151811061253357fe5b60200260200101518e611c7f90919063ffffffff16565b905060006125e58e6001600160a01b03166366cb8d2f87868151811061256c57fe5b60200260200101516040518263ffffffff1660e01b81526004016125909190614662565b60206040518083038186803b1580156125a857600080fd5b505afa1580156125bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e091906145bf565b6126cf565b9050600061261c8f8f858f88815181106125fb57fe5b60200260200101518a898151811061260f57fe5b6020026020010151613244565b90508085858151811061262b57fe5b60209081029190910101526000612648828463ffffffff6134de16565b9050878111612655578097505b5050600190920191506125149050565b5060006126768c8c8b85888c6134fc565b939c939b50929950505050505050505050565b600082820181831280159061269e5750838112155b806126b357506000831280156126b357508381125b6116685760405162461bcd60e51b81526004016103e590614b5d565b6000808212156126f15760405162461bcd60e51b81526004016103e590614c7a565b5090565b6000826127045750600061166b565b8282028284828161271157fe5b04146116685760405162461bcd60e51b81526004016103e590614d1d565b600061166883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613679565b6000808251116127935760405162461bcd60e51b81526004016103e5906150fc565b60005b60018351038110156128175760008382815181106127b057fe5b6020026020010151905060008260010190505b845181101561280d578481815181106127d857fe5b60200260200101516001600160a01b0316826001600160a01b0316141561280557600193505050506111ae565b6001016127c3565b5050600101612796565b50600092915050565b612828613eca565b600060606001600160a01b03871615806128535750876001600160a01b0316876001600160a01b0316145b8061286f5750856001600160a01b0316876001600160a01b0316145b156128f557604080516002808252606082018352909160208301908036833701905050905087816000815181106128a257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505085816001815181106128d057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506129a1565b604080516003808252608082019092529060208201606080368337019050509050878160008151811061292457fe5b60200260200101906001600160a01b031690816001600160a01b031681525050868160018151811061295257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050858160028151811061298057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6129a9613eca565b6001600160a01b03808c1682528a8116602083015289811660408301528716606082015260808101869052600060a08201526129e58b8a612e57565b60c08201526129f48b88612e57565b60e082015284612a8657604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612a2d9085906000906004016147f9565b60006040518083038186803b158015612a4557600080fd5b505afa158015612a59573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612a81919081019061432c565b612b09565b604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612ab59085906001906004016147f9565b60006040518083038186803b158015612acd57600080fd5b505afa158015612ae1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b09919081019061432c565b6101008201529a9950505050505050505050565b6000816080015111612b415760405162461bcd60e51b81526004016103e590615046565b600081604001516001600160a01b03166370a0823183600001516040518263ffffffff1660e01b8152600401612b779190614662565b60206040518083038186803b158015612b8f57600080fd5b505afa158015612ba3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc791906145bf565b905081608001518110156110365760405162461bcd60e51b81526004016103e5906149b1565b612c7a85876001600160a01b031663334fc2896040518163ffffffff1660e01b815260040160206040518083038186803b158015612c2a57600080fd5b505afa158015612c3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c629190614129565b6001600160a01b038a1691908663ffffffff6136b016565b6000806060886001600160a01b031663e171fcab89898d8a8a8a6040518763ffffffff1660e01b8152600401612cb596959493929190614701565b60006040518083038186803b158015612ccd57600080fd5b505afa158015612ce1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d099190810190614145565b925092509250896001600160a01b0316638f6f03328484846040518463ffffffff1660e01b8152600401612d3f9392919061474f565b600060405180830381600087803b158015612d5957600080fd5b505af1158015612d6d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d95919081019061432c565b5050505050505050505050565b600080612e318360e0015184606001516001600160a01b03166370a0823186600001516040518263ffffffff1660e01b8152600401612de19190614662565b60206040518083038186803b158015612df957600080fd5b505afa158015612e0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce891906145bf565b90508260a001518110156111ab5760405162461bcd60e51b81526004016103e590614aed565b600080826001600160a01b03166370a08231856040518263ffffffff1660e01b8152600401612e869190614662565b60206040518083038186803b158015612e9e57600080fd5b505afa158015612eb2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061244091906145bf565b805160209091012090565b6001546000908190612efb906001600160a01b031661112c565b6001600160a01b031663e6d642c530856040518363ffffffff1660e01b8152600401612f289291906146ce565b60206040518083038186803b158015612f4057600080fd5b505afa158015612f54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f789190614129565b90506001600160a01b0381166111ab5760405162461bcd60e51b81526004016103e590614c14565b600080612fae878686613721565b600083612fbb5786612fdd565b7f00000000000000000000000000000000000000000000000000000000000000005b90506000612feb8983612e57565b90506000612ff98a89612e57565b905060006130068c6120d9565b90506000816001600160a01b03166383d918098c8c6040518363ffffffff1660e01b81526004016130389291906146e7565b60206040518083038186803b15801561305057600080fd5b505afa158015613064573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130889190614129565b90506130a56001600160a01b038d168b838c63ffffffff6136b016565b61312d8c838a6130b5578d613126565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156130ee57600080fd5b505afa158015613102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131269190614129565b8d8d61376a565b871561316e5761316e6001600160a01b038d167f0000000000000000000000000000000000000000000000000000000000000000813163ffffffff61387f16565b600061317a8d87612e57565b905060006131888e8d612e57565b905061319a828763ffffffff61224416565b6131aa868363ffffffff61224416565b9850985050505050505050965096945050505050565b600081848411156131e45760405162461bcd60e51b81526004016103e59190614893565b505050900390565b610b53846323b872dd60e01b85858560405160240161320d939291906146aa565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613934565b600080826001600160a01b0316866001600160a01b03161415613268575083611639565b6001600160a01b0383811660009081526005602052604090206001015416613299576113ca87878686896001611f08565b6132a1613eb2565b6001600160a01b0384166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156133475780601f1061331c57610100808354040283529160200191613347565b820191906000526020600020905b81548152906001019060200180831161332a57829003601f168201915b5050509183525050600191909101546001600160a01b03166020909101528051909150600090613376906120d9565b90506000809050816001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156133b657600080fd5b505afa1580156133ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133ee9190614129565b6001600160a01b031683602001516001600160a01b0316141561349d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b03161461347c576134738a8a897f00000000000000000000000000000000000000000000000000000000000000008c6001611f08565b915061347f9050565b50865b6134968a84602001518884876000015160016139c3565b93506134d0565b6134b08a8a8986602001518c6001611f08565b9050809150506134cd8a84602001518884876000015160006139c3565b93505b505050905095945050505050565b600061166882611c9d85670de0b6b3a764000063ffffffff6126f516565b60008161350b57506000611639565b60008090506060886001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561354b57600080fd5b505afa15801561355f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613587919081019061419c565b905060005b815181101561366b5760006135c5876135b98d6001600160a01b03166366cb8d2f87878151811061256c57fe5b9063ffffffff611c7f16565b905060006135ef828a85815181106135d957fe5b602002602001015161224490919063ffffffff16565b90506000613603828463ffffffff6134de16565b9050613613612710611c9d613a3f565b8111156136605761365d6136508e8e8e888151811061362e57fe5b602002602001015189898151811061364257fe5b602002602001015187611375565b879063ffffffff61164316565b95505b50505060010161358c565b509098975050505050505050565b6000818361369a5760405162461bcd60e51b81526004016103e59190614893565b5060008385816136a657fe5b0495945050505050565b606082826040516024016136c59291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600081116137415760405162461bcd60e51b81526004016103e590614dca565b8061374c8484612e57565b101561059a5760405162461bcd60e51b81526004016103e590614b17565b6000806060866001600160a01b031663a22fe98e8787876040518463ffffffff1660e01b815260040161379f939291906146aa565b60006040518083038186803b1580156137b757600080fd5b505afa1580156137cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137f39190810190614145565b925092509250876001600160a01b0316638f6f03328484846040518463ffffffff1660e01b81526004016138299392919061474f565b600060405180830381600087803b15801561384357600080fd5b505af1158015613857573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a5919081019061432c565b6040805160048082526024820183526020820180516001600160e01b0316630d0e30db60e41b17905291516347b7819960e11b815290916001600160a01b03861691638f6f0332916138d7918791879187910161474f565b600060405180830381600087803b1580156138f157600080fd5b505af1158015613905573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261392d919081019061432c565b5050505050565b6060613989826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613a4b9092919063ffffffff16565b80519091501561059a57808060200190518101906139a79190614310565b61059a5760405162461bcd60e51b81526004016103e590614f7e565b60008060006139d6858a8a8a8a89613a5a565b91509150866001600160a01b0316886001600160a01b03168a6001600160a01b03167f266efe8e5e4e2e7e407c4814a2818ef8e990768c61e67315ac34a8d3555b438e85858a604051613a2b93929190615129565b60405180910390a498975050505050505050565b670de0b6b3a764000090565b60606124408484600085613c94565b600080600080613a6a8988612e57565b90506000613a778b6120d9565b9050600086613a865789613aa8565b7f00000000000000000000000000000000000000000000000000000000000000005b9050613ab58b828a613721565b613abf8b82612e57565b93508615613b0657613b016001600160a01b038c167f00000000000000000000000000000000000000000000000000000000000000008a63ffffffff613d5516565b613bbb565b604051633d3685e960e11b81526000906001600160a01b03841690637a6d0bd290613b37908e908e906004016146e7565b60206040518083038186803b158015613b4f57600080fd5b505afa158015613b63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b879190614129565b9050613bb98b82613b9f8c600163ffffffff61164316565b8f6001600160a01b03166136b0909392919063ffffffff16565b505b613c438b8389613bcb578c613c3c565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b158015613c0457600080fd5b505afa158015613c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c3c9190614129565b8c8c613dc4565b6000613c4f8c83612e57565b90506000613c5d8d8c612e57565b9050613c6f868363ffffffff61224416565b613c7f828763ffffffff61224416565b97509750505050505050965096945050505050565b606082471015613cb65760405162461bcd60e51b81526004016103e590614bce565b613cbf85613df9565b613cdb5760405162461bcd60e51b81526004016103e590614e01565b60006060866001600160a01b03168587604051613cf89190614646565b60006040518083038185875af1925050503d8060008114613d35576040519150601f19603f3d011682016040523d82523d6000602084013e613d3a565b606091505b5091509150613d4a828286613dff565b979650505050505050565b606081604051602401613d689190615120565b60408051601f198184030181529181526020820180516001600160e01b0316632e1a7d4d60e01b179052516347b7819960e11b81529091506001600160a01b03851690638f6f0332906138d7908690600090869060040161474f565b6000806060866001600160a01b03166377b1aaf88787876040518463ffffffff1660e01b815260040161379f939291906146aa565b3b151590565b60608315613e0e5750816120f0565b825115613e1e5782518084602001fd5b8160405162461bcd60e51b81526004016103e59190614893565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613e7957805160ff1916838001178555613ea6565b82800160010185558215613ea6579182015b82811115613ea6578251825591602001919060010190613e8b565b506126f1929150613f3a565b60408051808201909152606081526000602082015290565b60405180610120016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001606081525090565b6108d491905b808211156126f15760008155600101613f40565b600082601f830112613f64578081fd5b8135613f77613f728261516e565b615148565b818152915060208083019084810181840286018201871015613f9857600080fd5b60005b84811015613fc0578135613fae816151dc565b84529282019290820190600101613f9b565b505050505092915050565b600082601f830112613fdb578081fd5b8135613fe9613f728261516e565b818152915060208083019084810160005b84811015613fc0578135870188603f82011261401557600080fd5b83810135614025613f728261518d565b81815260408b8184860101111561403b57600080fd5b82818501888401375060009181018601919091528552509282019290820190600101613ffa565b600082601f830112614072578081fd5b8135614080613f728261516e565b8181529150602080830190848101818402860182018710156140a157600080fd5b60005b84811015613fc0578135845292820192908201906001016140a4565b600082601f8301126140d0578081fd5b81516140de613f728261518d565b91508082528360208285010111156140f557600080fd5b6141068160208401602086016151b0565b5092915050565b60006020828403121561411e578081fd5b8135611668816151dc565b60006020828403121561413a578081fd5b8151611668816151dc565b600080600060608486031215614159578182fd5b8351614164816151dc565b6020850151604086015191945092506001600160401b03811115614186578182fd5b614192868287016140c0565b9150509250925092565b600060208083850312156141ae578182fd5b82516001600160401b038111156141c3578283fd5b80840185601f8201126141d4578384fd5b805191506141e4613f728361516e565b8281528381019082850185850284018601891015614200578687fd5b8693505b8484101561422b578051614217816151dc565b835260019390930192918501918501614204565b50979650505050505050565b60008060408385031215614249578182fd5b82356001600160401b038082111561425f578384fd5b61426b86838701613f54565b93506020850135915080821115614280578283fd5b5061428d85828601613fcb565b9150509250929050565b6000806000606084860312156142ab578283fd5b83356001600160401b03808211156142c1578485fd5b6142cd87838801613f54565b945060208601359150808211156142e2578384fd5b6142ee87838801613fcb565b93506040860135915080821115614303578283fd5b5061419286828701613f54565b600060208284031215614321578081fd5b8151611668816151f1565b60006020828403121561433d578081fd5b81516001600160401b03811115614352578182fd5b612440848285016140c0565b600080600080600080600080610100898b03121561437a578586fd5b8835614385816151dc565b97506020890135614395816151dc565b9650604089013595506060890135945060808901356001600160401b03808211156143be578586fd5b6143ca8c838d01613f54565b955060a08b01359150808211156143df578485fd5b506143ec8b828c01614062565b93505060c08901356143fd816151dc565b915060e089013561440d816151f1565b809150509295985092959890939650565b60008060408385031215614430578182fd5b823561443b816151dc565b9150602083013561444b816151dc565b809150509250929050565b60008060008060008060c0878903121561446e578384fd5b8635614479816151dc565b9550602087013594506040870135614490816151dc565b935060608701356001600160401b038111156144aa578283fd5b6144b689828a01613f54565b93505060808701356144c7816151dc565b8092505060a087013590509295509295509295565b60008060008060008060c087890312156144f4578384fd5b86356144ff816151dc565b95506020870135945060408701356001600160401b0380821115614521578586fd5b61452d8a838b01613f54565b95506060890135915080821115614542578384fd5b5061454f89828a01614062565b9350506080870135614560816151dc565b915060a0870135614570816151f1565b809150509295509295509295565b600080600060608486031215614592578081fd5b833561459d816151dc565b92506020840135915060408401356145b4816151f1565b809150509250925092565b6000602082840312156145d0578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561460f5781516001600160a01b0316875295820195908201906001016145ea565b509495945050505050565b600081518084526146328160208601602086016151b0565b601f01601f19169290920160200192915050565b600082516146588184602087016151b0565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038781168252868116602083015285166040820152606081018490526080810183905260c060a082018190526000906147439083018461461a565b98975050505050505050565b600060018060a01b038516825283602083015260606040830152614776606083018461461a565b95945050505050565b6001600160a01b03831681526040602082018190526000906124409083018461461a565b6000604082526147b660408301856145d7565b828103602084810191909152845180835285820192820190845b818110156147ec578451835293830193918301916001016147d0565b5090979650505050505050565b60006040825261480c60408301856145d7565b905082151560208301529392505050565b6001600160a01b03948516815260208101939093529083166040830152909116606082015260800190565b6001600160a01b039485168152602081019390935292166040820152901515606082015260800190565b6001600160a01b039390931683526020830191909152604082015260600190565b600060208252611668602083018461461a565b6000604082526148b9604083018561461a565b905060018060a01b03831660208301529392505050565b60208082526023908201527f636f6d706f6e656e7420616d6f756e742073686f756c64206e6f74206265207a60408201526265726f60e81b606082015260800190565b602080825260159082015274082e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b604082015260600190565b6020808252601390820152720eecad2ced0e8d2dccee640dad2e6dac2e8c6d606b1b604082015260600190565b60208082526022908201527f4d75737420626520636f6e74726f6c6c65722d656e61626c656420434b546f6b60408201526132b760f11b606082015260800190565b60208082526031908201527f746f74616c2073656e64207175616e746974792063616e742062652067726561604082015270746572207468616e206578697374696e6760781b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f52656465656d207175616e74697479206d757374206265203e20300000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f4d7573742062652070656e64696e6720696e697469616c697a6174696f6e0000604082015260600190565b60208082526010908201526f536c69707061676520746f6f2062696760801b604082015260600190565b60208082526026908201527f7175616e746974792063616e742062652067726561746572207468616e206578604082015265697374696e6760d01b606082015260800190565b60208082526021908201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526016908201527517db5a5b90dad51bdad95b949958c81b9bdd081b595d60521b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526015908201527426bab9ba103132903b30b634b21030b230b83a32b960591b604082015260600190565b6020808252601a908201527f43616e6e6f74206475706c696361746520616464726573736573000000000000604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252601b908201527f4d7573742062652074686520434b546f6b656e206d616e616765720000000000604082015260600190565b6020808252601a908201527f556e7265636f676e697a65642065786368616e6765206e616d65000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f496e76616c696420706f7374207472616e736665722062616c616e6365000000604082015260600190565b6020808252601e908201527f636f6d706f6e656e74207175616e74697479206d757374206265203e20300000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526018908201527f4172726179206c656e677468206d757374206265203e20300000000000000000604082015260600190565b6020808252601c908201527f5f6d696e52656465656d546f6b656e546f526563206e6f74206d657400000000604082015260600190565b6020808252601e908201527f556e7265636f676e697a656420777261702061646170746572206e616d650000604082015260600190565b6020808252818101527f4973737565206574686572207175616e74697479206d757374206265203e2030604082015260600190565b6020808252818101527f497373756520746f6b656e207175616e74697479206d757374206265203e2030604082015260600190565b6020808252601a908201527f5f6d6964546f6b656e73206c656e677468206d69736d61746368000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526027908201527f4d75737420626520612076616c696420616e6420696e697469616c697a65642060408201526621a5aa37b5b2b760c91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601d908201527f546f6b656e20746f2073656c6c206d757374206265206e6f6e7a65726f000000604082015260600190565b60208082526033908201527f4f6e6c7920706f7369746976652065787465726e616c20756e697420706f73696040820152721d1a5bdb9cc8185c99481cdd5c1c1bdc9d1959606a1b606082015260800190565b6020808252601290820152710dad2c8a8ded6cadce640dad2e6dac2e8c6d60731b604082015260600190565b6020808252600a90820152694120697320656d70747960b01b604082015260600190565b90815260200190565b600084825283602083015260606040830152614776606083018461461a565b6040518181016001600160401b038111828210171561516657600080fd5b604052919050565b60006001600160401b03821115615183578081fd5b5060209081020190565b60006001600160401b038211156151a2578081fd5b50601f01601f191660200190565b60005b838110156151cb5781810151838201526020016151b3565b83811115610b535750506000910152565b6001600160a01b03811681146110fb57600080fd5b80151581146110fb57600080fdfea264697066735822122024de1ac5556d0aad8346cc2b8bf0cdb09a3e6c21a35448805a16d178f9d3353464736f6c634300060a0033","sourceMap":"107190:42670:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110577:27;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;116793:313;;;;;;;;;;-1:-1:-1;116793:313:0;;;;;;;;:::i;:::-;;117613:646;;;;;;;;;;-1:-1:-1;117613:646:0;;;;;;;;:::i;110382:45::-;;;;;;;;;;-1:-1:-1;110382:45:0;;;;;;;;:::i;:::-;;;;;;;;114861:1525;;;;;;;;;;-1:-1:-1;114861:1525:0;;;;;;;;:::i;22051:148::-;;;;;;;;;;;;;:::i;117291:44::-;;;;;;;;;;;;;:::i;21409:79::-;;;;;;;;;;;;;:::i;118639:885::-;;;;;;;;;;-1:-1:-1;118639:885:0;;;;;;;;:::i;111402:987::-;;;;;;;;;:::i;110488:54::-;;;;;;;;;;-1:-1:-1;110488:54:0;;;;;;;;:::i;:::-;;;;;;;;;110249:68;;;;;;;;;;-1:-1:-1;110249:68:0;;;;;;;;:::i;113045:1162::-;;;;;;;;;;-1:-1:-1;113045:1162:0;;;;;;;;:::i;120050:1047::-;;;;;;;;;;-1:-1:-1;120050:1047:0;;;;;;;;:::i;:::-;;;;;;;;;22354:244;;;;;;;;;;-1:-1:-1;22354:244:0;;;;;;;;:::i;97260:29::-;;;;;;;;;;;;;:::i;110577:27::-;;;:::o;116793:313::-;116934:8;116944:10;97547:41;97570:8;97580:7;97547:22;:41::i;:::-;116987:8:::1;98164:40;98195:8;98164:30;:40::i;:::-;-1:-1:-1::0;;;;;117013:29:0;;::::2;;::::0;;;:19:::2;:29;::::0;;;;;:45;;-1:-1:-1;;;;;;117013:45:0::2;::::0;;::::2;::::0;;;::::2;::::0;;;117071:27;;-1:-1:-1;;;117071:27:0;;;;117013:29;;117071:25:::2;::::0;:27:::2;::::0;;::::2;::::0;117013:29;117071:27;;;;;117013:29;;117071:27;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;97599:1:::1;116793:313:::0;;;;:::o;117613:646::-;21631:12;:10;:12::i;:::-;21621:6;;-1:-1:-1;;;;;21621:6:0;;;:22;;;21613:67;;;;-1:-1:-1;;;21613:67:0;;;;;;;;;;;;;;;;;117775:50:::1;:11:::0;117810:14;117775:50:::1;:34;:50;:::i;:::-;117843:9;117838:414;117862:11;:18;117858:1;:22;117838:414;;;117928:10;::::0;:35:::1;::::0;-1:-1:-1;;;;;117928:10:0::1;:33;:35::i;:::-;-1:-1:-1::0;;;;;117928:54:0::1;;117991:4;117998:14;118013:1;117998:17;;;;;;;;;;;;;;117928:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117902:176;;;;-1:-1:-1::0;;;117902:176:0::1;;;;;;;;;118134:14;118149:1;118134:17;;;;;;;;;;;;;;118095:12;:36;118115:11;118127:1;118115:14;;;;;;;;;;;;;;-1:-1:-1::0;;;;;118095:36:0::1;-1:-1:-1::0;;;;;118095:36:0::1;;;;;;;;;;;;:56;;;;;;;;;;;;:::i;:::-;;118206:11;118218:1;118206:14;;;;;;;;;;;;;;-1:-1:-1::0;;;;;118171:69:0::1;;118222:14;118237:1;118222:17;;;;;;;;;;;;;;118171:69;;;;;;;;;;;;;;;117882:3;;117838:414;;;;117613:646:::0;;:::o;110382:45::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;110382:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;114861:1525::-;24361:1;24967:7;;:19;;24959:63;;;;-1:-1:-1;;;24959:63:0;;;;;;;;;24361:1;25100:18;;115165:8;97681:44:::1;115165:8:::0;97681:34:::1;:44::i;:::-;115218:1:::2;115199:16;:20;115191:60;;;;-1:-1:-1::0;;;115191:60:0::2;;;;;;;;;115262:43;::::0;-1:-1:-1;;;115262:43:0;;-1:-1:-1;;;;;115262:13:0;::::2;::::0;::::2;::::0;:43:::2;::::0;115276:10:::2;::::0;115288:16;;115262:43:::2;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;115333:27;115375:36:::0;115425:68:::2;115459:8;115469:16;115487:5;115425:33;:68::i;:::-;115318:175;;;;115504:32;115539:1:::0;115504:36:::2;;115580:10;:17;115559:10;:17;:38;115551:77;;;;-1:-1:-1::0;;;115551:77:0::2;;;;;;;;;115644:9;115639:414;115663:10;:17;115659:1;:21;115639:414;;;115702:87;115732:8;115742:16;115767:10;115778:1;115767:13;;;;;;;;;;;;;;115783:5;115702:29;:87::i;:::-;115804:27;115834:116;115873:8;115883:12;115897:10;115908:1;115897:13;;;;;;;;;;;;;;115912:10;115923:1;115912:13;;;;;;;;;;;;;;115927:19;115947:1;115927:22;;;;;;;;;;;;;;115834:38;:116::i;:::-;115804:146:::0;-1:-1:-1;115992:49:0::2;:24:::0;115804:146;115992:49:::2;:28;:49;:::i;:::-;115965:76:::0;-1:-1:-1;;115682:3:0::2;;115639:414;;;;116101:20;116073:24;:48;;116065:89;;;;-1:-1:-1::0;;;116065:89:0::2;;;;;;;;;116167:124;-1:-1:-1::0;;;;;116167:29:0;::::2;116211:12:::0;116238:3;116256:24;116167:124:::2;:29;:124;:::i;:::-;116333:8;-1:-1:-1::0;;;;;116309:69:0::2;;116344:10;116356:3;116361:16;116309:69;;;;;;;;;;;;;;;;;-1:-1:-1::0;;24317:1:0;25279:7;:22;-1:-1:-1;;;;;;;;114861:1525:0:o;22051:148::-;21631:12;:10;:12::i;:::-;21621:6;;-1:-1:-1;;;;;21621:6:0;;;:22;;;21613:67;;;;-1:-1:-1;;;21613:67:0;;;;;;;;;22158:1:::1;22142:6:::0;;22121:40:::1;::::0;-1:-1:-1;;;;;22142:6:0;;::::1;::::0;22121:40:::1;::::0;22158:1;;22121:40:::1;22189:1;22172:19:::0;;-1:-1:-1;;;;;;22172:19:0::1;::::0;;22051:148::o;117291:44::-;:::o;21409:79::-;21447:7;21474:6;-1:-1:-1;;;;;21474:6:0;21409:79;;:::o;118639:885::-;21631:12;:10;:12::i;:::-;21621:6;;-1:-1:-1;;;;;21621:6:0;;;:22;;;21613:67;;;;-1:-1:-1;;;21613:67:0;;;;;;;;;118844:53:::1;:11:::0;118879:17;118844:53:::1;:34;:53;:::i;:::-;118908;:11:::0;118943:17;118908:53:::1;:34;:53;:::i;:::-;118979:9;118974:543;118998:11;:18;118994:1;:22;118974:543;;;119064:10;::::0;:35:::1;::::0;-1:-1:-1;;;;;119064:10:0::1;:33;:35::i;:::-;-1:-1:-1::0;;;;;119064:54:0::1;;119127:4;119134:17;119152:1;119134:20;;;;;;;;;;;;;;119064:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;119038:183;;;;-1:-1:-1::0;;;119038:183:0::1;;;;;;;;;119289:17;119307:1;119289:20;;;;;;;;;;;;;;119238:8;:32;119254:11;119266:1;119254:14;;;;;;;;;;;;;;-1:-1:-1::0;;;;;119238:32:0::1;-1:-1:-1::0;;;;;119238:32:0::1;;;;;;;;;;;;:48;;:71;;;;;;;;;;;;:::i;:::-;;119375:17;119393:1;119375:20;;;;;;;;;;;;;;119324:8;:32;119340:11;119352:1;119340:14;;;;;;;;;;;;;;-1:-1:-1::0;;;;;119324:32:0::1;-1:-1:-1::0;;;;;119324:32:0::1;;;;;;;;;;;;:48;;;:71;;;;;-1:-1:-1::0;;;;;119324:71:0::1;;;;;-1:-1:-1::0;;;;;119324:71:0::1;;;;;;119446:11;119458:1;119446:14;;;;;;;;;;;;;;-1:-1:-1::0;;;;;119415:90:0::1;;119462:17;119480:1;119462:20;;;;;;;;;;;;;;119484:17;119502:1;119484:20;;;;;;;;;;;;;;119415:90;;;;;;;;;;;;;;;;119018:3;;118974:543;;;;118639:885:::0;;;:::o;111402:987::-;24361:1;24967:7;;:19;;24959:63;;;;-1:-1:-1;;;24959:63:0;;;;;;;;;24361:1;25100:18;;111723:8;97681:44:::1;111723:8:::0;97681:34:::1;:44::i;:::-;111770:1:::2;111758:9;:13;111750:58;;;;-1:-1:-1::0;;;111750:58:0::2;;;;;;;;;111819:4;-1:-1:-1::0;;;;;111819:12:0::2;;111840:9;111819:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;111915:126;111942:4;111969;111997:8;112021:9;111915:12;:126::i;:::-;112052:24;112079:117;112102:8;112120:4;112127:9;112138:14;112154:10;112166:11;112179:3;112184:11;112079:22;:117::i;:::-;112052:144:::0;-1:-1:-1;112257:124:0::2;-1:-1:-1::0;;;;;112257:29:0;::::2;112309:4;112329:10;112052:144:::0;112257:124:::2;:29;:124;:::i;:::-;-1:-1:-1::0;;24317:1:0;25279:7;:22;-1:-1:-1;;;;;;111402:987:0:o;110488:54::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;110488:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;110488:54:0;;;;;;;-1:-1:-1;;;;;;;110488:54:0;;:::o;110249:68::-;;;;;;;;;;;;-1:-1:-1;;;;;110249:68:0;;:::o;113045:1162::-;24361:1;24967:7;;:19;;24959:63;;;;-1:-1:-1;;;24959:63:0;;;;;;;;;24361:1;25100:18;;113504:8;97681:44:::1;113504:8:::0;97681:34:::1;:44::i;:::-;113561:1:::2;113539:19;:23;113531:68;;;;-1:-1:-1::0;;;113531:68:0::2;;;;;;;;;113668:148;113702:11;113729:10;113762:8;113786:19;113668:12;:148::i;:::-;113845:24;113872:125;113895:8;113905:11;113918:19;113939:14;113955:10;113967:11;113980:3;113985:11;113872:22;:125::i;:::-;113845:152:::0;-1:-1:-1;114058:131:0::2;-1:-1:-1::0;;;;;114058:29:0;::::2;114110:11:::0;114137:10:::2;113845:152:::0;114058:131:::2;:29;:131;:::i;:::-;-1:-1:-1::0;;24317:1:0;25279:7;:22;-1:-1:-1;;;;;;;;113045:1162:0:o;120050:1047::-;120228:16;120246;120295:27;120337:30;120381:32;120404:8;120381:22;:32::i;:::-;120280:133;;;;120426:30;120473:10;:17;-1:-1:-1;;;;;120459:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;120459:32:0;-1:-1:-1;120426:65:0;-1:-1:-1;120507:9:0;120502:541;120526:13;:20;120522:1;:24;120502:541;;;120818:8;:130;;120910:38;120938:9;120910:13;120924:1;120910:16;;;;;;;;;;;;;;:27;;:38;;;;:::i;:::-;120818:130;;;120847:42;120879:9;120847:13;120861:1;120847:16;;;;;;;;;;;;;;:31;;:42;;;;:::i;:::-;120799:13;120813:1;120799:16;;;;;;;;;;;;;:149;;;;;120990:1;120971:13;120985:1;120971:16;;;;;;;;;;;;;;:20;120963:68;;;;-1:-1:-1;;;120963:68:0;;;;;;;;;120548:3;;120502:541;;;-1:-1:-1;121063:10:0;;;;-1:-1:-1;120050:1047:0;;-1:-1:-1;;;;;120050:1047:0:o;22354:244::-;21631:12;:10;:12::i;:::-;21621:6;;-1:-1:-1;;;;;21621:6:0;;;:22;;;21613:67;;;;-1:-1:-1;;;21613:67:0;;;;;;;;;-1:-1:-1;;;;;22443:22:0;::::1;22435:73;;;;-1:-1:-1::0;;;22435:73:0::1;;;;;;;;;22545:6;::::0;;22524:38:::1;::::0;-1:-1:-1;;;;;22524:38:0;;::::1;::::0;22545:6;::::1;::::0;22524:38:::1;::::0;::::1;22573:6;:17:::0;;-1:-1:-1;;;;;;22573:17:0::1;-1:-1:-1::0;;;;;22573:17:0;;;::::1;::::0;;;::::1;::::0;;22354:244::o;97260:29::-;;;-1:-1:-1;;;;;97260:29:0;;:::o;102282:171::-;102383:30;102395:8;102405:7;102383:11;:30::i;:::-;102375:70;;;;-1:-1:-1;;;102375:70:0;;;;;;;;;102282:171;;:::o;103278:262::-;103370:10;;:34;;-1:-1:-1;;;103370:34:0;;-1:-1:-1;;;;;103370:10:0;;;;:15;;:34;;103394:8;;103370:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103362:81;;;;-1:-1:-1;;;103362:81:0;;;;;;;;;103462:35;103488:8;103462:25;:35::i;:::-;103454:78;;;;-1:-1:-1;;;103454:78:0;;;;;;;;;103278:262;:::o;735:106::-;823:10;735:106;:::o;41021:200::-;41137:1;:8;41125:1;:8;:20;41117:54;;;;-1:-1:-1;;;41117:54:0;;;;;;;;;41182:31;41211:1;41182:28;:31::i;95120:206::-;95261:56;;-1:-1:-1;;;95261:56:0;;95200:20;;-1:-1:-1;;;;;95261:22:0;;;;;:56;;95200:20;;95261:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95233:85;;95120:206;;;;:::o;102525:181::-;102621:33;102645:8;102621:23;:33::i;:::-;102613:85;;;;-1:-1:-1;;;102613:85:0;;;;;;;;130104:712;130341:56;;-1:-1:-1;;;130341:56:0;;130298:40;;-1:-1:-1;;;;;130341:35:0;;;;;:56;;130385:10;;130341:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;130341:56:0;;;;;;;;;;;;;;130298:99;-1:-1:-1;130413:9:0;130408:401;130432:23;:30;130428:1;:34;130408:401;;;130488:7;130484:314;;;130536:23;130560:1;130536:26;;;;;;;;;;;;;;-1:-1:-1;;;;;130516:66:0;;130583:8;130593:16;130611:10;130623:4;130516:112;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130484:314;;;130689:23;130713:1;130689:26;;;;;;;;;;;;;;-1:-1:-1;;;;;130669:67:0;;130737:8;130747:16;130765:10;130777:4;130669:113;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130484:314;130464:3;;130408:401;;;;130104:712;;;;;:::o;130824:1749::-;130997:7;131017:27;131075:10;-1:-1:-1;;;;;131059:26:0;:12;-1:-1:-1;;;;;131059:26:0;;131055:1474;;;-1:-1:-1;131184:18:0;131055:1474;;;-1:-1:-1;;;;;131224:28:0;;;131280:1;131224:28;;;:8;:28;;;;;:44;;;;131220:1309;;131396:79;131403:8;131413:10;131425:9;131436:12;131450:18;131470:4;131396:6;:79::i;:::-;131370:105;-1:-1:-1;131220:1309:0;;-1:-1:-1;131220:1309:0;;131602:46;;:::i;:::-;-1:-1:-1;;;;;131651:28:0;;;;;;:8;:28;;;;;;;;;131602:77;;;;;;;;;;;-1:-1:-1;;131602:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;131651:28;;131602:77;;131651:28;;131602:77;;;131651:28;131602:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;131602:77:0;;;-1:-1:-1;;131602:77:0;;;;;;-1:-1:-1;;;;;131602:77:0;;;;;;131756:35;;131602:77;;-1:-1:-1;131602:77:0;;131734:58;;:21;:58::i;:::-;131694:99;;131811:26;131839:23;131880:195;131888:8;131898:19;:35;;;131935:10;131947:18;131967:19;:35;;;132043:11;-1:-1:-1;;;;;132043:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;132004:70:0;:19;:35;;;-1:-1:-1;;;;;132004:70:0;;131880:7;:195::i;:::-;131810:265;;;;132135:11;-1:-1:-1;;;;;132135:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;132096:70:0;:19;:35;;;-1:-1:-1;;;;;132096:70:0;;132092:422;;;132213:82;132220:8;132238:4;132245:9;132256:12;132270:18;132290:4;132213:6;:82::i;:::-;132187:108;-1:-1:-1;132092:422:0;;-1:-1:-1;132092:422:0;;132378:104;132385:8;132395:19;:35;;;132432:9;132443:12;132457:18;132477:4;132378:6;:104::i;:::-;132352:130;-1:-1:-1;;132092:422:0;131220:1309;;;;;132546:19;130824:1749;-1:-1:-1;;;;;;130824:1749:0:o;4841:181::-;4899:7;4931:5;;;4955:6;;;;4947:46;;;;-1:-1:-1;;;4947:46:0;;;;;;;;;5013:1;-1:-1:-1;4841:181:0;;;;;:::o;54569:796::-;54747:13;;54743:615;;54869:43;;-1:-1:-1;;;54869:43:0;;54843:23;;-1:-1:-1;;;;;54869:24:0;;;;;:43;;54902:8;;54869:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54843:69;;54929:55;54951:8;54961:6;54969:3;54974:9;54929:21;:55::i;:::-;55087:43;;-1:-1:-1;;;55087:43:0;;55066:18;;-1:-1:-1;;;;;55087:24:0;;;;;:43;;55120:8;;55087:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55066:64;-1:-1:-1;55251:30:0;:15;55271:9;55251:30;:19;:30;:::i;:::-;55237:10;:44;55211:135;;;;-1:-1:-1;;;55211:135:0;;;;;;;;98952:169;99056:57;99083:6;99091:5;99098:3;99103:9;99056:26;:57::i;121851:1148::-;122185:7;122210:20;122233:61;122252:8;122262:14;122278:10;122290:3;122233:18;:61::i;:::-;122210:84;;122305:27;122335:8;-1:-1:-1;;;;;122335:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;122335:24:0;;;;;;;;;;;;;;122305:54;;122399:11;:18;122378:10;:17;:39;122370:71;;;;-1:-1:-1;;;122370:71:0;;;;;;;;;122481:10;:17;122460:10;:17;:38;122452:69;;;;-1:-1:-1;;;122452:69:0;;;;;;;;;122533:25;122560:26;122590:96;122605:8;122615:11;122628:19;122649:10;122661:11;122674;122590:14;:96::i;:::-;122532:154;;;;122726:14;122705:17;:35;;122697:70;;;;-1:-1:-1;;;122697:70:0;;;;;;;;;122780:37;;-1:-1:-1;;;122780:37:0;;-1:-1:-1;;;;;122780:13:0;;;;;:37;;122794:3;;122799:17;;122780:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122857:8;-1:-1:-1;;;;;122835:102:0;;122868:10;122880:3;122885:12;122899:17;122918:18;122835:102;;;;;;;;;;;;;;;;;;;122973:18;121851:1148;-1:-1:-1;;;;;;;;;;;;121851:1148:0:o;127745:1142::-;127819:16;127837;127866:27;127896:8;-1:-1:-1;;;;;127896:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;127896:24:0;;;;;;;;;;;;;;127866:54;;127931:27;127975:10;:17;-1:-1:-1;;;;;127961:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;127961:32:0;-1:-1:-1;127931:62:0;-1:-1:-1;128011:9:0;128006:822;128030:10;:17;128026:1;:21;128006:822;;;128069:17;128089:10;128100:1;128089:13;;;;;;;;;;;;;;128069:33;;128117:22;128142:8;-1:-1:-1;;;;;128142:35:0;;128178:9;128142:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128117:71;;128205:32;128240:8;-1:-1:-1;;;;;128240:35:0;;128276:9;128240:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;128240:46:0;;;;;;;;;;;;;;128305:22;;128205:81;;-1:-1:-1;128305:26:0;128301:456;;128357:9;128352:390;128376:15;:22;128372:1;:26;128352:390;;;128428:27;128458:8;-1:-1:-1;;;;;128458:36:0;;128495:9;128506:15;128522:1;128506:18;;;;;;;;;;;;;;128458:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128428:97;;128581:1;128558:20;:24;128550:88;;;;-1:-1:-1;;;128550:88:0;;;;;;;;;128681:41;:15;128701:20;128681:41;:19;:41;:::i;:::-;128663:59;-1:-1:-1;;128400:3:0;;128352:390;;;;128301:456;128789:27;:15;:25;:27::i;:::-;128773:10;128784:1;128773:13;;;;;;;;;;;;;;;;;:43;-1:-1:-1;;;128049:3:0;;128006:822;;;-1:-1:-1;128848:10:0;;-1:-1:-1;128860:10:0;-1:-1:-1;127745:1142:0;;;:::o;76021:126::-;76086:7;76113:26;74482:8;76113;:1;76119;76113:8;:5;:8;:::i;:::-;:12;:26;:12;:26;:::i;76664:211::-;76733:7;76757:6;;;:16;;-1:-1:-1;76767:6:0;;76757:16;76753:57;;;-1:-1:-1;76797:1:0;76790:8;;76753:57;76827:40;76865:1;76827:33;74482:8;76827:15;76865:1;76827:8;:1;76833;76827:8;:5;:8;:::i;:::-;:12;:15;:12;:15;:::i;:33::-;:37;:40;:37;:40;:::i;101049:142::-;101129:4;101175:8;-1:-1:-1;;;;;101153:30:0;:8;-1:-1:-1;;;;;101153:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;101153:30:0;;;101049:142;-1:-1:-1;;;101049:142:0:o;100815:147::-;100915:39;;-1:-1:-1;;;100915:39:0;;100891:4;;-1:-1:-1;;;;;100915:24:0;;;;;:39;;100948:4;;100915:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42295:206;42397:1;42386;:8;:12;42378:49;;;;-1:-1:-1;;;42378:49:0;;;;;;;;;42447:15;42460:1;42447:12;:15::i;:::-;42446:16;42438:55;;;;-1:-1:-1;;;42438:55:0;;;;;;;;101332:200;101430:10;;:34;;-1:-1:-1;;;101430:34:0;;101406:4;;-1:-1:-1;;;;;101430:10:0;;:15;;:34;;101454:8;;101430:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:94;;;;-1:-1:-1;101481:43:0;;-1:-1:-1;;;101481:43:0;;-1:-1:-1;;;;;101481:28:0;;;;;:43;;101518:4;;101481:43;;;;138632:1546;138874:7;138883;138943:13;-1:-1:-1;;;;;138912:45:0;138920:10;-1:-1:-1;;;;;138912:45:0;;138908:117;;;-1:-1:-1;138982:14:0;;-1:-1:-1;138982:14:0;138974:39;;138908:117;139035:26;;:::i;:::-;-1:-1:-1;;;;;139157:35:0;;;;;;:12;:35;;;;;;;;;139135:58;;;;;;;;;;;-1:-1:-1;;139135:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;139064:279;;139095:8;;139135:58;;139157:35;139135:58;;;139157:35;139135:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:21;:58::i;:::-;139209:10;139234:9;139258:13;139286:14;139315:17;139064:16;:279::i;:::-;139035:308;;139354:32;139376:9;139354:21;:32::i;:::-;139397:181;139411:9;:17;;;139430:9;:25;;;139457:9;:19;;;139478:9;:22;;;139502:9;:27;;;139531:9;:30;;;139563:9;:14;;;139397:13;:181::i;:::-;139589:29;139608:9;139589:18;:29::i;:::-;;139629:25;139657:89;139696:49;139724:8;139734:10;139696:27;:49::i;:::-;139657:34;;;;;:89;:38;:89;:::i;:::-;139629:117;;139757:28;139788:95;139845:9;:37;;;139788:52;139816:8;139826:13;139788:27;:52::i;:95::-;139757:126;;139980:13;-1:-1:-1;;;;;139899:212:0;139955:10;-1:-1:-1;;;;;139899:212:0;139932:8;-1:-1:-1;;;;;139899:212:0;;140008:9;:25;;;140048:17;140080:20;139899:212;;;;;;;;;;;;;;;;;140130:17;;-1:-1:-1;140149:20:0;-1:-1:-1;;138632:1546:0;;;;;;;;;;:::o;99256:233::-;99341:7;99362:23;99388:29;99400:16;99388:11;:29::i;:::-;99362:55;;99435:46;99465:15;99435:29;:46::i;:::-;99428:53;99256:233;-1:-1:-1;;;99256:233:0:o;142109:900::-;142357:7;142366;142402:35;142448:25;142487:212;142520:16;142551:8;142574:16;142605:13;142633:16;142664:10;142487:18;:212::i;:::-;142391:308;;;;142804:13;-1:-1:-1;;;;;142717:216:0;142773:16;-1:-1:-1;;;;;142717:216:0;142750:8;-1:-1:-1;;;;;142717:216:0;;142832:27;142874:17;142906:16;142717:216;;;;;;;;;;;;;;;;;142954:27;;;;-1:-1:-1;142109:900:0;-1:-1:-1;;;;;;;142109:900:0:o;53778:364::-;53950:13;;53946:189;;53980:21;54057:3;54062:9;54004:68;;;;;;;;;;;;;;-1:-1:-1;;54004:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;54004:68:0;-1:-1:-1;;;54004:68:0;;;54087:36;-1:-1:-1;;;54087:36:0;;54004:68;;-1:-1:-1;;;;;;54087:15:0;;;;;:36;;54103:6;;-1:-1:-1;;54004:68:0;;54087:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;54087:36:0;;;;;;;;;;;;;5305:136;5363:7;5390:43;5394:1;5397;5390:43;;;;;;;;;;;;;;;;;:3;:43::i;71526:768::-;71765:13;;71761:526;;71821:21;;-1:-1:-1;;;71821:21:0;;71795:23;;-1:-1:-1;;;;;71821:16:0;;;;;:21;;71838:3;;71821:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71795:47;;71859:140;71904:6;71929:5;71953:3;71975:9;71859:26;:140::i;:::-;72037:21;;-1:-1:-1;;;72037:21:0;;72016:18;;-1:-1:-1;;;;;72037:16:0;;;;;:21;;72054:3;;72037:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72016:42;-1:-1:-1;72180:30:0;:15;72200:9;72180:30;:19;:30;:::i;129201:489::-;-1:-1:-1;;;;;129436:29:0;;;129375:7;129436:29;;;:19;:29;;;;;;129375:7;;129436:29;129480:35;;129476:177;;129532:66;;-1:-1:-1;;;129532:66:0;;-1:-1:-1;;;;;129532:31:0;;;;;:66;;129564:8;;129574:9;;129585:7;;129594:3;;129532:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129628:12;129613:28;;;;;129476:177;129680:1;129665:17;;;129201:489;;;;;;;:::o;123007:1427::-;123214:7;123223;123248:25;-1:-1:-1;;123248:56:0;;123315:27;123345:8;-1:-1:-1;;;;;123345:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;123345:24:0;;;;;;;;;;;;;;123315:54;;123380:40;123437:10;:17;-1:-1:-1;;;;;123423:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;123423:32:0;-1:-1:-1;123380:75:0;-1:-1:-1;123473:9:0;123468:749;123492:10;:17;123488:1;:21;123468:749;;;123531:30;123564:53;123615:1;123564:46;123595:11;123607:1;123595:14;;;;;;;;;;;;;;123564:19;:30;;:46;;;;:::i;:53::-;123531:86;;123651:33;123687:64;123688:8;-1:-1:-1;;;;;123688:35:0;;123724:10;123735:1;123724:13;;;;;;;;;;;;;;123688:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123687:62;:64::i;:::-;123651:100;;123766:25;123794:100;123818:8;123828:11;123841:22;123865:10;123876:1;123865:13;;;;;;;;;;;;;;123880:10;123891:1;123880:13;;;;;;;;;;;;;;123794:23;:100::i;:::-;123766:128;;123938:17;123909:23;123933:1;123909:26;;;;;;;;;;;;;;;;;:46;124019:16;124038:55;:17;124067:25;124038:55;:28;:55;:::i;:::-;124019:74;;124124:17;124112:8;:29;124108:98;;124182:8;124162:28;;124108:98;-1:-1:-1;;123511:3:0;;;;;-1:-1:-1;123468:749:0;;-1:-1:-1;123468:749:0;;;124232:26;124261:105;124275:8;124285:11;124298:10;124310:23;124335:17;124354:11;124261:13;:105::i;:::-;124388:17;;;;-1:-1:-1;123007:1427:0;;-1:-1:-1;;;;;;;;;;123007:1427:0:o;34670:215::-;34726:6;34756:5;;;34781:6;;;;;;:16;;;34796:1;34791;:6;;34781:16;34780:38;;;;34807:1;34803;:5;:14;;;;;34816:1;34812;:5;34803:14;34772:84;;;;-1:-1:-1;;;34772:84:0;;;;;;;;28730:171;28786:7;28823:1;28814:5;:10;;28806:55;;;;-1:-1:-1;;;28806:55:0;;;;;;;;;-1:-1:-1;28887:5:0;28730:171::o;6195:471::-;6253:7;6498:6;6494:47;;-1:-1:-1;6528:1:0;6521:8;;6494:47;6565:5;;;6569:1;6565;:5;:1;6589:5;;;;;:10;6581:56;;;;-1:-1:-1;;;6581:56:0;;;;;;;;7142:132;7200:7;7227:39;7231:1;7234;7227:39;;;;;;;;;;;;;;;;;:3;:39::i;36912:417::-;36976:4;37012:1;37001;:8;:12;36993:35;;;;-1:-1:-1;;;36993:35:0;;;;;;;;;37046:9;37041:258;37076:1;37065;:8;:12;37061:1;:16;37041:258;;;37099:15;37117:1;37119;37117:4;;;;;;;;;;;;;;37099:22;;37141:9;37153:1;37157;37153:5;37141:17;;37136:152;37164:1;:8;37160:1;:12;37136:152;;;37213:1;37215;37213:4;;;;;;;;;;;;;;-1:-1:-1;;;;;37202:15:0;:7;-1:-1:-1;;;;;37202:15:0;;37198:75;;;37249:4;37242:11;;;;;;;37198:75;37174:3;;37136:152;;;-1:-1:-1;;37079:3:0;;37041:258;;;-1:-1:-1;37316:5:0;;36912:417;-1:-1:-1;;36912:417:0:o;134893:1488::-;135203:16;;:::i;:::-;135237:23;135271:21;-1:-1:-1;;;;;135307:23:0;;;;:50;;;135347:10;-1:-1:-1;;;;;135334:23:0;:9;-1:-1:-1;;;;;135334:23:0;;135307:50;:80;;;;135374:13;-1:-1:-1;;;;;135361:26:0;:9;-1:-1:-1;;;;;135361:26:0;;135307:80;135303:372;;;135411:16;;;135425:1;135411:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;135411:16:0;135404:23;;135452:10;135442:4;135447:1;135442:7;;;;;;;;;;;;;:20;-1:-1:-1;;;;;135442:20:0;;;-1:-1:-1;;;;;135442:20:0;;;;;135487:13;135477:4;135482:1;135477:7;;;;;;;;;;;;;:23;-1:-1:-1;;;;;135477:23:0;;;-1:-1:-1;;;;;135477:23:0;;;;;135303:372;;;135540:16;;;135554:1;135540:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;135540:16:0;135533:23;;135581:10;135571:4;135576:1;135571:7;;;;;;;;;;;;;:20;-1:-1:-1;;;;;135571:20:0;;;-1:-1:-1;;;;;135571:20:0;;;;;135616:9;135606:4;135611:1;135606:7;;;;;;;;;;;;;:19;-1:-1:-1;;;;;135606:19:0;;;-1:-1:-1;;;;;135606:19:0;;;;;135650:13;135640:4;135645:1;135640:7;;;;;;;;;;;;;:23;-1:-1:-1;;;;;135640:23:0;;;-1:-1:-1;;;;;135640:23:0;;;;;135303:372;135689:26;;:::i;:::-;-1:-1:-1;;;;;135726:28:0;;;;;135765:44;;;:25;;;:44;135820:32;;;:19;;;:32;135863:38;;:22;;;:38;135912:27;;;:45;;;135726:17;135968:30;;;:34;136050:49;135746:8;135842:10;136050:27;:49::i;:::-;136013:34;;;:86;136150:52;136178:8;136188:13;136150:27;:52::i;:::-;136110:37;;;:92;136230:17;:116;;136299:47;;-1:-1:-1;;;136299:47:0;;-1:-1:-1;;;;;136299:34:0;;;;;:47;;136334:4;;136340:5;;136299:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;136299:47:0;;;;;;;;;;;;;;136230:116;;;136250:46;;-1:-1:-1;;;136250:46:0;;-1:-1:-1;;;;;136250:34:0;;;;;:46;;136285:4;;136291;;136250:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;136250:46:0;;;;;;;;;;;;;;136213:14;;;:133;:14;134893:1488;-1:-1:-1;;;;;;;;;;134893:1488:0:o;133757:430::-;133881:1;133850:10;:28;;;:32;133842:74;;;;-1:-1:-1;;;133842:74:0;;;;;;;;;133927:24;133961:10;:20;;;-1:-1:-1;;;;;133954:38:0;;134001:10;:18;;;133954:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133927:94;;134074:10;:28;;;134054:16;:48;;134032:147;;;;-1:-1:-1;;;134032:147:0;;;;;;;;137121:941;137515:130;137552:10;137577:16;-1:-1:-1;;;;;137577:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;137515:22:0;;;:130;137621:13;137515:130;:22;:130;:::i;:::-;137673:22;137710:17;137742:23;137779:16;-1:-1:-1;;;;;137779:33:0;;137827:10;137852:13;137888:8;137912:13;137940:16;137971:5;137779:208;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;137779:208:0;;;;;;;;;;;;;;137658:329;;;;;;138000:8;-1:-1:-1;;;;;138000:15:0;;138016:14;138032:9;138043:10;138000:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;138000:54:0;;;;;;;;;;;;;;;137121:941;;;;;;;;;;:::o;133117:423::-;133197:7;133217:25;133245:134;133340:10;:38;;;133252:10;:23;;;-1:-1:-1;;;;;133245:51:0;;133305:10;:18;;;133245:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:134;133217:162;;133435:10;:31;;;133414:17;:52;;133392:105;;;;-1:-1:-1;;;133392:105:0;;;;;;;;132676:269;132801:7;132821:26;132857:12;-1:-1:-1;;;;;132850:30:0;;132889:8;132850:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101612:122;101703:23;;;;;;;;101612:122::o;99624:363::-;99750:10;;99711:7;;;;99750:35;;-1:-1:-1;;;;;99750:10:0;:33;:35::i;:::-;-1:-1:-1;;;;;99750:65:0;;99838:4;99858:16;99750:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99732:153;-1:-1:-1;;;;;;99906:21:0;;99898:55;;;;-1:-1:-1;;;99898:55:0;;;;;;;;145900:1878;146173:7;146182;146207:63;146223:8;146233:13;146248:21;146207:15;:63::i;:::-;146321:21;146345:10;:45;;146374:16;146345:45;;;146366:4;146345:45;146321:69;;146401:35;146439:52;146467:8;146477:13;146439:27;:52::i;:::-;146401:90;;146502:29;146534:52;146562:8;146572:13;146534:27;:52::i;:::-;146502:84;;146599:24;146639:39;146661:16;146639:21;:39::i;:::-;146599:80;;146690:21;146714:11;-1:-1:-1;;;;;146714:35:0;;146750:16;146768:13;146714:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;146690:92;-1:-1:-1;146793:75:0;-1:-1:-1;;;;;146793:22:0;;146816:13;146690:92;146846:21;146793:75;:22;:75;:::i;:::-;146946:228;146987:8;147010:11;147036:10;:63;;147083:16;147036:63;;;147049:11;-1:-1:-1;;;;;147049:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;147114:13;147142:21;146946:26;:228::i;:::-;147250:10;147246:108;;;147277:65;-1:-1:-1;;;;;147316:25:0;;147309:4;147316:25;;147277:65;:23;:65;:::i;:::-;147414:36;147453:52;147481:8;147491:13;147453:27;:52::i;:::-;147414:91;;147516:30;147549:52;147577:8;147587:13;147549:27;:52::i;:::-;147516:85;-1:-1:-1;147634:61:0;:28;147667:27;147634:61;:32;:61;:::i;:::-;147710:49;:21;147736:22;147710:49;:25;:49;:::i;:::-;147612:158;;;;;;;;;;;145900:1878;;;;;;;;;:::o;5744:192::-;5830:7;5866:12;5858:6;;;;5850:29;;;;-1:-1:-1;;;5850:29:0;;;;;;;;;;-1:-1:-1;;;5902:5:0;;;5744:192::o;67250:205::-;67351:96;67371:5;67401:27;;;67430:4;67436:2;67440:5;67378:68;;;;;;;;;;;;;;;-1:-1:-1;;67378:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;67378:68:0;-1:-1:-1;;;;;;67378:68:0;;;;;;;;;;67351:19;:96::i;124442:1924::-;124603:7;124623:30;124683:10;-1:-1:-1;;;;;124668:25:0;:11;-1:-1:-1;;;;;124668:25:0;;124664:1653;;;-1:-1:-1;124735:22:0;124664:1653;;;-1:-1:-1;;;;;124784:28:0;;;124840:1;124784:28;;;:8;:28;;;;;:44;;;;124780:1537;;124945:82;124952:8;124962:11;124975:9;124986:10;124998:22;125022:4;124945:6;:82::i;124780:1537::-;125149:46;;:::i;:::-;-1:-1:-1;;;;;125198:28:0;;;;;;:8;:28;;;;;;;;;125149:77;;;;;;;;;;;-1:-1:-1;;125149:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125198:28;;125149:77;;125198:28;;125149:77;;;125198:28;125149:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;125149:77:0;;;-1:-1:-1;;125149:77:0;;;;;;-1:-1:-1;;;;;125149:77:0;;;;;;125303:35;;125149:77;;-1:-1:-1;125149:77:0;;125281:58;;:21;:58::i;:::-;125241:99;;125355:26;125384:1;125355:30;;125443:11;-1:-1:-1;;;;;125443:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;125404:70:0;:19;:35;;;-1:-1:-1;;;;;125404:70:0;;125400:906;;;125522:4;-1:-1:-1;;;;;125499:28:0;:11;-1:-1:-1;;;;;125499:28:0;;125495:279;;125577:85;125584:8;125594:11;125607:9;125626:4;125633:22;125657:4;125577:6;:85::i;:::-;125552:110;-1:-1:-1;125495:279:0;;-1:-1:-1;125495:279:0;;-1:-1:-1;125732:22:0;125495:279;125817:127;125823:8;125833:19;:35;;;125870:10;125882:18;125902:19;:35;;;125939:4;125817:5;:127::i;:::-;125792:152;;125400:906;;;126010:108;126017:8;126027:11;126040:9;126051:19;:35;;;126089:22;126113:4;126010:6;:108::i;:::-;125985:133;;;;;;126162:128;126168:8;126178:19;:35;;;126215:10;126227:18;126247:19;:35;;;126284:5;126162;:128::i;:::-;126137:153;;125400:906;124780:1537;;;126336:22;-1:-1:-1;124442:1924:0;;;;;;;:::o;76967:126::-;77032:7;77059:26;77083:1;77059:19;:1;74482:8;77059:19;:5;:19;:::i;126450:1106::-;126646:7;126671:11;126666:53;;-1:-1:-1;126706:1:0;126699:8;;126666:53;126729:26;126758:1;126729:30;;126770:27;126800:8;-1:-1:-1;;;;;126800:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;126800:24:0;;;;;;;;;;;;;;126770:54;-1:-1:-1;126841:9:0;126837:669;126860:10;:17;126856:1;:21;126837:669;;;126899:29;126931:96;127009:17;126932:64;126933:8;-1:-1:-1;;;;;126933:35:0;;126969:10;126980:1;126969:13;;;;;;;126932:64;126931:77;:96;:77;:96;:::i;:::-;126899:128;;127042:16;127061:53;127092:21;127061:23;127085:1;127061:26;;;;;;;;;;;;;;:30;;:53;;;;:::i;:::-;127042:72;-1:-1:-1;127129:22:0;127154:42;127042:72;127174:21;127154:42;:19;:42;:::i;:::-;127129:67;;127262:40;127296:5;127262:29;:27;:29::i;:40::-;127244:14;:59;127240:255;;;127354:125;127377:101;127416:8;127426:11;127439:10;127450:1;127439:13;;;;;;;;;;;;;;127454:10;127465:1;127454:13;;;;;;;;;;;;;;127469:8;127377:38;:101::i;:::-;127354:18;;:125;:22;:125;:::i;:::-;127333:146;;127240:255;-1:-1:-1;;;126879:3:0;;126837:669;;;-1:-1:-1;127530:18:0;;126450:1106;-1:-1:-1;;;;;;;;126450:1106:0:o;7770:278::-;7856:7;7891:12;7884:5;7876:28;;;;-1:-1:-1;;;7876:28:0;;;;;;;;;;;7915:9;7931:1;7927;:5;;;;;;;7770:278;-1:-1:-1;;;;;7770:278:0:o;53122:323::-;53294:21;53370:8;53380:9;53318:72;;;;;;;;;;;;;;-1:-1:-1;;53318:72:0;;;;;;;;;;;;;;-1:-1:-1;;;;;53318:72:0;-1:-1:-1;;;53318:72:0;;;53401:36;-1:-1:-1;;;53401:36:0;;53318:72;;-1:-1:-1;;;;;;53401:15:0;;;;;:36;;53417:6;;-1:-1:-1;;53318:72:0;;53401:36;;;;148182:353;148367:1;148355:9;:13;148347:56;;;;-1:-1:-1;;;148347:56:0;;;;;;;;;148475:9;148422:49;148450:8;148460:10;148422:27;:49::i;:::-;:62;;148414:113;;;;-1:-1:-1;;;148414:113:0;;;;;;;;149299:558;149546:18;149579:17;149611:25;149650:12;-1:-1:-1;;;;;149650:30:0;;149695:16;149726:13;149754:19;149650:134;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;149650:134:0;;;;;;;;;;;;;;149531:253;;;;;;149797:8;-1:-1:-1;;;;;149797:15:0;;149813:10;149825:9;149836:12;149797:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;149797:52:0;;;;;;;;;;;;;56114:219;56235:36;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;56235:36:0;-1:-1:-1;;;56235:36:0;;;56282:43;;-1:-1:-1;;;56282:43:0;;56235:36;;-1:-1:-1;;;;;56282:15:0;;;;;:43;;56298:5;;56305:9;;56235:36;;56282:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;56282:43:0;;;;;;;;;;;;;;;56114:219;;;;:::o;69370:761::-;69794:23;69820:69;69848:4;69820:69;;;;;;;;;;;;;;;;;69828:5;-1:-1:-1;;;;;69820:27:0;;;:69;;;;;:::i;:::-;69904:17;;69794:95;;-1:-1:-1;69904:21:0;69900:224;;70046:10;70035:30;;;;;;;;;;;;;;70027:85;;;;-1:-1:-1;;;70027:85:0;;;;;;;;140704:865;140962:7;140998:33;141042:23;141079:221;141110:16;141141:8;141164:16;141195:13;141223:19;141257:10;141079:16;:221::i;:::-;140987:313;;;;141403:13;-1:-1:-1;;;;;141318:210:0;141372:16;-1:-1:-1;;;;;141318:210:0;141349:8;-1:-1:-1;;;;;141318:210:0;;141431:25;141471:15;141501:16;141318:210;;;;;;;;;;;;;;;;;141546:15;140704:865;-1:-1:-1;;;;;;;;140704:865:0:o;74927:93::-;74482:8;74927:93;:::o;63062:195::-;63165:12;63197:52;63219:6;63227:4;63233:1;63236:12;63197:21;:52::i;143492:1926::-;143761:7;143770;143795:35;143880:29;143912:52;143940:8;143950:13;143912:27;:52::i;:::-;143880:84;;143977:24;144017:39;144039:16;144017:21;:39::i;:::-;143977:80;;144070:21;144094:10;:45;;144123:16;144094:45;;;144115:4;144094:45;144070:69;;144150:61;144166:8;144176:13;144191:19;144150:15;:61::i;:::-;144252:52;144280:8;144290:13;144252:27;:52::i;:::-;144222:82;;144399:10;144395:313;;;144426:61;-1:-1:-1;;;;;144426:25:0;;144460:4;144467:19;144426:61;:25;:61;:::i;:::-;144395:313;;;144538:66;;-1:-1:-1;;;144538:66:0;;144520:15;;-1:-1:-1;;;;;144538:33:0;;;;;:66;;144572:16;;144590:13;;144538:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;144520:84;-1:-1:-1;144619:77:0;144642:16;144520:84;144669:26;:19;144693:1;144669:26;:23;:26;:::i;:::-;144619:8;-1:-1:-1;;;;;144619:22:0;;;:77;;;;;;:::i;:::-;144395:313;;144777:224;144816:8;144839:11;144865:10;:63;;144912:16;144865:63;;;144878:11;-1:-1:-1;;;;;144878:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;144943:13;144971:19;144777:24;:224::i;:::-;145054:36;145093:52;145121:8;145131:13;145093:27;:52::i;:::-;145054:91;;145156:30;145189:52;145217:8;145227:13;145189:27;:52::i;:::-;145156:85;-1:-1:-1;145274:61:0;:27;145306:28;145274:61;:31;:61;:::i;:::-;145350:49;:22;145377:21;145350:49;:26;:49;:::i;:::-;145252:158;;;;;;;;;;143492:1926;;;;;;;;;:::o;64114:530::-;64241:12;64299:5;64274:21;:30;;64266:81;;;;-1:-1:-1;;;64266:81:0;;;;;;;;;64366:18;64377:6;64366:10;:18::i;:::-;64358:60;;;;-1:-1:-1;;;64358:60:0;;;;;;;;;64492:12;64506:23;64533:6;-1:-1:-1;;;;;64533:11:0;64553:5;64561:4;64533:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64491:75;;;;64584:52;64602:7;64611:10;64623:12;64584:17;:52::i;:::-;64577:59;64114:530;-1:-1:-1;;;;;;;64114:530:0:o;55625:232::-;55724:21;55793:9;55748:55;;;;;;;;;;;;;-1:-1:-1;;55748:55:0;;;;;;;;;;;;;;-1:-1:-1;;;;;55748:55:0;-1:-1:-1;;;55748:55:0;;;55814:35;-1:-1:-1;;;55814:35:0;;55748:55;;-1:-1:-1;;;;;;55814:15:0;;;;;:35;;55830:5;;-1:-1:-1;;55748:55:0;;55814:35;;;;148639:554;148884:18;148917:17;148949:25;148988:12;-1:-1:-1;;;;;148988:28:0;;149031:16;149062:13;149090:19;148988:132;;;;;;;;;;;;;;;;;;60144:422;60511:20;60550:8;;;60144:422::o;65650:742::-;65765:12;65794:7;65790:595;;;-1:-1:-1;65825:10:0;65818:17;;65790:595;65939:17;;:21;65935:439;;66202:10;66196:17;66263:15;66250:10;66246:2;66242:19;66235:44;66150:148;66345:12;66338:20;;-1:-1:-1;;;66338:20:0;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;301:707;;418:3;411:4;403:6;399:17;395:27;385:2;;-1:-1;;426:12;385:2;473:6;460:20;495:80;510:64;567:6;510:64;;;495:80;;;603:21;;;486:89;-1:-1;647:4;660:14;;;;635:17;;;749;;;740:27;;;;737:36;-1:-1;734:2;;;786:1;;776:12;734:2;811:1;796:206;821:6;818:1;815:13;796:206;;;85:6;72:20;97:33;124:5;97:33;;;889:50;;953:14;;;;981;;;;843:1;836:9;796:206;;;800:14;;;;;378:630;;;;;1781:708;;1908:3;1901:4;1893:6;1889:17;1885:27;1875:2;;-1:-1;;1916:12;1875:2;1963:6;1950:20;1985:90;2000:74;2067:6;2000:74;;1985:90;2103:21;;;1976:99;-1:-1;2147:4;2160:14;;;;2135:17;;;2255:1;2240:243;2265:6;2262:1;2259:13;2240:243;;;2348:3;2335:17;2139:6;2323:30;4718:3;4699:17;2323:30;4699:17;4695:27;4685:2;;2255:1;;4726:12;4685:2;2147:4;2323:30;;4760:20;4795:65;4810:49;4852:6;4810:49;;4795:65;4880:6;4873:5;4866:21;4904:17;4984:3;4904:17;4975:6;2323:30;4966:16;;4963:25;4960:2;;;2255:1;;4991:12;4960:2;66515:6;4904:17;2323:30;4904:17;2147:4;4942:5;4938:16;66492:30;-1:-1;2255:1;66553:16;;;;;66546:27;;;;2360:60;;-1:-1;2434:14;;;;2462;;;;2287:1;2280:9;2240:243;;2515:707;;2632:3;2625:4;2617:6;2613:17;2609:27;2599:2;;-1:-1;;2640:12;2599:2;2687:6;2674:20;2709:80;2724:64;2781:6;2724:64;;2709:80;2817:21;;;2700:89;-1:-1;2861:4;2874:14;;;;2849:17;;;2963;;;2954:27;;;;2951:36;-1:-1;2948:2;;;3000:1;;2990:12;2948:2;3025:1;3010:206;3035:6;3032:1;3029:13;3010:206;;;5133:20;;3103:50;;3167:14;;;;3195;;;;3057:1;3050:9;3010:206;;3497:442;;3609:3;3602:4;3594:6;3590:17;3586:27;3576:2;;-1:-1;;3617:12;3576:2;3657:6;3651:13;3679:64;3694:48;3735:6;3694:48;;3679:64;3670:73;;3763:6;3756:5;3749:21;3867:3;3799:4;3858:6;3791;3849:16;;3846:25;3843:2;;;3884:1;;3874:12;3843:2;3894:39;3926:6;3799:4;3825:5;3821:16;3799:4;3791:6;3787:17;3894:39;;;;3569:370;;;;;5344:241;;5448:2;5436:9;5427:7;5423:23;5419:32;5416:2;;;-1:-1;;5454:12;5416:2;85:6;72:20;97:33;124:5;97:33;;5592:263;;5707:2;5695:9;5686:7;5682:23;5678:32;5675:2;;;-1:-1;;5713:12;5675:2;226:6;220:13;238:33;265:5;238:33;;5862:632;;;;6020:2;6008:9;5999:7;5995:23;5991:32;5988:2;;;-1:-1;;6026:12;5988:2;226:6;220:13;238:33;265:5;238:33;;;6189:2;6239:22;;5281:13;6329:2;6314:18;;6308:25;6078:74;;-1:-1;5281:13;-1:-1;;;;;;6342:30;;6339:2;;;-1:-1;;6375:12;6339:2;6405:73;6470:7;6461:6;6450:9;6446:22;6405:73;;;6395:83;;;5982:512;;;;;;6501:392;;6641:2;;6629:9;6620:7;6616:23;6612:32;6609:2;;;-1:-1;;6647:12;6609:2;6698:17;6692:24;-1:-1;;;;;6728:6;6725:30;6722:2;;;-1:-1;;6758:12;6722:2;6860:6;6849:9;6845:22;1162:3;1155:4;1147:6;1143:17;1139:27;1129:2;;-1:-1;;1170:12;1129:2;1210:6;1204:13;1190:27;;1232:80;1247:64;1304:6;1247:64;;1232:80;1340:21;;;1397:14;;;;1372:17;;;1486;;;1477:27;;;;1474:36;-1:-1;1471:2;;;-1:-1;;1513:12;1471:2;-1:-1;1539:10;;1533:217;1558:6;1555:1;1552:13;1533:217;;;226:6;220:13;238:33;265:5;238:33;;;1626:61;;1580:1;1573:9;;;;;1701:14;;;;1729;;1533:217;;;-1:-1;6778:99;6603:290;-1:-1;;;;;;;6603:290;6900:658;;;7081:2;7069:9;7060:7;7056:23;7052:32;7049:2;;;-1:-1;;7087:12;7049:2;7145:17;7132:31;-1:-1;;;;;7183:18;7175:6;7172:30;7169:2;;;-1:-1;;7205:12;7169:2;7235:78;7305:7;7296:6;7285:9;7281:22;7235:78;;;7225:88;;7378:2;7367:9;7363:18;7350:32;7336:46;;7183:18;7394:6;7391:30;7388:2;;;-1:-1;;7424:12;7388:2;;7454:88;7534:7;7525:6;7514:9;7510:22;7454:88;;;7444:98;;;7043:515;;;;;;7565:919;;;;7788:2;7776:9;7767:7;7763:23;7759:32;7756:2;;;-1:-1;;7794:12;7756:2;7852:17;7839:31;-1:-1;;;;;7890:18;7882:6;7879:30;7876:2;;;-1:-1;;7912:12;7876:2;7942:78;8012:7;8003:6;7992:9;7988:22;7942:78;;;7932:88;;8085:2;8074:9;8070:18;8057:32;8043:46;;7890:18;8101:6;8098:30;8095:2;;;-1:-1;;8131:12;8095:2;8161:88;8241:7;8232:6;8221:9;8217:22;8161:88;;;8151:98;;8314:2;8303:9;8299:18;8286:32;8272:46;;7890:18;8330:6;8327:30;8324:2;;;-1:-1;;8360:12;8324:2;;8390:78;8460:7;8451:6;8440:9;8436:22;8390:78;;8491:257;;8603:2;8591:9;8582:7;8578:23;8574:32;8571:2;;;-1:-1;;8609:12;8571:2;3442:6;3436:13;3454:30;3478:5;3454:30;;8755:360;;8879:2;8867:9;8858:7;8854:23;8850:32;8847:2;;;-1:-1;;8885:12;8847:2;8936:17;8930:24;-1:-1;;;;;8966:6;8963:30;8960:2;;;-1:-1;;8996:12;8960:2;9026:73;9091:7;9082:6;9071:9;9067:22;9026:73;;9404:1421;;;;;;;;;9691:3;9679:9;9670:7;9666:23;9662:33;9659:2;;;-1:-1;;9698:12;9659:2;4044:6;4031:20;4056:50;4100:5;4056:50;;;9750:80;-1:-1;9867:2;9906:22;;72:20;97:33;72:20;97:33;;;9875:63;-1:-1;9975:2;10014:22;;5133:20;;-1:-1;10083:2;10122:22;;5133:20;;-1:-1;10219:3;10204:19;;10191:33;-1:-1;;;;;10233:30;;;10230:2;;;-1:-1;;10266:12;10230:2;10296:78;10366:7;10357:6;10346:9;10342:22;10296:78;;;10286:88;;10439:3;10428:9;10424:19;10411:33;10397:47;;10244:18;10456:6;10453:30;10450:2;;;-1:-1;;10486:12;10450:2;;10516:78;10586:7;10577:6;10566:9;10562:22;10516:78;;;10506:88;;;10631:3;10675:9;10671:22;72:20;97:33;124:5;97:33;;;10640:63;-1:-1;10740:3;10777:22;;3294:20;3319:30;3294:20;3319:30;;;10749:60;;;;9653:1172;;;;;;;;;;;;10832:458;;;10999:2;10987:9;10978:7;10974:23;10970:32;10967:2;;;-1:-1;;11005:12;10967:2;4044:6;4031:20;4056:50;4100:5;4056:50;;;11057:80;-1:-1;11174:2;11242:22;;4377:20;4402:62;4377:20;4402:62;;;11182:92;;;;10961:329;;;;;;11297:1039;;;;;;;11528:3;11516:9;11507:7;11503:23;11499:33;11496:2;;;-1:-1;;11535:12;11496:2;4044:6;4031:20;4056:50;4100:5;4056:50;;;11587:80;-1:-1;11704:2;11743:22;;5133:20;;-1:-1;11812:2;11851:22;;72:20;97:33;72:20;97:33;;;11820:63;-1:-1;11948:2;11933:18;;11920:32;-1:-1;;;;;11961:30;;11958:2;;;-1:-1;;11994:12;11958:2;12024:78;12094:7;12085:6;12074:9;12070:22;12024:78;;;12014:88;;;12139:3;12183:9;12179:22;72:20;97:33;124:5;97:33;;;12148:63;;;;12248:3;12292:9;12288:22;5133:20;12257:63;;11490:846;;;;;;;;;12343:1169;;;;;;;12596:3;12584:9;12575:7;12571:23;12567:33;12564:2;;;-1:-1;;12603:12;12564:2;4044:6;4031:20;4056:50;4100:5;4056:50;;;12655:80;-1:-1;12772:2;12811:22;;5133:20;;-1:-1;12908:2;12893:18;;12880:32;-1:-1;;;;;12921:30;;;12918:2;;;-1:-1;;12954:12;12918:2;12984:78;13054:7;13045:6;13034:9;13030:22;12984:78;;;12974:88;;13127:2;13116:9;13112:18;13099:32;13085:46;;12932:18;13143:6;13140:30;13137:2;;;-1:-1;;13173:12;13137:2;;13203:78;13273:7;13264:6;13253:9;13249:22;13203:78;;;13193:88;;;13318:3;13362:9;13358:22;72:20;97:33;124:5;97:33;;;13327:63;-1:-1;13427:3;13464:22;;3294:20;3319:30;3294:20;3319:30;;;13436:60;;;;12558:954;;;;;;;;;13519:519;;;;13671:2;13659:9;13650:7;13646:23;13642:32;13639:2;;;-1:-1;;13677:12;13639:2;4044:6;4031:20;4056:50;4100:5;4056:50;;;13729:80;-1:-1;13846:2;13885:22;;5133:20;;-1:-1;13954:2;13990:22;;3294:20;3319:30;3294:20;3319:30;;;13962:60;;;;13633:405;;;;;;14319:261;;14433:2;14421:9;14412:7;14408:23;14404:32;14401:2;;;-1:-1;;14439:12;14401:2;-1:-1;4553:13;;14395:185;-1:-1;14395:185;15631:690;;15824:5;61670:12;62473:6;62468:3;62461:19;62510:4;;62505:3;62501:14;15836:93;;62510:4;16000:5;61366:14;-1:-1;16039:260;16064:6;16061:1;16058:13;16039:260;;;16125:13;;-1:-1;;;;;63974:54;15431:37;;15011:14;;;;62201;;;;6353:18;16079:9;16039:260;;;-1:-1;16305:10;;15755:566;-1:-1;;;;;15755:566;17289:343;;17431:5;61670:12;62473:6;62468:3;62461:19;17524:52;17569:6;62510:4;62505:3;62501:14;62510:4;17550:5;17546:16;17524:52;;;66948:7;66932:14;-1:-1;;66928:28;17588:39;;;;62510:4;17588:39;;17379:253;-1:-1;;17379:253;32713:271;;17799:5;61670:12;17910:52;17955:6;17950:3;17943:4;17936:5;17932:16;17910:52;;;17974:16;;;;;32847:137;-1:-1;;32847:137;32991:222;-1:-1;;;;;63974:54;;;;15431:37;;33118:2;33103:18;;33089:124;33220:684;-1:-1;;;;;63974:54;;;15300:58;;63974:54;;;33640:2;33625:18;;15431:37;63974:54;;;;33723:2;33708:18;;15431:37;33806:2;33791:18;;17240:37;;;;33889:3;33874:19;;17240:37;;;;33467:3;33452:19;;33438:466;33911:460;-1:-1;;;;;63974:54;;;15300:58;;63974:54;;;;34274:2;34259:18;;15431:37;34357:2;34342:18;;17240:37;;;;34102:2;34087:18;;34073:298;34378:349;-1:-1;;;;;63974:54;;;;15300:58;;34713:2;34698:18;;17240:37;34541:2;34526:18;;34512:215;34734:333;-1:-1;;;;;63974:54;;;15431:37;;63974:54;;35053:2;35038:18;;15431:37;34889:2;34874:18;;34860:207;35074:864;-1:-1;;;;;63974:54;;;15431:37;;63974:54;;;35524:2;35509:18;;15431:37;63974:54;;35607:2;35592:18;;15431:37;35690:2;35675:18;;17240:37;;;35773:3;35758:19;;17240:37;;;35359:3;63985:42;35796:19;;35789:49;;;35074:864;;35852:76;;35344:19;;35914:6;35852:76;;;35844:84;35330:608;-1:-1;;;;;;;;35330:608;36736:544;;6353:18;;63985:42;;;63292:5;63974:54;15438:3;15431:37;66154:24;37117:2;37106:9;37102:18;19115:58;36945:2;37154;37143:9;37139:18;37132:48;37194:76;36945:2;36934:9;36930:18;37256:6;37194:76;;;37186:84;36916:364;-1:-1;;;;;36916:364;37287:421;-1:-1;;;;;63974:54;;15431:37;;37462:2;37580;37565:18;;37558:48;;;37287:421;;37620:78;;37447:18;;37684:6;37620:78;;38590:629;;38845:2;38866:17;38859:47;38920:108;38845:2;38834:9;38830:18;39014:6;38920:108;;;39066:20;;;39061:2;39046:18;;;39039:48;;;;61670:12;;62461:19;;;61366:14;;;;62501;;;-1:-1;16768:260;16793:6;16790:1;16787:13;16768:260;;;16854:13;;17240:37;;62201:14;;;;15193;;;;16815:1;16808:9;16768:260;;;-1:-1;39093:116;;38816:403;-1:-1;;;;;;;38816:403;39226:469;;39425:2;39446:17;39439:47;39500:108;39425:2;39414:9;39410:18;39594:6;39500:108;;;39492:116;;17150:5;63376:13;63369:21;39681:2;39670:9;39666:18;17123:34;39396:299;;;;;;39702:590;-1:-1;;;;;63974:54;;;18090:67;;40112:2;40097:18;;17240:37;;;;63974:54;;;40195:2;40180:18;;15431:37;63974:54;;;40278:2;40263:18;;15431:37;39930:3;39915:19;;39901:391;40299:604;-1:-1;;;;;63974:54;;;18090:67;;40716:2;40701:18;;17240:37;;;;63974:54;;40812:2;40797:18;;18090:67;63376:13;;63369:21;40889:2;40874:18;;17123:34;40534:3;40519:19;;40505:398;41179:494;-1:-1;;;;;63974:54;;;;18090:67;;41576:2;41561:18;;17240:37;;;;41659:2;41644:18;;17240:37;41387:2;41372:18;;41358:315;42224:310;;42371:2;42392:17;42385:47;42446:78;42371:2;42360:9;42356:18;42510:6;42446:78;;42541:421;;42716:2;42737:17;42730:47;42791:78;42716:2;42705:9;42701:18;42855:6;42791:78;;;42783:86;;6353:18;;63985:42;;;63292:5;63974:54;42948:2;42937:9;42933:18;15431:37;42687:275;;;;;;42969:416;43169:2;43183:47;;;19764:2;43154:18;;;62461:19;19800:34;62501:14;;;19780:55;-1:-1;;;19855:12;;;19848:27;19894:12;;;43140:245;43392:416;43592:2;43606:47;;;20145:2;43577:18;;;62461:19;-1:-1;;;62501:14;;;20161:44;20224:12;;;43563:245;43815:416;44015:2;44029:47;;;20475:2;44000:18;;;62461:19;-1:-1;;;62501:14;;;20491:42;20552:12;;;43986:245;44238:416;44438:2;44452:47;;;20803:2;44423:18;;;62461:19;20839:34;62501:14;;;20819:55;-1:-1;;;20894:12;;;20887:26;20932:12;;;44409:245;44661:416;44861:2;44875:47;;;21183:2;44846:18;;;62461:19;21219:34;62501:14;;;21199:55;-1:-1;;;21274:12;;;21267:41;21327:12;;;44832:245;45084:416;45284:2;45298:47;;;21578:2;45269:18;;;62461:19;21614:34;62501:14;;;21594:55;-1:-1;;;21669:12;;;21662:30;21711:12;;;45255:245;45507:416;45707:2;45721:47;;;21962:2;45692:18;;;62461:19;21998:29;62501:14;;;21978:50;22047:12;;;45678:245;45930:416;46130:2;46144:47;;;22298:2;46115:18;;;62461:19;22334:29;62501:14;;;22314:50;22383:12;;;46101:245;46353:416;46553:2;46567:47;;;22634:2;46538:18;;;62461:19;22670:32;62501:14;;;22650:53;22722:12;;;46524:245;46776:416;46976:2;46990:47;;;22973:2;46961:18;;;62461:19;-1:-1;;;62501:14;;;22989:39;23047:12;;;46947:245;47199:416;47399:2;47413:47;;;23298:2;47384:18;;;62461:19;23334:34;62501:14;;;23314:55;-1:-1;;;23389:12;;;23382:30;23431:12;;;47370:245;47622:416;47822:2;47836:47;;;23682:2;47807:18;;;62461:19;23718:34;62501:14;;;23698:55;-1:-1;;;23773:12;;;23766:25;23810:12;;;47793:245;48045:416;48245:2;48259:47;;;24061:2;48230:18;;;62461:19;-1:-1;;;62501:14;;;24077:45;24141:12;;;48216:245;48468:416;48668:2;48682:47;;;24392:2;48653:18;;;62461:19;24428:34;62501:14;;;24408:55;-1:-1;;;24483:12;;;24476:30;24525:12;;;48639:245;48891:416;49091:2;49105:47;;;24776:2;49076:18;;;62461:19;-1:-1;;;62501:14;;;24792:44;24855:12;;;49062:245;49314:416;49514:2;49528:47;;;25106:2;49499:18;;;62461:19;25142:28;62501:14;;;25122:49;25190:12;;;49485:245;49737:416;49937:2;49951:47;;;49922:18;;;62461:19;25477:34;62501:14;;;25457:55;25531:12;;;49908:245;50160:416;50360:2;50374:47;;;25782:2;50345:18;;;62461:19;25818:29;62501:14;;;25798:50;25867:12;;;50331:245;50583:416;50783:2;50797:47;;;26118:2;50768:18;;;62461:19;26154:28;62501:14;;;26134:49;26202:12;;;50754:245;51006:416;51206:2;51220:47;;;26453:2;51191:18;;;62461:19;26489:34;62501:14;;;26469:55;-1:-1;;;26544:12;;;26537:25;26581:12;;;51177:245;51429:416;51629:2;51643:47;;;51614:18;;;62461:19;26868:34;62501:14;;;26848:55;26922:12;;;51600:245;51852:416;52052:2;52066:47;;;27173:2;52037:18;;;62461:19;27209:31;62501:14;;;27189:52;27260:12;;;52023:245;52275:416;52475:2;52489:47;;;27511:2;52460:18;;;62461:19;27547:32;62501:14;;;27527:53;27599:12;;;52446:245;52698:416;52898:2;52912:47;;;27850:2;52883:18;;;62461:19;27886:31;62501:14;;;27866:52;27937:12;;;52869:245;53121:416;53321:2;53335:47;;;28188:2;53306:18;;;62461:19;28224:26;62501:14;;;28204:47;28270:12;;;53292:245;53544:416;53744:2;53758:47;;;28521:2;53729:18;;;62461:19;28557:30;62501:14;;;28537:51;28607:12;;;53715:245;53967:416;54167:2;54181:47;;;28858:2;54152:18;;;62461:19;28894:32;62501:14;;;28874:53;28946:12;;;54138:245;54390:416;54590:2;54604:47;;;54575:18;;;62461:19;29233:34;62501:14;;;29213:55;29287:12;;;54561:245;54813:416;55013:2;55027:47;;;54998:18;;;62461:19;29574:34;62501:14;;;29554:55;29628:12;;;54984:245;55236:416;55436:2;55450:47;;;29879:2;55421:18;;;62461:19;29915:28;62501:14;;;29895:49;29963:12;;;55407:245;55659:416;55859:2;55873:47;;;30214:2;55844:18;;;62461:19;30250:34;62501:14;;;30230:55;-1:-1;;;30305:12;;;30298:34;30351:12;;;55830:245;56082:416;56282:2;56296:47;;;30602:2;56267:18;;;62461:19;30638:34;62501:14;;;30618:55;-1:-1;;;30693:12;;;30686:31;30736:12;;;56253:245;56505:416;56705:2;56719:47;;;30987:2;56690:18;;;62461:19;31023:33;62501:14;;;31003:54;31076:12;;;56676:245;56928:416;57128:2;57142:47;;;31327:2;57113:18;;;62461:19;31363:31;62501:14;;;31343:52;31414:12;;;57099:245;57351:416;57551:2;57565:47;;;31665:2;57536:18;;;62461:19;31701:34;62501:14;;;31681:55;-1:-1;;;31756:12;;;31749:43;31811:12;;;57522:245;57774:416;57974:2;57988:47;;;32062:2;57959:18;;;62461:19;-1:-1;;;62501:14;;;32078:41;32138:12;;;57945:245;58197:416;58397:2;58411:47;;;32389:2;58382:18;;;62461:19;-1:-1;;;62501:14;;;32405:33;32457:12;;;58368:245;58620:222;17240:37;;;58747:2;58732:18;;58718:124;58849:532;;17270:5;17247:3;17240:37;17270:5;59216:2;59205:9;59201:18;17240:37;59052:2;59253;59242:9;59238:18;59231:48;59293:78;59052:2;59041:9;59037:18;59357:6;59293:78;;59388:256;59450:2;59444:9;59476:17;;;-1:-1;;;;;59536:34;;59572:22;;;59533:62;59530:2;;;59608:1;;59598:12;59530:2;59450;59617:22;59428:216;;-1:-1;59428:216;59651:304;;-1:-1;;;;;59802:6;59799:30;59796:2;;;-1:-1;;59832:12;59796:2;-1:-1;59877:4;59865:17;;;59930:15;;59733:222;60594:321;;-1:-1;;;;;60729:6;60726:30;60723:2;;;-1:-1;;60759:12;60723:2;-1:-1;66948:7;60813:17;-1:-1;;60809:33;60900:4;60890:15;;60660:255;66588:268;66653:1;66660:101;66674:6;66671:1;66668:13;66660:101;;;66741:11;;;66735:18;66722:11;;;66715:39;66696:2;66689:10;66660:101;;;66776:6;66773:1;66770:13;66767:2;;;-1:-1;;66653:1;66823:16;;66816:27;66637:219;66969:117;-1:-1;;;;;63974:54;;67028:35;;67018:2;;67077:1;;67067:12;67093:111;67174:5;63376:13;63369:21;67152:5;67149:32;67139:2;;67195:1;;67185:12","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa264697066735822122024de1ac5556d0aad8346cc2b8bf0cdb09a3e6c21a35448805a16d178f9d3353464736f6c634300060a0033","offset":20992}},"immutableReferences":{"4792":[{"start":759,"length":32},{"start":2987,"length":32},{"start":3106,"length":32},{"start":3153,"length":32},{"start":3212,"length":32},{"start":5611,"length":32},{"start":12221,"length":32},{"start":12610,"length":32},{"start":13325,"length":32},{"start":13388,"length":32},{"start":14984,"length":32},{"start":15062,"length":32}]},"transformations":[{"id":"4792","type":"replace","offset":759,"reason":"immutable"},{"id":"4792","type":"replace","offset":2987,"reason":"immutable"},{"id":"4792","type":"replace","offset":3106,"reason":"immutable"},{"id":"4792","type":"replace","offset":3153,"reason":"immutable"},{"id":"4792","type":"replace","offset":3212,"reason":"immutable"},{"id":"4792","type":"replace","offset":5611,"reason":"immutable"},{"id":"4792","type":"replace","offset":12221,"reason":"immutable"},{"id":"4792","type":"replace","offset":12610,"reason":"immutable"},{"id":"4792","type":"replace","offset":13325,"reason":"immutable"},{"id":"4792","type":"replace","offset":13388,"reason":"immutable"},{"id":"4792","type":"replace","offset":14984,"reason":"immutable"},{"id":"4792","type":"replace","offset":15062,"reason":"immutable"},{"id":"1","type":"replace","offset":20992,"reason":"cborAuxdata"}],"transformationValues":{"immutables":{"4792":"0x000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"},"cborAuxdata":{"1":"0xa26469706673582212208b05ec7d7ae8f48e47d4914209a190ab58f7d31cd1ff9e77bd2b37e6c99d538864736f6c634300060a0033"}}},"deployment":{"transactionHash":"0xd147c096d192f3d095425aa6179c71b78fcd898e4239224d6e1cb75c432b5fea","blockNumber":"16101989","transactionIndex":"28","deployer":"0xeED8A32c99192794430383509465e5E360C74605"},"sources":{"IssuanceModuleV2.sol":{"content":"// Sources flattened with hardhat v2.6.1 https://hardhat.org\r\n\r\n// File @openzeppelin/contracts/GSN/Context.sol@v3.3.0\r\n\r\n// SPDX-License-Identifier: MIT\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/*\r\n * @dev Provides information about the current execution context, including the\r\n * sender of the transaction and its data. While these are generally available\r\n * via msg.sender and msg.data, they should not be accessed in such a direct\r\n * manner, since when dealing with GSN meta-transactions the account sending and\r\n * paying for execution may not be the actual sender (as far as an application\r\n * is concerned).\r\n *\r\n * This contract is only required for intermediate, library-like contracts.\r\n */\r\nabstract contract Context {\r\n    function _msgSender() internal view virtual returns (address payable) {\r\n        return msg.sender;\r\n    }\r\n\r\n    function _msgData() internal view virtual returns (bytes memory) {\r\n        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\r\n        return msg.data;\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v3.3.0\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/**\r\n * @dev Interface of the ERC20 standard as defined in the EIP.\r\n */\r\ninterface IERC20 {\r\n    /**\r\n     * @dev Returns the amount of tokens in existence.\r\n     */\r\n    function totalSupply() external view returns (uint256);\r\n\r\n    /**\r\n     * @dev Returns the amount of tokens owned by `account`.\r\n     */\r\n    function balanceOf(address account) external view returns (uint256);\r\n\r\n    /**\r\n     * @dev Moves `amount` tokens from the caller's account to `recipient`.\r\n     *\r\n     * Returns a boolean value indicating whether the operation succeeded.\r\n     *\r\n     * Emits a {Transfer} event.\r\n     */\r\n    function transfer(address recipient, uint256 amount) external returns (bool);\r\n\r\n    /**\r\n     * @dev Returns the remaining number of tokens that `spender` will be\r\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\r\n     * zero by default.\r\n     *\r\n     * This value changes when {approve} or {transferFrom} are called.\r\n     */\r\n    function allowance(address owner, address spender) external view returns (uint256);\r\n\r\n    /**\r\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\r\n     *\r\n     * Returns a boolean value indicating whether the operation succeeded.\r\n     *\r\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\r\n     * that someone may use both the old and the new allowance by unfortunate\r\n     * transaction ordering. One possible solution to mitigate this race\r\n     * condition is to first reduce the spender's allowance to 0 and set the\r\n     * desired value afterwards:\r\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\r\n     *\r\n     * Emits an {Approval} event.\r\n     */\r\n    function approve(address spender, uint256 amount) external returns (bool);\r\n\r\n    /**\r\n     * @dev Moves `amount` tokens from `sender` to `recipient` using the\r\n     * allowance mechanism. `amount` is then deducted from the caller's\r\n     * allowance.\r\n     *\r\n     * Returns a boolean value indicating whether the operation succeeded.\r\n     *\r\n     * Emits a {Transfer} event.\r\n     */\r\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\r\n\r\n    /**\r\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\r\n     * another (`to`).\r\n     *\r\n     * Note that `value` may be zero.\r\n     */\r\n    event Transfer(address indexed from, address indexed to, uint256 value);\r\n\r\n    /**\r\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\r\n     * a call to {approve}. `value` is the new allowance.\r\n     */\r\n    event Approval(address indexed owner, address indexed spender, uint256 value);\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/math/SafeMath.sol@v3.3.0\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/**\r\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\r\n * checks.\r\n *\r\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\r\n * in bugs, because programmers usually assume that an overflow raises an\r\n * error, which is the standard behavior in high level programming languages.\r\n * `SafeMath` restores this intuition by reverting the transaction when an\r\n * operation overflows.\r\n *\r\n * Using this library instead of the unchecked operations eliminates an entire\r\n * class of bugs, so it's recommended to use it always.\r\n */\r\nlibrary SafeMath {\r\n    /**\r\n     * @dev Returns the addition of two unsigned integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `+` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Addition cannot overflow.\r\n     */\r\n    function add(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        uint256 c = a + b;\r\n        require(c >= a, \"SafeMath: addition overflow\");\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the subtraction of two unsigned integers, reverting on\r\n     * overflow (when the result is negative).\r\n     *\r\n     * Counterpart to Solidity's `-` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Subtraction cannot overflow.\r\n     */\r\n    function sub(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return sub(a, b, \"SafeMath: subtraction overflow\");\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\r\n     * overflow (when the result is negative).\r\n     *\r\n     * Counterpart to Solidity's `-` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Subtraction cannot overflow.\r\n     */\r\n    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n        require(b <= a, errorMessage);\r\n        uint256 c = a - b;\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the multiplication of two unsigned integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `*` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Multiplication cannot overflow.\r\n     */\r\n    function mul(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\r\n        // benefit is lost if 'b' is also tested.\r\n        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\r\n        if (a == 0) {\r\n            return 0;\r\n        }\r\n\r\n        uint256 c = a * b;\r\n        require(c / a == b, \"SafeMath: multiplication overflow\");\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the integer division of two unsigned integers. Reverts on\r\n     * division by zero. The result is rounded towards zero.\r\n     *\r\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\r\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\r\n     * uses an invalid opcode to revert (consuming all remaining gas).\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The divisor cannot be zero.\r\n     */\r\n    function div(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return div(a, b, \"SafeMath: division by zero\");\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on\r\n     * division by zero. The result is rounded towards zero.\r\n     *\r\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\r\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\r\n     * uses an invalid opcode to revert (consuming all remaining gas).\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The divisor cannot be zero.\r\n     */\r\n    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n        require(b > 0, errorMessage);\r\n        uint256 c = a / b;\r\n        // assert(a == b * c + a % b); // There is no case in which this doesn't hold\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r\n     * Reverts when dividing by zero.\r\n     *\r\n     * Counterpart to Solidity's `%` operator. This function uses a `revert`\r\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\r\n     * invalid opcode to revert (consuming all remaining gas).\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The divisor cannot be zero.\r\n     */\r\n    function mod(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return mod(a, b, \"SafeMath: modulo by zero\");\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r\n     * Reverts with custom message when dividing by zero.\r\n     *\r\n     * Counterpart to Solidity's `%` operator. This function uses a `revert`\r\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\r\n     * invalid opcode to revert (consuming all remaining gas).\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The divisor cannot be zero.\r\n     */\r\n    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n        require(b != 0, errorMessage);\r\n        return a % b;\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/token/ERC20/ERC20.sol@v3.3.0\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n\r\n\r\n/**\r\n * @dev Implementation of the {IERC20} interface.\r\n *\r\n * This implementation is agnostic to the way tokens are created. This means\r\n * that a supply mechanism has to be added in a derived contract using {_mint}.\r\n * For a generic mechanism see {ERC20PresetMinterPauser}.\r\n *\r\n * TIP: For a detailed writeup see our guide\r\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\r\n * to implement supply mechanisms].\r\n *\r\n * We have followed general OpenZeppelin guidelines: functions revert instead\r\n * of returning `false` on failure. This behavior is nonetheless conventional\r\n * and does not conflict with the expectations of ERC20 applications.\r\n *\r\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\r\n * This allows applications to reconstruct the allowance for all accounts just\r\n * by listening to said events. Other implementations of the EIP may not emit\r\n * these events, as it isn't required by the specification.\r\n *\r\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\r\n * functions have been added to mitigate the well-known issues around setting\r\n * allowances. See {IERC20-approve}.\r\n */\r\ncontract ERC20 is Context, IERC20 {\r\n    using SafeMath for uint256;\r\n\r\n    mapping (address => uint256) private _balances;\r\n\r\n    mapping (address => mapping (address => uint256)) private _allowances;\r\n\r\n    uint256 private _totalSupply;\r\n\r\n    string private _name;\r\n    string private _symbol;\r\n    uint8 private _decimals;\r\n\r\n    /**\r\n     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\r\n     * a default value of 18.\r\n     *\r\n     * To select a different value for {decimals}, use {_setupDecimals}.\r\n     *\r\n     * All three of these values are immutable: they can only be set once during\r\n     * construction.\r\n     */\r\n    constructor (string memory name_, string memory symbol_) public {\r\n        _name = name_;\r\n        _symbol = symbol_;\r\n        _decimals = 18;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the name of the token.\r\n     */\r\n    function name() public view returns (string memory) {\r\n        return _name;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the symbol of the token, usually a shorter version of the\r\n     * name.\r\n     */\r\n    function symbol() public view returns (string memory) {\r\n        return _symbol;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the number of decimals used to get its user representation.\r\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\r\n     * be displayed to a user as `5,05` (`505 / 10 ** 2`).\r\n     *\r\n     * Tokens usually opt for a value of 18, imitating the relationship between\r\n     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is\r\n     * called.\r\n     *\r\n     * NOTE: This information is only used for _display_ purposes: it in\r\n     * no way affects any of the arithmetic of the contract, including\r\n     * {IERC20-balanceOf} and {IERC20-transfer}.\r\n     */\r\n    function decimals() public view returns (uint8) {\r\n        return _decimals;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-totalSupply}.\r\n     */\r\n    function totalSupply() public view override returns (uint256) {\r\n        return _totalSupply;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-balanceOf}.\r\n     */\r\n    function balanceOf(address account) public view override returns (uint256) {\r\n        return _balances[account];\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-transfer}.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `recipient` cannot be the zero address.\r\n     * - the caller must have a balance of at least `amount`.\r\n     */\r\n    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\r\n        _transfer(_msgSender(), recipient, amount);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-allowance}.\r\n     */\r\n    function allowance(address owner, address spender) public view virtual override returns (uint256) {\r\n        return _allowances[owner][spender];\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-approve}.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `spender` cannot be the zero address.\r\n     */\r\n    function approve(address spender, uint256 amount) public virtual override returns (bool) {\r\n        _approve(_msgSender(), spender, amount);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-transferFrom}.\r\n     *\r\n     * Emits an {Approval} event indicating the updated allowance. This is not\r\n     * required by the EIP. See the note at the beginning of {ERC20}.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `sender` and `recipient` cannot be the zero address.\r\n     * - `sender` must have a balance of at least `amount`.\r\n     * - the caller must have allowance for ``sender``'s tokens of at least\r\n     * `amount`.\r\n     */\r\n    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\r\n        _transfer(sender, recipient, amount);\r\n        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \"ERC20: transfer amount exceeds allowance\"));\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\r\n     *\r\n     * This is an alternative to {approve} that can be used as a mitigation for\r\n     * problems described in {IERC20-approve}.\r\n     *\r\n     * Emits an {Approval} event indicating the updated allowance.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `spender` cannot be the zero address.\r\n     */\r\n    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\r\n        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\r\n     *\r\n     * This is an alternative to {approve} that can be used as a mitigation for\r\n     * problems described in {IERC20-approve}.\r\n     *\r\n     * Emits an {Approval} event indicating the updated allowance.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `spender` cannot be the zero address.\r\n     * - `spender` must have allowance for the caller of at least\r\n     * `subtractedValue`.\r\n     */\r\n    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\r\n        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \"ERC20: decreased allowance below zero\"));\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Moves tokens `amount` from `sender` to `recipient`.\r\n     *\r\n     * This is internal function is equivalent to {transfer}, and can be used to\r\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\r\n     *\r\n     * Emits a {Transfer} event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `sender` cannot be the zero address.\r\n     * - `recipient` cannot be the zero address.\r\n     * - `sender` must have a balance of at least `amount`.\r\n     */\r\n    function _transfer(address sender, address recipient, uint256 amount) internal virtual {\r\n        require(sender != address(0), \"ERC20: transfer from the zero address\");\r\n        require(recipient != address(0), \"ERC20: transfer to the zero address\");\r\n\r\n        _beforeTokenTransfer(sender, recipient, amount);\r\n\r\n        _balances[sender] = _balances[sender].sub(amount, \"ERC20: transfer amount exceeds balance\");\r\n        _balances[recipient] = _balances[recipient].add(amount);\r\n        emit Transfer(sender, recipient, amount);\r\n    }\r\n\r\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\r\n     * the total supply.\r\n     *\r\n     * Emits a {Transfer} event with `from` set to the zero address.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `to` cannot be the zero address.\r\n     */\r\n    function _mint(address account, uint256 amount) internal virtual {\r\n        require(account != address(0), \"ERC20: mint to the zero address\");\r\n\r\n        _beforeTokenTransfer(address(0), account, amount);\r\n\r\n        _totalSupply = _totalSupply.add(amount);\r\n        _balances[account] = _balances[account].add(amount);\r\n        emit Transfer(address(0), account, amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Destroys `amount` tokens from `account`, reducing the\r\n     * total supply.\r\n     *\r\n     * Emits a {Transfer} event with `to` set to the zero address.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `account` cannot be the zero address.\r\n     * - `account` must have at least `amount` tokens.\r\n     */\r\n    function _burn(address account, uint256 amount) internal virtual {\r\n        require(account != address(0), \"ERC20: burn from the zero address\");\r\n\r\n        _beforeTokenTransfer(account, address(0), amount);\r\n\r\n        _balances[account] = _balances[account].sub(amount, \"ERC20: burn amount exceeds balance\");\r\n        _totalSupply = _totalSupply.sub(amount);\r\n        emit Transfer(account, address(0), amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\r\n     *\r\n     * This internal function is equivalent to `approve`, and can be used to\r\n     * e.g. set automatic allowances for certain subsystems, etc.\r\n     *\r\n     * Emits an {Approval} event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `owner` cannot be the zero address.\r\n     * - `spender` cannot be the zero address.\r\n     */\r\n    function _approve(address owner, address spender, uint256 amount) internal virtual {\r\n        require(owner != address(0), \"ERC20: approve from the zero address\");\r\n        require(spender != address(0), \"ERC20: approve to the zero address\");\r\n\r\n        _allowances[owner][spender] = amount;\r\n        emit Approval(owner, spender, amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Sets {decimals} to a value other than the default one of 18.\r\n     *\r\n     * WARNING: This function should only be called from the constructor. Most\r\n     * applications that interact with token contracts will not expect\r\n     * {decimals} to ever change, and may work incorrectly if it does.\r\n     */\r\n    function _setupDecimals(uint8 decimals_) internal {\r\n        _decimals = decimals_;\r\n    }\r\n\r\n    /**\r\n     * @dev Hook that is called before any transfer of tokens. This includes\r\n     * minting and burning.\r\n     *\r\n     * Calling conditions:\r\n     *\r\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\r\n     * will be to transferred to `to`.\r\n     * - when `from` is zero, `amount` tokens will be minted for `to`.\r\n     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\r\n     * - `from` and `to` are never both zero.\r\n     *\r\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\r\n     */\r\n    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/access/Ownable.sol@v3.3.0\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/**\r\n * @dev Contract module which provides a basic access control mechanism, where\r\n * there is an account (an owner) that can be granted exclusive access to\r\n * specific functions.\r\n *\r\n * By default, the owner account will be the one that deploys the contract. This\r\n * can later be changed with {transferOwnership}.\r\n *\r\n * This module is used through inheritance. It will make available the modifier\r\n * `onlyOwner`, which can be applied to your functions to restrict their use to\r\n * the owner.\r\n */\r\nabstract contract Ownable is Context {\r\n    address private _owner;\r\n\r\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\r\n\r\n    /**\r\n     * @dev Initializes the contract setting the deployer as the initial owner.\r\n     */\r\n    constructor () internal {\r\n        address msgSender = _msgSender();\r\n        _owner = msgSender;\r\n        emit OwnershipTransferred(address(0), msgSender);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the address of the current owner.\r\n     */\r\n    function owner() public view returns (address) {\r\n        return _owner;\r\n    }\r\n\r\n    /**\r\n     * @dev Throws if called by any account other than the owner.\r\n     */\r\n    modifier onlyOwner() {\r\n        require(_owner == _msgSender(), \"Ownable: caller is not the owner\");\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @dev Leaves the contract without owner. It will not be possible to call\r\n     * `onlyOwner` functions anymore. Can only be called by the current owner.\r\n     *\r\n     * NOTE: Renouncing ownership will leave the contract without an owner,\r\n     * thereby removing any functionality that is only available to the owner.\r\n     */\r\n    function renounceOwnership() public virtual onlyOwner {\r\n        emit OwnershipTransferred(_owner, address(0));\r\n        _owner = address(0);\r\n    }\r\n\r\n    /**\r\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\r\n     * Can only be called by the current owner.\r\n     */\r\n    function transferOwnership(address newOwner) public virtual onlyOwner {\r\n        require(newOwner != address(0), \"Ownable: new owner is the zero address\");\r\n        emit OwnershipTransferred(_owner, newOwner);\r\n        _owner = newOwner;\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/utils/ReentrancyGuard.sol@v3.3.0\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/**\r\n * @dev Contract module that helps prevent reentrant calls to a function.\r\n *\r\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\r\n * available, which can be applied to functions to make sure there are no nested\r\n * (reentrant) calls to them.\r\n *\r\n * Note that because there is a single `nonReentrant` guard, functions marked as\r\n * `nonReentrant` may not call one another. This can be worked around by making\r\n * those functions `private`, and then adding `external` `nonReentrant` entry\r\n * points to them.\r\n *\r\n * TIP: If you would like to learn more about reentrancy and alternative ways\r\n * to protect against it, check out our blog post\r\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\r\n */\r\nabstract contract ReentrancyGuard {\r\n    // Booleans are more expensive than uint256 or any type that takes up a full\r\n    // word because each write operation emits an extra SLOAD to first read the\r\n    // slot's contents, replace the bits taken up by the boolean, and then write\r\n    // back. This is the compiler's defense against contract upgrades and\r\n    // pointer aliasing, and it cannot be disabled.\r\n\r\n    // The values being non-zero value makes deployment a bit more expensive,\r\n    // but in exchange the refund on every call to nonReentrant will be lower in\r\n    // amount. Since refunds are capped to a percentage of the total\r\n    // transaction's gas, it is best to keep them low in cases like this one, to\r\n    // increase the likelihood of the full refund coming into effect.\r\n    uint256 private constant _NOT_ENTERED = 1;\r\n    uint256 private constant _ENTERED = 2;\r\n\r\n    uint256 private _status;\r\n\r\n    constructor () internal {\r\n        _status = _NOT_ENTERED;\r\n    }\r\n\r\n    /**\r\n     * @dev Prevents a contract from calling itself, directly or indirectly.\r\n     * Calling a `nonReentrant` function from another `nonReentrant`\r\n     * function is not supported. It is possible to prevent this from happening\r\n     * by making the `nonReentrant` function external, and make it call a\r\n     * `private` function that does the actual work.\r\n     */\r\n    modifier nonReentrant() {\r\n        // On the first call to nonReentrant, _notEntered will be true\r\n        require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\r\n\r\n        // Any calls to nonReentrant after this point will fail\r\n        _status = _ENTERED;\r\n\r\n        _;\r\n\r\n        // By storing the original value once again, a refund is triggered (see\r\n        // https://eips.ethereum.org/EIPS/eip-2200)\r\n        _status = _NOT_ENTERED;\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/utils/SafeCast.sol@v3.3.0\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n\r\n/**\r\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\r\n * checks.\r\n *\r\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\r\n * easily result in undesired exploitation or bugs, since developers usually\r\n * assume that overflows raise errors. `SafeCast` restores this intuition by\r\n * reverting the transaction when such an operation overflows.\r\n *\r\n * Using this library instead of the unchecked operations eliminates an entire\r\n * class of bugs, so it's recommended to use it always.\r\n *\r\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\r\n * all math on `uint256` and `int256` and then downcasting.\r\n */\r\nlibrary SafeCast {\r\n\r\n    /**\r\n     * @dev Returns the downcasted uint128 from uint256, reverting on\r\n     * overflow (when the input is greater than largest uint128).\r\n     *\r\n     * Counterpart to Solidity's `uint128` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 128 bits\r\n     */\r\n    function toUint128(uint256 value) internal pure returns (uint128) {\r\n        require(value < 2**128, \"SafeCast: value doesn\\'t fit in 128 bits\");\r\n        return uint128(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted uint64 from uint256, reverting on\r\n     * overflow (when the input is greater than largest uint64).\r\n     *\r\n     * Counterpart to Solidity's `uint64` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 64 bits\r\n     */\r\n    function toUint64(uint256 value) internal pure returns (uint64) {\r\n        require(value < 2**64, \"SafeCast: value doesn\\'t fit in 64 bits\");\r\n        return uint64(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted uint32 from uint256, reverting on\r\n     * overflow (when the input is greater than largest uint32).\r\n     *\r\n     * Counterpart to Solidity's `uint32` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 32 bits\r\n     */\r\n    function toUint32(uint256 value) internal pure returns (uint32) {\r\n        require(value < 2**32, \"SafeCast: value doesn\\'t fit in 32 bits\");\r\n        return uint32(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted uint16 from uint256, reverting on\r\n     * overflow (when the input is greater than largest uint16).\r\n     *\r\n     * Counterpart to Solidity's `uint16` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 16 bits\r\n     */\r\n    function toUint16(uint256 value) internal pure returns (uint16) {\r\n        require(value < 2**16, \"SafeCast: value doesn\\'t fit in 16 bits\");\r\n        return uint16(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted uint8 from uint256, reverting on\r\n     * overflow (when the input is greater than largest uint8).\r\n     *\r\n     * Counterpart to Solidity's `uint8` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 8 bits.\r\n     */\r\n    function toUint8(uint256 value) internal pure returns (uint8) {\r\n        require(value < 2**8, \"SafeCast: value doesn\\'t fit in 8 bits\");\r\n        return uint8(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Converts a signed int256 into an unsigned uint256.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must be greater than or equal to 0.\r\n     */\r\n    function toUint256(int256 value) internal pure returns (uint256) {\r\n        require(value >= 0, \"SafeCast: value must be positive\");\r\n        return uint256(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted int128 from int256, reverting on\r\n     * overflow (when the input is less than smallest int128 or\r\n     * greater than largest int128).\r\n     *\r\n     * Counterpart to Solidity's `int128` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 128 bits\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function toInt128(int256 value) internal pure returns (int128) {\r\n        require(value >= -2**127 && value < 2**127, \"SafeCast: value doesn\\'t fit in 128 bits\");\r\n        return int128(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted int64 from int256, reverting on\r\n     * overflow (when the input is less than smallest int64 or\r\n     * greater than largest int64).\r\n     *\r\n     * Counterpart to Solidity's `int64` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 64 bits\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function toInt64(int256 value) internal pure returns (int64) {\r\n        require(value >= -2**63 && value < 2**63, \"SafeCast: value doesn\\'t fit in 64 bits\");\r\n        return int64(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted int32 from int256, reverting on\r\n     * overflow (when the input is less than smallest int32 or\r\n     * greater than largest int32).\r\n     *\r\n     * Counterpart to Solidity's `int32` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 32 bits\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function toInt32(int256 value) internal pure returns (int32) {\r\n        require(value >= -2**31 && value < 2**31, \"SafeCast: value doesn\\'t fit in 32 bits\");\r\n        return int32(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted int16 from int256, reverting on\r\n     * overflow (when the input is less than smallest int16 or\r\n     * greater than largest int16).\r\n     *\r\n     * Counterpart to Solidity's `int16` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 16 bits\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function toInt16(int256 value) internal pure returns (int16) {\r\n        require(value >= -2**15 && value < 2**15, \"SafeCast: value doesn\\'t fit in 16 bits\");\r\n        return int16(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted int8 from int256, reverting on\r\n     * overflow (when the input is less than smallest int8 or\r\n     * greater than largest int8).\r\n     *\r\n     * Counterpart to Solidity's `int8` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 8 bits.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function toInt8(int256 value) internal pure returns (int8) {\r\n        require(value >= -2**7 && value < 2**7, \"SafeCast: value doesn\\'t fit in 8 bits\");\r\n        return int8(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Converts an unsigned uint256 into a signed int256.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must be less than or equal to maxInt256.\r\n     */\r\n    function toInt256(uint256 value) internal pure returns (int256) {\r\n        require(value < 2**255, \"SafeCast: value doesn't fit in an int256\");\r\n        return int256(value);\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/math/SignedSafeMath.sol@v3.3.0\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/**\r\n * @title SignedSafeMath\r\n * @dev Signed math operations with safety checks that revert on error.\r\n */\r\nlibrary SignedSafeMath {\r\n    int256 constant private _INT256_MIN = -2**255;\r\n\r\n    /**\r\n     * @dev Returns the multiplication of two signed integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `*` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Multiplication cannot overflow.\r\n     */\r\n    function mul(int256 a, int256 b) internal pure returns (int256) {\r\n        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\r\n        // benefit is lost if 'b' is also tested.\r\n        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\r\n        if (a == 0) {\r\n            return 0;\r\n        }\r\n\r\n        require(!(a == -1 && b == _INT256_MIN), \"SignedSafeMath: multiplication overflow\");\r\n\r\n        int256 c = a * b;\r\n        require(c / a == b, \"SignedSafeMath: multiplication overflow\");\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the integer division of two signed integers. Reverts on\r\n     * division by zero. The result is rounded towards zero.\r\n     *\r\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\r\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\r\n     * uses an invalid opcode to revert (consuming all remaining gas).\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The divisor cannot be zero.\r\n     */\r\n    function div(int256 a, int256 b) internal pure returns (int256) {\r\n        require(b != 0, \"SignedSafeMath: division by zero\");\r\n        require(!(b == -1 && a == _INT256_MIN), \"SignedSafeMath: division overflow\");\r\n\r\n        int256 c = a / b;\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the subtraction of two signed integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `-` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Subtraction cannot overflow.\r\n     */\r\n    function sub(int256 a, int256 b) internal pure returns (int256) {\r\n        int256 c = a - b;\r\n        require((b >= 0 && c <= a) || (b < 0 && c > a), \"SignedSafeMath: subtraction overflow\");\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the addition of two signed integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `+` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Addition cannot overflow.\r\n     */\r\n    function add(int256 a, int256 b) internal pure returns (int256) {\r\n        int256 c = a + b;\r\n        require((b >= 0 && c >= a) || (b < 0 && c < a), \"SignedSafeMath: addition overflow\");\r\n\r\n        return c;\r\n    }\r\n}\r\n\r\n\r\n// File contracts/lib/AddressArrayUtils.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n/**\r\n * @title AddressArrayUtils\r\n * @author Cook Finance\r\n *\r\n * Utility functions to handle Address Arrays\r\n */\r\nlibrary AddressArrayUtils {\r\n\r\n    /**\r\n     * Finds the index of the first occurrence of the given element.\r\n     * @param A The input array to search\r\n     * @param a The value to find\r\n     * @return Returns (index and isIn) for the first occurrence starting from index 0\r\n     */\r\n    function indexOf(address[] memory A, address a) internal pure returns (uint256, bool) {\r\n        uint256 length = A.length;\r\n        for (uint256 i = 0; i < length; i++) {\r\n            if (A[i] == a) {\r\n                return (i, true);\r\n            }\r\n        }\r\n        return (uint256(-1), false);\r\n    }\r\n\r\n    /**\r\n    * Returns true if the value is present in the list. Uses indexOf internally.\r\n    * @param A The input array to search\r\n    * @param a The value to find\r\n    * @return Returns isIn for the first occurrence starting from index 0\r\n    */\r\n    function contains(address[] memory A, address a) internal pure returns (bool) {\r\n        (, bool isIn) = indexOf(A, a);\r\n        return isIn;\r\n    }\r\n\r\n    /**\r\n    * Returns true if there are 2 elements that are the same in an array\r\n    * @param A The input array to search\r\n    * @return Returns boolean for the first occurrence of a duplicate\r\n    */\r\n    function hasDuplicate(address[] memory A) internal pure returns(bool) {\r\n        require(A.length > 0, \"A is empty\");\r\n\r\n        for (uint256 i = 0; i < A.length - 1; i++) {\r\n            address current = A[i];\r\n            for (uint256 j = i + 1; j < A.length; j++) {\r\n                if (current == A[j]) {\r\n                    return true;\r\n                }\r\n            }\r\n        }\r\n        return false;\r\n    }\r\n\r\n    /**\r\n     * @param A The input array to search\r\n     * @param a The address to remove     \r\n     * @return Returns the array with the object removed.\r\n     */\r\n    function remove(address[] memory A, address a)\r\n        internal\r\n        pure\r\n        returns (address[] memory)\r\n    {\r\n        (uint256 index, bool isIn) = indexOf(A, a);\r\n        if (!isIn) {\r\n            revert(\"Address not in array.\");\r\n        } else {\r\n            (address[] memory _A,) = pop(A, index);\r\n            return _A;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @param A The input array to search\r\n     * @param a The address to remove\r\n     */\r\n    function removeStorage(address[] storage A, address a)\r\n        internal\r\n    {\r\n        (uint256 index, bool isIn) = indexOf(A, a);\r\n        if (!isIn) {\r\n            revert(\"Address not in array.\");\r\n        } else {\r\n            uint256 lastIndex = A.length - 1; // If the array would be empty, the previous line would throw, so no underflow here\r\n            if (index != lastIndex) { A[index] = A[lastIndex]; }\r\n            A.pop();\r\n        }\r\n    }\r\n\r\n    /**\r\n    * Removes specified index from array\r\n    * @param A The input array to search\r\n    * @param index The index to remove\r\n    * @return Returns the new array and the removed entry\r\n    */\r\n    function pop(address[] memory A, uint256 index)\r\n        internal\r\n        pure\r\n        returns (address[] memory, address)\r\n    {\r\n        uint256 length = A.length;\r\n        require(index < A.length, \"Index must be < A length\");\r\n        address[] memory newAddresses = new address[](length - 1);\r\n        for (uint256 i = 0; i < index; i++) {\r\n            newAddresses[i] = A[i];\r\n        }\r\n        for (uint256 j = index + 1; j < length; j++) {\r\n            newAddresses[j - 1] = A[j];\r\n        }\r\n        return (newAddresses, A[index]);\r\n    }\r\n\r\n    /**\r\n     * Returns the combination of the two arrays\r\n     * @param A The first array\r\n     * @param B The second array\r\n     * @return Returns A extended by B\r\n     */\r\n    function extend(address[] memory A, address[] memory B) internal pure returns (address[] memory) {\r\n        uint256 aLength = A.length;\r\n        uint256 bLength = B.length;\r\n        address[] memory newAddresses = new address[](aLength + bLength);\r\n        for (uint256 i = 0; i < aLength; i++) {\r\n            newAddresses[i] = A[i];\r\n        }\r\n        for (uint256 j = 0; j < bLength; j++) {\r\n            newAddresses[aLength + j] = B[j];\r\n        }\r\n        return newAddresses;\r\n    }\r\n\r\n    /**\r\n     * Validate that address and uint array lengths match. Validate address array is not empty\r\n     * and contains no duplicate elements.\r\n     *\r\n     * @param A         Array of addresses\r\n     * @param B         Array of uint\r\n     */\r\n    function validatePairsWithArray(address[] memory A, uint[] memory B) internal pure {\r\n        require(A.length == B.length, \"Array length mismatch\");\r\n        _validateLengthAndUniqueness(A);\r\n    }\r\n\r\n    /**\r\n     * Validate that address and bool array lengths match. Validate address array is not empty\r\n     * and contains no duplicate elements.\r\n     *\r\n     * @param A         Array of addresses\r\n     * @param B         Array of bool\r\n     */\r\n    function validatePairsWithArray(address[] memory A, bool[] memory B) internal pure {\r\n        require(A.length == B.length, \"Array length mismatch\");\r\n        _validateLengthAndUniqueness(A);\r\n    }\r\n\r\n    /**\r\n     * Validate that address and string array lengths match. Validate address array is not empty\r\n     * and contains no duplicate elements.\r\n     *\r\n     * @param A         Array of addresses\r\n     * @param B         Array of strings\r\n     */\r\n    function validatePairsWithArray(address[] memory A, string[] memory B) internal pure {\r\n        require(A.length == B.length, \"Array length mismatch\");\r\n        _validateLengthAndUniqueness(A);\r\n    }\r\n\r\n    /**\r\n     * Validate that address array lengths match, and calling address array are not empty\r\n     * and contain no duplicate elements.\r\n     *\r\n     * @param A         Array of addresses\r\n     * @param B         Array of addresses\r\n     */\r\n    function validatePairsWithArray(address[] memory A, address[] memory B) internal pure {\r\n        require(A.length == B.length, \"Array length mismatch\");\r\n        _validateLengthAndUniqueness(A);\r\n    }\r\n\r\n    /**\r\n     * Validate that address and bytes array lengths match. Validate address array is not empty\r\n     * and contains no duplicate elements.\r\n     *\r\n     * @param A         Array of addresses\r\n     * @param B         Array of bytes\r\n     */\r\n    function validatePairsWithArray(address[] memory A, bytes[] memory B) internal pure {\r\n        require(A.length == B.length, \"Array length mismatch\");\r\n        _validateLengthAndUniqueness(A);\r\n    }\r\n\r\n    /**\r\n     * Validate address array is not empty and contains no duplicate elements.\r\n     *\r\n     * @param A          Array of addresses\r\n     */\r\n    function _validateLengthAndUniqueness(address[] memory A) internal pure {\r\n        require(A.length > 0, \"Array length must be > 0\");\r\n        require(!hasDuplicate(A), \"Cannot duplicate addresses\");\r\n    }\r\n}\r\n\r\n\r\n// File contracts/interfaces/IController.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\ninterface IController {\r\n    function addCK(address _ckToken) external;\r\n    function feeRecipient() external view returns(address);\r\n    function getModuleFee(address _module, uint256 _feeType) external view returns(uint256);\r\n    function isModule(address _module) external view returns(bool);\r\n    function isCK(address _ckToken) external view returns(bool);\r\n    function isSystemContract(address _contractAddress) external view returns (bool);\r\n    function resourceId(uint256 _id) external view returns(address);\r\n}\r\n\r\n\r\n// File contracts/interfaces/ICKToken.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\npragma experimental \"ABIEncoderV2\";\r\n\r\n/**\r\n * @title ICKToken\r\n * @author Cook Finance\r\n *\r\n * Interface for operating with CKTokens.\r\n */\r\ninterface ICKToken is IERC20 {\r\n\r\n    /* ============ Enums ============ */\r\n\r\n    enum ModuleState {\r\n        NONE,\r\n        PENDING,\r\n        INITIALIZED\r\n    }\r\n\r\n    /* ============ Structs ============ */\r\n    /**\r\n     * The base definition of a CKToken Position\r\n     *\r\n     * @param component           Address of token in the Position\r\n     * @param module              If not in default state, the address of associated module\r\n     * @param unit                Each unit is the # of components per 10^18 of a CKToken\r\n     * @param positionState       Position ENUM. Default is 0; External is 1\r\n     * @param data                Arbitrary data\r\n     */\r\n    struct Position {\r\n        address component;\r\n        address module;\r\n        int256 unit;\r\n        uint8 positionState;\r\n        bytes data;\r\n    }\r\n\r\n    /**\r\n     * A struct that stores a component's cash position details and external positions\r\n     * This data structure allows O(1) access to a component's cash position units and \r\n     * virtual units.\r\n     *\r\n     * @param virtualUnit               Virtual value of a component's DEFAULT position. Stored as virtual for efficiency\r\n     *                                  updating all units at once via the position multiplier. Virtual units are achieved\r\n     *                                  by dividing a \"real\" value by the \"positionMultiplier\"\r\n     * @param componentIndex            \r\n     * @param externalPositionModules   List of external modules attached to each external position. Each module\r\n     *                                  maps to an external position\r\n     * @param externalPositions         Mapping of module => ExternalPosition struct for a given component\r\n     */\r\n    struct ComponentPosition {\r\n      int256 virtualUnit;\r\n      address[] externalPositionModules;\r\n      mapping(address => ExternalPosition) externalPositions;\r\n    }\r\n\r\n    /**\r\n     * A struct that stores a component's external position details including virtual unit and any\r\n     * auxiliary data.\r\n     *\r\n     * @param virtualUnit       Virtual value of a component's EXTERNAL position.\r\n     * @param data              Arbitrary data\r\n     */\r\n    struct ExternalPosition {\r\n      int256 virtualUnit;\r\n      bytes data;\r\n    }\r\n\r\n\r\n    /* ============ Functions ============ */\r\n    \r\n    function addComponent(address _component) external;\r\n    function removeComponent(address _component) external;\r\n    function editDefaultPositionUnit(address _component, int256 _realUnit) external;\r\n    function addExternalPositionModule(address _component, address _positionModule) external;\r\n    function removeExternalPositionModule(address _component, address _positionModule) external;\r\n    function editExternalPositionUnit(address _component, address _positionModule, int256 _realUnit) external;\r\n    function editExternalPositionData(address _component, address _positionModule, bytes calldata _data) external;\r\n\r\n    function invoke(address _target, uint256 _value, bytes calldata _data) external returns(bytes memory);\r\n\r\n    function editPositionMultiplier(int256 _newMultiplier) external;\r\n\r\n    function mint(address _account, uint256 _quantity) external;\r\n    function burn(address _account, uint256 _quantity) external;\r\n\r\n    function lock() external;\r\n    function unlock() external;\r\n\r\n    function addModule(address _module) external;\r\n    function removeModule(address _module) external;\r\n    function initializeModule() external;\r\n\r\n    function setManager(address _manager) external;\r\n\r\n    function manager() external view returns (address);\r\n    function moduleStates(address _module) external view returns (ModuleState);\r\n    function getModules() external view returns (address[] memory);\r\n    \r\n    function getDefaultPositionRealUnit(address _component) external view returns(int256);\r\n    function getExternalPositionRealUnit(address _component, address _positionModule) external view returns(int256);\r\n    function getComponents() external view returns(address[] memory);\r\n    function getExternalPositionModules(address _component) external view returns(address[] memory);\r\n    function getExternalPositionData(address _component, address _positionModule) external view returns(bytes memory);\r\n    function isExternalPositionModule(address _component, address _module) external view returns(bool);\r\n    function isComponent(address _component) external view returns(bool);\r\n    \r\n    function positionMultiplier() external view returns (int256);\r\n    function getPositions() external view returns (Position[] memory);\r\n    function getTotalComponentRealUnits(address _component) external view returns(int256);\r\n\r\n    function isInitializedModule(address _module) external view returns(bool);\r\n    function isPendingModule(address _module) external view returns(bool);\r\n    function isLocked() external view returns (bool);\r\n}\r\n\r\n\r\n// File contracts/interfaces/IManagerIssuanceHook.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\ninterface IManagerIssuanceHook {\r\n    function invokePreIssueHook(ICKToken _ckToken, uint256 _issueQuantity, address _sender, address _to) external;\r\n    function invokePreRedeemHook(ICKToken _ckToken, uint256 _redeemQuantity, address _sender, address _to) external;\r\n}\r\n\r\n\r\n// File contracts/interfaces/IModuleIssuanceHook.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\n/**\r\n * CHANGELOG:\r\n *      - Added a module level issue hook that can be used to set state ahead of component level\r\n *        issue hooks\r\n */\r\ninterface IModuleIssuanceHook {\r\n\r\n    function moduleIssueHook(ICKToken _ckToken, uint256 _ckTokenQuantity) external;\r\n    function moduleRedeemHook(ICKToken _ckToken, uint256 _ckTokenQuantity) external;\r\n    \r\n    function componentIssueHook(\r\n        ICKToken _ckToken,\r\n        uint256 _ckTokenQuantity,\r\n        IERC20 _component,\r\n        bool _isEquity\r\n    ) external;\r\n\r\n    function componentRedeemHook(\r\n        ICKToken _ckToken,\r\n        uint256 _ckTokenQuantity,\r\n        IERC20 _component,\r\n        bool _isEquity\r\n    ) external;\r\n}\r\n\r\n\r\n// File contracts/protocol/lib/Invoke.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title Invoke\r\n * @author Cook Finance\r\n *\r\n * A collection of common utility functions for interacting with the CKToken's invoke function\r\n */\r\nlibrary Invoke {\r\n    using SafeMath for uint256;\r\n\r\n    /* ============ Internal ============ */\r\n\r\n    /**\r\n     * Instructs the CKToken to set approvals of the ERC20 token to a spender.\r\n     *\r\n     * @param _ckToken        CKToken instance to invoke\r\n     * @param _token           ERC20 token to approve\r\n     * @param _spender         The account allowed to spend the CKToken's balance\r\n     * @param _quantity        The quantity of allowance to allow\r\n     */\r\n    function invokeApprove(\r\n        ICKToken _ckToken,\r\n        address _token,\r\n        address _spender,\r\n        uint256 _quantity\r\n    )\r\n        internal\r\n    {\r\n        bytes memory callData = abi.encodeWithSignature(\"approve(address,uint256)\", _spender, _quantity);\r\n        _ckToken.invoke(_token, 0, callData);\r\n    }\r\n\r\n    /**\r\n     * Instructs the CKToken to transfer the ERC20 token to a recipient.\r\n     *\r\n     * @param _ckToken        CKToken instance to invoke\r\n     * @param _token           ERC20 token to transfer\r\n     * @param _to              The recipient account\r\n     * @param _quantity        The quantity to transfer\r\n     */\r\n    function invokeTransfer(\r\n        ICKToken _ckToken,\r\n        address _token,\r\n        address _to,\r\n        uint256 _quantity\r\n    )\r\n        internal\r\n    {\r\n        if (_quantity > 0) {\r\n            bytes memory callData = abi.encodeWithSignature(\"transfer(address,uint256)\", _to, _quantity);\r\n            _ckToken.invoke(_token, 0, callData);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Instructs the CKToken to transfer the ERC20 token to a recipient.\r\n     * The new CKToken balance must equal the existing balance less the quantity transferred\r\n     *\r\n     * @param _ckToken        CKToken instance to invoke\r\n     * @param _token           ERC20 token to transfer\r\n     * @param _to              The recipient account\r\n     * @param _quantity        The quantity to transfer\r\n     */\r\n    function strictInvokeTransfer(\r\n        ICKToken _ckToken,\r\n        address _token,\r\n        address _to,\r\n        uint256 _quantity\r\n    )\r\n        internal\r\n    {\r\n        if (_quantity > 0) {\r\n            // Retrieve current balance of token for the CKToken\r\n            uint256 existingBalance = IERC20(_token).balanceOf(address(_ckToken));\r\n\r\n            Invoke.invokeTransfer(_ckToken, _token, _to, _quantity);\r\n\r\n            // Get new balance of transferred token for CKToken\r\n            uint256 newBalance = IERC20(_token).balanceOf(address(_ckToken));\r\n\r\n            // Verify only the transfer quantity is subtracted\r\n            require(\r\n                newBalance == existingBalance.sub(_quantity),\r\n                \"Invalid post transfer balance\"\r\n            );\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Instructs the CKToken to unwrap the passed quantity of WETH\r\n     *\r\n     * @param _ckToken        CKToken instance to invoke\r\n     * @param _weth            WETH address\r\n     * @param _quantity        The quantity to unwrap\r\n     */\r\n    function invokeUnwrapWETH(ICKToken _ckToken, address _weth, uint256 _quantity) internal {\r\n        bytes memory callData = abi.encodeWithSignature(\"withdraw(uint256)\", _quantity);\r\n        _ckToken.invoke(_weth, 0, callData);\r\n    }\r\n\r\n    /**\r\n     * Instructs the CKToken to wrap the passed quantity of ETH\r\n     *\r\n     * @param _ckToken        CKToken instance to invoke\r\n     * @param _weth            WETH address\r\n     * @param _quantity        The quantity to unwrap\r\n     */\r\n    function invokeWrapWETH(ICKToken _ckToken, address _weth, uint256 _quantity) internal {\r\n        bytes memory callData = abi.encodeWithSignature(\"deposit()\");\r\n        _ckToken.invoke(_weth, _quantity, callData);\r\n    }\r\n}\r\n\r\n\r\n// File contracts/interfaces/external/IWETH.sol\r\n\r\n/*\r\n    Copyright 2018 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n/**\r\n * @title IWETH\r\n * @author Cook Finance\r\n *\r\n * Interface for Wrapped Ether. This interface allows for interaction for wrapped ether's deposit and withdrawal\r\n * functionality.\r\n */\r\ninterface IWETH is IERC20{\r\n    function deposit()\r\n        external\r\n        payable;\r\n\r\n    function withdraw(\r\n        uint256 wad\r\n    )\r\n        external;\r\n}\r\n\r\n\r\n// File contracts/interfaces/IWrapAdapter.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title IWrapAdapter\r\n * @author Cook Finance\r\n *\r\n */\r\ninterface IWrapAdapter {\r\n\r\n    function ETH_TOKEN_ADDRESS() external view returns (address);\r\n\r\n    function getWrapCallData(\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _underlyingUnits\r\n    ) external view returns (address _subject, uint256 _value, bytes memory _calldata);\r\n\r\n    function getUnwrapCallData(\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _wrappedTokenUnits\r\n    ) external view returns (address _subject, uint256 _value, bytes memory _calldata);\r\n\r\n    function getSpenderAddress(address _underlyingToken, address _wrappedToken) external view returns(address);\r\n\r\n    function getWrapSpenderAddress(address _underlyingToken, address _wrappedToken) external view returns(address);\r\n\r\n    function getUnwrapSpenderAddress(address _underlyingToken, address _wrappedToken) external view returns(address);\r\n\r\n    function getDepositUnderlyingTokenAmount(address _underlyingToken, address _wrappedToken, uint256 _wrappedTokenAmount) external view returns(uint256);\r\n\r\n    function getWithdrawUnderlyingTokenAmount(address _underlyingToken, address _wrappedToken, uint256 _wrappedTokenAmount) external view returns(uint256);\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/utils/Address.sol@v3.3.0\r\npragma solidity >=0.6.2 <0.8.0;\r\n\r\n/**\r\n * @dev Collection of functions related to the address type\r\n */\r\nlibrary Address {\r\n    /**\r\n     * @dev Returns true if `account` is a contract.\r\n     *\r\n     * [IMPORTANT]\r\n     * ====\r\n     * It is unsafe to assume that an address for which this function returns\r\n     * false is an externally-owned account (EOA) and not a contract.\r\n     *\r\n     * Among others, `isContract` will return false for the following\r\n     * types of addresses:\r\n     *\r\n     *  - an externally-owned account\r\n     *  - a contract in construction\r\n     *  - an address where a contract will be created\r\n     *  - an address where a contract lived, but was destroyed\r\n     * ====\r\n     */\r\n    function isContract(address account) internal view returns (bool) {\r\n        // This method relies on extcodesize, which returns 0 for contracts in\r\n        // construction, since the code is only stored at the end of the\r\n        // constructor execution.\r\n\r\n        uint256 size;\r\n        // solhint-disable-next-line no-inline-assembly\r\n        assembly { size := extcodesize(account) }\r\n        return size > 0;\r\n    }\r\n\r\n    /**\r\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\r\n     * `recipient`, forwarding all available gas and reverting on errors.\r\n     *\r\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\r\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\r\n     * imposed by `transfer`, making them unable to receive funds via\r\n     * `transfer`. {sendValue} removes this limitation.\r\n     *\r\n     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\r\n     *\r\n     * IMPORTANT: because control is transferred to `recipient`, care must be\r\n     * taken to not create reentrancy vulnerabilities. Consider using\r\n     * {ReentrancyGuard} or the\r\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\r\n     */\r\n    function sendValue(address payable recipient, uint256 amount) internal {\r\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\r\n\r\n        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\r\n        (bool success, ) = recipient.call{ value: amount }(\"\");\r\n        require(success, \"Address: unable to send value, recipient may have reverted\");\r\n    }\r\n\r\n    /**\r\n     * @dev Performs a Solidity function call using a low level `call`. A\r\n     * plain`call` is an unsafe replacement for a function call: use this\r\n     * function instead.\r\n     *\r\n     * If `target` reverts with a revert reason, it is bubbled up by this\r\n     * function (like regular Solidity function calls).\r\n     *\r\n     * Returns the raw returned data. To convert to the expected return value,\r\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `target` must be a contract.\r\n     * - calling `target` with `data` must not revert.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\r\n      return functionCall(target, data, \"Address: low-level call failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\r\n     * `errorMessage` as a fallback revert reason when `target` reverts.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\r\n        return functionCallWithValue(target, data, 0, errorMessage);\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\r\n     * but also transferring `value` wei to `target`.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - the calling contract must have an ETH balance of at least `value`.\r\n     * - the called Solidity function must be `payable`.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\r\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\r\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\r\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\r\n        require(isContract(target), \"Address: call to non-contract\");\r\n\r\n        // solhint-disable-next-line avoid-low-level-calls\r\n        (bool success, bytes memory returndata) = target.call{ value: value }(data);\r\n        return _verifyCallResult(success, returndata, errorMessage);\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\r\n     * but performing a static call.\r\n     *\r\n     * _Available since v3.3._\r\n     */\r\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\r\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\r\n     * but performing a static call.\r\n     *\r\n     * _Available since v3.3._\r\n     */\r\n    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\r\n        require(isContract(target), \"Address: static call to non-contract\");\r\n\r\n        // solhint-disable-next-line avoid-low-level-calls\r\n        (bool success, bytes memory returndata) = target.staticcall(data);\r\n        return _verifyCallResult(success, returndata, errorMessage);\r\n    }\r\n\r\n    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\r\n        if (success) {\r\n            return returndata;\r\n        } else {\r\n            // Look for revert reason and bubble it up if present\r\n            if (returndata.length > 0) {\r\n                // The easiest way to bubble the revert reason is using memory via assembly\r\n\r\n                // solhint-disable-next-line no-inline-assembly\r\n                assembly {\r\n                    let returndata_size := mload(returndata)\r\n                    revert(add(32, returndata), returndata_size)\r\n                }\r\n            } else {\r\n                revert(errorMessage);\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/token/ERC20/SafeERC20.sol@v3.3.0\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n\r\n\r\n/**\r\n * @title SafeERC20\r\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\r\n * contract returns false). Tokens that return no value (and instead revert or\r\n * throw on failure) are also supported, non-reverting calls are assumed to be\r\n * successful.\r\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\r\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\r\n */\r\nlibrary SafeERC20 {\r\n    using SafeMath for uint256;\r\n    using Address for address;\r\n\r\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\r\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\r\n    }\r\n\r\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\r\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\r\n    }\r\n\r\n    /**\r\n     * @dev Deprecated. This function has issues similar to the ones found in\r\n     * {IERC20-approve}, and its usage is discouraged.\r\n     *\r\n     * Whenever possible, use {safeIncreaseAllowance} and\r\n     * {safeDecreaseAllowance} instead.\r\n     */\r\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\r\n        // safeApprove should only be called when setting an initial allowance,\r\n        // or when resetting it to zero. To increase and decrease it, use\r\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\r\n        // solhint-disable-next-line max-line-length\r\n        require((value == 0) || (token.allowance(address(this), spender) == 0),\r\n            \"SafeERC20: approve from non-zero to non-zero allowance\"\r\n        );\r\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\r\n    }\r\n\r\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\r\n        uint256 newAllowance = token.allowance(address(this), spender).add(value);\r\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\r\n    }\r\n\r\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\r\n        uint256 newAllowance = token.allowance(address(this), spender).sub(value, \"SafeERC20: decreased allowance below zero\");\r\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\r\n    }\r\n\r\n    /**\r\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\r\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\r\n     * @param token The token targeted by the call.\r\n     * @param data The call data (encoded using abi.encode or one of its variants).\r\n     */\r\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\r\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\r\n        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\r\n        // the target address contains contract code and also asserts for success in the low-level call.\r\n\r\n        bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\r\n        if (returndata.length > 0) { // Return data is optional\r\n            // solhint-disable-next-line max-line-length\r\n            require(abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\r\n        }\r\n    }\r\n}\r\n\r\n\r\n// File contracts/lib/ExplicitERC20.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n\r\n/**\r\n * @title ExplicitERC20\r\n * @author Cook Finance\r\n *\r\n * Utility functions for ERC20 transfers that require the explicit amount to be transferred.\r\n */\r\nlibrary ExplicitERC20 {\r\n    using SafeMath for uint256;\r\n\r\n    /**\r\n     * When given allowance, transfers a token from the \"_from\" to the \"_to\" of quantity \"_quantity\".\r\n     * Ensures that the recipient has received the correct quantity (ie no fees taken on transfer)\r\n     *\r\n     * @param _token           ERC20 token to approve\r\n     * @param _from            The account to transfer tokens from\r\n     * @param _to              The account to transfer tokens to\r\n     * @param _quantity        The quantity to transfer\r\n     */\r\n    function transferFrom(\r\n        IERC20 _token,\r\n        address _from,\r\n        address _to,\r\n        uint256 _quantity\r\n    )\r\n        internal\r\n    {\r\n        // Call specified ERC20 contract to transfer tokens (via proxy).\r\n        if (_quantity > 0) {\r\n            uint256 existingBalance = _token.balanceOf(_to);\r\n\r\n            SafeERC20.safeTransferFrom(\r\n                _token,\r\n                _from,\r\n                _to,\r\n                _quantity\r\n            );\r\n\r\n            uint256 newBalance = _token.balanceOf(_to);\r\n\r\n            // Verify transfer quantity is reflected in balance\r\n            require(\r\n                newBalance == existingBalance.add(_quantity),\r\n                \"Invalid post transfer balance\"\r\n            );\r\n        }\r\n    }\r\n}\r\n\r\n\r\n// File contracts/interfaces/IModule.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title IModule\r\n * @author Cook Finance\r\n *\r\n * Interface for interacting with Modules.\r\n */\r\ninterface IModule {\r\n    /**\r\n     * Called by a CKToken to notify that this module was removed from the CK token. Any logic can be included\r\n     * in case checks need to be made or state needs to be cleared.\r\n     */\r\n    function removeModule() external;\r\n}\r\n\r\n\r\n// File contracts/lib/PreciseUnitMath.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title PreciseUnitMath\r\n * @author Cook Finance\r\n *\r\n * Arithmetic for fixed-point numbers with 18 decimals of precision. Some functions taken from\r\n * dYdX's BaseMath library.\r\n *\r\n * CHANGELOG:\r\n * - 9/21/20: Added safePower function\r\n */\r\nlibrary PreciseUnitMath {\r\n    using SafeMath for uint256;\r\n    using SignedSafeMath for int256;\r\n\r\n    // The number One in precise units.\r\n    uint256 constant internal PRECISE_UNIT = 10 ** 18;\r\n    int256 constant internal PRECISE_UNIT_INT = 10 ** 18;\r\n\r\n    // Max unsigned integer value\r\n    uint256 constant internal MAX_UINT_256 = type(uint256).max;\r\n    // Max and min signed integer value\r\n    int256 constant internal MAX_INT_256 = type(int256).max;\r\n    int256 constant internal MIN_INT_256 = type(int256).min;\r\n\r\n    /**\r\n     * @dev Getter function since constants can't be read directly from libraries.\r\n     */\r\n    function preciseUnit() internal pure returns (uint256) {\r\n        return PRECISE_UNIT;\r\n    }\r\n\r\n    /**\r\n     * @dev Getter function since constants can't be read directly from libraries.\r\n     */\r\n    function preciseUnitInt() internal pure returns (int256) {\r\n        return PRECISE_UNIT_INT;\r\n    }\r\n\r\n    /**\r\n     * @dev Getter function since constants can't be read directly from libraries.\r\n     */\r\n    function maxUint256() internal pure returns (uint256) {\r\n        return MAX_UINT_256;\r\n    }\r\n\r\n    /**\r\n     * @dev Getter function since constants can't be read directly from libraries.\r\n     */\r\n    function maxInt256() internal pure returns (int256) {\r\n        return MAX_INT_256;\r\n    }\r\n\r\n    /**\r\n     * @dev Getter function since constants can't be read directly from libraries.\r\n     */\r\n    function minInt256() internal pure returns (int256) {\r\n        return MIN_INT_256;\r\n    }\r\n\r\n    /**\r\n     * @dev Multiplies value a by value b (result is rounded down). It's assumed that the value b is the significand\r\n     * of a number with 18 decimals precision.\r\n     */\r\n    function preciseMul(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return a.mul(b).div(PRECISE_UNIT);\r\n    }\r\n\r\n    /**\r\n     * @dev Multiplies value a by value b (result is rounded towards zero). It's assumed that the value b is the\r\n     * significand of a number with 18 decimals precision.\r\n     */\r\n    function preciseMul(int256 a, int256 b) internal pure returns (int256) {\r\n        return a.mul(b).div(PRECISE_UNIT_INT);\r\n    }\r\n\r\n    /**\r\n     * @dev Multiplies value a by value b (result is rounded up). It's assumed that the value b is the significand\r\n     * of a number with 18 decimals precision.\r\n     */\r\n    function preciseMulCeil(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        if (a == 0 || b == 0) {\r\n            return 0;\r\n        }\r\n        return a.mul(b).sub(1).div(PRECISE_UNIT).add(1);\r\n    }\r\n\r\n    /**\r\n     * @dev Divides value a by value b (result is rounded down).\r\n     */\r\n    function preciseDiv(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return a.mul(PRECISE_UNIT).div(b);\r\n    }\r\n\r\n\r\n    /**\r\n     * @dev Divides value a by value b (result is rounded towards 0).\r\n     */\r\n    function preciseDiv(int256 a, int256 b) internal pure returns (int256) {\r\n        return a.mul(PRECISE_UNIT_INT).div(b);\r\n    }\r\n\r\n    /**\r\n     * @dev Divides value a by value b (result is rounded up or away from 0).\r\n     */\r\n    function preciseDivCeil(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        require(b != 0, \"Cant divide by 0\");\r\n\r\n        return a > 0 ? a.mul(PRECISE_UNIT).sub(1).div(b).add(1) : 0;\r\n    }\r\n\r\n    /**\r\n     * @dev Divides value a by value b (result is rounded down - positive numbers toward 0 and negative away from 0).\r\n     */\r\n    function divDown(int256 a, int256 b) internal pure returns (int256) {\r\n        require(b != 0, \"Cant divide by 0\");\r\n        require(a != MIN_INT_256 || b != -1, \"Invalid input\");\r\n\r\n        int256 result = a.div(b);\r\n        if (a ^ b < 0 && a % b != 0) {\r\n            result -= 1;\r\n        }\r\n\r\n        return result;\r\n    }\r\n\r\n    /**\r\n     * @dev Multiplies value a by value b where rounding is towards the lesser number.\r\n     * (positive values are rounded towards zero and negative values are rounded away from 0).\r\n     */\r\n    function conservativePreciseMul(int256 a, int256 b) internal pure returns (int256) {\r\n        return divDown(a.mul(b), PRECISE_UNIT_INT);\r\n    }\r\n\r\n    /**\r\n     * @dev Divides value a by value b where rounding is towards the lesser number.\r\n     * (positive values are rounded towards zero and negative values are rounded away from 0).\r\n     */\r\n    function conservativePreciseDiv(int256 a, int256 b) internal pure returns (int256) {\r\n        return divDown(a.mul(PRECISE_UNIT_INT), b);\r\n    }\r\n\r\n    /**\r\n    * @dev Performs the power on a specified value, reverts on overflow.\r\n    */\r\n    function safePower(\r\n        uint256 a,\r\n        uint256 pow\r\n    )\r\n        internal\r\n        pure\r\n        returns (uint256)\r\n    {\r\n        require(a > 0, \"Value must be positive\");\r\n\r\n        uint256 result = 1;\r\n        for (uint256 i = 0; i < pow; i++){\r\n            uint256 previousResult = result;\r\n\r\n            // Using safemath multiplication prevents overflows\r\n            result = previousResult.mul(a);\r\n        }\r\n\r\n        return result;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns true if a =~ b within range, false otherwise.\r\n     */\r\n    function approximatelyEquals(uint256 a, uint256 b, uint256 range) internal pure returns (bool) {\r\n        return a <= b.add(range) && a >= b.sub(range);\r\n    }\r\n}\r\n\r\n\r\n// File contracts/protocol/lib/Position.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title Position\r\n * @author Cook Finance\r\n *\r\n * Collection of helper functions for handling and updating CKToken Positions\r\n *\r\n * CHANGELOG:\r\n *  - Updated editExternalPosition to work when no external position is associated with module\r\n */\r\nlibrary Position {\r\n    using SafeCast for uint256;\r\n    using SafeMath for uint256;\r\n    using SafeCast for int256;\r\n    using SignedSafeMath for int256;\r\n    using PreciseUnitMath for uint256;\r\n\r\n    /* ============ Helper ============ */\r\n\r\n    /**\r\n     * Returns whether the CKToken has a default position for a given component (if the real unit is > 0)\r\n     */\r\n    function hasDefaultPosition(ICKToken _ckToken, address _component) internal view returns(bool) {\r\n        return _ckToken.getDefaultPositionRealUnit(_component) > 0;\r\n    }\r\n\r\n    /**\r\n     * Returns whether the CKToken has an external position for a given component (if # of position modules is > 0)\r\n     */\r\n    function hasExternalPosition(ICKToken _ckToken, address _component) internal view returns(bool) {\r\n        return _ckToken.getExternalPositionModules(_component).length > 0;\r\n    }\r\n    \r\n    /**\r\n     * Returns whether the CKToken component default position real unit is greater than or equal to units passed in.\r\n     */\r\n    function hasSufficientDefaultUnits(ICKToken _ckToken, address _component, uint256 _unit) internal view returns(bool) {\r\n        return _ckToken.getDefaultPositionRealUnit(_component) >= _unit.toInt256();\r\n    }\r\n\r\n    /**\r\n     * Returns whether the CKToken component external position is greater than or equal to the real units passed in.\r\n     */\r\n    function hasSufficientExternalUnits(\r\n        ICKToken _ckToken,\r\n        address _component,\r\n        address _positionModule,\r\n        uint256 _unit\r\n    )\r\n        internal\r\n        view\r\n        returns(bool)\r\n    {\r\n       return _ckToken.getExternalPositionRealUnit(_component, _positionModule) >= _unit.toInt256();    \r\n    }\r\n\r\n    /**\r\n     * If the position does not exist, create a new Position and add to the CKToken. If it already exists,\r\n     * then set the position units. If the new units is 0, remove the position. Handles adding/removing of \r\n     * components where needed (in light of potential external positions).\r\n     *\r\n     * @param _ckToken           Address of CKToken being modified\r\n     * @param _component          Address of the component\r\n     * @param _newUnit            Quantity of Position units - must be >= 0\r\n     */\r\n    function editDefaultPosition(ICKToken _ckToken, address _component, uint256 _newUnit) internal {\r\n        bool isPositionFound = hasDefaultPosition(_ckToken, _component);\r\n        if (!isPositionFound && _newUnit > 0) {\r\n            // If there is no Default Position and no External Modules, then component does not exist\r\n            if (!hasExternalPosition(_ckToken, _component)) {\r\n                _ckToken.addComponent(_component);\r\n            }\r\n        } else if (isPositionFound && _newUnit == 0) {\r\n            // If there is a Default Position and no external positions, remove the component\r\n            if (!hasExternalPosition(_ckToken, _component)) {\r\n                _ckToken.removeComponent(_component);\r\n            }\r\n        }\r\n\r\n        _ckToken.editDefaultPositionUnit(_component, _newUnit.toInt256());\r\n    }\r\n\r\n    /**\r\n     * Update an external position and remove and external positions or components if necessary. The logic flows as follows:\r\n     * 1) If component is not already added then add component and external position. \r\n     * 2) If component is added but no existing external position using the passed module exists then add the external position.\r\n     * 3) If the existing position is being added to then just update the unit and data\r\n     * 4) If the position is being closed and no other external positions or default positions are associated with the component\r\n     *    then untrack the component and remove external position.\r\n     * 5) If the position is being closed and other existing positions still exist for the component then just remove the\r\n     *    external position.\r\n     *\r\n     * @param _ckToken         CKToken being updated\r\n     * @param _component        Component position being updated\r\n     * @param _module           Module external position is associated with\r\n     * @param _newUnit          Position units of new external position\r\n     * @param _data             Arbitrary data associated with the position\r\n     */\r\n    function editExternalPosition(\r\n        ICKToken _ckToken,\r\n        address _component,\r\n        address _module,\r\n        int256 _newUnit,\r\n        bytes memory _data\r\n    )\r\n        internal\r\n    {\r\n        if (_newUnit != 0) {\r\n            if (!_ckToken.isComponent(_component)) {\r\n                _ckToken.addComponent(_component);\r\n                _ckToken.addExternalPositionModule(_component, _module);\r\n            } else if (!_ckToken.isExternalPositionModule(_component, _module)) {\r\n                _ckToken.addExternalPositionModule(_component, _module);\r\n            }\r\n            _ckToken.editExternalPositionUnit(_component, _module, _newUnit);\r\n            _ckToken.editExternalPositionData(_component, _module, _data);\r\n        } else {\r\n            require(_data.length == 0, \"Passed data must be null\");\r\n            // If no default or external position remaining then remove component from components array\r\n            if (_ckToken.getExternalPositionRealUnit(_component, _module) != 0) {\r\n                address[] memory positionModules = _ckToken.getExternalPositionModules(_component);\r\n                if (_ckToken.getDefaultPositionRealUnit(_component) == 0 && positionModules.length == 1) {\r\n                    require(positionModules[0] == _module, \"External positions must be 0 to remove component\");\r\n                    _ckToken.removeComponent(_component);\r\n                }\r\n                _ckToken.removeExternalPositionModule(_component, _module);\r\n            }\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Get total notional amount of Default position\r\n     *\r\n     * @param _ckTokenSupply     Supply of CKToken in precise units (10^18)\r\n     * @param _positionUnit       Quantity of Position units\r\n     *\r\n     * @return                    Total notional amount of units\r\n     */\r\n    function getDefaultTotalNotional(uint256 _ckTokenSupply, uint256 _positionUnit) internal pure returns (uint256) {\r\n        return _ckTokenSupply.preciseMul(_positionUnit);\r\n    }\r\n\r\n    /**\r\n     * Get position unit from total notional amount\r\n     *\r\n     * @param _ckTokenSupply     Supply of CKToken in precise units (10^18)\r\n     * @param _totalNotional      Total notional amount of component prior to\r\n     * @return                    Default position unit\r\n     */\r\n    function getDefaultPositionUnit(uint256 _ckTokenSupply, uint256 _totalNotional) internal pure returns (uint256) {\r\n        return _totalNotional.preciseDiv(_ckTokenSupply);\r\n    }\r\n\r\n    /**\r\n     * Get the total tracked balance - total supply * position unit\r\n     *\r\n     * @param _ckToken           Address of the CKToken\r\n     * @param _component          Address of the component\r\n     * @return                    Notional tracked balance\r\n     */\r\n    function getDefaultTrackedBalance(ICKToken _ckToken, address _component) internal view returns(uint256) {\r\n        int256 positionUnit = _ckToken.getDefaultPositionRealUnit(_component); \r\n        return _ckToken.totalSupply().preciseMul(positionUnit.toUint256());\r\n    }\r\n\r\n    /**\r\n     * Calculates the new default position unit and performs the edit with the new unit\r\n     *\r\n     * @param _ckToken                 Address of the CKToken\r\n     * @param _component                Address of the component\r\n     * @param _ckTotalSupply           Current CKToken supply\r\n     * @param _componentPreviousBalance Pre-action component balance\r\n     * @return                          Current component balance\r\n     * @return                          Previous position unit\r\n     * @return                          New position unit\r\n     */\r\n    function calculateAndEditDefaultPosition(\r\n        ICKToken _ckToken,\r\n        address _component,\r\n        uint256 _ckTotalSupply,\r\n        uint256 _componentPreviousBalance\r\n    )\r\n        internal\r\n        returns(uint256, uint256, uint256)\r\n    {\r\n        uint256 currentBalance = IERC20(_component).balanceOf(address(_ckToken));\r\n        uint256 positionUnit = _ckToken.getDefaultPositionRealUnit(_component).toUint256();\r\n\r\n        uint256 newTokenUnit;\r\n        if (currentBalance > 0) {\r\n            newTokenUnit = calculateDefaultEditPositionUnit(\r\n                _ckTotalSupply,\r\n                _componentPreviousBalance,\r\n                currentBalance,\r\n                positionUnit\r\n            );\r\n        } else {\r\n            newTokenUnit = 0;\r\n        }\r\n\r\n        editDefaultPosition(_ckToken, _component, newTokenUnit);\r\n\r\n        return (currentBalance, positionUnit, newTokenUnit);\r\n    }\r\n\r\n    /**\r\n     * Calculate the new position unit given total notional values pre and post executing an action that changes CKToken state\r\n     * The intention is to make updates to the units without accidentally picking up airdropped assets as well.\r\n     *\r\n     * @param _ckTokenSupply     Supply of CKToken in precise units (10^18)\r\n     * @param _preTotalNotional   Total notional amount of component prior to executing action\r\n     * @param _postTotalNotional  Total notional amount of component after the executing action\r\n     * @param _prePositionUnit    Position unit of CKToken prior to executing action\r\n     * @return                    New position unit\r\n     */\r\n    function calculateDefaultEditPositionUnit(\r\n        uint256 _ckTokenSupply,\r\n        uint256 _preTotalNotional,\r\n        uint256 _postTotalNotional,\r\n        uint256 _prePositionUnit\r\n    )\r\n        internal\r\n        pure\r\n        returns (uint256)\r\n    {\r\n        // If pre action total notional amount is greater then subtract post action total notional and calculate new position units\r\n        uint256 airdroppedAmount = _preTotalNotional.sub(_prePositionUnit.preciseMul(_ckTokenSupply));\r\n        return _postTotalNotional.sub(airdroppedAmount).preciseDiv(_ckTokenSupply);\r\n    }\r\n}\r\n\r\n\r\n// File contracts/interfaces/IIntegrationRegistry.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\ninterface IIntegrationRegistry {\r\n    function addIntegration(address _module, string memory _id, address _wrapper) external;\r\n    function getIntegrationAdapter(address _module, string memory _id) external view returns(address);\r\n    function getIntegrationAdapterWithHash(address _module, bytes32 _id) external view returns(address);\r\n    function isValidIntegration(address _module, string memory _id) external view returns(bool);\r\n}\r\n\r\n\r\n// File contracts/interfaces/IPriceOracle.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\n/**\r\n * @title IPriceOracle\r\n * @author Cook Finance\r\n *\r\n * Interface for interacting with PriceOracle\r\n */\r\ninterface IPriceOracle {\r\n\r\n    /* ============ Functions ============ */\r\n\r\n    function getPrice(address _assetOne, address _assetTwo) external view returns (uint256);\r\n    function masterQuoteAsset() external view returns (address);\r\n}\r\n\r\n\r\n// File contracts/interfaces/ICKValuer.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\ninterface ICKValuer {\r\n    function calculateCKTokenValuation(ICKToken _ckToken, address _quoteAsset) external view returns (uint256);\r\n}\r\n\r\n\r\n// File contracts/protocol/lib/ResourceIdentifier.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n\r\n\r\n/**\r\n * @title ResourceIdentifier\r\n * @author Cook Finance\r\n *\r\n * A collection of utility functions to fetch information related to Resource contracts in the system\r\n */\r\nlibrary ResourceIdentifier {\r\n\r\n    // IntegrationRegistry will always be resource ID 0 in the system\r\n    uint256 constant internal INTEGRATION_REGISTRY_RESOURCE_ID = 0;\r\n    // PriceOracle will always be resource ID 1 in the system\r\n    uint256 constant internal PRICE_ORACLE_RESOURCE_ID = 1;\r\n    // CKValuer resource will always be resource ID 2 in the system\r\n    uint256 constant internal CK_VALUER_RESOURCE_ID = 2;\r\n\r\n    /* ============ Internal ============ */\r\n\r\n    /**\r\n     * Gets the instance of integration registry stored on Controller. Note: IntegrationRegistry is stored as index 0 on\r\n     * the Controller\r\n     */\r\n    function getIntegrationRegistry(IController _controller) internal view returns (IIntegrationRegistry) {\r\n        return IIntegrationRegistry(_controller.resourceId(INTEGRATION_REGISTRY_RESOURCE_ID));\r\n    }\r\n\r\n    /**\r\n     * Gets instance of price oracle on Controller. Note: PriceOracle is stored as index 1 on the Controller\r\n     */\r\n    function getPriceOracle(IController _controller) internal view returns (IPriceOracle) {\r\n        return IPriceOracle(_controller.resourceId(PRICE_ORACLE_RESOURCE_ID));\r\n    }\r\n\r\n    /**\r\n     * Gets the instance of CK valuer on Controller. Note: CKValuer is stored as index 2 on the Controller\r\n     */\r\n    function getCKValuer(IController _controller) internal view returns (ICKValuer) {\r\n        return ICKValuer(_controller.resourceId(CK_VALUER_RESOURCE_ID));\r\n    }\r\n}\r\n\r\n\r\n// File contracts/protocol/lib/ModuleBase.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @title ModuleBase\r\n * @author Cook Finance\r\n *\r\n * Abstract class that houses common Module-related state and functions.\r\n */\r\nabstract contract ModuleBase is IModule {\r\n    using AddressArrayUtils for address[];\r\n    using Invoke for ICKToken;\r\n    using Position for ICKToken;\r\n    using PreciseUnitMath for uint256;\r\n    using ResourceIdentifier for IController;\r\n    using SafeCast for int256;\r\n    using SafeCast for uint256;\r\n    using SafeMath for uint256;\r\n    using SignedSafeMath for int256;\r\n\r\n    /* ============ State Variables ============ */\r\n\r\n    // Address of the controller\r\n    IController public controller;\r\n\r\n    /* ============ Modifiers ============ */\r\n\r\n    modifier onlyManagerAndValidCK(ICKToken _ckToken) { \r\n        _validateOnlyManagerAndValidCK(_ckToken);\r\n        _;\r\n    }\r\n\r\n    modifier onlyCKManager(ICKToken _ckToken, address _caller) {\r\n        _validateOnlyCKManager(_ckToken, _caller);\r\n        _;\r\n    }\r\n\r\n    modifier onlyValidAndInitializedCK(ICKToken _ckToken) {\r\n        _validateOnlyValidAndInitializedCK(_ckToken);\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * Throws if the sender is not a CKToken's module or module not enabled\r\n     */\r\n    modifier onlyModule(ICKToken _ckToken) {\r\n        _validateOnlyModule(_ckToken);\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * Utilized during module initializations to check that the module is in pending state\r\n     * and that the CKToken is valid\r\n     */\r\n    modifier onlyValidAndPendingCK(ICKToken _ckToken) {\r\n        _validateOnlyValidAndPendingCK(_ckToken);\r\n        _;\r\n    }\r\n\r\n    /* ============ Constructor ============ */\r\n\r\n    /**\r\n     * Set state variables and map asset pairs to their oracles\r\n     *\r\n     * @param _controller             Address of controller contract\r\n     */\r\n    constructor(IController _controller) public {\r\n        controller = _controller;\r\n    }\r\n\r\n    /* ============ Internal Functions ============ */\r\n\r\n    /**\r\n     * Transfers tokens from an address (that has set allowance on the module).\r\n     *\r\n     * @param  _token          The address of the ERC20 token\r\n     * @param  _from           The address to transfer from\r\n     * @param  _to             The address to transfer to\r\n     * @param  _quantity       The number of tokens to transfer\r\n     */\r\n    function transferFrom(IERC20 _token, address _from, address _to, uint256 _quantity) internal {\r\n        ExplicitERC20.transferFrom(_token, _from, _to, _quantity);\r\n    }\r\n\r\n    /**\r\n     * Gets the integration for the module with the passed in name. Validates that the address is not empty\r\n     */\r\n    function getAndValidateAdapter(string memory _integrationName) internal view returns(address) { \r\n        bytes32 integrationHash = getNameHash(_integrationName);\r\n        return getAndValidateAdapterWithHash(integrationHash);\r\n    }\r\n\r\n    /**\r\n     * Gets the integration for the module with the passed in hash. Validates that the address is not empty\r\n     */\r\n    function getAndValidateAdapterWithHash(bytes32 _integrationHash) internal view returns(address) { \r\n        address adapter = controller.getIntegrationRegistry().getIntegrationAdapterWithHash(\r\n            address(this),\r\n            _integrationHash\r\n        );\r\n\r\n        require(adapter != address(0), \"Must be valid adapter\"); \r\n        return adapter;\r\n    }\r\n\r\n    /**\r\n     * Gets the total fee for this module of the passed in index (fee % * quantity)\r\n     */\r\n    function getModuleFee(uint256 _feeIndex, uint256 _quantity) internal view returns(uint256) {\r\n        uint256 feePercentage = controller.getModuleFee(address(this), _feeIndex);\r\n        return _quantity.preciseMul(feePercentage);\r\n    }\r\n\r\n    /**\r\n     * Pays the _feeQuantity from the _ckToken denominated in _token to the protocol fee recipient\r\n     */\r\n    function payProtocolFeeFromCKToken(ICKToken _ckToken, address _token, uint256 _feeQuantity) internal {\r\n        if (_feeQuantity > 0) {\r\n            _ckToken.strictInvokeTransfer(_token, controller.feeRecipient(), _feeQuantity); \r\n        }\r\n    }\r\n\r\n    /**\r\n     * Returns true if the module is in process of initialization on the CKToken\r\n     */\r\n    function isCKPendingInitialization(ICKToken _ckToken) internal view returns(bool) {\r\n        return _ckToken.isPendingModule(address(this));\r\n    }\r\n\r\n    /**\r\n     * Returns true if the address is the CKToken's manager\r\n     */\r\n    function isCKManager(ICKToken _ckToken, address _toCheck) internal view returns(bool) {\r\n        return _ckToken.manager() == _toCheck;\r\n    }\r\n\r\n    /**\r\n     * Returns true if CKToken must be enabled on the controller \r\n     * and module is registered on the CKToken\r\n     */\r\n    function isCKValidAndInitialized(ICKToken _ckToken) internal view returns(bool) {\r\n        return controller.isCK(address(_ckToken)) &&\r\n            _ckToken.isInitializedModule(address(this));\r\n    }\r\n\r\n    /**\r\n     * Hashes the string and returns a bytes32 value\r\n     */\r\n    function getNameHash(string memory _name) internal pure returns(bytes32) {\r\n        return keccak256(bytes(_name));\r\n    }\r\n\r\n    /* ============== Modifier Helpers ===============\r\n     * Internal functions used to reduce bytecode size\r\n     */\r\n\r\n    /**\r\n     * Caller must CKToken manager and CKToken must be valid and initialized\r\n     */\r\n    function _validateOnlyManagerAndValidCK(ICKToken _ckToken) internal view {\r\n       require(isCKManager(_ckToken, msg.sender), \"Must be the CKToken manager\");\r\n       require(isCKValidAndInitialized(_ckToken), \"Must be a valid and initialized CKToken\");\r\n    }\r\n\r\n    /**\r\n     * Caller must CKToken manager\r\n     */\r\n    function _validateOnlyCKManager(ICKToken _ckToken, address _caller) internal view {\r\n        require(isCKManager(_ckToken, _caller), \"Must be the CKToken manager\");\r\n    }\r\n\r\n    /**\r\n     * CKToken must be valid and initialized\r\n     */\r\n    function _validateOnlyValidAndInitializedCK(ICKToken _ckToken) internal view {\r\n        require(isCKValidAndInitialized(_ckToken), \"Must be a valid and initialized CKToken\");\r\n    }\r\n\r\n    /**\r\n     * Caller must be initialized module and module must be enabled on the controller\r\n     */\r\n    function _validateOnlyModule(ICKToken _ckToken) internal view {\r\n        require(\r\n            _ckToken.moduleStates(msg.sender) == ICKToken.ModuleState.INITIALIZED,\r\n            \"Only the module can call\"\r\n        );\r\n\r\n        require(\r\n            controller.isModule(msg.sender),\r\n            \"Module must be enabled on controller\"\r\n        );\r\n    }\r\n\r\n    /**\r\n     * CKToken must be in a pending state and module must be in pending state\r\n     */\r\n    function _validateOnlyValidAndPendingCK(ICKToken _ckToken) internal view {\r\n        require(controller.isCK(address(_ckToken)), \"Must be controller-enabled CKToken\");\r\n        require(isCKPendingInitialization(_ckToken), \"Must be pending initialization\");\r\n    }\r\n}\r\n\r\n\r\n// File contracts/interfaces/IExchangeAdapter.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\ninterface IExchangeAdapter {\r\n    function getSpender() external view returns(address);\r\n    function getTradeCalldata(\r\n        address _fromToken,\r\n        address _toToken,\r\n        address _toAddress,\r\n        uint256 _fromQuantity,\r\n        uint256 _minToQuantity,\r\n        bytes memory _data\r\n    )\r\n        external\r\n        view\r\n        returns (address, uint256, bytes memory);\r\n    function getMinAmountsOut(uint256 amountIn, address[] memory path) external view returns (uint256[] memory amounts);\r\n    function getMaxAmountsIn(uint256 amountOut, address[] memory path) external view returns (uint256[] memory amounts);\r\n    function generateDataParam(address[] memory path, bool _isSendTokenFixed) external pure returns (bytes memory);\r\n}\r\n\r\n\r\n// File contracts/interfaces/external/IYieldYakStrategyV2.sol\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title Yield Yak Strategy2 Interface\r\n */\r\ninterface IYieldYakStrategyV2 {\r\n\r\n    // function depositToken() external view returns (IERC20);\r\n    // function rewardToken() external view returns (address);\r\n    // function devAddr() external view returns (address);\r\n\r\n    // function MIN_TOKENS_TO_REINVEST() external view returns (uint);\r\n    // function MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST() external view returns (uint);\r\n    // function DEPOSITS_ENABLED() external view returns (bool);\r\n\r\n    // function REINVEST_REWARD_BIPS() external view returns (uint);\r\n    // function ADMIN_FEE_BIPS() external view returns (uint);\r\n    // function DEV_FEE_BIPS() external view returns (uint);\r\n\r\n    // function BIPS_DIVISOR() external view returns (uint);\r\n    // function MAX_UINT() external view returns (uint);\r\n\r\n    function deposit(uint amount) external;\r\n    function withdraw(uint amount) external; \r\n    function getSharesForDepositTokens(uint amount) external view returns (uint);\r\n    function getDepositTokensForShares(uint amount) external view returns (uint);\r\n}\r\n\r\n\r\n// File contracts/protocol/modules/IssuanceModuleV2.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title IssuanceModule\r\n * @author Cook Finance\r\n *\r\n * The IssuanceModule is a module that enables users to issue and redeem CKTokens that contain default and \r\n * non-debt external Positions. Managers are able to set an external contract hook that is called before an\r\n * issuance is called.\r\n */\r\ncontract IssuanceModuleV2 is Ownable, ModuleBase, ReentrancyGuard {\r\n    using AddressArrayUtils for address[];\r\n    using Invoke for ICKToken;\r\n    using Position for ICKToken;\r\n    using Position for uint256;\r\n    using PreciseUnitMath for uint256;\r\n    using ResourceIdentifier for IController;\r\n    using SafeMath for uint256;\r\n    using SafeCast for int256;\r\n    using SignedSafeMath for int256;\r\n\r\n    /* ============ Struct ============ */\r\n    struct WrapExecutionParams {\r\n        string wrapAdapterName;     // Wrap adapter name\r\n        address underlyingToken;    // Underlying token address of the wrapped token, ex. WETH is the underlying token of the aETH. This will be passed to wrap adapter to get wrap/unwrap call data\r\n    }\r\n\r\n    struct TradeInfo {\r\n        ICKToken ckToken;                               // Instance of CKToken\r\n        IExchangeAdapter exchangeAdapter;               // Instance of exchange adapter contract\r\n        address sendToken;                              // Address of token being sold\r\n        address receiveToken;                           // Address of token being bought\r\n        uint256 totalSendQuantity;                      // Total quantity of sold token\r\n        uint256 totalReceiveQuantity;                   // Total quantity of token to receive back\r\n        uint256 preTradeSendTokenBalance;               // Total initial balance of token being sold\r\n        uint256 preTradeReceiveTokenBalance;            // Total initial balance of token being bought\r\n        bytes data;                                     // Arbitrary data\r\n    }\r\n\r\n    /* ============ Events ============ */\r\n\r\n    event CKTokenIssued(address indexed _ckToken, address _issuer, address _to, address _hookContract, uint256 _ckMintQuantity, uint256 _issuedTokenReturned);\r\n    event CKTokenRedeemed(address indexed _ckToken, address _redeemer, address _to, uint256 _quantity);\r\n    event AssetExchangeExecutionParamUpdated(address indexed _component, string _newExchangeName);\r\n    event AssetWrapExecutionParamUpdated(address indexed _component, string _newWrapAdapterName, address _newUnderlyingToken);\r\n    event ComponentExchanged(\r\n        ICKToken indexed _ckToken,\r\n        address indexed _sendToken,\r\n        address indexed _receiveToken,\r\n        IExchangeAdapter _exchangeAdapter,\r\n        uint256 _totalSendAmount,\r\n        uint256 _totalReceiveAmount\r\n    );\r\n    event ComponentWrapped(\r\n        ICKToken indexed _ckToken,\r\n        address indexed _underlyingToken,\r\n        address indexed _wrappedToken,\r\n        uint256 _underlyingQuantity,\r\n        uint256 _wrappedQuantity,\r\n        string _integrationName\r\n    );\r\n    event ComponentUnwrapped(\r\n        ICKToken indexed _ckToken,\r\n        address indexed _underlyingToken,\r\n        address indexed _wrappedToken,\r\n        uint256 _underlyingQuantity,\r\n        uint256 _wrappedQuantity,\r\n        string _integrationName\r\n    );\r\n\r\n    /* ============ State Variables ============ */\r\n\r\n    // Mapping of CKToken to Issuance hook configurations\r\n    mapping(ICKToken => IManagerIssuanceHook) public managerIssuanceHook;\r\n    // Mapping of asset to exchange execution parameters\r\n    mapping(IERC20 => string) public exchangeInfo;\r\n    // Mapping of asset to wrap execution parameters\r\n    mapping(IERC20 => WrapExecutionParams) public wrapInfo;\r\n    // Wrapped ETH address\r\n    IWETH public immutable weth;\r\n\r\n    /* ============ Constructor ============ */\r\n\r\n    /**\r\n     * Set state controller state variable\r\n     */\r\n    constructor(IController _controller, IWETH _weth) public ModuleBase(_controller) {\r\n        weth = _weth;\r\n    }\r\n\r\n    /* ============ External Functions ============ */\r\n\r\n    /**\r\n     * Issue ckToken with a specified amount of Eth. \r\n     *\r\n     * @param _ckToken              Instance of the CKToken contract\r\n     * @param _minCkTokenRec        The minimum amount of CKToken to receive\r\n     * @param _midTokens            The mid tokens in swap route\r\n     * @param _weightings           Eth distribution for each component\r\n     * @param _to                   Address to mint CKToken to\r\n     * @param _returnDust           If to return left components\r\n     */\r\n    function issueWithEther2 (\r\n        ICKToken _ckToken,\r\n        uint256 _minCkTokenRec,\r\n        address[] memory _midTokens,\r\n        uint256[] memory _weightings,\r\n        address _to,\r\n        bool _returnDust\r\n    )         \r\n        external\r\n        payable\r\n        nonReentrant\r\n        onlyValidAndInitializedCK(_ckToken) \r\n    {\r\n        require(msg.value > 0, \"Issue ether quantity must be > 0\");\r\n        weth.deposit{ value: msg.value }();\r\n        // Transfer the specified weth to ckToken\r\n        transferFrom(\r\n            weth,\r\n            address(this),\r\n            address(_ckToken),\r\n            msg.value\r\n        );\r\n        uint256 issueTokenRemain = _issueWithSingleToken2(_ckToken, address(weth), msg.value, _minCkTokenRec, _midTokens, _weightings, _to, _returnDust);\r\n        // transfer the remaining weth to issuer\r\n        _ckToken.strictInvokeTransfer(\r\n            address(weth),\r\n            msg.sender,\r\n            issueTokenRemain\r\n        );\r\n    }\r\n\r\n    /**\r\n     * Issue ckToken with a specified amount of a single asset with specification\r\n     *\r\n     * @param _ckToken              Instance of the CKToken contract\r\n     * @param _issueToken           token used to issue with\r\n     * @param _issueTokenQuantity   amount of issue tokens\r\n     * @param _minCkTokenRec        The minimum amount of CKToken to receive\r\n     * @param _midTokens            The mid tokens in swap route\r\n     * @param _weightings           Eth distribution for each component\r\n     * @param _to                   Address to mint CKToken to\r\n     * @param _returnDust           If to return left components\r\n     */\r\n    function issueWithSingleToken2 (\r\n        ICKToken _ckToken,\r\n        address _issueToken,\r\n        uint256 _issueTokenQuantity,\r\n        uint256 _minCkTokenRec,\r\n        address[] memory _midTokens,\r\n        uint256[] memory _weightings,  // percentage in 18 decimals and order should follow ckComponents get from a ck token\r\n        address _to,\r\n        bool _returnDust\r\n    )   \r\n        external\r\n        nonReentrant\r\n        onlyValidAndInitializedCK(_ckToken) \r\n    {\r\n        require(_issueTokenQuantity > 0, \"Issue token quantity must be > 0\");\r\n        // Transfer the specified issue token to ckToken\r\n        transferFrom(\r\n            IERC20(_issueToken),\r\n            msg.sender,\r\n            address(_ckToken),\r\n            _issueTokenQuantity\r\n        );        \r\n        \r\n        uint256 issueTokenRemain = _issueWithSingleToken2(_ckToken, _issueToken, _issueTokenQuantity, _minCkTokenRec, _midTokens, _weightings, _to, _returnDust);\r\n        // transfer the remaining weth to issuer\r\n        _ckToken.strictInvokeTransfer(\r\n            address(_issueToken),\r\n            msg.sender,\r\n            issueTokenRemain\r\n        );\r\n        \r\n    }\r\n\r\n    /**\r\n     * Burns a user's CKToken of specified quantity, unwinds external positions, and exchange components\r\n     * to the specified token and return to the specified address. Does not work for debt/negative external positions.\r\n     *\r\n     * @param _ckToken             Instance of the CKToken contract\r\n     * @param _ckTokenQuantity     Quantity of the CKToken to redeem\r\n     * @param _redeemToken         Address of redeem token\r\n     * @param _midTokens           The mid tokens in swap route\r\n     * @param _to                  Address to redeem CKToken to\r\n     * @param _minRedeemTokenToRec Minimum redeem to to receive\r\n     */\r\n    function redeemToSingleToken(\r\n        ICKToken _ckToken,\r\n        uint256 _ckTokenQuantity,\r\n        address _redeemToken,\r\n        address[] memory _midTokens,\r\n        address _to,\r\n        uint256 _minRedeemTokenToRec\r\n    )\r\n        external\r\n        nonReentrant\r\n        onlyValidAndInitializedCK(_ckToken)\r\n    {\r\n        require(_ckTokenQuantity > 0, \"Redeem quantity must be > 0\");\r\n        _ckToken.burn(msg.sender, _ckTokenQuantity);\r\n\r\n        (\r\n            address[] memory components,\r\n            uint256[] memory componentQuantities\r\n        ) = getRequiredComponentIssuanceUnits(_ckToken, _ckTokenQuantity, false);\r\n        uint256 totalRedeemTokenAcquired = 0;\r\n        require(_midTokens.length == components.length, \"_midTokens length mismatch\");\r\n        for (uint256 i = 0; i < components.length; i++) {\r\n            _executeExternalPositionHooks(_ckToken, _ckTokenQuantity, IERC20(components[i]), false);\r\n            uint256 redeemTokenAcquired = _exchangeDefaultPositionsToRedeemToken(_ckToken, _redeemToken, _midTokens[i], components[i], componentQuantities[i]);\r\n            totalRedeemTokenAcquired = totalRedeemTokenAcquired.add(redeemTokenAcquired);\r\n        }\r\n\r\n        require(totalRedeemTokenAcquired >= _minRedeemTokenToRec, \"_minRedeemTokenToRec not met\");\r\n\r\n        _ckToken.strictInvokeTransfer(\r\n            _redeemToken,\r\n            _to,\r\n            totalRedeemTokenAcquired\r\n        );\r\n\r\n        emit CKTokenRedeemed(address(_ckToken), msg.sender, _to, _ckTokenQuantity);\r\n    }\r\n\r\n    /**\r\n     * Initializes this module to the CKToken with issuance-related hooks. Only callable by the CKToken's manager.\r\n     * Hook addresses are optional. Address(0) means that no hook will be called\r\n     *\r\n     * @param _ckToken             Instance of the CKToken to issue\r\n     * @param _preIssueHook         Instance of the Manager Contract with the Pre-Issuance Hook function\r\n     */\r\n    function initialize(\r\n        ICKToken _ckToken,\r\n        IManagerIssuanceHook _preIssueHook\r\n    )\r\n        external\r\n        onlyCKManager(_ckToken, msg.sender)\r\n        onlyValidAndPendingCK(_ckToken)\r\n    {\r\n        managerIssuanceHook[_ckToken] = _preIssueHook;\r\n\r\n        _ckToken.initializeModule();\r\n    }\r\n\r\n    /**\r\n     * Removes this module from the CKToken, via call by the CKToken. Left with empty logic\r\n     * here because there are no check needed to verify removal.\r\n     */\r\n    function removeModule() external override {}\r\n\r\n    /**\r\n     * OWNER ONLY: Set exchange for passed components of the CKToken. Can be called at anytime.\r\n     *\r\n     * @param _components           Array of components\r\n     * @param _exchangeNames        Array of exchange names mapping to correct component\r\n     */\r\n    function setExchanges(\r\n        address[] memory _components,\r\n        string[] memory _exchangeNames\r\n    )\r\n        external\r\n        onlyOwner\r\n    {\r\n        _components.validatePairsWithArray(_exchangeNames);\r\n\r\n        for (uint256 i = 0; i < _components.length; i++) {\r\n            require(\r\n                controller.getIntegrationRegistry().isValidIntegration(address(this), _exchangeNames[i]),\r\n                \"Unrecognized exchange name\"\r\n            );\r\n\r\n            exchangeInfo[IERC20(_components[i])] = _exchangeNames[i];\r\n            emit AssetExchangeExecutionParamUpdated(_components[i], _exchangeNames[i]);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * OWNER ONLY: Set wrap adapters for passed components of the CKToken. Can be called at anytime.\r\n     *\r\n     * @param _components           Array of components\r\n     * @param _wrapAdapterNames     Array of wrap adapter names mapping to correct component\r\n     * @param _underlyingTokens     Array of underlying tokens mapping to correct component\r\n     */\r\n    function setWrapAdapters(\r\n        address[] memory _components,\r\n        string[] memory _wrapAdapterNames,\r\n        address[] memory _underlyingTokens\r\n    )\r\n    external\r\n    onlyOwner\r\n    {\r\n        _components.validatePairsWithArray(_wrapAdapterNames);\r\n        _components.validatePairsWithArray(_underlyingTokens);\r\n\r\n        for (uint256 i = 0; i < _components.length; i++) {\r\n            require(\r\n                controller.getIntegrationRegistry().isValidIntegration(address(this), _wrapAdapterNames[i]),\r\n                \"Unrecognized wrap adapter name\"\r\n            );\r\n\r\n            wrapInfo[IERC20(_components[i])].wrapAdapterName = _wrapAdapterNames[i];\r\n            wrapInfo[IERC20(_components[i])].underlyingToken = _underlyingTokens[i];\r\n            emit AssetWrapExecutionParamUpdated(_components[i], _wrapAdapterNames[i], _underlyingTokens[i]);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Retrieves the addresses and units required to issue/redeem a particular quantity of CKToken.\r\n     *\r\n     * @param _ckToken             Instance of the CKToken to issue\r\n     * @param _quantity             Quantity of CKToken to issue\r\n     * @param _isIssue              Boolean whether the quantity is issuance or redemption\r\n     * @return address[]            List of component addresses\r\n     * @return uint256[]            List of component units required for a given CKToken quantity\r\n     */\r\n    function getRequiredComponentIssuanceUnits(\r\n        ICKToken _ckToken,\r\n        uint256 _quantity,\r\n        bool _isIssue\r\n    )\r\n        public\r\n        view\r\n        returns (address[] memory, uint256[] memory)\r\n    {\r\n        (\r\n            address[] memory components,\r\n            uint256[] memory issuanceUnits\r\n        ) = _getTotalIssuanceUnits(_ckToken);\r\n\r\n        uint256[] memory notionalUnits = new uint256[](components.length);\r\n        for (uint256 i = 0; i < issuanceUnits.length; i++) {\r\n            // Use preciseMulCeil to round up to ensure overcollateration when small issue quantities are provided\r\n            // and preciseMul to round down to ensure overcollateration when small redeem quantities are provided\r\n            notionalUnits[i] = _isIssue ? \r\n                issuanceUnits[i].preciseMulCeil(_quantity) : \r\n                issuanceUnits[i].preciseMul(_quantity);\r\n            require(notionalUnits[i] > 0, \"component amount should not be zero\");\r\n        }\r\n\r\n        return (components, notionalUnits);\r\n    }\r\n\r\n    /* ============ Internal Functions ============ */\r\n\r\n    /**\r\n     * This is a internal implementation for issue ckToken with a specified amount of a single asset with specification. \r\n     *\r\n     * @param _ckToken              Instance of the CKToken contract\r\n     * @param _issueToken           token used to issue with\r\n     * @param _issueTokenQuantity   amount of issue tokens\r\n     * @param _minCkTokenRec        The minimum amount of CKToken to receive\r\n     * @param _midTokens            The mid tokens in swap route\r\n     * @param _weightings           Eth distribution for each component\r\n     * @param _to                   Address to mint CKToken to\r\n     * @param _returnDust           If to return left components\r\n     */\r\n    function _issueWithSingleToken2(   \r\n        ICKToken _ckToken,\r\n        address _issueToken,\r\n        uint256 _issueTokenQuantity,\r\n        uint256 _minCkTokenRec,\r\n        address[] memory _midTokens,\r\n        uint256[] memory _weightings,\r\n        address _to,\r\n        bool _returnDust\r\n    ) \r\n        internal \r\n        returns(uint256)\r\n    {\r\n        address hookContract = _callPreIssueHooks(_ckToken, _minCkTokenRec, msg.sender, _to);\r\n        address[] memory components = _ckToken.getComponents();\r\n        require(components.length == _weightings.length, \"weightings mismatch\");\r\n        require(components.length == _midTokens.length, \"midTokens mismatch\");\r\n        (uint256 maxCkTokenToIssue, uint256 returnedIssueToken) = _issueWithSpec(_ckToken, _issueToken, _issueTokenQuantity, _midTokens, _weightings, _returnDust);\r\n        require(maxCkTokenToIssue >= _minCkTokenRec, \"_minCkTokenRec not met\");\r\n\r\n        _ckToken.mint(_to, maxCkTokenToIssue);\r\n\r\n        emit CKTokenIssued(address(_ckToken), msg.sender, _to, hookContract, maxCkTokenToIssue, returnedIssueToken);        \r\n        \r\n        return returnedIssueToken;\r\n    }\r\n\r\n    function _issueWithSpec(ICKToken _ckToken, address _issueToken, uint256 _issueTokenQuantity, address[] memory _midTokens, uint256[] memory _weightings, bool _returnDust) \r\n        internal \r\n        returns(uint256, uint256)\r\n    {\r\n        uint256 maxCkTokenToIssue = PreciseUnitMath.MAX_UINT_256;\r\n        address[] memory components = _ckToken.getComponents();\r\n        uint256[] memory componentTokenReceiveds = new uint256[](components.length);\r\n\r\n        for (uint256 i = 0; i < components.length; i++) {\r\n            uint256 _issueTokenAmountToUse = _issueTokenQuantity.preciseMul(_weightings[i]).sub(1); // avoid underflow\r\n            uint256 componentRealUnitRequired = (_ckToken.getDefaultPositionRealUnit(components[i])).toUint256();\r\n            uint256 componentReceived = _tradeAndWrapComponents(_ckToken, _issueToken, _issueTokenAmountToUse, _midTokens[i] ,components[i]);\r\n            componentTokenReceiveds[i] = componentReceived;\r\n            // guarantee issue ck token amount.\r\n            uint256 maxIssue = componentReceived.preciseDiv(componentRealUnitRequired);\r\n            if (maxIssue <= maxCkTokenToIssue) {\r\n                maxCkTokenToIssue = maxIssue;\r\n            }\r\n        }   \r\n\r\n        uint256 issueTokenToReturn = _dustToReturn(_ckToken, _issueToken, _midTokens, componentTokenReceiveds, maxCkTokenToIssue, _returnDust);\r\n \r\n        return (maxCkTokenToIssue, issueTokenToReturn);\r\n    }\r\n\r\n    function _tradeAndWrapComponents(ICKToken _ckToken, address _issueToken, uint256 _issueTokenAmountToUse, address _midToken, address _component) internal returns(uint256) {\r\n        uint256 componentTokenReceived;\r\n        if (_issueToken == _component) {\r\n            componentTokenReceived = _issueTokenAmountToUse;     \r\n        } else if (wrapInfo[IERC20(_component)].underlyingToken == address(0)) {\r\n            // For underlying tokens, exchange directly\r\n            (, componentTokenReceived) = _trade(_ckToken, _issueToken, _midToken, _component, _issueTokenAmountToUse, true);\r\n        } else {\r\n            // For wrapped tokens, exchange to underlying tokens first and then wrap it\r\n            WrapExecutionParams memory wrapExecutionParams = wrapInfo[IERC20(_component)];\r\n            IWrapAdapter wrapAdapter = IWrapAdapter(getAndValidateAdapter(wrapExecutionParams.wrapAdapterName));\r\n            uint256 underlyingReceived = 0;\r\n            if (wrapExecutionParams.underlyingToken == wrapAdapter.ETH_TOKEN_ADDRESS()) {\r\n                if (_issueToken != address(weth)) {\r\n                    (, underlyingReceived) = _trade(_ckToken, _issueToken, _midToken, address(weth), _issueTokenAmountToUse, true);\r\n                } else {\r\n                    underlyingReceived = _issueTokenAmountToUse;\r\n                }\r\n                componentTokenReceived = _wrap(_ckToken, wrapExecutionParams.underlyingToken, _component, underlyingReceived, wrapExecutionParams.wrapAdapterName, true);\r\n            } else {\r\n                (, underlyingReceived) = _trade(_ckToken, _issueToken, _midToken, wrapExecutionParams.underlyingToken , _issueTokenAmountToUse, true);\r\n                componentTokenReceived = _wrap(_ckToken, wrapExecutionParams.underlyingToken, _component, underlyingReceived, wrapExecutionParams.wrapAdapterName, false);\r\n            }\r\n        }\r\n\r\n        return componentTokenReceived;\r\n    }\r\n    \r\n    /**\r\n     * Swap remaining component back to issue token.\r\n     */\r\n    function _dustToReturn(ICKToken _ckToken, address _issueToken, address[] memory _midTokens, uint256[] memory componentTokenReceiveds, uint256 maxCkTokenToIssue, bool _returnDust) internal returns(uint256) {\r\n        if (!_returnDust) {\r\n            return 0;\r\n        }\r\n        uint256 issueTokenToReturn = 0;\r\n        address[] memory components = _ckToken.getComponents();\r\n\r\n        for(uint256 i = 0; i < components.length; i++) {\r\n            uint256 requiredComponentUnit = ((_ckToken.getDefaultPositionRealUnit(components[i])).toUint256()).preciseMul(maxCkTokenToIssue);\r\n            uint256 toReturn = componentTokenReceiveds[i].sub(requiredComponentUnit);\r\n            uint256 diffPercentage = toReturn.preciseDiv(requiredComponentUnit); // percentage in 18 decimals\r\n            if (diffPercentage > (PreciseUnitMath.preciseUnit().div(10000))) { // 0.01%\r\n                issueTokenToReturn = issueTokenToReturn.add(_exchangeDefaultPositionsToRedeemToken(_ckToken, _issueToken, _midTokens[i], components[i], toReturn));\r\n            }\r\n        }     \r\n\r\n        return issueTokenToReturn;\r\n    }    \r\n\r\n    /**\r\n     * Retrieves the component addresses and list of total units for components. This will revert if the external unit\r\n     * is ever equal or less than 0 .\r\n     */\r\n    function _getTotalIssuanceUnits(ICKToken _ckToken) internal view returns (address[] memory, uint256[] memory) {\r\n        address[] memory components = _ckToken.getComponents();\r\n        uint256[] memory totalUnits = new uint256[](components.length);\r\n\r\n        for (uint256 i = 0; i < components.length; i++) {\r\n            address component = components[i];\r\n            int256 cumulativeUnits = _ckToken.getDefaultPositionRealUnit(component);\r\n\r\n            address[] memory externalModules = _ckToken.getExternalPositionModules(component);\r\n            if (externalModules.length > 0) {\r\n                for (uint256 j = 0; j < externalModules.length; j++) {\r\n                    int256 externalPositionUnit = _ckToken.getExternalPositionRealUnit(component, externalModules[j]);\r\n\r\n                    require(externalPositionUnit > 0, \"Only positive external unit positions are supported\");\r\n\r\n                    cumulativeUnits = cumulativeUnits.add(externalPositionUnit);\r\n                }\r\n            }\r\n\r\n            totalUnits[i] = cumulativeUnits.toUint256();\r\n        }\r\n\r\n        return (components, totalUnits);        \r\n    }\r\n\r\n    /**\r\n     * If a pre-issue hook has been configured, call the external-protocol contract. Pre-issue hook logic\r\n     * can contain arbitrary logic including validations, external function calls, etc.\r\n     * Note: All modules with external positions must implement ExternalPositionIssueHooks\r\n     */\r\n    function _callPreIssueHooks(\r\n        ICKToken _ckToken,\r\n        uint256 _quantity,\r\n        address _caller,\r\n        address _to\r\n    )\r\n        internal\r\n        returns(address)\r\n    {\r\n        IManagerIssuanceHook preIssueHook = managerIssuanceHook[_ckToken];\r\n        if (address(preIssueHook) != address(0)) {\r\n            preIssueHook.invokePreIssueHook(_ckToken, _quantity, _caller, _to);\r\n            return address(preIssueHook);\r\n        }\r\n\r\n        return address(0);\r\n    }\r\n\r\n    /**\r\n     * For each component's external module positions, calculate the total notional quantity, and \r\n     * call the module's issue hook or redeem hook.\r\n     * Note: It is possible that these hooks can cause the states of other modules to change.\r\n     * It can be problematic if the a hook called an external function that called back into a module, resulting in state inconsistencies.\r\n     */\r\n    function _executeExternalPositionHooks(\r\n        ICKToken _ckToken,\r\n        uint256 _ckTokenQuantity,\r\n        IERC20 _component,\r\n        bool isIssue\r\n    )\r\n        internal\r\n    {\r\n        address[] memory externalPositionModules = _ckToken.getExternalPositionModules(address(_component));\r\n        for (uint256 i = 0; i < externalPositionModules.length; i++) {\r\n            if (isIssue) {\r\n                IModuleIssuanceHook(externalPositionModules[i]).componentIssueHook(_ckToken, _ckTokenQuantity, _component, true);\r\n            } else {\r\n                IModuleIssuanceHook(externalPositionModules[i]).componentRedeemHook(_ckToken, _ckTokenQuantity, _component, true);\r\n            }\r\n        }\r\n    }\r\n\r\n    function _exchangeDefaultPositionsToRedeemToken(ICKToken _ckToken, address _redeemToken, address _midToken, address _component, uint256 _componentQuantity) internal returns(uint256) {\r\n        uint256 redeemTokenAcquired;\r\n        if (_redeemToken == _component) {\r\n            // continue if redeem token is component token\r\n            redeemTokenAcquired = _componentQuantity;\r\n        } else if (wrapInfo[IERC20(_component)].underlyingToken == address(0)) {\r\n            // For underlying tokens, exchange directly\r\n            \r\n            (, redeemTokenAcquired) = _trade(_ckToken, _component, _midToken, _redeemToken, _componentQuantity, true);\r\n        } else {\r\n            // For wrapped tokens, unwrap it and exchange underlying tokens to redeem tokens\r\n            WrapExecutionParams memory wrapExecutionParams = wrapInfo[IERC20(_component)];\r\n            IWrapAdapter wrapAdapter = IWrapAdapter(getAndValidateAdapter(wrapExecutionParams.wrapAdapterName));\r\n\r\n            (uint256 underlyingReceived, uint256 unwrappedAmount) = \r\n            _unwrap(_ckToken, wrapExecutionParams.underlyingToken, _component, _componentQuantity, wrapExecutionParams.wrapAdapterName, wrapExecutionParams.underlyingToken == wrapAdapter.ETH_TOKEN_ADDRESS());\r\n\r\n            if (wrapExecutionParams.underlyingToken == wrapAdapter.ETH_TOKEN_ADDRESS()) {\r\n                (, redeemTokenAcquired) = _trade(_ckToken, address(weth), _midToken, _redeemToken, underlyingReceived, true);                \r\n            } else {\r\n                (, redeemTokenAcquired) = _trade(_ckToken, wrapExecutionParams.underlyingToken, _midToken, _redeemToken, underlyingReceived, true);                \r\n            }    \r\n        }\r\n        return redeemTokenAcquired;\r\n    }\r\n\r\n    /**\r\n     * Take snapshot of CKToken's balance of underlying and wrapped tokens.\r\n     */\r\n    function _snapshotTargetTokenBalance(\r\n        ICKToken _ckToken,\r\n        address _targetToken\r\n    ) internal view returns(uint256) {\r\n        uint256 targetTokenBalance = IERC20(_targetToken).balanceOf(address(_ckToken));\r\n        return (targetTokenBalance);\r\n    }\r\n\r\n    /**\r\n     * Validate post trade data.\r\n     *\r\n     * @param _tradeInfo                Struct containing trade information used in internal functions\r\n     */\r\n    function _validatePostTrade(TradeInfo memory _tradeInfo) internal view returns (uint256) {\r\n        uint256 exchangedQuantity = IERC20(_tradeInfo.receiveToken)\r\n        .balanceOf(address(_tradeInfo.ckToken))\r\n        .sub(_tradeInfo.preTradeReceiveTokenBalance);\r\n\r\n        require(\r\n            exchangedQuantity >= _tradeInfo.totalReceiveQuantity, \"Slippage too big\"\r\n        );\r\n        return exchangedQuantity;\r\n    }\r\n\r\n    /**\r\n     * Validate pre trade data. Check exchange is valid, token quantity is valid.\r\n     *\r\n     * @param _tradeInfo            Struct containing trade information used in internal functions\r\n     */\r\n    function _validatePreTradeData(TradeInfo memory _tradeInfo) internal view {\r\n        require(_tradeInfo.totalSendQuantity > 0, \"Token to sell must be nonzero\");\r\n        uint256 sendTokenBalance = IERC20(_tradeInfo.sendToken).balanceOf(address(_tradeInfo.ckToken));\r\n        require(\r\n            sendTokenBalance >= _tradeInfo.totalSendQuantity,\r\n            \"total send quantity cant be greater than existing\"\r\n        );\r\n    }\r\n\r\n    /**\r\n     * Create and return TradeInfo struct\r\n     *\r\n     * @param _ckToken              Instance of the CKToken to trade\r\n     * @param _exchangeAdapter      The exchange adapter in the integrations registry\r\n     * @param _sendToken            Address of the token to be sent to the exchange\r\n     * @param _midToken             Address of the token in route\r\n     * @param _receiveToken         Address of the token that will be received from the exchange\r\n     * @param _exactQuantity        Exact token quantity during trade\r\n     * @param _isSendTokenFixed     Indicate if the send token is fixed\r\n     *\r\n     * return TradeInfo             Struct containing data for trade\r\n     */\r\n    function _createTradeInfo(\r\n        ICKToken _ckToken,\r\n        IExchangeAdapter _exchangeAdapter,\r\n        address _sendToken,\r\n        address _midToken,\r\n        address _receiveToken,\r\n        uint256 _exactQuantity,\r\n        bool _isSendTokenFixed\r\n    )\r\n        internal\r\n        view\r\n        returns (TradeInfo memory)\r\n    {\r\n        uint256 thresholdAmount;\r\n        address[] memory path;\r\n        if (_midToken == address(0) || _midToken == _sendToken || _midToken == _receiveToken) {\r\n            path = new address[](2);\r\n            path[0] = _sendToken;\r\n            path[1] = _receiveToken;\r\n        } else {\r\n            path = new address[](3);\r\n            path[0] = _sendToken;\r\n            path[1] = _midToken;\r\n            path[2] = _receiveToken;\r\n        }\r\n\r\n\r\n        TradeInfo memory tradeInfo;\r\n        tradeInfo.ckToken = _ckToken;\r\n        tradeInfo.exchangeAdapter = _exchangeAdapter;\r\n        tradeInfo.sendToken = _sendToken;\r\n        tradeInfo.receiveToken = _receiveToken;\r\n        tradeInfo.totalSendQuantity =  _exactQuantity;\r\n        tradeInfo.totalReceiveQuantity = 0;\r\n        tradeInfo.preTradeSendTokenBalance = _snapshotTargetTokenBalance(_ckToken, _sendToken);\r\n        tradeInfo.preTradeReceiveTokenBalance = _snapshotTargetTokenBalance(_ckToken, _receiveToken);\r\n        tradeInfo.data = _isSendTokenFixed ? _exchangeAdapter.generateDataParam(path, true) : _exchangeAdapter.generateDataParam(path, false);\r\n        return tradeInfo;\r\n    }\r\n\r\n    /**\r\n     * Invoke approve for send token, get method data and invoke trade in the context of the CKToken.\r\n     *\r\n     * @param _ckToken              Instance of the CKToken to trade\r\n     * @param _exchangeAdapter      Exchange adapter in the integrations registry\r\n     * @param _sendToken            Address of the token to be sent to the exchange\r\n     * @param _receiveToken         Address of the token that will be received from the exchange\r\n     * @param _sendQuantity         Units of token in CKToken sent to the exchange\r\n     * @param _receiveQuantity      Units of token in CKToken received from the exchange\r\n     * @param _data                 Arbitrary bytes to be used to construct trade call data\r\n     */\r\n    function _executeTrade(\r\n        ICKToken _ckToken,\r\n        IExchangeAdapter _exchangeAdapter,\r\n        address _sendToken,\r\n        address _receiveToken,\r\n        uint256 _sendQuantity,\r\n        uint256 _receiveQuantity,\r\n        bytes memory _data\r\n    )\r\n        internal\r\n    {\r\n        // Get spender address from exchange adapter and invoke approve for exact amount on CKToken\r\n        _ckToken.invokeApprove(\r\n            _sendToken,\r\n            _exchangeAdapter.getSpender(),\r\n            _sendQuantity\r\n        );\r\n\r\n        (\r\n            address targetExchange,\r\n            uint256 callValue,\r\n            bytes memory methodData\r\n        ) = _exchangeAdapter.getTradeCalldata(\r\n            _sendToken,\r\n            _receiveToken,\r\n            address(_ckToken),\r\n            _sendQuantity,\r\n            _receiveQuantity,\r\n            _data\r\n        );\r\n\r\n        _ckToken.invoke(targetExchange, callValue, methodData);\r\n    }\r\n\r\n    /**\r\n     * Executes a trade on a supported DEX.\r\n     *\r\n     * @param _ckToken              Instance of the CKToken to trade\r\n     * @param _sendToken            Address of the token to be sent to the exchange\r\n     * @param _midToken             _midToken\r\n     * @param _receiveToken         Address of the token that will be received from the exchange     \r\n     * @param _exactQuantity        Exact Quantity of token in CKToken to be sent or received from the exchange\r\n     * @param _isSendTokenFixed     Indicate if the send token is fixed\r\n     */\r\n    function _trade(\r\n        ICKToken _ckToken,\r\n        address _sendToken,\r\n        address _midToken,\r\n        address _receiveToken,\r\n        uint256 _exactQuantity,\r\n        bool _isSendTokenFixed\r\n    )\r\n        internal\r\n        returns (uint256, uint256)\r\n    {\r\n        if (address(_sendToken) == address(_receiveToken)) {\r\n            return (_exactQuantity, _exactQuantity);\r\n        }\r\n        TradeInfo memory tradeInfo = _createTradeInfo(\r\n            _ckToken,\r\n            IExchangeAdapter(getAndValidateAdapter(exchangeInfo[IERC20(_receiveToken)])),\r\n            _sendToken,\r\n            _midToken,\r\n            _receiveToken,\r\n            _exactQuantity,\r\n            _isSendTokenFixed\r\n        );\r\n        _validatePreTradeData(tradeInfo);\r\n        _executeTrade(tradeInfo.ckToken, tradeInfo.exchangeAdapter, tradeInfo.sendToken, tradeInfo.receiveToken, tradeInfo.totalSendQuantity, tradeInfo.totalReceiveQuantity, tradeInfo.data);\r\n        _validatePostTrade(tradeInfo);\r\n        uint256 totalSendQuantity = tradeInfo.preTradeSendTokenBalance.sub(_snapshotTargetTokenBalance(_ckToken, _sendToken));\r\n        uint256 totalReceiveQuantity = _snapshotTargetTokenBalance(_ckToken, _receiveToken).sub(tradeInfo.preTradeReceiveTokenBalance);\r\n        emit ComponentExchanged(\r\n            _ckToken,\r\n            _sendToken,\r\n            _receiveToken,\r\n            tradeInfo.exchangeAdapter,\r\n            totalSendQuantity,\r\n            totalReceiveQuantity\r\n        );\r\n        return (totalSendQuantity, totalReceiveQuantity);\r\n    }\r\n\r\n    /**\r\n     * Instructs the CKToken to wrap an underlying asset into a wrappedToken via a specified adapter.\r\n     *\r\n     * @param _ckToken              Instance of the CKToken\r\n     * @param _underlyingToken      Address of the component to be wrapped\r\n     * @param _wrappedToken         Address of the desired wrapped token\r\n     * @param _underlyingQuantity   Quantity of underlying tokens to wrap\r\n     * @param _integrationName      Name of wrap module integration (mapping on integration registry)\r\n     */\r\n    function _wrap(\r\n        ICKToken _ckToken,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _underlyingQuantity,\r\n        string memory _integrationName,\r\n        bool _usesEther\r\n    )\r\n        internal\r\n        returns (uint256)\r\n    {\r\n        (\r\n        uint256 notionalUnderlyingWrapped,\r\n        uint256 notionalWrapped\r\n        ) = _validateAndWrap(\r\n            _integrationName,\r\n            _ckToken,\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            _underlyingQuantity,\r\n            _usesEther // does not use Ether\r\n        );\r\n\r\n        emit ComponentWrapped(\r\n            _ckToken,\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            notionalUnderlyingWrapped,\r\n            notionalWrapped,\r\n            _integrationName\r\n        );\r\n        return notionalWrapped;\r\n    }\r\n\r\n    /**\r\n     * MANAGER-ONLY: Instructs the CKToken to unwrap a wrapped asset into its underlying via a specified adapter.\r\n     *\r\n     * @param _ckToken              Instance of the CKToken\r\n     * @param _underlyingToken      Address of the underlying asset\r\n     * @param _wrappedToken         Address of the component to be unwrapped\r\n     * @param _wrappedQuantity      Quantity of wrapped tokens in Position units\r\n     * @param _integrationName      ID of wrap module integration (mapping on integration registry)\r\n     */\r\n    function _unwrap(\r\n        ICKToken _ckToken,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _wrappedQuantity,\r\n        string memory _integrationName,\r\n        bool _usesEther\r\n    )\r\n        internal returns (uint256, uint256)\r\n    {\r\n        (\r\n        uint256 notionalUnderlyingUnwrapped,\r\n        uint256 notionalUnwrapped\r\n        ) = _validateAndUnwrap(\r\n            _integrationName,\r\n            _ckToken,\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            _wrappedQuantity,\r\n            _usesEther // uses Ether\r\n        );\r\n\r\n        emit ComponentUnwrapped(\r\n            _ckToken,\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            notionalUnderlyingUnwrapped,\r\n            notionalUnwrapped,\r\n            _integrationName\r\n        );\r\n\r\n        return (notionalUnderlyingUnwrapped, notionalUnwrapped);\r\n    }\r\n\r\n    /**\r\n     * The WrapModule approves the underlying to the 3rd party\r\n     * integration contract, then invokes the CKToken to call wrap by passing its calldata along. When raw ETH\r\n     * is being used (_usesEther = true) WETH position must first be unwrapped and underlyingAddress sent to\r\n     * adapter must be external protocol's ETH representative address.\r\n     *\r\n     * Returns notional amount of underlying tokens and wrapped tokens that were wrapped.\r\n     */\r\n    function _validateAndWrap(\r\n        string memory _integrationName,\r\n        ICKToken _ckToken,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _underlyingQuantity,\r\n        bool _usesEther\r\n    )\r\n        internal\r\n        returns (uint256, uint256)\r\n    {\r\n        uint256 preActionUnderlyingNotional;\r\n        // Snapshot pre wrap balances\r\n        uint256 preActionWrapNotional = _snapshotTargetTokenBalance(_ckToken, _wrappedToken);\r\n\r\n        IWrapAdapter wrapAdapter = IWrapAdapter(getAndValidateAdapter(_integrationName));\r\n\r\n        address snapshotToken = _usesEther ? address(weth) : _underlyingToken;\r\n        _validateInputs(_ckToken, snapshotToken, _underlyingQuantity);\r\n        preActionUnderlyingNotional = _snapshotTargetTokenBalance(_ckToken, snapshotToken);\r\n\r\n        // Execute any pre-wrap actions depending on if using raw ETH or not\r\n        if (_usesEther) {\r\n            _ckToken.invokeUnwrapWETH(address(weth), _underlyingQuantity);\r\n        } else {\r\n            address spender = wrapAdapter.getWrapSpenderAddress(_underlyingToken, _wrappedToken);\r\n            _ckToken.invokeApprove(_underlyingToken, spender, _underlyingQuantity.add(1));\r\n        }\r\n\r\n        // Get function call data and invoke on CKToken\r\n        _createWrapDataAndInvoke(\r\n            _ckToken,\r\n            wrapAdapter,\r\n            _usesEther ? wrapAdapter.ETH_TOKEN_ADDRESS() : _underlyingToken,\r\n            _wrappedToken,\r\n            _underlyingQuantity\r\n        );\r\n\r\n        // Snapshot post wrap balances\r\n        uint256 postActionUnderlyingNotional = _snapshotTargetTokenBalance(_ckToken, snapshotToken);\r\n        uint256 postActionWrapNotional = _snapshotTargetTokenBalance(_ckToken, _wrappedToken);\r\n        return (\r\n            preActionUnderlyingNotional.sub(postActionUnderlyingNotional),\r\n            postActionWrapNotional.sub(preActionWrapNotional)\r\n        );\r\n    }\r\n\r\n    /**\r\n     * The WrapModule calculates the total notional wrap token to unwrap, then invokes the CKToken to call\r\n     * unwrap by passing its calldata along. When raw ETH is being used (_usesEther = true) underlyingAddress\r\n     * sent to adapter must be set to external protocol's ETH representative address and ETH returned from\r\n     * external protocol is wrapped.\r\n     *\r\n     * Returns notional amount of underlying tokens and wrapped tokens unwrapped.\r\n     */\r\n    function _validateAndUnwrap(\r\n        string memory _integrationName,\r\n        ICKToken _ckToken,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _wrappedTokenQuantity,\r\n        bool _usesEther\r\n    )\r\n        internal\r\n        returns (uint256, uint256)\r\n    {\r\n        _validateInputs(_ckToken, _wrappedToken, _wrappedTokenQuantity);\r\n\r\n        // Snapshot pre wrap balance\r\n        address snapshotToken = _usesEther ? address(weth) : _underlyingToken;\r\n        uint256 preActionUnderlyingNotional = _snapshotTargetTokenBalance(_ckToken, snapshotToken);\r\n        uint256 preActionWrapNotional = _snapshotTargetTokenBalance(_ckToken, _wrappedToken);\r\n\r\n        IWrapAdapter wrapAdapter = IWrapAdapter(getAndValidateAdapter(_integrationName));\r\n        address unWrapSpender = wrapAdapter.getUnwrapSpenderAddress(_underlyingToken, _wrappedToken);\r\n        _ckToken.invokeApprove(_wrappedToken, unWrapSpender, _wrappedTokenQuantity);\r\n        \r\n        // Get function call data and invoke on CKToken\r\n        _createUnwrapDataAndInvoke(\r\n            _ckToken,\r\n            wrapAdapter,\r\n            _usesEther ? wrapAdapter.ETH_TOKEN_ADDRESS() : _underlyingToken,\r\n            _wrappedToken,\r\n            _wrappedTokenQuantity\r\n        );\r\n\r\n        // immediately wrap to WTH after getting back ETH\r\n        if (_usesEther) {\r\n            _ckToken.invokeWrapWETH(address(weth), address(_ckToken).balance);\r\n        }\r\n        \r\n        // Snapshot post wrap balances\r\n        uint256 postActionUnderlyingNotional = _snapshotTargetTokenBalance(_ckToken, snapshotToken);\r\n        uint256 postActionWrapNotional = _snapshotTargetTokenBalance(_ckToken, _wrappedToken);\r\n        return (\r\n            postActionUnderlyingNotional.sub(preActionUnderlyingNotional),\r\n            preActionWrapNotional.sub(postActionWrapNotional)\r\n        );\r\n    }\r\n\r\n    /**\r\n     * Validates the wrap operation is valid. In particular, the following checks are made:\r\n     * - The position is Default\r\n     * - The position has sufficient units given the transact quantity\r\n     * - The transact quantity > 0\r\n     *\r\n     * It is expected that the adapter will check if wrappedToken/underlyingToken are a valid pair for the given\r\n     * integration.\r\n     */\r\n    function _validateInputs(\r\n        ICKToken _ckToken,\r\n        address _component,\r\n        uint256 _quantity\r\n    )\r\n        internal\r\n        view\r\n    {\r\n        require(_quantity > 0, \"component quantity must be > 0\");\r\n        require(_snapshotTargetTokenBalance(_ckToken, _component) >= _quantity, \"quantity cant be greater than existing\");\r\n    }\r\n\r\n    /**\r\n     * Create the calldata for wrap and then invoke the call on the CKToken.\r\n     */\r\n    function _createWrapDataAndInvoke(\r\n        ICKToken _ckToken,\r\n        IWrapAdapter _wrapAdapter,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _notionalUnderlying\r\n    ) internal {\r\n        (\r\n            address callTarget,\r\n            uint256 callValue,\r\n            bytes memory callByteData\r\n        ) = _wrapAdapter.getWrapCallData(\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            _notionalUnderlying\r\n        );\r\n\r\n        _ckToken.invoke(callTarget, callValue, callByteData);\r\n    }\r\n\r\n    /**\r\n     * Create the calldata for unwrap and then invoke the call on the CKToken.\r\n     */\r\n    function _createUnwrapDataAndInvoke(\r\n        ICKToken _ckToken,\r\n        IWrapAdapter _wrapAdapter,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _notionalUnderlying\r\n    ) internal {\r\n        (\r\n            address callTarget,\r\n            uint256 callValue,\r\n            bytes memory callByteData\r\n        ) = _wrapAdapter.getUnwrapCallData(\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            _notionalUnderlying\r\n        );\r\n\r\n        _ckToken.invoke(callTarget, callValue, callByteData);\r\n    }\r\n}"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.6.10+commit.00c0fcaf","compilerSettings":{"libraries":{},"optimizer":{"runs":200,"enabled":true}},"name":"IssuanceModuleV2","fullyQualifiedName":"IssuanceModuleV2.sol:IssuanceModuleV2"},"abi":[{"type":"constructor","inputs":[{"name":"_controller","type":"address","internalType":"contract IController"},{"name":"_weth","type":"address","internalType":"contract IWETH"}],"stateMutability":"nonpayable"},{"name":"AssetExchangeExecutionParamUpdated","type":"event","inputs":[{"name":"_component","type":"address","indexed":true,"internalType":"address"},{"name":"_newExchangeName","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"AssetWrapExecutionParamUpdated","type":"event","inputs":[{"name":"_component","type":"address","indexed":true,"internalType":"address"},{"name":"_newWrapAdapterName","type":"string","indexed":false,"internalType":"string"},{"name":"_newUnderlyingToken","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"CKTokenIssued","type":"event","inputs":[{"name":"_ckToken","type":"address","indexed":true,"internalType":"address"},{"name":"_issuer","type":"address","indexed":false,"internalType":"address"},{"name":"_to","type":"address","indexed":false,"internalType":"address"},{"name":"_hookContract","type":"address","indexed":false,"internalType":"address"},{"name":"_ckMintQuantity","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_issuedTokenReturned","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"CKTokenRedeemed","type":"event","inputs":[{"name":"_ckToken","type":"address","indexed":true,"internalType":"address"},{"name":"_redeemer","type":"address","indexed":false,"internalType":"address"},{"name":"_to","type":"address","indexed":false,"internalType":"address"},{"name":"_quantity","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"ComponentExchanged","type":"event","inputs":[{"name":"_ckToken","type":"address","indexed":true,"internalType":"contract ICKToken"},{"name":"_sendToken","type":"address","indexed":true,"internalType":"address"},{"name":"_receiveToken","type":"address","indexed":true,"internalType":"address"},{"name":"_exchangeAdapter","type":"address","indexed":false,"internalType":"contract IExchangeAdapter"},{"name":"_totalSendAmount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_totalReceiveAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"ComponentUnwrapped","type":"event","inputs":[{"name":"_ckToken","type":"address","indexed":true,"internalType":"contract ICKToken"},{"name":"_underlyingToken","type":"address","indexed":true,"internalType":"address"},{"name":"_wrappedToken","type":"address","indexed":true,"internalType":"address"},{"name":"_underlyingQuantity","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_wrappedQuantity","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_integrationName","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"ComponentWrapped","type":"event","inputs":[{"name":"_ckToken","type":"address","indexed":true,"internalType":"contract ICKToken"},{"name":"_underlyingToken","type":"address","indexed":true,"internalType":"address"},{"name":"_wrappedToken","type":"address","indexed":true,"internalType":"address"},{"name":"_underlyingQuantity","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_wrappedQuantity","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_integrationName","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"controller","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IController"}],"stateMutability":"view"},{"name":"exchangeInfo","type":"function","inputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"getRequiredComponentIssuanceUnits","type":"function","inputs":[{"name":"_ckToken","type":"address","internalType":"contract ICKToken"},{"name":"_quantity","type":"uint256","internalType":"uint256"},{"name":"_isIssue","type":"bool","internalType":"bool"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"},{"name":"","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"initialize","type":"function","inputs":[{"name":"_ckToken","type":"address","internalType":"contract ICKToken"},{"name":"_preIssueHook","type":"address","internalType":"contract IManagerIssuanceHook"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"issueWithEther2","type":"function","inputs":[{"name":"_ckToken","type":"address","internalType":"contract ICKToken"},{"name":"_minCkTokenRec","type":"uint256","internalType":"uint256"},{"name":"_midTokens","type":"address[]","internalType":"address[]"},{"name":"_weightings","type":"uint256[]","internalType":"uint256[]"},{"name":"_to","type":"address","internalType":"address"},{"name":"_returnDust","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"payable"},{"name":"issueWithSingleToken2","type":"function","inputs":[{"name":"_ckToken","type":"address","internalType":"contract ICKToken"},{"name":"_issueToken","type":"address","internalType":"address"},{"name":"_issueTokenQuantity","type":"uint256","internalType":"uint256"},{"name":"_minCkTokenRec","type":"uint256","internalType":"uint256"},{"name":"_midTokens","type":"address[]","internalType":"address[]"},{"name":"_weightings","type":"uint256[]","internalType":"uint256[]"},{"name":"_to","type":"address","internalType":"address"},{"name":"_returnDust","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"managerIssuanceHook","type":"function","inputs":[{"name":"","type":"address","internalType":"contract ICKToken"}],"outputs":[{"name":"","type":"address","internalType":"contract IManagerIssuanceHook"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"redeemToSingleToken","type":"function","inputs":[{"name":"_ckToken","type":"address","internalType":"contract ICKToken"},{"name":"_ckTokenQuantity","type":"uint256","internalType":"uint256"},{"name":"_redeemToken","type":"address","internalType":"address"},{"name":"_midTokens","type":"address[]","internalType":"address[]"},{"name":"_to","type":"address","internalType":"address"},{"name":"_minRedeemTokenToRec","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"removeModule","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"setExchanges","type":"function","inputs":[{"name":"_components","type":"address[]","internalType":"address[]"},{"name":"_exchangeNames","type":"string[]","internalType":"string[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setWrapAdapters","type":"function","inputs":[{"name":"_components","type":"address[]","internalType":"address[]"},{"name":"_wrapAdapterNames","type":"string[]","internalType":"string[]"},{"name":"_underlyingTokens","type":"address[]","internalType":"address[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"weth","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IWETH"}],"stateMutability":"view"},{"name":"wrapInfo","type":"function","inputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"outputs":[{"name":"wrapAdapterName","type":"string","internalType":"string"},{"name":"underlyingToken","type":"address","internalType":"address"}],"stateMutability":"view"}],"metadata":{"compiler":{"version":"0.6.10+commit.00c0fcaf"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"contract IController","name":"_controller","type":"address"},{"internalType":"contract IWETH","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_component","type":"address"},{"indexed":false,"internalType":"string","name":"_newExchangeName","type":"string"}],"name":"AssetExchangeExecutionParamUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_component","type":"address"},{"indexed":false,"internalType":"string","name":"_newWrapAdapterName","type":"string"},{"indexed":false,"internalType":"address","name":"_newUnderlyingToken","type":"address"}],"name":"AssetWrapExecutionParamUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_ckToken","type":"address"},{"indexed":false,"internalType":"address","name":"_issuer","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"address","name":"_hookContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"_ckMintQuantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_issuedTokenReturned","type":"uint256"}],"name":"CKTokenIssued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_ckToken","type":"address"},{"indexed":false,"internalType":"address","name":"_redeemer","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"CKTokenRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract ICKToken","name":"_ckToken","type":"address"},{"indexed":true,"internalType":"address","name":"_sendToken","type":"address"},{"indexed":true,"internalType":"address","name":"_receiveToken","type":"address"},{"indexed":false,"internalType":"contract IExchangeAdapter","name":"_exchangeAdapter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_totalSendAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_totalReceiveAmount","type":"uint256"}],"name":"ComponentExchanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract ICKToken","name":"_ckToken","type":"address"},{"indexed":true,"internalType":"address","name":"_underlyingToken","type":"address"},{"indexed":true,"internalType":"address","name":"_wrappedToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_underlyingQuantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_wrappedQuantity","type":"uint256"},{"indexed":false,"internalType":"string","name":"_integrationName","type":"string"}],"name":"ComponentUnwrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract ICKToken","name":"_ckToken","type":"address"},{"indexed":true,"internalType":"address","name":"_underlyingToken","type":"address"},{"indexed":true,"internalType":"address","name":"_wrappedToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_underlyingQuantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_wrappedQuantity","type":"uint256"},{"indexed":false,"internalType":"string","name":"_integrationName","type":"string"}],"name":"ComponentWrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"controller","outputs":[{"internalType":"contract IController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"exchangeInfo","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ICKToken","name":"_ckToken","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bool","name":"_isIssue","type":"bool"}],"name":"getRequiredComponentIssuanceUnits","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ICKToken","name":"_ckToken","type":"address"},{"internalType":"contract IManagerIssuanceHook","name":"_preIssueHook","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ICKToken","name":"_ckToken","type":"address"},{"internalType":"uint256","name":"_minCkTokenRec","type":"uint256"},{"internalType":"address[]","name":"_midTokens","type":"address[]"},{"internalType":"uint256[]","name":"_weightings","type":"uint256[]"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_returnDust","type":"bool"}],"name":"issueWithEther2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract ICKToken","name":"_ckToken","type":"address"},{"internalType":"address","name":"_issueToken","type":"address"},{"internalType":"uint256","name":"_issueTokenQuantity","type":"uint256"},{"internalType":"uint256","name":"_minCkTokenRec","type":"uint256"},{"internalType":"address[]","name":"_midTokens","type":"address[]"},{"internalType":"uint256[]","name":"_weightings","type":"uint256[]"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_returnDust","type":"bool"}],"name":"issueWithSingleToken2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ICKToken","name":"","type":"address"}],"name":"managerIssuanceHook","outputs":[{"internalType":"contract IManagerIssuanceHook","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ICKToken","name":"_ckToken","type":"address"},{"internalType":"uint256","name":"_ckTokenQuantity","type":"uint256"},{"internalType":"address","name":"_redeemToken","type":"address"},{"internalType":"address[]","name":"_midTokens","type":"address[]"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_minRedeemTokenToRec","type":"uint256"}],"name":"redeemToSingleToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_components","type":"address[]"},{"internalType":"string[]","name":"_exchangeNames","type":"string[]"}],"name":"setExchanges","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_components","type":"address[]"},{"internalType":"string[]","name":"_wrapAdapterNames","type":"string[]"},{"internalType":"address[]","name":"_underlyingTokens","type":"address[]"}],"name":"setWrapAdapters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"wrapInfo","outputs":[{"internalType":"string","name":"wrapAdapterName","type":"string"},{"internalType":"address","name":"underlyingToken","type":"address"}],"stateMutability":"view","type":"function"}],"devdoc":{"author":"Cook Finance The IssuanceModule is a module that enables users to issue and redeem CKTokens that contain default and  non-debt external Positions. Managers are able to set an external contract hook that is called before an issuance is called.","methods":{"getRequiredComponentIssuanceUnits(address,uint256,bool)":{"params":{"_ckToken":"Instance of the CKToken to issue","_isIssue":"Boolean whether the quantity is issuance or redemption","_quantity":"Quantity of CKToken to issue"},"returns":{"_0":"address[]            List of component addresses","_1":"uint256[]            List of component units required for a given CKToken quantity"}},"initialize(address,address)":{"params":{"_ckToken":"Instance of the CKToken to issue","_preIssueHook":"Instance of the Manager Contract with the Pre-Issuance Hook function"}},"issueWithEther2(address,uint256,address[],uint256[],address,bool)":{"params":{"_ckToken":"Instance of the CKToken contract","_midTokens":"The mid tokens in swap route","_minCkTokenRec":"The minimum amount of CKToken to receive","_returnDust":"If to return left components","_to":"Address to mint CKToken to","_weightings":"Eth distribution for each component"}},"issueWithSingleToken2(address,address,uint256,uint256,address[],uint256[],address,bool)":{"params":{"_ckToken":"Instance of the CKToken contract","_issueToken":"token used to issue with","_issueTokenQuantity":"amount of issue tokens","_midTokens":"The mid tokens in swap route","_minCkTokenRec":"The minimum amount of CKToken to receive","_returnDust":"If to return left components","_to":"Address to mint CKToken to","_weightings":"Eth distribution for each component"}},"owner()":{"details":"Returns the address of the current owner."},"redeemToSingleToken(address,uint256,address,address[],address,uint256)":{"params":{"_ckToken":"Instance of the CKToken contract","_ckTokenQuantity":"Quantity of the CKToken to redeem","_midTokens":"The mid tokens in swap route","_minRedeemTokenToRec":"Minimum redeem to to receive","_redeemToken":"Address of redeem token","_to":"Address to redeem CKToken to"}},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"setExchanges(address[],string[])":{"params":{"_components":"Array of components","_exchangeNames":"Array of exchange names mapping to correct component"}},"setWrapAdapters(address[],string[],address[])":{"params":{"_components":"Array of components","_underlyingTokens":"Array of underlying tokens mapping to correct component","_wrapAdapterNames":"Array of wrap adapter names mapping to correct component"}},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}},"title":"IssuanceModule"},"userdoc":{"methods":{"constructor":"Set state controller state variable","getRequiredComponentIssuanceUnits(address,uint256,bool)":{"notice":"Retrieves the addresses and units required to issue/redeem a particular quantity of CKToken."},"initialize(address,address)":{"notice":"Initializes this module to the CKToken with issuance-related hooks. Only callable by the CKToken's manager. Hook addresses are optional. Address(0) means that no hook will be called"},"issueWithEther2(address,uint256,address[],uint256[],address,bool)":{"notice":"Issue ckToken with a specified amount of Eth. "},"issueWithSingleToken2(address,address,uint256,uint256,address[],uint256[],address,bool)":{"notice":"Issue ckToken with a specified amount of a single asset with specification"},"redeemToSingleToken(address,uint256,address,address[],address,uint256)":{"notice":"Burns a user's CKToken of specified quantity, unwinds external positions, and exchange components to the specified token and return to the specified address. Does not work for debt/negative external positions."},"removeModule()":{"notice":"Removes this module from the CKToken, via call by the CKToken. Left with empty logic here because there are no check needed to verify removal."},"setExchanges(address[],string[])":{"notice":"OWNER ONLY: Set exchange for passed components of the CKToken. Can be called at anytime."},"setWrapAdapters(address[],string[],address[])":{"notice":"OWNER ONLY: Set wrap adapters for passed components of the CKToken. Can be called at anytime."}}}},"settings":{"compilationTarget":{"IssuanceModuleV2.sol":"IssuanceModuleV2"},"evmVersion":"istanbul","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":[]},"sources":{"IssuanceModuleV2.sol":{"keccak256":"0x95f64b0c36358d5ab4b44a8217a52d8c03674874b4c5e28a7229f960bc4c3691","license":"MIT","urls":["bzz-raw://892ed9e32dd6949ba4b51f72234e5865fc2440b9966f20fbe02937ef2f01a721","dweb:/ipfs/QmU3NcMySSGZo4jJ9WGEW9t3AGB6usyxdK1McV7BUnN3XQ"]}},"version":1},"storageLayout":{"types":{"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_string_storage":{"label":"string","encoding":"bytes","numberOfBytes":"32"},"t_contract(IERC20)99":{"label":"contract IERC20","encoding":"inplace","numberOfBytes":"20"},"t_contract(ICKToken)2278":{"label":"contract ICKToken","encoding":"inplace","numberOfBytes":"20"},"t_contract(IController)2029":{"label":"contract IController","encoding":"inplace","numberOfBytes":"20"},"t_contract(IManagerIssuanceHook)2302":{"label":"contract IManagerIssuanceHook","encoding":"inplace","numberOfBytes":"20"},"t_struct(WrapExecutionParams)4679_storage":{"label":"struct IssuanceModuleV2.WrapExecutionParams","members":[{"slot":"0","type":"t_string_storage","astId":4676,"label":"wrapAdapterName","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"1","type":"t_address","astId":4678,"label":"underlyingToken","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"}],"encoding":"inplace","numberOfBytes":"64"},"t_mapping(t_contract(IERC20)99,t_string_storage)":{"key":"t_contract(IERC20)99","label":"mapping(contract IERC20 => string)","value":"t_string_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_contract(ICKToken)2278,t_contract(IManagerIssuanceHook)2302)":{"key":"t_contract(ICKToken)2278","label":"mapping(contract ICKToken => contract IManagerIssuanceHook)","value":"t_contract(IManagerIssuanceHook)2302","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_contract(IERC20)99,t_struct(WrapExecutionParams)4679_storage)":{"key":"t_contract(IERC20)99","label":"mapping(contract IERC20 => struct IssuanceModuleV2.WrapExecutionParams)","value":"t_struct(WrapExecutionParams)4679_storage","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_address","astId":799,"label":"_owner","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"1","type":"t_contract(IController)2029","astId":4173,"label":"controller","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"2","type":"t_uint256","astId":910,"label":"_status","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"3","type":"t_mapping(t_contract(ICKToken)2278,t_contract(IManagerIssuanceHook)2302)","astId":4782,"label":"managerIssuanceHook","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"4","type":"t_mapping(t_contract(IERC20)99,t_string_storage)","astId":4786,"label":"exchangeInfo","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"5","type":"t_mapping(t_contract(IERC20)99,t_struct(WrapExecutionParams)4679_storage)","astId":4790,"label":"wrapInfo","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"}]},"transientStorageLayout":null,"userdoc":{"methods":{"constructor":"Set state controller state variable","removeModule()":{"notice":"Removes this module from the CKToken, via call by the CKToken. Left with empty logic here because there are no check needed to verify removal."},"initialize(address,address)":{"notice":"Initializes this module to the CKToken with issuance-related hooks. Only callable by the CKToken's manager. Hook addresses are optional. Address(0) means that no hook will be called"},"setExchanges(address[],string[])":{"notice":"OWNER ONLY: Set exchange for passed components of the CKToken. Can be called at anytime."},"setWrapAdapters(address[],string[],address[])":{"notice":"OWNER ONLY: Set wrap adapters for passed components of the CKToken. Can be called at anytime."},"getRequiredComponentIssuanceUnits(address,uint256,bool)":{"notice":"Retrieves the addresses and units required to issue/redeem a particular quantity of CKToken."},"issueWithEther2(address,uint256,address[],uint256[],address,bool)":{"notice":"Issue ckToken with a specified amount of Eth. "},"redeemToSingleToken(address,uint256,address,address[],address,uint256)":{"notice":"Burns a user's CKToken of specified quantity, unwinds external positions, and exchange components to the specified token and return to the specified address. Does not work for debt/negative external positions."},"issueWithSingleToken2(address,address,uint256,uint256,address[],uint256[],address,bool)":{"notice":"Issue ckToken with a specified amount of a single asset with specification"}}},"devdoc":{"title":"IssuanceModule","author":"Cook Finance The IssuanceModule is a module that enables users to issue and redeem CKTokens that contain default and  non-debt external Positions. Managers are able to set an external contract hook that is called before an issuance is called.","methods":{"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"initialize(address,address)":{"params":{"_ckToken":"Instance of the CKToken to issue","_preIssueHook":"Instance of the Manager Contract with the Pre-Issuance Hook function"}},"setExchanges(address[],string[])":{"params":{"_components":"Array of components","_exchangeNames":"Array of exchange names mapping to correct component"}},"setWrapAdapters(address[],string[],address[])":{"params":{"_components":"Array of components","_underlyingTokens":"Array of underlying tokens mapping to correct component","_wrapAdapterNames":"Array of wrap adapter names mapping to correct component"}},"getRequiredComponentIssuanceUnits(address,uint256,bool)":{"params":{"_ckToken":"Instance of the CKToken to issue","_isIssue":"Boolean whether the quantity is issuance or redemption","_quantity":"Quantity of CKToken to issue"},"returns":{"_0":"address[]            List of component addresses","_1":"uint256[]            List of component units required for a given CKToken quantity"}},"issueWithEther2(address,uint256,address[],uint256[],address,bool)":{"params":{"_to":"Address to mint CKToken to","_ckToken":"Instance of the CKToken contract","_midTokens":"The mid tokens in swap route","_returnDust":"If to return left components","_weightings":"Eth distribution for each component","_minCkTokenRec":"The minimum amount of CKToken to receive"}},"redeemToSingleToken(address,uint256,address,address[],address,uint256)":{"params":{"_to":"Address to redeem CKToken to","_ckToken":"Instance of the CKToken contract","_midTokens":"The mid tokens in swap route","_redeemToken":"Address of redeem token","_ckTokenQuantity":"Quantity of the CKToken to redeem","_minRedeemTokenToRec":"Minimum redeem to to receive"}},"issueWithSingleToken2(address,address,uint256,uint256,address[],uint256[],address,bool)":{"params":{"_to":"Address to mint CKToken to","_ckToken":"Instance of the CKToken contract","_midTokens":"The mid tokens in swap route","_issueToken":"token used to issue with","_returnDust":"If to return left components","_weightings":"Eth distribution for each component","_minCkTokenRec":"The minimum amount of CKToken to receive","_issueTokenQuantity":"amount of issue tokens"}}}},"sourceIds":{"IssuanceModuleV2.sol":{"id":0}},"additionalInput":null,"stdJsonInput":{"sources":{"IssuanceModuleV2.sol":{"content":"// Sources flattened with hardhat v2.6.1 https://hardhat.org\r\n\r\n// File @openzeppelin/contracts/GSN/Context.sol@v3.3.0\r\n\r\n// SPDX-License-Identifier: MIT\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/*\r\n * @dev Provides information about the current execution context, including the\r\n * sender of the transaction and its data. While these are generally available\r\n * via msg.sender and msg.data, they should not be accessed in such a direct\r\n * manner, since when dealing with GSN meta-transactions the account sending and\r\n * paying for execution may not be the actual sender (as far as an application\r\n * is concerned).\r\n *\r\n * This contract is only required for intermediate, library-like contracts.\r\n */\r\nabstract contract Context {\r\n    function _msgSender() internal view virtual returns (address payable) {\r\n        return msg.sender;\r\n    }\r\n\r\n    function _msgData() internal view virtual returns (bytes memory) {\r\n        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\r\n        return msg.data;\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v3.3.0\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/**\r\n * @dev Interface of the ERC20 standard as defined in the EIP.\r\n */\r\ninterface IERC20 {\r\n    /**\r\n     * @dev Returns the amount of tokens in existence.\r\n     */\r\n    function totalSupply() external view returns (uint256);\r\n\r\n    /**\r\n     * @dev Returns the amount of tokens owned by `account`.\r\n     */\r\n    function balanceOf(address account) external view returns (uint256);\r\n\r\n    /**\r\n     * @dev Moves `amount` tokens from the caller's account to `recipient`.\r\n     *\r\n     * Returns a boolean value indicating whether the operation succeeded.\r\n     *\r\n     * Emits a {Transfer} event.\r\n     */\r\n    function transfer(address recipient, uint256 amount) external returns (bool);\r\n\r\n    /**\r\n     * @dev Returns the remaining number of tokens that `spender` will be\r\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\r\n     * zero by default.\r\n     *\r\n     * This value changes when {approve} or {transferFrom} are called.\r\n     */\r\n    function allowance(address owner, address spender) external view returns (uint256);\r\n\r\n    /**\r\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\r\n     *\r\n     * Returns a boolean value indicating whether the operation succeeded.\r\n     *\r\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\r\n     * that someone may use both the old and the new allowance by unfortunate\r\n     * transaction ordering. One possible solution to mitigate this race\r\n     * condition is to first reduce the spender's allowance to 0 and set the\r\n     * desired value afterwards:\r\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\r\n     *\r\n     * Emits an {Approval} event.\r\n     */\r\n    function approve(address spender, uint256 amount) external returns (bool);\r\n\r\n    /**\r\n     * @dev Moves `amount` tokens from `sender` to `recipient` using the\r\n     * allowance mechanism. `amount` is then deducted from the caller's\r\n     * allowance.\r\n     *\r\n     * Returns a boolean value indicating whether the operation succeeded.\r\n     *\r\n     * Emits a {Transfer} event.\r\n     */\r\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\r\n\r\n    /**\r\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\r\n     * another (`to`).\r\n     *\r\n     * Note that `value` may be zero.\r\n     */\r\n    event Transfer(address indexed from, address indexed to, uint256 value);\r\n\r\n    /**\r\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\r\n     * a call to {approve}. `value` is the new allowance.\r\n     */\r\n    event Approval(address indexed owner, address indexed spender, uint256 value);\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/math/SafeMath.sol@v3.3.0\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/**\r\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\r\n * checks.\r\n *\r\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\r\n * in bugs, because programmers usually assume that an overflow raises an\r\n * error, which is the standard behavior in high level programming languages.\r\n * `SafeMath` restores this intuition by reverting the transaction when an\r\n * operation overflows.\r\n *\r\n * Using this library instead of the unchecked operations eliminates an entire\r\n * class of bugs, so it's recommended to use it always.\r\n */\r\nlibrary SafeMath {\r\n    /**\r\n     * @dev Returns the addition of two unsigned integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `+` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Addition cannot overflow.\r\n     */\r\n    function add(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        uint256 c = a + b;\r\n        require(c >= a, \"SafeMath: addition overflow\");\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the subtraction of two unsigned integers, reverting on\r\n     * overflow (when the result is negative).\r\n     *\r\n     * Counterpart to Solidity's `-` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Subtraction cannot overflow.\r\n     */\r\n    function sub(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return sub(a, b, \"SafeMath: subtraction overflow\");\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\r\n     * overflow (when the result is negative).\r\n     *\r\n     * Counterpart to Solidity's `-` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Subtraction cannot overflow.\r\n     */\r\n    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n        require(b <= a, errorMessage);\r\n        uint256 c = a - b;\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the multiplication of two unsigned integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `*` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Multiplication cannot overflow.\r\n     */\r\n    function mul(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\r\n        // benefit is lost if 'b' is also tested.\r\n        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\r\n        if (a == 0) {\r\n            return 0;\r\n        }\r\n\r\n        uint256 c = a * b;\r\n        require(c / a == b, \"SafeMath: multiplication overflow\");\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the integer division of two unsigned integers. Reverts on\r\n     * division by zero. The result is rounded towards zero.\r\n     *\r\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\r\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\r\n     * uses an invalid opcode to revert (consuming all remaining gas).\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The divisor cannot be zero.\r\n     */\r\n    function div(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return div(a, b, \"SafeMath: division by zero\");\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on\r\n     * division by zero. The result is rounded towards zero.\r\n     *\r\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\r\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\r\n     * uses an invalid opcode to revert (consuming all remaining gas).\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The divisor cannot be zero.\r\n     */\r\n    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n        require(b > 0, errorMessage);\r\n        uint256 c = a / b;\r\n        // assert(a == b * c + a % b); // There is no case in which this doesn't hold\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r\n     * Reverts when dividing by zero.\r\n     *\r\n     * Counterpart to Solidity's `%` operator. This function uses a `revert`\r\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\r\n     * invalid opcode to revert (consuming all remaining gas).\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The divisor cannot be zero.\r\n     */\r\n    function mod(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return mod(a, b, \"SafeMath: modulo by zero\");\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r\n     * Reverts with custom message when dividing by zero.\r\n     *\r\n     * Counterpart to Solidity's `%` operator. This function uses a `revert`\r\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\r\n     * invalid opcode to revert (consuming all remaining gas).\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The divisor cannot be zero.\r\n     */\r\n    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n        require(b != 0, errorMessage);\r\n        return a % b;\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/token/ERC20/ERC20.sol@v3.3.0\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n\r\n\r\n/**\r\n * @dev Implementation of the {IERC20} interface.\r\n *\r\n * This implementation is agnostic to the way tokens are created. This means\r\n * that a supply mechanism has to be added in a derived contract using {_mint}.\r\n * For a generic mechanism see {ERC20PresetMinterPauser}.\r\n *\r\n * TIP: For a detailed writeup see our guide\r\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\r\n * to implement supply mechanisms].\r\n *\r\n * We have followed general OpenZeppelin guidelines: functions revert instead\r\n * of returning `false` on failure. This behavior is nonetheless conventional\r\n * and does not conflict with the expectations of ERC20 applications.\r\n *\r\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\r\n * This allows applications to reconstruct the allowance for all accounts just\r\n * by listening to said events. Other implementations of the EIP may not emit\r\n * these events, as it isn't required by the specification.\r\n *\r\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\r\n * functions have been added to mitigate the well-known issues around setting\r\n * allowances. See {IERC20-approve}.\r\n */\r\ncontract ERC20 is Context, IERC20 {\r\n    using SafeMath for uint256;\r\n\r\n    mapping (address => uint256) private _balances;\r\n\r\n    mapping (address => mapping (address => uint256)) private _allowances;\r\n\r\n    uint256 private _totalSupply;\r\n\r\n    string private _name;\r\n    string private _symbol;\r\n    uint8 private _decimals;\r\n\r\n    /**\r\n     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\r\n     * a default value of 18.\r\n     *\r\n     * To select a different value for {decimals}, use {_setupDecimals}.\r\n     *\r\n     * All three of these values are immutable: they can only be set once during\r\n     * construction.\r\n     */\r\n    constructor (string memory name_, string memory symbol_) public {\r\n        _name = name_;\r\n        _symbol = symbol_;\r\n        _decimals = 18;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the name of the token.\r\n     */\r\n    function name() public view returns (string memory) {\r\n        return _name;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the symbol of the token, usually a shorter version of the\r\n     * name.\r\n     */\r\n    function symbol() public view returns (string memory) {\r\n        return _symbol;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the number of decimals used to get its user representation.\r\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\r\n     * be displayed to a user as `5,05` (`505 / 10 ** 2`).\r\n     *\r\n     * Tokens usually opt for a value of 18, imitating the relationship between\r\n     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is\r\n     * called.\r\n     *\r\n     * NOTE: This information is only used for _display_ purposes: it in\r\n     * no way affects any of the arithmetic of the contract, including\r\n     * {IERC20-balanceOf} and {IERC20-transfer}.\r\n     */\r\n    function decimals() public view returns (uint8) {\r\n        return _decimals;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-totalSupply}.\r\n     */\r\n    function totalSupply() public view override returns (uint256) {\r\n        return _totalSupply;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-balanceOf}.\r\n     */\r\n    function balanceOf(address account) public view override returns (uint256) {\r\n        return _balances[account];\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-transfer}.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `recipient` cannot be the zero address.\r\n     * - the caller must have a balance of at least `amount`.\r\n     */\r\n    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\r\n        _transfer(_msgSender(), recipient, amount);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-allowance}.\r\n     */\r\n    function allowance(address owner, address spender) public view virtual override returns (uint256) {\r\n        return _allowances[owner][spender];\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-approve}.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `spender` cannot be the zero address.\r\n     */\r\n    function approve(address spender, uint256 amount) public virtual override returns (bool) {\r\n        _approve(_msgSender(), spender, amount);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-transferFrom}.\r\n     *\r\n     * Emits an {Approval} event indicating the updated allowance. This is not\r\n     * required by the EIP. See the note at the beginning of {ERC20}.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `sender` and `recipient` cannot be the zero address.\r\n     * - `sender` must have a balance of at least `amount`.\r\n     * - the caller must have allowance for ``sender``'s tokens of at least\r\n     * `amount`.\r\n     */\r\n    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\r\n        _transfer(sender, recipient, amount);\r\n        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \"ERC20: transfer amount exceeds allowance\"));\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\r\n     *\r\n     * This is an alternative to {approve} that can be used as a mitigation for\r\n     * problems described in {IERC20-approve}.\r\n     *\r\n     * Emits an {Approval} event indicating the updated allowance.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `spender` cannot be the zero address.\r\n     */\r\n    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\r\n        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\r\n     *\r\n     * This is an alternative to {approve} that can be used as a mitigation for\r\n     * problems described in {IERC20-approve}.\r\n     *\r\n     * Emits an {Approval} event indicating the updated allowance.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `spender` cannot be the zero address.\r\n     * - `spender` must have allowance for the caller of at least\r\n     * `subtractedValue`.\r\n     */\r\n    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\r\n        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \"ERC20: decreased allowance below zero\"));\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Moves tokens `amount` from `sender` to `recipient`.\r\n     *\r\n     * This is internal function is equivalent to {transfer}, and can be used to\r\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\r\n     *\r\n     * Emits a {Transfer} event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `sender` cannot be the zero address.\r\n     * - `recipient` cannot be the zero address.\r\n     * - `sender` must have a balance of at least `amount`.\r\n     */\r\n    function _transfer(address sender, address recipient, uint256 amount) internal virtual {\r\n        require(sender != address(0), \"ERC20: transfer from the zero address\");\r\n        require(recipient != address(0), \"ERC20: transfer to the zero address\");\r\n\r\n        _beforeTokenTransfer(sender, recipient, amount);\r\n\r\n        _balances[sender] = _balances[sender].sub(amount, \"ERC20: transfer amount exceeds balance\");\r\n        _balances[recipient] = _balances[recipient].add(amount);\r\n        emit Transfer(sender, recipient, amount);\r\n    }\r\n\r\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\r\n     * the total supply.\r\n     *\r\n     * Emits a {Transfer} event with `from` set to the zero address.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `to` cannot be the zero address.\r\n     */\r\n    function _mint(address account, uint256 amount) internal virtual {\r\n        require(account != address(0), \"ERC20: mint to the zero address\");\r\n\r\n        _beforeTokenTransfer(address(0), account, amount);\r\n\r\n        _totalSupply = _totalSupply.add(amount);\r\n        _balances[account] = _balances[account].add(amount);\r\n        emit Transfer(address(0), account, amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Destroys `amount` tokens from `account`, reducing the\r\n     * total supply.\r\n     *\r\n     * Emits a {Transfer} event with `to` set to the zero address.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `account` cannot be the zero address.\r\n     * - `account` must have at least `amount` tokens.\r\n     */\r\n    function _burn(address account, uint256 amount) internal virtual {\r\n        require(account != address(0), \"ERC20: burn from the zero address\");\r\n\r\n        _beforeTokenTransfer(account, address(0), amount);\r\n\r\n        _balances[account] = _balances[account].sub(amount, \"ERC20: burn amount exceeds balance\");\r\n        _totalSupply = _totalSupply.sub(amount);\r\n        emit Transfer(account, address(0), amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\r\n     *\r\n     * This internal function is equivalent to `approve`, and can be used to\r\n     * e.g. set automatic allowances for certain subsystems, etc.\r\n     *\r\n     * Emits an {Approval} event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `owner` cannot be the zero address.\r\n     * - `spender` cannot be the zero address.\r\n     */\r\n    function _approve(address owner, address spender, uint256 amount) internal virtual {\r\n        require(owner != address(0), \"ERC20: approve from the zero address\");\r\n        require(spender != address(0), \"ERC20: approve to the zero address\");\r\n\r\n        _allowances[owner][spender] = amount;\r\n        emit Approval(owner, spender, amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Sets {decimals} to a value other than the default one of 18.\r\n     *\r\n     * WARNING: This function should only be called from the constructor. Most\r\n     * applications that interact with token contracts will not expect\r\n     * {decimals} to ever change, and may work incorrectly if it does.\r\n     */\r\n    function _setupDecimals(uint8 decimals_) internal {\r\n        _decimals = decimals_;\r\n    }\r\n\r\n    /**\r\n     * @dev Hook that is called before any transfer of tokens. This includes\r\n     * minting and burning.\r\n     *\r\n     * Calling conditions:\r\n     *\r\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\r\n     * will be to transferred to `to`.\r\n     * - when `from` is zero, `amount` tokens will be minted for `to`.\r\n     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\r\n     * - `from` and `to` are never both zero.\r\n     *\r\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\r\n     */\r\n    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/access/Ownable.sol@v3.3.0\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/**\r\n * @dev Contract module which provides a basic access control mechanism, where\r\n * there is an account (an owner) that can be granted exclusive access to\r\n * specific functions.\r\n *\r\n * By default, the owner account will be the one that deploys the contract. This\r\n * can later be changed with {transferOwnership}.\r\n *\r\n * This module is used through inheritance. It will make available the modifier\r\n * `onlyOwner`, which can be applied to your functions to restrict their use to\r\n * the owner.\r\n */\r\nabstract contract Ownable is Context {\r\n    address private _owner;\r\n\r\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\r\n\r\n    /**\r\n     * @dev Initializes the contract setting the deployer as the initial owner.\r\n     */\r\n    constructor () internal {\r\n        address msgSender = _msgSender();\r\n        _owner = msgSender;\r\n        emit OwnershipTransferred(address(0), msgSender);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the address of the current owner.\r\n     */\r\n    function owner() public view returns (address) {\r\n        return _owner;\r\n    }\r\n\r\n    /**\r\n     * @dev Throws if called by any account other than the owner.\r\n     */\r\n    modifier onlyOwner() {\r\n        require(_owner == _msgSender(), \"Ownable: caller is not the owner\");\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @dev Leaves the contract without owner. It will not be possible to call\r\n     * `onlyOwner` functions anymore. Can only be called by the current owner.\r\n     *\r\n     * NOTE: Renouncing ownership will leave the contract without an owner,\r\n     * thereby removing any functionality that is only available to the owner.\r\n     */\r\n    function renounceOwnership() public virtual onlyOwner {\r\n        emit OwnershipTransferred(_owner, address(0));\r\n        _owner = address(0);\r\n    }\r\n\r\n    /**\r\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\r\n     * Can only be called by the current owner.\r\n     */\r\n    function transferOwnership(address newOwner) public virtual onlyOwner {\r\n        require(newOwner != address(0), \"Ownable: new owner is the zero address\");\r\n        emit OwnershipTransferred(_owner, newOwner);\r\n        _owner = newOwner;\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/utils/ReentrancyGuard.sol@v3.3.0\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/**\r\n * @dev Contract module that helps prevent reentrant calls to a function.\r\n *\r\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\r\n * available, which can be applied to functions to make sure there are no nested\r\n * (reentrant) calls to them.\r\n *\r\n * Note that because there is a single `nonReentrant` guard, functions marked as\r\n * `nonReentrant` may not call one another. This can be worked around by making\r\n * those functions `private`, and then adding `external` `nonReentrant` entry\r\n * points to them.\r\n *\r\n * TIP: If you would like to learn more about reentrancy and alternative ways\r\n * to protect against it, check out our blog post\r\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\r\n */\r\nabstract contract ReentrancyGuard {\r\n    // Booleans are more expensive than uint256 or any type that takes up a full\r\n    // word because each write operation emits an extra SLOAD to first read the\r\n    // slot's contents, replace the bits taken up by the boolean, and then write\r\n    // back. This is the compiler's defense against contract upgrades and\r\n    // pointer aliasing, and it cannot be disabled.\r\n\r\n    // The values being non-zero value makes deployment a bit more expensive,\r\n    // but in exchange the refund on every call to nonReentrant will be lower in\r\n    // amount. Since refunds are capped to a percentage of the total\r\n    // transaction's gas, it is best to keep them low in cases like this one, to\r\n    // increase the likelihood of the full refund coming into effect.\r\n    uint256 private constant _NOT_ENTERED = 1;\r\n    uint256 private constant _ENTERED = 2;\r\n\r\n    uint256 private _status;\r\n\r\n    constructor () internal {\r\n        _status = _NOT_ENTERED;\r\n    }\r\n\r\n    /**\r\n     * @dev Prevents a contract from calling itself, directly or indirectly.\r\n     * Calling a `nonReentrant` function from another `nonReentrant`\r\n     * function is not supported. It is possible to prevent this from happening\r\n     * by making the `nonReentrant` function external, and make it call a\r\n     * `private` function that does the actual work.\r\n     */\r\n    modifier nonReentrant() {\r\n        // On the first call to nonReentrant, _notEntered will be true\r\n        require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\r\n\r\n        // Any calls to nonReentrant after this point will fail\r\n        _status = _ENTERED;\r\n\r\n        _;\r\n\r\n        // By storing the original value once again, a refund is triggered (see\r\n        // https://eips.ethereum.org/EIPS/eip-2200)\r\n        _status = _NOT_ENTERED;\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/utils/SafeCast.sol@v3.3.0\r\n\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n\r\n/**\r\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\r\n * checks.\r\n *\r\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\r\n * easily result in undesired exploitation or bugs, since developers usually\r\n * assume that overflows raise errors. `SafeCast` restores this intuition by\r\n * reverting the transaction when such an operation overflows.\r\n *\r\n * Using this library instead of the unchecked operations eliminates an entire\r\n * class of bugs, so it's recommended to use it always.\r\n *\r\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\r\n * all math on `uint256` and `int256` and then downcasting.\r\n */\r\nlibrary SafeCast {\r\n\r\n    /**\r\n     * @dev Returns the downcasted uint128 from uint256, reverting on\r\n     * overflow (when the input is greater than largest uint128).\r\n     *\r\n     * Counterpart to Solidity's `uint128` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 128 bits\r\n     */\r\n    function toUint128(uint256 value) internal pure returns (uint128) {\r\n        require(value < 2**128, \"SafeCast: value doesn\\'t fit in 128 bits\");\r\n        return uint128(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted uint64 from uint256, reverting on\r\n     * overflow (when the input is greater than largest uint64).\r\n     *\r\n     * Counterpart to Solidity's `uint64` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 64 bits\r\n     */\r\n    function toUint64(uint256 value) internal pure returns (uint64) {\r\n        require(value < 2**64, \"SafeCast: value doesn\\'t fit in 64 bits\");\r\n        return uint64(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted uint32 from uint256, reverting on\r\n     * overflow (when the input is greater than largest uint32).\r\n     *\r\n     * Counterpart to Solidity's `uint32` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 32 bits\r\n     */\r\n    function toUint32(uint256 value) internal pure returns (uint32) {\r\n        require(value < 2**32, \"SafeCast: value doesn\\'t fit in 32 bits\");\r\n        return uint32(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted uint16 from uint256, reverting on\r\n     * overflow (when the input is greater than largest uint16).\r\n     *\r\n     * Counterpart to Solidity's `uint16` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 16 bits\r\n     */\r\n    function toUint16(uint256 value) internal pure returns (uint16) {\r\n        require(value < 2**16, \"SafeCast: value doesn\\'t fit in 16 bits\");\r\n        return uint16(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted uint8 from uint256, reverting on\r\n     * overflow (when the input is greater than largest uint8).\r\n     *\r\n     * Counterpart to Solidity's `uint8` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 8 bits.\r\n     */\r\n    function toUint8(uint256 value) internal pure returns (uint8) {\r\n        require(value < 2**8, \"SafeCast: value doesn\\'t fit in 8 bits\");\r\n        return uint8(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Converts a signed int256 into an unsigned uint256.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must be greater than or equal to 0.\r\n     */\r\n    function toUint256(int256 value) internal pure returns (uint256) {\r\n        require(value >= 0, \"SafeCast: value must be positive\");\r\n        return uint256(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted int128 from int256, reverting on\r\n     * overflow (when the input is less than smallest int128 or\r\n     * greater than largest int128).\r\n     *\r\n     * Counterpart to Solidity's `int128` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 128 bits\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function toInt128(int256 value) internal pure returns (int128) {\r\n        require(value >= -2**127 && value < 2**127, \"SafeCast: value doesn\\'t fit in 128 bits\");\r\n        return int128(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted int64 from int256, reverting on\r\n     * overflow (when the input is less than smallest int64 or\r\n     * greater than largest int64).\r\n     *\r\n     * Counterpart to Solidity's `int64` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 64 bits\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function toInt64(int256 value) internal pure returns (int64) {\r\n        require(value >= -2**63 && value < 2**63, \"SafeCast: value doesn\\'t fit in 64 bits\");\r\n        return int64(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted int32 from int256, reverting on\r\n     * overflow (when the input is less than smallest int32 or\r\n     * greater than largest int32).\r\n     *\r\n     * Counterpart to Solidity's `int32` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 32 bits\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function toInt32(int256 value) internal pure returns (int32) {\r\n        require(value >= -2**31 && value < 2**31, \"SafeCast: value doesn\\'t fit in 32 bits\");\r\n        return int32(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted int16 from int256, reverting on\r\n     * overflow (when the input is less than smallest int16 or\r\n     * greater than largest int16).\r\n     *\r\n     * Counterpart to Solidity's `int16` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 16 bits\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function toInt16(int256 value) internal pure returns (int16) {\r\n        require(value >= -2**15 && value < 2**15, \"SafeCast: value doesn\\'t fit in 16 bits\");\r\n        return int16(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the downcasted int8 from int256, reverting on\r\n     * overflow (when the input is less than smallest int8 or\r\n     * greater than largest int8).\r\n     *\r\n     * Counterpart to Solidity's `int8` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must fit into 8 bits.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function toInt8(int256 value) internal pure returns (int8) {\r\n        require(value >= -2**7 && value < 2**7, \"SafeCast: value doesn\\'t fit in 8 bits\");\r\n        return int8(value);\r\n    }\r\n\r\n    /**\r\n     * @dev Converts an unsigned uint256 into a signed int256.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - input must be less than or equal to maxInt256.\r\n     */\r\n    function toInt256(uint256 value) internal pure returns (int256) {\r\n        require(value < 2**255, \"SafeCast: value doesn't fit in an int256\");\r\n        return int256(value);\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/math/SignedSafeMath.sol@v3.3.0\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n/**\r\n * @title SignedSafeMath\r\n * @dev Signed math operations with safety checks that revert on error.\r\n */\r\nlibrary SignedSafeMath {\r\n    int256 constant private _INT256_MIN = -2**255;\r\n\r\n    /**\r\n     * @dev Returns the multiplication of two signed integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `*` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Multiplication cannot overflow.\r\n     */\r\n    function mul(int256 a, int256 b) internal pure returns (int256) {\r\n        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\r\n        // benefit is lost if 'b' is also tested.\r\n        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\r\n        if (a == 0) {\r\n            return 0;\r\n        }\r\n\r\n        require(!(a == -1 && b == _INT256_MIN), \"SignedSafeMath: multiplication overflow\");\r\n\r\n        int256 c = a * b;\r\n        require(c / a == b, \"SignedSafeMath: multiplication overflow\");\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the integer division of two signed integers. Reverts on\r\n     * division by zero. The result is rounded towards zero.\r\n     *\r\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\r\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\r\n     * uses an invalid opcode to revert (consuming all remaining gas).\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The divisor cannot be zero.\r\n     */\r\n    function div(int256 a, int256 b) internal pure returns (int256) {\r\n        require(b != 0, \"SignedSafeMath: division by zero\");\r\n        require(!(b == -1 && a == _INT256_MIN), \"SignedSafeMath: division overflow\");\r\n\r\n        int256 c = a / b;\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the subtraction of two signed integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `-` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Subtraction cannot overflow.\r\n     */\r\n    function sub(int256 a, int256 b) internal pure returns (int256) {\r\n        int256 c = a - b;\r\n        require((b >= 0 && c <= a) || (b < 0 && c > a), \"SignedSafeMath: subtraction overflow\");\r\n\r\n        return c;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the addition of two signed integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `+` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Addition cannot overflow.\r\n     */\r\n    function add(int256 a, int256 b) internal pure returns (int256) {\r\n        int256 c = a + b;\r\n        require((b >= 0 && c >= a) || (b < 0 && c < a), \"SignedSafeMath: addition overflow\");\r\n\r\n        return c;\r\n    }\r\n}\r\n\r\n\r\n// File contracts/lib/AddressArrayUtils.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n/**\r\n * @title AddressArrayUtils\r\n * @author Cook Finance\r\n *\r\n * Utility functions to handle Address Arrays\r\n */\r\nlibrary AddressArrayUtils {\r\n\r\n    /**\r\n     * Finds the index of the first occurrence of the given element.\r\n     * @param A The input array to search\r\n     * @param a The value to find\r\n     * @return Returns (index and isIn) for the first occurrence starting from index 0\r\n     */\r\n    function indexOf(address[] memory A, address a) internal pure returns (uint256, bool) {\r\n        uint256 length = A.length;\r\n        for (uint256 i = 0; i < length; i++) {\r\n            if (A[i] == a) {\r\n                return (i, true);\r\n            }\r\n        }\r\n        return (uint256(-1), false);\r\n    }\r\n\r\n    /**\r\n    * Returns true if the value is present in the list. Uses indexOf internally.\r\n    * @param A The input array to search\r\n    * @param a The value to find\r\n    * @return Returns isIn for the first occurrence starting from index 0\r\n    */\r\n    function contains(address[] memory A, address a) internal pure returns (bool) {\r\n        (, bool isIn) = indexOf(A, a);\r\n        return isIn;\r\n    }\r\n\r\n    /**\r\n    * Returns true if there are 2 elements that are the same in an array\r\n    * @param A The input array to search\r\n    * @return Returns boolean for the first occurrence of a duplicate\r\n    */\r\n    function hasDuplicate(address[] memory A) internal pure returns(bool) {\r\n        require(A.length > 0, \"A is empty\");\r\n\r\n        for (uint256 i = 0; i < A.length - 1; i++) {\r\n            address current = A[i];\r\n            for (uint256 j = i + 1; j < A.length; j++) {\r\n                if (current == A[j]) {\r\n                    return true;\r\n                }\r\n            }\r\n        }\r\n        return false;\r\n    }\r\n\r\n    /**\r\n     * @param A The input array to search\r\n     * @param a The address to remove     \r\n     * @return Returns the array with the object removed.\r\n     */\r\n    function remove(address[] memory A, address a)\r\n        internal\r\n        pure\r\n        returns (address[] memory)\r\n    {\r\n        (uint256 index, bool isIn) = indexOf(A, a);\r\n        if (!isIn) {\r\n            revert(\"Address not in array.\");\r\n        } else {\r\n            (address[] memory _A,) = pop(A, index);\r\n            return _A;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @param A The input array to search\r\n     * @param a The address to remove\r\n     */\r\n    function removeStorage(address[] storage A, address a)\r\n        internal\r\n    {\r\n        (uint256 index, bool isIn) = indexOf(A, a);\r\n        if (!isIn) {\r\n            revert(\"Address not in array.\");\r\n        } else {\r\n            uint256 lastIndex = A.length - 1; // If the array would be empty, the previous line would throw, so no underflow here\r\n            if (index != lastIndex) { A[index] = A[lastIndex]; }\r\n            A.pop();\r\n        }\r\n    }\r\n\r\n    /**\r\n    * Removes specified index from array\r\n    * @param A The input array to search\r\n    * @param index The index to remove\r\n    * @return Returns the new array and the removed entry\r\n    */\r\n    function pop(address[] memory A, uint256 index)\r\n        internal\r\n        pure\r\n        returns (address[] memory, address)\r\n    {\r\n        uint256 length = A.length;\r\n        require(index < A.length, \"Index must be < A length\");\r\n        address[] memory newAddresses = new address[](length - 1);\r\n        for (uint256 i = 0; i < index; i++) {\r\n            newAddresses[i] = A[i];\r\n        }\r\n        for (uint256 j = index + 1; j < length; j++) {\r\n            newAddresses[j - 1] = A[j];\r\n        }\r\n        return (newAddresses, A[index]);\r\n    }\r\n\r\n    /**\r\n     * Returns the combination of the two arrays\r\n     * @param A The first array\r\n     * @param B The second array\r\n     * @return Returns A extended by B\r\n     */\r\n    function extend(address[] memory A, address[] memory B) internal pure returns (address[] memory) {\r\n        uint256 aLength = A.length;\r\n        uint256 bLength = B.length;\r\n        address[] memory newAddresses = new address[](aLength + bLength);\r\n        for (uint256 i = 0; i < aLength; i++) {\r\n            newAddresses[i] = A[i];\r\n        }\r\n        for (uint256 j = 0; j < bLength; j++) {\r\n            newAddresses[aLength + j] = B[j];\r\n        }\r\n        return newAddresses;\r\n    }\r\n\r\n    /**\r\n     * Validate that address and uint array lengths match. Validate address array is not empty\r\n     * and contains no duplicate elements.\r\n     *\r\n     * @param A         Array of addresses\r\n     * @param B         Array of uint\r\n     */\r\n    function validatePairsWithArray(address[] memory A, uint[] memory B) internal pure {\r\n        require(A.length == B.length, \"Array length mismatch\");\r\n        _validateLengthAndUniqueness(A);\r\n    }\r\n\r\n    /**\r\n     * Validate that address and bool array lengths match. Validate address array is not empty\r\n     * and contains no duplicate elements.\r\n     *\r\n     * @param A         Array of addresses\r\n     * @param B         Array of bool\r\n     */\r\n    function validatePairsWithArray(address[] memory A, bool[] memory B) internal pure {\r\n        require(A.length == B.length, \"Array length mismatch\");\r\n        _validateLengthAndUniqueness(A);\r\n    }\r\n\r\n    /**\r\n     * Validate that address and string array lengths match. Validate address array is not empty\r\n     * and contains no duplicate elements.\r\n     *\r\n     * @param A         Array of addresses\r\n     * @param B         Array of strings\r\n     */\r\n    function validatePairsWithArray(address[] memory A, string[] memory B) internal pure {\r\n        require(A.length == B.length, \"Array length mismatch\");\r\n        _validateLengthAndUniqueness(A);\r\n    }\r\n\r\n    /**\r\n     * Validate that address array lengths match, and calling address array are not empty\r\n     * and contain no duplicate elements.\r\n     *\r\n     * @param A         Array of addresses\r\n     * @param B         Array of addresses\r\n     */\r\n    function validatePairsWithArray(address[] memory A, address[] memory B) internal pure {\r\n        require(A.length == B.length, \"Array length mismatch\");\r\n        _validateLengthAndUniqueness(A);\r\n    }\r\n\r\n    /**\r\n     * Validate that address and bytes array lengths match. Validate address array is not empty\r\n     * and contains no duplicate elements.\r\n     *\r\n     * @param A         Array of addresses\r\n     * @param B         Array of bytes\r\n     */\r\n    function validatePairsWithArray(address[] memory A, bytes[] memory B) internal pure {\r\n        require(A.length == B.length, \"Array length mismatch\");\r\n        _validateLengthAndUniqueness(A);\r\n    }\r\n\r\n    /**\r\n     * Validate address array is not empty and contains no duplicate elements.\r\n     *\r\n     * @param A          Array of addresses\r\n     */\r\n    function _validateLengthAndUniqueness(address[] memory A) internal pure {\r\n        require(A.length > 0, \"Array length must be > 0\");\r\n        require(!hasDuplicate(A), \"Cannot duplicate addresses\");\r\n    }\r\n}\r\n\r\n\r\n// File contracts/interfaces/IController.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\ninterface IController {\r\n    function addCK(address _ckToken) external;\r\n    function feeRecipient() external view returns(address);\r\n    function getModuleFee(address _module, uint256 _feeType) external view returns(uint256);\r\n    function isModule(address _module) external view returns(bool);\r\n    function isCK(address _ckToken) external view returns(bool);\r\n    function isSystemContract(address _contractAddress) external view returns (bool);\r\n    function resourceId(uint256 _id) external view returns(address);\r\n}\r\n\r\n\r\n// File contracts/interfaces/ICKToken.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\npragma experimental \"ABIEncoderV2\";\r\n\r\n/**\r\n * @title ICKToken\r\n * @author Cook Finance\r\n *\r\n * Interface for operating with CKTokens.\r\n */\r\ninterface ICKToken is IERC20 {\r\n\r\n    /* ============ Enums ============ */\r\n\r\n    enum ModuleState {\r\n        NONE,\r\n        PENDING,\r\n        INITIALIZED\r\n    }\r\n\r\n    /* ============ Structs ============ */\r\n    /**\r\n     * The base definition of a CKToken Position\r\n     *\r\n     * @param component           Address of token in the Position\r\n     * @param module              If not in default state, the address of associated module\r\n     * @param unit                Each unit is the # of components per 10^18 of a CKToken\r\n     * @param positionState       Position ENUM. Default is 0; External is 1\r\n     * @param data                Arbitrary data\r\n     */\r\n    struct Position {\r\n        address component;\r\n        address module;\r\n        int256 unit;\r\n        uint8 positionState;\r\n        bytes data;\r\n    }\r\n\r\n    /**\r\n     * A struct that stores a component's cash position details and external positions\r\n     * This data structure allows O(1) access to a component's cash position units and \r\n     * virtual units.\r\n     *\r\n     * @param virtualUnit               Virtual value of a component's DEFAULT position. Stored as virtual for efficiency\r\n     *                                  updating all units at once via the position multiplier. Virtual units are achieved\r\n     *                                  by dividing a \"real\" value by the \"positionMultiplier\"\r\n     * @param componentIndex            \r\n     * @param externalPositionModules   List of external modules attached to each external position. Each module\r\n     *                                  maps to an external position\r\n     * @param externalPositions         Mapping of module => ExternalPosition struct for a given component\r\n     */\r\n    struct ComponentPosition {\r\n      int256 virtualUnit;\r\n      address[] externalPositionModules;\r\n      mapping(address => ExternalPosition) externalPositions;\r\n    }\r\n\r\n    /**\r\n     * A struct that stores a component's external position details including virtual unit and any\r\n     * auxiliary data.\r\n     *\r\n     * @param virtualUnit       Virtual value of a component's EXTERNAL position.\r\n     * @param data              Arbitrary data\r\n     */\r\n    struct ExternalPosition {\r\n      int256 virtualUnit;\r\n      bytes data;\r\n    }\r\n\r\n\r\n    /* ============ Functions ============ */\r\n    \r\n    function addComponent(address _component) external;\r\n    function removeComponent(address _component) external;\r\n    function editDefaultPositionUnit(address _component, int256 _realUnit) external;\r\n    function addExternalPositionModule(address _component, address _positionModule) external;\r\n    function removeExternalPositionModule(address _component, address _positionModule) external;\r\n    function editExternalPositionUnit(address _component, address _positionModule, int256 _realUnit) external;\r\n    function editExternalPositionData(address _component, address _positionModule, bytes calldata _data) external;\r\n\r\n    function invoke(address _target, uint256 _value, bytes calldata _data) external returns(bytes memory);\r\n\r\n    function editPositionMultiplier(int256 _newMultiplier) external;\r\n\r\n    function mint(address _account, uint256 _quantity) external;\r\n    function burn(address _account, uint256 _quantity) external;\r\n\r\n    function lock() external;\r\n    function unlock() external;\r\n\r\n    function addModule(address _module) external;\r\n    function removeModule(address _module) external;\r\n    function initializeModule() external;\r\n\r\n    function setManager(address _manager) external;\r\n\r\n    function manager() external view returns (address);\r\n    function moduleStates(address _module) external view returns (ModuleState);\r\n    function getModules() external view returns (address[] memory);\r\n    \r\n    function getDefaultPositionRealUnit(address _component) external view returns(int256);\r\n    function getExternalPositionRealUnit(address _component, address _positionModule) external view returns(int256);\r\n    function getComponents() external view returns(address[] memory);\r\n    function getExternalPositionModules(address _component) external view returns(address[] memory);\r\n    function getExternalPositionData(address _component, address _positionModule) external view returns(bytes memory);\r\n    function isExternalPositionModule(address _component, address _module) external view returns(bool);\r\n    function isComponent(address _component) external view returns(bool);\r\n    \r\n    function positionMultiplier() external view returns (int256);\r\n    function getPositions() external view returns (Position[] memory);\r\n    function getTotalComponentRealUnits(address _component) external view returns(int256);\r\n\r\n    function isInitializedModule(address _module) external view returns(bool);\r\n    function isPendingModule(address _module) external view returns(bool);\r\n    function isLocked() external view returns (bool);\r\n}\r\n\r\n\r\n// File contracts/interfaces/IManagerIssuanceHook.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\ninterface IManagerIssuanceHook {\r\n    function invokePreIssueHook(ICKToken _ckToken, uint256 _issueQuantity, address _sender, address _to) external;\r\n    function invokePreRedeemHook(ICKToken _ckToken, uint256 _redeemQuantity, address _sender, address _to) external;\r\n}\r\n\r\n\r\n// File contracts/interfaces/IModuleIssuanceHook.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\n/**\r\n * CHANGELOG:\r\n *      - Added a module level issue hook that can be used to set state ahead of component level\r\n *        issue hooks\r\n */\r\ninterface IModuleIssuanceHook {\r\n\r\n    function moduleIssueHook(ICKToken _ckToken, uint256 _ckTokenQuantity) external;\r\n    function moduleRedeemHook(ICKToken _ckToken, uint256 _ckTokenQuantity) external;\r\n    \r\n    function componentIssueHook(\r\n        ICKToken _ckToken,\r\n        uint256 _ckTokenQuantity,\r\n        IERC20 _component,\r\n        bool _isEquity\r\n    ) external;\r\n\r\n    function componentRedeemHook(\r\n        ICKToken _ckToken,\r\n        uint256 _ckTokenQuantity,\r\n        IERC20 _component,\r\n        bool _isEquity\r\n    ) external;\r\n}\r\n\r\n\r\n// File contracts/protocol/lib/Invoke.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title Invoke\r\n * @author Cook Finance\r\n *\r\n * A collection of common utility functions for interacting with the CKToken's invoke function\r\n */\r\nlibrary Invoke {\r\n    using SafeMath for uint256;\r\n\r\n    /* ============ Internal ============ */\r\n\r\n    /**\r\n     * Instructs the CKToken to set approvals of the ERC20 token to a spender.\r\n     *\r\n     * @param _ckToken        CKToken instance to invoke\r\n     * @param _token           ERC20 token to approve\r\n     * @param _spender         The account allowed to spend the CKToken's balance\r\n     * @param _quantity        The quantity of allowance to allow\r\n     */\r\n    function invokeApprove(\r\n        ICKToken _ckToken,\r\n        address _token,\r\n        address _spender,\r\n        uint256 _quantity\r\n    )\r\n        internal\r\n    {\r\n        bytes memory callData = abi.encodeWithSignature(\"approve(address,uint256)\", _spender, _quantity);\r\n        _ckToken.invoke(_token, 0, callData);\r\n    }\r\n\r\n    /**\r\n     * Instructs the CKToken to transfer the ERC20 token to a recipient.\r\n     *\r\n     * @param _ckToken        CKToken instance to invoke\r\n     * @param _token           ERC20 token to transfer\r\n     * @param _to              The recipient account\r\n     * @param _quantity        The quantity to transfer\r\n     */\r\n    function invokeTransfer(\r\n        ICKToken _ckToken,\r\n        address _token,\r\n        address _to,\r\n        uint256 _quantity\r\n    )\r\n        internal\r\n    {\r\n        if (_quantity > 0) {\r\n            bytes memory callData = abi.encodeWithSignature(\"transfer(address,uint256)\", _to, _quantity);\r\n            _ckToken.invoke(_token, 0, callData);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Instructs the CKToken to transfer the ERC20 token to a recipient.\r\n     * The new CKToken balance must equal the existing balance less the quantity transferred\r\n     *\r\n     * @param _ckToken        CKToken instance to invoke\r\n     * @param _token           ERC20 token to transfer\r\n     * @param _to              The recipient account\r\n     * @param _quantity        The quantity to transfer\r\n     */\r\n    function strictInvokeTransfer(\r\n        ICKToken _ckToken,\r\n        address _token,\r\n        address _to,\r\n        uint256 _quantity\r\n    )\r\n        internal\r\n    {\r\n        if (_quantity > 0) {\r\n            // Retrieve current balance of token for the CKToken\r\n            uint256 existingBalance = IERC20(_token).balanceOf(address(_ckToken));\r\n\r\n            Invoke.invokeTransfer(_ckToken, _token, _to, _quantity);\r\n\r\n            // Get new balance of transferred token for CKToken\r\n            uint256 newBalance = IERC20(_token).balanceOf(address(_ckToken));\r\n\r\n            // Verify only the transfer quantity is subtracted\r\n            require(\r\n                newBalance == existingBalance.sub(_quantity),\r\n                \"Invalid post transfer balance\"\r\n            );\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Instructs the CKToken to unwrap the passed quantity of WETH\r\n     *\r\n     * @param _ckToken        CKToken instance to invoke\r\n     * @param _weth            WETH address\r\n     * @param _quantity        The quantity to unwrap\r\n     */\r\n    function invokeUnwrapWETH(ICKToken _ckToken, address _weth, uint256 _quantity) internal {\r\n        bytes memory callData = abi.encodeWithSignature(\"withdraw(uint256)\", _quantity);\r\n        _ckToken.invoke(_weth, 0, callData);\r\n    }\r\n\r\n    /**\r\n     * Instructs the CKToken to wrap the passed quantity of ETH\r\n     *\r\n     * @param _ckToken        CKToken instance to invoke\r\n     * @param _weth            WETH address\r\n     * @param _quantity        The quantity to unwrap\r\n     */\r\n    function invokeWrapWETH(ICKToken _ckToken, address _weth, uint256 _quantity) internal {\r\n        bytes memory callData = abi.encodeWithSignature(\"deposit()\");\r\n        _ckToken.invoke(_weth, _quantity, callData);\r\n    }\r\n}\r\n\r\n\r\n// File contracts/interfaces/external/IWETH.sol\r\n\r\n/*\r\n    Copyright 2018 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n/**\r\n * @title IWETH\r\n * @author Cook Finance\r\n *\r\n * Interface for Wrapped Ether. This interface allows for interaction for wrapped ether's deposit and withdrawal\r\n * functionality.\r\n */\r\ninterface IWETH is IERC20{\r\n    function deposit()\r\n        external\r\n        payable;\r\n\r\n    function withdraw(\r\n        uint256 wad\r\n    )\r\n        external;\r\n}\r\n\r\n\r\n// File contracts/interfaces/IWrapAdapter.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title IWrapAdapter\r\n * @author Cook Finance\r\n *\r\n */\r\ninterface IWrapAdapter {\r\n\r\n    function ETH_TOKEN_ADDRESS() external view returns (address);\r\n\r\n    function getWrapCallData(\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _underlyingUnits\r\n    ) external view returns (address _subject, uint256 _value, bytes memory _calldata);\r\n\r\n    function getUnwrapCallData(\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _wrappedTokenUnits\r\n    ) external view returns (address _subject, uint256 _value, bytes memory _calldata);\r\n\r\n    function getSpenderAddress(address _underlyingToken, address _wrappedToken) external view returns(address);\r\n\r\n    function getWrapSpenderAddress(address _underlyingToken, address _wrappedToken) external view returns(address);\r\n\r\n    function getUnwrapSpenderAddress(address _underlyingToken, address _wrappedToken) external view returns(address);\r\n\r\n    function getDepositUnderlyingTokenAmount(address _underlyingToken, address _wrappedToken, uint256 _wrappedTokenAmount) external view returns(uint256);\r\n\r\n    function getWithdrawUnderlyingTokenAmount(address _underlyingToken, address _wrappedToken, uint256 _wrappedTokenAmount) external view returns(uint256);\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/utils/Address.sol@v3.3.0\r\npragma solidity >=0.6.2 <0.8.0;\r\n\r\n/**\r\n * @dev Collection of functions related to the address type\r\n */\r\nlibrary Address {\r\n    /**\r\n     * @dev Returns true if `account` is a contract.\r\n     *\r\n     * [IMPORTANT]\r\n     * ====\r\n     * It is unsafe to assume that an address for which this function returns\r\n     * false is an externally-owned account (EOA) and not a contract.\r\n     *\r\n     * Among others, `isContract` will return false for the following\r\n     * types of addresses:\r\n     *\r\n     *  - an externally-owned account\r\n     *  - a contract in construction\r\n     *  - an address where a contract will be created\r\n     *  - an address where a contract lived, but was destroyed\r\n     * ====\r\n     */\r\n    function isContract(address account) internal view returns (bool) {\r\n        // This method relies on extcodesize, which returns 0 for contracts in\r\n        // construction, since the code is only stored at the end of the\r\n        // constructor execution.\r\n\r\n        uint256 size;\r\n        // solhint-disable-next-line no-inline-assembly\r\n        assembly { size := extcodesize(account) }\r\n        return size > 0;\r\n    }\r\n\r\n    /**\r\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\r\n     * `recipient`, forwarding all available gas and reverting on errors.\r\n     *\r\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\r\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\r\n     * imposed by `transfer`, making them unable to receive funds via\r\n     * `transfer`. {sendValue} removes this limitation.\r\n     *\r\n     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\r\n     *\r\n     * IMPORTANT: because control is transferred to `recipient`, care must be\r\n     * taken to not create reentrancy vulnerabilities. Consider using\r\n     * {ReentrancyGuard} or the\r\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\r\n     */\r\n    function sendValue(address payable recipient, uint256 amount) internal {\r\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\r\n\r\n        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\r\n        (bool success, ) = recipient.call{ value: amount }(\"\");\r\n        require(success, \"Address: unable to send value, recipient may have reverted\");\r\n    }\r\n\r\n    /**\r\n     * @dev Performs a Solidity function call using a low level `call`. A\r\n     * plain`call` is an unsafe replacement for a function call: use this\r\n     * function instead.\r\n     *\r\n     * If `target` reverts with a revert reason, it is bubbled up by this\r\n     * function (like regular Solidity function calls).\r\n     *\r\n     * Returns the raw returned data. To convert to the expected return value,\r\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `target` must be a contract.\r\n     * - calling `target` with `data` must not revert.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\r\n      return functionCall(target, data, \"Address: low-level call failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\r\n     * `errorMessage` as a fallback revert reason when `target` reverts.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\r\n        return functionCallWithValue(target, data, 0, errorMessage);\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\r\n     * but also transferring `value` wei to `target`.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - the calling contract must have an ETH balance of at least `value`.\r\n     * - the called Solidity function must be `payable`.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\r\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\r\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\r\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\r\n        require(isContract(target), \"Address: call to non-contract\");\r\n\r\n        // solhint-disable-next-line avoid-low-level-calls\r\n        (bool success, bytes memory returndata) = target.call{ value: value }(data);\r\n        return _verifyCallResult(success, returndata, errorMessage);\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\r\n     * but performing a static call.\r\n     *\r\n     * _Available since v3.3._\r\n     */\r\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\r\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\r\n     * but performing a static call.\r\n     *\r\n     * _Available since v3.3._\r\n     */\r\n    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\r\n        require(isContract(target), \"Address: static call to non-contract\");\r\n\r\n        // solhint-disable-next-line avoid-low-level-calls\r\n        (bool success, bytes memory returndata) = target.staticcall(data);\r\n        return _verifyCallResult(success, returndata, errorMessage);\r\n    }\r\n\r\n    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\r\n        if (success) {\r\n            return returndata;\r\n        } else {\r\n            // Look for revert reason and bubble it up if present\r\n            if (returndata.length > 0) {\r\n                // The easiest way to bubble the revert reason is using memory via assembly\r\n\r\n                // solhint-disable-next-line no-inline-assembly\r\n                assembly {\r\n                    let returndata_size := mload(returndata)\r\n                    revert(add(32, returndata), returndata_size)\r\n                }\r\n            } else {\r\n                revert(errorMessage);\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts/token/ERC20/SafeERC20.sol@v3.3.0\r\npragma solidity >=0.6.0 <0.8.0;\r\n\r\n\r\n\r\n/**\r\n * @title SafeERC20\r\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\r\n * contract returns false). Tokens that return no value (and instead revert or\r\n * throw on failure) are also supported, non-reverting calls are assumed to be\r\n * successful.\r\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\r\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\r\n */\r\nlibrary SafeERC20 {\r\n    using SafeMath for uint256;\r\n    using Address for address;\r\n\r\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\r\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\r\n    }\r\n\r\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\r\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\r\n    }\r\n\r\n    /**\r\n     * @dev Deprecated. This function has issues similar to the ones found in\r\n     * {IERC20-approve}, and its usage is discouraged.\r\n     *\r\n     * Whenever possible, use {safeIncreaseAllowance} and\r\n     * {safeDecreaseAllowance} instead.\r\n     */\r\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\r\n        // safeApprove should only be called when setting an initial allowance,\r\n        // or when resetting it to zero. To increase and decrease it, use\r\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\r\n        // solhint-disable-next-line max-line-length\r\n        require((value == 0) || (token.allowance(address(this), spender) == 0),\r\n            \"SafeERC20: approve from non-zero to non-zero allowance\"\r\n        );\r\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\r\n    }\r\n\r\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\r\n        uint256 newAllowance = token.allowance(address(this), spender).add(value);\r\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\r\n    }\r\n\r\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\r\n        uint256 newAllowance = token.allowance(address(this), spender).sub(value, \"SafeERC20: decreased allowance below zero\");\r\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\r\n    }\r\n\r\n    /**\r\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\r\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\r\n     * @param token The token targeted by the call.\r\n     * @param data The call data (encoded using abi.encode or one of its variants).\r\n     */\r\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\r\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\r\n        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\r\n        // the target address contains contract code and also asserts for success in the low-level call.\r\n\r\n        bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\r\n        if (returndata.length > 0) { // Return data is optional\r\n            // solhint-disable-next-line max-line-length\r\n            require(abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\r\n        }\r\n    }\r\n}\r\n\r\n\r\n// File contracts/lib/ExplicitERC20.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n\r\n/**\r\n * @title ExplicitERC20\r\n * @author Cook Finance\r\n *\r\n * Utility functions for ERC20 transfers that require the explicit amount to be transferred.\r\n */\r\nlibrary ExplicitERC20 {\r\n    using SafeMath for uint256;\r\n\r\n    /**\r\n     * When given allowance, transfers a token from the \"_from\" to the \"_to\" of quantity \"_quantity\".\r\n     * Ensures that the recipient has received the correct quantity (ie no fees taken on transfer)\r\n     *\r\n     * @param _token           ERC20 token to approve\r\n     * @param _from            The account to transfer tokens from\r\n     * @param _to              The account to transfer tokens to\r\n     * @param _quantity        The quantity to transfer\r\n     */\r\n    function transferFrom(\r\n        IERC20 _token,\r\n        address _from,\r\n        address _to,\r\n        uint256 _quantity\r\n    )\r\n        internal\r\n    {\r\n        // Call specified ERC20 contract to transfer tokens (via proxy).\r\n        if (_quantity > 0) {\r\n            uint256 existingBalance = _token.balanceOf(_to);\r\n\r\n            SafeERC20.safeTransferFrom(\r\n                _token,\r\n                _from,\r\n                _to,\r\n                _quantity\r\n            );\r\n\r\n            uint256 newBalance = _token.balanceOf(_to);\r\n\r\n            // Verify transfer quantity is reflected in balance\r\n            require(\r\n                newBalance == existingBalance.add(_quantity),\r\n                \"Invalid post transfer balance\"\r\n            );\r\n        }\r\n    }\r\n}\r\n\r\n\r\n// File contracts/interfaces/IModule.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title IModule\r\n * @author Cook Finance\r\n *\r\n * Interface for interacting with Modules.\r\n */\r\ninterface IModule {\r\n    /**\r\n     * Called by a CKToken to notify that this module was removed from the CK token. Any logic can be included\r\n     * in case checks need to be made or state needs to be cleared.\r\n     */\r\n    function removeModule() external;\r\n}\r\n\r\n\r\n// File contracts/lib/PreciseUnitMath.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title PreciseUnitMath\r\n * @author Cook Finance\r\n *\r\n * Arithmetic for fixed-point numbers with 18 decimals of precision. Some functions taken from\r\n * dYdX's BaseMath library.\r\n *\r\n * CHANGELOG:\r\n * - 9/21/20: Added safePower function\r\n */\r\nlibrary PreciseUnitMath {\r\n    using SafeMath for uint256;\r\n    using SignedSafeMath for int256;\r\n\r\n    // The number One in precise units.\r\n    uint256 constant internal PRECISE_UNIT = 10 ** 18;\r\n    int256 constant internal PRECISE_UNIT_INT = 10 ** 18;\r\n\r\n    // Max unsigned integer value\r\n    uint256 constant internal MAX_UINT_256 = type(uint256).max;\r\n    // Max and min signed integer value\r\n    int256 constant internal MAX_INT_256 = type(int256).max;\r\n    int256 constant internal MIN_INT_256 = type(int256).min;\r\n\r\n    /**\r\n     * @dev Getter function since constants can't be read directly from libraries.\r\n     */\r\n    function preciseUnit() internal pure returns (uint256) {\r\n        return PRECISE_UNIT;\r\n    }\r\n\r\n    /**\r\n     * @dev Getter function since constants can't be read directly from libraries.\r\n     */\r\n    function preciseUnitInt() internal pure returns (int256) {\r\n        return PRECISE_UNIT_INT;\r\n    }\r\n\r\n    /**\r\n     * @dev Getter function since constants can't be read directly from libraries.\r\n     */\r\n    function maxUint256() internal pure returns (uint256) {\r\n        return MAX_UINT_256;\r\n    }\r\n\r\n    /**\r\n     * @dev Getter function since constants can't be read directly from libraries.\r\n     */\r\n    function maxInt256() internal pure returns (int256) {\r\n        return MAX_INT_256;\r\n    }\r\n\r\n    /**\r\n     * @dev Getter function since constants can't be read directly from libraries.\r\n     */\r\n    function minInt256() internal pure returns (int256) {\r\n        return MIN_INT_256;\r\n    }\r\n\r\n    /**\r\n     * @dev Multiplies value a by value b (result is rounded down). It's assumed that the value b is the significand\r\n     * of a number with 18 decimals precision.\r\n     */\r\n    function preciseMul(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return a.mul(b).div(PRECISE_UNIT);\r\n    }\r\n\r\n    /**\r\n     * @dev Multiplies value a by value b (result is rounded towards zero). It's assumed that the value b is the\r\n     * significand of a number with 18 decimals precision.\r\n     */\r\n    function preciseMul(int256 a, int256 b) internal pure returns (int256) {\r\n        return a.mul(b).div(PRECISE_UNIT_INT);\r\n    }\r\n\r\n    /**\r\n     * @dev Multiplies value a by value b (result is rounded up). It's assumed that the value b is the significand\r\n     * of a number with 18 decimals precision.\r\n     */\r\n    function preciseMulCeil(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        if (a == 0 || b == 0) {\r\n            return 0;\r\n        }\r\n        return a.mul(b).sub(1).div(PRECISE_UNIT).add(1);\r\n    }\r\n\r\n    /**\r\n     * @dev Divides value a by value b (result is rounded down).\r\n     */\r\n    function preciseDiv(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return a.mul(PRECISE_UNIT).div(b);\r\n    }\r\n\r\n\r\n    /**\r\n     * @dev Divides value a by value b (result is rounded towards 0).\r\n     */\r\n    function preciseDiv(int256 a, int256 b) internal pure returns (int256) {\r\n        return a.mul(PRECISE_UNIT_INT).div(b);\r\n    }\r\n\r\n    /**\r\n     * @dev Divides value a by value b (result is rounded up or away from 0).\r\n     */\r\n    function preciseDivCeil(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        require(b != 0, \"Cant divide by 0\");\r\n\r\n        return a > 0 ? a.mul(PRECISE_UNIT).sub(1).div(b).add(1) : 0;\r\n    }\r\n\r\n    /**\r\n     * @dev Divides value a by value b (result is rounded down - positive numbers toward 0 and negative away from 0).\r\n     */\r\n    function divDown(int256 a, int256 b) internal pure returns (int256) {\r\n        require(b != 0, \"Cant divide by 0\");\r\n        require(a != MIN_INT_256 || b != -1, \"Invalid input\");\r\n\r\n        int256 result = a.div(b);\r\n        if (a ^ b < 0 && a % b != 0) {\r\n            result -= 1;\r\n        }\r\n\r\n        return result;\r\n    }\r\n\r\n    /**\r\n     * @dev Multiplies value a by value b where rounding is towards the lesser number.\r\n     * (positive values are rounded towards zero and negative values are rounded away from 0).\r\n     */\r\n    function conservativePreciseMul(int256 a, int256 b) internal pure returns (int256) {\r\n        return divDown(a.mul(b), PRECISE_UNIT_INT);\r\n    }\r\n\r\n    /**\r\n     * @dev Divides value a by value b where rounding is towards the lesser number.\r\n     * (positive values are rounded towards zero and negative values are rounded away from 0).\r\n     */\r\n    function conservativePreciseDiv(int256 a, int256 b) internal pure returns (int256) {\r\n        return divDown(a.mul(PRECISE_UNIT_INT), b);\r\n    }\r\n\r\n    /**\r\n    * @dev Performs the power on a specified value, reverts on overflow.\r\n    */\r\n    function safePower(\r\n        uint256 a,\r\n        uint256 pow\r\n    )\r\n        internal\r\n        pure\r\n        returns (uint256)\r\n    {\r\n        require(a > 0, \"Value must be positive\");\r\n\r\n        uint256 result = 1;\r\n        for (uint256 i = 0; i < pow; i++){\r\n            uint256 previousResult = result;\r\n\r\n            // Using safemath multiplication prevents overflows\r\n            result = previousResult.mul(a);\r\n        }\r\n\r\n        return result;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns true if a =~ b within range, false otherwise.\r\n     */\r\n    function approximatelyEquals(uint256 a, uint256 b, uint256 range) internal pure returns (bool) {\r\n        return a <= b.add(range) && a >= b.sub(range);\r\n    }\r\n}\r\n\r\n\r\n// File contracts/protocol/lib/Position.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title Position\r\n * @author Cook Finance\r\n *\r\n * Collection of helper functions for handling and updating CKToken Positions\r\n *\r\n * CHANGELOG:\r\n *  - Updated editExternalPosition to work when no external position is associated with module\r\n */\r\nlibrary Position {\r\n    using SafeCast for uint256;\r\n    using SafeMath for uint256;\r\n    using SafeCast for int256;\r\n    using SignedSafeMath for int256;\r\n    using PreciseUnitMath for uint256;\r\n\r\n    /* ============ Helper ============ */\r\n\r\n    /**\r\n     * Returns whether the CKToken has a default position for a given component (if the real unit is > 0)\r\n     */\r\n    function hasDefaultPosition(ICKToken _ckToken, address _component) internal view returns(bool) {\r\n        return _ckToken.getDefaultPositionRealUnit(_component) > 0;\r\n    }\r\n\r\n    /**\r\n     * Returns whether the CKToken has an external position for a given component (if # of position modules is > 0)\r\n     */\r\n    function hasExternalPosition(ICKToken _ckToken, address _component) internal view returns(bool) {\r\n        return _ckToken.getExternalPositionModules(_component).length > 0;\r\n    }\r\n    \r\n    /**\r\n     * Returns whether the CKToken component default position real unit is greater than or equal to units passed in.\r\n     */\r\n    function hasSufficientDefaultUnits(ICKToken _ckToken, address _component, uint256 _unit) internal view returns(bool) {\r\n        return _ckToken.getDefaultPositionRealUnit(_component) >= _unit.toInt256();\r\n    }\r\n\r\n    /**\r\n     * Returns whether the CKToken component external position is greater than or equal to the real units passed in.\r\n     */\r\n    function hasSufficientExternalUnits(\r\n        ICKToken _ckToken,\r\n        address _component,\r\n        address _positionModule,\r\n        uint256 _unit\r\n    )\r\n        internal\r\n        view\r\n        returns(bool)\r\n    {\r\n       return _ckToken.getExternalPositionRealUnit(_component, _positionModule) >= _unit.toInt256();    \r\n    }\r\n\r\n    /**\r\n     * If the position does not exist, create a new Position and add to the CKToken. If it already exists,\r\n     * then set the position units. If the new units is 0, remove the position. Handles adding/removing of \r\n     * components where needed (in light of potential external positions).\r\n     *\r\n     * @param _ckToken           Address of CKToken being modified\r\n     * @param _component          Address of the component\r\n     * @param _newUnit            Quantity of Position units - must be >= 0\r\n     */\r\n    function editDefaultPosition(ICKToken _ckToken, address _component, uint256 _newUnit) internal {\r\n        bool isPositionFound = hasDefaultPosition(_ckToken, _component);\r\n        if (!isPositionFound && _newUnit > 0) {\r\n            // If there is no Default Position and no External Modules, then component does not exist\r\n            if (!hasExternalPosition(_ckToken, _component)) {\r\n                _ckToken.addComponent(_component);\r\n            }\r\n        } else if (isPositionFound && _newUnit == 0) {\r\n            // If there is a Default Position and no external positions, remove the component\r\n            if (!hasExternalPosition(_ckToken, _component)) {\r\n                _ckToken.removeComponent(_component);\r\n            }\r\n        }\r\n\r\n        _ckToken.editDefaultPositionUnit(_component, _newUnit.toInt256());\r\n    }\r\n\r\n    /**\r\n     * Update an external position and remove and external positions or components if necessary. The logic flows as follows:\r\n     * 1) If component is not already added then add component and external position. \r\n     * 2) If component is added but no existing external position using the passed module exists then add the external position.\r\n     * 3) If the existing position is being added to then just update the unit and data\r\n     * 4) If the position is being closed and no other external positions or default positions are associated with the component\r\n     *    then untrack the component and remove external position.\r\n     * 5) If the position is being closed and other existing positions still exist for the component then just remove the\r\n     *    external position.\r\n     *\r\n     * @param _ckToken         CKToken being updated\r\n     * @param _component        Component position being updated\r\n     * @param _module           Module external position is associated with\r\n     * @param _newUnit          Position units of new external position\r\n     * @param _data             Arbitrary data associated with the position\r\n     */\r\n    function editExternalPosition(\r\n        ICKToken _ckToken,\r\n        address _component,\r\n        address _module,\r\n        int256 _newUnit,\r\n        bytes memory _data\r\n    )\r\n        internal\r\n    {\r\n        if (_newUnit != 0) {\r\n            if (!_ckToken.isComponent(_component)) {\r\n                _ckToken.addComponent(_component);\r\n                _ckToken.addExternalPositionModule(_component, _module);\r\n            } else if (!_ckToken.isExternalPositionModule(_component, _module)) {\r\n                _ckToken.addExternalPositionModule(_component, _module);\r\n            }\r\n            _ckToken.editExternalPositionUnit(_component, _module, _newUnit);\r\n            _ckToken.editExternalPositionData(_component, _module, _data);\r\n        } else {\r\n            require(_data.length == 0, \"Passed data must be null\");\r\n            // If no default or external position remaining then remove component from components array\r\n            if (_ckToken.getExternalPositionRealUnit(_component, _module) != 0) {\r\n                address[] memory positionModules = _ckToken.getExternalPositionModules(_component);\r\n                if (_ckToken.getDefaultPositionRealUnit(_component) == 0 && positionModules.length == 1) {\r\n                    require(positionModules[0] == _module, \"External positions must be 0 to remove component\");\r\n                    _ckToken.removeComponent(_component);\r\n                }\r\n                _ckToken.removeExternalPositionModule(_component, _module);\r\n            }\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Get total notional amount of Default position\r\n     *\r\n     * @param _ckTokenSupply     Supply of CKToken in precise units (10^18)\r\n     * @param _positionUnit       Quantity of Position units\r\n     *\r\n     * @return                    Total notional amount of units\r\n     */\r\n    function getDefaultTotalNotional(uint256 _ckTokenSupply, uint256 _positionUnit) internal pure returns (uint256) {\r\n        return _ckTokenSupply.preciseMul(_positionUnit);\r\n    }\r\n\r\n    /**\r\n     * Get position unit from total notional amount\r\n     *\r\n     * @param _ckTokenSupply     Supply of CKToken in precise units (10^18)\r\n     * @param _totalNotional      Total notional amount of component prior to\r\n     * @return                    Default position unit\r\n     */\r\n    function getDefaultPositionUnit(uint256 _ckTokenSupply, uint256 _totalNotional) internal pure returns (uint256) {\r\n        return _totalNotional.preciseDiv(_ckTokenSupply);\r\n    }\r\n\r\n    /**\r\n     * Get the total tracked balance - total supply * position unit\r\n     *\r\n     * @param _ckToken           Address of the CKToken\r\n     * @param _component          Address of the component\r\n     * @return                    Notional tracked balance\r\n     */\r\n    function getDefaultTrackedBalance(ICKToken _ckToken, address _component) internal view returns(uint256) {\r\n        int256 positionUnit = _ckToken.getDefaultPositionRealUnit(_component); \r\n        return _ckToken.totalSupply().preciseMul(positionUnit.toUint256());\r\n    }\r\n\r\n    /**\r\n     * Calculates the new default position unit and performs the edit with the new unit\r\n     *\r\n     * @param _ckToken                 Address of the CKToken\r\n     * @param _component                Address of the component\r\n     * @param _ckTotalSupply           Current CKToken supply\r\n     * @param _componentPreviousBalance Pre-action component balance\r\n     * @return                          Current component balance\r\n     * @return                          Previous position unit\r\n     * @return                          New position unit\r\n     */\r\n    function calculateAndEditDefaultPosition(\r\n        ICKToken _ckToken,\r\n        address _component,\r\n        uint256 _ckTotalSupply,\r\n        uint256 _componentPreviousBalance\r\n    )\r\n        internal\r\n        returns(uint256, uint256, uint256)\r\n    {\r\n        uint256 currentBalance = IERC20(_component).balanceOf(address(_ckToken));\r\n        uint256 positionUnit = _ckToken.getDefaultPositionRealUnit(_component).toUint256();\r\n\r\n        uint256 newTokenUnit;\r\n        if (currentBalance > 0) {\r\n            newTokenUnit = calculateDefaultEditPositionUnit(\r\n                _ckTotalSupply,\r\n                _componentPreviousBalance,\r\n                currentBalance,\r\n                positionUnit\r\n            );\r\n        } else {\r\n            newTokenUnit = 0;\r\n        }\r\n\r\n        editDefaultPosition(_ckToken, _component, newTokenUnit);\r\n\r\n        return (currentBalance, positionUnit, newTokenUnit);\r\n    }\r\n\r\n    /**\r\n     * Calculate the new position unit given total notional values pre and post executing an action that changes CKToken state\r\n     * The intention is to make updates to the units without accidentally picking up airdropped assets as well.\r\n     *\r\n     * @param _ckTokenSupply     Supply of CKToken in precise units (10^18)\r\n     * @param _preTotalNotional   Total notional amount of component prior to executing action\r\n     * @param _postTotalNotional  Total notional amount of component after the executing action\r\n     * @param _prePositionUnit    Position unit of CKToken prior to executing action\r\n     * @return                    New position unit\r\n     */\r\n    function calculateDefaultEditPositionUnit(\r\n        uint256 _ckTokenSupply,\r\n        uint256 _preTotalNotional,\r\n        uint256 _postTotalNotional,\r\n        uint256 _prePositionUnit\r\n    )\r\n        internal\r\n        pure\r\n        returns (uint256)\r\n    {\r\n        // If pre action total notional amount is greater then subtract post action total notional and calculate new position units\r\n        uint256 airdroppedAmount = _preTotalNotional.sub(_prePositionUnit.preciseMul(_ckTokenSupply));\r\n        return _postTotalNotional.sub(airdroppedAmount).preciseDiv(_ckTokenSupply);\r\n    }\r\n}\r\n\r\n\r\n// File contracts/interfaces/IIntegrationRegistry.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\ninterface IIntegrationRegistry {\r\n    function addIntegration(address _module, string memory _id, address _wrapper) external;\r\n    function getIntegrationAdapter(address _module, string memory _id) external view returns(address);\r\n    function getIntegrationAdapterWithHash(address _module, bytes32 _id) external view returns(address);\r\n    function isValidIntegration(address _module, string memory _id) external view returns(bool);\r\n}\r\n\r\n\r\n// File contracts/interfaces/IPriceOracle.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\n/**\r\n * @title IPriceOracle\r\n * @author Cook Finance\r\n *\r\n * Interface for interacting with PriceOracle\r\n */\r\ninterface IPriceOracle {\r\n\r\n    /* ============ Functions ============ */\r\n\r\n    function getPrice(address _assetOne, address _assetTwo) external view returns (uint256);\r\n    function masterQuoteAsset() external view returns (address);\r\n}\r\n\r\n\r\n// File contracts/interfaces/ICKValuer.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\ninterface ICKValuer {\r\n    function calculateCKTokenValuation(ICKToken _ckToken, address _quoteAsset) external view returns (uint256);\r\n}\r\n\r\n\r\n// File contracts/protocol/lib/ResourceIdentifier.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n\r\n\r\n/**\r\n * @title ResourceIdentifier\r\n * @author Cook Finance\r\n *\r\n * A collection of utility functions to fetch information related to Resource contracts in the system\r\n */\r\nlibrary ResourceIdentifier {\r\n\r\n    // IntegrationRegistry will always be resource ID 0 in the system\r\n    uint256 constant internal INTEGRATION_REGISTRY_RESOURCE_ID = 0;\r\n    // PriceOracle will always be resource ID 1 in the system\r\n    uint256 constant internal PRICE_ORACLE_RESOURCE_ID = 1;\r\n    // CKValuer resource will always be resource ID 2 in the system\r\n    uint256 constant internal CK_VALUER_RESOURCE_ID = 2;\r\n\r\n    /* ============ Internal ============ */\r\n\r\n    /**\r\n     * Gets the instance of integration registry stored on Controller. Note: IntegrationRegistry is stored as index 0 on\r\n     * the Controller\r\n     */\r\n    function getIntegrationRegistry(IController _controller) internal view returns (IIntegrationRegistry) {\r\n        return IIntegrationRegistry(_controller.resourceId(INTEGRATION_REGISTRY_RESOURCE_ID));\r\n    }\r\n\r\n    /**\r\n     * Gets instance of price oracle on Controller. Note: PriceOracle is stored as index 1 on the Controller\r\n     */\r\n    function getPriceOracle(IController _controller) internal view returns (IPriceOracle) {\r\n        return IPriceOracle(_controller.resourceId(PRICE_ORACLE_RESOURCE_ID));\r\n    }\r\n\r\n    /**\r\n     * Gets the instance of CK valuer on Controller. Note: CKValuer is stored as index 2 on the Controller\r\n     */\r\n    function getCKValuer(IController _controller) internal view returns (ICKValuer) {\r\n        return ICKValuer(_controller.resourceId(CK_VALUER_RESOURCE_ID));\r\n    }\r\n}\r\n\r\n\r\n// File contracts/protocol/lib/ModuleBase.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @title ModuleBase\r\n * @author Cook Finance\r\n *\r\n * Abstract class that houses common Module-related state and functions.\r\n */\r\nabstract contract ModuleBase is IModule {\r\n    using AddressArrayUtils for address[];\r\n    using Invoke for ICKToken;\r\n    using Position for ICKToken;\r\n    using PreciseUnitMath for uint256;\r\n    using ResourceIdentifier for IController;\r\n    using SafeCast for int256;\r\n    using SafeCast for uint256;\r\n    using SafeMath for uint256;\r\n    using SignedSafeMath for int256;\r\n\r\n    /* ============ State Variables ============ */\r\n\r\n    // Address of the controller\r\n    IController public controller;\r\n\r\n    /* ============ Modifiers ============ */\r\n\r\n    modifier onlyManagerAndValidCK(ICKToken _ckToken) { \r\n        _validateOnlyManagerAndValidCK(_ckToken);\r\n        _;\r\n    }\r\n\r\n    modifier onlyCKManager(ICKToken _ckToken, address _caller) {\r\n        _validateOnlyCKManager(_ckToken, _caller);\r\n        _;\r\n    }\r\n\r\n    modifier onlyValidAndInitializedCK(ICKToken _ckToken) {\r\n        _validateOnlyValidAndInitializedCK(_ckToken);\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * Throws if the sender is not a CKToken's module or module not enabled\r\n     */\r\n    modifier onlyModule(ICKToken _ckToken) {\r\n        _validateOnlyModule(_ckToken);\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * Utilized during module initializations to check that the module is in pending state\r\n     * and that the CKToken is valid\r\n     */\r\n    modifier onlyValidAndPendingCK(ICKToken _ckToken) {\r\n        _validateOnlyValidAndPendingCK(_ckToken);\r\n        _;\r\n    }\r\n\r\n    /* ============ Constructor ============ */\r\n\r\n    /**\r\n     * Set state variables and map asset pairs to their oracles\r\n     *\r\n     * @param _controller             Address of controller contract\r\n     */\r\n    constructor(IController _controller) public {\r\n        controller = _controller;\r\n    }\r\n\r\n    /* ============ Internal Functions ============ */\r\n\r\n    /**\r\n     * Transfers tokens from an address (that has set allowance on the module).\r\n     *\r\n     * @param  _token          The address of the ERC20 token\r\n     * @param  _from           The address to transfer from\r\n     * @param  _to             The address to transfer to\r\n     * @param  _quantity       The number of tokens to transfer\r\n     */\r\n    function transferFrom(IERC20 _token, address _from, address _to, uint256 _quantity) internal {\r\n        ExplicitERC20.transferFrom(_token, _from, _to, _quantity);\r\n    }\r\n\r\n    /**\r\n     * Gets the integration for the module with the passed in name. Validates that the address is not empty\r\n     */\r\n    function getAndValidateAdapter(string memory _integrationName) internal view returns(address) { \r\n        bytes32 integrationHash = getNameHash(_integrationName);\r\n        return getAndValidateAdapterWithHash(integrationHash);\r\n    }\r\n\r\n    /**\r\n     * Gets the integration for the module with the passed in hash. Validates that the address is not empty\r\n     */\r\n    function getAndValidateAdapterWithHash(bytes32 _integrationHash) internal view returns(address) { \r\n        address adapter = controller.getIntegrationRegistry().getIntegrationAdapterWithHash(\r\n            address(this),\r\n            _integrationHash\r\n        );\r\n\r\n        require(adapter != address(0), \"Must be valid adapter\"); \r\n        return adapter;\r\n    }\r\n\r\n    /**\r\n     * Gets the total fee for this module of the passed in index (fee % * quantity)\r\n     */\r\n    function getModuleFee(uint256 _feeIndex, uint256 _quantity) internal view returns(uint256) {\r\n        uint256 feePercentage = controller.getModuleFee(address(this), _feeIndex);\r\n        return _quantity.preciseMul(feePercentage);\r\n    }\r\n\r\n    /**\r\n     * Pays the _feeQuantity from the _ckToken denominated in _token to the protocol fee recipient\r\n     */\r\n    function payProtocolFeeFromCKToken(ICKToken _ckToken, address _token, uint256 _feeQuantity) internal {\r\n        if (_feeQuantity > 0) {\r\n            _ckToken.strictInvokeTransfer(_token, controller.feeRecipient(), _feeQuantity); \r\n        }\r\n    }\r\n\r\n    /**\r\n     * Returns true if the module is in process of initialization on the CKToken\r\n     */\r\n    function isCKPendingInitialization(ICKToken _ckToken) internal view returns(bool) {\r\n        return _ckToken.isPendingModule(address(this));\r\n    }\r\n\r\n    /**\r\n     * Returns true if the address is the CKToken's manager\r\n     */\r\n    function isCKManager(ICKToken _ckToken, address _toCheck) internal view returns(bool) {\r\n        return _ckToken.manager() == _toCheck;\r\n    }\r\n\r\n    /**\r\n     * Returns true if CKToken must be enabled on the controller \r\n     * and module is registered on the CKToken\r\n     */\r\n    function isCKValidAndInitialized(ICKToken _ckToken) internal view returns(bool) {\r\n        return controller.isCK(address(_ckToken)) &&\r\n            _ckToken.isInitializedModule(address(this));\r\n    }\r\n\r\n    /**\r\n     * Hashes the string and returns a bytes32 value\r\n     */\r\n    function getNameHash(string memory _name) internal pure returns(bytes32) {\r\n        return keccak256(bytes(_name));\r\n    }\r\n\r\n    /* ============== Modifier Helpers ===============\r\n     * Internal functions used to reduce bytecode size\r\n     */\r\n\r\n    /**\r\n     * Caller must CKToken manager and CKToken must be valid and initialized\r\n     */\r\n    function _validateOnlyManagerAndValidCK(ICKToken _ckToken) internal view {\r\n       require(isCKManager(_ckToken, msg.sender), \"Must be the CKToken manager\");\r\n       require(isCKValidAndInitialized(_ckToken), \"Must be a valid and initialized CKToken\");\r\n    }\r\n\r\n    /**\r\n     * Caller must CKToken manager\r\n     */\r\n    function _validateOnlyCKManager(ICKToken _ckToken, address _caller) internal view {\r\n        require(isCKManager(_ckToken, _caller), \"Must be the CKToken manager\");\r\n    }\r\n\r\n    /**\r\n     * CKToken must be valid and initialized\r\n     */\r\n    function _validateOnlyValidAndInitializedCK(ICKToken _ckToken) internal view {\r\n        require(isCKValidAndInitialized(_ckToken), \"Must be a valid and initialized CKToken\");\r\n    }\r\n\r\n    /**\r\n     * Caller must be initialized module and module must be enabled on the controller\r\n     */\r\n    function _validateOnlyModule(ICKToken _ckToken) internal view {\r\n        require(\r\n            _ckToken.moduleStates(msg.sender) == ICKToken.ModuleState.INITIALIZED,\r\n            \"Only the module can call\"\r\n        );\r\n\r\n        require(\r\n            controller.isModule(msg.sender),\r\n            \"Module must be enabled on controller\"\r\n        );\r\n    }\r\n\r\n    /**\r\n     * CKToken must be in a pending state and module must be in pending state\r\n     */\r\n    function _validateOnlyValidAndPendingCK(ICKToken _ckToken) internal view {\r\n        require(controller.isCK(address(_ckToken)), \"Must be controller-enabled CKToken\");\r\n        require(isCKPendingInitialization(_ckToken), \"Must be pending initialization\");\r\n    }\r\n}\r\n\r\n\r\n// File contracts/interfaces/IExchangeAdapter.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\npragma solidity 0.6.10;\r\n\r\ninterface IExchangeAdapter {\r\n    function getSpender() external view returns(address);\r\n    function getTradeCalldata(\r\n        address _fromToken,\r\n        address _toToken,\r\n        address _toAddress,\r\n        uint256 _fromQuantity,\r\n        uint256 _minToQuantity,\r\n        bytes memory _data\r\n    )\r\n        external\r\n        view\r\n        returns (address, uint256, bytes memory);\r\n    function getMinAmountsOut(uint256 amountIn, address[] memory path) external view returns (uint256[] memory amounts);\r\n    function getMaxAmountsIn(uint256 amountOut, address[] memory path) external view returns (uint256[] memory amounts);\r\n    function generateDataParam(address[] memory path, bool _isSendTokenFixed) external pure returns (bytes memory);\r\n}\r\n\r\n\r\n// File contracts/interfaces/external/IYieldYakStrategyV2.sol\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title Yield Yak Strategy2 Interface\r\n */\r\ninterface IYieldYakStrategyV2 {\r\n\r\n    // function depositToken() external view returns (IERC20);\r\n    // function rewardToken() external view returns (address);\r\n    // function devAddr() external view returns (address);\r\n\r\n    // function MIN_TOKENS_TO_REINVEST() external view returns (uint);\r\n    // function MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST() external view returns (uint);\r\n    // function DEPOSITS_ENABLED() external view returns (bool);\r\n\r\n    // function REINVEST_REWARD_BIPS() external view returns (uint);\r\n    // function ADMIN_FEE_BIPS() external view returns (uint);\r\n    // function DEV_FEE_BIPS() external view returns (uint);\r\n\r\n    // function BIPS_DIVISOR() external view returns (uint);\r\n    // function MAX_UINT() external view returns (uint);\r\n\r\n    function deposit(uint amount) external;\r\n    function withdraw(uint amount) external; \r\n    function getSharesForDepositTokens(uint amount) external view returns (uint);\r\n    function getDepositTokensForShares(uint amount) external view returns (uint);\r\n}\r\n\r\n\r\n// File contracts/protocol/modules/IssuanceModuleV2.sol\r\n\r\n/*\r\n    Copyright 2021 Cook Finance.\r\n\r\n    Licensed under the Apache License, Version 2.0 (the \"License\");\r\n    you may not use this file except in compliance with the License.\r\n    You may obtain a copy of the License at\r\n\r\n    http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    Unless required by applicable law or agreed to in writing, software\r\n    distributed under the License is distributed on an \"AS IS\" BASIS,\r\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n    See the License for the specific language governing permissions and\r\n    limitations under the License.\r\n\r\n*/\r\n\r\npragma solidity 0.6.10;\r\n\r\n\r\n/**\r\n * @title IssuanceModule\r\n * @author Cook Finance\r\n *\r\n * The IssuanceModule is a module that enables users to issue and redeem CKTokens that contain default and \r\n * non-debt external Positions. Managers are able to set an external contract hook that is called before an\r\n * issuance is called.\r\n */\r\ncontract IssuanceModuleV2 is Ownable, ModuleBase, ReentrancyGuard {\r\n    using AddressArrayUtils for address[];\r\n    using Invoke for ICKToken;\r\n    using Position for ICKToken;\r\n    using Position for uint256;\r\n    using PreciseUnitMath for uint256;\r\n    using ResourceIdentifier for IController;\r\n    using SafeMath for uint256;\r\n    using SafeCast for int256;\r\n    using SignedSafeMath for int256;\r\n\r\n    /* ============ Struct ============ */\r\n    struct WrapExecutionParams {\r\n        string wrapAdapterName;     // Wrap adapter name\r\n        address underlyingToken;    // Underlying token address of the wrapped token, ex. WETH is the underlying token of the aETH. This will be passed to wrap adapter to get wrap/unwrap call data\r\n    }\r\n\r\n    struct TradeInfo {\r\n        ICKToken ckToken;                               // Instance of CKToken\r\n        IExchangeAdapter exchangeAdapter;               // Instance of exchange adapter contract\r\n        address sendToken;                              // Address of token being sold\r\n        address receiveToken;                           // Address of token being bought\r\n        uint256 totalSendQuantity;                      // Total quantity of sold token\r\n        uint256 totalReceiveQuantity;                   // Total quantity of token to receive back\r\n        uint256 preTradeSendTokenBalance;               // Total initial balance of token being sold\r\n        uint256 preTradeReceiveTokenBalance;            // Total initial balance of token being bought\r\n        bytes data;                                     // Arbitrary data\r\n    }\r\n\r\n    /* ============ Events ============ */\r\n\r\n    event CKTokenIssued(address indexed _ckToken, address _issuer, address _to, address _hookContract, uint256 _ckMintQuantity, uint256 _issuedTokenReturned);\r\n    event CKTokenRedeemed(address indexed _ckToken, address _redeemer, address _to, uint256 _quantity);\r\n    event AssetExchangeExecutionParamUpdated(address indexed _component, string _newExchangeName);\r\n    event AssetWrapExecutionParamUpdated(address indexed _component, string _newWrapAdapterName, address _newUnderlyingToken);\r\n    event ComponentExchanged(\r\n        ICKToken indexed _ckToken,\r\n        address indexed _sendToken,\r\n        address indexed _receiveToken,\r\n        IExchangeAdapter _exchangeAdapter,\r\n        uint256 _totalSendAmount,\r\n        uint256 _totalReceiveAmount\r\n    );\r\n    event ComponentWrapped(\r\n        ICKToken indexed _ckToken,\r\n        address indexed _underlyingToken,\r\n        address indexed _wrappedToken,\r\n        uint256 _underlyingQuantity,\r\n        uint256 _wrappedQuantity,\r\n        string _integrationName\r\n    );\r\n    event ComponentUnwrapped(\r\n        ICKToken indexed _ckToken,\r\n        address indexed _underlyingToken,\r\n        address indexed _wrappedToken,\r\n        uint256 _underlyingQuantity,\r\n        uint256 _wrappedQuantity,\r\n        string _integrationName\r\n    );\r\n\r\n    /* ============ State Variables ============ */\r\n\r\n    // Mapping of CKToken to Issuance hook configurations\r\n    mapping(ICKToken => IManagerIssuanceHook) public managerIssuanceHook;\r\n    // Mapping of asset to exchange execution parameters\r\n    mapping(IERC20 => string) public exchangeInfo;\r\n    // Mapping of asset to wrap execution parameters\r\n    mapping(IERC20 => WrapExecutionParams) public wrapInfo;\r\n    // Wrapped ETH address\r\n    IWETH public immutable weth;\r\n\r\n    /* ============ Constructor ============ */\r\n\r\n    /**\r\n     * Set state controller state variable\r\n     */\r\n    constructor(IController _controller, IWETH _weth) public ModuleBase(_controller) {\r\n        weth = _weth;\r\n    }\r\n\r\n    /* ============ External Functions ============ */\r\n\r\n    /**\r\n     * Issue ckToken with a specified amount of Eth. \r\n     *\r\n     * @param _ckToken              Instance of the CKToken contract\r\n     * @param _minCkTokenRec        The minimum amount of CKToken to receive\r\n     * @param _midTokens            The mid tokens in swap route\r\n     * @param _weightings           Eth distribution for each component\r\n     * @param _to                   Address to mint CKToken to\r\n     * @param _returnDust           If to return left components\r\n     */\r\n    function issueWithEther2 (\r\n        ICKToken _ckToken,\r\n        uint256 _minCkTokenRec,\r\n        address[] memory _midTokens,\r\n        uint256[] memory _weightings,\r\n        address _to,\r\n        bool _returnDust\r\n    )         \r\n        external\r\n        payable\r\n        nonReentrant\r\n        onlyValidAndInitializedCK(_ckToken) \r\n    {\r\n        require(msg.value > 0, \"Issue ether quantity must be > 0\");\r\n        weth.deposit{ value: msg.value }();\r\n        // Transfer the specified weth to ckToken\r\n        transferFrom(\r\n            weth,\r\n            address(this),\r\n            address(_ckToken),\r\n            msg.value\r\n        );\r\n        uint256 issueTokenRemain = _issueWithSingleToken2(_ckToken, address(weth), msg.value, _minCkTokenRec, _midTokens, _weightings, _to, _returnDust);\r\n        // transfer the remaining weth to issuer\r\n        _ckToken.strictInvokeTransfer(\r\n            address(weth),\r\n            msg.sender,\r\n            issueTokenRemain\r\n        );\r\n    }\r\n\r\n    /**\r\n     * Issue ckToken with a specified amount of a single asset with specification\r\n     *\r\n     * @param _ckToken              Instance of the CKToken contract\r\n     * @param _issueToken           token used to issue with\r\n     * @param _issueTokenQuantity   amount of issue tokens\r\n     * @param _minCkTokenRec        The minimum amount of CKToken to receive\r\n     * @param _midTokens            The mid tokens in swap route\r\n     * @param _weightings           Eth distribution for each component\r\n     * @param _to                   Address to mint CKToken to\r\n     * @param _returnDust           If to return left components\r\n     */\r\n    function issueWithSingleToken2 (\r\n        ICKToken _ckToken,\r\n        address _issueToken,\r\n        uint256 _issueTokenQuantity,\r\n        uint256 _minCkTokenRec,\r\n        address[] memory _midTokens,\r\n        uint256[] memory _weightings,  // percentage in 18 decimals and order should follow ckComponents get from a ck token\r\n        address _to,\r\n        bool _returnDust\r\n    )   \r\n        external\r\n        nonReentrant\r\n        onlyValidAndInitializedCK(_ckToken) \r\n    {\r\n        require(_issueTokenQuantity > 0, \"Issue token quantity must be > 0\");\r\n        // Transfer the specified issue token to ckToken\r\n        transferFrom(\r\n            IERC20(_issueToken),\r\n            msg.sender,\r\n            address(_ckToken),\r\n            _issueTokenQuantity\r\n        );        \r\n        \r\n        uint256 issueTokenRemain = _issueWithSingleToken2(_ckToken, _issueToken, _issueTokenQuantity, _minCkTokenRec, _midTokens, _weightings, _to, _returnDust);\r\n        // transfer the remaining weth to issuer\r\n        _ckToken.strictInvokeTransfer(\r\n            address(_issueToken),\r\n            msg.sender,\r\n            issueTokenRemain\r\n        );\r\n        \r\n    }\r\n\r\n    /**\r\n     * Burns a user's CKToken of specified quantity, unwinds external positions, and exchange components\r\n     * to the specified token and return to the specified address. Does not work for debt/negative external positions.\r\n     *\r\n     * @param _ckToken             Instance of the CKToken contract\r\n     * @param _ckTokenQuantity     Quantity of the CKToken to redeem\r\n     * @param _redeemToken         Address of redeem token\r\n     * @param _midTokens           The mid tokens in swap route\r\n     * @param _to                  Address to redeem CKToken to\r\n     * @param _minRedeemTokenToRec Minimum redeem to to receive\r\n     */\r\n    function redeemToSingleToken(\r\n        ICKToken _ckToken,\r\n        uint256 _ckTokenQuantity,\r\n        address _redeemToken,\r\n        address[] memory _midTokens,\r\n        address _to,\r\n        uint256 _minRedeemTokenToRec\r\n    )\r\n        external\r\n        nonReentrant\r\n        onlyValidAndInitializedCK(_ckToken)\r\n    {\r\n        require(_ckTokenQuantity > 0, \"Redeem quantity must be > 0\");\r\n        _ckToken.burn(msg.sender, _ckTokenQuantity);\r\n\r\n        (\r\n            address[] memory components,\r\n            uint256[] memory componentQuantities\r\n        ) = getRequiredComponentIssuanceUnits(_ckToken, _ckTokenQuantity, false);\r\n        uint256 totalRedeemTokenAcquired = 0;\r\n        require(_midTokens.length == components.length, \"_midTokens length mismatch\");\r\n        for (uint256 i = 0; i < components.length; i++) {\r\n            _executeExternalPositionHooks(_ckToken, _ckTokenQuantity, IERC20(components[i]), false);\r\n            uint256 redeemTokenAcquired = _exchangeDefaultPositionsToRedeemToken(_ckToken, _redeemToken, _midTokens[i], components[i], componentQuantities[i]);\r\n            totalRedeemTokenAcquired = totalRedeemTokenAcquired.add(redeemTokenAcquired);\r\n        }\r\n\r\n        require(totalRedeemTokenAcquired >= _minRedeemTokenToRec, \"_minRedeemTokenToRec not met\");\r\n\r\n        _ckToken.strictInvokeTransfer(\r\n            _redeemToken,\r\n            _to,\r\n            totalRedeemTokenAcquired\r\n        );\r\n\r\n        emit CKTokenRedeemed(address(_ckToken), msg.sender, _to, _ckTokenQuantity);\r\n    }\r\n\r\n    /**\r\n     * Initializes this module to the CKToken with issuance-related hooks. Only callable by the CKToken's manager.\r\n     * Hook addresses are optional. Address(0) means that no hook will be called\r\n     *\r\n     * @param _ckToken             Instance of the CKToken to issue\r\n     * @param _preIssueHook         Instance of the Manager Contract with the Pre-Issuance Hook function\r\n     */\r\n    function initialize(\r\n        ICKToken _ckToken,\r\n        IManagerIssuanceHook _preIssueHook\r\n    )\r\n        external\r\n        onlyCKManager(_ckToken, msg.sender)\r\n        onlyValidAndPendingCK(_ckToken)\r\n    {\r\n        managerIssuanceHook[_ckToken] = _preIssueHook;\r\n\r\n        _ckToken.initializeModule();\r\n    }\r\n\r\n    /**\r\n     * Removes this module from the CKToken, via call by the CKToken. Left with empty logic\r\n     * here because there are no check needed to verify removal.\r\n     */\r\n    function removeModule() external override {}\r\n\r\n    /**\r\n     * OWNER ONLY: Set exchange for passed components of the CKToken. Can be called at anytime.\r\n     *\r\n     * @param _components           Array of components\r\n     * @param _exchangeNames        Array of exchange names mapping to correct component\r\n     */\r\n    function setExchanges(\r\n        address[] memory _components,\r\n        string[] memory _exchangeNames\r\n    )\r\n        external\r\n        onlyOwner\r\n    {\r\n        _components.validatePairsWithArray(_exchangeNames);\r\n\r\n        for (uint256 i = 0; i < _components.length; i++) {\r\n            require(\r\n                controller.getIntegrationRegistry().isValidIntegration(address(this), _exchangeNames[i]),\r\n                \"Unrecognized exchange name\"\r\n            );\r\n\r\n            exchangeInfo[IERC20(_components[i])] = _exchangeNames[i];\r\n            emit AssetExchangeExecutionParamUpdated(_components[i], _exchangeNames[i]);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * OWNER ONLY: Set wrap adapters for passed components of the CKToken. Can be called at anytime.\r\n     *\r\n     * @param _components           Array of components\r\n     * @param _wrapAdapterNames     Array of wrap adapter names mapping to correct component\r\n     * @param _underlyingTokens     Array of underlying tokens mapping to correct component\r\n     */\r\n    function setWrapAdapters(\r\n        address[] memory _components,\r\n        string[] memory _wrapAdapterNames,\r\n        address[] memory _underlyingTokens\r\n    )\r\n    external\r\n    onlyOwner\r\n    {\r\n        _components.validatePairsWithArray(_wrapAdapterNames);\r\n        _components.validatePairsWithArray(_underlyingTokens);\r\n\r\n        for (uint256 i = 0; i < _components.length; i++) {\r\n            require(\r\n                controller.getIntegrationRegistry().isValidIntegration(address(this), _wrapAdapterNames[i]),\r\n                \"Unrecognized wrap adapter name\"\r\n            );\r\n\r\n            wrapInfo[IERC20(_components[i])].wrapAdapterName = _wrapAdapterNames[i];\r\n            wrapInfo[IERC20(_components[i])].underlyingToken = _underlyingTokens[i];\r\n            emit AssetWrapExecutionParamUpdated(_components[i], _wrapAdapterNames[i], _underlyingTokens[i]);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Retrieves the addresses and units required to issue/redeem a particular quantity of CKToken.\r\n     *\r\n     * @param _ckToken             Instance of the CKToken to issue\r\n     * @param _quantity             Quantity of CKToken to issue\r\n     * @param _isIssue              Boolean whether the quantity is issuance or redemption\r\n     * @return address[]            List of component addresses\r\n     * @return uint256[]            List of component units required for a given CKToken quantity\r\n     */\r\n    function getRequiredComponentIssuanceUnits(\r\n        ICKToken _ckToken,\r\n        uint256 _quantity,\r\n        bool _isIssue\r\n    )\r\n        public\r\n        view\r\n        returns (address[] memory, uint256[] memory)\r\n    {\r\n        (\r\n            address[] memory components,\r\n            uint256[] memory issuanceUnits\r\n        ) = _getTotalIssuanceUnits(_ckToken);\r\n\r\n        uint256[] memory notionalUnits = new uint256[](components.length);\r\n        for (uint256 i = 0; i < issuanceUnits.length; i++) {\r\n            // Use preciseMulCeil to round up to ensure overcollateration when small issue quantities are provided\r\n            // and preciseMul to round down to ensure overcollateration when small redeem quantities are provided\r\n            notionalUnits[i] = _isIssue ? \r\n                issuanceUnits[i].preciseMulCeil(_quantity) : \r\n                issuanceUnits[i].preciseMul(_quantity);\r\n            require(notionalUnits[i] > 0, \"component amount should not be zero\");\r\n        }\r\n\r\n        return (components, notionalUnits);\r\n    }\r\n\r\n    /* ============ Internal Functions ============ */\r\n\r\n    /**\r\n     * This is a internal implementation for issue ckToken with a specified amount of a single asset with specification. \r\n     *\r\n     * @param _ckToken              Instance of the CKToken contract\r\n     * @param _issueToken           token used to issue with\r\n     * @param _issueTokenQuantity   amount of issue tokens\r\n     * @param _minCkTokenRec        The minimum amount of CKToken to receive\r\n     * @param _midTokens            The mid tokens in swap route\r\n     * @param _weightings           Eth distribution for each component\r\n     * @param _to                   Address to mint CKToken to\r\n     * @param _returnDust           If to return left components\r\n     */\r\n    function _issueWithSingleToken2(   \r\n        ICKToken _ckToken,\r\n        address _issueToken,\r\n        uint256 _issueTokenQuantity,\r\n        uint256 _minCkTokenRec,\r\n        address[] memory _midTokens,\r\n        uint256[] memory _weightings,\r\n        address _to,\r\n        bool _returnDust\r\n    ) \r\n        internal \r\n        returns(uint256)\r\n    {\r\n        address hookContract = _callPreIssueHooks(_ckToken, _minCkTokenRec, msg.sender, _to);\r\n        address[] memory components = _ckToken.getComponents();\r\n        require(components.length == _weightings.length, \"weightings mismatch\");\r\n        require(components.length == _midTokens.length, \"midTokens mismatch\");\r\n        (uint256 maxCkTokenToIssue, uint256 returnedIssueToken) = _issueWithSpec(_ckToken, _issueToken, _issueTokenQuantity, _midTokens, _weightings, _returnDust);\r\n        require(maxCkTokenToIssue >= _minCkTokenRec, \"_minCkTokenRec not met\");\r\n\r\n        _ckToken.mint(_to, maxCkTokenToIssue);\r\n\r\n        emit CKTokenIssued(address(_ckToken), msg.sender, _to, hookContract, maxCkTokenToIssue, returnedIssueToken);        \r\n        \r\n        return returnedIssueToken;\r\n    }\r\n\r\n    function _issueWithSpec(ICKToken _ckToken, address _issueToken, uint256 _issueTokenQuantity, address[] memory _midTokens, uint256[] memory _weightings, bool _returnDust) \r\n        internal \r\n        returns(uint256, uint256)\r\n    {\r\n        uint256 maxCkTokenToIssue = PreciseUnitMath.MAX_UINT_256;\r\n        address[] memory components = _ckToken.getComponents();\r\n        uint256[] memory componentTokenReceiveds = new uint256[](components.length);\r\n\r\n        for (uint256 i = 0; i < components.length; i++) {\r\n            uint256 _issueTokenAmountToUse = _issueTokenQuantity.preciseMul(_weightings[i]).sub(1); // avoid underflow\r\n            uint256 componentRealUnitRequired = (_ckToken.getDefaultPositionRealUnit(components[i])).toUint256();\r\n            uint256 componentReceived = _tradeAndWrapComponents(_ckToken, _issueToken, _issueTokenAmountToUse, _midTokens[i] ,components[i]);\r\n            componentTokenReceiveds[i] = componentReceived;\r\n            // guarantee issue ck token amount.\r\n            uint256 maxIssue = componentReceived.preciseDiv(componentRealUnitRequired);\r\n            if (maxIssue <= maxCkTokenToIssue) {\r\n                maxCkTokenToIssue = maxIssue;\r\n            }\r\n        }   \r\n\r\n        uint256 issueTokenToReturn = _dustToReturn(_ckToken, _issueToken, _midTokens, componentTokenReceiveds, maxCkTokenToIssue, _returnDust);\r\n \r\n        return (maxCkTokenToIssue, issueTokenToReturn);\r\n    }\r\n\r\n    function _tradeAndWrapComponents(ICKToken _ckToken, address _issueToken, uint256 _issueTokenAmountToUse, address _midToken, address _component) internal returns(uint256) {\r\n        uint256 componentTokenReceived;\r\n        if (_issueToken == _component) {\r\n            componentTokenReceived = _issueTokenAmountToUse;     \r\n        } else if (wrapInfo[IERC20(_component)].underlyingToken == address(0)) {\r\n            // For underlying tokens, exchange directly\r\n            (, componentTokenReceived) = _trade(_ckToken, _issueToken, _midToken, _component, _issueTokenAmountToUse, true);\r\n        } else {\r\n            // For wrapped tokens, exchange to underlying tokens first and then wrap it\r\n            WrapExecutionParams memory wrapExecutionParams = wrapInfo[IERC20(_component)];\r\n            IWrapAdapter wrapAdapter = IWrapAdapter(getAndValidateAdapter(wrapExecutionParams.wrapAdapterName));\r\n            uint256 underlyingReceived = 0;\r\n            if (wrapExecutionParams.underlyingToken == wrapAdapter.ETH_TOKEN_ADDRESS()) {\r\n                if (_issueToken != address(weth)) {\r\n                    (, underlyingReceived) = _trade(_ckToken, _issueToken, _midToken, address(weth), _issueTokenAmountToUse, true);\r\n                } else {\r\n                    underlyingReceived = _issueTokenAmountToUse;\r\n                }\r\n                componentTokenReceived = _wrap(_ckToken, wrapExecutionParams.underlyingToken, _component, underlyingReceived, wrapExecutionParams.wrapAdapterName, true);\r\n            } else {\r\n                (, underlyingReceived) = _trade(_ckToken, _issueToken, _midToken, wrapExecutionParams.underlyingToken , _issueTokenAmountToUse, true);\r\n                componentTokenReceived = _wrap(_ckToken, wrapExecutionParams.underlyingToken, _component, underlyingReceived, wrapExecutionParams.wrapAdapterName, false);\r\n            }\r\n        }\r\n\r\n        return componentTokenReceived;\r\n    }\r\n    \r\n    /**\r\n     * Swap remaining component back to issue token.\r\n     */\r\n    function _dustToReturn(ICKToken _ckToken, address _issueToken, address[] memory _midTokens, uint256[] memory componentTokenReceiveds, uint256 maxCkTokenToIssue, bool _returnDust) internal returns(uint256) {\r\n        if (!_returnDust) {\r\n            return 0;\r\n        }\r\n        uint256 issueTokenToReturn = 0;\r\n        address[] memory components = _ckToken.getComponents();\r\n\r\n        for(uint256 i = 0; i < components.length; i++) {\r\n            uint256 requiredComponentUnit = ((_ckToken.getDefaultPositionRealUnit(components[i])).toUint256()).preciseMul(maxCkTokenToIssue);\r\n            uint256 toReturn = componentTokenReceiveds[i].sub(requiredComponentUnit);\r\n            uint256 diffPercentage = toReturn.preciseDiv(requiredComponentUnit); // percentage in 18 decimals\r\n            if (diffPercentage > (PreciseUnitMath.preciseUnit().div(10000))) { // 0.01%\r\n                issueTokenToReturn = issueTokenToReturn.add(_exchangeDefaultPositionsToRedeemToken(_ckToken, _issueToken, _midTokens[i], components[i], toReturn));\r\n            }\r\n        }     \r\n\r\n        return issueTokenToReturn;\r\n    }    \r\n\r\n    /**\r\n     * Retrieves the component addresses and list of total units for components. This will revert if the external unit\r\n     * is ever equal or less than 0 .\r\n     */\r\n    function _getTotalIssuanceUnits(ICKToken _ckToken) internal view returns (address[] memory, uint256[] memory) {\r\n        address[] memory components = _ckToken.getComponents();\r\n        uint256[] memory totalUnits = new uint256[](components.length);\r\n\r\n        for (uint256 i = 0; i < components.length; i++) {\r\n            address component = components[i];\r\n            int256 cumulativeUnits = _ckToken.getDefaultPositionRealUnit(component);\r\n\r\n            address[] memory externalModules = _ckToken.getExternalPositionModules(component);\r\n            if (externalModules.length > 0) {\r\n                for (uint256 j = 0; j < externalModules.length; j++) {\r\n                    int256 externalPositionUnit = _ckToken.getExternalPositionRealUnit(component, externalModules[j]);\r\n\r\n                    require(externalPositionUnit > 0, \"Only positive external unit positions are supported\");\r\n\r\n                    cumulativeUnits = cumulativeUnits.add(externalPositionUnit);\r\n                }\r\n            }\r\n\r\n            totalUnits[i] = cumulativeUnits.toUint256();\r\n        }\r\n\r\n        return (components, totalUnits);        \r\n    }\r\n\r\n    /**\r\n     * If a pre-issue hook has been configured, call the external-protocol contract. Pre-issue hook logic\r\n     * can contain arbitrary logic including validations, external function calls, etc.\r\n     * Note: All modules with external positions must implement ExternalPositionIssueHooks\r\n     */\r\n    function _callPreIssueHooks(\r\n        ICKToken _ckToken,\r\n        uint256 _quantity,\r\n        address _caller,\r\n        address _to\r\n    )\r\n        internal\r\n        returns(address)\r\n    {\r\n        IManagerIssuanceHook preIssueHook = managerIssuanceHook[_ckToken];\r\n        if (address(preIssueHook) != address(0)) {\r\n            preIssueHook.invokePreIssueHook(_ckToken, _quantity, _caller, _to);\r\n            return address(preIssueHook);\r\n        }\r\n\r\n        return address(0);\r\n    }\r\n\r\n    /**\r\n     * For each component's external module positions, calculate the total notional quantity, and \r\n     * call the module's issue hook or redeem hook.\r\n     * Note: It is possible that these hooks can cause the states of other modules to change.\r\n     * It can be problematic if the a hook called an external function that called back into a module, resulting in state inconsistencies.\r\n     */\r\n    function _executeExternalPositionHooks(\r\n        ICKToken _ckToken,\r\n        uint256 _ckTokenQuantity,\r\n        IERC20 _component,\r\n        bool isIssue\r\n    )\r\n        internal\r\n    {\r\n        address[] memory externalPositionModules = _ckToken.getExternalPositionModules(address(_component));\r\n        for (uint256 i = 0; i < externalPositionModules.length; i++) {\r\n            if (isIssue) {\r\n                IModuleIssuanceHook(externalPositionModules[i]).componentIssueHook(_ckToken, _ckTokenQuantity, _component, true);\r\n            } else {\r\n                IModuleIssuanceHook(externalPositionModules[i]).componentRedeemHook(_ckToken, _ckTokenQuantity, _component, true);\r\n            }\r\n        }\r\n    }\r\n\r\n    function _exchangeDefaultPositionsToRedeemToken(ICKToken _ckToken, address _redeemToken, address _midToken, address _component, uint256 _componentQuantity) internal returns(uint256) {\r\n        uint256 redeemTokenAcquired;\r\n        if (_redeemToken == _component) {\r\n            // continue if redeem token is component token\r\n            redeemTokenAcquired = _componentQuantity;\r\n        } else if (wrapInfo[IERC20(_component)].underlyingToken == address(0)) {\r\n            // For underlying tokens, exchange directly\r\n            \r\n            (, redeemTokenAcquired) = _trade(_ckToken, _component, _midToken, _redeemToken, _componentQuantity, true);\r\n        } else {\r\n            // For wrapped tokens, unwrap it and exchange underlying tokens to redeem tokens\r\n            WrapExecutionParams memory wrapExecutionParams = wrapInfo[IERC20(_component)];\r\n            IWrapAdapter wrapAdapter = IWrapAdapter(getAndValidateAdapter(wrapExecutionParams.wrapAdapterName));\r\n\r\n            (uint256 underlyingReceived, uint256 unwrappedAmount) = \r\n            _unwrap(_ckToken, wrapExecutionParams.underlyingToken, _component, _componentQuantity, wrapExecutionParams.wrapAdapterName, wrapExecutionParams.underlyingToken == wrapAdapter.ETH_TOKEN_ADDRESS());\r\n\r\n            if (wrapExecutionParams.underlyingToken == wrapAdapter.ETH_TOKEN_ADDRESS()) {\r\n                (, redeemTokenAcquired) = _trade(_ckToken, address(weth), _midToken, _redeemToken, underlyingReceived, true);                \r\n            } else {\r\n                (, redeemTokenAcquired) = _trade(_ckToken, wrapExecutionParams.underlyingToken, _midToken, _redeemToken, underlyingReceived, true);                \r\n            }    \r\n        }\r\n        return redeemTokenAcquired;\r\n    }\r\n\r\n    /**\r\n     * Take snapshot of CKToken's balance of underlying and wrapped tokens.\r\n     */\r\n    function _snapshotTargetTokenBalance(\r\n        ICKToken _ckToken,\r\n        address _targetToken\r\n    ) internal view returns(uint256) {\r\n        uint256 targetTokenBalance = IERC20(_targetToken).balanceOf(address(_ckToken));\r\n        return (targetTokenBalance);\r\n    }\r\n\r\n    /**\r\n     * Validate post trade data.\r\n     *\r\n     * @param _tradeInfo                Struct containing trade information used in internal functions\r\n     */\r\n    function _validatePostTrade(TradeInfo memory _tradeInfo) internal view returns (uint256) {\r\n        uint256 exchangedQuantity = IERC20(_tradeInfo.receiveToken)\r\n        .balanceOf(address(_tradeInfo.ckToken))\r\n        .sub(_tradeInfo.preTradeReceiveTokenBalance);\r\n\r\n        require(\r\n            exchangedQuantity >= _tradeInfo.totalReceiveQuantity, \"Slippage too big\"\r\n        );\r\n        return exchangedQuantity;\r\n    }\r\n\r\n    /**\r\n     * Validate pre trade data. Check exchange is valid, token quantity is valid.\r\n     *\r\n     * @param _tradeInfo            Struct containing trade information used in internal functions\r\n     */\r\n    function _validatePreTradeData(TradeInfo memory _tradeInfo) internal view {\r\n        require(_tradeInfo.totalSendQuantity > 0, \"Token to sell must be nonzero\");\r\n        uint256 sendTokenBalance = IERC20(_tradeInfo.sendToken).balanceOf(address(_tradeInfo.ckToken));\r\n        require(\r\n            sendTokenBalance >= _tradeInfo.totalSendQuantity,\r\n            \"total send quantity cant be greater than existing\"\r\n        );\r\n    }\r\n\r\n    /**\r\n     * Create and return TradeInfo struct\r\n     *\r\n     * @param _ckToken              Instance of the CKToken to trade\r\n     * @param _exchangeAdapter      The exchange adapter in the integrations registry\r\n     * @param _sendToken            Address of the token to be sent to the exchange\r\n     * @param _midToken             Address of the token in route\r\n     * @param _receiveToken         Address of the token that will be received from the exchange\r\n     * @param _exactQuantity        Exact token quantity during trade\r\n     * @param _isSendTokenFixed     Indicate if the send token is fixed\r\n     *\r\n     * return TradeInfo             Struct containing data for trade\r\n     */\r\n    function _createTradeInfo(\r\n        ICKToken _ckToken,\r\n        IExchangeAdapter _exchangeAdapter,\r\n        address _sendToken,\r\n        address _midToken,\r\n        address _receiveToken,\r\n        uint256 _exactQuantity,\r\n        bool _isSendTokenFixed\r\n    )\r\n        internal\r\n        view\r\n        returns (TradeInfo memory)\r\n    {\r\n        uint256 thresholdAmount;\r\n        address[] memory path;\r\n        if (_midToken == address(0) || _midToken == _sendToken || _midToken == _receiveToken) {\r\n            path = new address[](2);\r\n            path[0] = _sendToken;\r\n            path[1] = _receiveToken;\r\n        } else {\r\n            path = new address[](3);\r\n            path[0] = _sendToken;\r\n            path[1] = _midToken;\r\n            path[2] = _receiveToken;\r\n        }\r\n\r\n\r\n        TradeInfo memory tradeInfo;\r\n        tradeInfo.ckToken = _ckToken;\r\n        tradeInfo.exchangeAdapter = _exchangeAdapter;\r\n        tradeInfo.sendToken = _sendToken;\r\n        tradeInfo.receiveToken = _receiveToken;\r\n        tradeInfo.totalSendQuantity =  _exactQuantity;\r\n        tradeInfo.totalReceiveQuantity = 0;\r\n        tradeInfo.preTradeSendTokenBalance = _snapshotTargetTokenBalance(_ckToken, _sendToken);\r\n        tradeInfo.preTradeReceiveTokenBalance = _snapshotTargetTokenBalance(_ckToken, _receiveToken);\r\n        tradeInfo.data = _isSendTokenFixed ? _exchangeAdapter.generateDataParam(path, true) : _exchangeAdapter.generateDataParam(path, false);\r\n        return tradeInfo;\r\n    }\r\n\r\n    /**\r\n     * Invoke approve for send token, get method data and invoke trade in the context of the CKToken.\r\n     *\r\n     * @param _ckToken              Instance of the CKToken to trade\r\n     * @param _exchangeAdapter      Exchange adapter in the integrations registry\r\n     * @param _sendToken            Address of the token to be sent to the exchange\r\n     * @param _receiveToken         Address of the token that will be received from the exchange\r\n     * @param _sendQuantity         Units of token in CKToken sent to the exchange\r\n     * @param _receiveQuantity      Units of token in CKToken received from the exchange\r\n     * @param _data                 Arbitrary bytes to be used to construct trade call data\r\n     */\r\n    function _executeTrade(\r\n        ICKToken _ckToken,\r\n        IExchangeAdapter _exchangeAdapter,\r\n        address _sendToken,\r\n        address _receiveToken,\r\n        uint256 _sendQuantity,\r\n        uint256 _receiveQuantity,\r\n        bytes memory _data\r\n    )\r\n        internal\r\n    {\r\n        // Get spender address from exchange adapter and invoke approve for exact amount on CKToken\r\n        _ckToken.invokeApprove(\r\n            _sendToken,\r\n            _exchangeAdapter.getSpender(),\r\n            _sendQuantity\r\n        );\r\n\r\n        (\r\n            address targetExchange,\r\n            uint256 callValue,\r\n            bytes memory methodData\r\n        ) = _exchangeAdapter.getTradeCalldata(\r\n            _sendToken,\r\n            _receiveToken,\r\n            address(_ckToken),\r\n            _sendQuantity,\r\n            _receiveQuantity,\r\n            _data\r\n        );\r\n\r\n        _ckToken.invoke(targetExchange, callValue, methodData);\r\n    }\r\n\r\n    /**\r\n     * Executes a trade on a supported DEX.\r\n     *\r\n     * @param _ckToken              Instance of the CKToken to trade\r\n     * @param _sendToken            Address of the token to be sent to the exchange\r\n     * @param _midToken             _midToken\r\n     * @param _receiveToken         Address of the token that will be received from the exchange     \r\n     * @param _exactQuantity        Exact Quantity of token in CKToken to be sent or received from the exchange\r\n     * @param _isSendTokenFixed     Indicate if the send token is fixed\r\n     */\r\n    function _trade(\r\n        ICKToken _ckToken,\r\n        address _sendToken,\r\n        address _midToken,\r\n        address _receiveToken,\r\n        uint256 _exactQuantity,\r\n        bool _isSendTokenFixed\r\n    )\r\n        internal\r\n        returns (uint256, uint256)\r\n    {\r\n        if (address(_sendToken) == address(_receiveToken)) {\r\n            return (_exactQuantity, _exactQuantity);\r\n        }\r\n        TradeInfo memory tradeInfo = _createTradeInfo(\r\n            _ckToken,\r\n            IExchangeAdapter(getAndValidateAdapter(exchangeInfo[IERC20(_receiveToken)])),\r\n            _sendToken,\r\n            _midToken,\r\n            _receiveToken,\r\n            _exactQuantity,\r\n            _isSendTokenFixed\r\n        );\r\n        _validatePreTradeData(tradeInfo);\r\n        _executeTrade(tradeInfo.ckToken, tradeInfo.exchangeAdapter, tradeInfo.sendToken, tradeInfo.receiveToken, tradeInfo.totalSendQuantity, tradeInfo.totalReceiveQuantity, tradeInfo.data);\r\n        _validatePostTrade(tradeInfo);\r\n        uint256 totalSendQuantity = tradeInfo.preTradeSendTokenBalance.sub(_snapshotTargetTokenBalance(_ckToken, _sendToken));\r\n        uint256 totalReceiveQuantity = _snapshotTargetTokenBalance(_ckToken, _receiveToken).sub(tradeInfo.preTradeReceiveTokenBalance);\r\n        emit ComponentExchanged(\r\n            _ckToken,\r\n            _sendToken,\r\n            _receiveToken,\r\n            tradeInfo.exchangeAdapter,\r\n            totalSendQuantity,\r\n            totalReceiveQuantity\r\n        );\r\n        return (totalSendQuantity, totalReceiveQuantity);\r\n    }\r\n\r\n    /**\r\n     * Instructs the CKToken to wrap an underlying asset into a wrappedToken via a specified adapter.\r\n     *\r\n     * @param _ckToken              Instance of the CKToken\r\n     * @param _underlyingToken      Address of the component to be wrapped\r\n     * @param _wrappedToken         Address of the desired wrapped token\r\n     * @param _underlyingQuantity   Quantity of underlying tokens to wrap\r\n     * @param _integrationName      Name of wrap module integration (mapping on integration registry)\r\n     */\r\n    function _wrap(\r\n        ICKToken _ckToken,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _underlyingQuantity,\r\n        string memory _integrationName,\r\n        bool _usesEther\r\n    )\r\n        internal\r\n        returns (uint256)\r\n    {\r\n        (\r\n        uint256 notionalUnderlyingWrapped,\r\n        uint256 notionalWrapped\r\n        ) = _validateAndWrap(\r\n            _integrationName,\r\n            _ckToken,\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            _underlyingQuantity,\r\n            _usesEther // does not use Ether\r\n        );\r\n\r\n        emit ComponentWrapped(\r\n            _ckToken,\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            notionalUnderlyingWrapped,\r\n            notionalWrapped,\r\n            _integrationName\r\n        );\r\n        return notionalWrapped;\r\n    }\r\n\r\n    /**\r\n     * MANAGER-ONLY: Instructs the CKToken to unwrap a wrapped asset into its underlying via a specified adapter.\r\n     *\r\n     * @param _ckToken              Instance of the CKToken\r\n     * @param _underlyingToken      Address of the underlying asset\r\n     * @param _wrappedToken         Address of the component to be unwrapped\r\n     * @param _wrappedQuantity      Quantity of wrapped tokens in Position units\r\n     * @param _integrationName      ID of wrap module integration (mapping on integration registry)\r\n     */\r\n    function _unwrap(\r\n        ICKToken _ckToken,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _wrappedQuantity,\r\n        string memory _integrationName,\r\n        bool _usesEther\r\n    )\r\n        internal returns (uint256, uint256)\r\n    {\r\n        (\r\n        uint256 notionalUnderlyingUnwrapped,\r\n        uint256 notionalUnwrapped\r\n        ) = _validateAndUnwrap(\r\n            _integrationName,\r\n            _ckToken,\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            _wrappedQuantity,\r\n            _usesEther // uses Ether\r\n        );\r\n\r\n        emit ComponentUnwrapped(\r\n            _ckToken,\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            notionalUnderlyingUnwrapped,\r\n            notionalUnwrapped,\r\n            _integrationName\r\n        );\r\n\r\n        return (notionalUnderlyingUnwrapped, notionalUnwrapped);\r\n    }\r\n\r\n    /**\r\n     * The WrapModule approves the underlying to the 3rd party\r\n     * integration contract, then invokes the CKToken to call wrap by passing its calldata along. When raw ETH\r\n     * is being used (_usesEther = true) WETH position must first be unwrapped and underlyingAddress sent to\r\n     * adapter must be external protocol's ETH representative address.\r\n     *\r\n     * Returns notional amount of underlying tokens and wrapped tokens that were wrapped.\r\n     */\r\n    function _validateAndWrap(\r\n        string memory _integrationName,\r\n        ICKToken _ckToken,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _underlyingQuantity,\r\n        bool _usesEther\r\n    )\r\n        internal\r\n        returns (uint256, uint256)\r\n    {\r\n        uint256 preActionUnderlyingNotional;\r\n        // Snapshot pre wrap balances\r\n        uint256 preActionWrapNotional = _snapshotTargetTokenBalance(_ckToken, _wrappedToken);\r\n\r\n        IWrapAdapter wrapAdapter = IWrapAdapter(getAndValidateAdapter(_integrationName));\r\n\r\n        address snapshotToken = _usesEther ? address(weth) : _underlyingToken;\r\n        _validateInputs(_ckToken, snapshotToken, _underlyingQuantity);\r\n        preActionUnderlyingNotional = _snapshotTargetTokenBalance(_ckToken, snapshotToken);\r\n\r\n        // Execute any pre-wrap actions depending on if using raw ETH or not\r\n        if (_usesEther) {\r\n            _ckToken.invokeUnwrapWETH(address(weth), _underlyingQuantity);\r\n        } else {\r\n            address spender = wrapAdapter.getWrapSpenderAddress(_underlyingToken, _wrappedToken);\r\n            _ckToken.invokeApprove(_underlyingToken, spender, _underlyingQuantity.add(1));\r\n        }\r\n\r\n        // Get function call data and invoke on CKToken\r\n        _createWrapDataAndInvoke(\r\n            _ckToken,\r\n            wrapAdapter,\r\n            _usesEther ? wrapAdapter.ETH_TOKEN_ADDRESS() : _underlyingToken,\r\n            _wrappedToken,\r\n            _underlyingQuantity\r\n        );\r\n\r\n        // Snapshot post wrap balances\r\n        uint256 postActionUnderlyingNotional = _snapshotTargetTokenBalance(_ckToken, snapshotToken);\r\n        uint256 postActionWrapNotional = _snapshotTargetTokenBalance(_ckToken, _wrappedToken);\r\n        return (\r\n            preActionUnderlyingNotional.sub(postActionUnderlyingNotional),\r\n            postActionWrapNotional.sub(preActionWrapNotional)\r\n        );\r\n    }\r\n\r\n    /**\r\n     * The WrapModule calculates the total notional wrap token to unwrap, then invokes the CKToken to call\r\n     * unwrap by passing its calldata along. When raw ETH is being used (_usesEther = true) underlyingAddress\r\n     * sent to adapter must be set to external protocol's ETH representative address and ETH returned from\r\n     * external protocol is wrapped.\r\n     *\r\n     * Returns notional amount of underlying tokens and wrapped tokens unwrapped.\r\n     */\r\n    function _validateAndUnwrap(\r\n        string memory _integrationName,\r\n        ICKToken _ckToken,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _wrappedTokenQuantity,\r\n        bool _usesEther\r\n    )\r\n        internal\r\n        returns (uint256, uint256)\r\n    {\r\n        _validateInputs(_ckToken, _wrappedToken, _wrappedTokenQuantity);\r\n\r\n        // Snapshot pre wrap balance\r\n        address snapshotToken = _usesEther ? address(weth) : _underlyingToken;\r\n        uint256 preActionUnderlyingNotional = _snapshotTargetTokenBalance(_ckToken, snapshotToken);\r\n        uint256 preActionWrapNotional = _snapshotTargetTokenBalance(_ckToken, _wrappedToken);\r\n\r\n        IWrapAdapter wrapAdapter = IWrapAdapter(getAndValidateAdapter(_integrationName));\r\n        address unWrapSpender = wrapAdapter.getUnwrapSpenderAddress(_underlyingToken, _wrappedToken);\r\n        _ckToken.invokeApprove(_wrappedToken, unWrapSpender, _wrappedTokenQuantity);\r\n        \r\n        // Get function call data and invoke on CKToken\r\n        _createUnwrapDataAndInvoke(\r\n            _ckToken,\r\n            wrapAdapter,\r\n            _usesEther ? wrapAdapter.ETH_TOKEN_ADDRESS() : _underlyingToken,\r\n            _wrappedToken,\r\n            _wrappedTokenQuantity\r\n        );\r\n\r\n        // immediately wrap to WTH after getting back ETH\r\n        if (_usesEther) {\r\n            _ckToken.invokeWrapWETH(address(weth), address(_ckToken).balance);\r\n        }\r\n        \r\n        // Snapshot post wrap balances\r\n        uint256 postActionUnderlyingNotional = _snapshotTargetTokenBalance(_ckToken, snapshotToken);\r\n        uint256 postActionWrapNotional = _snapshotTargetTokenBalance(_ckToken, _wrappedToken);\r\n        return (\r\n            postActionUnderlyingNotional.sub(preActionUnderlyingNotional),\r\n            preActionWrapNotional.sub(postActionWrapNotional)\r\n        );\r\n    }\r\n\r\n    /**\r\n     * Validates the wrap operation is valid. In particular, the following checks are made:\r\n     * - The position is Default\r\n     * - The position has sufficient units given the transact quantity\r\n     * - The transact quantity > 0\r\n     *\r\n     * It is expected that the adapter will check if wrappedToken/underlyingToken are a valid pair for the given\r\n     * integration.\r\n     */\r\n    function _validateInputs(\r\n        ICKToken _ckToken,\r\n        address _component,\r\n        uint256 _quantity\r\n    )\r\n        internal\r\n        view\r\n    {\r\n        require(_quantity > 0, \"component quantity must be > 0\");\r\n        require(_snapshotTargetTokenBalance(_ckToken, _component) >= _quantity, \"quantity cant be greater than existing\");\r\n    }\r\n\r\n    /**\r\n     * Create the calldata for wrap and then invoke the call on the CKToken.\r\n     */\r\n    function _createWrapDataAndInvoke(\r\n        ICKToken _ckToken,\r\n        IWrapAdapter _wrapAdapter,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _notionalUnderlying\r\n    ) internal {\r\n        (\r\n            address callTarget,\r\n            uint256 callValue,\r\n            bytes memory callByteData\r\n        ) = _wrapAdapter.getWrapCallData(\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            _notionalUnderlying\r\n        );\r\n\r\n        _ckToken.invoke(callTarget, callValue, callByteData);\r\n    }\r\n\r\n    /**\r\n     * Create the calldata for unwrap and then invoke the call on the CKToken.\r\n     */\r\n    function _createUnwrapDataAndInvoke(\r\n        ICKToken _ckToken,\r\n        IWrapAdapter _wrapAdapter,\r\n        address _underlyingToken,\r\n        address _wrappedToken,\r\n        uint256 _notionalUnderlying\r\n    ) internal {\r\n        (\r\n            address callTarget,\r\n            uint256 callValue,\r\n            bytes memory callByteData\r\n        ) = _wrapAdapter.getUnwrapCallData(\r\n            _underlyingToken,\r\n            _wrappedToken,\r\n            _notionalUnderlying\r\n        );\r\n\r\n        _ckToken.invoke(callTarget, callValue, callByteData);\r\n    }\r\n}"}},"language":"Solidity","settings":{"libraries":{},"optimizer":{"runs":200,"enabled":true}}},"stdJsonOutput":{"sources":{"IssuanceModuleV2.sol":{"id":0}},"contracts":{"IssuanceModuleV2.sol":{"IssuanceModuleV2":{"abi":[{"type":"constructor","inputs":[{"name":"_controller","type":"address","internalType":"contract IController"},{"name":"_weth","type":"address","internalType":"contract IWETH"}],"stateMutability":"nonpayable"},{"name":"AssetExchangeExecutionParamUpdated","type":"event","inputs":[{"name":"_component","type":"address","indexed":true,"internalType":"address"},{"name":"_newExchangeName","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"AssetWrapExecutionParamUpdated","type":"event","inputs":[{"name":"_component","type":"address","indexed":true,"internalType":"address"},{"name":"_newWrapAdapterName","type":"string","indexed":false,"internalType":"string"},{"name":"_newUnderlyingToken","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"CKTokenIssued","type":"event","inputs":[{"name":"_ckToken","type":"address","indexed":true,"internalType":"address"},{"name":"_issuer","type":"address","indexed":false,"internalType":"address"},{"name":"_to","type":"address","indexed":false,"internalType":"address"},{"name":"_hookContract","type":"address","indexed":false,"internalType":"address"},{"name":"_ckMintQuantity","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_issuedTokenReturned","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"CKTokenRedeemed","type":"event","inputs":[{"name":"_ckToken","type":"address","indexed":true,"internalType":"address"},{"name":"_redeemer","type":"address","indexed":false,"internalType":"address"},{"name":"_to","type":"address","indexed":false,"internalType":"address"},{"name":"_quantity","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"ComponentExchanged","type":"event","inputs":[{"name":"_ckToken","type":"address","indexed":true,"internalType":"contract ICKToken"},{"name":"_sendToken","type":"address","indexed":true,"internalType":"address"},{"name":"_receiveToken","type":"address","indexed":true,"internalType":"address"},{"name":"_exchangeAdapter","type":"address","indexed":false,"internalType":"contract IExchangeAdapter"},{"name":"_totalSendAmount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_totalReceiveAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"ComponentUnwrapped","type":"event","inputs":[{"name":"_ckToken","type":"address","indexed":true,"internalType":"contract ICKToken"},{"name":"_underlyingToken","type":"address","indexed":true,"internalType":"address"},{"name":"_wrappedToken","type":"address","indexed":true,"internalType":"address"},{"name":"_underlyingQuantity","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_wrappedQuantity","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_integrationName","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"ComponentWrapped","type":"event","inputs":[{"name":"_ckToken","type":"address","indexed":true,"internalType":"contract ICKToken"},{"name":"_underlyingToken","type":"address","indexed":true,"internalType":"address"},{"name":"_wrappedToken","type":"address","indexed":true,"internalType":"address"},{"name":"_underlyingQuantity","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_wrappedQuantity","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_integrationName","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"controller","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IController"}],"stateMutability":"view"},{"name":"exchangeInfo","type":"function","inputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"getRequiredComponentIssuanceUnits","type":"function","inputs":[{"name":"_ckToken","type":"address","internalType":"contract ICKToken"},{"name":"_quantity","type":"uint256","internalType":"uint256"},{"name":"_isIssue","type":"bool","internalType":"bool"}],"outputs":[{"name":"","type":"address[]","internalType":"address[]"},{"name":"","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"initialize","type":"function","inputs":[{"name":"_ckToken","type":"address","internalType":"contract ICKToken"},{"name":"_preIssueHook","type":"address","internalType":"contract IManagerIssuanceHook"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"issueWithEther2","type":"function","inputs":[{"name":"_ckToken","type":"address","internalType":"contract ICKToken"},{"name":"_minCkTokenRec","type":"uint256","internalType":"uint256"},{"name":"_midTokens","type":"address[]","internalType":"address[]"},{"name":"_weightings","type":"uint256[]","internalType":"uint256[]"},{"name":"_to","type":"address","internalType":"address"},{"name":"_returnDust","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"payable"},{"name":"issueWithSingleToken2","type":"function","inputs":[{"name":"_ckToken","type":"address","internalType":"contract ICKToken"},{"name":"_issueToken","type":"address","internalType":"address"},{"name":"_issueTokenQuantity","type":"uint256","internalType":"uint256"},{"name":"_minCkTokenRec","type":"uint256","internalType":"uint256"},{"name":"_midTokens","type":"address[]","internalType":"address[]"},{"name":"_weightings","type":"uint256[]","internalType":"uint256[]"},{"name":"_to","type":"address","internalType":"address"},{"name":"_returnDust","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"managerIssuanceHook","type":"function","inputs":[{"name":"","type":"address","internalType":"contract ICKToken"}],"outputs":[{"name":"","type":"address","internalType":"contract IManagerIssuanceHook"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"redeemToSingleToken","type":"function","inputs":[{"name":"_ckToken","type":"address","internalType":"contract ICKToken"},{"name":"_ckTokenQuantity","type":"uint256","internalType":"uint256"},{"name":"_redeemToken","type":"address","internalType":"address"},{"name":"_midTokens","type":"address[]","internalType":"address[]"},{"name":"_to","type":"address","internalType":"address"},{"name":"_minRedeemTokenToRec","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"removeModule","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"setExchanges","type":"function","inputs":[{"name":"_components","type":"address[]","internalType":"address[]"},{"name":"_exchangeNames","type":"string[]","internalType":"string[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setWrapAdapters","type":"function","inputs":[{"name":"_components","type":"address[]","internalType":"address[]"},{"name":"_wrapAdapterNames","type":"string[]","internalType":"string[]"},{"name":"_underlyingTokens","type":"address[]","internalType":"address[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"weth","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IWETH"}],"stateMutability":"view"},{"name":"wrapInfo","type":"function","inputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"outputs":[{"name":"wrapAdapterName","type":"string","internalType":"string"},{"name":"underlyingToken","type":"address","internalType":"address"}],"stateMutability":"view"}],"metadata":"{\"compiler\":{\"version\":\"0.6.10+commit.00c0fcaf\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IController\",\"name\":\"_controller\",\"type\":\"address\"},{\"internalType\":\"contract IWETH\",\"name\":\"_weth\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_component\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_newExchangeName\",\"type\":\"string\"}],\"name\":\"AssetExchangeExecutionParamUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_component\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_newWrapAdapterName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_newUnderlyingToken\",\"type\":\"address\"}],\"name\":\"AssetWrapExecutionParamUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_ckToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_issuer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_hookContract\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_ckMintQuantity\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_issuedTokenReturned\",\"type\":\"uint256\"}],\"name\":\"CKTokenIssued\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_ckToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_redeemer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_quantity\",\"type\":\"uint256\"}],\"name\":\"CKTokenRedeemed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contract ICKToken\",\"name\":\"_ckToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_sendToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_receiveToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contract IExchangeAdapter\",\"name\":\"_exchangeAdapter\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_totalSendAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_totalReceiveAmount\",\"type\":\"uint256\"}],\"name\":\"ComponentExchanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contract ICKToken\",\"name\":\"_ckToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_underlyingToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_wrappedToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_underlyingQuantity\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_wrappedQuantity\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_integrationName\",\"type\":\"string\"}],\"name\":\"ComponentUnwrapped\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contract ICKToken\",\"name\":\"_ckToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_underlyingToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_wrappedToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_underlyingQuantity\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_wrappedQuantity\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_integrationName\",\"type\":\"string\"}],\"name\":\"ComponentWrapped\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"controller\",\"outputs\":[{\"internalType\":\"contract IController\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"exchangeInfo\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract ICKToken\",\"name\":\"_ckToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_quantity\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_isIssue\",\"type\":\"bool\"}],\"name\":\"getRequiredComponentIssuanceUnits\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract ICKToken\",\"name\":\"_ckToken\",\"type\":\"address\"},{\"internalType\":\"contract IManagerIssuanceHook\",\"name\":\"_preIssueHook\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract ICKToken\",\"name\":\"_ckToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_minCkTokenRec\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_midTokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_weightings\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_returnDust\",\"type\":\"bool\"}],\"name\":\"issueWithEther2\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract ICKToken\",\"name\":\"_ckToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_issueToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_issueTokenQuantity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_minCkTokenRec\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_midTokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_weightings\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_returnDust\",\"type\":\"bool\"}],\"name\":\"issueWithSingleToken2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract ICKToken\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"managerIssuanceHook\",\"outputs\":[{\"internalType\":\"contract IManagerIssuanceHook\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract ICKToken\",\"name\":\"_ckToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_ckTokenQuantity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_redeemToken\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"_midTokens\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_minRedeemTokenToRec\",\"type\":\"uint256\"}],\"name\":\"redeemToSingleToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"removeModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_components\",\"type\":\"address[]\"},{\"internalType\":\"string[]\",\"name\":\"_exchangeNames\",\"type\":\"string[]\"}],\"name\":\"setExchanges\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_components\",\"type\":\"address[]\"},{\"internalType\":\"string[]\",\"name\":\"_wrapAdapterNames\",\"type\":\"string[]\"},{\"internalType\":\"address[]\",\"name\":\"_underlyingTokens\",\"type\":\"address[]\"}],\"name\":\"setWrapAdapters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"weth\",\"outputs\":[{\"internalType\":\"contract IWETH\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"wrapInfo\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"wrapAdapterName\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"underlyingToken\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Cook Finance The IssuanceModule is a module that enables users to issue and redeem CKTokens that contain default and  non-debt external Positions. Managers are able to set an external contract hook that is called before an issuance is called.\",\"methods\":{\"getRequiredComponentIssuanceUnits(address,uint256,bool)\":{\"params\":{\"_ckToken\":\"Instance of the CKToken to issue\",\"_isIssue\":\"Boolean whether the quantity is issuance or redemption\",\"_quantity\":\"Quantity of CKToken to issue\"},\"returns\":{\"_0\":\"address[]            List of component addresses\",\"_1\":\"uint256[]            List of component units required for a given CKToken quantity\"}},\"initialize(address,address)\":{\"params\":{\"_ckToken\":\"Instance of the CKToken to issue\",\"_preIssueHook\":\"Instance of the Manager Contract with the Pre-Issuance Hook function\"}},\"issueWithEther2(address,uint256,address[],uint256[],address,bool)\":{\"params\":{\"_ckToken\":\"Instance of the CKToken contract\",\"_midTokens\":\"The mid tokens in swap route\",\"_minCkTokenRec\":\"The minimum amount of CKToken to receive\",\"_returnDust\":\"If to return left components\",\"_to\":\"Address to mint CKToken to\",\"_weightings\":\"Eth distribution for each component\"}},\"issueWithSingleToken2(address,address,uint256,uint256,address[],uint256[],address,bool)\":{\"params\":{\"_ckToken\":\"Instance of the CKToken contract\",\"_issueToken\":\"token used to issue with\",\"_issueTokenQuantity\":\"amount of issue tokens\",\"_midTokens\":\"The mid tokens in swap route\",\"_minCkTokenRec\":\"The minimum amount of CKToken to receive\",\"_returnDust\":\"If to return left components\",\"_to\":\"Address to mint CKToken to\",\"_weightings\":\"Eth distribution for each component\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"redeemToSingleToken(address,uint256,address,address[],address,uint256)\":{\"params\":{\"_ckToken\":\"Instance of the CKToken contract\",\"_ckTokenQuantity\":\"Quantity of the CKToken to redeem\",\"_midTokens\":\"The mid tokens in swap route\",\"_minRedeemTokenToRec\":\"Minimum redeem to to receive\",\"_redeemToken\":\"Address of redeem token\",\"_to\":\"Address to redeem CKToken to\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"setExchanges(address[],string[])\":{\"params\":{\"_components\":\"Array of components\",\"_exchangeNames\":\"Array of exchange names mapping to correct component\"}},\"setWrapAdapters(address[],string[],address[])\":{\"params\":{\"_components\":\"Array of components\",\"_underlyingTokens\":\"Array of underlying tokens mapping to correct component\",\"_wrapAdapterNames\":\"Array of wrap adapter names mapping to correct component\"}},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"IssuanceModule\"},\"userdoc\":{\"methods\":{\"constructor\":\"Set state controller state variable\",\"getRequiredComponentIssuanceUnits(address,uint256,bool)\":{\"notice\":\"Retrieves the addresses and units required to issue/redeem a particular quantity of CKToken.\"},\"initialize(address,address)\":{\"notice\":\"Initializes this module to the CKToken with issuance-related hooks. Only callable by the CKToken's manager. Hook addresses are optional. Address(0) means that no hook will be called\"},\"issueWithEther2(address,uint256,address[],uint256[],address,bool)\":{\"notice\":\"Issue ckToken with a specified amount of Eth. \"},\"issueWithSingleToken2(address,address,uint256,uint256,address[],uint256[],address,bool)\":{\"notice\":\"Issue ckToken with a specified amount of a single asset with specification\"},\"redeemToSingleToken(address,uint256,address,address[],address,uint256)\":{\"notice\":\"Burns a user's CKToken of specified quantity, unwinds external positions, and exchange components to the specified token and return to the specified address. Does not work for debt/negative external positions.\"},\"removeModule()\":{\"notice\":\"Removes this module from the CKToken, via call by the CKToken. Left with empty logic here because there are no check needed to verify removal.\"},\"setExchanges(address[],string[])\":{\"notice\":\"OWNER ONLY: Set exchange for passed components of the CKToken. Can be called at anytime.\"},\"setWrapAdapters(address[],string[],address[])\":{\"notice\":\"OWNER ONLY: Set wrap adapters for passed components of the CKToken. Can be called at anytime.\"}}}},\"settings\":{\"compilationTarget\":{\"IssuanceModuleV2.sol\":\"IssuanceModuleV2\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"IssuanceModuleV2.sol\":{\"keccak256\":\"0x95f64b0c36358d5ab4b44a8217a52d8c03674874b4c5e28a7229f960bc4c3691\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://892ed9e32dd6949ba4b51f72234e5865fc2440b9966f20fbe02937ef2f01a721\",\"dweb:/ipfs/QmU3NcMySSGZo4jJ9WGEW9t3AGB6usyxdK1McV7BUnN3XQ\"]}},\"version\":1}","userdoc":{"methods":{"constructor":"Set state controller state variable","removeModule()":{"notice":"Removes this module from the CKToken, via call by the CKToken. Left with empty logic here because there are no check needed to verify removal."},"initialize(address,address)":{"notice":"Initializes this module to the CKToken with issuance-related hooks. Only callable by the CKToken's manager. Hook addresses are optional. Address(0) means that no hook will be called"},"setExchanges(address[],string[])":{"notice":"OWNER ONLY: Set exchange for passed components of the CKToken. Can be called at anytime."},"setWrapAdapters(address[],string[],address[])":{"notice":"OWNER ONLY: Set wrap adapters for passed components of the CKToken. Can be called at anytime."},"getRequiredComponentIssuanceUnits(address,uint256,bool)":{"notice":"Retrieves the addresses and units required to issue/redeem a particular quantity of CKToken."},"issueWithEther2(address,uint256,address[],uint256[],address,bool)":{"notice":"Issue ckToken with a specified amount of Eth. "},"redeemToSingleToken(address,uint256,address,address[],address,uint256)":{"notice":"Burns a user's CKToken of specified quantity, unwinds external positions, and exchange components to the specified token and return to the specified address. Does not work for debt/negative external positions."},"issueWithSingleToken2(address,address,uint256,uint256,address[],uint256[],address,bool)":{"notice":"Issue ckToken with a specified amount of a single asset with specification"}}},"devdoc":{"title":"IssuanceModule","author":"Cook Finance The IssuanceModule is a module that enables users to issue and redeem CKTokens that contain default and  non-debt external Positions. Managers are able to set an external contract hook that is called before an issuance is called.","methods":{"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"initialize(address,address)":{"params":{"_ckToken":"Instance of the CKToken to issue","_preIssueHook":"Instance of the Manager Contract with the Pre-Issuance Hook function"}},"setExchanges(address[],string[])":{"params":{"_components":"Array of components","_exchangeNames":"Array of exchange names mapping to correct component"}},"setWrapAdapters(address[],string[],address[])":{"params":{"_components":"Array of components","_underlyingTokens":"Array of underlying tokens mapping to correct component","_wrapAdapterNames":"Array of wrap adapter names mapping to correct component"}},"getRequiredComponentIssuanceUnits(address,uint256,bool)":{"params":{"_ckToken":"Instance of the CKToken to issue","_isIssue":"Boolean whether the quantity is issuance or redemption","_quantity":"Quantity of CKToken to issue"},"returns":{"_0":"address[]            List of component addresses","_1":"uint256[]            List of component units required for a given CKToken quantity"}},"issueWithEther2(address,uint256,address[],uint256[],address,bool)":{"params":{"_to":"Address to mint CKToken to","_ckToken":"Instance of the CKToken contract","_midTokens":"The mid tokens in swap route","_returnDust":"If to return left components","_weightings":"Eth distribution for each component","_minCkTokenRec":"The minimum amount of CKToken to receive"}},"redeemToSingleToken(address,uint256,address,address[],address,uint256)":{"params":{"_to":"Address to redeem CKToken to","_ckToken":"Instance of the CKToken contract","_midTokens":"The mid tokens in swap route","_redeemToken":"Address of redeem token","_ckTokenQuantity":"Quantity of the CKToken to redeem","_minRedeemTokenToRec":"Minimum redeem to to receive"}},"issueWithSingleToken2(address,address,uint256,uint256,address[],uint256[],address,bool)":{"params":{"_to":"Address to mint CKToken to","_ckToken":"Instance of the CKToken contract","_midTokens":"The mid tokens in swap route","_issueToken":"token used to issue with","_returnDust":"If to return left components","_weightings":"Eth distribution for each component","_minCkTokenRec":"The minimum amount of CKToken to receive","_issueTokenQuantity":"amount of issue tokens"}}}},"storageLayout":{"types":{"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_string_storage":{"label":"string","encoding":"bytes","numberOfBytes":"32"},"t_contract(IERC20)99":{"label":"contract IERC20","encoding":"inplace","numberOfBytes":"20"},"t_contract(ICKToken)2278":{"label":"contract ICKToken","encoding":"inplace","numberOfBytes":"20"},"t_contract(IController)2029":{"label":"contract IController","encoding":"inplace","numberOfBytes":"20"},"t_contract(IManagerIssuanceHook)2302":{"label":"contract IManagerIssuanceHook","encoding":"inplace","numberOfBytes":"20"},"t_struct(WrapExecutionParams)4679_storage":{"label":"struct IssuanceModuleV2.WrapExecutionParams","members":[{"slot":"0","type":"t_string_storage","astId":4676,"label":"wrapAdapterName","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"1","type":"t_address","astId":4678,"label":"underlyingToken","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"}],"encoding":"inplace","numberOfBytes":"64"},"t_mapping(t_contract(IERC20)99,t_string_storage)":{"key":"t_contract(IERC20)99","label":"mapping(contract IERC20 => string)","value":"t_string_storage","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_contract(ICKToken)2278,t_contract(IManagerIssuanceHook)2302)":{"key":"t_contract(ICKToken)2278","label":"mapping(contract ICKToken => contract IManagerIssuanceHook)","value":"t_contract(IManagerIssuanceHook)2302","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_contract(IERC20)99,t_struct(WrapExecutionParams)4679_storage)":{"key":"t_contract(IERC20)99","label":"mapping(contract IERC20 => struct IssuanceModuleV2.WrapExecutionParams)","value":"t_struct(WrapExecutionParams)4679_storage","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_address","astId":799,"label":"_owner","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"1","type":"t_contract(IController)2029","astId":4173,"label":"controller","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"2","type":"t_uint256","astId":910,"label":"_status","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"3","type":"t_mapping(t_contract(ICKToken)2278,t_contract(IManagerIssuanceHook)2302)","astId":4782,"label":"managerIssuanceHook","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"4","type":"t_mapping(t_contract(IERC20)99,t_string_storage)","astId":4786,"label":"exchangeInfo","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"},{"slot":"5","type":"t_mapping(t_contract(IERC20)99,t_struct(WrapExecutionParams)4679_storage)","astId":4790,"label":"wrapInfo","offset":0,"contract":"IssuanceModuleV2.sol:IssuanceModuleV2"}]},"transientStorageLayout":null,"evm":{"bytecode":{"object":"60a06040523480156200001157600080fd5b50604051620053b3380380620053b38339810160408190526200003491620000d2565b8160006200004a6001600160e01b03620000ce16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b039290921691909117815560025560601b6001600160601b0319166080525062000129565b3390565b60008060408385031215620000e5578182fd5b8251620000f28162000110565b6020840151909250620001058162000110565b809150509250929050565b6001600160a01b03811681146200012657600080fd5b50565b60805160601c6152356200017e600039806102f75280610bab5280610c225280610c515280610c8c52806115eb5280612fbd5280613142528061340d528061344c5280613a885280613ad652506152356000f3fe6080604052600436106100f35760003560e01c8063c1bd162b1161008a578063e9e6f5c111610059578063e9e6f5c114610272578063f1ca6a3f14610292578063f2fde38b146102c0578063f77c4791146102e0576100f3565b8063c1bd162b146101f1578063c97b83b014610211578063de43213814610224578063dfe7533514610252576100f3565b80636ac607a1116100c65780636ac607a114610192578063715018a6146101b2578063847ef08d146101c75780638da5cb5b146101dc576100f3565b80633fc8cef3146100f8578063485cc955146101235780634ee05c4a146101455780635f06cd2c14610165575b600080fd5b34801561010457600080fd5b5061010d6102f5565b60405161011a9190614662565b60405180910390f35b34801561012f57600080fd5b5061014361013e36600461441e565b610319565b005b34801561015157600080fd5b50610143610160366004614237565b6103b0565b34801561017157600080fd5b5061018561018036600461410d565b61059f565b60405161011a9190614893565b34801561019e57600080fd5b506101436101ad366004614456565b61063a565b3480156101be57600080fd5b50610143610846565b3480156101d357600080fd5b506101436108c5565b3480156101e857600080fd5b5061010d6108c7565b3480156101fd57600080fd5b5061014361020c366004614297565b6108d7565b61014361021f3660046144dc565b610b59565b34801561023057600080fd5b5061024461023f36600461410d565b610cc7565b60405161011a9291906148a6565b34801561025e57600080fd5b5061010d61026d36600461410d565b610d77565b34801561027e57600080fd5b5061014361028d36600461435e565b610d92565b34801561029e57600080fd5b506102b26102ad36600461457e565b610e2e565b60405161011a9291906147a3565b3480156102cc57600080fd5b506101436102db36600461410d565b610f4b565b3480156102ec57600080fd5b5061010d611001565b7f000000000000000000000000000000000000000000000000000000000000000081565b81336103258282611010565b8361032f8161103a565b6001600160a01b0385811660008181526003602052604080822080546001600160a01b0319169489169490941790935582516307ff078f60e11b815292519192630ffe0f1e926004808301939282900301818387803b15801561039157600080fd5b505af11580156103a5573d6000803e3d6000fd5b505050505050505050565b6103b86110fe565b6000546001600160a01b039081169116146103ee5760405162461bcd60e51b81526004016103e590614d5e565b60405180910390fd5b6103fe828263ffffffff61110216565b60005b825181101561059a5760015461041f906001600160a01b031661112c565b6001600160a01b031663639a39783084848151811061043a57fe5b60200260200101516040518363ffffffff1660e01b815260040161045f92919061477f565b60206040518083038186803b15801561047757600080fd5b505afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af9190614310565b6104cb5760405162461bcd60e51b81526004016103e590614ce6565b8181815181106104d757fe5b6020026020010151600460008584815181106104ef57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020908051906020019061052a929190613e38565b5082818151811061053757fe5b60200260200101516001600160a01b03167fc58c5ebe64b61aa17ac9e8948fc0664b62dff77268a22b4f1142443b3a583aac83838151811061057557fe5b602002602001015160405161058a9190614893565b60405180910390a2600101610401565b505050565b60046020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156106325780601f1061060757610100808354040283529160200191610632565b820191906000526020600020905b81548152906001019060200180831161061557829003601f168201915b505050505081565b60028054141561065c5760405162461bcd60e51b81526004016103e59061500f565b600280558561066a816111b3565b6000861161068a5760405162461bcd60e51b81526004016103e590614a48565b604051632770a7eb60e21b81526001600160a01b03881690639dc29fac906106b89033908a906004016146ce565b600060405180830381600087803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050506060806106f989896000610e2e565b91509150600080905082518751146107235760405162461bcd60e51b81526004016103e590614f47565b60005b83518110156107b45761074f8b8b86848151811061074057fe5b602002602001015160006111d8565b60006107978c8b8b858151811061076257fe5b602002602001015188868151811061077657fe5b602002602001015188878151811061078a57fe5b6020026020010151611375565b90506107a9838263ffffffff61164316565b925050600101610726565b50848110156107d55760405162461bcd60e51b81526004016103e590614e6f565b6107f06001600160a01b038b1689888463ffffffff61167116565b896001600160a01b03167f6dbb023d3cf13366dd3d689c3004862670c9a3f48ef6b61cd4ff7c1d3007f46e33888c60405161082d939291906146aa565b60405180910390a2505060016002555050505050505050565b61084e6110fe565b6000546001600160a01b0390811691161461087b5760405162461bcd60e51b81526004016103e590614d5e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b565b6000546001600160a01b03165b90565b6108df6110fe565b6000546001600160a01b0390811691161461090c5760405162461bcd60e51b81526004016103e590614d5e565b61091c838363ffffffff61110216565b61092c838263ffffffff61110216565b60005b8351811015610b535760015461094d906001600160a01b031661112c565b6001600160a01b031663639a39783085848151811061096857fe5b60200260200101516040518363ffffffff1660e01b815260040161098d92919061477f565b60206040518083038186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd9190614310565b6109f95760405162461bcd60e51b81526004016103e590614ea6565b828181518110610a0557fe5b602002602001015160056000868481518110610a1d57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000019080519060200190610a5b929190613e38565b50818181518110610a6857fe5b602002602001015160056000868481518110610a8057fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550838181518110610adb57fe5b60200260200101516001600160a01b03167f9b6908663d418cb1b019425f179085f031896cd0545d64837c95ce3cfff91299848381518110610b1957fe5b6020026020010151848481518110610b2d57fe5b6020026020010151604051610b439291906148a6565b60405180910390a260010161092f565b50505050565b600280541415610b7b5760405162461bcd60e51b81526004016103e59061500f565b6002805585610b89816111b3565b60003411610ba95760405162461bcd60e51b81526004016103e590614edd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c0457600080fd5b505af1158015610c18573d6000803e3d6000fd5b5050505050610c497f00000000000000000000000000000000000000000000000000000000000000003089346117b3565b6000610c7b887f0000000000000000000000000000000000000000000000000000000000000000348a8a8a8a8a6117bf565b9050610cb86001600160a01b0389167f0000000000000000000000000000000000000000000000000000000000000000338463ffffffff61167116565b50506001600255505050505050565b60056020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909291839190830182828015610d5e5780601f10610d3357610100808354040283529160200191610d5e565b820191906000526020600020905b815481529060010190602001808311610d4157829003601f168201915b505050600190930154919250506001600160a01b031682565b6003602052600090815260409020546001600160a01b031681565b600280541415610db45760405162461bcd60e51b81526004016103e59061500f565b6002805587610dc2816111b3565b60008711610de25760405162461bcd60e51b81526004016103e590614f12565b610dee88338b8a6117b3565b6000610e008a8a8a8a8a8a8a8a6117bf565b9050610e1d6001600160a01b038b168a338463ffffffff61167116565b505060016002555050505050505050565b606080606080610e3d87611979565b91509150606082516001600160401b0381118015610e5a57600080fd5b50604051908082528060200260200182016040528015610e84578160200160208202803683370190505b50905060005b8251811015610f3c5786610ec357610ebe88848381518110610ea857fe5b6020026020010151611c7f90919063ffffffff16565b610ee9565b610ee988848381518110610ed357fe5b6020026020010151611ca990919063ffffffff16565b828281518110610ef557fe5b6020026020010181815250506000828281518110610f0f57fe5b602002602001015111610f345760405162461bcd60e51b81526004016103e5906148d0565b600101610e8a565b50919791965090945050505050565b610f536110fe565b6000546001600160a01b03908116911614610f805760405162461bcd60e51b81526004016103e590614d5e565b6001600160a01b038116610fa65760405162461bcd60e51b81526004016103e590614a02565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b61101a8282611d00565b6110365760405162461bcd60e51b81526004016103e590614caf565b5050565b60015460405163e37f2b3f60e01b81526001600160a01b039091169063e37f2b3f9061106a908490600401614662565b60206040518083038186803b15801561108257600080fd5b505afa158015611096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ba9190614310565b6110d65760405162461bcd60e51b81526004016103e59061496f565b6110df81611d8e565b6110fb5760405162461bcd60e51b81526004016103e590614ab6565b50565b3390565b80518251146111235760405162461bcd60e51b81526004016103e590614913565b61103682611e0d565b6040516373b2e76b60e11b81526000906001600160a01b0383169063e765ced69061115b908490600401615120565b60206040518083038186803b15801561117357600080fd5b505afa158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614129565b90505b919050565b6111bc81611e54565b6110fb5760405162461bcd60e51b81526004016103e590614fc8565b60405163a7bdad0360e01b81526060906001600160a01b0386169063a7bdad0390611207908690600401614662565b60006040518083038186803b15801561121f57600080fd5b505afa158015611233573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261125b919081019061419c565b905060005b815181101561136d5782156112ec5781818151811061127b57fe5b60200260200101516001600160a01b0316630fb96b2187878760016040518563ffffffff1660e01b81526004016112b59493929190614848565b600060405180830381600087803b1580156112cf57600080fd5b505af11580156112e3573d6000803e3d6000fd5b50505050611365565b8181815181106112f857fe5b60200260200101516001600160a01b031663c137f4d787878760016040518563ffffffff1660e01b81526004016113329493929190614848565b600060405180830381600087803b15801561134c57600080fd5b505af1158015611360573d6000803e3d6000fd5b505050505b600101611260565b505050505050565b600080836001600160a01b0316866001600160a01b03161415611399575081611639565b6001600160a01b03848116600090815260056020526040902060010154166113d3576113ca87858789876001611f08565b91506116399050565b6113db613eb2565b6001600160a01b0385166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156114815780601f1061145657610100808354040283529160200191611481565b820191906000526020600020905b81548152906001019060200180831161146457829003601f168201915b5050509183525050600191909101546001600160a01b031660209091015280519091506000906114b0906120d9565b90506000806115538b85602001518a8a8860000151886001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156114fe57600080fd5b505afa158015611512573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115369190614129565b6001600160a01b03168a602001516001600160a01b0316146120f7565b91509150826001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b15801561159057600080fd5b505afa1580156115a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c89190614129565b6001600160a01b031684602001516001600160a01b0316141561161d576116148b7f00000000000000000000000000000000000000000000000000000000000000008b8d866001611f08565b95506116349050565b6116308b85602001518b8d866001611f08565b9550505b505050505b9695505050505050565b6000828201838110156116685760405162461bcd60e51b81526004016103e590614a7f565b90505b92915050565b8015610b53576040516370a0823160e01b81526000906001600160a01b038516906370a08231906116a6908890600401614662565b60206040518083038186803b1580156116be57600080fd5b505afa1580156116d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f691906145bf565b905061170485858585612177565b6040516370a0823160e01b81526000906001600160a01b038616906370a0823190611733908990600401614662565b60206040518083038186803b15801561174b57600080fd5b505afa15801561175f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178391906145bf565b9050611795828463ffffffff61224416565b811461136d5760405162461bcd60e51b81526004016103e590614d93565b610b5384848484612286565b6000806117ce8a8833876123aa565b905060608a6001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561180b57600080fd5b505afa15801561181f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611847919081019061419c565b9050855181511461186a5760405162461bcd60e51b81526004016103e590614942565b865181511461188b5760405162461bcd60e51b81526004016103e5906150d0565b60008061189c8d8d8d8c8c8b612448565b91509150898210156118c05760405162461bcd60e51b81526004016103e590614b9e565b6040516340c10f1960e01b81526001600160a01b038e16906340c10f19906118ee908a9086906004016146ce565b600060405180830381600087803b15801561190857600080fd5b505af115801561191c573d6000803e3d6000fd5b505050508c6001600160a01b03167f2f42aaf883466d0fb581f939a2ba28df39832ab7f0b4f8a2193836b2b54489503389878686604051611961959493929190614676565b60405180910390a29c9b505050505050505050505050565b6060806060836001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156119b757600080fd5b505afa1580156119cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119f3919081019061419c565b9050606081516001600160401b0381118015611a0e57600080fd5b50604051908082528060200260200182016040528015611a38578160200160208202803683370190505b50905060005b8251811015611c74576000838281518110611a5557fe5b602002602001015190506000876001600160a01b03166366cb8d2f836040518263ffffffff1660e01b8152600401611a8d9190614662565b60206040518083038186803b158015611aa557600080fd5b505afa158015611ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611add91906145bf565b90506060886001600160a01b031663a7bdad03846040518263ffffffff1660e01b8152600401611b0d9190614662565b60006040518083038186803b158015611b2557600080fd5b505afa158015611b39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b61919081019061419c565b805190915015611c495760005b8151811015611c475760008a6001600160a01b03166322ebeba486858581518110611b9557fe5b60200260200101516040518363ffffffff1660e01b8152600401611bba9291906146e7565b60206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a91906145bf565b905060008113611c2c5760405162461bcd60e51b81526004016103e59061507d565b611c3c848263ffffffff61268916565b935050600101611b6e565b505b611c52826126cf565b858581518110611c5e57fe5b6020908102919091010152505050600101611a3e565b509092509050915091565b6000611668670de0b6b3a7640000611c9d858563ffffffff6126f516565b9063ffffffff61272f16565b6000821580611cb6575081155b15611cc35750600061166b565b6116686001611cf4670de0b6b3a7640000611c9d83611ce8898963ffffffff6126f516565b9063ffffffff61224416565b9063ffffffff61164316565b6000816001600160a01b0316836001600160a01b031663481c6a756040518163ffffffff1660e01b815260040160206040518083038186803b158015611d4557600080fd5b505afa158015611d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7d9190614129565b6001600160a01b0316149392505050565b6040516353bae5f760e01b81526000906001600160a01b038316906353bae5f790611dbd903090600401614662565b60206040518083038186803b158015611dd557600080fd5b505afa158015611de9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614310565b6000815111611e2e5760405162461bcd60e51b81526004016103e590614e38565b611e3781612771565b156110fb5760405162461bcd60e51b81526004016103e590614c43565b60015460405163e37f2b3f60e01b81526000916001600160a01b03169063e37f2b3f90611e85908590600401614662565b60206040518083038186803b158015611e9d57600080fd5b505afa158015611eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed59190614310565b80156111ab57506040516335fc6c9f60e21b81526001600160a01b0383169063d7f1b27c90611dbd903090600401614662565b600080846001600160a01b0316876001600160a01b03161415611f2f5750829050806120ce565b611f37613eca565b6001600160a01b0386166000908152600460209081526040918290208054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152611ff1938d93611fe7939190830182828015611fdd5780601f10611fb257610100808354040283529160200191611fdd565b820191906000526020600020905b815481529060010190602001808311611fc057829003601f168201915b50505050506120d9565b8a8a8a8a8a612820565b9050611ffc81612b1d565b612028816000015182602001518360400151846060015185608001518660a00151876101000151612bed565b61203181612da2565b5060006120526120418b8b612e57565b60c08401519063ffffffff61224416565b905060006120688360e00151611ce88d8b612e57565b9050876001600160a01b03168a6001600160a01b03168c6001600160a01b03167f71c90a8e22bbb06ea39d299250bcaff990254be58217e7d1479dcbf2f24aa776866020015186866040516120bf93929190614872565b60405180910390a49093509150505b965096945050505050565b6000806120e583612ed6565b90506120f081612ee1565b9392505050565b60008060008061210b868b8b8b8b8a612fa0565b91509150876001600160a01b0316896001600160a01b03168b6001600160a01b03167f0e631fe8e26e2b6c2ce8c4c55eca1d769c98bb4b5539068aec9ada0a3b429afe85858b60405161216093929190615129565b60405180910390a490999098509650505050505050565b8015610b5357606082826040516024016121929291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663a9059cbb60e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600060405180830381600087803b15801561220857600080fd5b505af115801561221c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136d919081019061432c565b600061166883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131c0565b8015610b53576040516370a0823160e01b81526000906001600160a01b038616906370a08231906122bb908690600401614662565b60206040518083038186803b1580156122d357600080fd5b505afa1580156122e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230b91906145bf565b9050612319858585856131ec565b6040516370a0823160e01b81526000906001600160a01b038716906370a0823190612348908790600401614662565b60206040518083038186803b15801561236057600080fd5b505afa158015612374573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239891906145bf565b9050611795828463ffffffff61164316565b6001600160a01b03808516600090815260036020526040812054909116801561243a5760405163a045808360e01b81526001600160a01b0382169063a0458083906123ff90899089908990899060040161481d565b600060405180830381600087803b15801561241957600080fd5b505af115801561242d573d6000803e3d6000fd5b5050505080915050612440565b60009150505b949350505050565b600080600060001990506060896001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561248d57600080fd5b505afa1580156124a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124c9919081019061419c565b9050606081516001600160401b03811180156124e457600080fd5b5060405190808252806020026020018201604052801561250e578160200160208202803683370190505b50905060005b825181101561266557600061254a6001611ce88b858151811061253357fe5b60200260200101518e611c7f90919063ffffffff16565b905060006125e58e6001600160a01b03166366cb8d2f87868151811061256c57fe5b60200260200101516040518263ffffffff1660e01b81526004016125909190614662565b60206040518083038186803b1580156125a857600080fd5b505afa1580156125bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e091906145bf565b6126cf565b9050600061261c8f8f858f88815181106125fb57fe5b60200260200101518a898151811061260f57fe5b6020026020010151613244565b90508085858151811061262b57fe5b60209081029190910101526000612648828463ffffffff6134de16565b9050878111612655578097505b5050600190920191506125149050565b5060006126768c8c8b85888c6134fc565b939c939b50929950505050505050505050565b600082820181831280159061269e5750838112155b806126b357506000831280156126b357508381125b6116685760405162461bcd60e51b81526004016103e590614b5d565b6000808212156126f15760405162461bcd60e51b81526004016103e590614c7a565b5090565b6000826127045750600061166b565b8282028284828161271157fe5b04146116685760405162461bcd60e51b81526004016103e590614d1d565b600061166883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613679565b6000808251116127935760405162461bcd60e51b81526004016103e5906150fc565b60005b60018351038110156128175760008382815181106127b057fe5b6020026020010151905060008260010190505b845181101561280d578481815181106127d857fe5b60200260200101516001600160a01b0316826001600160a01b0316141561280557600193505050506111ae565b6001016127c3565b5050600101612796565b50600092915050565b612828613eca565b600060606001600160a01b03871615806128535750876001600160a01b0316876001600160a01b0316145b8061286f5750856001600160a01b0316876001600160a01b0316145b156128f557604080516002808252606082018352909160208301908036833701905050905087816000815181106128a257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505085816001815181106128d057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506129a1565b604080516003808252608082019092529060208201606080368337019050509050878160008151811061292457fe5b60200260200101906001600160a01b031690816001600160a01b031681525050868160018151811061295257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050858160028151811061298057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6129a9613eca565b6001600160a01b03808c1682528a8116602083015289811660408301528716606082015260808101869052600060a08201526129e58b8a612e57565b60c08201526129f48b88612e57565b60e082015284612a8657604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612a2d9085906000906004016147f9565b60006040518083038186803b158015612a4557600080fd5b505afa158015612a59573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612a81919081019061432c565b612b09565b604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612ab59085906001906004016147f9565b60006040518083038186803b158015612acd57600080fd5b505afa158015612ae1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b09919081019061432c565b6101008201529a9950505050505050505050565b6000816080015111612b415760405162461bcd60e51b81526004016103e590615046565b600081604001516001600160a01b03166370a0823183600001516040518263ffffffff1660e01b8152600401612b779190614662565b60206040518083038186803b158015612b8f57600080fd5b505afa158015612ba3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc791906145bf565b905081608001518110156110365760405162461bcd60e51b81526004016103e5906149b1565b612c7a85876001600160a01b031663334fc2896040518163ffffffff1660e01b815260040160206040518083038186803b158015612c2a57600080fd5b505afa158015612c3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c629190614129565b6001600160a01b038a1691908663ffffffff6136b016565b6000806060886001600160a01b031663e171fcab89898d8a8a8a6040518763ffffffff1660e01b8152600401612cb596959493929190614701565b60006040518083038186803b158015612ccd57600080fd5b505afa158015612ce1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d099190810190614145565b925092509250896001600160a01b0316638f6f03328484846040518463ffffffff1660e01b8152600401612d3f9392919061474f565b600060405180830381600087803b158015612d5957600080fd5b505af1158015612d6d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d95919081019061432c565b5050505050505050505050565b600080612e318360e0015184606001516001600160a01b03166370a0823186600001516040518263ffffffff1660e01b8152600401612de19190614662565b60206040518083038186803b158015612df957600080fd5b505afa158015612e0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce891906145bf565b90508260a001518110156111ab5760405162461bcd60e51b81526004016103e590614aed565b600080826001600160a01b03166370a08231856040518263ffffffff1660e01b8152600401612e869190614662565b60206040518083038186803b158015612e9e57600080fd5b505afa158015612eb2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061244091906145bf565b805160209091012090565b6001546000908190612efb906001600160a01b031661112c565b6001600160a01b031663e6d642c530856040518363ffffffff1660e01b8152600401612f289291906146ce565b60206040518083038186803b158015612f4057600080fd5b505afa158015612f54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f789190614129565b90506001600160a01b0381166111ab5760405162461bcd60e51b81526004016103e590614c14565b600080612fae878686613721565b600083612fbb5786612fdd565b7f00000000000000000000000000000000000000000000000000000000000000005b90506000612feb8983612e57565b90506000612ff98a89612e57565b905060006130068c6120d9565b90506000816001600160a01b03166383d918098c8c6040518363ffffffff1660e01b81526004016130389291906146e7565b60206040518083038186803b15801561305057600080fd5b505afa158015613064573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130889190614129565b90506130a56001600160a01b038d168b838c63ffffffff6136b016565b61312d8c838a6130b5578d613126565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156130ee57600080fd5b505afa158015613102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131269190614129565b8d8d61376a565b871561316e5761316e6001600160a01b038d167f0000000000000000000000000000000000000000000000000000000000000000813163ffffffff61387f16565b600061317a8d87612e57565b905060006131888e8d612e57565b905061319a828763ffffffff61224416565b6131aa868363ffffffff61224416565b9850985050505050505050965096945050505050565b600081848411156131e45760405162461bcd60e51b81526004016103e59190614893565b505050900390565b610b53846323b872dd60e01b85858560405160240161320d939291906146aa565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613934565b600080826001600160a01b0316866001600160a01b03161415613268575083611639565b6001600160a01b0383811660009081526005602052604090206001015416613299576113ca87878686896001611f08565b6132a1613eb2565b6001600160a01b0384166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156133475780601f1061331c57610100808354040283529160200191613347565b820191906000526020600020905b81548152906001019060200180831161332a57829003601f168201915b5050509183525050600191909101546001600160a01b03166020909101528051909150600090613376906120d9565b90506000809050816001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156133b657600080fd5b505afa1580156133ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133ee9190614129565b6001600160a01b031683602001516001600160a01b0316141561349d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b03161461347c576134738a8a897f00000000000000000000000000000000000000000000000000000000000000008c6001611f08565b915061347f9050565b50865b6134968a84602001518884876000015160016139c3565b93506134d0565b6134b08a8a8986602001518c6001611f08565b9050809150506134cd8a84602001518884876000015160006139c3565b93505b505050905095945050505050565b600061166882611c9d85670de0b6b3a764000063ffffffff6126f516565b60008161350b57506000611639565b60008090506060886001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561354b57600080fd5b505afa15801561355f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613587919081019061419c565b905060005b815181101561366b5760006135c5876135b98d6001600160a01b03166366cb8d2f87878151811061256c57fe5b9063ffffffff611c7f16565b905060006135ef828a85815181106135d957fe5b602002602001015161224490919063ffffffff16565b90506000613603828463ffffffff6134de16565b9050613613612710611c9d613a3f565b8111156136605761365d6136508e8e8e888151811061362e57fe5b602002602001015189898151811061364257fe5b602002602001015187611375565b879063ffffffff61164316565b95505b50505060010161358c565b509098975050505050505050565b6000818361369a5760405162461bcd60e51b81526004016103e59190614893565b5060008385816136a657fe5b0495945050505050565b606082826040516024016136c59291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600081116137415760405162461bcd60e51b81526004016103e590614dca565b8061374c8484612e57565b101561059a5760405162461bcd60e51b81526004016103e590614b17565b6000806060866001600160a01b031663a22fe98e8787876040518463ffffffff1660e01b815260040161379f939291906146aa565b60006040518083038186803b1580156137b757600080fd5b505afa1580156137cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137f39190810190614145565b925092509250876001600160a01b0316638f6f03328484846040518463ffffffff1660e01b81526004016138299392919061474f565b600060405180830381600087803b15801561384357600080fd5b505af1158015613857573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a5919081019061432c565b6040805160048082526024820183526020820180516001600160e01b0316630d0e30db60e41b17905291516347b7819960e11b815290916001600160a01b03861691638f6f0332916138d7918791879187910161474f565b600060405180830381600087803b1580156138f157600080fd5b505af1158015613905573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261392d919081019061432c565b5050505050565b6060613989826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613a4b9092919063ffffffff16565b80519091501561059a57808060200190518101906139a79190614310565b61059a5760405162461bcd60e51b81526004016103e590614f7e565b60008060006139d6858a8a8a8a89613a5a565b91509150866001600160a01b0316886001600160a01b03168a6001600160a01b03167f266efe8e5e4e2e7e407c4814a2818ef8e990768c61e67315ac34a8d3555b438e85858a604051613a2b93929190615129565b60405180910390a498975050505050505050565b670de0b6b3a764000090565b60606124408484600085613c94565b600080600080613a6a8988612e57565b90506000613a778b6120d9565b9050600086613a865789613aa8565b7f00000000000000000000000000000000000000000000000000000000000000005b9050613ab58b828a613721565b613abf8b82612e57565b93508615613b0657613b016001600160a01b038c167f00000000000000000000000000000000000000000000000000000000000000008a63ffffffff613d5516565b613bbb565b604051633d3685e960e11b81526000906001600160a01b03841690637a6d0bd290613b37908e908e906004016146e7565b60206040518083038186803b158015613b4f57600080fd5b505afa158015613b63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b879190614129565b9050613bb98b82613b9f8c600163ffffffff61164316565b8f6001600160a01b03166136b0909392919063ffffffff16565b505b613c438b8389613bcb578c613c3c565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b158015613c0457600080fd5b505afa158015613c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c3c9190614129565b8c8c613dc4565b6000613c4f8c83612e57565b90506000613c5d8d8c612e57565b9050613c6f868363ffffffff61224416565b613c7f828763ffffffff61224416565b97509750505050505050965096945050505050565b606082471015613cb65760405162461bcd60e51b81526004016103e590614bce565b613cbf85613df9565b613cdb5760405162461bcd60e51b81526004016103e590614e01565b60006060866001600160a01b03168587604051613cf89190614646565b60006040518083038185875af1925050503d8060008114613d35576040519150601f19603f3d011682016040523d82523d6000602084013e613d3a565b606091505b5091509150613d4a828286613dff565b979650505050505050565b606081604051602401613d689190615120565b60408051601f198184030181529181526020820180516001600160e01b0316632e1a7d4d60e01b179052516347b7819960e11b81529091506001600160a01b03851690638f6f0332906138d7908690600090869060040161474f565b6000806060866001600160a01b03166377b1aaf88787876040518463ffffffff1660e01b815260040161379f939291906146aa565b3b151590565b60608315613e0e5750816120f0565b825115613e1e5782518084602001fd5b8160405162461bcd60e51b81526004016103e59190614893565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613e7957805160ff1916838001178555613ea6565b82800160010185558215613ea6579182015b82811115613ea6578251825591602001919060010190613e8b565b506126f1929150613f3a565b60408051808201909152606081526000602082015290565b60405180610120016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001606081525090565b6108d491905b808211156126f15760008155600101613f40565b600082601f830112613f64578081fd5b8135613f77613f728261516e565b615148565b818152915060208083019084810181840286018201871015613f9857600080fd5b60005b84811015613fc0578135613fae816151dc565b84529282019290820190600101613f9b565b505050505092915050565b600082601f830112613fdb578081fd5b8135613fe9613f728261516e565b818152915060208083019084810160005b84811015613fc0578135870188603f82011261401557600080fd5b83810135614025613f728261518d565b81815260408b8184860101111561403b57600080fd5b82818501888401375060009181018601919091528552509282019290820190600101613ffa565b600082601f830112614072578081fd5b8135614080613f728261516e565b8181529150602080830190848101818402860182018710156140a157600080fd5b60005b84811015613fc0578135845292820192908201906001016140a4565b600082601f8301126140d0578081fd5b81516140de613f728261518d565b91508082528360208285010111156140f557600080fd5b6141068160208401602086016151b0565b5092915050565b60006020828403121561411e578081fd5b8135611668816151dc565b60006020828403121561413a578081fd5b8151611668816151dc565b600080600060608486031215614159578182fd5b8351614164816151dc565b6020850151604086015191945092506001600160401b03811115614186578182fd5b614192868287016140c0565b9150509250925092565b600060208083850312156141ae578182fd5b82516001600160401b038111156141c3578283fd5b80840185601f8201126141d4578384fd5b805191506141e4613f728361516e565b8281528381019082850185850284018601891015614200578687fd5b8693505b8484101561422b578051614217816151dc565b835260019390930192918501918501614204565b50979650505050505050565b60008060408385031215614249578182fd5b82356001600160401b038082111561425f578384fd5b61426b86838701613f54565b93506020850135915080821115614280578283fd5b5061428d85828601613fcb565b9150509250929050565b6000806000606084860312156142ab578283fd5b83356001600160401b03808211156142c1578485fd5b6142cd87838801613f54565b945060208601359150808211156142e2578384fd5b6142ee87838801613fcb565b93506040860135915080821115614303578283fd5b5061419286828701613f54565b600060208284031215614321578081fd5b8151611668816151f1565b60006020828403121561433d578081fd5b81516001600160401b03811115614352578182fd5b612440848285016140c0565b600080600080600080600080610100898b03121561437a578586fd5b8835614385816151dc565b97506020890135614395816151dc565b9650604089013595506060890135945060808901356001600160401b03808211156143be578586fd5b6143ca8c838d01613f54565b955060a08b01359150808211156143df578485fd5b506143ec8b828c01614062565b93505060c08901356143fd816151dc565b915060e089013561440d816151f1565b809150509295985092959890939650565b60008060408385031215614430578182fd5b823561443b816151dc565b9150602083013561444b816151dc565b809150509250929050565b60008060008060008060c0878903121561446e578384fd5b8635614479816151dc565b9550602087013594506040870135614490816151dc565b935060608701356001600160401b038111156144aa578283fd5b6144b689828a01613f54565b93505060808701356144c7816151dc565b8092505060a087013590509295509295509295565b60008060008060008060c087890312156144f4578384fd5b86356144ff816151dc565b95506020870135945060408701356001600160401b0380821115614521578586fd5b61452d8a838b01613f54565b95506060890135915080821115614542578384fd5b5061454f89828a01614062565b9350506080870135614560816151dc565b915060a0870135614570816151f1565b809150509295509295509295565b600080600060608486031215614592578081fd5b833561459d816151dc565b92506020840135915060408401356145b4816151f1565b809150509250925092565b6000602082840312156145d0578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561460f5781516001600160a01b0316875295820195908201906001016145ea565b509495945050505050565b600081518084526146328160208601602086016151b0565b601f01601f19169290920160200192915050565b600082516146588184602087016151b0565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038781168252868116602083015285166040820152606081018490526080810183905260c060a082018190526000906147439083018461461a565b98975050505050505050565b600060018060a01b038516825283602083015260606040830152614776606083018461461a565b95945050505050565b6001600160a01b03831681526040602082018190526000906124409083018461461a565b6000604082526147b660408301856145d7565b828103602084810191909152845180835285820192820190845b818110156147ec578451835293830193918301916001016147d0565b5090979650505050505050565b60006040825261480c60408301856145d7565b905082151560208301529392505050565b6001600160a01b03948516815260208101939093529083166040830152909116606082015260800190565b6001600160a01b039485168152602081019390935292166040820152901515606082015260800190565b6001600160a01b039390931683526020830191909152604082015260600190565b600060208252611668602083018461461a565b6000604082526148b9604083018561461a565b905060018060a01b03831660208301529392505050565b60208082526023908201527f636f6d706f6e656e7420616d6f756e742073686f756c64206e6f74206265207a60408201526265726f60e81b606082015260800190565b602080825260159082015274082e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b604082015260600190565b6020808252601390820152720eecad2ced0e8d2dccee640dad2e6dac2e8c6d606b1b604082015260600190565b60208082526022908201527f4d75737420626520636f6e74726f6c6c65722d656e61626c656420434b546f6b60408201526132b760f11b606082015260800190565b60208082526031908201527f746f74616c2073656e64207175616e746974792063616e742062652067726561604082015270746572207468616e206578697374696e6760781b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f52656465656d207175616e74697479206d757374206265203e20300000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f4d7573742062652070656e64696e6720696e697469616c697a6174696f6e0000604082015260600190565b60208082526010908201526f536c69707061676520746f6f2062696760801b604082015260600190565b60208082526026908201527f7175616e746974792063616e742062652067726561746572207468616e206578604082015265697374696e6760d01b606082015260800190565b60208082526021908201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526016908201527517db5a5b90dad51bdad95b949958c81b9bdd081b595d60521b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526015908201527426bab9ba103132903b30b634b21030b230b83a32b960591b604082015260600190565b6020808252601a908201527f43616e6e6f74206475706c696361746520616464726573736573000000000000604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252601b908201527f4d7573742062652074686520434b546f6b656e206d616e616765720000000000604082015260600190565b6020808252601a908201527f556e7265636f676e697a65642065786368616e6765206e616d65000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f496e76616c696420706f7374207472616e736665722062616c616e6365000000604082015260600190565b6020808252601e908201527f636f6d706f6e656e74207175616e74697479206d757374206265203e20300000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526018908201527f4172726179206c656e677468206d757374206265203e20300000000000000000604082015260600190565b6020808252601c908201527f5f6d696e52656465656d546f6b656e546f526563206e6f74206d657400000000604082015260600190565b6020808252601e908201527f556e7265636f676e697a656420777261702061646170746572206e616d650000604082015260600190565b6020808252818101527f4973737565206574686572207175616e74697479206d757374206265203e2030604082015260600190565b6020808252818101527f497373756520746f6b656e207175616e74697479206d757374206265203e2030604082015260600190565b6020808252601a908201527f5f6d6964546f6b656e73206c656e677468206d69736d61746368000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526027908201527f4d75737420626520612076616c696420616e6420696e697469616c697a65642060408201526621a5aa37b5b2b760c91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601d908201527f546f6b656e20746f2073656c6c206d757374206265206e6f6e7a65726f000000604082015260600190565b60208082526033908201527f4f6e6c7920706f7369746976652065787465726e616c20756e697420706f73696040820152721d1a5bdb9cc8185c99481cdd5c1c1bdc9d1959606a1b606082015260800190565b6020808252601290820152710dad2c8a8ded6cadce640dad2e6dac2e8c6d60731b604082015260600190565b6020808252600a90820152694120697320656d70747960b01b604082015260600190565b90815260200190565b600084825283602083015260606040830152614776606083018461461a565b6040518181016001600160401b038111828210171561516657600080fd5b604052919050565b60006001600160401b03821115615183578081fd5b5060209081020190565b60006001600160401b038211156151a2578081fd5b50601f01601f191660200190565b60005b838110156151cb5781810151838201526020016151b3565b83811115610b535750506000910152565b6001600160a01b03811681146110fb57600080fd5b80151581146110fb57600080fdfea264697066735822122024de1ac5556d0aad8346cc2b8bf0cdb09a3e6c21a35448805a16d178f9d3353464736f6c634300060a0033","sourceMap":"107190:42670:0:-:0;;;110726:112;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110794:11;21200:17;21220:12;-1:-1:-1;;;;;21220:10:0;:12;:::i;:::-;21243:6;:18;;-1:-1:-1;;;;;;21243:18:0;-1:-1:-1;;;;;21243:18:0;;;;;;;21277:43;;21243:18;;-1:-1:-1;21243:18:0;21277:43;;21243:6;;21277:43;-1:-1:-1;98499:10:0;:24;;-1:-1:-1;;;;;;98499:24:0;-1:-1:-1;;;;;98499:24:0;;;;;;;;;;24438:7;:22;110818:12:::1;::::0;-1:-1:-1;;;;;;110818:12:0;::::1;::::0;-1:-1:-1;107190:42670:0;;735:106;823:10;735:106;:::o;355:467:-1:-;;;521:2;509:9;500:7;496:23;492:32;489:2;;;-1:-1;;527:12;489:2;109:6;103:13;121:53;168:5;121:53;;;710:2;774:22;;278:13;579:94;;-1:-1;296:47;278:13;296:47;;;718:88;;;;483:339;;;;;;1285:157;-1:-1;;;;;1219:54;;1364:55;;1354:2;;1433:1;;1423:12;1354:2;1348:94;;;107190:42670:0;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"6080604052600436106100f35760003560e01c8063c1bd162b1161008a578063e9e6f5c111610059578063e9e6f5c114610272578063f1ca6a3f14610292578063f2fde38b146102c0578063f77c4791146102e0576100f3565b8063c1bd162b146101f1578063c97b83b014610211578063de43213814610224578063dfe7533514610252576100f3565b80636ac607a1116100c65780636ac607a114610192578063715018a6146101b2578063847ef08d146101c75780638da5cb5b146101dc576100f3565b80633fc8cef3146100f8578063485cc955146101235780634ee05c4a146101455780635f06cd2c14610165575b600080fd5b34801561010457600080fd5b5061010d6102f5565b60405161011a9190614662565b60405180910390f35b34801561012f57600080fd5b5061014361013e36600461441e565b610319565b005b34801561015157600080fd5b50610143610160366004614237565b6103b0565b34801561017157600080fd5b5061018561018036600461410d565b61059f565b60405161011a9190614893565b34801561019e57600080fd5b506101436101ad366004614456565b61063a565b3480156101be57600080fd5b50610143610846565b3480156101d357600080fd5b506101436108c5565b3480156101e857600080fd5b5061010d6108c7565b3480156101fd57600080fd5b5061014361020c366004614297565b6108d7565b61014361021f3660046144dc565b610b59565b34801561023057600080fd5b5061024461023f36600461410d565b610cc7565b60405161011a9291906148a6565b34801561025e57600080fd5b5061010d61026d36600461410d565b610d77565b34801561027e57600080fd5b5061014361028d36600461435e565b610d92565b34801561029e57600080fd5b506102b26102ad36600461457e565b610e2e565b60405161011a9291906147a3565b3480156102cc57600080fd5b506101436102db36600461410d565b610f4b565b3480156102ec57600080fd5b5061010d611001565b7f000000000000000000000000000000000000000000000000000000000000000081565b81336103258282611010565b8361032f8161103a565b6001600160a01b0385811660008181526003602052604080822080546001600160a01b0319169489169490941790935582516307ff078f60e11b815292519192630ffe0f1e926004808301939282900301818387803b15801561039157600080fd5b505af11580156103a5573d6000803e3d6000fd5b505050505050505050565b6103b86110fe565b6000546001600160a01b039081169116146103ee5760405162461bcd60e51b81526004016103e590614d5e565b60405180910390fd5b6103fe828263ffffffff61110216565b60005b825181101561059a5760015461041f906001600160a01b031661112c565b6001600160a01b031663639a39783084848151811061043a57fe5b60200260200101516040518363ffffffff1660e01b815260040161045f92919061477f565b60206040518083038186803b15801561047757600080fd5b505afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af9190614310565b6104cb5760405162461bcd60e51b81526004016103e590614ce6565b8181815181106104d757fe5b6020026020010151600460008584815181106104ef57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020908051906020019061052a929190613e38565b5082818151811061053757fe5b60200260200101516001600160a01b03167fc58c5ebe64b61aa17ac9e8948fc0664b62dff77268a22b4f1142443b3a583aac83838151811061057557fe5b602002602001015160405161058a9190614893565b60405180910390a2600101610401565b505050565b60046020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156106325780601f1061060757610100808354040283529160200191610632565b820191906000526020600020905b81548152906001019060200180831161061557829003601f168201915b505050505081565b60028054141561065c5760405162461bcd60e51b81526004016103e59061500f565b600280558561066a816111b3565b6000861161068a5760405162461bcd60e51b81526004016103e590614a48565b604051632770a7eb60e21b81526001600160a01b03881690639dc29fac906106b89033908a906004016146ce565b600060405180830381600087803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050506060806106f989896000610e2e565b91509150600080905082518751146107235760405162461bcd60e51b81526004016103e590614f47565b60005b83518110156107b45761074f8b8b86848151811061074057fe5b602002602001015160006111d8565b60006107978c8b8b858151811061076257fe5b602002602001015188868151811061077657fe5b602002602001015188878151811061078a57fe5b6020026020010151611375565b90506107a9838263ffffffff61164316565b925050600101610726565b50848110156107d55760405162461bcd60e51b81526004016103e590614e6f565b6107f06001600160a01b038b1689888463ffffffff61167116565b896001600160a01b03167f6dbb023d3cf13366dd3d689c3004862670c9a3f48ef6b61cd4ff7c1d3007f46e33888c60405161082d939291906146aa565b60405180910390a2505060016002555050505050505050565b61084e6110fe565b6000546001600160a01b0390811691161461087b5760405162461bcd60e51b81526004016103e590614d5e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b565b6000546001600160a01b03165b90565b6108df6110fe565b6000546001600160a01b0390811691161461090c5760405162461bcd60e51b81526004016103e590614d5e565b61091c838363ffffffff61110216565b61092c838263ffffffff61110216565b60005b8351811015610b535760015461094d906001600160a01b031661112c565b6001600160a01b031663639a39783085848151811061096857fe5b60200260200101516040518363ffffffff1660e01b815260040161098d92919061477f565b60206040518083038186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd9190614310565b6109f95760405162461bcd60e51b81526004016103e590614ea6565b828181518110610a0557fe5b602002602001015160056000868481518110610a1d57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000019080519060200190610a5b929190613e38565b50818181518110610a6857fe5b602002602001015160056000868481518110610a8057fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550838181518110610adb57fe5b60200260200101516001600160a01b03167f9b6908663d418cb1b019425f179085f031896cd0545d64837c95ce3cfff91299848381518110610b1957fe5b6020026020010151848481518110610b2d57fe5b6020026020010151604051610b439291906148a6565b60405180910390a260010161092f565b50505050565b600280541415610b7b5760405162461bcd60e51b81526004016103e59061500f565b6002805585610b89816111b3565b60003411610ba95760405162461bcd60e51b81526004016103e590614edd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610c0457600080fd5b505af1158015610c18573d6000803e3d6000fd5b5050505050610c497f00000000000000000000000000000000000000000000000000000000000000003089346117b3565b6000610c7b887f0000000000000000000000000000000000000000000000000000000000000000348a8a8a8a8a6117bf565b9050610cb86001600160a01b0389167f0000000000000000000000000000000000000000000000000000000000000000338463ffffffff61167116565b50506001600255505050505050565b60056020908152600091825260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452909291839190830182828015610d5e5780601f10610d3357610100808354040283529160200191610d5e565b820191906000526020600020905b815481529060010190602001808311610d4157829003601f168201915b505050600190930154919250506001600160a01b031682565b6003602052600090815260409020546001600160a01b031681565b600280541415610db45760405162461bcd60e51b81526004016103e59061500f565b6002805587610dc2816111b3565b60008711610de25760405162461bcd60e51b81526004016103e590614f12565b610dee88338b8a6117b3565b6000610e008a8a8a8a8a8a8a8a6117bf565b9050610e1d6001600160a01b038b168a338463ffffffff61167116565b505060016002555050505050505050565b606080606080610e3d87611979565b91509150606082516001600160401b0381118015610e5a57600080fd5b50604051908082528060200260200182016040528015610e84578160200160208202803683370190505b50905060005b8251811015610f3c5786610ec357610ebe88848381518110610ea857fe5b6020026020010151611c7f90919063ffffffff16565b610ee9565b610ee988848381518110610ed357fe5b6020026020010151611ca990919063ffffffff16565b828281518110610ef557fe5b6020026020010181815250506000828281518110610f0f57fe5b602002602001015111610f345760405162461bcd60e51b81526004016103e5906148d0565b600101610e8a565b50919791965090945050505050565b610f536110fe565b6000546001600160a01b03908116911614610f805760405162461bcd60e51b81526004016103e590614d5e565b6001600160a01b038116610fa65760405162461bcd60e51b81526004016103e590614a02565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b61101a8282611d00565b6110365760405162461bcd60e51b81526004016103e590614caf565b5050565b60015460405163e37f2b3f60e01b81526001600160a01b039091169063e37f2b3f9061106a908490600401614662565b60206040518083038186803b15801561108257600080fd5b505afa158015611096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ba9190614310565b6110d65760405162461bcd60e51b81526004016103e59061496f565b6110df81611d8e565b6110fb5760405162461bcd60e51b81526004016103e590614ab6565b50565b3390565b80518251146111235760405162461bcd60e51b81526004016103e590614913565b61103682611e0d565b6040516373b2e76b60e11b81526000906001600160a01b0383169063e765ced69061115b908490600401615120565b60206040518083038186803b15801561117357600080fd5b505afa158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614129565b90505b919050565b6111bc81611e54565b6110fb5760405162461bcd60e51b81526004016103e590614fc8565b60405163a7bdad0360e01b81526060906001600160a01b0386169063a7bdad0390611207908690600401614662565b60006040518083038186803b15801561121f57600080fd5b505afa158015611233573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261125b919081019061419c565b905060005b815181101561136d5782156112ec5781818151811061127b57fe5b60200260200101516001600160a01b0316630fb96b2187878760016040518563ffffffff1660e01b81526004016112b59493929190614848565b600060405180830381600087803b1580156112cf57600080fd5b505af11580156112e3573d6000803e3d6000fd5b50505050611365565b8181815181106112f857fe5b60200260200101516001600160a01b031663c137f4d787878760016040518563ffffffff1660e01b81526004016113329493929190614848565b600060405180830381600087803b15801561134c57600080fd5b505af1158015611360573d6000803e3d6000fd5b505050505b600101611260565b505050505050565b600080836001600160a01b0316866001600160a01b03161415611399575081611639565b6001600160a01b03848116600090815260056020526040902060010154166113d3576113ca87858789876001611f08565b91506116399050565b6113db613eb2565b6001600160a01b0385166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156114815780601f1061145657610100808354040283529160200191611481565b820191906000526020600020905b81548152906001019060200180831161146457829003601f168201915b5050509183525050600191909101546001600160a01b031660209091015280519091506000906114b0906120d9565b90506000806115538b85602001518a8a8860000151886001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156114fe57600080fd5b505afa158015611512573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115369190614129565b6001600160a01b03168a602001516001600160a01b0316146120f7565b91509150826001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b15801561159057600080fd5b505afa1580156115a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c89190614129565b6001600160a01b031684602001516001600160a01b0316141561161d576116148b7f00000000000000000000000000000000000000000000000000000000000000008b8d866001611f08565b95506116349050565b6116308b85602001518b8d866001611f08565b9550505b505050505b9695505050505050565b6000828201838110156116685760405162461bcd60e51b81526004016103e590614a7f565b90505b92915050565b8015610b53576040516370a0823160e01b81526000906001600160a01b038516906370a08231906116a6908890600401614662565b60206040518083038186803b1580156116be57600080fd5b505afa1580156116d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f691906145bf565b905061170485858585612177565b6040516370a0823160e01b81526000906001600160a01b038616906370a0823190611733908990600401614662565b60206040518083038186803b15801561174b57600080fd5b505afa15801561175f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178391906145bf565b9050611795828463ffffffff61224416565b811461136d5760405162461bcd60e51b81526004016103e590614d93565b610b5384848484612286565b6000806117ce8a8833876123aa565b905060608a6001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561180b57600080fd5b505afa15801561181f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611847919081019061419c565b9050855181511461186a5760405162461bcd60e51b81526004016103e590614942565b865181511461188b5760405162461bcd60e51b81526004016103e5906150d0565b60008061189c8d8d8d8c8c8b612448565b91509150898210156118c05760405162461bcd60e51b81526004016103e590614b9e565b6040516340c10f1960e01b81526001600160a01b038e16906340c10f19906118ee908a9086906004016146ce565b600060405180830381600087803b15801561190857600080fd5b505af115801561191c573d6000803e3d6000fd5b505050508c6001600160a01b03167f2f42aaf883466d0fb581f939a2ba28df39832ab7f0b4f8a2193836b2b54489503389878686604051611961959493929190614676565b60405180910390a29c9b505050505050505050505050565b6060806060836001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156119b757600080fd5b505afa1580156119cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119f3919081019061419c565b9050606081516001600160401b0381118015611a0e57600080fd5b50604051908082528060200260200182016040528015611a38578160200160208202803683370190505b50905060005b8251811015611c74576000838281518110611a5557fe5b602002602001015190506000876001600160a01b03166366cb8d2f836040518263ffffffff1660e01b8152600401611a8d9190614662565b60206040518083038186803b158015611aa557600080fd5b505afa158015611ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611add91906145bf565b90506060886001600160a01b031663a7bdad03846040518263ffffffff1660e01b8152600401611b0d9190614662565b60006040518083038186803b158015611b2557600080fd5b505afa158015611b39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b61919081019061419c565b805190915015611c495760005b8151811015611c475760008a6001600160a01b03166322ebeba486858581518110611b9557fe5b60200260200101516040518363ffffffff1660e01b8152600401611bba9291906146e7565b60206040518083038186803b158015611bd257600080fd5b505afa158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a91906145bf565b905060008113611c2c5760405162461bcd60e51b81526004016103e59061507d565b611c3c848263ffffffff61268916565b935050600101611b6e565b505b611c52826126cf565b858581518110611c5e57fe5b6020908102919091010152505050600101611a3e565b509092509050915091565b6000611668670de0b6b3a7640000611c9d858563ffffffff6126f516565b9063ffffffff61272f16565b6000821580611cb6575081155b15611cc35750600061166b565b6116686001611cf4670de0b6b3a7640000611c9d83611ce8898963ffffffff6126f516565b9063ffffffff61224416565b9063ffffffff61164316565b6000816001600160a01b0316836001600160a01b031663481c6a756040518163ffffffff1660e01b815260040160206040518083038186803b158015611d4557600080fd5b505afa158015611d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7d9190614129565b6001600160a01b0316149392505050565b6040516353bae5f760e01b81526000906001600160a01b038316906353bae5f790611dbd903090600401614662565b60206040518083038186803b158015611dd557600080fd5b505afa158015611de9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614310565b6000815111611e2e5760405162461bcd60e51b81526004016103e590614e38565b611e3781612771565b156110fb5760405162461bcd60e51b81526004016103e590614c43565b60015460405163e37f2b3f60e01b81526000916001600160a01b03169063e37f2b3f90611e85908590600401614662565b60206040518083038186803b158015611e9d57600080fd5b505afa158015611eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed59190614310565b80156111ab57506040516335fc6c9f60e21b81526001600160a01b0383169063d7f1b27c90611dbd903090600401614662565b600080846001600160a01b0316876001600160a01b03161415611f2f5750829050806120ce565b611f37613eca565b6001600160a01b0386166000908152600460209081526040918290208054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152611ff1938d93611fe7939190830182828015611fdd5780601f10611fb257610100808354040283529160200191611fdd565b820191906000526020600020905b815481529060010190602001808311611fc057829003601f168201915b50505050506120d9565b8a8a8a8a8a612820565b9050611ffc81612b1d565b612028816000015182602001518360400151846060015185608001518660a00151876101000151612bed565b61203181612da2565b5060006120526120418b8b612e57565b60c08401519063ffffffff61224416565b905060006120688360e00151611ce88d8b612e57565b9050876001600160a01b03168a6001600160a01b03168c6001600160a01b03167f71c90a8e22bbb06ea39d299250bcaff990254be58217e7d1479dcbf2f24aa776866020015186866040516120bf93929190614872565b60405180910390a49093509150505b965096945050505050565b6000806120e583612ed6565b90506120f081612ee1565b9392505050565b60008060008061210b868b8b8b8b8a612fa0565b91509150876001600160a01b0316896001600160a01b03168b6001600160a01b03167f0e631fe8e26e2b6c2ce8c4c55eca1d769c98bb4b5539068aec9ada0a3b429afe85858b60405161216093929190615129565b60405180910390a490999098509650505050505050565b8015610b5357606082826040516024016121929291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663a9059cbb60e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600060405180830381600087803b15801561220857600080fd5b505af115801561221c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136d919081019061432c565b600061166883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131c0565b8015610b53576040516370a0823160e01b81526000906001600160a01b038616906370a08231906122bb908690600401614662565b60206040518083038186803b1580156122d357600080fd5b505afa1580156122e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230b91906145bf565b9050612319858585856131ec565b6040516370a0823160e01b81526000906001600160a01b038716906370a0823190612348908790600401614662565b60206040518083038186803b15801561236057600080fd5b505afa158015612374573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239891906145bf565b9050611795828463ffffffff61164316565b6001600160a01b03808516600090815260036020526040812054909116801561243a5760405163a045808360e01b81526001600160a01b0382169063a0458083906123ff90899089908990899060040161481d565b600060405180830381600087803b15801561241957600080fd5b505af115801561242d573d6000803e3d6000fd5b5050505080915050612440565b60009150505b949350505050565b600080600060001990506060896001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561248d57600080fd5b505afa1580156124a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124c9919081019061419c565b9050606081516001600160401b03811180156124e457600080fd5b5060405190808252806020026020018201604052801561250e578160200160208202803683370190505b50905060005b825181101561266557600061254a6001611ce88b858151811061253357fe5b60200260200101518e611c7f90919063ffffffff16565b905060006125e58e6001600160a01b03166366cb8d2f87868151811061256c57fe5b60200260200101516040518263ffffffff1660e01b81526004016125909190614662565b60206040518083038186803b1580156125a857600080fd5b505afa1580156125bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e091906145bf565b6126cf565b9050600061261c8f8f858f88815181106125fb57fe5b60200260200101518a898151811061260f57fe5b6020026020010151613244565b90508085858151811061262b57fe5b60209081029190910101526000612648828463ffffffff6134de16565b9050878111612655578097505b5050600190920191506125149050565b5060006126768c8c8b85888c6134fc565b939c939b50929950505050505050505050565b600082820181831280159061269e5750838112155b806126b357506000831280156126b357508381125b6116685760405162461bcd60e51b81526004016103e590614b5d565b6000808212156126f15760405162461bcd60e51b81526004016103e590614c7a565b5090565b6000826127045750600061166b565b8282028284828161271157fe5b04146116685760405162461bcd60e51b81526004016103e590614d1d565b600061166883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613679565b6000808251116127935760405162461bcd60e51b81526004016103e5906150fc565b60005b60018351038110156128175760008382815181106127b057fe5b6020026020010151905060008260010190505b845181101561280d578481815181106127d857fe5b60200260200101516001600160a01b0316826001600160a01b0316141561280557600193505050506111ae565b6001016127c3565b5050600101612796565b50600092915050565b612828613eca565b600060606001600160a01b03871615806128535750876001600160a01b0316876001600160a01b0316145b8061286f5750856001600160a01b0316876001600160a01b0316145b156128f557604080516002808252606082018352909160208301908036833701905050905087816000815181106128a257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505085816001815181106128d057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506129a1565b604080516003808252608082019092529060208201606080368337019050509050878160008151811061292457fe5b60200260200101906001600160a01b031690816001600160a01b031681525050868160018151811061295257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050858160028151811061298057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b6129a9613eca565b6001600160a01b03808c1682528a8116602083015289811660408301528716606082015260808101869052600060a08201526129e58b8a612e57565b60c08201526129f48b88612e57565b60e082015284612a8657604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612a2d9085906000906004016147f9565b60006040518083038186803b158015612a4557600080fd5b505afa158015612a59573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612a81919081019061432c565b612b09565b604051631a0abf8760e31b81526001600160a01b038b169063d055fc3890612ab59085906001906004016147f9565b60006040518083038186803b158015612acd57600080fd5b505afa158015612ae1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b09919081019061432c565b6101008201529a9950505050505050505050565b6000816080015111612b415760405162461bcd60e51b81526004016103e590615046565b600081604001516001600160a01b03166370a0823183600001516040518263ffffffff1660e01b8152600401612b779190614662565b60206040518083038186803b158015612b8f57600080fd5b505afa158015612ba3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc791906145bf565b905081608001518110156110365760405162461bcd60e51b81526004016103e5906149b1565b612c7a85876001600160a01b031663334fc2896040518163ffffffff1660e01b815260040160206040518083038186803b158015612c2a57600080fd5b505afa158015612c3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c629190614129565b6001600160a01b038a1691908663ffffffff6136b016565b6000806060886001600160a01b031663e171fcab89898d8a8a8a6040518763ffffffff1660e01b8152600401612cb596959493929190614701565b60006040518083038186803b158015612ccd57600080fd5b505afa158015612ce1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d099190810190614145565b925092509250896001600160a01b0316638f6f03328484846040518463ffffffff1660e01b8152600401612d3f9392919061474f565b600060405180830381600087803b158015612d5957600080fd5b505af1158015612d6d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d95919081019061432c565b5050505050505050505050565b600080612e318360e0015184606001516001600160a01b03166370a0823186600001516040518263ffffffff1660e01b8152600401612de19190614662565b60206040518083038186803b158015612df957600080fd5b505afa158015612e0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce891906145bf565b90508260a001518110156111ab5760405162461bcd60e51b81526004016103e590614aed565b600080826001600160a01b03166370a08231856040518263ffffffff1660e01b8152600401612e869190614662565b60206040518083038186803b158015612e9e57600080fd5b505afa158015612eb2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061244091906145bf565b805160209091012090565b6001546000908190612efb906001600160a01b031661112c565b6001600160a01b031663e6d642c530856040518363ffffffff1660e01b8152600401612f289291906146ce565b60206040518083038186803b158015612f4057600080fd5b505afa158015612f54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f789190614129565b90506001600160a01b0381166111ab5760405162461bcd60e51b81526004016103e590614c14565b600080612fae878686613721565b600083612fbb5786612fdd565b7f00000000000000000000000000000000000000000000000000000000000000005b90506000612feb8983612e57565b90506000612ff98a89612e57565b905060006130068c6120d9565b90506000816001600160a01b03166383d918098c8c6040518363ffffffff1660e01b81526004016130389291906146e7565b60206040518083038186803b15801561305057600080fd5b505afa158015613064573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130889190614129565b90506130a56001600160a01b038d168b838c63ffffffff6136b016565b61312d8c838a6130b5578d613126565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156130ee57600080fd5b505afa158015613102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131269190614129565b8d8d61376a565b871561316e5761316e6001600160a01b038d167f0000000000000000000000000000000000000000000000000000000000000000813163ffffffff61387f16565b600061317a8d87612e57565b905060006131888e8d612e57565b905061319a828763ffffffff61224416565b6131aa868363ffffffff61224416565b9850985050505050505050965096945050505050565b600081848411156131e45760405162461bcd60e51b81526004016103e59190614893565b505050900390565b610b53846323b872dd60e01b85858560405160240161320d939291906146aa565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613934565b600080826001600160a01b0316866001600160a01b03161415613268575083611639565b6001600160a01b0383811660009081526005602052604090206001015416613299576113ca87878686896001611f08565b6132a1613eb2565b6001600160a01b0384166000908152600560209081526040918290208251815460026001821615610100026000190190911604601f81018490049093028101606090810185529381018381529093919284928491908401828280156133475780601f1061331c57610100808354040283529160200191613347565b820191906000526020600020905b81548152906001019060200180831161332a57829003601f168201915b5050509183525050600191909101546001600160a01b03166020909101528051909150600090613376906120d9565b90506000809050816001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b1580156133b657600080fd5b505afa1580156133ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133ee9190614129565b6001600160a01b031683602001516001600160a01b0316141561349d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316896001600160a01b03161461347c576134738a8a897f00000000000000000000000000000000000000000000000000000000000000008c6001611f08565b915061347f9050565b50865b6134968a84602001518884876000015160016139c3565b93506134d0565b6134b08a8a8986602001518c6001611f08565b9050809150506134cd8a84602001518884876000015160006139c3565b93505b505050905095945050505050565b600061166882611c9d85670de0b6b3a764000063ffffffff6126f516565b60008161350b57506000611639565b60008090506060886001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561354b57600080fd5b505afa15801561355f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613587919081019061419c565b905060005b815181101561366b5760006135c5876135b98d6001600160a01b03166366cb8d2f87878151811061256c57fe5b9063ffffffff611c7f16565b905060006135ef828a85815181106135d957fe5b602002602001015161224490919063ffffffff16565b90506000613603828463ffffffff6134de16565b9050613613612710611c9d613a3f565b8111156136605761365d6136508e8e8e888151811061362e57fe5b602002602001015189898151811061364257fe5b602002602001015187611375565b879063ffffffff61164316565b95505b50505060010161358c565b509098975050505050505050565b6000818361369a5760405162461bcd60e51b81526004016103e59190614893565b5060008385816136a657fe5b0495945050505050565b606082826040516024016136c59291906146ce565b60408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516347b7819960e11b81529091506001600160a01b03861690638f6f0332906121ee908790600090869060040161474f565b600081116137415760405162461bcd60e51b81526004016103e590614dca565b8061374c8484612e57565b101561059a5760405162461bcd60e51b81526004016103e590614b17565b6000806060866001600160a01b031663a22fe98e8787876040518463ffffffff1660e01b815260040161379f939291906146aa565b60006040518083038186803b1580156137b757600080fd5b505afa1580156137cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137f39190810190614145565b925092509250876001600160a01b0316638f6f03328484846040518463ffffffff1660e01b81526004016138299392919061474f565b600060405180830381600087803b15801561384357600080fd5b505af1158015613857573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103a5919081019061432c565b6040805160048082526024820183526020820180516001600160e01b0316630d0e30db60e41b17905291516347b7819960e11b815290916001600160a01b03861691638f6f0332916138d7918791879187910161474f565b600060405180830381600087803b1580156138f157600080fd5b505af1158015613905573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261392d919081019061432c565b5050505050565b6060613989826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613a4b9092919063ffffffff16565b80519091501561059a57808060200190518101906139a79190614310565b61059a5760405162461bcd60e51b81526004016103e590614f7e565b60008060006139d6858a8a8a8a89613a5a565b91509150866001600160a01b0316886001600160a01b03168a6001600160a01b03167f266efe8e5e4e2e7e407c4814a2818ef8e990768c61e67315ac34a8d3555b438e85858a604051613a2b93929190615129565b60405180910390a498975050505050505050565b670de0b6b3a764000090565b60606124408484600085613c94565b600080600080613a6a8988612e57565b90506000613a778b6120d9565b9050600086613a865789613aa8565b7f00000000000000000000000000000000000000000000000000000000000000005b9050613ab58b828a613721565b613abf8b82612e57565b93508615613b0657613b016001600160a01b038c167f00000000000000000000000000000000000000000000000000000000000000008a63ffffffff613d5516565b613bbb565b604051633d3685e960e11b81526000906001600160a01b03841690637a6d0bd290613b37908e908e906004016146e7565b60206040518083038186803b158015613b4f57600080fd5b505afa158015613b63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b879190614129565b9050613bb98b82613b9f8c600163ffffffff61164316565b8f6001600160a01b03166136b0909392919063ffffffff16565b505b613c438b8389613bcb578c613c3c565b846001600160a01b0316631878d1f16040518163ffffffff1660e01b815260040160206040518083038186803b158015613c0457600080fd5b505afa158015613c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c3c9190614129565b8c8c613dc4565b6000613c4f8c83612e57565b90506000613c5d8d8c612e57565b9050613c6f868363ffffffff61224416565b613c7f828763ffffffff61224416565b97509750505050505050965096945050505050565b606082471015613cb65760405162461bcd60e51b81526004016103e590614bce565b613cbf85613df9565b613cdb5760405162461bcd60e51b81526004016103e590614e01565b60006060866001600160a01b03168587604051613cf89190614646565b60006040518083038185875af1925050503d8060008114613d35576040519150601f19603f3d011682016040523d82523d6000602084013e613d3a565b606091505b5091509150613d4a828286613dff565b979650505050505050565b606081604051602401613d689190615120565b60408051601f198184030181529181526020820180516001600160e01b0316632e1a7d4d60e01b179052516347b7819960e11b81529091506001600160a01b03851690638f6f0332906138d7908690600090869060040161474f565b6000806060866001600160a01b03166377b1aaf88787876040518463ffffffff1660e01b815260040161379f939291906146aa565b3b151590565b60608315613e0e5750816120f0565b825115613e1e5782518084602001fd5b8160405162461bcd60e51b81526004016103e59190614893565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613e7957805160ff1916838001178555613ea6565b82800160010185558215613ea6579182015b82811115613ea6578251825591602001919060010190613e8b565b506126f1929150613f3a565b60408051808201909152606081526000602082015290565b60405180610120016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001606081525090565b6108d491905b808211156126f15760008155600101613f40565b600082601f830112613f64578081fd5b8135613f77613f728261516e565b615148565b818152915060208083019084810181840286018201871015613f9857600080fd5b60005b84811015613fc0578135613fae816151dc565b84529282019290820190600101613f9b565b505050505092915050565b600082601f830112613fdb578081fd5b8135613fe9613f728261516e565b818152915060208083019084810160005b84811015613fc0578135870188603f82011261401557600080fd5b83810135614025613f728261518d565b81815260408b8184860101111561403b57600080fd5b82818501888401375060009181018601919091528552509282019290820190600101613ffa565b600082601f830112614072578081fd5b8135614080613f728261516e565b8181529150602080830190848101818402860182018710156140a157600080fd5b60005b84811015613fc0578135845292820192908201906001016140a4565b600082601f8301126140d0578081fd5b81516140de613f728261518d565b91508082528360208285010111156140f557600080fd5b6141068160208401602086016151b0565b5092915050565b60006020828403121561411e578081fd5b8135611668816151dc565b60006020828403121561413a578081fd5b8151611668816151dc565b600080600060608486031215614159578182fd5b8351614164816151dc565b6020850151604086015191945092506001600160401b03811115614186578182fd5b614192868287016140c0565b9150509250925092565b600060208083850312156141ae578182fd5b82516001600160401b038111156141c3578283fd5b80840185601f8201126141d4578384fd5b805191506141e4613f728361516e565b8281528381019082850185850284018601891015614200578687fd5b8693505b8484101561422b578051614217816151dc565b835260019390930192918501918501614204565b50979650505050505050565b60008060408385031215614249578182fd5b82356001600160401b038082111561425f578384fd5b61426b86838701613f54565b93506020850135915080821115614280578283fd5b5061428d85828601613fcb565b9150509250929050565b6000806000606084860312156142ab578283fd5b83356001600160401b03808211156142c1578485fd5b6142cd87838801613f54565b945060208601359150808211156142e2578384fd5b6142ee87838801613fcb565b93506040860135915080821115614303578283fd5b5061419286828701613f54565b600060208284031215614321578081fd5b8151611668816151f1565b60006020828403121561433d578081fd5b81516001600160401b03811115614352578182fd5b612440848285016140c0565b600080600080600080600080610100898b03121561437a578586fd5b8835614385816151dc565b97506020890135614395816151dc565b9650604089013595506060890135945060808901356001600160401b03808211156143be578586fd5b6143ca8c838d01613f54565b955060a08b01359150808211156143df578485fd5b506143ec8b828c01614062565b93505060c08901356143fd816151dc565b915060e089013561440d816151f1565b809150509295985092959890939650565b60008060408385031215614430578182fd5b823561443b816151dc565b9150602083013561444b816151dc565b809150509250929050565b60008060008060008060c0878903121561446e578384fd5b8635614479816151dc565b9550602087013594506040870135614490816151dc565b935060608701356001600160401b038111156144aa578283fd5b6144b689828a01613f54565b93505060808701356144c7816151dc565b8092505060a087013590509295509295509295565b60008060008060008060c087890312156144f4578384fd5b86356144ff816151dc565b95506020870135945060408701356001600160401b0380821115614521578586fd5b61452d8a838b01613f54565b95506060890135915080821115614542578384fd5b5061454f89828a01614062565b9350506080870135614560816151dc565b915060a0870135614570816151f1565b809150509295509295509295565b600080600060608486031215614592578081fd5b833561459d816151dc565b92506020840135915060408401356145b4816151f1565b809150509250925092565b6000602082840312156145d0578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561460f5781516001600160a01b0316875295820195908201906001016145ea565b509495945050505050565b600081518084526146328160208601602086016151b0565b601f01601f19169290920160200192915050565b600082516146588184602087016151b0565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038781168252868116602083015285166040820152606081018490526080810183905260c060a082018190526000906147439083018461461a565b98975050505050505050565b600060018060a01b038516825283602083015260606040830152614776606083018461461a565b95945050505050565b6001600160a01b03831681526040602082018190526000906124409083018461461a565b6000604082526147b660408301856145d7565b828103602084810191909152845180835285820192820190845b818110156147ec578451835293830193918301916001016147d0565b5090979650505050505050565b60006040825261480c60408301856145d7565b905082151560208301529392505050565b6001600160a01b03948516815260208101939093529083166040830152909116606082015260800190565b6001600160a01b039485168152602081019390935292166040820152901515606082015260800190565b6001600160a01b039390931683526020830191909152604082015260600190565b600060208252611668602083018461461a565b6000604082526148b9604083018561461a565b905060018060a01b03831660208301529392505050565b60208082526023908201527f636f6d706f6e656e7420616d6f756e742073686f756c64206e6f74206265207a60408201526265726f60e81b606082015260800190565b602080825260159082015274082e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b604082015260600190565b6020808252601390820152720eecad2ced0e8d2dccee640dad2e6dac2e8c6d606b1b604082015260600190565b60208082526022908201527f4d75737420626520636f6e74726f6c6c65722d656e61626c656420434b546f6b60408201526132b760f11b606082015260800190565b60208082526031908201527f746f74616c2073656e64207175616e746974792063616e742062652067726561604082015270746572207468616e206578697374696e6760781b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f52656465656d207175616e74697479206d757374206265203e20300000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f4d7573742062652070656e64696e6720696e697469616c697a6174696f6e0000604082015260600190565b60208082526010908201526f536c69707061676520746f6f2062696760801b604082015260600190565b60208082526026908201527f7175616e746974792063616e742062652067726561746572207468616e206578604082015265697374696e6760d01b606082015260800190565b60208082526021908201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526016908201527517db5a5b90dad51bdad95b949958c81b9bdd081b595d60521b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526015908201527426bab9ba103132903b30b634b21030b230b83a32b960591b604082015260600190565b6020808252601a908201527f43616e6e6f74206475706c696361746520616464726573736573000000000000604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252601b908201527f4d7573742062652074686520434b546f6b656e206d616e616765720000000000604082015260600190565b6020808252601a908201527f556e7265636f676e697a65642065786368616e6765206e616d65000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f496e76616c696420706f7374207472616e736665722062616c616e6365000000604082015260600190565b6020808252601e908201527f636f6d706f6e656e74207175616e74697479206d757374206265203e20300000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526018908201527f4172726179206c656e677468206d757374206265203e20300000000000000000604082015260600190565b6020808252601c908201527f5f6d696e52656465656d546f6b656e546f526563206e6f74206d657400000000604082015260600190565b6020808252601e908201527f556e7265636f676e697a656420777261702061646170746572206e616d650000604082015260600190565b6020808252818101527f4973737565206574686572207175616e74697479206d757374206265203e2030604082015260600190565b6020808252818101527f497373756520746f6b656e207175616e74697479206d757374206265203e2030604082015260600190565b6020808252601a908201527f5f6d6964546f6b656e73206c656e677468206d69736d61746368000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526027908201527f4d75737420626520612076616c696420616e6420696e697469616c697a65642060408201526621a5aa37b5b2b760c91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601d908201527f546f6b656e20746f2073656c6c206d757374206265206e6f6e7a65726f000000604082015260600190565b60208082526033908201527f4f6e6c7920706f7369746976652065787465726e616c20756e697420706f73696040820152721d1a5bdb9cc8185c99481cdd5c1c1bdc9d1959606a1b606082015260800190565b6020808252601290820152710dad2c8a8ded6cadce640dad2e6dac2e8c6d60731b604082015260600190565b6020808252600a90820152694120697320656d70747960b01b604082015260600190565b90815260200190565b600084825283602083015260606040830152614776606083018461461a565b6040518181016001600160401b038111828210171561516657600080fd5b604052919050565b60006001600160401b03821115615183578081fd5b5060209081020190565b60006001600160401b038211156151a2578081fd5b50601f01601f191660200190565b60005b838110156151cb5781810151838201526020016151b3565b83811115610b535750506000910152565b6001600160a01b03811681146110fb57600080fd5b80151581146110fb57600080fdfea264697066735822122024de1ac5556d0aad8346cc2b8bf0cdb09a3e6c21a35448805a16d178f9d3353464736f6c634300060a0033","sourceMap":"107190:42670:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110577:27;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;116793:313;;;;;;;;;;-1:-1:-1;116793:313:0;;;;;;;;:::i;:::-;;117613:646;;;;;;;;;;-1:-1:-1;117613:646:0;;;;;;;;:::i;110382:45::-;;;;;;;;;;-1:-1:-1;110382:45:0;;;;;;;;:::i;:::-;;;;;;;;114861:1525;;;;;;;;;;-1:-1:-1;114861:1525:0;;;;;;;;:::i;22051:148::-;;;;;;;;;;;;;:::i;117291:44::-;;;;;;;;;;;;;:::i;21409:79::-;;;;;;;;;;;;;:::i;118639:885::-;;;;;;;;;;-1:-1:-1;118639:885:0;;;;;;;;:::i;111402:987::-;;;;;;;;;:::i;110488:54::-;;;;;;;;;;-1:-1:-1;110488:54:0;;;;;;;;:::i;:::-;;;;;;;;;110249:68;;;;;;;;;;-1:-1:-1;110249:68:0;;;;;;;;:::i;113045:1162::-;;;;;;;;;;-1:-1:-1;113045:1162:0;;;;;;;;:::i;120050:1047::-;;;;;;;;;;-1:-1:-1;120050:1047:0;;;;;;;;:::i;:::-;;;;;;;;;22354:244;;;;;;;;;;-1:-1:-1;22354:244:0;;;;;;;;:::i;97260:29::-;;;;;;;;;;;;;:::i;110577:27::-;;;:::o;116793:313::-;116934:8;116944:10;97547:41;97570:8;97580:7;97547:22;:41::i;:::-;116987:8:::1;98164:40;98195:8;98164:30;:40::i;:::-;-1:-1:-1::0;;;;;117013:29:0;;::::2;;::::0;;;:19:::2;:29;::::0;;;;;:45;;-1:-1:-1;;;;;;117013:45:0::2;::::0;;::::2;::::0;;;::::2;::::0;;;117071:27;;-1:-1:-1;;;117071:27:0;;;;117013:29;;117071:25:::2;::::0;:27:::2;::::0;;::::2;::::0;117013:29;117071:27;;;;;117013:29;;117071:27;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;97599:1:::1;116793:313:::0;;;;:::o;117613:646::-;21631:12;:10;:12::i;:::-;21621:6;;-1:-1:-1;;;;;21621:6:0;;;:22;;;21613:67;;;;-1:-1:-1;;;21613:67:0;;;;;;;;;;;;;;;;;117775:50:::1;:11:::0;117810:14;117775:50:::1;:34;:50;:::i;:::-;117843:9;117838:414;117862:11;:18;117858:1;:22;117838:414;;;117928:10;::::0;:35:::1;::::0;-1:-1:-1;;;;;117928:10:0::1;:33;:35::i;:::-;-1:-1:-1::0;;;;;117928:54:0::1;;117991:4;117998:14;118013:1;117998:17;;;;;;;;;;;;;;117928:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117902:176;;;;-1:-1:-1::0;;;117902:176:0::1;;;;;;;;;118134:14;118149:1;118134:17;;;;;;;;;;;;;;118095:12;:36;118115:11;118127:1;118115:14;;;;;;;;;;;;;;-1:-1:-1::0;;;;;118095:36:0::1;-1:-1:-1::0;;;;;118095:36:0::1;;;;;;;;;;;;:56;;;;;;;;;;;;:::i;:::-;;118206:11;118218:1;118206:14;;;;;;;;;;;;;;-1:-1:-1::0;;;;;118171:69:0::1;;118222:14;118237:1;118222:17;;;;;;;;;;;;;;118171:69;;;;;;;;;;;;;;;117882:3;;117838:414;;;;117613:646:::0;;:::o;110382:45::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;110382:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;114861:1525::-;24361:1;24967:7;;:19;;24959:63;;;;-1:-1:-1;;;24959:63:0;;;;;;;;;24361:1;25100:18;;115165:8;97681:44:::1;115165:8:::0;97681:34:::1;:44::i;:::-;115218:1:::2;115199:16;:20;115191:60;;;;-1:-1:-1::0;;;115191:60:0::2;;;;;;;;;115262:43;::::0;-1:-1:-1;;;115262:43:0;;-1:-1:-1;;;;;115262:13:0;::::2;::::0;::::2;::::0;:43:::2;::::0;115276:10:::2;::::0;115288:16;;115262:43:::2;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;115333:27;115375:36:::0;115425:68:::2;115459:8;115469:16;115487:5;115425:33;:68::i;:::-;115318:175;;;;115504:32;115539:1:::0;115504:36:::2;;115580:10;:17;115559:10;:17;:38;115551:77;;;;-1:-1:-1::0;;;115551:77:0::2;;;;;;;;;115644:9;115639:414;115663:10;:17;115659:1;:21;115639:414;;;115702:87;115732:8;115742:16;115767:10;115778:1;115767:13;;;;;;;;;;;;;;115783:5;115702:29;:87::i;:::-;115804:27;115834:116;115873:8;115883:12;115897:10;115908:1;115897:13;;;;;;;;;;;;;;115912:10;115923:1;115912:13;;;;;;;;;;;;;;115927:19;115947:1;115927:22;;;;;;;;;;;;;;115834:38;:116::i;:::-;115804:146:::0;-1:-1:-1;115992:49:0::2;:24:::0;115804:146;115992:49:::2;:28;:49;:::i;:::-;115965:76:::0;-1:-1:-1;;115682:3:0::2;;115639:414;;;;116101:20;116073:24;:48;;116065:89;;;;-1:-1:-1::0;;;116065:89:0::2;;;;;;;;;116167:124;-1:-1:-1::0;;;;;116167:29:0;::::2;116211:12:::0;116238:3;116256:24;116167:124:::2;:29;:124;:::i;:::-;116333:8;-1:-1:-1::0;;;;;116309:69:0::2;;116344:10;116356:3;116361:16;116309:69;;;;;;;;;;;;;;;;;-1:-1:-1::0;;24317:1:0;25279:7;:22;-1:-1:-1;;;;;;;;114861:1525:0:o;22051:148::-;21631:12;:10;:12::i;:::-;21621:6;;-1:-1:-1;;;;;21621:6:0;;;:22;;;21613:67;;;;-1:-1:-1;;;21613:67:0;;;;;;;;;22158:1:::1;22142:6:::0;;22121:40:::1;::::0;-1:-1:-1;;;;;22142:6:0;;::::1;::::0;22121:40:::1;::::0;22158:1;;22121:40:::1;22189:1;22172:19:::0;;-1:-1:-1;;;;;;22172:19:0::1;::::0;;22051:148::o;117291:44::-;:::o;21409:79::-;21447:7;21474:6;-1:-1:-1;;;;;21474:6:0;21409:79;;:::o;118639:885::-;21631:12;:10;:12::i;:::-;21621:6;;-1:-1:-1;;;;;21621:6:0;;;:22;;;21613:67;;;;-1:-1:-1;;;21613:67:0;;;;;;;;;118844:53:::1;:11:::0;118879:17;118844:53:::1;:34;:53;:::i;:::-;118908;:11:::0;118943:17;118908:53:::1;:34;:53;:::i;:::-;118979:9;118974:543;118998:11;:18;118994:1;:22;118974:543;;;119064:10;::::0;:35:::1;::::0;-1:-1:-1;;;;;119064:10:0::1;:33;:35::i;:::-;-1:-1:-1::0;;;;;119064:54:0::1;;119127:4;119134:17;119152:1;119134:20;;;;;;;;;;;;;;119064:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;119038:183;;;;-1:-1:-1::0;;;119038:183:0::1;;;;;;;;;119289:17;119307:1;119289:20;;;;;;;;;;;;;;119238:8;:32;119254:11;119266:1;119254:14;;;;;;;;;;;;;;-1:-1:-1::0;;;;;119238:32:0::1;-1:-1:-1::0;;;;;119238:32:0::1;;;;;;;;;;;;:48;;:71;;;;;;;;;;;;:::i;:::-;;119375:17;119393:1;119375:20;;;;;;;;;;;;;;119324:8;:32;119340:11;119352:1;119340:14;;;;;;;;;;;;;;-1:-1:-1::0;;;;;119324:32:0::1;-1:-1:-1::0;;;;;119324:32:0::1;;;;;;;;;;;;:48;;;:71;;;;;-1:-1:-1::0;;;;;119324:71:0::1;;;;;-1:-1:-1::0;;;;;119324:71:0::1;;;;;;119446:11;119458:1;119446:14;;;;;;;;;;;;;;-1:-1:-1::0;;;;;119415:90:0::1;;119462:17;119480:1;119462:20;;;;;;;;;;;;;;119484:17;119502:1;119484:20;;;;;;;;;;;;;;119415:90;;;;;;;;;;;;;;;;119018:3;;118974:543;;;;118639:885:::0;;;:::o;111402:987::-;24361:1;24967:7;;:19;;24959:63;;;;-1:-1:-1;;;24959:63:0;;;;;;;;;24361:1;25100:18;;111723:8;97681:44:::1;111723:8:::0;97681:34:::1;:44::i;:::-;111770:1:::2;111758:9;:13;111750:58;;;;-1:-1:-1::0;;;111750:58:0::2;;;;;;;;;111819:4;-1:-1:-1::0;;;;;111819:12:0::2;;111840:9;111819:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;111915:126;111942:4;111969;111997:8;112021:9;111915:12;:126::i;:::-;112052:24;112079:117;112102:8;112120:4;112127:9;112138:14;112154:10;112166:11;112179:3;112184:11;112079:22;:117::i;:::-;112052:144:::0;-1:-1:-1;112257:124:0::2;-1:-1:-1::0;;;;;112257:29:0;::::2;112309:4;112329:10;112052:144:::0;112257:124:::2;:29;:124;:::i;:::-;-1:-1:-1::0;;24317:1:0;25279:7;:22;-1:-1:-1;;;;;;111402:987:0:o;110488:54::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;110488:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;110488:54:0;;;;;;;-1:-1:-1;;;;;;;110488:54:0;;:::o;110249:68::-;;;;;;;;;;;;-1:-1:-1;;;;;110249:68:0;;:::o;113045:1162::-;24361:1;24967:7;;:19;;24959:63;;;;-1:-1:-1;;;24959:63:0;;;;;;;;;24361:1;25100:18;;113504:8;97681:44:::1;113504:8:::0;97681:34:::1;:44::i;:::-;113561:1:::2;113539:19;:23;113531:68;;;;-1:-1:-1::0;;;113531:68:0::2;;;;;;;;;113668:148;113702:11;113729:10;113762:8;113786:19;113668:12;:148::i;:::-;113845:24;113872:125;113895:8;113905:11;113918:19;113939:14;113955:10;113967:11;113980:3;113985:11;113872:22;:125::i;:::-;113845:152:::0;-1:-1:-1;114058:131:0::2;-1:-1:-1::0;;;;;114058:29:0;::::2;114110:11:::0;114137:10:::2;113845:152:::0;114058:131:::2;:29;:131;:::i;:::-;-1:-1:-1::0;;24317:1:0;25279:7;:22;-1:-1:-1;;;;;;;;113045:1162:0:o;120050:1047::-;120228:16;120246;120295:27;120337:30;120381:32;120404:8;120381:22;:32::i;:::-;120280:133;;;;120426:30;120473:10;:17;-1:-1:-1;;;;;120459:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;120459:32:0;-1:-1:-1;120426:65:0;-1:-1:-1;120507:9:0;120502:541;120526:13;:20;120522:1;:24;120502:541;;;120818:8;:130;;120910:38;120938:9;120910:13;120924:1;120910:16;;;;;;;;;;;;;;:27;;:38;;;;:::i;:::-;120818:130;;;120847:42;120879:9;120847:13;120861:1;120847:16;;;;;;;;;;;;;;:31;;:42;;;;:::i;:::-;120799:13;120813:1;120799:16;;;;;;;;;;;;;:149;;;;;120990:1;120971:13;120985:1;120971:16;;;;;;;;;;;;;;:20;120963:68;;;;-1:-1:-1;;;120963:68:0;;;;;;;;;120548:3;;120502:541;;;-1:-1:-1;121063:10:0;;;;-1:-1:-1;120050:1047:0;;-1:-1:-1;;;;;120050:1047:0:o;22354:244::-;21631:12;:10;:12::i;:::-;21621:6;;-1:-1:-1;;;;;21621:6:0;;;:22;;;21613:67;;;;-1:-1:-1;;;21613:67:0;;;;;;;;;-1:-1:-1;;;;;22443:22:0;::::1;22435:73;;;;-1:-1:-1::0;;;22435:73:0::1;;;;;;;;;22545:6;::::0;;22524:38:::1;::::0;-1:-1:-1;;;;;22524:38:0;;::::1;::::0;22545:6;::::1;::::0;22524:38:::1;::::0;::::1;22573:6;:17:::0;;-1:-1:-1;;;;;;22573:17:0::1;-1:-1:-1::0;;;;;22573:17:0;;;::::1;::::0;;;::::1;::::0;;22354:244::o;97260:29::-;;;-1:-1:-1;;;;;97260:29:0;;:::o;102282:171::-;102383:30;102395:8;102405:7;102383:11;:30::i;:::-;102375:70;;;;-1:-1:-1;;;102375:70:0;;;;;;;;;102282:171;;:::o;103278:262::-;103370:10;;:34;;-1:-1:-1;;;103370:34:0;;-1:-1:-1;;;;;103370:10:0;;;;:15;;:34;;103394:8;;103370:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103362:81;;;;-1:-1:-1;;;103362:81:0;;;;;;;;;103462:35;103488:8;103462:25;:35::i;:::-;103454:78;;;;-1:-1:-1;;;103454:78:0;;;;;;;;;103278:262;:::o;735:106::-;823:10;735:106;:::o;41021:200::-;41137:1;:8;41125:1;:8;:20;41117:54;;;;-1:-1:-1;;;41117:54:0;;;;;;;;;41182:31;41211:1;41182:28;:31::i;95120:206::-;95261:56;;-1:-1:-1;;;95261:56:0;;95200:20;;-1:-1:-1;;;;;95261:22:0;;;;;:56;;95200:20;;95261:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95233:85;;95120:206;;;;:::o;102525:181::-;102621:33;102645:8;102621:23;:33::i;:::-;102613:85;;;;-1:-1:-1;;;102613:85:0;;;;;;;;130104:712;130341:56;;-1:-1:-1;;;130341:56:0;;130298:40;;-1:-1:-1;;;;;130341:35:0;;;;;:56;;130385:10;;130341:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;130341:56:0;;;;;;;;;;;;;;130298:99;-1:-1:-1;130413:9:0;130408:401;130432:23;:30;130428:1;:34;130408:401;;;130488:7;130484:314;;;130536:23;130560:1;130536:26;;;;;;;;;;;;;;-1:-1:-1;;;;;130516:66:0;;130583:8;130593:16;130611:10;130623:4;130516:112;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130484:314;;;130689:23;130713:1;130689:26;;;;;;;;;;;;;;-1:-1:-1;;;;;130669:67:0;;130737:8;130747:16;130765:10;130777:4;130669:113;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130484:314;130464:3;;130408:401;;;;130104:712;;;;;:::o;130824:1749::-;130997:7;131017:27;131075:10;-1:-1:-1;;;;;131059:26:0;:12;-1:-1:-1;;;;;131059:26:0;;131055:1474;;;-1:-1:-1;131184:18:0;131055:1474;;;-1:-1:-1;;;;;131224:28:0;;;131280:1;131224:28;;;:8;:28;;;;;:44;;;;131220:1309;;131396:79;131403:8;131413:10;131425:9;131436:12;131450:18;131470:4;131396:6;:79::i;:::-;131370:105;-1:-1:-1;131220:1309:0;;-1:-1:-1;131220:1309:0;;131602:46;;:::i;:::-;-1:-1:-1;;;;;131651:28:0;;;;;;:8;:28;;;;;;;;;131602:77;;;;;;;;;;;-1:-1:-1;;131602:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;131651:28;;131602:77;;131651:28;;131602:77;;;131651:28;131602:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;131602:77:0;;;-1:-1:-1;;131602:77:0;;;;;;-1:-1:-1;;;;;131602:77:0;;;;;;131756:35;;131602:77;;-1:-1:-1;131602:77:0;;131734:58;;:21;:58::i;:::-;131694:99;;131811:26;131839:23;131880:195;131888:8;131898:19;:35;;;131935:10;131947:18;131967:19;:35;;;132043:11;-1:-1:-1;;;;;132043:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;132004:70:0;:19;:35;;;-1:-1:-1;;;;;132004:70:0;;131880:7;:195::i;:::-;131810:265;;;;132135:11;-1:-1:-1;;;;;132135:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;132096:70:0;:19;:35;;;-1:-1:-1;;;;;132096:70:0;;132092:422;;;132213:82;132220:8;132238:4;132245:9;132256:12;132270:18;132290:4;132213:6;:82::i;:::-;132187:108;-1:-1:-1;132092:422:0;;-1:-1:-1;132092:422:0;;132378:104;132385:8;132395:19;:35;;;132432:9;132443:12;132457:18;132477:4;132378:6;:104::i;:::-;132352:130;-1:-1:-1;;132092:422:0;131220:1309;;;;;132546:19;130824:1749;-1:-1:-1;;;;;;130824:1749:0:o;4841:181::-;4899:7;4931:5;;;4955:6;;;;4947:46;;;;-1:-1:-1;;;4947:46:0;;;;;;;;;5013:1;-1:-1:-1;4841:181:0;;;;;:::o;54569:796::-;54747:13;;54743:615;;54869:43;;-1:-1:-1;;;54869:43:0;;54843:23;;-1:-1:-1;;;;;54869:24:0;;;;;:43;;54902:8;;54869:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54843:69;;54929:55;54951:8;54961:6;54969:3;54974:9;54929:21;:55::i;:::-;55087:43;;-1:-1:-1;;;55087:43:0;;55066:18;;-1:-1:-1;;;;;55087:24:0;;;;;:43;;55120:8;;55087:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55066:64;-1:-1:-1;55251:30:0;:15;55271:9;55251:30;:19;:30;:::i;:::-;55237:10;:44;55211:135;;;;-1:-1:-1;;;55211:135:0;;;;;;;;98952:169;99056:57;99083:6;99091:5;99098:3;99103:9;99056:26;:57::i;121851:1148::-;122185:7;122210:20;122233:61;122252:8;122262:14;122278:10;122290:3;122233:18;:61::i;:::-;122210:84;;122305:27;122335:8;-1:-1:-1;;;;;122335:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;122335:24:0;;;;;;;;;;;;;;122305:54;;122399:11;:18;122378:10;:17;:39;122370:71;;;;-1:-1:-1;;;122370:71:0;;;;;;;;;122481:10;:17;122460:10;:17;:38;122452:69;;;;-1:-1:-1;;;122452:69:0;;;;;;;;;122533:25;122560:26;122590:96;122605:8;122615:11;122628:19;122649:10;122661:11;122674;122590:14;:96::i;:::-;122532:154;;;;122726:14;122705:17;:35;;122697:70;;;;-1:-1:-1;;;122697:70:0;;;;;;;;;122780:37;;-1:-1:-1;;;122780:37:0;;-1:-1:-1;;;;;122780:13:0;;;;;:37;;122794:3;;122799:17;;122780:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122857:8;-1:-1:-1;;;;;122835:102:0;;122868:10;122880:3;122885:12;122899:17;122918:18;122835:102;;;;;;;;;;;;;;;;;;;122973:18;121851:1148;-1:-1:-1;;;;;;;;;;;;121851:1148:0:o;127745:1142::-;127819:16;127837;127866:27;127896:8;-1:-1:-1;;;;;127896:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;127896:24:0;;;;;;;;;;;;;;127866:54;;127931:27;127975:10;:17;-1:-1:-1;;;;;127961:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;127961:32:0;-1:-1:-1;127931:62:0;-1:-1:-1;128011:9:0;128006:822;128030:10;:17;128026:1;:21;128006:822;;;128069:17;128089:10;128100:1;128089:13;;;;;;;;;;;;;;128069:33;;128117:22;128142:8;-1:-1:-1;;;;;128142:35:0;;128178:9;128142:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128117:71;;128205:32;128240:8;-1:-1:-1;;;;;128240:35:0;;128276:9;128240:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;128240:46:0;;;;;;;;;;;;;;128305:22;;128205:81;;-1:-1:-1;128305:26:0;128301:456;;128357:9;128352:390;128376:15;:22;128372:1;:26;128352:390;;;128428:27;128458:8;-1:-1:-1;;;;;128458:36:0;;128495:9;128506:15;128522:1;128506:18;;;;;;;;;;;;;;128458:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128428:97;;128581:1;128558:20;:24;128550:88;;;;-1:-1:-1;;;128550:88:0;;;;;;;;;128681:41;:15;128701:20;128681:41;:19;:41;:::i;:::-;128663:59;-1:-1:-1;;128400:3:0;;128352:390;;;;128301:456;128789:27;:15;:25;:27::i;:::-;128773:10;128784:1;128773:13;;;;;;;;;;;;;;;;;:43;-1:-1:-1;;;128049:3:0;;128006:822;;;-1:-1:-1;128848:10:0;;-1:-1:-1;128860:10:0;-1:-1:-1;127745:1142:0;;;:::o;76021:126::-;76086:7;76113:26;74482:8;76113;:1;76119;76113:8;:5;:8;:::i;:::-;:12;:26;:12;:26;:::i;76664:211::-;76733:7;76757:6;;;:16;;-1:-1:-1;76767:6:0;;76757:16;76753:57;;;-1:-1:-1;76797:1:0;76790:8;;76753:57;76827:40;76865:1;76827:33;74482:8;76827:15;76865:1;76827:8;:1;76833;76827:8;:5;:8;:::i;:::-;:12;:15;:12;:15;:::i;:33::-;:37;:40;:37;:40;:::i;101049:142::-;101129:4;101175:8;-1:-1:-1;;;;;101153:30:0;:8;-1:-1:-1;;;;;101153:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;101153:30:0;;;101049:142;-1:-1:-1;;;101049:142:0:o;100815:147::-;100915:39;;-1:-1:-1;;;100915:39:0;;100891:4;;-1:-1:-1;;;;;100915:24:0;;;;;:39;;100948:4;;100915:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42295:206;42397:1;42386;:8;:12;42378:49;;;;-1:-1:-1;;;42378:49:0;;;;;;;;;42447:15;42460:1;42447:12;:15::i;:::-;42446:16;42438:55;;;;-1:-1:-1;;;42438:55:0;;;;;;;;101332:200;101430:10;;:34;;-1:-1:-1;;;101430:34:0;;101406:4;;-1:-1:-1;;;;;101430:10:0;;:15;;:34;;101454:8;;101430:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:94;;;;-1:-1:-1;101481:43:0;;-1:-1:-1;;;101481:43:0;;-1:-1:-1;;;;;101481:28:0;;;;;:43;;101518:4;;101481:43;;;;138632:1546;138874:7;138883;138943:13;-1:-1:-1;;;;;138912:45:0;138920:10;-1:-1:-1;;;;;138912:45:0;;138908:117;;;-1:-1:-1;138982:14:0;;-1:-1:-1;138982:14:0;138974:39;;138908:117;139035:26;;:::i;:::-;-1:-1:-1;;;;;139157:35:0;;;;;;:12;:35;;;;;;;;;139135:58;;;;;;;;;;;-1:-1:-1;;139135:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;139064:279;;139095:8;;139135:58;;139157:35;139135:58;;;139157:35;139135:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:21;:58::i;:::-;139209:10;139234:9;139258:13;139286:14;139315:17;139064:16;:279::i;:::-;139035:308;;139354:32;139376:9;139354:21;:32::i;:::-;139397:181;139411:9;:17;;;139430:9;:25;;;139457:9;:19;;;139478:9;:22;;;139502:9;:27;;;139531:9;:30;;;139563:9;:14;;;139397:13;:181::i;:::-;139589:29;139608:9;139589:18;:29::i;:::-;;139629:25;139657:89;139696:49;139724:8;139734:10;139696:27;:49::i;:::-;139657:34;;;;;:89;:38;:89;:::i;:::-;139629:117;;139757:28;139788:95;139845:9;:37;;;139788:52;139816:8;139826:13;139788:27;:52::i;:95::-;139757:126;;139980:13;-1:-1:-1;;;;;139899:212:0;139955:10;-1:-1:-1;;;;;139899:212:0;139932:8;-1:-1:-1;;;;;139899:212:0;;140008:9;:25;;;140048:17;140080:20;139899:212;;;;;;;;;;;;;;;;;140130:17;;-1:-1:-1;140149:20:0;-1:-1:-1;;138632:1546:0;;;;;;;;;;:::o;99256:233::-;99341:7;99362:23;99388:29;99400:16;99388:11;:29::i;:::-;99362:55;;99435:46;99465:15;99435:29;:46::i;:::-;99428:53;99256:233;-1:-1:-1;;;99256:233:0:o;142109:900::-;142357:7;142366;142402:35;142448:25;142487:212;142520:16;142551:8;142574:16;142605:13;142633:16;142664:10;142487:18;:212::i;:::-;142391:308;;;;142804:13;-1:-1:-1;;;;;142717:216:0;142773:16;-1:-1:-1;;;;;142717:216:0;142750:8;-1:-1:-1;;;;;142717:216:0;;142832:27;142874:17;142906:16;142717:216;;;;;;;;;;;;;;;;;142954:27;;;;-1:-1:-1;142109:900:0;-1:-1:-1;;;;;;;142109:900:0:o;53778:364::-;53950:13;;53946:189;;53980:21;54057:3;54062:9;54004:68;;;;;;;;;;;;;;-1:-1:-1;;54004:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;54004:68:0;-1:-1:-1;;;54004:68:0;;;54087:36;-1:-1:-1;;;54087:36:0;;54004:68;;-1:-1:-1;;;;;;54087:15:0;;;;;:36;;54103:6;;-1:-1:-1;;54004:68:0;;54087:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;54087:36:0;;;;;;;;;;;;;5305:136;5363:7;5390:43;5394:1;5397;5390:43;;;;;;;;;;;;;;;;;:3;:43::i;71526:768::-;71765:13;;71761:526;;71821:21;;-1:-1:-1;;;71821:21:0;;71795:23;;-1:-1:-1;;;;;71821:16:0;;;;;:21;;71838:3;;71821:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71795:47;;71859:140;71904:6;71929:5;71953:3;71975:9;71859:26;:140::i;:::-;72037:21;;-1:-1:-1;;;72037:21:0;;72016:18;;-1:-1:-1;;;;;72037:16:0;;;;;:21;;72054:3;;72037:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72016:42;-1:-1:-1;72180:30:0;:15;72200:9;72180:30;:19;:30;:::i;129201:489::-;-1:-1:-1;;;;;129436:29:0;;;129375:7;129436:29;;;:19;:29;;;;;;129375:7;;129436:29;129480:35;;129476:177;;129532:66;;-1:-1:-1;;;129532:66:0;;-1:-1:-1;;;;;129532:31:0;;;;;:66;;129564:8;;129574:9;;129585:7;;129594:3;;129532:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129628:12;129613:28;;;;;129476:177;129680:1;129665:17;;;129201:489;;;;;;;:::o;123007:1427::-;123214:7;123223;123248:25;-1:-1:-1;;123248:56:0;;123315:27;123345:8;-1:-1:-1;;;;;123345:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;123345:24:0;;;;;;;;;;;;;;123315:54;;123380:40;123437:10;:17;-1:-1:-1;;;;;123423:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;123423:32:0;-1:-1:-1;123380:75:0;-1:-1:-1;123473:9:0;123468:749;123492:10;:17;123488:1;:21;123468:749;;;123531:30;123564:53;123615:1;123564:46;123595:11;123607:1;123595:14;;;;;;;;;;;;;;123564:19;:30;;:46;;;;:::i;:53::-;123531:86;;123651:33;123687:64;123688:8;-1:-1:-1;;;;;123688:35:0;;123724:10;123735:1;123724:13;;;;;;;;;;;;;;123688:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123687:62;:64::i;:::-;123651:100;;123766:25;123794:100;123818:8;123828:11;123841:22;123865:10;123876:1;123865:13;;;;;;;;;;;;;;123880:10;123891:1;123880:13;;;;;;;;;;;;;;123794:23;:100::i;:::-;123766:128;;123938:17;123909:23;123933:1;123909:26;;;;;;;;;;;;;;;;;:46;124019:16;124038:55;:17;124067:25;124038:55;:28;:55;:::i;:::-;124019:74;;124124:17;124112:8;:29;124108:98;;124182:8;124162:28;;124108:98;-1:-1:-1;;123511:3:0;;;;;-1:-1:-1;123468:749:0;;-1:-1:-1;123468:749:0;;;124232:26;124261:105;124275:8;124285:11;124298:10;124310:23;124335:17;124354:11;124261:13;:105::i;:::-;124388:17;;;;-1:-1:-1;123007:1427:0;;-1:-1:-1;;;;;;;;;;123007:1427:0:o;34670:215::-;34726:6;34756:5;;;34781:6;;;;;;:16;;;34796:1;34791;:6;;34781:16;34780:38;;;;34807:1;34803;:5;:14;;;;;34816:1;34812;:5;34803:14;34772:84;;;;-1:-1:-1;;;34772:84:0;;;;;;;;28730:171;28786:7;28823:1;28814:5;:10;;28806:55;;;;-1:-1:-1;;;28806:55:0;;;;;;;;;-1:-1:-1;28887:5:0;28730:171::o;6195:471::-;6253:7;6498:6;6494:47;;-1:-1:-1;6528:1:0;6521:8;;6494:47;6565:5;;;6569:1;6565;:5;:1;6589:5;;;;;:10;6581:56;;;;-1:-1:-1;;;6581:56:0;;;;;;;;7142:132;7200:7;7227:39;7231:1;7234;7227:39;;;;;;;;;;;;;;;;;:3;:39::i;36912:417::-;36976:4;37012:1;37001;:8;:12;36993:35;;;;-1:-1:-1;;;36993:35:0;;;;;;;;;37046:9;37041:258;37076:1;37065;:8;:12;37061:1;:16;37041:258;;;37099:15;37117:1;37119;37117:4;;;;;;;;;;;;;;37099:22;;37141:9;37153:1;37157;37153:5;37141:17;;37136:152;37164:1;:8;37160:1;:12;37136:152;;;37213:1;37215;37213:4;;;;;;;;;;;;;;-1:-1:-1;;;;;37202:15:0;:7;-1:-1:-1;;;;;37202:15:0;;37198:75;;;37249:4;37242:11;;;;;;;37198:75;37174:3;;37136:152;;;-1:-1:-1;;37079:3:0;;37041:258;;;-1:-1:-1;37316:5:0;;36912:417;-1:-1:-1;;36912:417:0:o;134893:1488::-;135203:16;;:::i;:::-;135237:23;135271:21;-1:-1:-1;;;;;135307:23:0;;;;:50;;;135347:10;-1:-1:-1;;;;;135334:23:0;:9;-1:-1:-1;;;;;135334:23:0;;135307:50;:80;;;;135374:13;-1:-1:-1;;;;;135361:26:0;:9;-1:-1:-1;;;;;135361:26:0;;135307:80;135303:372;;;135411:16;;;135425:1;135411:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;135411:16:0;135404:23;;135452:10;135442:4;135447:1;135442:7;;;;;;;;;;;;;:20;-1:-1:-1;;;;;135442:20:0;;;-1:-1:-1;;;;;135442:20:0;;;;;135487:13;135477:4;135482:1;135477:7;;;;;;;;;;;;;:23;-1:-1:-1;;;;;135477:23:0;;;-1:-1:-1;;;;;135477:23:0;;;;;135303:372;;;135540:16;;;135554:1;135540:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;135540:16:0;135533:23;;135581:10;135571:4;135576:1;135571:7;;;;;;;;;;;;;:20;-1:-1:-1;;;;;135571:20:0;;;-1:-1:-1;;;;;135571:20:0;;;;;135616:9;135606:4;135611:1;135606:7;;;;;;;;;;;;;:19;-1:-1:-1;;;;;135606:19:0;;;-1:-1:-1;;;;;135606:19:0;;;;;135650:13;135640:4;135645:1;135640:7;;;;;;;;;;;;;:23;-1:-1:-1;;;;;135640:23:0;;;-1:-1:-1;;;;;135640:23:0;;;;;135303:372;135689:26;;:::i;:::-;-1:-1:-1;;;;;135726:28:0;;;;;135765:44;;;:25;;;:44;135820:32;;;:19;;;:32;135863:38;;:22;;;:38;135912:27;;;:45;;;135726:17;135968:30;;;:34;136050:49;135746:8;135842:10;136050:27;:49::i;:::-;136013:34;;;:86;136150:52;136178:8;136188:13;136150:27;:52::i;:::-;136110:37;;;:92;136230:17;:116;;136299:47;;-1:-1:-1;;;136299:47:0;;-1:-1:-1;;;;;136299:34:0;;;;;:47;;136334:4;;136340:5;;136299:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;136299:47:0;;;;;;;;;;;;;;136230:116;;;136250:46;;-1:-1:-1;;;136250:46:0;;-1:-1:-1;;;;;136250:34:0;;;;;:46;;136285:4;;136291;;136250:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;136250:46:0;;;;;;;;;;;;;;136213:14;;;:133;:14;134893:1488;-1:-1:-1;;;;;;;;;;134893:1488:0:o;133757:430::-;133881:1;133850:10;:28;;;:32;133842:74;;;;-1:-1:-1;;;133842:74:0;;;;;;;;;133927:24;133961:10;:20;;;-1:-1:-1;;;;;133954:38:0;;134001:10;:18;;;133954:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133927:94;;134074:10;:28;;;134054:16;:48;;134032:147;;;;-1:-1:-1;;;134032:147:0;;;;;;;;137121:941;137515:130;137552:10;137577:16;-1:-1:-1;;;;;137577:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;137515:22:0;;;:130;137621:13;137515:130;:22;:130;:::i;:::-;137673:22;137710:17;137742:23;137779:16;-1:-1:-1;;;;;137779:33:0;;137827:10;137852:13;137888:8;137912:13;137940:16;137971:5;137779:208;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;137779:208:0;;;;;;;;;;;;;;137658:329;;;;;;138000:8;-1:-1:-1;;;;;138000:15:0;;138016:14;138032:9;138043:10;138000:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;138000:54:0;;;;;;;;;;;;;;;137121:941;;;;;;;;;;:::o;133117:423::-;133197:7;133217:25;133245:134;133340:10;:38;;;133252:10;:23;;;-1:-1:-1;;;;;133245:51:0;;133305:10;:18;;;133245:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:134;133217:162;;133435:10;:31;;;133414:17;:52;;133392:105;;;;-1:-1:-1;;;133392:105:0;;;;;;;;132676:269;132801:7;132821:26;132857:12;-1:-1:-1;;;;;132850:30:0;;132889:8;132850:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101612:122;101703:23;;;;;;;;101612:122::o;99624:363::-;99750:10;;99711:7;;;;99750:35;;-1:-1:-1;;;;;99750:10:0;:33;:35::i;:::-;-1:-1:-1;;;;;99750:65:0;;99838:4;99858:16;99750:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99732:153;-1:-1:-1;;;;;;99906:21:0;;99898:55;;;;-1:-1:-1;;;99898:55:0;;;;;;;;145900:1878;146173:7;146182;146207:63;146223:8;146233:13;146248:21;146207:15;:63::i;:::-;146321:21;146345:10;:45;;146374:16;146345:45;;;146366:4;146345:45;146321:69;;146401:35;146439:52;146467:8;146477:13;146439:27;:52::i;:::-;146401:90;;146502:29;146534:52;146562:8;146572:13;146534:27;:52::i;:::-;146502:84;;146599:24;146639:39;146661:16;146639:21;:39::i;:::-;146599:80;;146690:21;146714:11;-1:-1:-1;;;;;146714:35:0;;146750:16;146768:13;146714:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;146690:92;-1:-1:-1;146793:75:0;-1:-1:-1;;;;;146793:22:0;;146816:13;146690:92;146846:21;146793:75;:22;:75;:::i;:::-;146946:228;146987:8;147010:11;147036:10;:63;;147083:16;147036:63;;;147049:11;-1:-1:-1;;;;;147049:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;147114:13;147142:21;146946:26;:228::i;:::-;147250:10;147246:108;;;147277:65;-1:-1:-1;;;;;147316:25:0;;147309:4;147316:25;;147277:65;:23;:65;:::i;:::-;147414:36;147453:52;147481:8;147491:13;147453:27;:52::i;:::-;147414:91;;147516:30;147549:52;147577:8;147587:13;147549:27;:52::i;:::-;147516:85;-1:-1:-1;147634:61:0;:28;147667:27;147634:61;:32;:61;:::i;:::-;147710:49;:21;147736:22;147710:49;:25;:49;:::i;:::-;147612:158;;;;;;;;;;;145900:1878;;;;;;;;;:::o;5744:192::-;5830:7;5866:12;5858:6;;;;5850:29;;;;-1:-1:-1;;;5850:29:0;;;;;;;;;;-1:-1:-1;;;5902:5:0;;;5744:192::o;67250:205::-;67351:96;67371:5;67401:27;;;67430:4;67436:2;67440:5;67378:68;;;;;;;;;;;;;;;-1:-1:-1;;67378:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;67378:68:0;-1:-1:-1;;;;;;67378:68:0;;;;;;;;;;67351:19;:96::i;124442:1924::-;124603:7;124623:30;124683:10;-1:-1:-1;;;;;124668:25:0;:11;-1:-1:-1;;;;;124668:25:0;;124664:1653;;;-1:-1:-1;124735:22:0;124664:1653;;;-1:-1:-1;;;;;124784:28:0;;;124840:1;124784:28;;;:8;:28;;;;;:44;;;;124780:1537;;124945:82;124952:8;124962:11;124975:9;124986:10;124998:22;125022:4;124945:6;:82::i;124780:1537::-;125149:46;;:::i;:::-;-1:-1:-1;;;;;125198:28:0;;;;;;:8;:28;;;;;;;;;125149:77;;;;;;;;;;;-1:-1:-1;;125149:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125198:28;;125149:77;;125198:28;;125149:77;;;125198:28;125149:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;125149:77:0;;;-1:-1:-1;;125149:77:0;;;;;;-1:-1:-1;;;;;125149:77:0;;;;;;125303:35;;125149:77;;-1:-1:-1;125149:77:0;;125281:58;;:21;:58::i;:::-;125241:99;;125355:26;125384:1;125355:30;;125443:11;-1:-1:-1;;;;;125443:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;125404:70:0;:19;:35;;;-1:-1:-1;;;;;125404:70:0;;125400:906;;;125522:4;-1:-1:-1;;;;;125499:28:0;:11;-1:-1:-1;;;;;125499:28:0;;125495:279;;125577:85;125584:8;125594:11;125607:9;125626:4;125633:22;125657:4;125577:6;:85::i;:::-;125552:110;-1:-1:-1;125495:279:0;;-1:-1:-1;125495:279:0;;-1:-1:-1;125732:22:0;125495:279;125817:127;125823:8;125833:19;:35;;;125870:10;125882:18;125902:19;:35;;;125939:4;125817:5;:127::i;:::-;125792:152;;125400:906;;;126010:108;126017:8;126027:11;126040:9;126051:19;:35;;;126089:22;126113:4;126010:6;:108::i;:::-;125985:133;;;;;;126162:128;126168:8;126178:19;:35;;;126215:10;126227:18;126247:19;:35;;;126284:5;126162;:128::i;:::-;126137:153;;125400:906;124780:1537;;;126336:22;-1:-1:-1;124442:1924:0;;;;;;;:::o;76967:126::-;77032:7;77059:26;77083:1;77059:19;:1;74482:8;77059:19;:5;:19;:::i;126450:1106::-;126646:7;126671:11;126666:53;;-1:-1:-1;126706:1:0;126699:8;;126666:53;126729:26;126758:1;126729:30;;126770:27;126800:8;-1:-1:-1;;;;;126800:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;126800:24:0;;;;;;;;;;;;;;126770:54;-1:-1:-1;126841:9:0;126837:669;126860:10;:17;126856:1;:21;126837:669;;;126899:29;126931:96;127009:17;126932:64;126933:8;-1:-1:-1;;;;;126933:35:0;;126969:10;126980:1;126969:13;;;;;;;126932:64;126931:77;:96;:77;:96;:::i;:::-;126899:128;;127042:16;127061:53;127092:21;127061:23;127085:1;127061:26;;;;;;;;;;;;;;:30;;:53;;;;:::i;:::-;127042:72;-1:-1:-1;127129:22:0;127154:42;127042:72;127174:21;127154:42;:19;:42;:::i;:::-;127129:67;;127262:40;127296:5;127262:29;:27;:29::i;:40::-;127244:14;:59;127240:255;;;127354:125;127377:101;127416:8;127426:11;127439:10;127450:1;127439:13;;;;;;;;;;;;;;127454:10;127465:1;127454:13;;;;;;;;;;;;;;127469:8;127377:38;:101::i;:::-;127354:18;;:125;:22;:125;:::i;:::-;127333:146;;127240:255;-1:-1:-1;;;126879:3:0;;126837:669;;;-1:-1:-1;127530:18:0;;126450:1106;-1:-1:-1;;;;;;;;126450:1106:0:o;7770:278::-;7856:7;7891:12;7884:5;7876:28;;;;-1:-1:-1;;;7876:28:0;;;;;;;;;;;7915:9;7931:1;7927;:5;;;;;;;7770:278;-1:-1:-1;;;;;7770:278:0:o;53122:323::-;53294:21;53370:8;53380:9;53318:72;;;;;;;;;;;;;;-1:-1:-1;;53318:72:0;;;;;;;;;;;;;;-1:-1:-1;;;;;53318:72:0;-1:-1:-1;;;53318:72:0;;;53401:36;-1:-1:-1;;;53401:36:0;;53318:72;;-1:-1:-1;;;;;;53401:15:0;;;;;:36;;53417:6;;-1:-1:-1;;53318:72:0;;53401:36;;;;148182:353;148367:1;148355:9;:13;148347:56;;;;-1:-1:-1;;;148347:56:0;;;;;;;;;148475:9;148422:49;148450:8;148460:10;148422:27;:49::i;:::-;:62;;148414:113;;;;-1:-1:-1;;;148414:113:0;;;;;;;;149299:558;149546:18;149579:17;149611:25;149650:12;-1:-1:-1;;;;;149650:30:0;;149695:16;149726:13;149754:19;149650:134;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;149650:134:0;;;;;;;;;;;;;;149531:253;;;;;;149797:8;-1:-1:-1;;;;;149797:15:0;;149813:10;149825:9;149836:12;149797:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;149797:52:0;;;;;;;;;;;;;56114:219;56235:36;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;56235:36:0;-1:-1:-1;;;56235:36:0;;;56282:43;;-1:-1:-1;;;56282:43:0;;56235:36;;-1:-1:-1;;;;;56282:15:0;;;;;:43;;56298:5;;56305:9;;56235:36;;56282:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;56282:43:0;;;;;;;;;;;;;;;56114:219;;;;:::o;69370:761::-;69794:23;69820:69;69848:4;69820:69;;;;;;;;;;;;;;;;;69828:5;-1:-1:-1;;;;;69820:27:0;;;:69;;;;;:::i;:::-;69904:17;;69794:95;;-1:-1:-1;69904:21:0;69900:224;;70046:10;70035:30;;;;;;;;;;;;;;70027:85;;;;-1:-1:-1;;;70027:85:0;;;;;;;;140704:865;140962:7;140998:33;141042:23;141079:221;141110:16;141141:8;141164:16;141195:13;141223:19;141257:10;141079:16;:221::i;:::-;140987:313;;;;141403:13;-1:-1:-1;;;;;141318:210:0;141372:16;-1:-1:-1;;;;;141318:210:0;141349:8;-1:-1:-1;;;;;141318:210:0;;141431:25;141471:15;141501:16;141318:210;;;;;;;;;;;;;;;;;141546:15;140704:865;-1:-1:-1;;;;;;;;140704:865:0:o;74927:93::-;74482:8;74927:93;:::o;63062:195::-;63165:12;63197:52;63219:6;63227:4;63233:1;63236:12;63197:21;:52::i;143492:1926::-;143761:7;143770;143795:35;143880:29;143912:52;143940:8;143950:13;143912:27;:52::i;:::-;143880:84;;143977:24;144017:39;144039:16;144017:21;:39::i;:::-;143977:80;;144070:21;144094:10;:45;;144123:16;144094:45;;;144115:4;144094:45;144070:69;;144150:61;144166:8;144176:13;144191:19;144150:15;:61::i;:::-;144252:52;144280:8;144290:13;144252:27;:52::i;:::-;144222:82;;144399:10;144395:313;;;144426:61;-1:-1:-1;;;;;144426:25:0;;144460:4;144467:19;144426:61;:25;:61;:::i;:::-;144395:313;;;144538:66;;-1:-1:-1;;;144538:66:0;;144520:15;;-1:-1:-1;;;;;144538:33:0;;;;;:66;;144572:16;;144590:13;;144538:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;144520:84;-1:-1:-1;144619:77:0;144642:16;144520:84;144669:26;:19;144693:1;144669:26;:23;:26;:::i;:::-;144619:8;-1:-1:-1;;;;;144619:22:0;;;:77;;;;;;:::i;:::-;144395:313;;144777:224;144816:8;144839:11;144865:10;:63;;144912:16;144865:63;;;144878:11;-1:-1:-1;;;;;144878:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;144943:13;144971:19;144777:24;:224::i;:::-;145054:36;145093:52;145121:8;145131:13;145093:27;:52::i;:::-;145054:91;;145156:30;145189:52;145217:8;145227:13;145189:27;:52::i;:::-;145156:85;-1:-1:-1;145274:61:0;:27;145306:28;145274:61;:31;:61;:::i;:::-;145350:49;:22;145377:21;145350:49;:26;:49;:::i;:::-;145252:158;;;;;;;;;;143492:1926;;;;;;;;;:::o;64114:530::-;64241:12;64299:5;64274:21;:30;;64266:81;;;;-1:-1:-1;;;64266:81:0;;;;;;;;;64366:18;64377:6;64366:10;:18::i;:::-;64358:60;;;;-1:-1:-1;;;64358:60:0;;;;;;;;;64492:12;64506:23;64533:6;-1:-1:-1;;;;;64533:11:0;64553:5;64561:4;64533:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64491:75;;;;64584:52;64602:7;64611:10;64623:12;64584:17;:52::i;:::-;64577:59;64114:530;-1:-1:-1;;;;;;;64114:530:0:o;55625:232::-;55724:21;55793:9;55748:55;;;;;;;;;;;;;-1:-1:-1;;55748:55:0;;;;;;;;;;;;;;-1:-1:-1;;;;;55748:55:0;-1:-1:-1;;;55748:55:0;;;55814:35;-1:-1:-1;;;55814:35:0;;55748:55;;-1:-1:-1;;;;;;55814:15:0;;;;;:35;;55830:5;;-1:-1:-1;;55748:55:0;;55814:35;;;;148639:554;148884:18;148917:17;148949:25;148988:12;-1:-1:-1;;;;;148988:28:0;;149031:16;149062:13;149090:19;148988:132;;;;;;;;;;;;;;;;;;60144:422;60511:20;60550:8;;;60144:422::o;65650:742::-;65765:12;65794:7;65790:595;;;-1:-1:-1;65825:10:0;65818:17;;65790:595;65939:17;;:21;65935:439;;66202:10;66196:17;66263:15;66250:10;66246:2;66242:19;66235:44;66150:148;66345:12;66338:20;;-1:-1:-1;;;66338:20:0;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;301:707;;418:3;411:4;403:6;399:17;395:27;385:2;;-1:-1;;426:12;385:2;473:6;460:20;495:80;510:64;567:6;510:64;;;495:80;;;603:21;;;486:89;-1:-1;647:4;660:14;;;;635:17;;;749;;;740:27;;;;737:36;-1:-1;734:2;;;786:1;;776:12;734:2;811:1;796:206;821:6;818:1;815:13;796:206;;;85:6;72:20;97:33;124:5;97:33;;;889:50;;953:14;;;;981;;;;843:1;836:9;796:206;;;800:14;;;;;378:630;;;;;1781:708;;1908:3;1901:4;1893:6;1889:17;1885:27;1875:2;;-1:-1;;1916:12;1875:2;1963:6;1950:20;1985:90;2000:74;2067:6;2000:74;;1985:90;2103:21;;;1976:99;-1:-1;2147:4;2160:14;;;;2135:17;;;2255:1;2240:243;2265:6;2262:1;2259:13;2240:243;;;2348:3;2335:17;2139:6;2323:30;4718:3;4699:17;2323:30;4699:17;4695:27;4685:2;;2255:1;;4726:12;4685:2;2147:4;2323:30;;4760:20;4795:65;4810:49;4852:6;4810:49;;4795:65;4880:6;4873:5;4866:21;4904:17;4984:3;4904:17;4975:6;2323:30;4966:16;;4963:25;4960:2;;;2255:1;;4991:12;4960:2;66515:6;4904:17;2323:30;4904:17;2147:4;4942:5;4938:16;66492:30;-1:-1;2255:1;66553:16;;;;;66546:27;;;;2360:60;;-1:-1;2434:14;;;;2462;;;;2287:1;2280:9;2240:243;;2515:707;;2632:3;2625:4;2617:6;2613:17;2609:27;2599:2;;-1:-1;;2640:12;2599:2;2687:6;2674:20;2709:80;2724:64;2781:6;2724:64;;2709:80;2817:21;;;2700:89;-1:-1;2861:4;2874:14;;;;2849:17;;;2963;;;2954:27;;;;2951:36;-1:-1;2948:2;;;3000:1;;2990:12;2948:2;3025:1;3010:206;3035:6;3032:1;3029:13;3010:206;;;5133:20;;3103:50;;3167:14;;;;3195;;;;3057:1;3050:9;3010:206;;3497:442;;3609:3;3602:4;3594:6;3590:17;3586:27;3576:2;;-1:-1;;3617:12;3576:2;3657:6;3651:13;3679:64;3694:48;3735:6;3694:48;;3679:64;3670:73;;3763:6;3756:5;3749:21;3867:3;3799:4;3858:6;3791;3849:16;;3846:25;3843:2;;;3884:1;;3874:12;3843:2;3894:39;3926:6;3799:4;3825:5;3821:16;3799:4;3791:6;3787:17;3894:39;;;;3569:370;;;;;5344:241;;5448:2;5436:9;5427:7;5423:23;5419:32;5416:2;;;-1:-1;;5454:12;5416:2;85:6;72:20;97:33;124:5;97:33;;5592:263;;5707:2;5695:9;5686:7;5682:23;5678:32;5675:2;;;-1:-1;;5713:12;5675:2;226:6;220:13;238:33;265:5;238:33;;5862:632;;;;6020:2;6008:9;5999:7;5995:23;5991:32;5988:2;;;-1:-1;;6026:12;5988:2;226:6;220:13;238:33;265:5;238:33;;;6189:2;6239:22;;5281:13;6329:2;6314:18;;6308:25;6078:74;;-1:-1;5281:13;-1:-1;;;;;;6342:30;;6339:2;;;-1:-1;;6375:12;6339:2;6405:73;6470:7;6461:6;6450:9;6446:22;6405:73;;;6395:83;;;5982:512;;;;;;6501:392;;6641:2;;6629:9;6620:7;6616:23;6612:32;6609:2;;;-1:-1;;6647:12;6609:2;6698:17;6692:24;-1:-1;;;;;6728:6;6725:30;6722:2;;;-1:-1;;6758:12;6722:2;6860:6;6849:9;6845:22;1162:3;1155:4;1147:6;1143:17;1139:27;1129:2;;-1:-1;;1170:12;1129:2;1210:6;1204:13;1190:27;;1232:80;1247:64;1304:6;1247:64;;1232:80;1340:21;;;1397:14;;;;1372:17;;;1486;;;1477:27;;;;1474:36;-1:-1;1471:2;;;-1:-1;;1513:12;1471:2;-1:-1;1539:10;;1533:217;1558:6;1555:1;1552:13;1533:217;;;226:6;220:13;238:33;265:5;238:33;;;1626:61;;1580:1;1573:9;;;;;1701:14;;;;1729;;1533:217;;;-1:-1;6778:99;6603:290;-1:-1;;;;;;;6603:290;6900:658;;;7081:2;7069:9;7060:7;7056:23;7052:32;7049:2;;;-1:-1;;7087:12;7049:2;7145:17;7132:31;-1:-1;;;;;7183:18;7175:6;7172:30;7169:2;;;-1:-1;;7205:12;7169:2;7235:78;7305:7;7296:6;7285:9;7281:22;7235:78;;;7225:88;;7378:2;7367:9;7363:18;7350:32;7336:46;;7183:18;7394:6;7391:30;7388:2;;;-1:-1;;7424:12;7388:2;;7454:88;7534:7;7525:6;7514:9;7510:22;7454:88;;;7444:98;;;7043:515;;;;;;7565:919;;;;7788:2;7776:9;7767:7;7763:23;7759:32;7756:2;;;-1:-1;;7794:12;7756:2;7852:17;7839:31;-1:-1;;;;;7890:18;7882:6;7879:30;7876:2;;;-1:-1;;7912:12;7876:2;7942:78;8012:7;8003:6;7992:9;7988:22;7942:78;;;7932:88;;8085:2;8074:9;8070:18;8057:32;8043:46;;7890:18;8101:6;8098:30;8095:2;;;-1:-1;;8131:12;8095:2;8161:88;8241:7;8232:6;8221:9;8217:22;8161:88;;;8151:98;;8314:2;8303:9;8299:18;8286:32;8272:46;;7890:18;8330:6;8327:30;8324:2;;;-1:-1;;8360:12;8324:2;;8390:78;8460:7;8451:6;8440:9;8436:22;8390:78;;8491:257;;8603:2;8591:9;8582:7;8578:23;8574:32;8571:2;;;-1:-1;;8609:12;8571:2;3442:6;3436:13;3454:30;3478:5;3454:30;;8755:360;;8879:2;8867:9;8858:7;8854:23;8850:32;8847:2;;;-1:-1;;8885:12;8847:2;8936:17;8930:24;-1:-1;;;;;8966:6;8963:30;8960:2;;;-1:-1;;8996:12;8960:2;9026:73;9091:7;9082:6;9071:9;9067:22;9026:73;;9404:1421;;;;;;;;;9691:3;9679:9;9670:7;9666:23;9662:33;9659:2;;;-1:-1;;9698:12;9659:2;4044:6;4031:20;4056:50;4100:5;4056:50;;;9750:80;-1:-1;9867:2;9906:22;;72:20;97:33;72:20;97:33;;;9875:63;-1:-1;9975:2;10014:22;;5133:20;;-1:-1;10083:2;10122:22;;5133:20;;-1:-1;10219:3;10204:19;;10191:33;-1:-1;;;;;10233:30;;;10230:2;;;-1:-1;;10266:12;10230:2;10296:78;10366:7;10357:6;10346:9;10342:22;10296:78;;;10286:88;;10439:3;10428:9;10424:19;10411:33;10397:47;;10244:18;10456:6;10453:30;10450:2;;;-1:-1;;10486:12;10450:2;;10516:78;10586:7;10577:6;10566:9;10562:22;10516:78;;;10506:88;;;10631:3;10675:9;10671:22;72:20;97:33;124:5;97:33;;;10640:63;-1:-1;10740:3;10777:22;;3294:20;3319:30;3294:20;3319:30;;;10749:60;;;;9653:1172;;;;;;;;;;;;10832:458;;;10999:2;10987:9;10978:7;10974:23;10970:32;10967:2;;;-1:-1;;11005:12;10967:2;4044:6;4031:20;4056:50;4100:5;4056:50;;;11057:80;-1:-1;11174:2;11242:22;;4377:20;4402:62;4377:20;4402:62;;;11182:92;;;;10961:329;;;;;;11297:1039;;;;;;;11528:3;11516:9;11507:7;11503:23;11499:33;11496:2;;;-1:-1;;11535:12;11496:2;4044:6;4031:20;4056:50;4100:5;4056:50;;;11587:80;-1:-1;11704:2;11743:22;;5133:20;;-1:-1;11812:2;11851:22;;72:20;97:33;72:20;97:33;;;11820:63;-1:-1;11948:2;11933:18;;11920:32;-1:-1;;;;;11961:30;;11958:2;;;-1:-1;;11994:12;11958:2;12024:78;12094:7;12085:6;12074:9;12070:22;12024:78;;;12014:88;;;12139:3;12183:9;12179:22;72:20;97:33;124:5;97:33;;;12148:63;;;;12248:3;12292:9;12288:22;5133:20;12257:63;;11490:846;;;;;;;;;12343:1169;;;;;;;12596:3;12584:9;12575:7;12571:23;12567:33;12564:2;;;-1:-1;;12603:12;12564:2;4044:6;4031:20;4056:50;4100:5;4056:50;;;12655:80;-1:-1;12772:2;12811:22;;5133:20;;-1:-1;12908:2;12893:18;;12880:32;-1:-1;;;;;12921:30;;;12918:2;;;-1:-1;;12954:12;12918:2;12984:78;13054:7;13045:6;13034:9;13030:22;12984:78;;;12974:88;;13127:2;13116:9;13112:18;13099:32;13085:46;;12932:18;13143:6;13140:30;13137:2;;;-1:-1;;13173:12;13137:2;;13203:78;13273:7;13264:6;13253:9;13249:22;13203:78;;;13193:88;;;13318:3;13362:9;13358:22;72:20;97:33;124:5;97:33;;;13327:63;-1:-1;13427:3;13464:22;;3294:20;3319:30;3294:20;3319:30;;;13436:60;;;;12558:954;;;;;;;;;13519:519;;;;13671:2;13659:9;13650:7;13646:23;13642:32;13639:2;;;-1:-1;;13677:12;13639:2;4044:6;4031:20;4056:50;4100:5;4056:50;;;13729:80;-1:-1;13846:2;13885:22;;5133:20;;-1:-1;13954:2;13990:22;;3294:20;3319:30;3294:20;3319:30;;;13962:60;;;;13633:405;;;;;;14319:261;;14433:2;14421:9;14412:7;14408:23;14404:32;14401:2;;;-1:-1;;14439:12;14401:2;-1:-1;4553:13;;14395:185;-1:-1;14395:185;15631:690;;15824:5;61670:12;62473:6;62468:3;62461:19;62510:4;;62505:3;62501:14;15836:93;;62510:4;16000:5;61366:14;-1:-1;16039:260;16064:6;16061:1;16058:13;16039:260;;;16125:13;;-1:-1;;;;;63974:54;15431:37;;15011:14;;;;62201;;;;6353:18;16079:9;16039:260;;;-1:-1;16305:10;;15755:566;-1:-1;;;;;15755:566;17289:343;;17431:5;61670:12;62473:6;62468:3;62461:19;17524:52;17569:6;62510:4;62505:3;62501:14;62510:4;17550:5;17546:16;17524:52;;;66948:7;66932:14;-1:-1;;66928:28;17588:39;;;;62510:4;17588:39;;17379:253;-1:-1;;17379:253;32713:271;;17799:5;61670:12;17910:52;17955:6;17950:3;17943:4;17936:5;17932:16;17910:52;;;17974:16;;;;;32847:137;-1:-1;;32847:137;32991:222;-1:-1;;;;;63974:54;;;;15431:37;;33118:2;33103:18;;33089:124;33220:684;-1:-1;;;;;63974:54;;;15300:58;;63974:54;;;33640:2;33625:18;;15431:37;63974:54;;;;33723:2;33708:18;;15431:37;33806:2;33791:18;;17240:37;;;;33889:3;33874:19;;17240:37;;;;33467:3;33452:19;;33438:466;33911:460;-1:-1;;;;;63974:54;;;15300:58;;63974:54;;;;34274:2;34259:18;;15431:37;34357:2;34342:18;;17240:37;;;;34102:2;34087:18;;34073:298;34378:349;-1:-1;;;;;63974:54;;;;15300:58;;34713:2;34698:18;;17240:37;34541:2;34526:18;;34512:215;34734:333;-1:-1;;;;;63974:54;;;15431:37;;63974:54;;35053:2;35038:18;;15431:37;34889:2;34874:18;;34860:207;35074:864;-1:-1;;;;;63974:54;;;15431:37;;63974:54;;;35524:2;35509:18;;15431:37;63974:54;;35607:2;35592:18;;15431:37;35690:2;35675:18;;17240:37;;;35773:3;35758:19;;17240:37;;;35359:3;63985:42;35796:19;;35789:49;;;35074:864;;35852:76;;35344:19;;35914:6;35852:76;;;35844:84;35330:608;-1:-1;;;;;;;;35330:608;36736:544;;6353:18;;63985:42;;;63292:5;63974:54;15438:3;15431:37;66154:24;37117:2;37106:9;37102:18;19115:58;36945:2;37154;37143:9;37139:18;37132:48;37194:76;36945:2;36934:9;36930:18;37256:6;37194:76;;;37186:84;36916:364;-1:-1;;;;;36916:364;37287:421;-1:-1;;;;;63974:54;;15431:37;;37462:2;37580;37565:18;;37558:48;;;37287:421;;37620:78;;37447:18;;37684:6;37620:78;;38590:629;;38845:2;38866:17;38859:47;38920:108;38845:2;38834:9;38830:18;39014:6;38920:108;;;39066:20;;;39061:2;39046:18;;;39039:48;;;;61670:12;;62461:19;;;61366:14;;;;62501;;;-1:-1;16768:260;16793:6;16790:1;16787:13;16768:260;;;16854:13;;17240:37;;62201:14;;;;15193;;;;16815:1;16808:9;16768:260;;;-1:-1;39093:116;;38816:403;-1:-1;;;;;;;38816:403;39226:469;;39425:2;39446:17;39439:47;39500:108;39425:2;39414:9;39410:18;39594:6;39500:108;;;39492:116;;17150:5;63376:13;63369:21;39681:2;39670:9;39666:18;17123:34;39396:299;;;;;;39702:590;-1:-1;;;;;63974:54;;;18090:67;;40112:2;40097:18;;17240:37;;;;63974:54;;;40195:2;40180:18;;15431:37;63974:54;;;40278:2;40263:18;;15431:37;39930:3;39915:19;;39901:391;40299:604;-1:-1;;;;;63974:54;;;18090:67;;40716:2;40701:18;;17240:37;;;;63974:54;;40812:2;40797:18;;18090:67;63376:13;;63369:21;40889:2;40874:18;;17123:34;40534:3;40519:19;;40505:398;41179:494;-1:-1;;;;;63974:54;;;;18090:67;;41576:2;41561:18;;17240:37;;;;41659:2;41644:18;;17240:37;41387:2;41372:18;;41358:315;42224:310;;42371:2;42392:17;42385:47;42446:78;42371:2;42360:9;42356:18;42510:6;42446:78;;42541:421;;42716:2;42737:17;42730:47;42791:78;42716:2;42705:9;42701:18;42855:6;42791:78;;;42783:86;;6353:18;;63985:42;;;63292:5;63974:54;42948:2;42937:9;42933:18;15431:37;42687:275;;;;;;42969:416;43169:2;43183:47;;;19764:2;43154:18;;;62461:19;19800:34;62501:14;;;19780:55;-1:-1;;;19855:12;;;19848:27;19894:12;;;43140:245;43392:416;43592:2;43606:47;;;20145:2;43577:18;;;62461:19;-1:-1;;;62501:14;;;20161:44;20224:12;;;43563:245;43815:416;44015:2;44029:47;;;20475:2;44000:18;;;62461:19;-1:-1;;;62501:14;;;20491:42;20552:12;;;43986:245;44238:416;44438:2;44452:47;;;20803:2;44423:18;;;62461:19;20839:34;62501:14;;;20819:55;-1:-1;;;20894:12;;;20887:26;20932:12;;;44409:245;44661:416;44861:2;44875:47;;;21183:2;44846:18;;;62461:19;21219:34;62501:14;;;21199:55;-1:-1;;;21274:12;;;21267:41;21327:12;;;44832:245;45084:416;45284:2;45298:47;;;21578:2;45269:18;;;62461:19;21614:34;62501:14;;;21594:55;-1:-1;;;21669:12;;;21662:30;21711:12;;;45255:245;45507:416;45707:2;45721:47;;;21962:2;45692:18;;;62461:19;21998:29;62501:14;;;21978:50;22047:12;;;45678:245;45930:416;46130:2;46144:47;;;22298:2;46115:18;;;62461:19;22334:29;62501:14;;;22314:50;22383:12;;;46101:245;46353:416;46553:2;46567:47;;;22634:2;46538:18;;;62461:19;22670:32;62501:14;;;22650:53;22722:12;;;46524:245;46776:416;46976:2;46990:47;;;22973:2;46961:18;;;62461:19;-1:-1;;;62501:14;;;22989:39;23047:12;;;46947:245;47199:416;47399:2;47413:47;;;23298:2;47384:18;;;62461:19;23334:34;62501:14;;;23314:55;-1:-1;;;23389:12;;;23382:30;23431:12;;;47370:245;47622:416;47822:2;47836:47;;;23682:2;47807:18;;;62461:19;23718:34;62501:14;;;23698:55;-1:-1;;;23773:12;;;23766:25;23810:12;;;47793:245;48045:416;48245:2;48259:47;;;24061:2;48230:18;;;62461:19;-1:-1;;;62501:14;;;24077:45;24141:12;;;48216:245;48468:416;48668:2;48682:47;;;24392:2;48653:18;;;62461:19;24428:34;62501:14;;;24408:55;-1:-1;;;24483:12;;;24476:30;24525:12;;;48639:245;48891:416;49091:2;49105:47;;;24776:2;49076:18;;;62461:19;-1:-1;;;62501:14;;;24792:44;24855:12;;;49062:245;49314:416;49514:2;49528:47;;;25106:2;49499:18;;;62461:19;25142:28;62501:14;;;25122:49;25190:12;;;49485:245;49737:416;49937:2;49951:47;;;49922:18;;;62461:19;25477:34;62501:14;;;25457:55;25531:12;;;49908:245;50160:416;50360:2;50374:47;;;25782:2;50345:18;;;62461:19;25818:29;62501:14;;;25798:50;25867:12;;;50331:245;50583:416;50783:2;50797:47;;;26118:2;50768:18;;;62461:19;26154:28;62501:14;;;26134:49;26202:12;;;50754:245;51006:416;51206:2;51220:47;;;26453:2;51191:18;;;62461:19;26489:34;62501:14;;;26469:55;-1:-1;;;26544:12;;;26537:25;26581:12;;;51177:245;51429:416;51629:2;51643:47;;;51614:18;;;62461:19;26868:34;62501:14;;;26848:55;26922:12;;;51600:245;51852:416;52052:2;52066:47;;;27173:2;52037:18;;;62461:19;27209:31;62501:14;;;27189:52;27260:12;;;52023:245;52275:416;52475:2;52489:47;;;27511:2;52460:18;;;62461:19;27547:32;62501:14;;;27527:53;27599:12;;;52446:245;52698:416;52898:2;52912:47;;;27850:2;52883:18;;;62461:19;27886:31;62501:14;;;27866:52;27937:12;;;52869:245;53121:416;53321:2;53335:47;;;28188:2;53306:18;;;62461:19;28224:26;62501:14;;;28204:47;28270:12;;;53292:245;53544:416;53744:2;53758:47;;;28521:2;53729:18;;;62461:19;28557:30;62501:14;;;28537:51;28607:12;;;53715:245;53967:416;54167:2;54181:47;;;28858:2;54152:18;;;62461:19;28894:32;62501:14;;;28874:53;28946:12;;;54138:245;54390:416;54590:2;54604:47;;;54575:18;;;62461:19;29233:34;62501:14;;;29213:55;29287:12;;;54561:245;54813:416;55013:2;55027:47;;;54998:18;;;62461:19;29574:34;62501:14;;;29554:55;29628:12;;;54984:245;55236:416;55436:2;55450:47;;;29879:2;55421:18;;;62461:19;29915:28;62501:14;;;29895:49;29963:12;;;55407:245;55659:416;55859:2;55873:47;;;30214:2;55844:18;;;62461:19;30250:34;62501:14;;;30230:55;-1:-1;;;30305:12;;;30298:34;30351:12;;;55830:245;56082:416;56282:2;56296:47;;;30602:2;56267:18;;;62461:19;30638:34;62501:14;;;30618:55;-1:-1;;;30693:12;;;30686:31;30736:12;;;56253:245;56505:416;56705:2;56719:47;;;30987:2;56690:18;;;62461:19;31023:33;62501:14;;;31003:54;31076:12;;;56676:245;56928:416;57128:2;57142:47;;;31327:2;57113:18;;;62461:19;31363:31;62501:14;;;31343:52;31414:12;;;57099:245;57351:416;57551:2;57565:47;;;31665:2;57536:18;;;62461:19;31701:34;62501:14;;;31681:55;-1:-1;;;31756:12;;;31749:43;31811:12;;;57522:245;57774:416;57974:2;57988:47;;;32062:2;57959:18;;;62461:19;-1:-1;;;62501:14;;;32078:41;32138:12;;;57945:245;58197:416;58397:2;58411:47;;;32389:2;58382:18;;;62461:19;-1:-1;;;62501:14;;;32405:33;32457:12;;;58368:245;58620:222;17240:37;;;58747:2;58732:18;;58718:124;58849:532;;17270:5;17247:3;17240:37;17270:5;59216:2;59205:9;59201:18;17240:37;59052:2;59253;59242:9;59238:18;59231:48;59293:78;59052:2;59041:9;59037:18;59357:6;59293:78;;59388:256;59450:2;59444:9;59476:17;;;-1:-1;;;;;59536:34;;59572:22;;;59533:62;59530:2;;;59608:1;;59598:12;59530:2;59450;59617:22;59428:216;;-1:-1;59428:216;59651:304;;-1:-1;;;;;59802:6;59799:30;59796:2;;;-1:-1;;59832:12;59796:2;-1:-1;59877:4;59865:17;;;59930:15;;59733:222;60594:321;;-1:-1;;;;;60729:6;60726:30;60723:2;;;-1:-1;;60759:12;60723:2;-1:-1;66948:7;60813:17;-1:-1;;60809:33;60900:4;60890:15;;60660:255;66588:268;66653:1;66660:101;66674:6;66671:1;66668:13;66660:101;;;66741:11;;;66735:18;66722:11;;;66715:39;66696:2;66689:10;66660:101;;;66776:6;66773:1;66770:13;66767:2;;;-1:-1;;66653:1;66823:16;;66816:27;66637:219;66969:117;-1:-1;;;;;63974:54;;67028:35;;67018:2;;67077:1;;67067:12;67093:111;67174:5;63376:13;63369:21;67152:5;67149:32;67139:2;;67195:1;;67185:12","linkReferences":{},"immutableReferences":{"4792":[{"start":759,"length":32},{"start":2987,"length":32},{"start":3106,"length":32},{"start":3153,"length":32},{"start":3212,"length":32},{"start":5611,"length":32},{"start":12221,"length":32},{"start":12610,"length":32},{"start":13325,"length":32},{"start":13388,"length":32},{"start":14984,"length":32},{"start":15062,"length":32}]}}}}}}},"signatures":{"function":[{"signature":"controller()","signatureHash4":"0xf77c4791","signatureHash32":"0xf77c479193cde57766d8942951485a8f17f392317496eb71bad328979039b747"},{"signature":"exchangeInfo(address)","signatureHash4":"0x5f06cd2c","signatureHash32":"0x5f06cd2c4873c13924af25ef079b5d6e885f8329d3d192fc7ba74c98bae2c2db"},{"signature":"getRequiredComponentIssuanceUnits(address,uint256,bool)","signatureHash4":"0xf1ca6a3f","signatureHash32":"0xf1ca6a3ffe69ddf854279ee22538710e51c1f44ae9d0fb56b4f1731902b82907"},{"signature":"initialize(address,address)","signatureHash4":"0x485cc955","signatureHash32":"0x485cc955cd05f29985ce37d87ac35dcf2fdbc60b9106f66a532e31a2f1d5743b"},{"signature":"issueWithEther2(address,uint256,address[],uint256[],address,bool)","signatureHash4":"0xc97b83b0","signatureHash32":"0xc97b83b05f99475611a702d2b010b38e1faf260c66ccd3bc9b9b62e0a1e13ea2"},{"signature":"issueWithSingleToken2(address,address,uint256,uint256,address[],uint256[],address,bool)","signatureHash4":"0xe9e6f5c1","signatureHash32":"0xe9e6f5c1531cc7c091e3bbbb7518695373cad82344fc4f1b8ceb08c61317976d"},{"signature":"managerIssuanceHook(address)","signatureHash4":"0xdfe75335","signatureHash32":"0xdfe75335475daf1fec58dc2c4eed652ee3c3559482a1a82470fbe086598c8eb5"},{"signature":"owner()","signatureHash4":"0x8da5cb5b","signatureHash32":"0x8da5cb5b36e7f68c1d2e56001220cdbdd3ba2616072f718acfda4a06441a807d"},{"signature":"redeemToSingleToken(address,uint256,address,address[],address,uint256)","signatureHash4":"0x6ac607a1","signatureHash32":"0x6ac607a15353b15f0591359158ebf90b47ebd8bba330e16ab8014679b50c0585"},{"signature":"removeModule()","signatureHash4":"0x847ef08d","signatureHash32":"0x847ef08db9deeaeee829ecd1b2d76d26c6c113c0479ae6b245ed1dc90a89909e"},{"signature":"renounceOwnership()","signatureHash4":"0x715018a6","signatureHash32":"0x715018a616b5f2044428f6fadb7deef4ce9ca76ef60ea57978964ad137bbe7ae"},{"signature":"setExchanges(address[],string[])","signatureHash4":"0x4ee05c4a","signatureHash32":"0x4ee05c4a9d93206bbeaac155a00dee501ffe31ba8f324ec762ffdec90ddb9044"},{"signature":"setWrapAdapters(address[],string[],address[])","signatureHash4":"0xc1bd162b","signatureHash32":"0xc1bd162bdc3a849b25724eedb82ddf8cc7bdc70109c1d62c88a7eca637077d15"},{"signature":"transferOwnership(address)","signatureHash4":"0xf2fde38b","signatureHash32":"0xf2fde38b092330466c661fc723d5289b90272a3e580e3187d1d7ef788506c557"},{"signature":"weth()","signatureHash4":"0x3fc8cef3","signatureHash32":"0x3fc8cef3584510d52761a06b1790c486c391517f6e5b3918a42917c24e69d082"},{"signature":"wrapInfo(address)","signatureHash4":"0xde432138","signatureHash32":"0xde432138d3823b0d50e0109171ed283c4d66c8f1152a06b3d9963f09d89148e4"}],"event":[{"signature":"AssetExchangeExecutionParamUpdated(address,string)","signatureHash4":"0xc58c5ebe","signatureHash32":"0xc58c5ebe64b61aa17ac9e8948fc0664b62dff77268a22b4f1142443b3a583aac"},{"signature":"AssetWrapExecutionParamUpdated(address,string,address)","signatureHash4":"0x9b690866","signatureHash32":"0x9b6908663d418cb1b019425f179085f031896cd0545d64837c95ce3cfff91299"},{"signature":"CKTokenIssued(address,address,address,address,uint256,uint256)","signatureHash4":"0x2f42aaf8","signatureHash32":"0x2f42aaf883466d0fb581f939a2ba28df39832ab7f0b4f8a2193836b2b5448950"},{"signature":"CKTokenRedeemed(address,address,address,uint256)","signatureHash4":"0x6dbb023d","signatureHash32":"0x6dbb023d3cf13366dd3d689c3004862670c9a3f48ef6b61cd4ff7c1d3007f46e"},{"signature":"ComponentExchanged(address,address,address,address,uint256,uint256)","signatureHash4":"0x71c90a8e","signatureHash32":"0x71c90a8e22bbb06ea39d299250bcaff990254be58217e7d1479dcbf2f24aa776"},{"signature":"ComponentUnwrapped(address,address,address,uint256,uint256,string)","signatureHash4":"0x0e631fe8","signatureHash32":"0x0e631fe8e26e2b6c2ce8c4c55eca1d769c98bb4b5539068aec9ada0a3b429afe"},{"signature":"ComponentWrapped(address,address,address,uint256,uint256,string)","signatureHash4":"0x266efe8e","signatureHash32":"0x266efe8e5e4e2e7e407c4814a2818ef8e990768c61e67315ac34a8d3555b438e"},{"signature":"OwnershipTransferred(address,address)","signatureHash4":"0x8be0079c","signatureHash32":"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0"}],"error":[]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"match","chainId":"56","address":"0x7Db3CBAf736C049933A3Af28dBeD4A4442aa89d0"}