608060405234801561001057600080fd5b50612273806100206000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806379c65068116100f9578063bda8011711610097578063c87b56dd11610071578063c87b56dd146103b0578063d14b4045146103c3578063e985e9c5146103d6578063f2fde38b1461041257600080fd5b8063bda8011714610374578063c1a287e214610394578063c599d6a91461039d57600080fd5b80638da5cb5b116100d35780638da5cb5b1461033557806395d89b4114610346578063a22cb4651461034e578063b88d4fde1461036157600080fd5b806379c65068146103075780637b47ec1a1461031a5780638129fc1c1461032d57600080fd5b80633b0468b61161016657806355f804b31161014057806355f804b3146102b85780636352211e146102cb57806370a08231146102de578063715018a6146102ff57600080fd5b80633b0468b61461027f57806342842e0e14610292578063430c2081146102a557600080fd5b8063095ea7b3116101a2578063095ea7b3146102315780631072cbea146102465780631d5fe5651461025957806323b872dd1461026c57600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004611de7565b610425565b60405190151581526020015b60405180910390f35b6101f9610477565b6040516101e89190611f79565b610219610214366004611e65565b610509565b6040516001600160a01b0390911681526020016101e8565b61024461023f366004611d4c565b610530565b005b610244610254366004611d4c565b61064b565b60ca54610219906001600160a01b031681565b61024461027a366004611c5e565b61066b565b6101dc61028d366004611e65565b61069c565b6102446102a0366004611c5e565b6106bb565b6101dc6102b3366004611d4c565b6106d6565b6102446102c6366004611e1f565b6106e9565b6102196102d9366004611e65565b610708565b6102f16102ec366004611bee565b610886565b6040519081526020016101e8565b61024461090c565b610244610315366004611d4c565b610920565b610244610328366004611e65565b610932565b610244610aab565b6097546001600160a01b0316610219565b6101f9610b74565b61024461035c366004611d1b565b610b83565b61024461036f366004611c9e565b610b8e565b610387610382366004611d77565b610bc6565b6040516101e89190611f2c565b6102f161025881565b6101dc6103ab366004611e65565b610d21565b6101f96103be366004611e65565b610dc1565b6102446103d1366004611bee565b610e27565b6101dc6103e4366004611c26565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b610244610420366004611bee565b610f26565b60006001600160e01b031982166380ac58cd60e01b148061045657506001600160e01b03198216635b5e139f60e01b145b8061047157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606065805461048690612196565b80601f01602080910402602001604051908101604052809291908181526020018280546104b290612196565b80156104ff5780601f106104d4576101008083540402835291602001916104ff565b820191906000526020600020905b8154815290600101906020018083116104e257829003601f168201915b5050505050905090565b600061051482610f9c565b506000908152606960205260409020546001600160a01b031690565b600061053b82610ffb565b9050806001600160a01b0316836001600160a01b031614156105ae5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806105ca57506105ca81336103e4565b61063c5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016105a5565b610646838361105b565b505050565b6106536110c9565b600061065e82610ffb565b90506106468184846106bb565b6106753382611123565b6106915760405162461bcd60e51b81526004016105a590611f8c565b6106468383836111a2565b6000818152606760205260408120546001600160a01b03161515610471565b61064683838360405180602001604052806000815250610b8e565b60006106e28383611123565b9392505050565b6106f16110c9565b80516107049060c9906020840190611adf565b5050565b600061071382610d21565b156107c85760ca54604051636b727d4360e11b8152600481018490526000916001600160a01b03169063d6e4fa869060240160206040518083038186803b15801561075d57600080fd5b505afa158015610771573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107959190611e7d565b9050426107a461025883612152565b10156107c25760405162461bcd60e51b81526004016105a590612070565b5061087d565b60ca546040516361e7cce560e01b8152600481018490526000916001600160a01b0316906361e7cce59060240160206040518083038186803b15801561080d57600080fd5b505afa158015610821573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108459190611e7d565b905080158061085f575060008111801561085f5750428110155b61087b5760405162461bcd60e51b81526004016105a590612070565b505b61047182610ffb565b60006001600160a01b0382166108f05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016105a5565b506001600160a01b031660009081526068602052604090205490565b6109146110c9565b61091e6000611306565b565b6109286110c9565b6107048282611358565b61093a6110c9565b61094381610d21565b156109b25760ca54604051632ec54dc360e01b815260048101839052600060248201526001600160a01b0390911690632ec54dc390604401600060405180830381600087803b15801561099557600080fd5b505af11580156109a9573d6000803e3d6000fd5b50505050610a9f565b60ca546040516361e7cce560e01b8152600481018390526000916001600160a01b0316906361e7cce59060240160206040518083038186803b1580156109f757600080fd5b505afa158015610a0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2f9190611e7d565b90508015610a9d5760ca54604051633bc5be3b60e11b815260048101849052600060248201526001600160a01b039091169063778b7c7690604401600060405180830381600087803b158015610a8457600080fd5b505af1158015610a98573d6000803e3d6000fd5b505050505b505b610aa881611372565b50565b600054610100900460ff1615808015610acb5750600054600160ff909116105b80610ae55750303b158015610ae5575060005460ff166001145b610b015760405162461bcd60e51b81526004016105a5906120b9565b6000805460ff191660011790558015610b24576000805461ff0019166101001790555b610b2c611407565b8015610aa8576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b60606066805461048690612196565b6107043383836114e3565b610b983383611123565b610bb45760405162461bcd60e51b81526004016105a590611f8c565b610bc0848484846115b2565b50505050565b606060008267ffffffffffffffff811115610bf157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c1a578160200160208202803683370190505b50905060005b83811015610d195730636352211e868684818110610c4e57634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401610c7391815260200190565b60206040518083038186803b158015610c8b57600080fd5b505afa925050508015610cbb575060408051601f3d908101601f19168201909252610cb891810190611c0a565b60015b610cc457610d07565b80838381518110610ce557634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050505b80610d11816121cb565b915050610c20565b509392505050565b60ca54604051636b727d4360e11b81526004810183905260009182916001600160a01b039091169063d6e4fa869060240160206040518083038186803b158015610d6a57600080fd5b505afa158015610d7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da29190611e7d565b905080610db25750600092915050565b50600192915050565b50919050565b6060610dcc82610f9c565b6000610dd66115e5565b90506000815111610df657604051806020016040528060008152506106e2565b80610e00846115f4565b604051602001610e11929190611ec1565b6040516020818303038152906040529392505050565b610e2f6110c9565b806001600160a01b0381163b610e875760405162461bcd60e51b815260206004820152601460248201527f4e6f7420636f6e7472616374206164647265737300000000000000000000000060448201526064016105a5565b6001600160a01b038216610f035760405162461bcd60e51b815260206004820152603460248201527f5b56616c69646174696f6e5d3a20496e76616c696420646563656e7472614e6160448201527f6d65436f6e74726f6c6c6572206164647265737300000000000000000000000060648201526084016105a5565b5060ca80546001600160a01b0319166001600160a01b0392909216919091179055565b610f2e6110c9565b6001600160a01b038116610f935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105a5565b610aa881611306565b6000818152606760205260409020546001600160a01b0316610aa85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105a5565b6000818152606760205260408120546001600160a01b0316806104715760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105a5565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061109082610ffb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6097546001600160a01b0316331461091e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105a5565b60008061112f83610708565b9050806001600160a01b0316846001600160a01b0316148061116a5750836001600160a01b031661115f84610509565b6001600160a01b0316145b8061119a57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166111b582610ffb565b6001600160a01b0316146111db5760405162461bcd60e51b81526004016105a59061202b565b6001600160a01b03821661123d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105a5565b826001600160a01b031661125082610ffb565b6001600160a01b0316146112765760405162461bcd60e51b81526004016105a59061202b565b600081815260696020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260688552838620805460001901905590871680865283862080546001019055868652606790945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610704828260405180602001604052806000815250611697565b600061137d82610ffb565b905061138882610ffb565b600083815260696020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526068845282852080546000190190558785526067909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600054610100900460ff16158080156114275750600054600160ff909116105b806114415750303b158015611441575060005460ff166001145b61145d5760405162461bcd60e51b81526004016105a5906120b9565b6000805460ff191660011790558015611480576000805461ff0019166101001790555b6114886116ca565b6114906116ca565b6114db60405180604001604052806005815260200164444e414d4560d81b8152506040518060400160405280600c81526020016b446563656e7472614e616d6560a01b8152506116f1565b610b2c61173f565b816001600160a01b0316836001600160a01b031614156115455760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105a5565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6115bd8484846111a2565b6115c98484848461176f565b610bc05760405162461bcd60e51b81526004016105a590611fd9565b606060c9805461048690612196565b606060006116018361187c565b600101905060008167ffffffffffffffff81111561162f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611659576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461169257610d19565b611663565b6116a18383611954565b6116ae600084848461176f565b6106465760405162461bcd60e51b81526004016105a590611fd9565b600054610100900460ff1661091e5760405162461bcd60e51b81526004016105a590612107565b600054610100900460ff166117185760405162461bcd60e51b81526004016105a590612107565b815161172b906065906020850190611adf565b508051610646906066906020840190611adf565b600054610100900460ff166117665760405162461bcd60e51b81526004016105a590612107565b61091e33611306565b60006001600160a01b0384163b1561187157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906117b3903390899088908890600401611ef0565b602060405180830381600087803b1580156117cd57600080fd5b505af19250505080156117fd575060408051601f3d908101601f191682019092526117fa91810190611e03565b60015b611857573d80801561182b576040519150601f19603f3d011682016040523d82523d6000602084013e611830565b606091505b50805161184f5760405162461bcd60e51b81526004016105a590611fd9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061119a565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106118bb5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106118e7576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061190557662386f26fc10000830492506010015b6305f5e100831061191d576305f5e100830492506008015b612710831061193157612710830492506004015b60648310611943576064830492506002015b600a83106104715760010192915050565b6001600160a01b0382166119aa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105a5565b6000818152606760205260409020546001600160a01b031615611a0f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105a5565b6000818152606760205260409020546001600160a01b031615611a745760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105a5565b6001600160a01b038216600081815260686020908152604080832080546001019055848352606790915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611aeb90612196565b90600052602060002090601f016020900481019282611b0d5760008555611b53565b82601f10611b2657805160ff1916838001178555611b53565b82800160010185558215611b53579182015b82811115611b53578251825591602001919060010190611b38565b50611b5f929150611b63565b5090565b5b80821115611b5f5760008155600101611b64565b600067ffffffffffffffff80841115611b9357611b936121fc565b604051601f8501601f19908116603f01168101908282118183101715611bbb57611bbb6121fc565b81604052809350858152868686011115611bd457600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611bff578081fd5b81356106e281612212565b600060208284031215611c1b578081fd5b81516106e281612212565b60008060408385031215611c38578081fd5b8235611c4381612212565b91506020830135611c5381612212565b809150509250929050565b600080600060608486031215611c72578081fd5b8335611c7d81612212565b92506020840135611c8d81612212565b929592945050506040919091013590565b60008060008060808587031215611cb3578081fd5b8435611cbe81612212565b93506020850135611cce81612212565b925060408501359150606085013567ffffffffffffffff811115611cf0578182fd5b8501601f81018713611d00578182fd5b611d0f87823560208401611b78565b91505092959194509250565b60008060408385031215611d2d578182fd5b8235611d3881612212565b915060208301358015158114611c53578182fd5b60008060408385031215611d5e578182fd5b8235611d6981612212565b946020939093013593505050565b60008060208385031215611d89578182fd5b823567ffffffffffffffff80821115611da0578384fd5b818501915085601f830112611db3578384fd5b813581811115611dc1578485fd5b8660208260051b8501011115611dd5578485fd5b60209290920196919550909350505050565b600060208284031215611df8578081fd5b81356106e281612227565b600060208284031215611e14578081fd5b81516106e281612227565b600060208284031215611e30578081fd5b813567ffffffffffffffff811115611e46578182fd5b8201601f81018413611e56578182fd5b61119a84823560208401611b78565b600060208284031215611e76578081fd5b5035919050565b600060208284031215611e8e578081fd5b5051919050565b60008151808452611ead81602086016020860161216a565b601f01601f19169290920160200192915050565b60008351611ed381846020880161216a565b835190830190611ee781836020880161216a565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152611f226080830184611e95565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611f6d5783516001600160a01b031683529284019291840191600101611f48565b50909695505050505050565b6020815260006106e26020830184611e95565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008219821115612165576121656121e6565b500190565b60005b8381101561218557818101518382015260200161216d565b83811115610bc05750506000910152565b600181811c908216806121aa57607f821691505b60208210811415610dbb57634e487b7160e01b600052602260045260246000fd5b60006000198214156121df576121df6121e6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610aa857600080fd5b6001600160e01b031981168114610aa857600080fdfea2646970667358221220bf39db7ac7c150e7db28108fcca4a263ae7936a6da01fea4910756816911bd6264736f6c63430008040033