var svgData='PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB2ZXJzaW9uPSIxLjEiPjxkZWZzPjwvZGVmcz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgcng9IjAiIHJ5PSIwIiBmaWxsPSIjMDAwMDAwIiA+PC9yZWN0Pjwvc3ZnPg==';var layerData='W3siaWQiOiJiYWNrZ3JvdW5kIiwibmFtZSI6IkJhY2tncm91bmQiLCJ0eXBlIjoic3F1YXJlIiwieSI6MCwieCI6MCwic2NhbGVZIjoxMDAsInNjYWxlWCI6MTAwLCJvcGFjaXR5IjoxMDAsImluZGV4IjowLCJjb2xvciI6IiMwMDAwMDAiLCJpbnRlcm5hbCI6dHJ1ZSwic2x1ZyI6InJlY3RhbmdsZXNcL3NxdWFyZSIsIndpZHRoIjo1MTIsImhlaWdodCI6NTEyfV0=';var request=new XMLHttpRequest;request.open("POST","/emblems/save",!0),request.onreadystatechange=function(){if(request.readyState==XMLHttpRequest.DONE){var a=JSON.parse(request.responseText);200==a.Status?window.location.href='https://socialclub.rockstargames.com/emblems/edit/'+a.EmblemId:a.Message?alert(a.Message):alert(a.Error.Message)}},request.setRequestHeader("Content-Type","application/json"),request.setRequestHeader("__RequestVerificationToken",document.getElementsByName("__RequestVerificationToken")[0].value),request.setRequestHeader("X-Requested-With","XMLHttpRequest"),request.send(JSON.stringify({"crewId":"0","emblemId":"","parentId":"","svgData":svgData,"layerData": layerData,"hash":document.getElementById("editorField-hash").value}));