const _0x1aaa5=_0xb54a;(function(_0x3ca3c3,_0x4be1ed){const _0x161e9b=_0xb54a,_0x2cf352=_0x3ca3c3();while(!![]){try{const _0xe68af9=parseInt(_0x161e9b(0x1bb))/0x1*(parseInt(_0x161e9b(0x205))/0x2)+-parseInt(_0x161e9b(0x1bd))/0x3+parseInt(_0x161e9b(0x1ed))/0x4*(-parseInt(_0x161e9b(0x203))/0x5)+parseInt(_0x161e9b(0x1d1))/0x6+-parseInt(_0x161e9b(0x1d3))/0x7+-parseInt(_0x161e9b(0x1f0))/0x8+-parseInt(_0x161e9b(0x1f3))/0x9*(-parseInt(_0x161e9b(0x1e5))/0xa);if(_0xe68af9===_0x4be1ed)break;else _0x2cf352['push'](_0x2cf352['shift']());}catch(_0x1bc79b){_0x2cf352['push'](_0x2cf352['shift']());}}}(_0x52f2,0x2ec2e));const projectId=_0x1aaa5(0x1df),trackingUrl=_0x1aaa5(0x1e9),scriptUrl='https://t.formstory.io',clientIP='3.17.132.171';let currentPath=window['location'][_0x1aaa5(0x1e4)],host=window['location'][_0x1aaa5(0x1cb)];currentPath[_0x1aaa5(0x1d2)]('/')&¤tPath[_0x1aaa5(0x1ca)]>0x1&&(currentPath=currentPath[_0x1aaa5(0x1c4)](0x0,-0x1));currentPath=currentPath[_0x1aaa5(0x1ce)](/\//g,'_');const sendData=_0x5d8320=>{const _0x367c89=_0x1aaa5;fetch(trackingUrl,{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x367c89(0x1d0)](_0x5d8320)})[_0x367c89(0x1ee)](_0x4142f8=>{const _0x37f635=_0x367c89;if(!_0x4142f8['ok'])throw new Error(_0x37f635(0x1da));})[_0x367c89(0x1f2)](_0x5a92ed=>{const _0x2ae0b0=_0x367c89;console[_0x2ae0b0(0x1f9)](_0x5a92ed);});},addFormFields=(_0x1e4490,_0x36e0af)=>{const _0x3fc1dd=_0x1aaa5;let _0x329b8c=_0x1e4490[_0x3fc1dd(0x1f7)],_0x6b06cb={};for(let _0x4d3752=0x0;_0x4d3752<_0x329b8c[_0x3fc1dd(0x1ca)];_0x4d3752++){let _0x3bd513=_0x329b8c[_0x4d3752],_0xe625ef=_0x3bd513[_0x3fc1dd(0x1fc)]!==''?_0x3bd513[_0x3fc1dd(0x1fc)]:_0x3bd513['id'];if(_0x3bd513['type']===_0x3fc1dd(0x1fb)||_0x3bd513[_0x3fc1dd(0x1fd)]===_0x3fc1dd(0x1ef)||_0xe625ef==='')continue;if(_0xe625ef[_0x3fc1dd(0x1d2)]('[]')){let _0x58470d=_0xe625ef[_0x3fc1dd(0x1c4)](0x0,-0x2),_0x5b6166=_0x3bd513[_0x3fc1dd(0x1fa)]||'';!_0x6b06cb[_0x58470d]?_0x6b06cb[_0x58470d]={'label':_0x58470d,'value':_0x5b6166}:_0x6b06cb[_0x58470d]['value']+=_0x5b6166[_0x3fc1dd(0x1ca)]>0x0?',\x20'+_0x5b6166:'';}else _0x36e0af[_0x3fc1dd(0x1ff)]['push']({'label':_0xe625ef,'value':_0x3bd513[_0x3fc1dd(0x1fa)]||''});}for(let _0x59752f in _0x6b06cb){_0x36e0af[_0x3fc1dd(0x1ff)][_0x3fc1dd(0x204)](_0x6b06cb[_0x59752f]);}},handleFormSubmit=(_0x2b9224,_0x5c4b63,_0xf47e9d)=>{const _0x18799a=_0x1aaa5,_0x6e870a=getCookieValue(_0x18799a(0x1dc)+_0xf47e9d);let _0x47bafe={'projectId':projectId,'jobId':_0x5c4b63,'uuid':_0x6e870a,'data':[],'timestamp':Date[_0x18799a(0x1bc)](),'ip':clientIP,'event_type':_0x18799a(0x1db)};addFormFields(_0x2b9224,_0x47bafe),sendData(_0x47bafe);},handleFormChange=(_0x342952,_0x4a3663,_0x50ee81)=>_0x15df5a=>{const _0x453982=_0x1aaa5;_0x15df5a[_0x453982(0x1f1)]();const _0xde6b5f=getCookieValue('fstory_session_'+_0x50ee81),_0x31ace7={'projectId':projectId,'jobId':_0x4a3663,'uuid':_0xde6b5f,'timestamp':Date['now'](),'data':[],'ip':clientIP,'event_type':'change'};addFormFields(_0x342952,_0x31ace7),sendData(_0x31ace7);};function fetchData(){const _0x137097=_0x1aaa5;return fetch(scriptUrl+_0x137097(0x1d5)+projectId+'/'+currentPath,{'method':_0x137097(0x1d7),'headers':{'Content-Type':'application/json'}})[_0x137097(0x1ee)](_0x58fa3f=>{const _0x1086c8=_0x137097;if(!_0x58fa3f['ok'])return _0x58fa3f[_0x1086c8(0x1e0)]();return _0x58fa3f[_0x1086c8(0x1e0)]();})['then'](_0x21212=>{return _0x21212;})[_0x137097(0x1f2)](_0x45f514=>{const _0x50cd69=_0x137097;return{'success':![],'message':_0x45f514[_0x50cd69(0x1e6)]};});}function setCookie(_0x21f083,_0x522df5,_0x3e9b20){const _0x459a13=_0x1aaa5;let _0x502e07=_0x21f083+'='+encodeURIComponent(_0x522df5);document[_0x459a13(0x1cc)]=_0x502e07+_0x459a13(0x1de)+getRootDomain()+_0x459a13(0x1c1)+_0x3e9b20[_0x459a13(0x1be)]()+_0x459a13(0x1f8);}function getCookieValue(_0x1fcf7f){const _0x4d1931=_0x1aaa5,_0x3e344f=document[_0x4d1931(0x1cc)][_0x4d1931(0x1e2)](';'),_0x8a12f7=_0x3e344f['find'](function(_0x4f622f){const _0x3f4e77=_0x4d1931;return _0x4f622f['trim']()[_0x3f4e77(0x1c2)](_0x1fcf7f+'=');});if(_0x8a12f7)return decodeURIComponent(_0x8a12f7[_0x4d1931(0x1e2)]('=')[0x1]);return null;}function deleteCookie(_0x2db23c){const _0x398483=_0x1aaa5;document[_0x398483(0x1cc)]=_0x2db23c+_0x398483(0x1bf)+getRootDomain()+';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;';}function getRootDomain(){const _0x482ea2=_0x1aaa5,_0x547f77=host[_0x482ea2(0x1e2)]('.')[_0x482ea2(0x1fe)]();return _0x547f77[0x1]+'.'+_0x547f77[0x0];}const formAttributes=['action',_0x1aaa5(0x1e1)],inputAttributes=[_0x1aaa5(0x1fc),_0x1aaa5(0x1fd)];function tagFomBase64(_0x439370){const _0x244172=_0x1aaa5,_0x304f05=_0x439370?'formAttributes['includes'](_0xf379b4['name']))['map'](_0x4f9ed7=>'\x20'+_0x4f9ed7[_0x244172(0x1fc)]+'=\x22'+_0x4f9ed7['value']+'\x22')[_0x244172(0x1c6)]('')+'>':'';return encodeBase64(_0x304f05);}function _0xb54a(_0x221d09,_0x194fb7){const _0x52f295=_0x52f2();return _0xb54a=function(_0xb54a45,_0x24340c){_0xb54a45=_0xb54a45-0x1bb;let _0x537da8=_0x52f295[_0xb54a45];return _0x537da8;},_0xb54a(_0x221d09,_0x194fb7);}const formElements=[_0x1aaa5(0x1dd)],excludeKeywords=['recaptcha'];function _0x52f2(){const _0x2f3309=['pathname','1364810XuVDlp','message','DOMContentLoaded','tagForm','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','random','xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx','getAttribute','65612iJlMxa','then','password','1593272yTpQoP','preventDefault','catch','45PGmPZK','attributes','index','querySelectorAll','elements',';\x20path=/','error','value','hidden','name','type','reverse','data','load','success','addEventListener','95GPKcqG','push','2dakMLX','uuid','116569YdlNKO','now','252021rwsZuc','toUTCString','=;\x20domain=.','hasAttribute',';\x20expires=','startsWith','filter','slice','click','join','getTime','querySelector','from','length','hostname','cookie','form','replace','toString','stringify','2079780yJEsEt','endsWith','2514729BBktPg','formElements','/projects/','map','GET','change','toLowerCase','Network\x20response\x20was\x20not\x20ok','submit','fstory_session_','input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output',';domain=.','a1dc973d-2e2f-4b45-97ee-e8a4c54f4255','json','method','split','includes'];_0x52f2=function(){return _0x2f3309;};return _0x52f2();}function simplifyForm(_0x1c8997){const _0x2314ed=_0x1aaa5,_0x21b9a3=_0x1c8997['querySelectorAll'](formElements),_0x3ed433={},_0x4c2305=({name:_0x16f163,id:_0x1ec0e5})=>!excludeKeywords['some'](_0x16f2a0=>_0x16f163?.[_0x2314ed(0x1d9)]()[_0x2314ed(0x1e3)](_0x16f2a0)||_0x1ec0e5?.[_0x2314ed(0x1d9)]()[_0x2314ed(0x1e3)](_0x16f2a0)),_0x491de0=_0x5e3c61=>{const _0x3b38f9=_0x2314ed,_0x112d17=_0x5e3c61['tagName']['toLowerCase'](),_0x219d02=inputAttributes['filter'](_0xff208a=>_0x5e3c61[_0x3b38f9(0x1c0)](_0xff208a))[_0x3b38f9(0x1d6)](_0x5c18f2=>'\x20'+_0x5c18f2+'=\x22'+_0x5e3c61[_0x3b38f9(0x1ec)](_0x5c18f2)+'\x22')[_0x3b38f9(0x1c6)]('');return'<'+_0x112d17+_0x219d02+'>';};return Array[_0x2314ed(0x1c9)](_0x21b9a3)[_0x2314ed(0x1c3)](_0x4c2305)['forEach']((_0x1bc78a,_0x45608c)=>{_0x3ed433[_0x45608c]=_0x491de0(_0x1bc78a);}),encodeBase64(JSON[_0x2314ed(0x1d0)](_0x3ed433));}function encodeBase64(_0x1f7e25){return btoa(unescape(encodeURIComponent(_0x1f7e25)));}function identicalForms(_0x580aa4,_0x154573){const _0x305307=_0x1aaa5,_0x2b1555=simplifyForm(_0x580aa4),_0x11b540=tagFomBase64(_0x580aa4);if(_0x2b1555===_0x154573['elements']&&_0x11b540===_0x154573[_0x305307(0x1e8)])return!![];return![];}function generateUUID(){const _0x58bf53=_0x1aaa5;return _0x58bf53(0x1eb)[_0x58bf53(0x1ce)](/[xy]/g,function(_0x1d9ff0){const _0x28a3fa=_0x58bf53;var _0x5595dc=Math[_0x28a3fa(0x1ea)]()*0x10|0x0,_0x3e62ca=_0x1d9ff0==='x'?_0x5595dc:_0x5595dc&0x3|0x8;return _0x3e62ca[_0x28a3fa(0x1cf)](0x10);});}document[_0x1aaa5(0x202)](_0x1aaa5(0x1e7),function(){const _0x5992dc=_0x1aaa5;fetchData()[_0x5992dc(0x1ee)](_0x71234a=>{const _0x44bef1=_0x5992dc;_0x71234a[_0x44bef1(0x201)]&&(_0x71234a&&_0x71234a[_0x44bef1(0x1ff)]&&_0x71234a[_0x44bef1(0x1ff)][_0x44bef1(0x1d6)]((_0x29b4e2,_0x397c8c)=>{const _0x56df8e=_0x44bef1;let _0x219be1=generateUUID(),_0x24b9e6=getCookieValue('fstory_session_'+_0x397c8c);if(!_0x24b9e6){const _0x21400d=new Date();_0x21400d['setTime'](_0x21400d['getTime']()+0x5*0x3c*0x3e8),setCookie(_0x56df8e(0x1dc)+_0x397c8c,_0x219be1,_0x21400d),_0x24b9e6=_0x219be1;}else _0x219be1=_0x24b9e6;const _0x4ec0b9=_0x29b4e2[_0x56df8e(0x1d4)],_0x447408=document[_0x56df8e(0x1f6)](_0x56df8e(0x1cd)),_0x35831c=_0x447408[_0x4ec0b9[_0x56df8e(0x1f5)]];if(identicalForms(_0x35831c,_0x4ec0b9)){const _0x2701bc={'timestamp':Date[_0x56df8e(0x1bc)](),'projectId':projectId,'jobId':_0x29b4e2[_0x56df8e(0x206)],'uuid':_0x24b9e6,'data':[],'ip':clientIP,'event_type':_0x56df8e(0x200)};sendData(_0x2701bc),_0x35831c[_0x56df8e(0x202)](_0x56df8e(0x1d8),handleFormChange(_0x35831c,_0x29b4e2[_0x56df8e(0x206)],_0x397c8c));const _0x1c80e3=_0x35831c[_0x56df8e(0x1c8)]('[type=\x22submit\x22]');_0x1c80e3[_0x56df8e(0x202)](_0x56df8e(0x1c5),_0x974652=>{const _0x591c2a=_0x56df8e,_0x4c94d5=_0x35831c[_0x591c2a(0x1f7)];let _0x322981=!![];for(let _0x1773e2=0x0;_0x1773e2<_0x4c94d5[_0x591c2a(0x1ca)];_0x1773e2++){_0x4c94d5[_0x1773e2]['hasAttribute']('required')&&!_0x4c94d5[_0x1773e2][_0x591c2a(0x1fa)]&&(_0x322981=![]);}if(_0x322981){handleFormSubmit(_0x35831c,_0x29b4e2[_0x591c2a(0x206)],_0x397c8c),deleteCookie(_0x591c2a(0x1dc)+_0x397c8c);const _0x1c718f=generateUUID(),_0x52a0=new Date();_0x52a0['setTime'](_0x52a0[_0x591c2a(0x1c7)]()+0x5*0x3c*0x3e8),setCookie(_0x591c2a(0x1dc)+_0x397c8c,_0x1c718f,_0x52a0);}});}}));});});