!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));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=68)}({0:function(e,t,r){e.exports=r(5)},2:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(0),o=r.n(n),a=["body"];function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function l(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){l(a,n,o,i,c,"next",e)}function c(e){l(a,n,o,i,c,"throw",e)}i(void 0)}))}}function d(e){return p.apply(this,arguments)}function p(){return(p=f(o.a.mark((function e(t){var r,n,i,u,l,f,d,p=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=p.length>1&&void 0!==p[1]?p[1]:{},n=r.body,i=s(r,a),u={"Content-Type":"application/json"},l=c(c({method:n?"POST":"GET"},i),{},{headers:c(c({},u),i.headers)}),n&&(l.body=JSON.stringify(n)),e.prev=5,e.next=8,window.fetch(t,l);case 8:return d=e.sent,e.next=11,d.json();case 11:if(f=e.sent,!d.ok){e.next=14;break}return e.abrupt("return",{status:d.status,data:f,headers:d.headers,url:d.url});case 14:throw new Error(d.statusText);case 17:return e.prev=17,e.t0=e.catch(5),e.abrupt("return",Promise.reject(e.t0.message?e.t0.message:f));case 20:case"end":return e.stop()}}),e,null,[[5,17]])})))).apply(this,arguments)}d.get=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(e,c(c({},t),{},{method:"GET"}))},d.post=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d(e,c(c({},r),{},{body:t}))}},5:function(e,t,r){var n=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),i=new O(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return j()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=w(i,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,i),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function f(){}function d(){}function p(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(L([])));m&&m!==t&&r.call(m,o)&&(h=m);var y=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var n;this._invoke=function(o,a){function i(){return new t((function(n,i){!function n(o,a,i,c){var u=s(e[o],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(f).then((function(e){l.value=e,i(l)}),(function(e){return n("throw",e,i,c)}))}c(u.arg)}(o,a,n,i)}))}return n=n?n.then(i,i):i()}}function w(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,l;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function L(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=p,c(y,"constructor",p),c(p,"constructor",d),d.displayName=c(p,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,i,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new b(u(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},g(y),c(y,i,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},68:function(e,t,r){e.exports=r(69)},69:function(e,t,r){"use strict";r.r(t);var n,o=r(0),a=r.n(o),i=r(2);function c(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){c(a,n,o,i,u,"next",e)}function u(e){c(a,n,o,i,u,"throw",e)}i(void 0)}))}}var s=document.querySelectorAll("input[type='tel']");document.getElementById("bank-account-number").addEventListener("input",(function(e){if(-1===n.toLowerCase().indexOf("crypto")){var t,r=(null===(t=e.target.value.replace(/-/g,"").match(/.{1,3}/g))||void 0===t?void 0:t.join("-"))||"";e.target.value=r}})),document.getElementById("bank-name").addEventListener("change",(function(e){n=e.target.value}));var l=document.querySelector(".btn-captcha-refresh"),f=l.querySelector("i");l.addEventListener("click",(function(){f.classList.add("fa-spin"),d()}));var d=function(){var e=u(a.a.mark((function e(){var t,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return document.getElementById("captcha").value="",e.prev=1,e.next=4,i.a.get("/api/captcha/new");case 4:t=e.sent,r=t.data,document.querySelector(".refreshrecaptcha img").src=r.captcha_img,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),console.log(e.t0);case 13:f.classList.remove("fa-spin");case 14:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=u(a.a.mark((function e(t){var r,n,o,c,u,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={},t.forEach((function(e,t){r[t]=e})),e.next=5,i.a.post("/api/register/post",r,{headers:{"X-CSRF-TOKEN":document.querySelector("meta[name='csrf-token']").getAttribute("content"),"X-Requested-With":"XMLHttpRequest"}});case 5:if(n=e.sent,o=n.data.status,c=n.data.message,o){if(y(),void 0!==(u=n.data.message.errors)){for(s in u)u.hasOwnProperty(s)&&m(s,u[s]);d()}else document.getElementById("success-reg").classList.remove("d-none"),document.getElementById("success-reg").innerText=n.data.message.message,setTimeout((function(){var e=document.querySelector("#text_success");if(e){var t=e.value;Swal.fire({title:"SUCCESS",icon:"success",text:t,draggable:!1,didDestroy:function(){document.getElementById("success-reg").innerText="Redirecting...",document.location.href="/rules"},didOpen:function(){try{fbq("track","CompleteRegistration")}catch(e){}try{otag("event","registration")}catch(e){}}}).then((function(e){}))}else document.getElementById("success-reg").innerText="Redirecting...",document.location.href="/rules"}),1e3);v("inactive",c)}else v("active",c),d();e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),h=document.getElementById("error-reg"),v=function(e,t){"active"==e?(h.classList.remove("d-none"),h.innerText=t):(h.classList.add("d-none"),h.innerText="")},m=function(e,t){var r=e.replace(/_/g,"-");document.querySelector(".form-group.".concat(r," .formInput")).insertAdjacentHTML("beforeend",'<small class="notice margin-t-10">'.concat(t,"</small>")),document.querySelector(".form-group.".concat(r," input")).classList.add("invalid-input")},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e){var t=document.querySelector(".form-group.".concat(e," .formInput .invalid-input")),r=document.querySelector(".form-group.".concat(e," .formInput small.notice"));t&&r&&(t.classList.remove("invalid-input"),r.remove())}else{var n=document.querySelectorAll(".form-group .formInput .invalid-input"),o=document.querySelectorAll(".form-group .formInput small.notice");n.forEach((function(e){e&&e.classList.remove("invalid-input")})),o.forEach((function(e){e.remove()}))}},g=function(e,t){var r=document.querySelector(".form-group.".concat(e," .formInput")),n=document.querySelector(".form-group.".concat(e," .formInput .form-assign"));n&&n.remove();r.insertAdjacentHTML("beforeend",'<div class="form-assign"><i class="fa '.concat({success:"fa-check",error:"fa-times"}[t],'" aria-hidden="true"></i></div>'))},b=document.getElementById("register-form");b.addEventListener("submit",(function(e){if(e.preventDefault(),O>100)if(r=document.querySelector('input[name="agree1"]'),n=document.querySelector('input[name="agree2"]'),r.checked&&n.checked){var t=new FormData(b);p(t)}else v("active","Anda harus menyetujui peraturan yang berlaku.");var r,n}));var w=document.getElementById("phone-number");w.addEventListener("input",(function(){w.value.startsWith("0")&&(w.value=w.value.substring(1))}));var x,E=document.querySelectorAll('input[data-checking="true"]'),O=0;E.forEach((function(e){e.addEventListener("input",(function(e){clearTimeout(x),x=setTimeout((function(){L(e.target.name,e.target.value)}),500)}));var t=0;e.addEventListener("keyup",(function(e){var r=(new Date).getTime();0!=t&&(O+=r-t)})),e.addEventListener("keydown",(function(e){var r=(new Date).getTime();t=r}))}));var L=function(){var e=u(a.a.mark((function e(t,r){var n,o,c,u,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},o=t.replace(/-/g,"_"),n.input=o,n[o]=r,"confirm-password"==t&&(n.password=document.getElementById("password").value),"bank-account-name"!=t&&"bank-account-number"!=t||(n.bank_name=document.getElementById("bank-name").value,"bank-account-number"==t&&(n.bank_account_number=r.replace(/-/g,""))),e.next=8,i.a.post("/api/register/validation",n,{headers:{"X-CSRF-TOKEN":document.querySelector("meta[name='csrf-token']").getAttribute("content"),"X-Requested-With":"XMLHttpRequest"}});case 8:c=e.sent,u=c.data.status,s=c.data.message,y(t),console.log(u),u&&((l=s.errors)?(m(t,l[o][0]),g(t,"error")):g(t,"success"));case 14:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();document.addEventListener("DOMContentLoaded",(function(){s.forEach((function(e){e.addEventListener("input",(function(t){"bank-account-number"!=e.getAttribute("name")&&(this.value=this.value.replace(/\D/g,""))}))})),n=document.getElementById("bank-name").value,setTimeout((function(){d()}),1e3)}))}});