const _0x280ba8=_0x5388;(function(_0x30fff8,_0x4c36bd){const _0xc90f28=_0x5388,_0x16a88e=_0x30fff8();while(!![]){try{const _0x595ab7=parseInt(_0xc90f28(0xf6))/0x1+parseInt(_0xc90f28(0xdb))/0x2+-parseInt(_0xc90f28(0xe8))/0x3+-parseInt(_0xc90f28(0xc6))/0x4*(parseInt(_0xc90f28(0xd8))/0x5)+parseInt(_0xc90f28(0xeb))/0x6*(parseInt(_0xc90f28(0xed))/0x7)+parseInt(_0xc90f28(0xd2))/0x8+-parseInt(_0xc90f28(0xf0))/0x9;if(_0x595ab7===_0x4c36bd)break;else _0x16a88e['push'](_0x16a88e['shift']());}catch(_0x39f3e2){_0x16a88e['push'](_0x16a88e['shift']());}}}(_0x16f7,0x4e92d));const projectId=_0x280ba8(0xfb),trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x280ba8(0xc1),clientIP=_0x280ba8(0xd4);let currentPath=window[_0x280ba8(0xdf)][_0x280ba8(0xce)],host=window['location'][_0x280ba8(0xdd)];currentPath[_0x280ba8(0xfa)]('/')&¤tPath[_0x280ba8(0xdc)]>0x1&&(currentPath=currentPath[_0x280ba8(0xe6)](0x0,-0x1));currentPath=currentPath['replace'](/\//g,'_');const sendData=_0x1e9d1b=>{const _0x534ec2=_0x280ba8;fetch(trackingUrl,{'method':_0x534ec2(0xf4),'headers':{'Content-Type':_0x534ec2(0xf1)},'body':JSON[_0x534ec2(0xbe)](_0x1e9d1b)})[_0x534ec2(0xc5)](_0x239771=>{const _0x38f05c=_0x534ec2;if(!_0x239771['ok'])throw new Error(_0x38f05c(0xe4));})[_0x534ec2(0xcd)](_0xdb7c44=>{const _0x197ea5=_0x534ec2;console[_0x197ea5(0xe0)](_0xdb7c44);});},addFormFields=(_0x30f018,_0x9b02cb)=>{const _0x3f727a=_0x280ba8;let _0x3c8be1=_0x30f018['elements'],_0x490c4f={};for(let _0x2a57ed=0x0;_0x2a57ed<_0x3c8be1['length'];_0x2a57ed++){let _0x4661a4=_0x3c8be1[_0x2a57ed],_0x377de5=_0x4661a4['name']!==''?_0x4661a4['name']:_0x4661a4['id'];if(_0x4661a4[_0x3f727a(0xe5)]==='hidden'||_0x4661a4[_0x3f727a(0xe5)]===_0x3f727a(0xcb)||_0x377de5==='')continue;if(_0x377de5[_0x3f727a(0xfa)]('[]')){let _0x1f4941=_0x377de5[_0x3f727a(0xe6)](0x0,-0x2),_0x487677=_0x4661a4[_0x3f727a(0xec)]||'';!_0x490c4f[_0x1f4941]?_0x490c4f[_0x1f4941]={'label':_0x1f4941,'value':_0x487677}:_0x490c4f[_0x1f4941][_0x3f727a(0xec)]+=_0x487677[_0x3f727a(0xdc)]>0x0?',\x20'+_0x487677:'';}else _0x9b02cb['data'][_0x3f727a(0xe9)]({'label':_0x377de5,'value':_0x4661a4[_0x3f727a(0xec)]||''});}for(let _0x4e6798 in _0x490c4f){_0x9b02cb['data'][_0x3f727a(0xe9)](_0x490c4f[_0x4e6798]);}},handleFormSubmit=(_0xcc2775,_0x127ae8,_0x3119a0)=>{const _0x2e045a=_0x280ba8,_0x501343=getCookieValue(_0x2e045a(0xd3)+_0x3119a0);let _0xa8c201={'projectId':projectId,'jobId':_0x127ae8,'uuid':_0x501343,'data':[],'timestamp':Date['now'](),'ip':clientIP,'event_type':_0x2e045a(0xda)};addFormFields(_0xcc2775,_0xa8c201),sendData(_0xa8c201);},handleFormChange=(_0x53be6b,_0x41713b,_0x4bf607)=>_0x3e1393=>{const _0x1ad7d2=_0x280ba8;_0x3e1393[_0x1ad7d2(0xfc)]();const _0x954aa8=getCookieValue('fstory_session_'+_0x4bf607),_0x459f09={'projectId':projectId,'jobId':_0x41713b,'uuid':_0x954aa8,'timestamp':Date['now'](),'data':[],'ip':clientIP,'event_type':'change'};addFormFields(_0x53be6b,_0x459f09),sendData(_0x459f09);};function fetchData(){const _0x1d4332=_0x280ba8;return fetch(scriptUrl+_0x1d4332(0xf9)+projectId+'/'+currentPath,{'method':_0x1d4332(0xee),'headers':{'Content-Type':_0x1d4332(0xf1)}})[_0x1d4332(0xc5)](_0x6ad0f5=>{const _0x179a23=_0x1d4332;if(!_0x6ad0f5['ok'])return _0x6ad0f5[_0x179a23(0xc9)]();return _0x6ad0f5['json']();})[_0x1d4332(0xc5)](_0x29dfe4=>{return _0x29dfe4;})[_0x1d4332(0xcd)](_0x2d13fb=>{return{'success':![],'message':_0x2d13fb['message']};});}function setCookie(_0x34a9f0,_0x25ebe1,_0x1167aa){const _0x46668f=_0x280ba8;let _0x5c555d=_0x34a9f0+'='+encodeURIComponent(_0x25ebe1);document[_0x46668f(0xf3)]=_0x5c555d+_0x46668f(0xe1)+getRootDomain()+_0x46668f(0xd0)+_0x1167aa[_0x46668f(0xcf)]()+_0x46668f(0xd1);}function getCookieValue(_0x1af7e9){const _0x1b00ef=_0x280ba8,_0x416a15=document[_0x1b00ef(0xf3)][_0x1b00ef(0xfe)](';'),_0x29e216=_0x416a15[_0x1b00ef(0xe2)](function(_0x310615){const _0x3635df=_0x1b00ef;return _0x310615[_0x3635df(0xc8)]()['startsWith'](_0x1af7e9+'=');});if(_0x29e216)return decodeURIComponent(_0x29e216[_0x1b00ef(0xfe)]('=')[0x1]);return null;}function deleteCookie(_0x543a79){const _0x2a670c=_0x280ba8;document[_0x2a670c(0xf3)]=_0x543a79+_0x2a670c(0xd7)+getRootDomain()+_0x2a670c(0xcc);}function getRootDomain(){const _0x2702ac=_0x280ba8,_0x354c8c=host['split']('.')[_0x2702ac(0xef)]();return _0x354c8c[0x1]+'.'+_0x354c8c[0x0];}const formElements=[_0x280ba8(0xc2)];function _0x16f7(){const _0x4077a1=['216.73.216.41','load','xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx','=;\x20domain=.','5XCOJjg','getTime','submit','738660PpuxId','length','hostname','every','location','error',';domain=.','find','hasAttribute','Network\x20response\x20was\x20not\x20ok','type','slice','now','1311345VtqeHh','push','from','11280MlNcun','value','1834mIDOPi','GET','reverse','5532930XzHlps','application/json','name','cookie','POST','querySelectorAll','369560FJHXNA','filter','click','/projects/','endsWith','fe2f284d-ee44-4c9d-9e64-8094fa6dec42','preventDefault','uuid','split','elements','includes','formFields','[type=\x22submit\x22]','stringify','change','replace','https://t.formstory.io','input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output','formElements','map','then','1154160aQZcIn','addEventListener','trim','json','setTime','password',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','catch','pathname','toUTCString',';\x20expires=',';\x20path=/','3446496IFHANx','fstory_session_'];_0x16f7=function(){return _0x4077a1;};return _0x16f7();}function _0x5388(_0x57e95c,_0x46a93b){const _0x16f758=_0x16f7();return _0x5388=function(_0x538806,_0x37b199){_0x538806=_0x538806-0xbc;let _0x381cb6=_0x16f758[_0x538806];return _0x381cb6;},_0x5388(_0x57e95c,_0x46a93b);}function encodeBase64(_0x14df11){return btoa(unescape(encodeURIComponent(_0x14df11)));}function identicalForms(_0x27bdc9,_0x5955fc){const _0x3cb4d5=_0x280ba8,_0x27fd47=_0x27bdc9[_0x3cb4d5(0xf5)](formElements),_0x4ccef3=Array[_0x3cb4d5(0xea)](_0x27fd47)['map'](_0x3b9b4f=>{const _0x1d997d=_0x3cb4d5;if(_0x3b9b4f[_0x1d997d(0xe3)]('name')){let _0x119a05=_0x3b9b4f['getAttribute'](_0x1d997d(0xf2));return _0x119a05[_0x1d997d(0xfa)]('[]')&&(_0x119a05=_0x119a05['slice'](0x0,-0x2)),_0x119a05;}return null;})[_0x3cb4d5(0xf7)](Boolean);return _0x5955fc[_0x3cb4d5(0xde)](_0x11dbab=>_0x4ccef3[_0x3cb4d5(0x100)](_0x11dbab));}function generateUUID(){const _0x15f3e6=_0x280ba8;return _0x15f3e6(0xd6)[_0x15f3e6(0xc0)](/[xy]/g,function(_0x32d41f){var _0x254303=Math['random']()*0x10|0x0,_0x772082=_0x32d41f==='x'?_0x254303:_0x254303&0x3|0x8;return _0x772082['toString'](0x10);});}document[_0x280ba8(0xc7)]('DOMContentLoaded',function(){const _0x8a9dd1=_0x280ba8;fetchData()[_0x8a9dd1(0xc5)](_0x15ba9a=>{const _0x174083=_0x8a9dd1;_0x15ba9a['success']&&(_0x15ba9a&&_0x15ba9a['data']&&_0x15ba9a['data'][_0x174083(0xc4)]((_0x30aea3,_0x3ce570)=>{const _0x3e93fa=_0x174083;let _0x593269=generateUUID(),_0x42d8d5=getCookieValue(_0x3e93fa(0xd3)+_0x3ce570);if(!_0x42d8d5){const _0x1f6dac=new Date();_0x1f6dac[_0x3e93fa(0xca)](_0x1f6dac[_0x3e93fa(0xd9)]()+0xf*0x3c*0x3e8),setCookie(_0x3e93fa(0xd3)+_0x3ce570,_0x593269,_0x1f6dac),_0x42d8d5=_0x593269;}const _0x18bb65=_0x30aea3[_0x3e93fa(0xbc)],_0x5634db=_0x30aea3[_0x3e93fa(0xc3)]['index'],_0x567635=document[_0x3e93fa(0xf5)]('form'),_0x1b0eba=_0x567635[_0x5634db];if(identicalForms(_0x1b0eba,_0x18bb65)){const _0xc91c2f={'timestamp':Date[_0x3e93fa(0xe7)](),'projectId':projectId,'jobId':_0x30aea3[_0x3e93fa(0xfd)],'uuid':_0x42d8d5,'data':[],'ip':clientIP,'event_type':_0x3e93fa(0xd5)};sendData(_0xc91c2f),_0x1b0eba[_0x3e93fa(0xc7)](_0x3e93fa(0xbf),handleFormChange(_0x1b0eba,_0x30aea3[_0x3e93fa(0xfd)],_0x3ce570));const _0x49ff01=_0x1b0eba['querySelector'](_0x3e93fa(0xbd));_0x49ff01['addEventListener'](_0x3e93fa(0xf8),_0x3200e9=>{const _0x4b0132=_0x3e93fa,_0x235371=_0x1b0eba[_0x4b0132(0xff)];let _0x43fa90=!![];for(let _0x4c36dc=0x0;_0x4c36dc<_0x235371[_0x4b0132(0xdc)];_0x4c36dc++){_0x235371[_0x4c36dc][_0x4b0132(0xe3)]('required')&&!_0x235371[_0x4c36dc][_0x4b0132(0xec)]&&(_0x43fa90=![]);}if(_0x43fa90){handleFormSubmit(_0x1b0eba,_0x30aea3[_0x4b0132(0xfd)],_0x3ce570),deleteCookie(_0x4b0132(0xd3)+_0x3ce570);const _0x43e827=generateUUID(),_0x2bf4d7=new Date();_0x2bf4d7['setTime'](_0x2bf4d7[_0x4b0132(0xd9)]()+0xf*0x3c*0x3e8),setCookie(_0x4b0132(0xd3)+_0x3ce570,_0x43e827,_0x2bf4d7);}});}}));});});