import{bM as S}from"./vendor-bSWkQivH.js";function M(n,i){for(var a=0;a<i.length;a++){const l=i[a];if(typeof l!="string"&&!Array.isArray(l)){for(const f in l)if(f!=="default"&&!(f in n)){const j=Object.getOwnPropertyDescriptor(l,f);j&&Object.defineProperty(n,f,j.get?j:{enumerable:!0,get:()=>l[f]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var g={};const _=()=>typeof window<"u",E=()=>!(!_()||!window.hj),w=(n,...i)=>{if(_()&&window.hj)return window.hj(n,...i);throw Error("Hotjar is not available, make sure init has been called.")},O=(n,i,a)=>{if(!((l,f,j)=>{try{const d=document.getElementById(f)||document.createElement("script");return d.id=f,d.nonce=j,d.innerText=l,d.crossOrigin="anonymous",document.head.appendChild(d),!0}catch{return!1}})(`(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:${n},hjsv:${i},hjdebug:${(a==null?void 0:a.debug)||!1}};a=o.getElementsByTagName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,"hotjar-init-script",a==null?void 0:a.nonce)||!E())throw Error("Failed to initialize Hotjar tracking script.")},x={init:(n,i,a)=>{try{return O(n,i,a),!0}catch(l){return console.error("Error:",l),!1}},event:n=>{try{return w("event",n),!0}catch(i){return console.error("Error:",i),!1}},identify:(n,i)=>{try{return w("identify",n,i),!0}catch(a){return console.error("Error:",a),!1}},stateChange:n=>{try{return w("stateChange",n),!0}catch(i){return console.error("Error:",i),!1}},isReady:E},H=Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"})),T=S(H);var p;function k(){if(p)return g;p=1;var n=g&&g.__awaiter||function(d,y,r,c){function o(e){return e instanceof r?e:new r(function(u){u(e)})}return new(r||(r=Promise))(function(e,u){function h(s){try{t(c.next(s))}catch(b){u(b)}}function v(s){try{t(c.throw(s))}catch(b){u(b)}}function t(s){s.done?e(s.value):o(s.value).then(h,v)}t((c=c.apply(d,y||[])).next())})},i=g&&g.__generator||function(d,y){var r={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},c,o,e,u;return u={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function h(t){return function(s){return v([t,s])}}function v(t){if(c)throw new TypeError("Generator is already executing.");for(;u&&(u=0,t[0]&&(r=0)),r;)try{if(c=1,o&&(e=t[0]&2?o.return:t[0]?o.throw||((e=o.return)&&e.call(o),0):o.next)&&!(e=e.call(o,t[1])).done)return e;switch(o=0,e&&(t=[t[0]&2,e.value]),t[0]){case 0:case 1:e=t;break;case 4:return r.label++,{value:t[1],done:!1};case 5:r.label++,o=t[1],t=[0];continue;case 7:t=r.ops.pop(),r.trys.pop();continue;default:if(e=r.trys,!(e=e.length>0&&e[e.length-1])&&(t[0]===6||t[0]===2)){r=0;continue}if(t[0]===3&&(!e||t[1]>e[0]&&t[1]<e[3])){r.label=t[1];break}if(t[0]===6&&r.label<e[1]){r.label=e[1],e=t;break}if(e&&r.label<e[2]){r.label=e[2],r.ops.push(t);break}e[2]&&r.ops.pop(),r.trys.pop();continue}t=y.call(d,r)}catch(s){t=[6,s],o=0}finally{c=e=0}if(t[0]&5)throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}};Object.defineProperty(g,"__esModule",{value:!0}),g.useHotjarModule=j;var a="[Hotjar]",l={"Hotjar.SiteId":"id","Hotjar.SnippetVersion":"version"};function f(d){return n(this,arguments,void 0,function(y){var r,c,o,e,u,h,v=y.getModuleSettings,t=y.isDevelopment,s=y.userId,b=y.logger;return i(this,function(m){switch(m.label){case 0:return r=v(l),c=r.id,o=r.version,e=!!(typeof window<"u"&&(!((h=window.document)===null||h===void 0)&&h.createElement)),!e||!(c&&o)?[2]:t?[3,2]:[4,Promise.resolve().then(function(){return T})];case 1:return u=m.sent().default,u.init(Number(c),Number(o)),u.identify(s,{}),[3,3];case 2:b.debug(a,"Hotjar enabled but not initialized"),m.label=3;case 3:return[2]}})})}function j(){return{initModule:f}}return g}var D=k();const N=M({__proto__:null},[D]);export{N as i};
//# sourceMappingURL=index-DLfm-nkO.js.map
