const _0x102995=_0x2c8c;(function(_0x3eb289,_0xa95c60){const _0x42b90c=_0x2c8c,_0x3ad770=_0x3eb289();while(!![]){try{const _0x4bf7cb=-parseInt(_0x42b90c(0x1df))/0x1*(-parseInt(_0x42b90c(0x213))/0x2)+-parseInt(_0x42b90c(0x201))/0x3*(-parseInt(_0x42b90c(0x226))/0x4)+-parseInt(_0x42b90c(0x207))/0x5+parseInt(_0x42b90c(0x228))/0x6*(parseInt(_0x42b90c(0x1ec))/0x7)+parseInt(_0x42b90c(0x214))/0x8+-parseInt(_0x42b90c(0x200))/0x9+parseInt(_0x42b90c(0x1e2))/0xa;if(_0x4bf7cb===_0xa95c60)break;else _0x3ad770['push'](_0x3ad770['shift']());}catch(_0x5c7233){_0x3ad770['push'](_0x3ad770['shift']());}}}(_0x245d,0xef6b2));const projectId=_0x102995(0x1de),trackingUrl='https://us-central1-formstory-394609.cloudfunctions.net/fstory-script',scriptUrl=_0x102995(0x1e1),clientIP='18.217.110.140';let currentPath=window[_0x102995(0x20b)][_0x102995(0x1e0)],host=window[_0x102995(0x20b)][_0x102995(0x1fa)];currentPath[_0x102995(0x1ff)]('/')&¤tPath[_0x102995(0x20a)]>0x1&&(currentPath=currentPath['slice'](0x0,-0x1));currentPath=currentPath['replace'](/\//g,'_');const sendData=_0x4cea26=>{const _0x216970=_0x102995;fetch(trackingUrl,{'method':_0x216970(0x205),'headers':{'Content-Type':_0x216970(0x224)},'body':JSON[_0x216970(0x21e)](_0x4cea26)})[_0x216970(0x1e9)](_0x9ec872=>{const _0x4b9e2d=_0x216970;if(!_0x9ec872['ok'])throw new Error(_0x4b9e2d(0x1eb));})['catch'](_0x257122=>{const _0x13a3e0=_0x216970;console[_0x13a3e0(0x1f8)](_0x257122);});},addFormFields=(_0x3d6545,_0x23ec6c)=>{const _0x5c8a42=_0x102995;let _0x44eda7=_0x3d6545[_0x5c8a42(0x1dc)],_0x52e2c2={};for(let _0x265026=0x0;_0x265026<_0x44eda7[_0x5c8a42(0x20a)];_0x265026++){let _0x1b9190=_0x44eda7[_0x265026],_0x188665=_0x1b9190[_0x5c8a42(0x21c)]!==''?_0x1b9190[_0x5c8a42(0x21c)]:_0x1b9190['id'];if(_0x1b9190[_0x5c8a42(0x1e3)]===_0x5c8a42(0x1ef)||_0x1b9190[_0x5c8a42(0x1e3)]===_0x5c8a42(0x20c)||_0x188665==='')continue;if(_0x188665[_0x5c8a42(0x1ff)]('[]')){let _0xef055=_0x188665[_0x5c8a42(0x1f2)](0x0,-0x2),_0x267746=_0x1b9190[_0x5c8a42(0x1f4)]||'';!_0x52e2c2[_0xef055]?_0x52e2c2[_0xef055]={'label':_0xef055,'value':_0x267746}:_0x52e2c2[_0xef055][_0x5c8a42(0x1f4)]+=_0x267746[_0x5c8a42(0x20a)]>0x0?',\x20'+_0x267746:'';}else _0x23ec6c[_0x5c8a42(0x206)]['push']({'label':_0x188665,'value':_0x1b9190[_0x5c8a42(0x1f4)]||''});}for(let _0x452ea4 in _0x52e2c2){_0x23ec6c[_0x5c8a42(0x206)][_0x5c8a42(0x1f5)](_0x52e2c2[_0x452ea4]);}},handleFormSubmit=(_0xd34d68,_0x5e8037,_0x340920)=>{const _0x1e0a74=_0x102995;let _0xd7af80={'projectId':projectId,'jobId':_0x5e8037,'uuid':_0x340920,'data':[],'timestamp':Date[_0x1e0a74(0x1e7)](),'ip':clientIP,'event_type':_0x1e0a74(0x21a)};addFormFields(_0xd34d68,_0xd7af80),sendData(_0xd7af80);},handleFormChange=(_0x37ed59,_0x4abdfa,_0x472aff)=>_0x49f977=>{const _0x375ddd=_0x102995;_0x49f977[_0x375ddd(0x1f3)]();const _0x24e5ca={'projectId':projectId,'jobId':_0x4abdfa,'uuid':_0x472aff,'timestamp':Date[_0x375ddd(0x1e7)](),'data':[],'ip':clientIP,'event_type':'change'};addFormFields(_0x37ed59,_0x24e5ca),sendData(_0x24e5ca);};function fetchData(){const _0x32ceb9=_0x102995;return fetch(scriptUrl+_0x32ceb9(0x20f)+projectId+'/'+currentPath,{'method':'GET','headers':{'Content-Type':_0x32ceb9(0x224)}})[_0x32ceb9(0x1e9)](_0x46b847=>{if(!_0x46b847['ok'])return _0x46b847['json']();return _0x46b847['json']();})[_0x32ceb9(0x1e9)](_0x225333=>{return _0x225333;})[_0x32ceb9(0x209)](_0xc64137=>{const _0x147edf=_0x32ceb9;return{'success':![],'message':_0xc64137[_0x147edf(0x220)]};});}function setCookie(_0x54647b,_0x408e0a,_0x37688d){const _0x5cf76c=_0x102995;let _0x1412b5=_0x54647b+'='+encodeURIComponent(_0x408e0a);document['cookie']=_0x1412b5+_0x5cf76c(0x1e8)+getRootDomain()+_0x5cf76c(0x202)+_0x37688d[_0x5cf76c(0x21f)]()+_0x5cf76c(0x210);}function _0x2c8c(_0x498fbc,_0x2bb99d){const _0x245da0=_0x245d();return _0x2c8c=function(_0x2c8c5e,_0x4cb67f){_0x2c8c5e=_0x2c8c5e-0x1db;let _0x4ec3de=_0x245da0[_0x2c8c5e];return _0x4ec3de;},_0x2c8c(_0x498fbc,_0x2bb99d);}function getCookieValue(_0x219228){const _0x4a86fc=_0x102995,_0x55b1ca=document[_0x4a86fc(0x1ee)]['split'](';'),_0x17686d=_0x55b1ca[_0x4a86fc(0x1ed)](function(_0x10fafe){const _0x2d039a=_0x4a86fc;return _0x10fafe['trim']()[_0x2d039a(0x219)](_0x219228+'=');});if(_0x17686d)return decodeURIComponent(_0x17686d['split']('=')[0x1]);return null;}function deleteCookie(_0x15b412){const _0x13a0c8=_0x102995;document[_0x13a0c8(0x1ee)]=_0x15b412+'=;\x20domain=.'+getRootDomain()+';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;';}function getRootDomain(){const _0x35adae=_0x102995,_0x17cb77=host['split']('.')[_0x35adae(0x22a)]();return _0x17cb77[0x1]+'.'+_0x17cb77[0x0];}const formAttributes=[_0x102995(0x1f1),_0x102995(0x216)],inputAttributes=[_0x102995(0x21c),_0x102995(0x1e3)];function tagFomBase64(_0x122db6){const _0x331912=_0x102995,_0x35a152=_0x122db6?_0x331912(0x1ea)+Array[_0x331912(0x218)](_0x122db6['attributes'])['filter'](_0x383eba=>formAttributes['includes'](_0x383eba[_0x331912(0x21c)]))[_0x331912(0x21b)](_0x279351=>'\x20'+_0x279351[_0x331912(0x21c)]+'=\x22'+_0x279351[_0x331912(0x1f4)]+'\x22')[_0x331912(0x1f7)]('')+'>':'';return encodeBase64(_0x35a152);}const formElements=[_0x102995(0x1e6)],excludeKeywords=[_0x102995(0x223)];function simplifyForm(_0x10ed78){const _0x76293=_0x102995,_0x13da69=_0x10ed78[_0x76293(0x229)](formElements),_0x40ba06={},_0x152e1d=({name:_0x5263a0,id:_0x4aca2b})=>!excludeKeywords[_0x76293(0x225)](_0xa54c4b=>_0x5263a0?.['toLowerCase']()[_0x76293(0x215)](_0xa54c4b)||_0x4aca2b?.[_0x76293(0x1fe)]()[_0x76293(0x215)](_0xa54c4b)),_0x2567b5=_0x423102=>{const _0x6f8fcd=_0x76293,_0x329931=_0x423102['tagName'][_0x6f8fcd(0x1fe)](),_0xdd93d9=inputAttributes[_0x6f8fcd(0x1fb)](_0x271562=>_0x423102[_0x6f8fcd(0x208)](_0x271562))[_0x6f8fcd(0x21b)](_0x456542=>'\x20'+_0x456542+'=\x22'+_0x423102['getAttribute'](_0x456542)+'\x22')[_0x6f8fcd(0x1f7)]('');return'<'+_0x329931+_0xdd93d9+_0x6f8fcd(0x1f9)+_0x329931+'>';};return Array['from'](_0x13da69)[_0x76293(0x1fb)](_0x152e1d)[_0x76293(0x20e)]((_0x4d2076,_0x1e0c9a)=>{_0x40ba06[_0x1e0c9a]=_0x2567b5(_0x4d2076);}),encodeBase64(JSON[_0x76293(0x21e)](_0x40ba06));}function _0x245d(){const _0x59afa3=['{const _0x183bb4=_0x27a3ee;_0x1df6c1[_0x183bb4(0x227)]&&(_0x1df6c1&&_0x1df6c1[_0x183bb4(0x206)]&&_0x1df6c1[_0x183bb4(0x206)][_0x183bb4(0x21b)]((_0x446876,_0x38e5bf)=>{const _0x552d93=_0x183bb4;let _0x1d2a3d=generateUUID(),_0x1425dd=getCookieValue(_0x552d93(0x21d)+_0x38e5bf);if(!_0x1425dd){const _0x651416=new Date();_0x651416[_0x552d93(0x1f6)](_0x651416[_0x552d93(0x1e4)]()+0x5*0x3c*0x3e8),setCookie(_0x552d93(0x21d)+_0x38e5bf,_0x1d2a3d,_0x651416),_0x1425dd=_0x1d2a3d;}else _0x1d2a3d=_0x1425dd;const _0x2dc478=_0x446876[_0x552d93(0x1e5)],_0x57623d=document[_0x552d93(0x229)](_0x552d93(0x217)),_0x59e7eb=_0x57623d[_0x2dc478[_0x552d93(0x204)]];if(identicalForms(_0x59e7eb,_0x2dc478)){const _0x32c952={'timestamp':Date[_0x552d93(0x1e7)](),'projectId':projectId,'jobId':_0x446876[_0x552d93(0x222)],'uuid':_0x1425dd,'data':[],'ip':clientIP,'event_type':_0x552d93(0x1dd)};sendData(_0x32c952),_0x59e7eb['addEventListener']('change',handleFormChange(_0x59e7eb,_0x446876[_0x552d93(0x222)],_0x1d2a3d));const _0x31e75c=_0x59e7eb[_0x552d93(0x203)](_0x552d93(0x1db));_0x31e75c[_0x552d93(0x20d)](_0x552d93(0x211),_0x27d6fe=>{const _0x1c07d2=_0x552d93,_0x1e1ea1=_0x59e7eb[_0x1c07d2(0x1dc)];let _0x387897=!![];for(let _0x6b2d00=0x0;_0x6b2d00<_0x1e1ea1[_0x1c07d2(0x20a)];_0x6b2d00++){_0x1e1ea1[_0x6b2d00]['hasAttribute'](_0x1c07d2(0x1fd))&&!_0x1e1ea1[_0x6b2d00]['value']&&(_0x387897=![]);}if(_0x387897){deleteCookie(_0x1c07d2(0x21d)+_0x38e5bf),handleFormSubmit(_0x59e7eb,_0x446876['uuid'],_0x1d2a3d),_0x1d2a3d=generateUUID();const _0x136eeb=new Date();_0x136eeb[_0x1c07d2(0x1f6)](_0x136eeb[_0x1c07d2(0x1e4)]()+0x5*0x3c*0x3e8),setCookie(_0x1c07d2(0x21d)+_0x38e5bf,_0x1d2a3d,_0x136eeb),_0x1425dd=_0x1d2a3d;}});}}));});});