(function(R){"use strict";function m(r,u){var n=(r&65535)+(u&65535),a=(r>>16)+(u>>16)+(n>>16);return a<<16|n&65535}function T(r,u){return r<>>32-u}function g(r,u,n,a,c,l){return m(T(m(m(u,r),m(a,l)),c),n)}function i(r,u,n,a,c,l,s){return g(u&n|~u&a,r,u,c,l,s)}function d(r,u,n,a,c,l,s){return g(u&a|n&~a,r,u,c,l,s)}function h(r,u,n,a,c,l,s){return g(u^n^a,r,u,c,l,s)}function v(r,u,n,a,c,l,s){return g(n^(u|~a),r,u,c,l,s)}function M(r,u){r[u>>5]|=128<>>9<<4)+14]=u;var n,a,c,l,s,t=1732584193,e=-271733879,f=-1732584194,o=271733878;for(n=0;n>5]>>>u%32&255);return n}function A(r){var u,n=[];for(n[(r.length>>2)-1]=void 0,u=0;u>5]|=(r.charCodeAt(u/8)&255)<16&&(a=M(a,r.length*8)),n=0;n<16;n+=1)c[n]=a[n]^909522486,l[n]=a[n]^1549556828;return s=M(c.concat(A(u)),512+u.length*8),D(M(l.concat(s),512+128))}function b(r){var u="0123456789abcdef",n="",a,c;for(c=0;c>>4&15)+u.charAt(a&15);return n}function C(r){return unescape(encodeURIComponent(r))}function w(r){return U(C(r))}function F(r){return b(w(r))}function H(r,u){return j(C(r),C(u))}function I(r,u){return b(H(r,u))}function p(r,u,n){return u?n?H(u,r):I(u,r):n?w(r):F(r)}typeof define=="function"&&define.amd?define(function(){return p}):typeof module=="object"&&module.exports?module.exports=p:R.md5=p})(this);