const _0x10ac51=_0x1f2a;(function(_0x56975c,_0x223d09){const _0xbc73a3=_0x1f2a,_0x414df8=_0x56975c();while(!![]){try{const _0x5bf2aa=parseInt(_0xbc73a3(0x209))/0x1+-parseInt(_0xbc73a3(0x204))/0x2*(-parseInt(_0xbc73a3(0x229))/0x3)+-parseInt(_0xbc73a3(0x22a))/0x4*(-parseInt(_0xbc73a3(0x1fc))/0x5)+-parseInt(_0xbc73a3(0x237))/0x6+-parseInt(_0xbc73a3(0x212))/0x7+parseInt(_0xbc73a3(0x20d))/0x8+-parseInt(_0xbc73a3(0x206))/0x9;if(_0x5bf2aa===_0x223d09)break;else _0x414df8['push'](_0x414df8['shift']());}catch(_0x209a5a){_0x414df8['push'](_0x414df8['shift']());}}}(_0x5b70,0xaa367));const projectId='a55dbe3e-20b9-4dc2-9551-e9c2856c797e',trackingUrl=_0x10ac51(0x222),scriptUrl='https://t.formstory.io',clientIP='216.73.216.186';let currentPath=window[_0x10ac51(0x221)][_0x10ac51(0x226)],host=window[_0x10ac51(0x221)]['hostname'];currentPath[_0x10ac51(0x21d)]('/')&¤tPath['length']>0x1&&(currentPath=currentPath[_0x10ac51(0x223)](0x0,-0x1));currentPath=currentPath[_0x10ac51(0x1f5)](/\//g,'_');const sendData=_0x198098=>{const _0x264ab3=_0x10ac51;fetch(trackingUrl,{'method':_0x264ab3(0x1fd),'headers':{'Content-Type':_0x264ab3(0x215)},'body':JSON[_0x264ab3(0x230)](_0x198098)})[_0x264ab3(0x20e)](_0xc1be8c=>{const _0x3d4a4e=_0x264ab3;if(!_0xc1be8c['ok'])throw new Error(_0x3d4a4e(0x201));})['catch'](_0x503917=>{console['error'](_0x503917);});},addFormFields=(_0x313734,_0x54797c)=>{const _0x3c828f=_0x10ac51;let _0x5904e7=_0x313734['elements'],_0xa4470e={};for(let _0x353496=0x0;_0x353496<_0x5904e7[_0x3c828f(0x22d)];_0x353496++){let _0x386bec=_0x5904e7[_0x353496],_0x1c4aa2=_0x386bec[_0x3c828f(0x231)]!==''?_0x386bec[_0x3c828f(0x231)]:_0x386bec['id'];if(_0x386bec[_0x3c828f(0x22e)]===_0x3c828f(0x214)||_0x386bec[_0x3c828f(0x22e)]===_0x3c828f(0x219)||_0x1c4aa2==='')continue;if(_0x1c4aa2[_0x3c828f(0x21d)]('[]')){let _0x447d12=_0x1c4aa2[_0x3c828f(0x223)](0x0,-0x2),_0x8a16b2=_0x386bec[_0x3c828f(0x217)]||'';!_0xa4470e[_0x447d12]?_0xa4470e[_0x447d12]={'label':_0x447d12,'value':_0x8a16b2}:_0xa4470e[_0x447d12][_0x3c828f(0x217)]+=_0x8a16b2[_0x3c828f(0x22d)]>0x0?',\x20'+_0x8a16b2:'';}else _0x54797c['data'][_0x3c828f(0x21a)]({'label':_0x1c4aa2,'value':_0x386bec[_0x3c828f(0x217)]||''});}for(let _0x483fd1 in _0xa4470e){_0x54797c[_0x3c828f(0x205)][_0x3c828f(0x21a)](_0xa4470e[_0x483fd1]);}},handleFormSubmit=(_0x40d68d,_0x4b6710,_0x390508)=>{const _0x4935dc=_0x10ac51,_0x44b70c=getCookieValue(_0x4935dc(0x227)+_0x390508);let _0x2f36e3={'projectId':projectId,'jobId':_0x4b6710,'uuid':_0x44b70c,'data':[],'timestamp':Date[_0x4935dc(0x233)](),'ip':clientIP,'event_type':_0x4935dc(0x21b)};addFormFields(_0x40d68d,_0x2f36e3),sendData(_0x2f36e3);},handleFormChange=(_0x43cfec,_0x1cc572,_0x2e74dc)=>_0x52ad08=>{const _0x457c7e=_0x10ac51;_0x52ad08[_0x457c7e(0x1f4)]();const _0x2ff45c=getCookieValue(_0x457c7e(0x227)+_0x2e74dc),_0x4207aa={'projectId':projectId,'jobId':_0x1cc572,'uuid':_0x2ff45c,'timestamp':Date['now'](),'data':[],'ip':clientIP,'event_type':_0x457c7e(0x220)};addFormFields(_0x43cfec,_0x4207aa),sendData(_0x4207aa);};function _0x1f2a(_0x5c5aac,_0x2cdfe1){const _0x5b70b8=_0x5b70();return _0x1f2a=function(_0x1f2aab,_0x5c36bf){_0x1f2aab=_0x1f2aab-0x1f3;let _0x507231=_0x5b70b8[_0x1f2aab];return _0x507231;},_0x1f2a(_0x5c5aac,_0x2cdfe1);}function fetchData(){const _0x1f595=_0x10ac51;return fetch(scriptUrl+'/projects/'+projectId+'/'+currentPath,{'method':_0x1f595(0x236),'headers':{'Content-Type':_0x1f595(0x215)}})[_0x1f595(0x20e)](_0x547278=>{const _0x3b5e10=_0x1f595;if(!_0x547278['ok'])return _0x547278[_0x3b5e10(0x1fa)]();return _0x547278[_0x3b5e10(0x1fa)]();})[_0x1f595(0x20e)](_0x31cb6f=>{return _0x31cb6f;})[_0x1f595(0x224)](_0xdd99a4=>{const _0x4890eb=_0x1f595;return{'success':![],'message':_0xdd99a4[_0x4890eb(0x218)]};});}function setCookie(_0x38266b,_0x4b5006,_0x4fc6ba){const _0x4875c8=_0x10ac51;let _0x265002=_0x38266b+'='+encodeURIComponent(_0x4b5006);document[_0x4875c8(0x202)]=_0x265002+_0x4875c8(0x208)+getRootDomain()+_0x4875c8(0x213)+_0x4fc6ba[_0x4875c8(0x22f)]()+';\x20path=/';}function getCookieValue(_0x36bbe2){const _0x38e615=_0x10ac51,_0x502067=document['cookie'][_0x38e615(0x1fe)](';'),_0x12909b=_0x502067[_0x38e615(0x228)](function(_0x2e2189){const _0xdedd40=_0x38e615;return _0x2e2189[_0xdedd40(0x234)]()[_0xdedd40(0x1f3)](_0x36bbe2+'=');});if(_0x12909b)return decodeURIComponent(_0x12909b[_0x38e615(0x1fe)]('=')[0x1]);return null;}function _0x5b70(){const _0x1114ca=['2HFGHlY','data','16532073zObVjE',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;',';domain=.','355886edQyxh','from','input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output','setTime','8968032nqmwvl','then','querySelector','index','addEventListener','4360111VQkXXb',';\x20expires=','hidden','application/json','success','value','message','password','push','submit','getAttribute','endsWith','random','=;\x20domain=.','change','location','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','slice','catch','every','pathname','fstory_session_','find','3395202knOlyS','1541392EfUhsP','formElements','toString','length','type','toUTCString','stringify','name','elements','now','trim','includes','GET','1334154UhTxRP','startsWith','preventDefault','replace','map','DOMContentLoaded','load','hasAttribute','json','querySelectorAll','10fuauCv','POST','split','click','form','Network\x20response\x20was\x20not\x20ok','cookie','getTime'];_0x5b70=function(){return _0x1114ca;};return _0x5b70();}function deleteCookie(_0x49539f){const _0x447f57=_0x10ac51;document[_0x447f57(0x202)]=_0x49539f+_0x447f57(0x21f)+getRootDomain()+_0x447f57(0x207);}function getRootDomain(){const _0xad66a=_0x10ac51,_0x478ede=host[_0xad66a(0x1fe)]('.')['reverse']();return _0x478ede[0x1]+'.'+_0x478ede[0x0];}const formElements=[_0x10ac51(0x20b)];function encodeBase64(_0xd540bf){return btoa(unescape(encodeURIComponent(_0xd540bf)));}function identicalForms(_0x3c1d62,_0x4432d8){const _0x622091=_0x10ac51,_0x59dae5=_0x3c1d62[_0x622091(0x1fb)](formElements),_0x30f49d=Array[_0x622091(0x20a)](_0x59dae5)['map'](_0x55a237=>{const _0xe4f929=_0x622091;if(_0x55a237[_0xe4f929(0x1f9)]('name')){let _0x51ad96=_0x55a237[_0xe4f929(0x21c)](_0xe4f929(0x231));return _0x51ad96[_0xe4f929(0x21d)]('[]')&&(_0x51ad96=_0x51ad96[_0xe4f929(0x223)](0x0,-0x2)),_0x51ad96;}return null;})['filter'](Boolean);return _0x4432d8[_0x622091(0x225)](_0x30d9bc=>_0x30f49d[_0x622091(0x235)](_0x30d9bc));}function generateUUID(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'['replace'](/[xy]/g,function(_0x400751){const _0x2fc537=_0x1f2a;var _0x1626cd=Math[_0x2fc537(0x21e)]()*0x10|0x0,_0x59509d=_0x400751==='x'?_0x1626cd:_0x1626cd&0x3|0x8;return _0x59509d[_0x2fc537(0x22c)](0x10);});}document['addEventListener'](_0x10ac51(0x1f7),function(){const _0x1c416f=_0x10ac51;fetchData()[_0x1c416f(0x20e)](_0x50a4fc=>{const _0x59e32c=_0x1c416f;_0x50a4fc[_0x59e32c(0x216)]&&(_0x50a4fc&&_0x50a4fc[_0x59e32c(0x205)]&&_0x50a4fc[_0x59e32c(0x205)][_0x59e32c(0x1f6)]((_0x54181a,_0x1488d4)=>{const _0x21618d=_0x59e32c;let _0x3f84eb=generateUUID(),_0x3689f2=getCookieValue(_0x21618d(0x227)+_0x1488d4);if(!_0x3689f2){const _0x377703=new Date();_0x377703['setTime'](_0x377703[_0x21618d(0x203)]()+0xf*0x3c*0x3e8),setCookie(_0x21618d(0x227)+_0x1488d4,_0x3f84eb,_0x377703),_0x3689f2=_0x3f84eb;}const _0x548db6=_0x54181a['formFields'],_0x114ac8=_0x54181a[_0x21618d(0x22b)][_0x21618d(0x210)],_0x36dc41=document['querySelectorAll'](_0x21618d(0x200)),_0x3422a8=_0x36dc41[_0x114ac8];if(identicalForms(_0x3422a8,_0x548db6)){const _0x417b9d={'timestamp':Date[_0x21618d(0x233)](),'projectId':projectId,'jobId':_0x54181a['uuid'],'uuid':_0x3689f2,'data':[],'ip':clientIP,'event_type':_0x21618d(0x1f8)};sendData(_0x417b9d),_0x3422a8[_0x21618d(0x211)]('change',handleFormChange(_0x3422a8,_0x54181a['uuid'],_0x1488d4));const _0x551519=_0x3422a8[_0x21618d(0x20f)]('[type=\x22submit\x22]');_0x551519[_0x21618d(0x211)](_0x21618d(0x1ff),_0x41433e=>{const _0x1f3bb6=_0x21618d,_0x356a51=_0x3422a8[_0x1f3bb6(0x232)];let _0x2aa681=!![];for(let _0x27fd13=0x0;_0x27fd13<_0x356a51[_0x1f3bb6(0x22d)];_0x27fd13++){_0x356a51[_0x27fd13][_0x1f3bb6(0x1f9)]('required')&&!_0x356a51[_0x27fd13][_0x1f3bb6(0x217)]&&(_0x2aa681=![]);}if(_0x2aa681){handleFormSubmit(_0x3422a8,_0x54181a['uuid'],_0x1488d4),deleteCookie(_0x1f3bb6(0x227)+_0x1488d4);const _0x2c30fc=generateUUID(),_0x512a69=new Date();_0x512a69[_0x1f3bb6(0x20c)](_0x512a69[_0x1f3bb6(0x203)]()+0xf*0x3c*0x3e8),setCookie(_0x1f3bb6(0x227)+_0x1488d4,_0x2c30fc,_0x512a69);}});}}));});});