60806040526001600e5534801561001557600080fd5b50604051469080605261259d8239604080519182900360520182208282018252600e83526d447261676f6e53776170204c507360901b6020938401528151808301835260018152603160f81b908401528151808401919091527f82b217417cfd2dbb273140787aca96cf5b22e683632c2bd035d85fc4bd590098818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550600580546001600160a01b03191633179055612494806101096000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c806367d817401161010f578063ba9a7a56116100a2578063d505accf11610071578063d505accf146105a3578063d73792a9146105f4578063dd62ed3e146105fc578063fff6cae91461062a576101f0565b8063ba9a7a5614610565578063bc25cf771461056d578063c45a015514610593578063d21220a71461059b576101f0565b80637ecebe00116100de5780637ecebe00146104cc57806389afcb44146104f257806395d89b4114610531578063a9059cbb14610539576101f0565b806367d81740146104705780636a6278421461047857806370a082311461049e5780637464fc3d146104c4576101f0565b8063288e5d02116101875780633b9f1dc0116101565780633b9f1dc01461042a578063485cc955146104325780635909c0d5146104605780635a3d549314610468576101f0565b8063288e5d02146103f457806330adf81f146103fc578063313ce567146104045780633644e51514610422576101f0565b80630dfe1681116101c35780630dfe168114610378578063158ef93e1461039c57806318160ddd146103a457806323b872dd146103be576101f0565b8063022c0d9f146101f557806306fdde03146102835780630902f1ac14610300578063095ea7b314610338575b600080fd5b6102816004803603608081101561020b57600080fd5b8135916020810135916001600160a01b03604083013516919081019060808101606082013564010000000081111561024257600080fd5b82018360208201111561025457600080fd5b8035906020019184600183028401116401000000008311171561027657600080fd5b509092509050610632565b005b61028b610b71565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102c55781810151838201526020016102ad565b50505050905090810190601f1680156102f25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610308610b9b565b604080516001600160701b03948516815292909316602083015263ffffffff168183015290519081900360600190f35b6103646004803603604081101561034e57600080fd5b506001600160a01b038135169060200135610bc5565b604080519115158252519081900360200190f35b610380610bdc565b604080516001600160a01b039092168252519081900360200190f35b610364610beb565b6103ac610bfb565b60408051918252519081900360200190f35b610364600480360360608110156103d457600080fd5b506001600160a01b03813581169160208101359091169060400135610c01565b6103ac610c9b565b6103ac610ca1565b61040c610cc5565b6040805160ff9092168252519081900360200190f35b6103ac610cca565b6103ac610cd0565b6102816004803603604081101561044857600080fd5b506001600160a01b0381358116916020013516610cd6565b6103ac610e69565b6103ac610e6f565b6103ac610e75565b6103ac6004803603602081101561048e57600080fd5b50356001600160a01b0316610e7b565b6103ac600480360360208110156104b457600080fd5b50356001600160a01b031661117c565b6103ac61118e565b6103ac600480360360208110156104e257600080fd5b50356001600160a01b0316611194565b6105186004803603602081101561050857600080fd5b50356001600160a01b03166111a6565b6040805192835260208301919091528051918290030190f35b61028b61154d565b6103646004803603604081101561054f57600080fd5b506001600160a01b038135169060200135611576565b6103ac611583565b6102816004803603602081101561058357600080fd5b50356001600160a01b0316611589565b6103806116f5565b610380611704565b610281600480360360e08110156105b957600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611713565b6103ac611916565b6103ac6004803603604081101561061257600080fd5b506001600160a01b038135811691602001351661191d565b61028161193a565b600e5460011461067e576040805162461bcd60e51b8152602060048201526012602482015271111c9859dbdb94ddd85c0e881313d0d2d15160721b604482015290519081900360640190fd5b6000600e55841515806106915750600084115b6106cc5760405162461bcd60e51b81526004018080602001828103825260268152602001806124116026913960400191505060405180910390fd5b6000806106d7610b9b565b5091509150816001600160701b0316871080156106fc5750806001600160701b031686105b6107375760405162461bcd60e51b81526004018080602001828103825260228152602001806123c66022913960400191505060405180910390fd5b60065460075460009182916001600160a01b039182169190811690891682148015906107755750806001600160a01b0316896001600160a01b031614155b6107bf576040805162461bcd60e51b8152602060048201526016602482015275447261676f6e537761703a20494e56414c49445f544f60501b604482015290519081900360640190fd5b8a156107d0576107d0828a8d611a9d565b89156107e1576107e1818a8c611a9d565b861561089c57886001600160a01b03166323e1436d338d8d8c8c6040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b15801561088357600080fd5b505af1158015610897573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156108e257600080fd5b505afa1580156108f6573d6000803e3d6000fd5b505050506040513d602081101561090c57600080fd5b5051604080516370a0823160e01b815230600482015290519195506001600160a01b038316916370a0823191602480820192602092909190829003018186803b15801561095857600080fd5b505afa15801561096c573d6000803e3d6000fd5b505050506040513d602081101561098257600080fd5b5051925060009150506001600160701b0385168a900383116109a55760006109b4565b89856001600160701b03160383035b9050600089856001600160701b03160383116109d15760006109e0565b89856001600160701b03160383035b905060008211806109f15750600081115b610a2c5760405162461bcd60e51b81526004018080602001828103825260258152602001806123a16025913960400191505060405180910390fd5b6000610a60610a4284601963ffffffff611c3716565b610a548761271063ffffffff611c3716565b9063ffffffff611c9a16565b90506000610a78610a4284601963ffffffff611c3716565b9050610aaa6305f5e100610a9e6001600160701b038b8116908b1663ffffffff611c3716565b9063ffffffff611c3716565b610aba838363ffffffff611c3716565b1015610afd576040805162461bcd60e51b815260206004820152600d60248201526c447261676f6e537761703a204b60981b604482015290519081900360640190fd5b5050610b0b84848888611cea565b60408051838152602081018390528082018d9052606081018c905290516001600160a01b038b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600e55505050505050505050565b6040518060400160405280600e81526020016d447261676f6e53776170204c507360901b81525081565b6008546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b6000610bd2338484611eb0565b5060015b92915050565b6006546001600160a01b031681565b600754600160a01b900460ff1681565b60005481565b6001600160a01b038316600090815260026020908152604080832033845290915281205460001914610c86576001600160a01b0384166000908152600260209081526040808320338452909152902054610c61908363ffffffff611c9a16565b6001600160a01b03851660009081526002602090815260408083203384529091529020555b610c91848484611f12565b5060019392505050565b600a5481565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60095481565b6005546001600160a01b031633148015610cfa5750600754600160a01b900460ff16155b610d43576040805162461bcd60e51b8152602060048201526015602482015274223930b3b7b729bbb0b81d102327a92124a22222a760591b604482015290519081900360640190fd5b600680546001600160a01b038085166001600160a01b0319928316811790935560078054918516919092161790556040805163313ce56760e01b8152905163313ce56791600480820192602092909190829003018186803b158015610da757600080fd5b505afa158015610dbb573d6000803e3d6000fd5b505050506040513d6020811015610dd157600080fd5b505160ff16600a0a6009556040805163313ce56760e01b815290516001600160a01b0383169163313ce567916004808301926020929190829003018186803b158015610e1c57600080fd5b505afa158015610e30573d6000803e3d6000fd5b505050506040513d6020811015610e4657600080fd5b505160ff16600a90810a905550506007805460ff60a01b1916600160a01b179055565b600b5481565b600c5481565b6107d081565b6000600e54600114610ec9576040805162461bcd60e51b8152602060048201526012602482015271111c9859dbdb94ddd85c0e881313d0d2d15160721b604482015290519081900360640190fd5b6000600e81905580610ed9610b9b565b50600654604080516370a0823160e01b815230600482015290519395509193506000926001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015610f2d57600080fd5b505afa158015610f41573d6000803e3d6000fd5b505050506040513d6020811015610f5757600080fd5b5051600754604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610faa57600080fd5b505afa158015610fbe573d6000803e3d6000fd5b505050506040513d6020811015610fd457600080fd5b505190506000610ff3836001600160701b03871663ffffffff611c9a16565b90506000611010836001600160701b03871663ffffffff611c9a16565b9050600061101e8787611fcc565b6000549091508061105b576110476103e8610a54611042878763ffffffff611c3716565b61217c565b985061105660006103e86121ce565b6110aa565b6110a76001600160701b038916611078868463ffffffff611c3716565b8161107f57fe5b046001600160701b03891661109a868563ffffffff611c3716565b816110a157fe5b04612264565b98505b600089116110e95760405162461bcd60e51b81526004018080602001828103825260298152602001806123e86029913960400191505060405180910390fd5b6110f38a8a6121ce565b6110ff86868a8a611cea565b811561112f5760085461112b906001600160701b0380821691600160701b90041663ffffffff611c3716565b600d555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600e5550949695505050505050565b60016020526000908152604090205481565b600d5481565b60046020526000908152604090205481565b600080600e546001146111f5576040805162461bcd60e51b8152602060048201526012602482015271111c9859dbdb94ddd85c0e881313d0d2d15160721b604482015290519081900360640190fd5b6000600e81905580611205610b9b565b50600654600754604080516370a0823160e01b815230600482015290519496509294506001600160a01b039182169391169160009184916370a08231916024808301926020929190829003018186803b15801561126157600080fd5b505afa158015611275573d6000803e3d6000fd5b505050506040513d602081101561128b57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156112d957600080fd5b505afa1580156112ed573d6000803e3d6000fd5b505050506040513d602081101561130357600080fd5b5051306000908152600160205260408120549192506113228888611fcc565b60005490915080611339848763ffffffff611c3716565b8161134057fe5b049a5080611354848663ffffffff611c3716565b8161135b57fe5b04995060008b11801561136e575060008a115b6113a95760405162461bcd60e51b81526004018080602001828103825260298152602001806124376029913960400191505060405180910390fd5b6113b3308461227c565b6113be878d8d611a9d565b6113c9868d8c611a9d565b604080516370a0823160e01b815230600482015290516001600160a01b038916916370a08231916024808301926020929190829003018186803b15801561140f57600080fd5b505afa158015611423573d6000803e3d6000fd5b505050506040513d602081101561143957600080fd5b5051604080516370a0823160e01b815230600482015290519196506001600160a01b038816916370a0823191602480820192602092909190829003018186803b15801561148557600080fd5b505afa158015611499573d6000803e3d6000fd5b505050506040513d60208110156114af57600080fd5b505193506114bf85858b8b611cea565b81156114ef576008546114eb906001600160701b0380821691600160701b90041663ffffffff611c3716565b600d555b604080518c8152602081018c905281516001600160a01b038f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600e81905550915091565b6040518060400160405280600d81526020016c0447261676f6e537761702d4c5609c1b81525081565b6000610bd2338484611f12565b6103e881565b600e546001146115d5576040805162461bcd60e51b8152602060048201526012602482015271111c9859dbdb94ddd85c0e881313d0d2d15160721b604482015290519081900360640190fd5b6000600e55600654600754600854604080516370a0823160e01b815230600482015290516001600160a01b039485169490931692611684928592879261167f926001600160701b03169185916370a0823191602480820192602092909190829003018186803b15801561164757600080fd5b505afa15801561165b573d6000803e3d6000fd5b505050506040513d602081101561167157600080fd5b50519063ffffffff611c9a16565b611a9d565b600854604080516370a0823160e01b815230600482015290516116eb928492879261167f92600160701b90046001600160701b0316916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561164757600080fd5b50506001600e5550565b6005546001600160a01b031681565b6007546001600160a01b031681565b4284101561175e576040805162461bcd60e51b8152602060048201526013602482015272111c9859dbdb94ddd85c0e8811561412549151606a1b604482015290519081900360640190fd5b6003546001600160a01b0380891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e08501825280519083012061190160f01b6101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e280820193601f1981019281900390910190855afa158015611879573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906118af5750886001600160a01b0316816001600160a01b0316145b611900576040805162461bcd60e51b815260206004820152601d60248201527f447261676f6e537761703a20494e56414c49445f5349474e4154555245000000604482015290519081900360640190fd5b61190b898989611eb0565b505050505050505050565b620186a081565b600260209081526000928352604080842090915290825290205481565b600e54600114611986576040805162461bcd60e51b8152602060048201526012602482015271111c9859dbdb94ddd85c0e881313d0d2d15160721b604482015290519081900360640190fd5b6000600e55600654604080516370a0823160e01b81523060048201529051611a96926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156119d757600080fd5b505afa1580156119eb573d6000803e3d6000fd5b505050506040513d6020811015611a0157600080fd5b5051600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611a4e57600080fd5b505afa158015611a62573d6000803e3d6000fd5b505050506040513d6020811015611a7857600080fd5b50516008546001600160701b0380821691600160701b900416611cea565b6001600e55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009460609489169392918291908083835b60208310611b4a5780518252601f199092019160209182019101611b2b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611bac576040519150601f19603f3d011682016040523d82523d6000602084013e611bb1565b606091505b5091509150818015611bdf575080511580611bdf5750808060200190516020811015611bdc57600080fd5b50515b611c30576040805162461bcd60e51b815260206004820152601b60248201527f447261676f6e537761703a205452414e534645525f4641494c45440000000000604482015290519081900360640190fd5b5050505050565b6000811580611c5257505080820282828281611c4f57fe5b04145b610bd6576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820382811115610bd6576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6001600160701b038411801590611d0857506001600160701b038311155b611d50576040805162461bcd60e51b8152602060048201526014602482015273447261676f6e537761703a204f564552464c4f5760601b604482015290519081900360640190fd5b60085463ffffffff42811691600160e01b90048116820390811615801590611d8057506001600160701b03841615155b8015611d9457506001600160701b03831615155b15611e05578063ffffffff16611dc285611dad8661231a565b6001600160e01b03169063ffffffff61232c16565b600b80546001600160e01b03929092169290920201905563ffffffff8116611ded84611dad8761231a565b600c80546001600160e01b0392909216929092020190555b600880546dffffffffffffffffffffffffffff19166001600160701b03888116919091176dffffffffffffffffffffffffffff60701b1916600160701b8883168102919091176001600160e01b0316600160e01b63ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316600090815260016020526040902054611f3b908263ffffffff611c9a16565b6001600160a01b038085166000908152600160205260408082209390935590841681522054611f70908263ffffffff61235116565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000806000600560009054906101000a90046001600160a01b03166001600160a01b031663995b5aae6040518163ffffffff1660e01b8152600401604080518083038186803b15801561201e57600080fd5b505afa158015612032573d6000803e3d6000fd5b505050506040513d604081101561204857600080fd5b508051602090910151600d546001600160a01b0382161580159650929450909250906121675780156121625760006120956110426001600160701b0389811690891663ffffffff611c3716565b905060006120a28361217c565b90508082111561215f5760006120db6064876120c7620186a08363ffffffff611c3716565b816120ce57fe5b049063ffffffff611c9a16565b905060006121066064610a9e6120f7878763ffffffff611c9a16565b6000549063ffffffff611c3716565b9050600061213a61211e85606463ffffffff611c3716565b61212e878663ffffffff611c3716565b9063ffffffff61235116565b9050600081838161214757fe5b049050801561215a5761215a88826121ce565b505050505b50505b612173565b8015612173576000600d555b50505092915050565b600060038211156121bf575080600160028204015b818110156121b9578091506002818285816121a857fe5b0401816121b157fe5b049050612191565b506121c9565b81156121c9575060015b919050565b6000546121e1908263ffffffff61235116565b60009081556001600160a01b03831681526001602052604090205461220c908263ffffffff61235116565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008183106122735781612275565b825b9392505050565b6001600160a01b0382166000908152600160205260409020546122a5908263ffffffff611c9a16565b6001600160a01b038316600090815260016020526040812091909155546122d2908263ffffffff611c9a16565b60009081556040805183815290516001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b6001600160701b0316600160701b0290565b60006001600160701b0382166001600160e01b0384168161234957fe5b049392505050565b80820182811015610bd6576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fdfe447261676f6e537761703a20494e53554646494349454e545f494e5055545f414d4f554e54447261676f6e537761703a20494e53554646494349454e545f4c4951554944495459447261676f6e537761703a20494e53554646494349454e545f4c49515549444954595f4d494e544544447261676f6e537761703a20494e53554646494349454e545f4f55545055545f414d4f554e54447261676f6e537761703a20494e53554646494349454e545f4c49515549444954595f4255524e4544a265627a7a7231582010175d7a32f4609ccf75945ba5ea3bdf210a3364fc7c36427515323b08a8c06664736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429