!function(){"use strict";var r={n:function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},d:function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},e=jQuery,i=r.n(e),n=["POST","PUT","DELETE","PATCH"],o=[".roblox.com",".robloxlabs.com",".roblox.qq.com"],u=":443",t="",a=null,s={setToken:function(e){t=e,a=new Date},getToken:function(){var e;return""===t&&0<(e=i()("meta[name='csrf-token']")).length&&(t=e.data("token"),(e=e.data("timestamp"))&&(a=new Date(Date.parse(e)))),t},requiresXsrf:function(e,t){return 0<=n.indexOf(null==e?void 0:e.toUpperCase())&&function(e){e=function(e){var t=document.createElement("a");t.href=e;t=t.host;t.endsWith(u)&&(t=t.substring(0,t.length-u.length));return t}(e);return e===location.host||function(e){for(var t=0;t<o.length;t++)if(e.endsWith(o[t]))return!0;return!1}(e)}(t)&&!(null===(t=null==(t=t=t)?void 0:t.split("?")[0])||void 0===t?void 0:t.toLowerCase().endsWith(".aspx"))},getTokenTimestamp:function(){return a}},l="X-CSRF-TOKEN",c=403;function f(e,t,n){var r=s.getToken();""!==r&&s.requiresXsrf(n.type,n.url)&&t.setRequestHeader(l,r)}function d(e,n,r){if("jsonp"!==e.dataType&&"script"!==e.dataType&&s.requiresXsrf(e.type,e.url)){n.error&&(n._error=n.error),e.error=function(){};var o=i().Deferred();return r.done(o.resolve),r.fail(function(){var e,t=Array.prototype.slice.call(arguments);r.status==c&&null!==r.getResponseHeader(l)?null!=(e=r.getResponseHeader(l))?(s.setToken(e),i().ajax(n).then(o.resolve,o.reject)):o.rejectWith(r,t):(n._error&&o.fail(n._error),o.rejectWith(r,t))}),o.promise(r)}}var p={initialize:function(){i()(document).ajaxSend(f),i().ajaxPrefilter(d)}},m="CsrfToken",T=300;function b(e){i()("<input />").attr("type","hidden").attr("name",m).attr("value",s.getToken()).appendTo(e)}function h(e){var r,t=e?e.target:this;if("true"!==t.dataset.ajax){if(e=t,s.requiresXsrf(e.getAttribute("method"),e.getAttribute("action"))&&s.getToken()&&0===i()(e).children("input[name='"+m+"']").length)return null===(e=s.getTokenTimestamp())||(e=new Date-e,T<e/1e3)?(r=function(e){e&&s.setToken(e),b(t),t._submit()},i().ajax({method:"GET",url:"/XsrfToken",success:function(e,t,n){n=n.getResponseHeader("X-CSRF-TOKEN");r(n)},error:function(){r(null)}}),!1):(b(t),void t._submit());t._submit()}}e={initialize:function(){window.addEventListener("submit",h,!0),HTMLFormElement.prototype._submit=HTMLFormElement.prototype.submit,HTMLFormElement.prototype.submit=h}},window.Roblox=window.Roblox||{},window.Roblox.XsrfToken=s,window.Roblox.XsrfTokenFormInjector=e,p.initialize()}();
//# sourceMappingURL=https://js.rbxcdn.com/7f478949c2ba00426cbb-xsrfProtection.js.map

/* Bundle detector */
window.Roblox && window.Roblox.BundleDetector && window.Roblox.BundleDetector.bundleDetected("XsrfProtection");