const _0x476cbd=_0x3ff1;(function(_0x5b60eb,_0x5b6f02){const _0x5956eb=_0x3ff1,_0x5efdcb=_0x5b60eb();while(!![]){try{const _0x50aabb=-parseInt(_0x5956eb(0xb5))/0x1*(-parseInt(_0x5956eb(0xd7))/0x2)+-parseInt(_0x5956eb(0xfc))/0x3*(-parseInt(_0x5956eb(0xe0))/0x4)+parseInt(_0x5956eb(0xfa))/0x5+parseInt(_0x5956eb(0xf1))/0x6+-parseInt(_0x5956eb(0xc7))/0x7+parseInt(_0x5956eb(0xc9))/0x8*(-parseInt(_0x5956eb(0xb7))/0x9)+parseInt(_0x5956eb(0xb8))/0xa;if(_0x50aabb===_0x5b6f02)break;else _0x5efdcb['push'](_0x5efdcb['shift']());}catch(_0x4b809f){_0x5efdcb['push'](_0x5efdcb['shift']());}}}(_0x32e8,0x73554));const projectId='fb52afb6-bf85-4f56-aaa3-05f649f7d244',trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl='https://t.formstory.io',clientIP=_0x476cbd(0xce);let currentPath=window[_0x476cbd(0xfe)][_0x476cbd(0xf5)],host=window['location']['hostname'];currentPath[_0x476cbd(0xb6)]('/')&¤tPath['length']>0x1&&(currentPath=currentPath[_0x476cbd(0xbd)](0x0,-0x1));currentPath=currentPath[_0x476cbd(0xbe)](/\//g,'_');const sendData=_0x17e4ab=>{const _0x2a8b1a=_0x476cbd;fetch(trackingUrl,{'method':'POST','headers':{'Content-Type':_0x2a8b1a(0xf7)},'body':JSON[_0x2a8b1a(0xfd)](_0x17e4ab)})[_0x2a8b1a(0xdb)](_0x37ac78=>{if(!_0x37ac78['ok'])throw new Error('Network\x20response\x20was\x20not\x20ok');})[_0x2a8b1a(0xef)](_0x4a16f8=>{const _0x22bbdf=_0x2a8b1a;console[_0x22bbdf(0xf3)](_0x4a16f8);});},addFormFields=(_0x183b0f,_0x415946)=>{const _0x738f8f=_0x476cbd;let _0x3022be=_0x183b0f[_0x738f8f(0xcd)],_0x374a3d={};for(let _0x68499f=0x0;_0x68499f<_0x3022be[_0x738f8f(0xd5)];_0x68499f++){let _0xadfa5a=_0x3022be[_0x68499f],_0x41140=_0xadfa5a[_0x738f8f(0xeb)]!==''?_0xadfa5a[_0x738f8f(0xeb)]:_0xadfa5a['id'];if(_0xadfa5a[_0x738f8f(0xc6)]===_0x738f8f(0xe7)||_0xadfa5a[_0x738f8f(0xc6)]==='password'||_0x41140==='')continue;if(_0x41140['endsWith']('[]')){let _0xa480c=_0x41140[_0x738f8f(0xbd)](0x0,-0x2),_0x4392c8=_0xadfa5a[_0x738f8f(0xf4)]||'';!_0x374a3d[_0xa480c]?_0x374a3d[_0xa480c]={'label':_0xa480c,'value':_0x4392c8}:_0x374a3d[_0xa480c][_0x738f8f(0xf4)]+=_0x4392c8[_0x738f8f(0xd5)]>0x0?',\x20'+_0x4392c8:'';}else _0x415946['data']['push']({'label':_0x41140,'value':_0xadfa5a[_0x738f8f(0xf4)]||''});}for(let _0xa8dcee in _0x374a3d){_0x415946[_0x738f8f(0xbf)][_0x738f8f(0xdc)](_0x374a3d[_0xa8dcee]);}},handleFormSubmit=(_0x9b0d25,_0x3772a7,_0x3f2169)=>{let _0x1709cc={'projectId':projectId,'jobId':_0x3772a7,'uuid':_0x3f2169,'data':[],'timestamp':Date['now'](),'ip':clientIP,'event_type':'submit'};addFormFields(_0x9b0d25,_0x1709cc),sendData(_0x1709cc);},handleFormChange=(_0x1bce2f,_0x18354e,_0x51e956)=>_0x4a4c2c=>{const _0x2701bf=_0x476cbd;_0x4a4c2c[_0x2701bf(0xd3)]();const _0x43ea84={'projectId':projectId,'jobId':_0x18354e,'uuid':_0x51e956,'timestamp':Date[_0x2701bf(0xec)](),'data':[],'ip':clientIP,'event_type':'change'};addFormFields(_0x1bce2f,_0x43ea84),sendData(_0x43ea84);};function fetchData(){const _0x266fbe=_0x476cbd;return fetch(scriptUrl+_0x266fbe(0xf2)+projectId+'/'+currentPath,{'method':'GET','headers':{'Content-Type':_0x266fbe(0xf7)}})[_0x266fbe(0xdb)](_0x24dbef=>{const _0x27b1c5=_0x266fbe;if(!_0x24dbef['ok'])return _0x24dbef['json']();return _0x24dbef[_0x27b1c5(0xb9)]();})['then'](_0x2a50ec=>{return _0x2a50ec;})['catch'](_0x452ef9=>{const _0x4f90aa=_0x266fbe;return{'success':![],'message':_0x452ef9[_0x4f90aa(0xc5)]};});}function setCookie(_0x40813c,_0x2d92e7,_0x5a4ead){const _0x1907e3=_0x476cbd;let _0x105e68=_0x40813c+'='+encodeURIComponent(_0x2d92e7);document[_0x1907e3(0xba)]=_0x105e68+_0x1907e3(0xbb)+getRootDomain()+_0x1907e3(0xd0)+_0x5a4ead[_0x1907e3(0xd4)]()+';\x20path=/';}function _0x32e8(){const _0x92957b=['then','push','>formAttributes[_0x128083(0xca)](_0x7c88ad[_0x128083(0xeb)]))[_0x128083(0xc0)](_0x6f7445=>'\x20'+_0x6f7445[_0x128083(0xeb)]+'=\x22'+_0x6f7445[_0x128083(0xf4)]+'\x22')[_0x128083(0xc3)]('')+'>':'';return encodeBase64(_0x33f6fe);}const formElements=['input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output'],excludeKeywords=[_0x476cbd(0xcc)];function simplifyForm(_0x292423){const _0x83439c=_0x476cbd,_0x5dad25=_0x292423['querySelectorAll'](formElements),_0x2d8627={},_0x33464b=({name:_0x2ac208,id:_0xb10a1f})=>!excludeKeywords[_0x83439c(0xbc)](_0xa0f2cd=>_0x2ac208?.['toLowerCase']()[_0x83439c(0xca)](_0xa0f2cd)||_0xb10a1f?.[_0x83439c(0xe3)]()[_0x83439c(0xca)](_0xa0f2cd)),_0x3013dc=_0x2c840f=>{const _0x5d22d2=_0x83439c,_0x637b37=_0x2c840f['tagName'][_0x5d22d2(0xe3)](),_0x5ea911=inputAttributes[_0x5d22d2(0xee)](_0x5e5bfe=>_0x2c840f[_0x5d22d2(0xe8)](_0x5e5bfe))[_0x5d22d2(0xc0)](_0x2e5f7a=>'\x20'+_0x2e5f7a+'=\x22'+_0x2c840f['getAttribute'](_0x2e5f7a)+'\x22')[_0x5d22d2(0xc3)]('');return'<'+_0x637b37+_0x5ea911+_0x5d22d2(0xdd)+_0x637b37+'>';};return Array[_0x83439c(0xed)](_0x5dad25)[_0x83439c(0xee)](_0x33464b)[_0x83439c(0xda)]((_0x1f16e7,_0x3a3edc)=>{_0x2d8627[_0x3a3edc]=_0x3013dc(_0x1f16e7);}),encodeBase64(JSON[_0x83439c(0xfd)](_0x2d8627));}function encodeBase64(_0x27e1e7){return btoa(unescape(encodeURIComponent(_0x27e1e7)));}function identicalForms(_0x506209,_0x274405){const _0x44eff6=simplifyForm(_0x506209),_0x1762a4=tagFomBase64(_0x506209);if(_0x44eff6===_0x274405['elements']&&_0x1762a4===_0x274405['tagForm'])return!![];return![];}function generateUUID(){const _0x3b5268=_0x476cbd;return _0x3b5268(0xfb)['replace'](/[xy]/g,function(_0x2f2666){const _0xbca084=_0x3b5268;var _0x1185cb=Math[_0xbca084(0xc2)]()*0x10|0x0,_0x41a8c9=_0x2f2666==='x'?_0x1185cb:_0x1185cb&0x3|0x8;return _0x41a8c9[_0xbca084(0xd2)](0x10);});}document[_0x476cbd(0xe2)](_0x476cbd(0xd8),function(){const _0x129b0c=_0x476cbd;fetchData()[_0x129b0c(0xdb)](_0x391bb1=>{const _0x7ee1b=_0x129b0c;_0x391bb1[_0x7ee1b(0xe1)]&&(_0x391bb1&&_0x391bb1[_0x7ee1b(0xbf)]&&_0x391bb1[_0x7ee1b(0xbf)]['map']((_0x485777,_0x181c45)=>{const _0x4fffa6=_0x7ee1b;let _0x239dd3=generateUUID(),_0xfe1488=getCookieValue(_0x4fffa6(0xc1)+_0x181c45);if(!_0xfe1488){const _0x9c4ab1=new Date();_0x9c4ab1[_0x4fffa6(0xe6)](_0x9c4ab1[_0x4fffa6(0xd6)]()+0x5*0x3c*0x3e8),setCookie(_0x4fffa6(0xc1)+_0x181c45,_0x239dd3,_0x9c4ab1),_0xfe1488=_0x239dd3;}else _0x239dd3=_0xfe1488;const _0x2b712b=_0x485777['formElements'],_0x141801=document[_0x4fffa6(0xea)](_0x4fffa6(0xc8)),_0x368296=_0x141801[_0x2b712b[_0x4fffa6(0xf9)]];if(identicalForms(_0x368296,_0x2b712b)){const _0x1d2745={'timestamp':Date[_0x4fffa6(0xec)](),'projectId':projectId,'jobId':_0x485777['uuid'],'uuid':_0xfe1488,'data':[],'ip':clientIP,'event_type':'load'};sendData(_0x1d2745),_0x368296[_0x4fffa6(0xe2)](_0x4fffa6(0xe4),handleFormChange(_0x368296,_0x485777[_0x4fffa6(0xd1)],_0x239dd3));const _0x5a05d7=_0x368296[_0x4fffa6(0xf0)](_0x4fffa6(0xcb));_0x5a05d7[_0x4fffa6(0xe2)](_0x4fffa6(0xc4),_0xfcdeab=>{const _0x39724c=_0x4fffa6,_0xc8238a=_0x368296[_0x39724c(0xcd)];let _0xf28740=!![];for(let _0x4ed383=0x0;_0x4ed383<_0xc8238a[_0x39724c(0xd5)];_0x4ed383++){_0xc8238a[_0x4ed383][_0x39724c(0xe8)]('required')&&!_0xc8238a[_0x4ed383]['value']&&(_0xf28740=![]);}if(_0xf28740){deleteCookie(_0x39724c(0xc1)+_0x181c45),handleFormSubmit(_0x368296,_0x485777[_0x39724c(0xd1)],_0x239dd3),_0x239dd3=generateUUID();const _0x1c054f=new Date();_0x1c054f[_0x39724c(0xe6)](_0x1c054f[_0x39724c(0xd6)]()+0x5*0x3c*0x3e8),setCookie(_0x39724c(0xc1)+_0x181c45,_0x239dd3,_0x1c054f),_0xfe1488=_0x239dd3;}});}}));});});