const _0x5911f8=_0x25c0;(function(_0x4fd499,_0x39a2c2){const _0x15e6fe=_0x25c0,_0x56f894=_0x4fd499();while(!![]){try{const _0x5292c=-parseInt(_0x15e6fe(0x1d0))/0x1+-parseInt(_0x15e6fe(0x1e8))/0x2+parseInt(_0x15e6fe(0x1bd))/0x3+-parseInt(_0x15e6fe(0x1bf))/0x4+-parseInt(_0x15e6fe(0x1cf))/0x5*(parseInt(_0x15e6fe(0x1d1))/0x6)+-parseInt(_0x15e6fe(0x1ca))/0x7*(parseInt(_0x15e6fe(0x1de))/0x8)+-parseInt(_0x15e6fe(0x1d3))/0x9*(-parseInt(_0x15e6fe(0x1ec))/0xa);if(_0x5292c===_0x39a2c2)break;else _0x56f894['push'](_0x56f894['shift']());}catch(_0x38435b){_0x56f894['push'](_0x56f894['shift']());}}}(_0x43fa,0x5f154));const projectId=_0x5911f8(0x1df),trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x5911f8(0x1d2),uuid=_0x5911f8(0x1cd),clientIP=_0x5911f8(0x1b9);let currentPath=window[_0x5911f8(0x1ce)][_0x5911f8(0x1c9)],host=window['location']['hostname'];currentPath[_0x5911f8(0x1e5)]('/')&¤tPath['length']>0x1&&(currentPath=currentPath[_0x5911f8(0x1c0)](0x0,-0x1));currentPath=currentPath[_0x5911f8(0x1cc)](/\//g,'_');let jobId='';const sendData=_0x34c20d=>{const _0x4847a7=_0x5911f8;fetch(trackingUrl,{'method':_0x4847a7(0x1bc),'headers':{'Content-Type':'application/json'},'body':JSON[_0x4847a7(0x1c7)](_0x34c20d)})['then'](_0x48bcd4=>{const _0x59cd36=_0x4847a7;if(!_0x48bcd4['ok'])throw new Error(_0x59cd36(0x1d8));})[_0x4847a7(0x1b5)](_0x19ae64=>{const _0x34353a=_0x4847a7;console[_0x34353a(0x1c6)](_0x19ae64);});},addFormFields=(_0x3f100d,_0x4140bb)=>{const _0x285cc7=_0x5911f8;let _0x3bfecb=_0x3f100d[_0x285cc7(0x1c5)];for(let _0x133b5e=0x0;_0x133b5e<_0x3bfecb[_0x285cc7(0x1ba)];_0x133b5e++){let _0x1e1e5a=_0x3bfecb[_0x133b5e][_0x285cc7(0x1c4)]!==''?_0x3bfecb[_0x133b5e]['name']:_0x3bfecb[_0x133b5e]['id'];if(_0x3bfecb[_0x133b5e]['type']===_0x285cc7(0x1b3)||_0x1e1e5a==='')continue;_0x4140bb['data']['push']({'label':_0x1e1e5a,'value':_0x3bfecb[_0x133b5e][_0x285cc7(0x1d9)]});}},handleFormSubmit=(_0x1f531d,_0x571cf2)=>{const _0x369736=_0x5911f8;let _0xc7f66={'projectId':projectId,'jobId':jobId,'uuid':_0x571cf2,'data':[],'timestamp':Date[_0x369736(0x1be)](),'ip':clientIP,'event_type':'submit'};addFormFields(_0x1f531d,_0xc7f66),sendData(_0xc7f66);},handleFormChange=(_0x8bfea6,_0x3397f1)=>_0x337fa1=>{const _0x119916=_0x5911f8;_0x337fa1[_0x119916(0x1c1)]();const _0x5732d9={'projectId':projectId,'jobId':jobId,'uuid':_0x3397f1,'timestamp':Date[_0x119916(0x1be)](),'data':[],'ip':clientIP,'event_type':_0x119916(0x1b7)};addFormFields(_0x8bfea6,_0x5732d9),sendData(_0x5732d9);};function fetchData(){const _0x5c2b73=_0x5911f8;return fetch(scriptUrl+_0x5c2b73(0x1dc)+projectId+'/'+currentPath,{'method':_0x5c2b73(0x1c3),'headers':{'Content-Type':_0x5c2b73(0x1e1)}})[_0x5c2b73(0x1e7)](_0x730ca1=>{const _0x4018f2=_0x5c2b73;if(!_0x730ca1['ok'])return _0x730ca1[_0x4018f2(0x1e6)]();return _0x730ca1[_0x4018f2(0x1e6)]();})['then'](_0x170d82=>{return _0x170d82;})['catch'](_0x5614dc=>{const _0x5a5dd7=_0x5c2b73;return{'success':![],'message':_0x5614dc[_0x5a5dd7(0x1e4)]};});}function setCookie(_0xab9525,_0x5ef60e,_0x1a6014){const _0x3e2193=_0x5911f8;let _0x4f29ef=_0xab9525+'='+encodeURIComponent(_0x5ef60e);document[_0x3e2193(0x1b6)]=_0x4f29ef+_0x3e2193(0x1e2)+getRootDomain()+_0x3e2193(0x1bb)+_0x1a6014['toUTCString']()+';\x20path=/';}function getCookieValue(_0x1536f9){const _0x4dedb6=_0x5911f8,_0x5b8461=document[_0x4dedb6(0x1b6)][_0x4dedb6(0x1b4)](';'),_0x29e11c=_0x5b8461['find'](function(_0x18ae35){const _0x1beda3=_0x4dedb6;return _0x18ae35['trim']()[_0x1beda3(0x1e0)](_0x1536f9+'=');});if(_0x29e11c)return decodeURIComponent(_0x29e11c[_0x4dedb6(0x1b4)]('=')[0x1]);return null;}function deleteCookie(_0x1453f8){const _0x3d6275=_0x5911f8;document[_0x3d6275(0x1b6)]=_0x1453f8+_0x3d6275(0x1d4)+getRootDomain()+_0x3d6275(0x1d5);}function _0x25c0(_0x5055b1,_0x286451){const _0x43fa64=_0x43fa();return _0x25c0=function(_0x25c0b8,_0x31703d){_0x25c0b8=_0x25c0b8-0x1b3;let _0x204f08=_0x43fa64[_0x25c0b8];return _0x204f08;},_0x25c0(_0x5055b1,_0x286451);}function getRootDomain(){const _0x5a37a8=_0x5911f8,_0x37301e=host[_0x5a37a8(0x1b4)]('.')[_0x5a37a8(0x1cb)]();return _0x37301e[0x1]+'.'+_0x37301e[0x0];}function _0x43fa(){const _0xbccad3=['cookie','change','[type=\x22submit\x22]','18.190.156.80','length',';\x20expires=','POST','2090937qfOKkz','now','2477188fmXaaW','slice','preventDefault','DOMContentLoaded','GET','name','elements','error','stringify','fstory_session','pathname','26971pHOaod','reverse','replace','27a17fc9-1811-4345-a549-302ccbc78c85','location','475pVKdUk','538228YXArCr','7230OUSJje','https://t.formstory.io','27fTBoDW','=;\x20domain=.',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','required','hasAttribute','Network\x20response\x20was\x20not\x20ok','value','getTime','FIRST_ORDERED_NODE_TYPE','/projects/','evaluate','184gMJvqf','7cbb5d08-d188-4aa3-b261-ab1e729fcaf9','startsWith','application/json',';domain=.','click','message','endsWith','json','then','546658JaQeRz','data','addEventListener','setTime','4421430FUnBCm','hidden','split','catch'];_0x43fa=function(){return _0xbccad3;};return _0x43fa();}document[_0x5911f8(0x1ea)](_0x5911f8(0x1c2),function(){fetchData()['then'](_0x435c86=>{const _0x946ebf=_0x25c0;if(_0x435c86['success']){if(_0x435c86&&_0x435c86[_0x946ebf(0x1e9)]){let _0x1f7674=getCookieValue(_0x946ebf(0x1c8));if(!_0x1f7674){const _0x36283d=new Date();_0x36283d[_0x946ebf(0x1eb)](_0x36283d[_0x946ebf(0x1da)]()+0x5*0x3c*0x3e8),setCookie('fstory_session',uuid,_0x36283d),_0x1f7674=uuid;}jobId=_0x435c86[_0x946ebf(0x1e9)]['uuid'];const _0x22b23e=document[_0x946ebf(0x1dd)](_0x435c86['data']['xpath'],document,null,XPathResult[_0x946ebf(0x1db)],null)['singleNodeValue'];if(_0x22b23e){const _0x55eed2={'timestamp':Date['now'](),'projectId':projectId,'jobId':jobId,'uuid':_0x1f7674,'data':[],'ip':clientIP,'event_type':'load'};sendData(_0x55eed2),_0x22b23e[_0x946ebf(0x1ea)](_0x946ebf(0x1b7),handleFormChange(_0x22b23e,_0x1f7674));const _0x1f4d2a=_0x22b23e['querySelector'](_0x946ebf(0x1b8));_0x1f4d2a[_0x946ebf(0x1ea)](_0x946ebf(0x1e3),_0x16b827=>{const _0x28c6cb=_0x946ebf,_0x201f17=_0x22b23e[_0x28c6cb(0x1c5)];let _0x6bfdd=!![];for(let _0x81a17=0x0;_0x81a17<_0x201f17[_0x28c6cb(0x1ba)];_0x81a17++){_0x201f17[_0x81a17][_0x28c6cb(0x1d7)](_0x28c6cb(0x1d6))&&!_0x201f17[_0x81a17][_0x28c6cb(0x1d9)]&&(_0x6bfdd=![]);}_0x6bfdd&&(deleteCookie(_0x28c6cb(0x1c8)),handleFormSubmit(_0x22b23e,_0x1f7674));});}}}});});