web3.js/dist/web3-light.min.js

7 lines
201 KiB
JavaScript
Raw Normal View History

require=function t(e,n,r){function o(s,a){if(!n[s]){if(!e[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[s]={exports:{}};e[s][0].call(l.exports,function(t){var n=e[s][1][t];return o(n?n:t)},l,l.exports,t,e,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){e.exports=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"name",outputs:[{name:"o_name",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"subRegistrar",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_registrar",type:"address"}],name:"setSubRegistrar",outputs:[],type:"function"},{constant:!1,inputs:[],name:"Registrar",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"},{name:"_primary",type:"bool"}],name:"setAddress",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_content",type:"bytes32"}],name:"setContent",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"disown",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_winner",type:"address"}],name:"AuctionEnded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_bidder",type:"address"},{indexed:!1,name:"_value",type:"uint256"}],name:"NewBid",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"},{indexed:!0,name:"addr",type:"address"}],name:"PrimaryChanged",type:"event"}]},{}],2:[function(t,e,n){e.exports=[{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_refund",type:"address"}],name:"disown",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"}],name:"setAddr",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"}]},{}],3:[function(t,e,n){e.exports=[{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"indirectId",type:"bytes32"},{name:"value",type:"uint256"}],name:"icapTransfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"to",type:"bytes32"}],name:"deposit",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"AnonymousDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"fr
});o.setRequestManager(this._web3._requestManager);var s=o.buildCall();return o=null,s(r.params,r.callback)},l.prototype._createTxObject=function(){var t={};return t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.arguments=arguments,t._method=this.method,t._parent=this.parent,t},l.prototype._executeMethod=function(t){var e=this,n=Array.prototype.slice.call(arguments),i=o(),s=s||{},c=null,u=null;if(t=n.shift(),r.isFunction(n[n.length-1])&&(u=n.pop()),"call"===t&&n[n.length-1]!==!0&&(r.isString(n[n.length-1])||isFinite(n[n.length-1]))&&(c=n.pop()),s=r.isObject(n[n.length-1])?n.pop():{},makeRequest=n[n.length-1]===!0?n.pop():!1,s.from=s.from||this._parent.options.from,s.data=this.encodeABI(),s.gas=s.gas||s.gasLimit,delete s.gasLimit,!r.isAddress(this._parent.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");if(r.isAddress(s.from)&&(s.from=s.from.toLowerCase()),s.to=this._parent.address.toLowerCase(),!s.data)return r._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),i.promise,i.reject,u);if(makeRequest){var l={params:[a.inputCallFormatter(s),a.inputDefaultBlockNumberFormatter(c)],callback:u};return"call"===t?(l.method="eth_call",l.format=e._parent._decodeMethodReturn.bind(null,e._method.outputTypes)):l.method="eth_sendTransaction",l}var p=function(n,o){return"call"===t&&(o=e._parent._decodeMethodReturn(e._method.outputTypes,o)),n?r._fireError(n,i.promise,i.reject,u):(u&&u(null,o),i.promise.emit("data",o),"send"===t?e._parent._web3.eth.subscribe("newBlocks",{},function(t,n,s){return t?(s.unsubscribe(),r._fireError(t,i.promise,i.reject)):void e._parent._web3.eth.getTransactionReceipt(o,function(t,e){if(t)return s.unsubscribe(),r._fireError(t,i.promise,i.reject);if(e){if(s.unsubscribe(),e.outOfGas)return r._fireError(new Error("Transaction ran out of gas."),i.promise,i.reject);i.promise.emit("mined",e),i.resolve(e),i.promise.removeAllListeners()}})}):(i.resolve(o),i.promise.removeAllListeners()),void 0)};switch(t){case"estimate":this._parent._web3.eth.estimateGas(s,p);break;case"call":this._parent._web3.eth.call(s,c,p);break;case"send":this._parent._web3.eth.sendTransaction(s,p)}return i.promise},e.exports=l},{"../solidity/coder":7,"../utils/sha3":19,"../utils/utils":20,"./eventifiedPromise.js":26,"./formatters":28,"./method.js":33,"./subscription.js":43}],25:[function(t,e,n){e.exports={InvalidNumberOfParams:function(){return new Error("Invalid number of input parameters")},InvalidConnection:function(t){return new Error("CONNECTION ERROR: Couldn't connect to node "+t+".")},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:"Invalid JSON RPC response: "+JSON.stringify(t);return new Error(e)}}},{}],26:[function(t,e,n){var r=t("eventemitter3"),o=t("bluebird"),i=function(){var t,e,n=new r,i=new o(function(){t=arguments[0],e=arguments[1]});return i.emit=n.emit,i.on=n.on,i.once=n.once,i.off=n.off,i.listeners=n.listeners,i.addListener=n.addListener,i.removeListener=n.removeListener,i.removeAllListeners=n.removeAllListeners,{resolve:t,reject:e,promise:i}};e.exports=i},{bluebird:47,eventemitter3:83}],27:[function(t,e,n){var r=t("./formatters"),o=t("./../utils/utils"),i=t("./method"),s=t("./property"),a=function(t){var e=function(e){var n;e.property?(t[e.property]||(t[e.property]={}),n=t[e.property]):n=t,e.methods&&e.methods.forEach(function(e){e.attachToObject(n),e.setRequestManager(t._requestManager)}),e.properties&&e.properties.forEach(function(e){e.attachToObject(n),e.setRequestManager(t._requestManager)})};return e.formatters=r,e.utils=o,e.Method=i,e.Property=s,e};e.exports=a},{"./../utils/utils":20,"./formatters":28,"./method":33,"./property":40
this.name=t.name,this.subscribe=t.subscribe,this.unsubscribe=t.unsubscribe,this.subscriptions=t.subscriptions||{},this.requestManager=null};o.prototype.setRequestManager=function(t){this.requestManager=t},o.prototype.attachToObject=function(t){var e=this.buildCall();e.call=this.call;var n=this.name.split(".");n.length>1?(t[n[0]]=t[n[0]]||{},t[n[0]][n[1]]=e):t[n[0]]=e},o.prototype.buildCall=function(){var t=this;return function(){var e=new r({subscription:t.subscriptions[arguments[0]],subscribeMethod:t.subscribe,unsubscribeMethod:t.unsubscribe,requestManager:t.requestManager});return e.subscribe.apply(e,arguments)}},e.exports=o},{"./subscription.js":43}],45:[function(t,e,n){var r=t("./iban"),o=t("../contracts/SmartExchange.json"),i=function(t,e,n,o,i){var c=new r(n);if(!c.isValid())throw new Error("invalid iban address");if(c.isDirect())return s(t,e,c.address(),o,i);if(!i){var u=t.icapNamereg().addr(c.institution());return a(t,e,u,o,c.client())}t.icapNamereg().addr(c.institution(),function(n,r){return a(t,e,r,o,c.client(),i)})},s=function(t,e,n,r,o){return t.sendTransaction({address:n,from:e,value:r},o)},a=function(t,e,n,r,i,s){var a=o;return t.contract(a).at(n).deposit(i,{from:e,value:r},s)};e.exports=i},{"../contracts/SmartExchange.json":3,"./iban":30}],46:[function(t,e,n){"use strict";var r=t("../utils/utils"),o=t("./errors"),i=function(t){var e=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=t,this.connection=new WebSocket(t),this.addDefaultEvents(),this.connection.onmessage=function(t){var n="string"==typeof t.data?t.data:"";e._parseResponse(n).forEach(function(t){var n=null;r.isArray(t)?t.forEach(function(t){e.responseCallbacks[t.id]&&(n=t.id)}):n=t.id,n||"eth_subscription"!==t.method?e.responseCallbacks[n]&&(e.responseCallbacks[n](null,t),delete e.responseCallbacks[n]):e.notificationCallbacks.forEach(function(e){r.isFunction(e)&&e(null,t)})})}};i.prototype.addDefaultEvents=function(){var t=this;this.connection.onerror=function(e){t._timeout()},this.connection.onclose=function(e){t._timeout();var n=t.notificationCallbacks;t.reset(),n.forEach(function(t){r.isFunction(t)&&t(e)})}},i.prototype._parseResponse=function(t){var e=this,n=[],r=t.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|");return r.forEach(function(t){e.lastChunk&&(t=e.lastChunk+t);var r=null;try{r=JSON.parse(t)}catch(i){return e.lastChunk=t,clearTimeout(e.lastChunkTimeout),void(e.lastChunkTimeout=setTimeout(function(){throw e._timeout(),o.InvalidResponse(t)},15e3))}clearTimeout(e.lastChunkTimeout),e.lastChunk=null,r&&n.push(r)}),n},i.prototype._addResponseCallback=function(t,e){var n=t.id||t[0].id,r=t.method||t[0].method;this.responseCallbacks[n]=e,this.responseCallbacks[n].method=r},i.prototype._timeout=function(){for(var t in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](o.InvalidConnection("on IPC")),delete this.responseCallbacks[t])},i.prototype.isConnected=function(){console.log(this.connection)},i.prototype.send=function(t){throw new Error('You tried to send "'+t.method+'" synchronously. Synchronous requests are not supported by the Websocket provider.')},i.prototype.sendAsync=function(t,e){this.connection.send(JSON.stringify(t)),this._addResponseCallback(t,e)},i.prototype.on=function(t,e){if("function"!=typeof e)throw new Error("The second parameter callback must be a function.");switch(t){case"notification":this.notificationCallbacks.push(e);break;case"connect":this.connection.onopen=e}},i.prototype.removeListener=function(t,e){var n=this;switch(t){case"notification":this.notificationCallbacks.forEach(function(t,r){t===e&&n.notificationCallbacks.splice(r,1)})}},i.prototype.removeAllListeners=function(t){switch(t){case"notification":this.notificationCallbacks=[];break;case"connect":this.connection.onopen=null}},i.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.addDefaultEvents()},e.exports=i},{"../utils/utils":20,"./errors":25}],47:[function
},c.prototype._cleanup=function(){this._promise=this._generator=null},c.prototype._promiseCancelled=function(){if(!this._isResolved()){var t,n="undefined"!=typeof this._generator["return"];if(n)this._promise._pushContext(),t=h(this._generator["return"]).call(this._generator,void 0),this._promise._popContext();else{var r=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),t=h(this._generator["throw"]).call(this._generator,r),this._promise._popContext(),t===f&&t.e===r&&(t=null)}var o=this._promise;this._cleanup(),t===f?o._rejectCallback(t.e,!1):o.cancel()}},c.prototype._promiseFulfilled=function(t){this._yieldedPromise=null,this._promise._pushContext();var e=h(this._generator.next).call(this._generator,t);this._promise._popContext(),this._continue(e)},c.prototype._promiseRejected=function(t){this._yieldedPromise=null,this._promise._attachExtraTrace(t),this._promise._pushContext();var e=h(this._generator["throw"]).call(this._generator,t);this._promise._popContext(),this._continue(e)},c.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},c.prototype.promise=function(){return this._promise},c.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},c.prototype._continue=function(t){var n=this._promise;if(t===f)return this._cleanup(),n._rejectCallback(t.e,!1);var r=t.value;if(t.done===!0)return this._cleanup(),n._resolveCallback(r);var i=o(r,this._promise);if(!(i instanceof e)&&(i=a(i,this._yieldHandlers,this._promise),null===i))return void this._promiseRejected(new l("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",r)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));i=i._target();var s=i._bitField;0===(50397184&s)?(this._yieldedPromise=i,i._proxy(this,null)):0!==(33554432&s)?this._promiseFulfilled(i._value()):0!==(16777216&s)?this._promiseRejected(i._reason()):this._promiseCancelled()},e.coroutine=function(t,e){if("function"!=typeof t)throw new l("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(e).yieldHandler,r=c,o=(new Error).stack;return function(){var e=t.apply(this,arguments),i=new r(void 0,void 0,n,o),s=i.promise();return i._generator=e,i._promiseFulfilled(void 0),s}},e.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new l("expecting a function but got "+p.classString(t));d.push(t)},e.spawn=function(t){if(s.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof t)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new c(t,this),o=r.promise();return r._run(e.spawn),o}}},{"./errors":12,"./util":36}],17:[function(t,e,n){"use strict";e.exports=function(e,n,r,o){var i=t("./util");i.canEvaluate,i.tryCatch,i.errorObj;e.join=function(){var t,e=arguments.length-1;if(e>0&&"function"==typeof arguments[e]){t=arguments[e];var r}var o=[].slice.call(arguments);t&&o.pop();var r=new n(o).promise();return void 0!==t?r.spread(t):r}}},{"./util":36}],18:[function(t,e,n){"use strict";e.exports=function(e,n,r,o,i,s){function a(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var o=u();this._callback=null===o?e:o.bind(e),this._preservedValues=r===i?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=n>=1?[]:h,this._init$(void 0,-2)}function c(t,e,n,o){if("function"!=typeof e)return r("expecting a function but got "+l.classString(e));var i="object"==typeof n&&null!==n?n.concurrency:0;return i="number"==typeof i&&isFinite(i)&&i>=1?i:0,new a(t,e,i,o).promise()}var u=e._getDomain,l=t("./util"),p=l.tryCatch,f=l.errorObj,h=[];l.inherits(a,n),a.prototype._init=function(){},a.prototype._promiseFulfilled=function(t,n){var r=this._values,i=this.length(),a=this._preservedValues,c=this._limit;if(0>n){if(n=-1*n-1,r[n]=t,c>=1&&(this._inFli
};if(o.isNode&&"undefined"==typeof MutationObserver){var s=global.setImmediate,a=process.nextTick;r=o.isRecentNode?function(t){s.call(global,t)}:function(t){a.call(process,t)}}else r="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&window.navigator.standalone?"undefined"!=typeof setImmediate?function(t){setImmediate(t)}:"undefined"!=typeof setTimeout?function(t){setTimeout(t,0)}:i:function(){var t=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div"),o=new MutationObserver(function(){t.classList.toggle("foo"),n=!1});o.observe(r,e);var i=function(){n||(n=!0,r.classList.toggle("foo"))};return function(n){var r=new MutationObserver(function(){r.disconnect(),n()});r.observe(t,e),i()}}();e.exports=r},{"./util":36}],30:[function(t,e,n){"use strict";e.exports=function(e,n,r){function o(t){this.constructor$(t)}var i=e.PromiseInspection,s=t("./util");s.inherits(o,n),o.prototype._promiseResolved=function(t,e){this._values[t]=e;var n=++this._totalResolved;return n>=this._length?(this._resolve(this._values),!0):!1},o.prototype._promiseFulfilled=function(t,e){var n=new i;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},o.prototype._promiseRejected=function(t,e){var n=new i;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new o(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){"use strict";e.exports=function(e,n,r){function o(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function i(t,e){if((0|e)!==e||0>e)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new o(t),i=n.promise();return n.setHowMany(e),n.init(),i}var s=t("./util"),a=t("./errors").RangeError,c=t("./errors").AggregateError,u=s.isArray,l={};s.inherits(o,n),o.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=u(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},o.prototype.init=function(){this._initialized=!0,this._init()},o.prototype.setUnwrap=function(){this._unwrap=!0},o.prototype.howMany=function(){return this._howMany},o.prototype.setHowMany=function(t){this._howMany=t},o.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},o.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},o.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},o.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new c,e=this.length();e<this._values.length;++e)this._values[e]!==l&&t.push(this._values[e]);return t.length>0?this._reject(t):this._cancel(),!0}return!1},o.prototype._fulfilled=function(){return this._totalResolved},o.prototype._rejected=function(){return this._values.length-this.length()},o.prototype._addRejected=function(t){this._values.push(t)},o.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},o.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},o.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new a(e)},o.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return i(t,e)},e.prototype.some=function(t){return i(this,t)},e._SomePromiseArray=o}},{"./errors":12,"./util":36}],32:[function(t,e,n){"use strict";e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._se
function n(t,e,n,r,o,i,s){var a=t+(e&n|~e&r)+o+s;return(a<<i|a>>>32-i)+e}function r(t,e,n,r,o,i,s){var a=t+(e&r|n&~r)+o+s;return(a<<i|a>>>32-i)+e}function o(t,e,n,r,o,i,s){var a=t+(e^n^r)+o+s;return(a<<i|a>>>32-i)+e}function i(t,e,n,r,o,i,s){var a=t+(n^(e|~r))+o+s;return(a<<i|a>>>32-i)+e}var s=t,a=s.lib,c=a.WordArray,u=a.Hasher,l=s.algo,p=[];!function(){for(var t=0;64>t;t++)p[t]=4294967296*e.abs(e.sin(t+1))|0}();var f=l.MD5=u.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var s=0;16>s;s++){var a=e+s,c=t[a];t[a]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var u=this._hash.words,l=t[e+0],f=t[e+1],h=t[e+2],d=t[e+3],m=t[e+4],_=t[e+5],y=t[e+6],v=t[e+7],g=t[e+8],b=t[e+9],w=t[e+10],k=t[e+11],x=t[e+12],C=t[e+13],F=t[e+14],j=t[e+15],E=u[0],A=u[1],S=u[2],B=u[3];E=n(E,A,S,B,l,7,p[0]),B=n(B,E,A,S,f,12,p[1]),S=n(S,B,E,A,h,17,p[2]),A=n(A,S,B,E,d,22,p[3]),E=n(E,A,S,B,m,7,p[4]),B=n(B,E,A,S,_,12,p[5]),S=n(S,B,E,A,y,17,p[6]),A=n(A,S,B,E,v,22,p[7]),E=n(E,A,S,B,g,7,p[8]),B=n(B,E,A,S,b,12,p[9]),S=n(S,B,E,A,w,17,p[10]),A=n(A,S,B,E,k,22,p[11]),E=n(E,A,S,B,x,7,p[12]),B=n(B,E,A,S,C,12,p[13]),S=n(S,B,E,A,F,17,p[14]),A=n(A,S,B,E,j,22,p[15]),E=r(E,A,S,B,f,5,p[16]),B=r(B,E,A,S,y,9,p[17]),S=r(S,B,E,A,k,14,p[18]),A=r(A,S,B,E,l,20,p[19]),E=r(E,A,S,B,_,5,p[20]),B=r(B,E,A,S,w,9,p[21]),S=r(S,B,E,A,j,14,p[22]),A=r(A,S,B,E,m,20,p[23]),E=r(E,A,S,B,b,5,p[24]),B=r(B,E,A,S,F,9,p[25]),S=r(S,B,E,A,d,14,p[26]),A=r(A,S,B,E,g,20,p[27]),E=r(E,A,S,B,C,5,p[28]),B=r(B,E,A,S,h,9,p[29]),S=r(S,B,E,A,v,14,p[30]),A=r(A,S,B,E,x,20,p[31]),E=o(E,A,S,B,_,4,p[32]),B=o(B,E,A,S,g,11,p[33]),S=o(S,B,E,A,k,16,p[34]),A=o(A,S,B,E,F,23,p[35]),E=o(E,A,S,B,f,4,p[36]),B=o(B,E,A,S,m,11,p[37]),S=o(S,B,E,A,v,16,p[38]),A=o(A,S,B,E,w,23,p[39]),E=o(E,A,S,B,C,4,p[40]),B=o(B,E,A,S,l,11,p[41]),S=o(S,B,E,A,d,16,p[42]),A=o(A,S,B,E,y,23,p[43]),E=o(E,A,S,B,b,4,p[44]),B=o(B,E,A,S,x,11,p[45]),S=o(S,B,E,A,j,16,p[46]),A=o(A,S,B,E,h,23,p[47]),E=i(E,A,S,B,l,6,p[48]),B=i(B,E,A,S,v,10,p[49]),S=i(S,B,E,A,F,15,p[50]),A=i(A,S,B,E,_,21,p[51]),E=i(E,A,S,B,x,6,p[52]),B=i(B,E,A,S,d,10,p[53]),S=i(S,B,E,A,w,15,p[54]),A=i(A,S,B,E,f,21,p[55]),E=i(E,A,S,B,g,6,p[56]),B=i(B,E,A,S,j,10,p[57]),S=i(S,B,E,A,y,15,p[58]),A=i(A,S,B,E,C,21,p[59]),E=i(E,A,S,B,m,6,p[60]),B=i(B,E,A,S,k,10,p[61]),S=i(S,B,E,A,h,15,p[62]),A=i(A,S,B,E,b,21,p[63]),u[0]=u[0]+E|0,u[1]=u[1]+A|0,u[2]=u[2]+S|0,u[3]=u[3]+B|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),s=r;n[(o+64>>>9<<4)+15]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[(o+64>>>9<<4)+14]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,u=0;4>u;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var t=u.clone.call(this);return t._hash=this._hash.clone(),t}});s.MD5=u._createHelper(f),s.HmacMD5=u._createHmacHelper(f)}(Math),t.MD5})},{"./core":51}],60:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return t.mode.CFB=function(){function e(t,e,n,r){var o=this._iv;if(o){var i=o.slice(0);this._iv=void 0}else var i=this._prevBlock;r.encryptBlock(i,0);for(var s=0;n>s;s++)t[e+s]^=i[s]}var n=t.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(t,n){var r=this._cipher,o=r.blockSize;e.call(this,t,n,o,r),this._prevBlock=t.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(t,n){var r=this._cipher,o=r.blockSize,i=t.slice(n,n+o);e.call(this,t,n,o,r),this._prevBlock=i}}),n}(),t.mode.CFB})},{"./cipher-core":50,"./core":51}],61:[function(t,e,n){!function(r,o,i){"object"==typeof n?e.exports=n=o(t("./core"),t("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(t){return t.mode.CTRGladman=function(){function e(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,
8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:2684436