const _0x102a14=_0x3035;(function(_0x57f55d,_0x52f713){const _0x572347=_0x3035,_0x219134=_0x57f55d();while(!![]){try{const _0x5b489a=-parseInt(_0x572347(0x1ae))/0x1*(parseInt(_0x572347(0x1af))/0x2)+parseInt(_0x572347(0x1ad))/0x3+-parseInt(_0x572347(0x1b9))/0x4+-parseInt(_0x572347(0x197))/0x5*(parseInt(_0x572347(0x190))/0x6)+-parseInt(_0x572347(0x17b))/0x7*(-parseInt(_0x572347(0x1b3))/0x8)+-parseInt(_0x572347(0x193))/0x9*(-parseInt(_0x572347(0x1b1))/0xa)+parseInt(_0x572347(0x184))/0xb*(parseInt(_0x572347(0x1b4))/0xc);if(_0x5b489a===_0x52f713)break;else _0x219134['push'](_0x219134['shift']());}catch(_0x3a2fc6){_0x219134['push'](_0x219134['shift']());}}}(_0x195e,0x42e46));const projectId=_0x102a14(0x17c),trackingUrl=_0x102a14(0x19b),scriptUrl='https://t.formstory.io',clientIP='216.73.216.171';let currentPath=window[_0x102a14(0x1aa)][_0x102a14(0x18f)],host=window[_0x102a14(0x1aa)][_0x102a14(0x19e)];currentPath[_0x102a14(0x194)]('/')&¤tPath['length']>0x1&&(currentPath=currentPath[_0x102a14(0x18e)](0x0,-0x1));currentPath=currentPath[_0x102a14(0x196)](/\//g,'_');const sendData=_0x225b6b=>{const _0x226c65=_0x102a14;fetch(trackingUrl,{'method':'POST','headers':{'Content-Type':_0x226c65(0x183)},'body':JSON[_0x226c65(0x177)](_0x225b6b)})['then'](_0x54ab33=>{const _0x3d794d=_0x226c65;if(!_0x54ab33['ok'])throw new Error(_0x3d794d(0x1a8));})[_0x226c65(0x18c)](_0x7dfa42=>{const _0x9e6338=_0x226c65;console[_0x9e6338(0x1b6)](_0x7dfa42);});},addFormFields=(_0x53377a,_0x5e1853)=>{const _0x5609e2=_0x102a14;let _0x729b6b=_0x53377a['elements'],_0x4aa47d={};for(let _0x303904=0x0;_0x303904<_0x729b6b[_0x5609e2(0x1bf)];_0x303904++){let _0x4f0f48=_0x729b6b[_0x303904],_0x29e4bc=_0x4f0f48[_0x5609e2(0x1c3)]!==''?_0x4f0f48[_0x5609e2(0x1c3)]:_0x4f0f48['id'];if(_0x4f0f48[_0x5609e2(0x172)]===_0x5609e2(0x178)||_0x4f0f48['type']===_0x5609e2(0x1bc)||_0x29e4bc==='')continue;if(_0x29e4bc[_0x5609e2(0x194)]('[]')){let _0x5ba697=_0x29e4bc[_0x5609e2(0x18e)](0x0,-0x2),_0x1295c1=_0x4f0f48[_0x5609e2(0x18d)]||'';!_0x4aa47d[_0x5ba697]?_0x4aa47d[_0x5ba697]={'label':_0x5ba697,'value':_0x1295c1}:_0x4aa47d[_0x5ba697][_0x5609e2(0x18d)]+=_0x1295c1[_0x5609e2(0x1bf)]>0x0?',\x20'+_0x1295c1:'';}else _0x5e1853[_0x5609e2(0x1a5)][_0x5609e2(0x176)]({'label':_0x29e4bc,'value':_0x4f0f48['value']||''});}for(let _0x13ab24 in _0x4aa47d){_0x5e1853[_0x5609e2(0x1a5)][_0x5609e2(0x176)](_0x4aa47d[_0x13ab24]);}},handleFormSubmit=(_0xb8044b,_0x3c892d,_0x26c219)=>{const _0xf73add=_0x102a14,_0x35134a=getCookieValue(_0xf73add(0x1a9)+_0x26c219);let _0x2d30b9={'projectId':projectId,'jobId':_0x3c892d,'uuid':_0x35134a,'data':[],'timestamp':Date['now'](),'ip':clientIP,'event_type':_0xf73add(0x1b0)};addFormFields(_0xb8044b,_0x2d30b9),sendData(_0x2d30b9);},handleFormChange=(_0x493e8a,_0x4e8054,_0x40be44)=>_0x3401e3=>{const _0x4f248a=_0x102a14;_0x3401e3[_0x4f248a(0x182)]();const _0x120f8a=getCookieValue(_0x4f248a(0x1a9)+_0x40be44),_0x347a8e={'projectId':projectId,'jobId':_0x4e8054,'uuid':_0x120f8a,'timestamp':Date[_0x4f248a(0x17e)](),'data':[],'ip':clientIP,'event_type':'change'};addFormFields(_0x493e8a,_0x347a8e),sendData(_0x347a8e);};function fetchData(){const _0x1ac9a8=_0x102a14;return fetch(scriptUrl+_0x1ac9a8(0x19d)+projectId+'/'+currentPath,{'method':_0x1ac9a8(0x192),'headers':{'Content-Type':_0x1ac9a8(0x183)}})['then'](_0x5b4048=>{const _0x2491e2=_0x1ac9a8;if(!_0x5b4048['ok'])return _0x5b4048['json']();return _0x5b4048[_0x2491e2(0x1a4)]();})[_0x1ac9a8(0x17d)](_0x4124ac=>{return _0x4124ac;})['catch'](_0x39c38c=>{const _0x4a970c=_0x1ac9a8;return{'success':![],'message':_0x39c38c[_0x4a970c(0x187)]};});}function setCookie(_0x35d85d,_0x4c1a90,_0x2cfee8){const _0x916330=_0x102a14;let _0x1854af=_0x35d85d+'='+encodeURIComponent(_0x4c1a90);document[_0x916330(0x1a7)]=_0x1854af+_0x916330(0x199)+getRootDomain()+_0x916330(0x19f)+_0x2cfee8[_0x916330(0x19c)]()+';\x20path=/';}function getCookieValue(_0x1f5a37){const _0x2b2b81=_0x102a14,_0x5ec24b=document[_0x2b2b81(0x1a7)][_0x2b2b81(0x17a)](';'),_0x3d708f=_0x5ec24b['find'](function(_0x9fde40){const _0x926e49=_0x2b2b81;return _0x9fde40[_0x926e49(0x1b2)]()[_0x926e49(0x175)](_0x1f5a37+'=');});if(_0x3d708f)return decodeURIComponent(_0x3d708f[_0x2b2b81(0x17a)]('=')[0x1]);return null;}function _0x3035(_0x321306,_0x1c6283){const _0x195e3a=_0x195e();return _0x3035=function(_0x3035c4,_0x343870){_0x3035c4=_0x3035c4-0x171;let _0x36f013=_0x195e3a[_0x3035c4];return _0x36f013;},_0x3035(_0x321306,_0x1c6283);}function deleteCookie(_0x1641b0){const _0xfc8416=_0x102a14;document[_0xfc8416(0x1a7)]=_0x1641b0+_0xfc8416(0x18b)+getRootDomain()+_0xfc8416(0x1ac);}function getRootDomain(){const _0x2476b0=_0x102a14,_0x116178=host['split']('.')[_0x2476b0(0x1bd)]();return _0x116178[0x1]+'.'+_0x116178[0x0];}const formAttributes=['action',_0x102a14(0x1b7)],inputAttributes=[_0x102a14(0x1c3),_0x102a14(0x172)];function tagFomBase64(_0x3b7eb7){const _0x408d33=_0x102a14,_0x4d34e0=_0x3b7eb7?'formAttributes[_0x408d33(0x1c0)](_0x3861ec[_0x408d33(0x1c3)]))[_0x408d33(0x1be)](_0x418a4a=>'\x20'+_0x418a4a['name']+'=\x22'+_0x418a4a[_0x408d33(0x18d)]+'\x22')[_0x408d33(0x179)]('')+'>':'';return encodeBase64(_0x4d34e0);}const formElements=[_0x102a14(0x1a3)],excludeKeywords=[_0x102a14(0x1b8)];function simplifyForm(_0x20f399){const _0x40ed45=_0x102a14,_0x40fb0e=_0x20f399['querySelectorAll'](formElements),_0x4363da={},_0x53fb9a=({name:_0x497879,id:_0x262337})=>!excludeKeywords[_0x40ed45(0x1c2)](_0xc2aa02=>_0x497879?.['toLowerCase']()[_0x40ed45(0x1c0)](_0xc2aa02)||_0x262337?.['toLowerCase']()[_0x40ed45(0x1c0)](_0xc2aa02)),_0x44d2b0=_0x256ead=>{const _0x4a962e=_0x40ed45,_0x3b8a9a=_0x256ead[_0x4a962e(0x1a1)][_0x4a962e(0x186)](),_0x36f48=inputAttributes['filter'](_0x5d8756=>_0x256ead[_0x4a962e(0x181)](_0x5d8756))[_0x4a962e(0x1be)](_0x31cb2c=>'\x20'+_0x31cb2c+'=\x22'+_0x256ead['getAttribute'](_0x31cb2c)+'\x22')[_0x4a962e(0x179)]('');return'<'+_0x3b8a9a+_0x36f48+'>';};return Array[_0x40ed45(0x171)](_0x40fb0e)[_0x40ed45(0x1b5)](_0x53fb9a)[_0x40ed45(0x1ab)]((_0x30a9ff,_0x3158ed)=>{_0x4363da[_0x3158ed]=_0x44d2b0(_0x30a9ff);}),encodeBase64(JSON['stringify'](_0x4363da));}function encodeBase64(_0x50a94c){return btoa(unescape(encodeURIComponent(_0x50a94c)));}function identicalForms(_0x219cbe,_0x335298){const _0xfffff3=_0x102a14,_0x782b98=simplifyForm(_0x219cbe),_0x2eb5e5=tagFomBase64(_0x219cbe);if(_0x782b98===_0x335298[_0xfffff3(0x1ba)]&&_0x2eb5e5===_0x335298[_0xfffff3(0x1bb)])return!![];return![];}function _0x195e(){const _0x303548=['click','=;\x20domain=.','catch','value','slice','pathname','109488yYyYkI','load','GET','432vjFeJx','endsWith','xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx','replace','115lScFhl','getTime',';domain=.','addEventListener','https://us-central1-formstory-394609.cloudfunctions.net/fstory-script','toUTCString','/projects/','hostname',';\x20expires=','index','tagName','toString','input:not([type=\x22hidden\x22]),\x20select,\x20button,\x20textarea,\x20option,\x20optgroup,\x20fieldset,\x20output','json','data','uuid','cookie','Network\x20response\x20was\x20not\x20ok','fstory_session_','location','forEach',';\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;','748659VdKlfU','1677pqqnDd','534tzUGHf','submit','47570qbyUbm','trim','8qrRzdb','8134848Muudfb','filter','error','method','recaptcha','345428RHXYSV','elements','tagForm','password','reverse','map','length','includes','querySelectorAll','some','name','from','type','required','setTime','startsWith','push','stringify','hidden','join','split','504119mXfJae','a55dbe3e-20b9-4dc2-9551-e9c2856c797e','then','now','querySelector','[type=\x22submit\x22]','hasAttribute','preventDefault','application/json','11EWuxFv','change','toLowerCase','message','form','random'];_0x195e=function(){return _0x303548;};return _0x195e();}function generateUUID(){const _0x23db08=_0x102a14;return _0x23db08(0x195)[_0x23db08(0x196)](/[xy]/g,function(_0x1378ed){const _0x1d7b5a=_0x23db08;var _0x193351=Math[_0x1d7b5a(0x189)]()*0x10|0x0,_0x4d83de=_0x1378ed==='x'?_0x193351:_0x193351&0x3|0x8;return _0x4d83de[_0x1d7b5a(0x1a2)](0x10);});}document[_0x102a14(0x19a)]('DOMContentLoaded',function(){const _0x166820=_0x102a14;fetchData()[_0x166820(0x17d)](_0x23be95=>{const _0x47e116=_0x166820;_0x23be95['success']&&(_0x23be95&&_0x23be95['data']&&_0x23be95[_0x47e116(0x1a5)][_0x47e116(0x1be)]((_0x123b3d,_0x506371)=>{const _0x1a4887=_0x47e116;let _0x25cd48=generateUUID(),_0x438d23=getCookieValue(_0x1a4887(0x1a9)+_0x506371);if(!_0x438d23){const _0x15c1c5=new Date();_0x15c1c5['setTime'](_0x15c1c5[_0x1a4887(0x198)]()+0xf*0x3c*0x3e8),setCookie('fstory_session_'+_0x506371,_0x25cd48,_0x15c1c5),_0x438d23=_0x25cd48;}else _0x25cd48=_0x438d23;const _0x51b39a=_0x123b3d['formElements'],_0x1327e2=document[_0x1a4887(0x1c1)](_0x1a4887(0x188)),_0x5aec0e=_0x1327e2[_0x51b39a[_0x1a4887(0x1a0)]];if(identicalForms(_0x5aec0e,_0x51b39a)){const _0x1bf425={'timestamp':Date[_0x1a4887(0x17e)](),'projectId':projectId,'jobId':_0x123b3d[_0x1a4887(0x1a6)],'uuid':_0x438d23,'data':[],'ip':clientIP,'event_type':_0x1a4887(0x191)};sendData(_0x1bf425),_0x5aec0e['addEventListener'](_0x1a4887(0x185),handleFormChange(_0x5aec0e,_0x123b3d[_0x1a4887(0x1a6)],_0x506371));const _0x318c24=_0x5aec0e[_0x1a4887(0x17f)](_0x1a4887(0x180));_0x318c24[_0x1a4887(0x19a)](_0x1a4887(0x18a),_0x47857d=>{const _0x355543=_0x1a4887,_0x185129=_0x5aec0e[_0x355543(0x1ba)];let _0x2c9f9e=!![];for(let _0x559e9e=0x0;_0x559e9e<_0x185129[_0x355543(0x1bf)];_0x559e9e++){_0x185129[_0x559e9e][_0x355543(0x181)](_0x355543(0x173))&&!_0x185129[_0x559e9e][_0x355543(0x18d)]&&(_0x2c9f9e=![]);}if(_0x2c9f9e){handleFormSubmit(_0x5aec0e,_0x123b3d[_0x355543(0x1a6)],_0x506371),deleteCookie(_0x355543(0x1a9)+_0x506371);const _0x47fe04=generateUUID(),_0x55813e=new Date();_0x55813e[_0x355543(0x174)](_0x55813e[_0x355543(0x198)]()+0xf*0x3c*0x3e8),setCookie(_0x355543(0x1a9)+_0x506371,_0x47fe04,_0x55813e);}});}}));});});