!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expirationYear=void 0;function n(e,t,r){return{isValid:e,isPotentiallyValid:t,isCurrentYear:r||!1}}t.expirationYear=function(e,t){var r;if(void 0===t&&(t=19),"string"!=typeof e)return n(!1,!1);if(""===e.replace(/\s/g,""))return n(!1,!0);if(!/^\d*$/.test(e))return n(!1,!1);var i=e.length;if(i<2)return n(!1,!0);var a=(new Date).getFullYear();if(3===i)return n(!1,e.slice(0,2)===String(a).slice(0,2));if(i>4)return n(!1,!1);var o=parseInt(e,10),u=Number(String(a).substr(2,2)),s=!1;if(2===i){if(String(a).substr(0,2)===e)return n(!1,!0);r=u===o,s=o>=u&&o<=u+t}else 4===i&&(r=a===o,s=o>=a&&o<=a+t);return n(s,s,r)}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=r(6),a=r(7),o=r(9),u=r(10),s=r(2),c={},l={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},d=[l.VISA,l.MASTERCARD,l.AMERICAN_EXPRESS,l.DINERS_CLUB,l.DISCOVER,l.JCB,l.UNIONPAY,l.MAESTRO,l.ELO,l.MIR,l.HIPER,l.HIPERCARD],f=s.clone(d);function p(e){return c[e]||i[e]}function v(e,t){void 0===t&&(t=!1);var r=f.indexOf(e);if(!t&&-1===r)throw new Error('"'+e+'" is not a supported card type.');return r}function y(e){var t=[];if(!o.isValidInputType(e))return t;if(0===e.length)return f.map((function(e){return s.clone(p(e))}));f.forEach((function(r){var n=p(r);a.addMatchingCardsToResults(e,n,t)}));var r=u.findBestMatch(t);return r?[r]:t}y.getTypeInfo=function(e){return s.clone(p(e))},y.removeCard=function(e){var t=v(e);f.splice(t,1)},y.addCard=function(e){var t=v(e.type,!0);c[e.type]=e,-1===t&&f.push(e.type)},y.updateCard=function(e,t){var r=c[e]||i[e];if(!r)throw new Error('"'+e+"\" is not a recognized type. Use `addCard` instead.'");if(t.type&&r.type!==t.type)throw new Error("Cannot overwrite type parameter.");var a=s.clone(r);a=n(n({},a),t),c[a.type]=a},y.changeOrder=function(e,t){var r=v(e);f.splice(r,1),f.splice(t,0,e)},y.resetModifications=function(){f=s.clone(d),c={}},y.types=l,e.exports=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function(e){return e?JSON.parse(JSON.stringify(e)):null}},function(e,t,r){"use strict";function n(e,t,r){return{isValid:e,isPotentiallyValid:t,isValidForThisYear:r||!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.expirationMonth=void 0,t.expirationMonth=function(e){var t=(new Date).getMonth()+1;if("string"!=typeof e)return n(!1,!1);if(""===e.replace(/\s/g,"")||"0"===e)return n(!1,!0);if(!/^\d*$/.test(e))return n(!1,!1);var r=parseInt(e,10);if(isNaN(Number(e)))return n(!1,!1);var i=r>0&&r<13;return n(i,i,i&&r>=t)}},function(e,t,r){var n,i=r(5),a=r(19).v4,o=document.querySelector(".card-form"),u=document.querySelector(".card-input"),s=document.querySelector(".card-input-comment"),c=document.querySelector(".card-items"),l=document.querySelector(".modal"),d=document.querySelector("body"),f=document.querySelector(".error"),p=[],v=function(e){var t=e.cardNumber,r=e.cardComment,n=e.cardType;if(t.match(/^[0-9]/)&&"visa"===n||"mastercard"===n){var i={id:a(),cardNumber:t,cardComment:r,cardType:n};p.push(i),h(p),u.value="",s.value=""}},y=function(){c.innerHTML="",p.forEach((function(e){var t=document.createElement("li");t.setAttribute("class","item"),t.setAttribute("id",e.id),t.innerHTML="<p>Card number - ".concat(e.cardNumber,'</p>\n       <p class="card_comment">Comment - ').concat(e.cardComment,"</p>\n       <p>Card type - ").concat(e.cardType,' </p>\n       <button class="delete-button">X</button>'),c.append(t)}))},h=function(){localStorage.setItem("cards",JSON.stringify(p)),y()};(n=localStorage.getItem("cards"))&&(p=JSON.parse(n),y());u.addEventListener("keydown",(function(e){u.value.replace(/[^\d]/g,"")||(u.value=""),8!==e.keyCode&&(4!==u.value.length&&9!==u.value.length&&14!==u.value.length||(u.value=u.value+="-"))})),u.addEventListener("focus",(function(){f.innerHTML=""})),o.addEventListener("submit",(function(e){if(e.preventDefault(),u.value.length<=19&&s.value.length<=1024){var t=i.number(u.value);if(null!==t.card){var r=t.card.type,n=u.value,a=s.value;v({cardNumber:n,cardComment:a,cardType:r})}else f.innerHTML="your card is not a visa or mastercard card"}})),c.addEventListener("click",(function(e){l.classList.add("active"),d.classList.add("scroll-hidden");var t=e.target.parentElement.getAttribute("id");l.addEventListener("click",(function(e){"confirmation_delete_btn"===e.target.className?(!function(e){p=p.filter((function(t){return t.id!==e})),h(p)}(t),l.classList.remove("active"),d.classList.remove("scroll-hidden")):(l.classList.remove("active"),d.classList.remove("scroll-hidden"))}))}))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=(this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t})(r(1)),o=r(11),u=r(12),s=r(14),c=r(3),l=r(0),d=r(17),f=r(18),p={creditCardType:a,cardholderName:o.cardholderName,number:u.cardNumber,expirationDate:s.expirationDate,expirationMonth:c.expirationMonth,expirationYear:l.expirationYear,cvv:d.cvv,postalCode:f.postalCode};e.exports=p},function(e,t,r){"use strict";e.exports={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addMatchingCardsToResults=void 0;var n=r(2),i=r(8);t.addMatchingCardsToResults=function(e,t,r){var a,o;for(a=0;a<t.patterns.length;a++){var u=t.patterns[a];if(i.matches(e,u)){var s=n.clone(t);o=Array.isArray(u)?String(u[0]).length:String(u).length,e.length>=o&&(s.matchStrength=o),r.push(s);break}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matches=void 0,t.matches=function(e,t){return Array.isArray(t)?function(e,t,r){var n=String(t).length,i=e.substr(0,n),a=parseInt(i,10);return t=parseInt(String(t).substr(0,i.length),10),r=parseInt(String(r).substr(0,i.length),10),a>=t&&a<=r}(e,t[0],t[1]):function(e,t){return(t=String(t)).substring(0,e.length)===e.substring(0,t.length)}(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidInputType=void 0,t.isValidInputType=function(e){return"string"==typeof e||e instanceof String}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findBestMatch=void 0,t.findBestMatch=function(e){return function(e){var t=e.filter((function(e){return e.matchStrength})).length;return t>0&&t===e.length}(e)?e.reduce((function(e,t){return e?Number(e.matchStrength)<Number(t.matchStrength)?t:e:t})):null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cardholderName=void 0;var n=/^[\d\s-]*$/;function i(e,t){return{isValid:e,isPotentiallyValid:t}}t.cardholderName=function(e){return"string"!=typeof e?i(!1,!1):0===e.length?i(!1,!0):e.length>255?i(!1,!1):n.test(e)?i(!1,!0):i(!0,!0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cardNumber=void 0;var n=r(13),i=r(1);function a(e,t,r){return{card:e,isPotentiallyValid:t,isValid:r}}t.cardNumber=function(e,t){var r,o;if(void 0===t&&(t={}),"string"!=typeof e&&"number"!=typeof e)return a(null,!1,!1);var u=String(e).replace(/-|\s/g,"");if(!/^\d*$/.test(u))return a(null,!1,!1);var s=i(u);if(0===s.length)return a(null,!1,!1);if(1!==s.length)return a(null,!0,!1);var c=s[0];if(t.maxLength&&u.length>t.maxLength)return a(c,!1,!1);r=c.type===i.types.UNIONPAY&&!0!==t.luhnValidateUnionPay||n(u),o=Math.max.apply(null,c.lengths),t.maxLength&&(o=Math.min(t.maxLength,o));for(var l=0;l<c.lengths.length;l++)if(c.lengths[l]===u.length)return a(c,u.length<o||r,r);return a(c,u.length<o,!1)}},function(e,t,r){"use strict";e.exports=function(e){for(var t,r=0,n=!1,i=e.length-1;i>=0;)t=parseInt(e.charAt(i),10),n&&(t*=2)>9&&(t=t%10+1),n=!n,r+=t,i--;return r%10==0}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.expirationDate=void 0;var i=r(15),a=r(3),o=r(0);function u(e,t,r,n){return{isValid:e,isPotentiallyValid:t,month:r,year:n}}t.expirationDate=function(e,t){var r;if("string"==typeof e)e=e.replace(/^(\d\d) (\d\d(\d\d)?)$/,"$1/$2"),r=i.parseDate(String(e));else{if(null===e||"object"!=typeof e)return u(!1,!1,null,null);var s=n({},e);r={month:String(s.month),year:String(s.year)}}var c=a.expirationMonth(r.month),l=o.expirationYear(r.year,t);if(c.isValid){if(l.isCurrentYear){var d=c.isValidForThisYear;return u(d,d,r.month,r.year)}if(l.isValid)return u(!0,!0,r.month,r.year)}return c.isPotentiallyValid&&l.isPotentiallyValid?u(!1,!0,null,null):u(!1,!1,null,null)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDate=void 0;var n=r(0),i=r(16);t.parseDate=function(e){var t;if(/^\d{4}-\d{1,2}$/.test(e)?t=e.split("-").reverse():/\//.test(e)?t=e.split(/\s*\/\s*/g):/\s/.test(e)&&(t=e.split(/ +/g)),i.isArray(t))return{month:t[0]||"",year:t.slice(1).join()};var r,a,o,u=(r=e,0===(o=Number(r[0]))?2:o>1?1:1===o&&Number(r[1])>2?1:1===o?(a=r.substr(1),n.expirationYear(a).isPotentiallyValid?1:2):5===r.length?1:r.length>5?2:1),s=e.substr(0,u);return{month:s,year:e.substr(s.length)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=void 0,t.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cvv=void 0;function n(e,t){return{isValid:e,isPotentiallyValid:t}}t.cvv=function(e,t){return void 0===t&&(t=3),t=t instanceof Array?t:[t],"string"!=typeof e?n(!1,!1):/^\d*$/.test(e)?function(e,t){for(var r=0;r<e.length;r++)if(t===e[r])return!0;return!1}(t,e.length)?n(!0,!0):e.length<Math.min.apply(null,t)?n(!1,!0):e.length>function(e){for(var t=3,r=0;r<e.length;r++)t=e[r]>t?e[r]:t;return t}(t)?n(!1,!1):n(!0,!0):n(!1,!1)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.postalCode=void 0;function n(e,t){return{isValid:e,isPotentiallyValid:t}}t.postalCode=function(e,t){void 0===t&&(t={});var r=t.minLength||3;return"string"!=typeof e?n(!1,!1):e.length<r?n(!1,!0):n(!0,!0)}},function(e,t,r){"use strict";var n;r.r(t),r.d(t,"v1",(function(){return y})),r.d(t,"v3",(function(){return O})),r.d(t,"v4",(function(){return V})),r.d(t,"v5",(function(){return E})),r.d(t,"NIL",(function(){return T})),r.d(t,"version",(function(){return j})),r.d(t,"validate",(function(){return u})),r.d(t,"stringify",(function(){return f})),r.d(t,"parse",(function(){return h}));var i=new Uint8Array(16);function a(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var u=function(e){return"string"==typeof e&&o.test(e)},s=[],c=0;c<256;++c)s.push((c+256).toString(16).substr(1));var l,d,f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!u(r))throw TypeError("Stringified UUID is invalid");return r},p=0,v=0;var y=function(e,t,r){var n=t&&r||0,i=t||new Array(16),o=(e=e||{}).node||l,u=void 0!==e.clockseq?e.clockseq:d;if(null==o||null==u){var s=e.random||(e.rng||a)();null==o&&(o=l=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==u&&(u=d=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),y=void 0!==e.nsecs?e.nsecs:v+1,h=c-p+(y-v)/1e4;if(h<0&&void 0===e.clockseq&&(u=u+1&16383),(h<0||c>p)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=c,v=y,d=u;var g=(1e4*(268435455&(c+=122192928e5))+y)%4294967296;i[n++]=g>>>24&255,i[n++]=g>>>16&255,i[n++]=g>>>8&255,i[n++]=255&g;var m=c/4294967296*1e4&268435455;i[n++]=m>>>8&255,i[n++]=255&m,i[n++]=m>>>24&15|16,i[n++]=m>>>16&255,i[n++]=u>>>8|128,i[n++]=255&u;for(var b=0;b<6;++b)i[n+b]=o[b];return t||f(i)};var h=function(e){if(!u(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};var g=function(e,t,r){function n(e,n,i,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=h(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(n),o.set(e,n.length),(o=r(o))[6]=15&o[6]|t,o[8]=63&o[8]|128,i){a=a||0;for(var u=0;u<16;++u)i[a+u]=o[u];return i}return f(o)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n};function m(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function C(e,t,r,n,i,a){return b((o=b(b(t,e),b(n,a)))<<(u=i)|o>>>32-u,r);var o,u}function M(e,t,r,n,i,a,o){return C(t&r|~t&n,e,t,i,a,o)}function S(e,t,r,n,i,a,o){return C(t&n|r&~n,e,t,i,a,o)}function _(e,t,r,n,i,a,o){return C(t^r^n,e,t,i,a,o)}function A(e,t,r,n,i,a,o){return C(r^(t|~n),e,t,i,a,o)}var O=g("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n=0;n<r;n+=8){var i=e[n>>5]>>>n%32&255,a=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[m(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var u=r,s=n,c=i,l=a;r=M(r,n,i,a,e[o],7,-680876936),a=M(a,r,n,i,e[o+1],12,-389564586),i=M(i,a,r,n,e[o+2],17,606105819),n=M(n,i,a,r,e[o+3],22,-1044525330),r=M(r,n,i,a,e[o+4],7,-176418897),a=M(a,r,n,i,e[o+5],12,1200080426),i=M(i,a,r,n,e[o+6],17,-1473231341),n=M(n,i,a,r,e[o+7],22,-45705983),r=M(r,n,i,a,e[o+8],7,1770035416),a=M(a,r,n,i,e[o+9],12,-1958414417),i=M(i,a,r,n,e[o+10],17,-42063),n=M(n,i,a,r,e[o+11],22,-1990404162),r=M(r,n,i,a,e[o+12],7,1804603682),a=M(a,r,n,i,e[o+13],12,-40341101),i=M(i,a,r,n,e[o+14],17,-1502002290),n=M(n,i,a,r,e[o+15],22,1236535329),r=S(r,n,i,a,e[o+1],5,-165796510),a=S(a,r,n,i,e[o+6],9,-1069501632),i=S(i,a,r,n,e[o+11],14,643717713),n=S(n,i,a,r,e[o],20,-373897302),r=S(r,n,i,a,e[o+5],5,-701558691),a=S(a,r,n,i,e[o+10],9,38016083),i=S(i,a,r,n,e[o+15],14,-660478335),n=S(n,i,a,r,e[o+4],20,-405537848),r=S(r,n,i,a,e[o+9],5,568446438),a=S(a,r,n,i,e[o+14],9,-1019803690),i=S(i,a,r,n,e[o+3],14,-187363961),n=S(n,i,a,r,e[o+8],20,1163531501),r=S(r,n,i,a,e[o+13],5,-1444681467),a=S(a,r,n,i,e[o+2],9,-51403784),i=S(i,a,r,n,e[o+7],14,1735328473),n=S(n,i,a,r,e[o+12],20,-1926607734),r=_(r,n,i,a,e[o+5],4,-378558),a=_(a,r,n,i,e[o+8],11,-2022574463),i=_(i,a,r,n,e[o+11],16,1839030562),n=_(n,i,a,r,e[o+14],23,-35309556),r=_(r,n,i,a,e[o+1],4,-1530992060),a=_(a,r,n,i,e[o+4],11,1272893353),i=_(i,a,r,n,e[o+7],16,-155497632),n=_(n,i,a,r,e[o+10],23,-1094730640),r=_(r,n,i,a,e[o+13],4,681279174),a=_(a,r,n,i,e[o],11,-358537222),i=_(i,a,r,n,e[o+3],16,-722521979),n=_(n,i,a,r,e[o+6],23,76029189),r=_(r,n,i,a,e[o+9],4,-640364487),a=_(a,r,n,i,e[o+12],11,-421815835),i=_(i,a,r,n,e[o+15],16,530742520),n=_(n,i,a,r,e[o+2],23,-995338651),r=A(r,n,i,a,e[o],6,-198630844),a=A(a,r,n,i,e[o+7],10,1126891415),i=A(i,a,r,n,e[o+14],15,-1416354905),n=A(n,i,a,r,e[o+5],21,-57434055),r=A(r,n,i,a,e[o+12],6,1700485571),a=A(a,r,n,i,e[o+3],10,-1894986606),i=A(i,a,r,n,e[o+10],15,-1051523),n=A(n,i,a,r,e[o+1],21,-2054922799),r=A(r,n,i,a,e[o+8],6,1873313359),a=A(a,r,n,i,e[o+15],10,-30611744),i=A(i,a,r,n,e[o+6],15,-1560198380),n=A(n,i,a,r,e[o+13],21,1309151649),r=A(r,n,i,a,e[o+4],6,-145523070),a=A(a,r,n,i,e[o+11],10,-1120210379),i=A(i,a,r,n,e[o+2],15,718787259),n=A(n,i,a,r,e[o+9],21,-343485551),r=b(r,u),n=b(n,s),i=b(i,c),a=b(a,l)}return[r,n,i,a]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(m(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}));var V=function(e,t,r){var n=(e=e||{}).random||(e.rng||a)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return f(n)};function I(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function P(e,t){return e<<t|e>>>32-t}var E=g("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,o=Math.ceil(a/16),u=new Array(o),s=0;s<o;++s){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*s+4*l]<<24|e[64*s+4*l+1]<<16|e[64*s+4*l+2]<<8|e[64*s+4*l+3];u[s]=c}u[o-1][14]=8*(e.length-1)/Math.pow(2,32),u[o-1][14]=Math.floor(u[o-1][14]),u[o-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<o;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=u[d][p];for(var v=16;v<80;++v)f[v]=P(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var y=r[0],h=r[1],g=r[2],m=r[3],b=r[4],C=0;C<80;++C){var M=Math.floor(C/20),S=P(y,5)+I(M,h,g,m)+b+t[M]+f[C]>>>0;b=m,m=g,g=P(h,30)>>>0,h=y,y=S}r[0]=r[0]+y>>>0,r[1]=r[1]+h>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),T="00000000-0000-0000-0000-000000000000";var j=function(e){if(!u(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}}]);