const _0x2ae7d2=_0x3b9f;(function(_0x4008e7,_0x3b2765){const _0x10c54c=_0x3b9f,_0x199709=_0x4008e7();while(!![]){try{const _0x5e5a33=-parseInt(_0x10c54c(0x1f7))/0x1*(parseInt(_0x10c54c(0x202))/0x2)+-parseInt(_0x10c54c(0x211))/0x3+parseInt(_0x10c54c(0x1e0))/0x4+parseInt(_0x10c54c(0x20b))/0x5*(parseInt(_0x10c54c(0x1fc))/0x6)+parseInt(_0x10c54c(0x1dc))/0x7*(-parseInt(_0x10c54c(0x1db))/0x8)+parseInt(_0x10c54c(0x1f6))/0x9+-parseInt(_0x10c54c(0x205))/0xa*(-parseInt(_0x10c54c(0x1c4))/0xb);if(_0x5e5a33===_0x3b2765)break;else _0x199709['push'](_0x199709['shift']());}catch(_0x516bf0){_0x199709['push'](_0x199709['shift']());}}}(_0x4415,0x760ae));const projectId='cce43ad7-635e-4bf7-8ad8-939d7cac5a1f',trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x2ae7d2(0x1df),uuid=_0x2ae7d2(0x1ed),clientIP=_0x2ae7d2(0x1e5);function _0x3b9f(_0x2f9b37,_0x286cc7){const _0x44153d=_0x4415();return _0x3b9f=function(_0x3b9f64,_0x26edc3){_0x3b9f64=_0x3b9f64-0x1bd;let _0x34e3e6=_0x44153d[_0x3b9f64];return _0x34e3e6;},_0x3b9f(_0x2f9b37,_0x286cc7);}let currentPath=window[_0x2ae7d2(0x204)]['pathname'],host=window[_0x2ae7d2(0x204)]['hostname'];currentPath['endsWith']('/')&¤tPath[_0x2ae7d2(0x206)]>0x1&&(currentPath=currentPath[_0x2ae7d2(0x1f3)](0x0,-0x1));currentPath=currentPath[_0x2ae7d2(0x1bf)](/\//g,'_');let jobId='';const sendData=_0x516394=>{const _0x242599=_0x2ae7d2;fetch(trackingUrl,{'method':'POST','headers':{'Content-Type':_0x242599(0x207)},'body':JSON[_0x242599(0x1d3)](_0x516394)})['then'](_0x339992=>{const _0x4b8b9e=_0x242599;if(!_0x339992['ok'])throw new Error(_0x4b8b9e(0x212));})['catch'](_0x8cb464=>{const _0xeee59a=_0x242599;console[_0xeee59a(0x1d7)](_0x8cb464);});},addFormFields=(_0x22220c,_0x4a19bb)=>{const _0x42897d=_0x2ae7d2;let _0x136325=_0x22220c['elements'];for(let _0x3c8672=0x0;_0x3c8672<_0x136325[_0x42897d(0x206)];_0x3c8672++){let _0x1f5cf3=_0x136325[_0x3c8672][_0x42897d(0x1d4)]!==''?_0x136325[_0x3c8672][_0x42897d(0x1d4)]:_0x136325[_0x3c8672]['id'];if(_0x136325[_0x3c8672][_0x42897d(0x1e9)]===_0x42897d(0x1c7)||_0x136325[_0x3c8672][_0x42897d(0x1e9)]===_0x42897d(0x1d1)||_0x1f5cf3===''||isSensitiveField(_0x1f5cf3)||isCreditCardInput(_0x136325[_0x3c8672]?.[_0x42897d(0x1fb)]||''))continue;_0x4a19bb[_0x42897d(0x217)]['push']({'label':_0x1f5cf3,'value':_0x136325[_0x3c8672]?.[_0x42897d(0x1fb)]||''});}},handleFormSubmit=(_0x32d158,_0xe36353)=>{const _0x4df7ee=_0x2ae7d2;let _0x53b03c={'projectId':projectId,'jobId':jobId,'uuid':_0xe36353,'data':[],'timestamp':Date['now'](),'ip':clientIP,'event_type':_0x4df7ee(0x1c6)};addFormFields(_0x32d158,_0x53b03c),sendData(_0x53b03c);},handleFormChange=(_0x1c8f61,_0x520782)=>_0xe40c0e=>{const _0x1cb56e=_0x2ae7d2;_0xe40c0e[_0x1cb56e(0x1be)]();const _0x1590b5={'projectId':projectId,'jobId':jobId,'uuid':_0x520782,'timestamp':Date[_0x1cb56e(0x214)](),'data':[],'ip':clientIP,'event_type':_0x1cb56e(0x1f5)};addFormFields(_0x1c8f61,_0x1590b5),sendData(_0x1590b5);};function isSensitiveField(_0x2b1a3c){const _0x1ab92c=_0x2ae7d2,_0x4e1773=['password',_0x1ab92c(0x200),'pwd',_0x1ab92c(0x208),_0x1ab92c(0x1f9),_0x1ab92c(0x1fe),_0x1ab92c(0x1de),_0x1ab92c(0x1fa),'secret','pin','code',_0x1ab92c(0x1cf),_0x1ab92c(0x20d),_0x1ab92c(0x20e),_0x1ab92c(0x209),_0x1ab92c(0x1cc),_0x1ab92c(0x1ff),'bank',_0x1ab92c(0x1dd),_0x1ab92c(0x213),'cardnumber',_0x1ab92c(0x1e8),'cardcvc',_0x1ab92c(0x210),_0x1ab92c(0x1ce),_0x1ab92c(0x1ea),'securitynumber'];return _0x2b1a3c=_0x2b1a3c[_0x1ab92c(0x203)](),_0x2b1a3c=_0x2b1a3c[_0x1ab92c(0x1bf)](/[\s-_]/g,''),_0x4e1773[_0x1ab92c(0x215)](_0x3e28b5=>_0x2b1a3c[_0x1ab92c(0x1f8)](_0x3e28b5));}function isCreditCardInput(_0x383fa0){let _0x2cc90c=_0x383fa0['replace'](/[\s-]/g,'');const _0x27d6e0=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13}|6(?:011|5[0-9]{2})[0-9]{12}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/;if(!_0x27d6e0['test'](_0x2cc90c))return![];return!![];}function fetchData(){const _0x1e85d3=_0x2ae7d2;return fetch(scriptUrl+'/projects/'+projectId+'/'+currentPath,{'method':_0x1e85d3(0x1c0),'headers':{'Content-Type':_0x1e85d3(0x207)}})[_0x1e85d3(0x1c5)](_0x129509=>{const _0x1e8efe=_0x1e85d3;if(!_0x129509['ok'])return _0x129509[_0x1e8efe(0x219)]();return _0x129509[_0x1e8efe(0x219)]();})['then'](_0x477c2f=>{return _0x477c2f;})[_0x1e85d3(0x1d2)](_0x1ed7f8=>{const _0x144002=_0x1e85d3;return{'success':![],'message':_0x1ed7f8[_0x144002(0x1eb)]};});}function setCookie(_0x52b35b,_0x5eeefe,_0x5a8ae6){const _0x22490a=_0x2ae7d2;let _0x501f96=_0x52b35b+'='+encodeURIComponent(_0x5eeefe);document[_0x22490a(0x1c3)]=_0x501f96+_0x22490a(0x1ef)+getRootDomain()+_0x22490a(0x1c1)+_0x5a8ae6[_0x22490a(0x218)]()+_0x22490a(0x1bd);}function getCookieValue(_0x11ae34){const _0xa10635=_0x2ae7d2,_0x5745c9=document['cookie'][_0xa10635(0x20a)](';'),_0x5b0a14=_0x5745c9[_0xa10635(0x1f1)](function(_0x1d0b97){const _0x368a98=_0xa10635;return _0x1d0b97[_0x368a98(0x1ee)]()[_0x368a98(0x20f)](_0x11ae34+'=');});if(_0x5b0a14)return decodeURIComponent(_0x5b0a14[_0xa10635(0x20a)]('=')[0x1]);return null;}function _0x4415(){const _0x14dc13=['accesstoken','split','1559905yBgYll','DOMContentLoaded','auth','login','startsWith','ssn','2612172hFQeWq','Network\x20response\x20was\x20not\x20ok','creditcard','now','some','forEach','data','toUTCString','json','join',';\x20path=/','preventDefault','replace','GET',';\x20expires=','getTime','cookie','99FOyixO','then','submit','hidden','elements','getAttribute','form','filter','medicalrecord','>attributesToKeep[_0xa10830(0x1f8)](_0x9c3eda['name']))[_0xa10830(0x1e2)](_0x43fb94=>'\x20'+_0x43fb94['name']+'=\x22'+_0x43fb94[_0xa10830(0x1fb)]+'\x22')[_0xa10830(0x21a)]('')+'>':'';return encodeBase64(_0x4f03a9);}function simplifyForm(_0x1e5b45){const _0x2ec50e=_0x2ae7d2,_0x55c9f0=_0x1e5b45[_0x2ec50e(0x1e1)](_0x2ec50e(0x1f4));let _0x34fc81={};Array[_0x2ec50e(0x201)](_0x55c9f0)[_0x2ec50e(0x1cb)](_0x781e10=>_0x781e10[_0x2ec50e(0x1e9)]!==_0x2ec50e(0x1c7)&&(!_0x781e10[_0x2ec50e(0x1d4)]?.[_0x2ec50e(0x203)]()[_0x2ec50e(0x1f8)](_0x2ec50e(0x1e3))||!_0x781e10['id']?.['toLowerCase']()[_0x2ec50e(0x1f8)](_0x2ec50e(0x1e3))))[_0x2ec50e(0x216)]((_0x2e8596,_0x4a4dc4)=>{const _0xd8dc94=_0x2ec50e;let _0xf45d09='<'+_0x2e8596[_0xd8dc94(0x1d8)][_0xd8dc94(0x203)]();attributesToKeep[_0xd8dc94(0x216)](_0x25af19=>{const _0x4afba4=_0xd8dc94;_0x2e8596['hasAttribute'](_0x25af19)&&(_0xf45d09+='\x20'+_0x25af19+'=\x22'+_0x2e8596[_0x4afba4(0x1c9)](_0x25af19)+'\x22');}),_0xf45d09+=_0xd8dc94(0x1cd)+_0x2e8596[_0xd8dc94(0x1d8)][_0xd8dc94(0x203)]()+'>',_0x34fc81[_0x4a4dc4]=_0xf45d09;});const _0x1979c1=JSON[_0x2ec50e(0x1d3)](_0x34fc81),_0x92c617=encodeBase64(_0x1979c1);return _0x92c617;}function encodeBase64(_0x28916f){return btoa(unescape(encodeURIComponent(_0x28916f)));}function identicalForms(_0x58ab5b,_0x2e4d8d){const _0x3b2686=_0x2ae7d2,_0x5548a5=simplifyForm(_0x58ab5b),_0x4b1dd7=tagFomBase64(_0x58ab5b);if(_0x5548a5===_0x2e4d8d[_0x3b2686(0x1c8)]&&_0x4b1dd7===_0x2e4d8d[_0x3b2686(0x1e7)])return!![];return![];}document[_0x2ae7d2(0x1fd)](_0x2ae7d2(0x20c),function(){fetchData()['then'](_0x1a16ac=>{const _0x36c37e=_0x3b9f;if(_0x1a16ac[_0x36c37e(0x1d0)]){if(_0x1a16ac&&_0x1a16ac[_0x36c37e(0x217)]){let _0x3b763d=getCookieValue('fstory_session');jobId=_0x1a16ac[_0x36c37e(0x217)]['uuid'];if(!_0x3b763d){const _0x5c33b4=new Date();_0x5c33b4['setTime'](_0x5c33b4[_0x36c37e(0x1c2)]()+0x5*0x3c*0x3e8),setCookie(_0x36c37e(0x1d9),uuid,_0x5c33b4),_0x3b763d=uuid;}const _0x183f56=_0x1a16ac['data']['formElements'],_0x489168=document['querySelectorAll'](_0x36c37e(0x1ca)),_0x19ba08=_0x489168[_0x183f56[_0x36c37e(0x1d5)]];if(identicalForms(_0x19ba08,_0x183f56)){const _0x2447dd={'timestamp':Date[_0x36c37e(0x214)](),'projectId':projectId,'jobId':jobId,'uuid':_0x3b763d,'data':[],'ip':clientIP,'event_type':'load'};sendData(_0x2447dd),_0x19ba08[_0x36c37e(0x1fd)]('change',handleFormChange(_0x19ba08,_0x3b763d));const _0x47b785=_0x19ba08['querySelector'](_0x36c37e(0x1e6));_0x47b785[_0x36c37e(0x1fd)](_0x36c37e(0x1e4),_0x848ca9=>{const _0x9e6d73=_0x36c37e,_0x2bc9bf=_0x19ba08[_0x9e6d73(0x1c8)];let _0x61df68=!![];for(let _0x37a8f9=0x0;_0x37a8f9<_0x2bc9bf['length'];_0x37a8f9++){_0x2bc9bf[_0x37a8f9][_0x9e6d73(0x1ec)](_0x9e6d73(0x1d6))&&!_0x2bc9bf[_0x37a8f9]['value']&&(_0x61df68=![]);}_0x61df68&&(deleteCookie(_0x9e6d73(0x1d9)),handleFormSubmit(_0x19ba08,_0x3b763d));});}}}});});