@seekora-ai/search-sdk 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,19 @@
1
1
  /* Seekora Search SDK - CDN Bundle */
2
- var SeekoraSDK=(()=>{var kt=Object.defineProperty;var es=Object.getOwnPropertyDescriptor;var ts=Object.getOwnPropertyNames;var rs=Object.prototype.hasOwnProperty;var Xe=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var ns=(r,e)=>()=>(r&&(e=r(r=0)),e);var qt=(r,e)=>{for(var t in e)kt(r,t,{get:e[t],enumerable:!0})},ss=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ts(e))!rs.call(r,s)&&s!==t&&kt(r,s,{get:()=>e[s],enumerable:!(n=es(e,s))||n.enumerable});return r};var as=r=>ss(kt({},"__esModule",{value:!0}),r);var Zn={};qt(Zn,{componentsToDebugString:()=>Dr,default:()=>Eo,getFullscreenElement:()=>Fn,getUnstableAudioFingerprint:()=>Bn,getUnstableCanvasFingerprint:()=>Gn,getUnstableScreenFrame:()=>Nn,getUnstableScreenResolution:()=>Qn,getWebGLContext:()=>vr,hashComponents:()=>Ar,isAndroid:()=>wt,isChromium:()=>De,isDesktopWebKit:()=>Tt,isEdgeHTML:()=>On,isGecko:()=>Sr,isSamsungInternet:()=>Mn,isTrident:()=>_r,isWebKit:()=>H,load:()=>Kn,loadSources:()=>Ln,murmurX64Hash128:()=>ko,prepareForSources:()=>Jn,sources:()=>Hn,transformSource:()=>ja,withIframe:()=>xr});function At(r,e){return new Promise(t=>setTimeout(t,r,e))}function ka(){return new Promise(r=>{let e=new MessageChannel;e.port1.onmessage=()=>r(),e.port2.postMessage(null)})}function qa(r,e=1/0){let{requestIdleCallback:t}=window;return t?new Promise(n=>t.call(window,()=>n(),{timeout:e})):At(Math.min(r,e))}function Rt(r){return!!r&&typeof r.then=="function"}function hn(r,e){try{let t=r();Rt(t)?t.then(n=>e(!0,n),n=>e(!1,n)):e(!0,t)}catch(t){e(!1,t)}}async function _n(r,e,t=16){let n=Array(r.length),s=Date.now();for(let a=0;a<r.length;++a){n[a]=e(r[a],a);let i=Date.now();i>=s+t&&(s=i,await ka())}return n}function Qe(r){return r.then(void 0,()=>{}),r}function Va(r,e){for(let t=0,n=r.length;t<n;++t)if(r[t]===e)return!0;return!1}function La(r,e){return!Va(r,e)}function hr(r){return parseInt(r)}function $(r){return parseFloat(r)}function se(r,e){return typeof r=="number"&&isNaN(r)?e:r}function U(r){return r.reduce((e,t)=>e+(t?1:0),0)}function kn(r,e=1){if(Math.abs(e)>=1)return Math.round(r/e)*e;{let t=1/e;return Math.round(r*t)/t}}function Oa(r){var e,t;let n=`Unexpected syntax '${r}'`,s=/^\s*([a-z-]*)(.*)$/i.exec(r),a=s[1]||void 0,i={},o=/([.:#][\w-]+|\[.+?\])/gi,l=(c,u)=>{i[c]=i[c]||[],i[c].push(u)};for(;;){let c=o.exec(s[2]);if(!c)break;let u=c[0];switch(u[0]){case".":l("class",u.slice(1));break;case"#":l("id",u.slice(1));break;case"[":{let g=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(g)l(g[1],(t=(e=g[4])!==null&&e!==void 0?e:g[5])!==null&&t!==void 0?t:"");else throw new Error(n);break}default:throw new Error(n)}}return[a,i]}function Fa(r){let e=new Uint8Array(r.length);for(let t=0;t<r.length;t++){let n=r.charCodeAt(t);if(n>127)return new TextEncoder().encode(r);e[t]=n}return e}function ce(r,e){let t=r[0]>>>16,n=r[0]&65535,s=r[1]>>>16,a=r[1]&65535,i=e[0]>>>16,o=e[0]&65535,l=e[1]>>>16,c=e[1]&65535,u=0,g=0,m=0,y=0;y+=a+c,m+=y>>>16,y&=65535,m+=s+l,g+=m>>>16,m&=65535,g+=n+o,u+=g>>>16,g&=65535,u+=t+i,u&=65535,r[0]=u<<16|g,r[1]=m<<16|y}function z(r,e){let t=r[0]>>>16,n=r[0]&65535,s=r[1]>>>16,a=r[1]&65535,i=e[0]>>>16,o=e[0]&65535,l=e[1]>>>16,c=e[1]&65535,u=0,g=0,m=0,y=0;y+=a*c,m+=y>>>16,y&=65535,m+=s*c,g+=m>>>16,m&=65535,m+=a*l,g+=m>>>16,m&=65535,g+=n*c,u+=g>>>16,g&=65535,g+=s*l,u+=g>>>16,g&=65535,g+=a*o,u+=g>>>16,g&=65535,u+=t*c+n*l+s*o+a*i,u&=65535,r[0]=u<<16|g,r[1]=m<<16|y}function Se(r,e){let t=r[0];e%=64,e===32?(r[0]=r[1],r[1]=t):e<32?(r[0]=t<<e|r[1]>>>32-e,r[1]=r[1]<<e|t>>>32-e):(e-=32,r[0]=r[1]<<e|t>>>32-e,r[1]=t<<e|r[1]>>>32-e)}function X(r,e){e%=64,e!==0&&(e<32?(r[0]=r[1]>>>32-e,r[1]=r[1]<<e):(r[0]=r[1]<<e-32,r[1]=0))}function k(r,e){r[0]^=e[0],r[1]^=e[1]}function Sn(r){let e=[0,r[0]>>>1];k(r,e),z(r,Ma),e[1]=r[0]>>>1,k(r,e),z(r,Ba),e[1]=r[0]>>>1,k(r,e)}function qn(r,e){let t=Fa(r);e=e||0;let n=[0,t.length],s=n[1]%16,a=n[1]-s,i=[0,e],o=[0,e],l=[0,0],c=[0,0],u;for(u=0;u<a;u=u+16)l[0]=t[u+4]|t[u+5]<<8|t[u+6]<<16|t[u+7]<<24,l[1]=t[u]|t[u+1]<<8|t[u+2]<<16|t[u+3]<<24,c[0]=t[u+12]|t[u+13]<<8|t[u+14]<<16|t[u+15]<<24,c[1]=t[u+8]|t[u+9]<<8|t[u+10]<<16|t[u+11]<<24,z(l,xt),Se(l,31),z(l,vt),k(i,l),Se(i,27),ce(i,o),z(i,xn),ce(i,Ga),z(c,vt),Se(c,33),z(c,xt),k(o,c),Se(o,31),ce(o,i),z(o,xn),ce(o,Qa);l[0]=0,l[1]=0,c[0]=0,c[1]=0;let g=[0,0];switch(s){case 15:g[1]=t[u+14],X(g,48),k(c,g);case 14:g[1]=t[u+13],X(g,40),k(c,g);case 13:g[1]=t[u+12],X(g,32),k(c,g);case 12:g[1]=t[u+11],X(g,24),k(c,g);case 11:g[1]=t[u+10],X(g,16),k(c,g);case 10:g[1]=t[u+9],X(g,8),k(c,g);case 9:g[1]=t[u+8],k(c,g),z(c,vt),Se(c,33),z(c,xt),k(o,c);case 8:g[1]=t[u+7],X(g,56),k(l,g);case 7:g[1]=t[u+6],X(g,48),k(l,g);case 6:g[1]=t[u+5],X(g,40),k(l,g);case 5:g[1]=t[u+4],X(g,32),k(l,g);case 4:g[1]=t[u+3],X(g,24),k(l,g);case 3:g[1]=t[u+2],X(g,16),k(l,g);case 2:g[1]=t[u+1],X(g,8),k(l,g);case 1:g[1]=t[u],k(l,g),z(l,xt),Se(l,31),z(l,vt),k(i,l)}return k(i,n),k(o,n),ce(i,o),ce(o,i),Sn(i),Sn(o),ce(i,o),ce(o,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function Na(r){var e;return{name:r.name,message:r.message,stack:(e=r.stack)===null||e===void 0?void 0:e.split(`
3
- `),...r}}function Ua(r){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(r))}function Vn(r){return typeof r!="function"}function Wa(r,e){let t=Qe(new Promise(n=>{let s=Date.now();hn(r.bind(null,e),(...a)=>{let i=Date.now()-s;if(!a[0])return n(()=>({error:a[1],duration:i}));let o=a[1];if(Vn(o))return n(()=>({value:o,duration:i}));n(()=>new Promise(l=>{let c=Date.now();hn(o,(...u)=>{let g=i+Date.now()-c;if(!u[0])return l({error:u[1],duration:g});l({value:u[1],duration:g})})}))})}));return function(){return t.then(s=>s())}}function Ln(r,e,t,n){let s=Object.keys(r).filter(i=>La(t,i)),a=Qe(_n(s,i=>Wa(r[i],e),n));return async function(){let o=await a,l=await _n(o,g=>Qe(g()),n),c=await Promise.all(l),u={};for(let g=0;g<s.length;++g)u[s[g]]=c[g];return u}}function ja(r,e){let t=n=>Vn(n)?e(n):()=>{let s=n();return Rt(s)?s.then(e):e(s)};return n=>{let s=r(n);return Rt(s)?s.then(t):t(s)}}function _r(){let r=window,e=navigator;return U(["MSCSSMatrix"in r,"msSetImmediate"in r,"msIndexedDB"in r,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function On(){let r=window,e=navigator;return U(["msWriteProfilerMark"in r,"MSStream"in r,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!_r()}function De(){let r=window,e=navigator;return U(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,(e.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in r,"BatteryManager"in r,"webkitMediaStream"in r,"webkitSpeechGrammar"in r])>=5}function H(){let r=window,e=navigator;return U(["ApplePayError"in r,"CSSPrimitiveValue"in r,"Counter"in r,e.vendor.indexOf("Apple")===0,"RGBColor"in r,"WebKitMediaKeys"in r])>=4}function Tt(){let r=window,{HTMLElement:e,Document:t}=r;return U(["safari"in r,!("ongestureend"in r),!("TouchEvent"in r),!("orientation"in r),e&&!("autocapitalize"in e.prototype),t&&"pointerLockElement"in t.prototype])>=4}function Ne(){let r=window;return Ua(r.print)&&String(r.browser)==="[object WebPageNamespace]"}function Sr(){var r,e;let t=window;return U(["buildID"in navigator,"MozAppearance"in((e=(r=document.documentElement)===null||r===void 0?void 0:r.style)!==null&&e!==void 0?e:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function Xa(){let r=window;return U([!("MediaSettingsRange"in r),"RTCEncodedAudioFrame"in r,""+r.Intl=="[object Intl]",""+r.Reflect=="[object Reflect]"])>=3}function za(){let r=window,{URLPattern:e}=r;return U(["union"in Set.prototype,"Iterator"in r,e&&"hasRegExpGroups"in e.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Ha(){let r=window;return U(["DOMRectList"in r,"RTCPeerConnectionIceEvent"in r,"SVGGeometryElement"in r,"ontransitioncancel"in r])>=3}function Ue(){let r=window,e=navigator,{CSS:t,HTMLButtonElement:n}=r;return U([!("getStorageUpdates"in e),n&&"popover"in n.prototype,"CSSCounterStyleRule"in r,t.supports("font-size-adjust: ex-height 0.5"),t.supports("text-transform: full-width")])>=4}function Ja(){if(navigator.platform==="iPad")return!0;let r=screen,e=r.width/r.height;return U(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}function Fn(){let r=document;return r.fullscreenElement||r.msFullscreenElement||r.mozFullScreenElement||r.webkitFullscreenElement||null}function Ka(){let r=document;return(r.exitFullscreen||r.msExitFullscreen||r.mozCancelFullScreen||r.webkitExitFullscreen).call(r)}function wt(){let r=De(),e=Sr(),t=window,n=navigator,s="connection";return r?U([!("SharedWorker"in t),n[s]&&"ontypechange"in n[s],!("sinkId"in new Audio)])>=2:e?U(["onorientationchange"in t,"orientation"in t,/android/i.test(n.appVersion)])>=2:!1}function Mn(){let r=navigator,e=window,t=Audio.prototype,{visualViewport:n}=e;return U(["srLatency"in t,"srChannelCount"in t,"devicePosture"in r,n&&"segments"in n,"getTextInformation"in Image.prototype])>=3}function Za(){return Ya()?-4:Bn()}function Bn(){let r=window,e=r.OfflineAudioContext||r.webkitOfflineAudioContext;if(!e)return-2;if($a())return-1;let t=4500,n=5e3,s=new e(1,n,44100),a=s.createOscillator();a.type="triangle",a.frequency.value=1e4;let i=s.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,a.connect(i),i.connect(s.destination),a.start(0);let[o,l]=ei(s),c=Qe(o.then(u=>ti(u.getChannelData(0).subarray(t)),u=>{if(u.name==="timeout"||u.name==="suspended")return-3;throw u}));return()=>(l(),c)}function $a(){return H()&&!Tt()&&!Ha()}function Ya(){return H()&&Ue()&&Ne()||De()&&Mn()&&za()}function ei(r){let a=()=>{};return[new Promise((o,l)=>{let c=!1,u=0,g=0;r.oncomplete=d=>o(d.renderedBuffer);let m=()=>{setTimeout(()=>l(vn("timeout")),Math.min(500,g+5e3-Date.now()))},y=()=>{try{let d=r.startRendering();switch(Rt(d)&&Qe(d),r.state){case"running":g=Date.now(),c&&m();break;case"suspended":document.hidden||u++,c&&u>=3?l(vn("suspended")):setTimeout(y,500);break}}catch(d){l(d)}};y(),a=()=>{c||(c=!0,g>0&&m())}}),a]}function ti(r){let e=0;for(let t=0;t<r.length;++t)e+=Math.abs(r[t]);return e}function vn(r){let e=new Error(r);return e.name=r,e}async function xr(r,e,t=50){var n,s,a;let i=document;for(;!i.body;)await At(t);let o=i.createElement("iframe");try{for(await new Promise((l,c)=>{let u=!1,g=()=>{u=!0,l()},m=f=>{u=!0,c(f)};o.onload=g,o.onerror=m;let{style:y}=o;y.setProperty("display","block","important"),y.position="absolute",y.top="0",y.left="0",y.visibility="hidden",e&&"srcdoc"in o?o.srcdoc=e:o.src="about:blank",i.body.appendChild(o);let d=()=>{var f,b;u||(((b=(f=o.contentWindow)===null||f===void 0?void 0:f.document)===null||b===void 0?void 0:b.readyState)==="complete"?g():setTimeout(d,10))};d()});!(!((s=(n=o.contentWindow)===null||n===void 0?void 0:n.document)===null||s===void 0)&&s.body);)await At(t);return await r(o,o.contentWindow)}finally{(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}function ri(r){let[e,t]=Oa(r),n=document.createElement(e??"div");for(let s of Object.keys(t)){let a=t[s].join(" ");s==="style"?ni(n.style,a):n.setAttribute(s,a)}return n}function ni(r,e){for(let t of e.split(";")){let n=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(t);if(n){let[,s,a,,i]=n;r.setProperty(s,a,i||"")}}}function si(){let r=window;for(;;){let e=r.parent;if(!e||e===r)return!1;try{if(e.location.origin!==r.location.origin)return!0}catch(t){if(t instanceof Error&&t.name==="SecurityError")return!0;throw t}r=e}}function oi(){return xr(async(r,{document:e})=>{let t=e.body;t.style.fontSize=ii;let n=e.createElement("div");n.style.setProperty("visibility","hidden","important");let s={},a={},i=y=>{let d=e.createElement("span"),{style:f}=d;return f.position="absolute",f.top="0",f.left="0",f.fontFamily=y,d.textContent=ai,n.appendChild(d),d},o=(y,d)=>i(`'${y}',${d}`),l=()=>xe.map(i),c=()=>{let y={};for(let d of Dn)y[d]=xe.map(f=>o(d,f));return y},u=y=>xe.some((d,f)=>y[f].offsetWidth!==s[d]||y[f].offsetHeight!==a[d]),g=l(),m=c();t.appendChild(n);for(let y=0;y<xe.length;y++)s[xe[y]]=g[y].offsetWidth,a[xe[y]]=g[y].offsetHeight;return Dn.filter(y=>u(m[y]))})}function ui(){let r=navigator.plugins;if(!r)return;let e=[];for(let t=0;t<r.length;++t){let n=r[t];if(!n)continue;let s=[];for(let a=0;a<n.length;++a){let i=n[a];s.push({type:i.type,suffixes:i.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:s})}return e}function ci(){return Gn(fi())}function Gn(r){let e=!1,t,n,[s,a]=li();return gi(s,a)?(e=pi(a),r?t=n="skipped":[t,n]=mi(s,a)):t=n="unsupported",{winding:e,geometry:t,text:n}}function li(){let r=document.createElement("canvas");return r.width=1,r.height=1,[r,r.getContext("2d")]}function gi(r,e){return!!(e&&r.toDataURL)}function pi(r){return r.rect(0,0,10,10),r.rect(2,2,6,6),!r.isPointInPath(5,5,"evenodd")}function mi(r,e){di(r,e);let t=mr(r),n=mr(r);return t!==n?["unstable","unstable"]:(yi(r,e),[mr(r),t])}function di(r,e){r.width=240,r.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';let t="Cwm fjordbank gly \u{1F603}";e.fillText(t,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(t,4,45)}function yi(r,e){r.width=122,r.height=110,e.globalCompositeOperation="multiply";for(let[t,n,s]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])e.fillStyle=t,e.beginPath(),e.arc(n,s,40,0,Math.PI*2,!0),e.closePath(),e.fill();e.fillStyle="#f9c",e.arc(60,60,60,0,Math.PI*2,!0),e.arc(60,60,20,0,Math.PI*2,!0),e.fill("evenodd")}function mr(r){return r.toDataURL()}function fi(){return H()&&Ue()&&Ne()}function bi(){let r=navigator,e=0,t;r.maxTouchPoints!==void 0?e=hr(r.maxTouchPoints):r.msMaxTouchPoints!==void 0&&(e=r.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch{t=!1}let n="ontouchstart"in window;return{maxTouchPoints:e,touchEvent:t,touchStart:n}}function hi(){return navigator.oscpu}function _i(){let r=navigator,e=[],t=r.language||r.userLanguage||r.browserLanguage||r.systemLanguage;if(t!==void 0&&e.push([t]),Array.isArray(r.languages))De()&&Xa()||e.push(r.languages);else if(typeof r.languages=="string"){let n=r.languages;n&&e.push(n.split(","))}return e}function Si(){return window.screen.colorDepth}function xi(){return se($(navigator.deviceMemory),void 0)}function vi(){if(!(H()&&Ue()&&Ne()))return Qn()}function Qn(){let r=screen,e=n=>se(hr(n),null),t=[e(r.width),e(r.height)];return t.sort().reverse(),t}function Ri(){if(dr!==void 0)return;let r=()=>{let e=fr();br(e)?dr=setTimeout(r,Di):(Dt=e,dr=void 0)};r()}function Nn(){return Ri(),async()=>{let r=fr();if(br(r)){if(Dt)return[...Dt];Fn()&&(await Ka(),r=fr())}return br(r)||(Dt=r),r}}function Ti(){if(H()&&Ue()&&Ne())return()=>Promise.resolve(void 0);let r=Nn();return async()=>{let e=await r(),t=n=>n===null?null:kn(n,Ai);return[t(e[0]),t(e[1]),t(e[2]),t(e[3])]}}function fr(){let r=screen;return[se($(r.availTop),null),se($(r.width)-$(r.availWidth)-se($(r.availLeft),0),null),se($(r.height)-$(r.availHeight)-se($(r.availTop),0),null),se($(r.availLeft),null)]}function br(r){for(let e=0;e<4;++e)if(r[e])return!1;return!0}function wi(){return se(hr(navigator.hardwareConcurrency),void 0)}function Ci(){var r;let e=(r=window.Intl)===null||r===void 0?void 0:r.DateTimeFormat;if(e){let n=new e().resolvedOptions().timeZone;if(n)return n}let t=-Pi();return`UTC${t>=0?"+":""}${t}`}function Pi(){let r=new Date().getFullYear();return Math.max($(new Date(r,0,1).getTimezoneOffset()),$(new Date(r,6,1).getTimezoneOffset()))}function Ii(){try{return!!window.sessionStorage}catch{return!0}}function Ei(){try{return!!window.localStorage}catch{return!0}}function ki(){if(!(_r()||On()))try{return!!window.indexedDB}catch{return!0}}function qi(){return!!window.openDatabase}function Vi(){return navigator.cpuClass}function Li(){let{platform:r}=navigator;return r==="MacIntel"&&H()&&!Tt()?Ja()?"iPad":"iPhone":r}function Oi(){return navigator.vendor||""}function Fi(){let r=[];for(let e of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let t=window[e];t&&typeof t=="object"&&r.push(e)}return r.sort()}function Mi(){let r=document;try{r.cookie="cookietest=1; SameSite=Strict;";let e=r.cookie.indexOf("cookietest=")!==-1;return r.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch{return!1}}function Bi(){let r=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',r("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",r("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",r("LnNwb25zb3JpdA=="),".ylamainos",r("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),r("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",r("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",r("LmhlYWRlci1ibG9ja2VkLWFk"),r("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",r("I2FkXzMwMFgyNTA="),r("I2Jhbm5lcmZsb2F0MjI="),r("I2NhbXBhaWduLWJhbm5lcg=="),r("I0FkLUNvbnRlbnQ=")],adGuardChinese:[r("LlppX2FkX2FfSA=="),r("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",r("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),r("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",r("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",r("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",r("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),r("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),r("LmFkZ29vZ2xl"),r("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[r("YW1wLWF1dG8tYWRz"),r("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",r("I2FkX2ludmlld19hcmVh")],adGuardRussian:[r("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),r("LnJlY2xhbWE="),'div[id^="smi2adblock"]',r("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[r("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),r("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",r("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),r("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),r("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",r("I3Jla2xhbWk="),r("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),r("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),r("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[r("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",r("LndpZGdldF9wb19hZHNfd2lkZ2V0"),r("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",r("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[r("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),r("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",r("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",r("I3Jla2xhbW5pLWJveA=="),r("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",r("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[r("I2FkdmVydGVudGll"),r("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",r("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",r("LnNwb25zb3JsaW5rZ3J1ZW4="),r("I3dlcmJ1bmdza3k="),r("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),r("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[r("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",r("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),r("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),r("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[r("LnJla2xhbW9zX3RhcnBhcw=="),r("LnJla2xhbW9zX251b3JvZG9z"),r("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),r("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),r("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[r("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[r("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),r("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",r("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[r("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),r("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),r("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",r("LmFkX19tYWlu"),r("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[r("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[r("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),r("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[r("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),r("I2xpdmVyZUFkV3JhcHBlcg=="),r("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),r("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[r("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",r("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),r("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),r("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[r("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),r("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),r("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",r("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),r("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),r("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),r("ZGl2I3NrYXBpZWNfYWQ=")],ro:[r("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),r("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),r("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),r("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[r("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),r("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),r("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",r("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),r("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",r("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}async function Gi({debug:r}={}){if(!Qi())return;let e=Bi(),t=Object.keys(e),n=[].concat(...t.map(i=>e[i])),s=await Ni(n);r&&Ui(e,s);let a=t.filter(i=>{let o=e[i];return U(o.map(c=>s[c]))>o.length*.6});return a.sort(),a}function Qi(){return H()||wt()}async function Ni(r){var e;let t=document,n=t.createElement("div"),s=new Array(r.length),a={};An(n);for(let i=0;i<r.length;++i){let o=ri(r[i]);o.tagName==="DIALOG"&&o.show();let l=t.createElement("div");An(l),l.appendChild(o),n.appendChild(l),s[i]=o}for(;!t.body;)await At(50);t.body.appendChild(n);try{for(let i=0;i<r.length;++i)s[i].offsetParent||(a[r[i]]=!0)}finally{(e=n.parentNode)===null||e===void 0||e.removeChild(n)}return a}function An(r){r.style.setProperty("visibility","hidden","important"),r.style.setProperty("display","block","important")}function Ui(r,e){let t="DOM blockers debug:\n```";for(let n of Object.keys(r)){t+=`
2
+ var SeekoraSDK=(()=>{var Et=Object.defineProperty;var es=Object.getOwnPropertyDescriptor;var ts=Object.getOwnPropertyNames;var rs=Object.prototype.hasOwnProperty;var Xe=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var ns=(r,e)=>()=>(r&&(e=r(r=0)),e);var qt=(r,e)=>{for(var t in e)Et(r,t,{get:e[t],enumerable:!0})},ss=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ts(e))!rs.call(r,s)&&s!==t&&Et(r,s,{get:()=>e[s],enumerable:!(n=es(e,s))||n.enumerable});return r};var is=r=>ss(Et({},"__esModule",{value:!0}),r);var Zn={};qt(Zn,{componentsToDebugString:()=>vr,default:()=>ko,getFullscreenElement:()=>On,getUnstableAudioFingerprint:()=>Bn,getUnstableCanvasFingerprint:()=>Gn,getUnstableScreenFrame:()=>Qn,getUnstableScreenResolution:()=>Un,getWebGLContext:()=>Ar,hashComponents:()=>Rr,isAndroid:()=>Ct,isChromium:()=>Re,isDesktopWebKit:()=>Tt,isEdgeHTML:()=>Fn,isGecko:()=>Sr,isSamsungInternet:()=>Mn,isTrident:()=>hr,isWebKit:()=>J,load:()=>Kn,loadSources:()=>Ln,murmurX64Hash128:()=>Eo,prepareForSources:()=>Jn,sources:()=>Hn,transformSource:()=>ji,withIframe:()=>xr});function Rt(r,e){return new Promise(t=>setTimeout(t,r,e))}function Ei(){return new Promise(r=>{let e=new MessageChannel;e.port1.onmessage=()=>r(),e.port2.postMessage(null)})}function qi(r,e=1/0){let{requestIdleCallback:t}=window;return t?new Promise(n=>t.call(window,()=>n(),{timeout:e})):Rt(Math.min(r,e))}function Dt(r){return!!r&&typeof r.then=="function"}function _n(r,e){try{let t=r();Dt(t)?t.then(n=>e(!0,n),n=>e(!1,n)):e(!0,t)}catch(t){e(!1,t)}}async function hn(r,e,t=16){let n=Array(r.length),s=Date.now();for(let i=0;i<r.length;++i){n[i]=e(r[i],i);let a=Date.now();a>=s+t&&(s=a,await Ei())}return n}function Ue(r){return r.then(void 0,()=>{}),r}function Vi(r,e){for(let t=0,n=r.length;t<n;++t)if(r[t]===e)return!0;return!1}function Li(r,e){return!Vi(r,e)}function _r(r){return parseInt(r)}function Y(r){return parseFloat(r)}function ae(r,e){return typeof r=="number"&&isNaN(r)?e:r}function W(r){return r.reduce((e,t)=>e+(t?1:0),0)}function En(r,e=1){if(Math.abs(e)>=1)return Math.round(r/e)*e;{let t=1/e;return Math.round(r*t)/t}}function Fi(r){var e,t;let n=`Unexpected syntax '${r}'`,s=/^\s*([a-z-]*)(.*)$/i.exec(r),i=s[1]||void 0,a={},o=/([.:#][\w-]+|\[.+?\])/gi,l=(c,u)=>{a[c]=a[c]||[],a[c].push(u)};for(;;){let c=o.exec(s[2]);if(!c)break;let u=c[0];switch(u[0]){case".":l("class",u.slice(1));break;case"#":l("id",u.slice(1));break;case"[":{let g=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(g)l(g[1],(t=(e=g[4])!==null&&e!==void 0?e:g[5])!==null&&t!==void 0?t:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,a]}function Oi(r){let e=new Uint8Array(r.length);for(let t=0;t<r.length;t++){let n=r.charCodeAt(t);if(n>127)return new TextEncoder().encode(r);e[t]=n}return e}function ge(r,e){let t=r[0]>>>16,n=r[0]&65535,s=r[1]>>>16,i=r[1]&65535,a=e[0]>>>16,o=e[0]&65535,l=e[1]>>>16,c=e[1]&65535,u=0,g=0,m=0,y=0;y+=i+c,m+=y>>>16,y&=65535,m+=s+l,g+=m>>>16,m&=65535,g+=n+o,u+=g>>>16,g&=65535,u+=t+a,u&=65535,r[0]=u<<16|g,r[1]=m<<16|y}function H(r,e){let t=r[0]>>>16,n=r[0]&65535,s=r[1]>>>16,i=r[1]&65535,a=e[0]>>>16,o=e[0]&65535,l=e[1]>>>16,c=e[1]&65535,u=0,g=0,m=0,y=0;y+=i*c,m+=y>>>16,y&=65535,m+=s*c,g+=m>>>16,m&=65535,m+=i*l,g+=m>>>16,m&=65535,g+=n*c,u+=g>>>16,g&=65535,g+=s*l,u+=g>>>16,g&=65535,g+=i*o,u+=g>>>16,g&=65535,u+=t*c+n*l+s*o+i*a,u&=65535,r[0]=u<<16|g,r[1]=m<<16|y}function xe(r,e){let t=r[0];e%=64,e===32?(r[0]=r[1],r[1]=t):e<32?(r[0]=t<<e|r[1]>>>32-e,r[1]=r[1]<<e|t>>>32-e):(e-=32,r[0]=r[1]<<e|t>>>32-e,r[1]=t<<e|r[1]>>>32-e)}function z(r,e){e%=64,e!==0&&(e<32?(r[0]=r[1]>>>32-e,r[1]=r[1]<<e):(r[0]=r[1]<<e-32,r[1]=0))}function k(r,e){r[0]^=e[0],r[1]^=e[1]}function Sn(r){let e=[0,r[0]>>>1];k(r,e),H(r,Mi),e[1]=r[0]>>>1,k(r,e),H(r,Bi),e[1]=r[0]>>>1,k(r,e)}function qn(r,e){let t=Oi(r);e=e||0;let n=[0,t.length],s=n[1]%16,i=n[1]-s,a=[0,e],o=[0,e],l=[0,0],c=[0,0],u;for(u=0;u<i;u=u+16)l[0]=t[u+4]|t[u+5]<<8|t[u+6]<<16|t[u+7]<<24,l[1]=t[u]|t[u+1]<<8|t[u+2]<<16|t[u+3]<<24,c[0]=t[u+12]|t[u+13]<<8|t[u+14]<<16|t[u+15]<<24,c[1]=t[u+8]|t[u+9]<<8|t[u+10]<<16|t[u+11]<<24,H(l,xt),xe(l,31),H(l,At),k(a,l),xe(a,27),ge(a,o),H(a,xn),ge(a,Gi),H(c,At),xe(c,33),H(c,xt),k(o,c),xe(o,31),ge(o,a),H(o,xn),ge(o,Ui);l[0]=0,l[1]=0,c[0]=0,c[1]=0;let g=[0,0];switch(s){case 15:g[1]=t[u+14],z(g,48),k(c,g);case 14:g[1]=t[u+13],z(g,40),k(c,g);case 13:g[1]=t[u+12],z(g,32),k(c,g);case 12:g[1]=t[u+11],z(g,24),k(c,g);case 11:g[1]=t[u+10],z(g,16),k(c,g);case 10:g[1]=t[u+9],z(g,8),k(c,g);case 9:g[1]=t[u+8],k(c,g),H(c,At),xe(c,33),H(c,xt),k(o,c);case 8:g[1]=t[u+7],z(g,56),k(l,g);case 7:g[1]=t[u+6],z(g,48),k(l,g);case 6:g[1]=t[u+5],z(g,40),k(l,g);case 5:g[1]=t[u+4],z(g,32),k(l,g);case 4:g[1]=t[u+3],z(g,24),k(l,g);case 3:g[1]=t[u+2],z(g,16),k(l,g);case 2:g[1]=t[u+1],z(g,8),k(l,g);case 1:g[1]=t[u],k(l,g),H(l,xt),xe(l,31),H(l,At),k(a,l)}return k(a,n),k(o,n),ge(a,o),ge(o,a),Sn(a),Sn(o),ge(a,o),ge(o,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function Qi(r){var e;return{name:r.name,message:r.message,stack:(e=r.stack)===null||e===void 0?void 0:e.split(`
3
+ `),...r}}function Ni(r){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(r))}function Vn(r){return typeof r!="function"}function Wi(r,e){let t=Ue(new Promise(n=>{let s=Date.now();_n(r.bind(null,e),(...i)=>{let a=Date.now()-s;if(!i[0])return n(()=>({error:i[1],duration:a}));let o=i[1];if(Vn(o))return n(()=>({value:o,duration:a}));n(()=>new Promise(l=>{let c=Date.now();_n(o,(...u)=>{let g=a+Date.now()-c;if(!u[0])return l({error:u[1],duration:g});l({value:u[1],duration:g})})}))})}));return function(){return t.then(s=>s())}}function Ln(r,e,t,n){let s=Object.keys(r).filter(a=>Li(t,a)),i=Ue(hn(s,a=>Wi(r[a],e),n));return async function(){let o=await i,l=await hn(o,g=>Ue(g()),n),c=await Promise.all(l),u={};for(let g=0;g<s.length;++g)u[s[g]]=c[g];return u}}function ji(r,e){let t=n=>Vn(n)?e(n):()=>{let s=n();return Dt(s)?s.then(e):e(s)};return n=>{let s=r(n);return Dt(s)?s.then(t):t(s)}}function hr(){let r=window,e=navigator;return W(["MSCSSMatrix"in r,"msSetImmediate"in r,"msIndexedDB"in r,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function Fn(){let r=window,e=navigator;return W(["msWriteProfilerMark"in r,"MSStream"in r,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!hr()}function Re(){let r=window,e=navigator;return W(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,(e.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in r,"BatteryManager"in r,"webkitMediaStream"in r,"webkitSpeechGrammar"in r])>=5}function J(){let r=window,e=navigator;return W(["ApplePayError"in r,"CSSPrimitiveValue"in r,"Counter"in r,e.vendor.indexOf("Apple")===0,"RGBColor"in r,"WebKitMediaKeys"in r])>=4}function Tt(){let r=window,{HTMLElement:e,Document:t}=r;return W(["safari"in r,!("ongestureend"in r),!("TouchEvent"in r),!("orientation"in r),e&&!("autocapitalize"in e.prototype),t&&"pointerLockElement"in t.prototype])>=4}function Qe(){let r=window;return Ni(r.print)&&String(r.browser)==="[object WebPageNamespace]"}function Sr(){var r,e;let t=window;return W(["buildID"in navigator,"MozAppearance"in((e=(r=document.documentElement)===null||r===void 0?void 0:r.style)!==null&&e!==void 0?e:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function Xi(){let r=window;return W([!("MediaSettingsRange"in r),"RTCEncodedAudioFrame"in r,""+r.Intl=="[object Intl]",""+r.Reflect=="[object Reflect]"])>=3}function zi(){let r=window,{URLPattern:e}=r;return W(["union"in Set.prototype,"Iterator"in r,e&&"hasRegExpGroups"in e.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Hi(){let r=window;return W(["DOMRectList"in r,"RTCPeerConnectionIceEvent"in r,"SVGGeometryElement"in r,"ontransitioncancel"in r])>=3}function Ne(){let r=window,e=navigator,{CSS:t,HTMLButtonElement:n}=r;return W([!("getStorageUpdates"in e),n&&"popover"in n.prototype,"CSSCounterStyleRule"in r,t.supports("font-size-adjust: ex-height 0.5"),t.supports("text-transform: full-width")])>=4}function Ji(){if(navigator.platform==="iPad")return!0;let r=screen,e=r.width/r.height;return W(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}function On(){let r=document;return r.fullscreenElement||r.msFullscreenElement||r.mozFullScreenElement||r.webkitFullscreenElement||null}function Ki(){let r=document;return(r.exitFullscreen||r.msExitFullscreen||r.mozCancelFullScreen||r.webkitExitFullscreen).call(r)}function Ct(){let r=Re(),e=Sr(),t=window,n=navigator,s="connection";return r?W([!("SharedWorker"in t),n[s]&&"ontypechange"in n[s],!("sinkId"in new Audio)])>=2:e?W(["onorientationchange"in t,"orientation"in t,/android/i.test(n.appVersion)])>=2:!1}function Mn(){let r=navigator,e=window,t=Audio.prototype,{visualViewport:n}=e;return W(["srLatency"in t,"srChannelCount"in t,"devicePosture"in r,n&&"segments"in n,"getTextInformation"in Image.prototype])>=3}function Zi(){return Yi()?-4:Bn()}function Bn(){let r=window,e=r.OfflineAudioContext||r.webkitOfflineAudioContext;if(!e)return-2;if($i())return-1;let t=4500,n=5e3,s=new e(1,n,44100),i=s.createOscillator();i.type="triangle",i.frequency.value=1e4;let a=s.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,i.connect(a),a.connect(s.destination),i.start(0);let[o,l]=ea(s),c=Ue(o.then(u=>ta(u.getChannelData(0).subarray(t)),u=>{if(u.name==="timeout"||u.name==="suspended")return-3;throw u}));return()=>(l(),c)}function $i(){return J()&&!Tt()&&!Hi()}function Yi(){return J()&&Ne()&&Qe()||Re()&&Mn()&&zi()}function ea(r){let i=()=>{};return[new Promise((o,l)=>{let c=!1,u=0,g=0;r.oncomplete=d=>o(d.renderedBuffer);let m=()=>{setTimeout(()=>l(An("timeout")),Math.min(500,g+5e3-Date.now()))},y=()=>{try{let d=r.startRendering();switch(Dt(d)&&Ue(d),r.state){case"running":g=Date.now(),c&&m();break;case"suspended":document.hidden||u++,c&&u>=3?l(An("suspended")):setTimeout(y,500);break}}catch(d){l(d)}};y(),i=()=>{c||(c=!0,g>0&&m())}}),i]}function ta(r){let e=0;for(let t=0;t<r.length;++t)e+=Math.abs(r[t]);return e}function An(r){let e=new Error(r);return e.name=r,e}async function xr(r,e,t=50){var n,s,i;let a=document;for(;!a.body;)await Rt(t);let o=a.createElement("iframe");try{for(await new Promise((l,c)=>{let u=!1,g=()=>{u=!0,l()},m=f=>{u=!0,c(f)};o.onload=g,o.onerror=m;let{style:y}=o;y.setProperty("display","block","important"),y.position="absolute",y.top="0",y.left="0",y.visibility="hidden",e&&"srcdoc"in o?o.srcdoc=e:o.src="about:blank",a.body.appendChild(o);let d=()=>{var f,b;u||(((b=(f=o.contentWindow)===null||f===void 0?void 0:f.document)===null||b===void 0?void 0:b.readyState)==="complete"?g():setTimeout(d,10))};d()});!(!((s=(n=o.contentWindow)===null||n===void 0?void 0:n.document)===null||s===void 0)&&s.body);)await Rt(t);return await r(o,o.contentWindow)}finally{(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}function ra(r){let[e,t]=Fi(r),n=document.createElement(e??"div");for(let s of Object.keys(t)){let i=t[s].join(" ");s==="style"?na(n.style,i):n.setAttribute(s,i)}return n}function na(r,e){for(let t of e.split(";")){let n=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(t);if(n){let[,s,i,,a]=n;r.setProperty(s,i,a||"")}}}function sa(){let r=window;for(;;){let e=r.parent;if(!e||e===r)return!1;try{if(e.location.origin!==r.location.origin)return!0}catch(t){if(t instanceof Error&&t.name==="SecurityError")return!0;throw t}r=e}}function oa(){return xr(async(r,{document:e})=>{let t=e.body;t.style.fontSize=aa;let n=e.createElement("div");n.style.setProperty("visibility","hidden","important");let s={},i={},a=y=>{let d=e.createElement("span"),{style:f}=d;return f.position="absolute",f.top="0",f.left="0",f.fontFamily=y,d.textContent=ia,n.appendChild(d),d},o=(y,d)=>a(`'${y}',${d}`),l=()=>Ae.map(a),c=()=>{let y={};for(let d of vn)y[d]=Ae.map(f=>o(d,f));return y},u=y=>Ae.some((d,f)=>y[f].offsetWidth!==s[d]||y[f].offsetHeight!==i[d]),g=l(),m=c();t.appendChild(n);for(let y=0;y<Ae.length;y++)s[Ae[y]]=g[y].offsetWidth,i[Ae[y]]=g[y].offsetHeight;return vn.filter(y=>u(m[y]))})}function ua(){let r=navigator.plugins;if(!r)return;let e=[];for(let t=0;t<r.length;++t){let n=r[t];if(!n)continue;let s=[];for(let i=0;i<n.length;++i){let a=n[i];s.push({type:a.type,suffixes:a.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:s})}return e}function ca(){return Gn(fa())}function Gn(r){let e=!1,t,n,[s,i]=la();return ga(s,i)?(e=pa(i),r?t=n="skipped":[t,n]=ma(s,i)):t=n="unsupported",{winding:e,geometry:t,text:n}}function la(){let r=document.createElement("canvas");return r.width=1,r.height=1,[r,r.getContext("2d")]}function ga(r,e){return!!(e&&r.toDataURL)}function pa(r){return r.rect(0,0,10,10),r.rect(2,2,6,6),!r.isPointInPath(5,5,"evenodd")}function ma(r,e){da(r,e);let t=mr(r),n=mr(r);return t!==n?["unstable","unstable"]:(ya(r,e),[mr(r),t])}function da(r,e){r.width=240,r.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';let t="Cwm fjordbank gly \u{1F603}";e.fillText(t,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(t,4,45)}function ya(r,e){r.width=122,r.height=110,e.globalCompositeOperation="multiply";for(let[t,n,s]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])e.fillStyle=t,e.beginPath(),e.arc(n,s,40,0,Math.PI*2,!0),e.closePath(),e.fill();e.fillStyle="#f9c",e.arc(60,60,60,0,Math.PI*2,!0),e.arc(60,60,20,0,Math.PI*2,!0),e.fill("evenodd")}function mr(r){return r.toDataURL()}function fa(){return J()&&Ne()&&Qe()}function ba(){let r=navigator,e=0,t;r.maxTouchPoints!==void 0?e=_r(r.maxTouchPoints):r.msMaxTouchPoints!==void 0&&(e=r.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch{t=!1}let n="ontouchstart"in window;return{maxTouchPoints:e,touchEvent:t,touchStart:n}}function _a(){return navigator.oscpu}function ha(){let r=navigator,e=[],t=r.language||r.userLanguage||r.browserLanguage||r.systemLanguage;if(t!==void 0&&e.push([t]),Array.isArray(r.languages))Re()&&Xi()||e.push(r.languages);else if(typeof r.languages=="string"){let n=r.languages;n&&e.push(n.split(","))}return e}function Sa(){return window.screen.colorDepth}function xa(){return ae(Y(navigator.deviceMemory),void 0)}function Aa(){if(!(J()&&Ne()&&Qe()))return Un()}function Un(){let r=screen,e=n=>ae(_r(n),null),t=[e(r.width),e(r.height)];return t.sort().reverse(),t}function Da(){if(dr!==void 0)return;let r=()=>{let e=fr();br(e)?dr=setTimeout(r,va):(vt=e,dr=void 0)};r()}function Qn(){return Da(),async()=>{let r=fr();if(br(r)){if(vt)return[...vt];On()&&(await Ki(),r=fr())}return br(r)||(vt=r),r}}function Ta(){if(J()&&Ne()&&Qe())return()=>Promise.resolve(void 0);let r=Qn();return async()=>{let e=await r(),t=n=>n===null?null:En(n,Ra);return[t(e[0]),t(e[1]),t(e[2]),t(e[3])]}}function fr(){let r=screen;return[ae(Y(r.availTop),null),ae(Y(r.width)-Y(r.availWidth)-ae(Y(r.availLeft),0),null),ae(Y(r.height)-Y(r.availHeight)-ae(Y(r.availTop),0),null),ae(Y(r.availLeft),null)]}function br(r){for(let e=0;e<4;++e)if(r[e])return!1;return!0}function Ca(){return ae(_r(navigator.hardwareConcurrency),void 0)}function wa(){var r;let e=(r=window.Intl)===null||r===void 0?void 0:r.DateTimeFormat;if(e){let n=new e().resolvedOptions().timeZone;if(n)return n}let t=-Pa();return`UTC${t>=0?"+":""}${t}`}function Pa(){let r=new Date().getFullYear();return Math.max(Y(new Date(r,0,1).getTimezoneOffset()),Y(new Date(r,6,1).getTimezoneOffset()))}function Ia(){try{return!!window.sessionStorage}catch{return!0}}function ka(){try{return!!window.localStorage}catch{return!0}}function Ea(){if(!(hr()||Fn()))try{return!!window.indexedDB}catch{return!0}}function qa(){return!!window.openDatabase}function Va(){return navigator.cpuClass}function La(){let{platform:r}=navigator;return r==="MacIntel"&&J()&&!Tt()?Ji()?"iPad":"iPhone":r}function Fa(){return navigator.vendor||""}function Oa(){let r=[];for(let e of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let t=window[e];t&&typeof t=="object"&&r.push(e)}return r.sort()}function Ma(){let r=document;try{r.cookie="cookietest=1; SameSite=Strict;";let e=r.cookie.indexOf("cookietest=")!==-1;return r.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch{return!1}}function Ba(){let r=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',r("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",r("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",r("LnNwb25zb3JpdA=="),".ylamainos",r("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),r("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",r("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",r("LmhlYWRlci1ibG9ja2VkLWFk"),r("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",r("I2FkXzMwMFgyNTA="),r("I2Jhbm5lcmZsb2F0MjI="),r("I2NhbXBhaWduLWJhbm5lcg=="),r("I0FkLUNvbnRlbnQ=")],adGuardChinese:[r("LlppX2FkX2FfSA=="),r("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",r("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),r("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",r("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",r("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",r("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),r("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),r("LmFkZ29vZ2xl"),r("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[r("YW1wLWF1dG8tYWRz"),r("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",r("I2FkX2ludmlld19hcmVh")],adGuardRussian:[r("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),r("LnJlY2xhbWE="),'div[id^="smi2adblock"]',r("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[r("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),r("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",r("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),r("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),r("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",r("I3Jla2xhbWk="),r("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),r("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),r("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[r("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",r("LndpZGdldF9wb19hZHNfd2lkZ2V0"),r("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",r("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[r("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),r("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",r("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",r("I3Jla2xhbW5pLWJveA=="),r("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",r("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[r("I2FkdmVydGVudGll"),r("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",r("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",r("LnNwb25zb3JsaW5rZ3J1ZW4="),r("I3dlcmJ1bmdza3k="),r("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),r("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[r("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",r("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),r("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),r("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[r("LnJla2xhbW9zX3RhcnBhcw=="),r("LnJla2xhbW9zX251b3JvZG9z"),r("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),r("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),r("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[r("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[r("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),r("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",r("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[r("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),r("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),r("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",r("LmFkX19tYWlu"),r("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[r("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[r("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),r("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[r("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),r("I2xpdmVyZUFkV3JhcHBlcg=="),r("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),r("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[r("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",r("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),r("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),r("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[r("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),r("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),r("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",r("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),r("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),r("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),r("ZGl2I3NrYXBpZWNfYWQ=")],ro:[r("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),r("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),r("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),r("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[r("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),r("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),r("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",r("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),r("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",r("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}async function Ga({debug:r}={}){if(!Ua())return;let e=Ba(),t=Object.keys(e),n=[].concat(...t.map(a=>e[a])),s=await Qa(n);r&&Na(e,s);let i=t.filter(a=>{let o=e[a];return W(o.map(c=>s[c]))>o.length*.6});return i.sort(),i}function Ua(){return J()||Ct()}async function Qa(r){var e;let t=document,n=t.createElement("div"),s=new Array(r.length),i={};Rn(n);for(let a=0;a<r.length;++a){let o=ra(r[a]);o.tagName==="DIALOG"&&o.show();let l=t.createElement("div");Rn(l),l.appendChild(o),n.appendChild(l),s[a]=o}for(;!t.body;)await Rt(50);t.body.appendChild(n);try{for(let a=0;a<r.length;++a)s[a].offsetParent||(i[r[a]]=!0)}finally{(e=n.parentNode)===null||e===void 0||e.removeChild(n)}return i}function Rn(r){r.style.setProperty("visibility","hidden","important"),r.style.setProperty("display","block","important")}function Na(r,e){let t="DOM blockers debug:\n```";for(let n of Object.keys(r)){t+=`
4
4
  ${n}:`;for(let s of r[n])t+=`
5
5
  ${e[s]?"\u{1F6AB}":"\u27A1\uFE0F"} ${s}`}console.log(`${t}
6
- \`\`\``)}function Wi(){for(let r of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${r})`).matches)return r}function ji(){if(Rn("inverted"))return!0;if(Rn("none"))return!1}function Rn(r){return matchMedia(`(inverted-colors: ${r})`).matches}function Xi(){if(Tn("active"))return!0;if(Tn("none"))return!1}function Tn(r){return matchMedia(`(forced-colors: ${r})`).matches}function Hi(){if(matchMedia("(min-monochrome: 0)").matches){for(let r=0;r<=zi;++r)if(matchMedia(`(max-monochrome: ${r})`).matches)return r;throw new Error("Too high value")}}function Ji(){if(ve("no-preference"))return 0;if(ve("high")||ve("more"))return 1;if(ve("low")||ve("less"))return-1;if(ve("forced"))return 10}function ve(r){return matchMedia(`(prefers-contrast: ${r})`).matches}function Ki(){if(wn("reduce"))return!0;if(wn("no-preference"))return!1}function wn(r){return matchMedia(`(prefers-reduced-motion: ${r})`).matches}function Zi(){if(Cn("reduce"))return!0;if(Cn("no-preference"))return!1}function Cn(r){return matchMedia(`(prefers-reduced-transparency: ${r})`).matches}function $i(){if(Pn("high"))return!0;if(Pn("standard"))return!1}function Pn(r){return matchMedia(`(dynamic-range: ${r})`).matches}function Yi(){let r=I.acos||N,e=I.acosh||N,t=I.asin||N,n=I.asinh||N,s=I.atanh||N,a=I.atan||N,i=I.sin||N,o=I.sinh||N,l=I.cos||N,c=I.cosh||N,u=I.tan||N,g=I.tanh||N,m=I.exp||N,y=I.expm1||N,d=I.log1p||N,f=_=>I.pow(I.PI,_),b=_=>I.log(_+I.sqrt(_*_-1)),S=_=>I.log(_+I.sqrt(_*_+1)),R=_=>I.log((1+_)/(1-_))/2,x=_=>I.exp(_)-1/I.exp(_)/2,A=_=>(I.exp(_)+1/I.exp(_))/2,T=_=>I.exp(_)-1,w=_=>(I.exp(2*_)-1)/(I.exp(2*_)+1),C=_=>I.log(1+_);return{acos:r(.12312423423423424),acosh:e(1e308),acoshPf:b(1e154),asin:t(.12312423423423424),asinh:n(1),asinhPf:S(1),atanh:s(.5),atanhPf:R(.5),atan:a(.5),sin:i(-1e300),sinh:o(1),sinhPf:x(1),cos:l(10.000000000123),cosh:c(1),coshPf:A(1),tan:u(-1e300),tanh:g(1),tanhPf:w(1),exp:m(1),expm1:y(1),expm1Pf:T(1),log1p:d(10),log1pPf:C(10),powPI:f(-100)}}function to(){return ro((r,e)=>{let t={},n={};for(let s of Object.keys(yr)){let[a={},i=eo]=yr[s],o=r.createElement("span");o.textContent=i,o.style.whiteSpace="nowrap";for(let l of Object.keys(a)){let c=a[l];c!==void 0&&(o.style[l]=c)}t[s]=o,e.append(r.createElement("br"),o)}for(let s of Object.keys(yr))n[s]=t[s].getBoundingClientRect().width;return n})}function ro(r,e=4e3){return xr((t,n)=>{let s=n.document,a=s.body,i=a.style;i.width=`${e}px`,i.webkitTextSizeAdjust=i.textSizeAdjust="none",De()?a.style.zoom=`${1/n.devicePixelRatio}`:H()&&(a.style.zoom="reset");let o=s.createElement("div");return o.textContent=[...Array(e/20<<0)].map(()=>"word").join(" "),a.appendChild(o),r(s,a)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function no(){return navigator.pdfViewerEnabled}function so(){let r=new Float32Array(1),e=new Uint8Array(r.buffer);return r[0]=1/0,r[0]=r[0]-r[0],e[3]}function ao(){let{ApplePaySession:r}=window;if(typeof(r==null?void 0:r.canMakePayments)!="function")return-1;if(io())return-3;try{return r.canMakePayments()?1:0}catch(e){return oo(e)}}function oo(r){if(r instanceof Error&&r.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(r.message))return-2;throw r}function uo(){var r;let e=document.createElement("a"),t=(r=e.attributionSourceId)!==null&&r!==void 0?r:e.attributionsourceid;return t===void 0?void 0:String(t)}function yo({cache:r}){var e,t,n,s,a,i;let o=vr(r);if(!o)return Un;if(!zn(o))return Wn;let l=Xn()?null:o.getExtension(jn);return{version:((e=o.getParameter(o.VERSION))===null||e===void 0?void 0:e.toString())||"",vendor:((t=o.getParameter(o.VENDOR))===null||t===void 0?void 0:t.toString())||"",vendorUnmasked:l?(n=o.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((s=o.getParameter(o.RENDERER))===null||s===void 0?void 0:s.toString())||"",rendererUnmasked:l?(a=o.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||a===void 0?void 0:a.toString():"",shadingLanguageVersion:((i=o.getParameter(o.SHADING_LANGUAGE_VERSION))===null||i===void 0?void 0:i.toString())||""}}function fo({cache:r}){let e=vr(r);if(!e)return Un;if(!zn(e))return Wn;let t=e.getSupportedExtensions(),n=e.getContextAttributes(),s=[],a=[],i=[],o=[],l=[];if(n)for(let u of Object.keys(n))a.push(`${u}=${n[u]}`);let c=In(e);for(let u of c){let g=e[u];i.push(`${u}=${g}${co.has(g)?`=${e.getParameter(g)}`:""}`)}if(t)for(let u of t){if(u===jn&&Xn()||u===mo&&_o())continue;let g=e.getExtension(u);if(!g){s.push(u);continue}for(let m of In(g)){let y=g[m];o.push(`${m}=${y}${lo.has(y)?`=${e.getParameter(y)}`:""}`)}}for(let u of go)for(let g of po){let m=bo(e,u,g);l.push(`${u}.${g}=${m.join(",")}`)}return o.sort(),i.sort(),{contextAttributes:a,parameters:i,shaderPrecisions:l,extensions:t,extensionParameters:o,unsupportedExtensions:s}}function vr(r){if(r.webgl)return r.webgl.context;let e=document.createElement("canvas"),t;e.addEventListener("webglCreateContextError",()=>t=void 0);for(let n of["webgl","experimental-webgl"]){try{t=e.getContext(n)}catch{}if(t)break}return r.webgl={context:t},t}function bo(r,e,t){let n=r.getShaderPrecisionFormat(r[e],r[t]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function In(r){return Object.keys(r.__proto__).filter(ho)}function ho(r){return typeof r=="string"&&!r.match(/[^A-Z0-9_x]/)}function Xn(){return Sr()}function _o(){return De()||H()}function zn(r){return typeof r.getParameter=="function"}function So(){if(!(wt()||H()))return-2;if(!window.AudioContext)return-1;let e=new AudioContext().baseLatency;return e==null?-1:isFinite(e)?e:-3}function xo(){if(!window.Intl)return-1;let r=window.Intl.DateTimeFormat;if(!r)return-2;let e=r().resolvedOptions().locale;return!e&&e!==""?-3:e}function vo(r){return Ln(Hn,r,[])}function Ao(r){let e=Ro(r),t=To(e);return{score:e,comment:Do.replace(/\$/g,`${t}`)}}function Ro(r){if(wt())return .4;if(H())return Tt()&&!(Ue()&&Ne())?.5:.3;let e="value"in r.platform?r.platform.value:"";return/^Win/.test(e)?.6:/^Mac/.test(e)?.5:.7}function To(r){return kn(.99+.01*r,1e-4)}function wo(r){let e="";for(let t of Object.keys(r).sort()){let n=r[t],s="error"in n?"error":JSON.stringify(n.value);e+=`${e?"|":""}${t.replace(/([:|\\])/g,"\\$1")}:${s}`}return e}function Dr(r){return JSON.stringify(r,(e,t)=>t instanceof Error?Na(t):t,2)}function Ar(r){return qn(wo(r))}function Co(r){let e,t=Ao(r);return{get visitorId(){return e===void 0&&(e=Ar(this.components)),e},set visitorId(n){e=n},confidence:t,components:r,version:En}}function Jn(r=50){return qa(r,r*2)}function Po(r,e){let t=Date.now();return{async get(n){let s=Date.now(),a=await r(),i=Co(a);return(e||n!=null&&n.debug)&&console.log(`Copy the text below to get the debug data:
6
+ \`\`\``)}function Wa(){for(let r of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${r})`).matches)return r}function ja(){if(Dn("inverted"))return!0;if(Dn("none"))return!1}function Dn(r){return matchMedia(`(inverted-colors: ${r})`).matches}function Xa(){if(Tn("active"))return!0;if(Tn("none"))return!1}function Tn(r){return matchMedia(`(forced-colors: ${r})`).matches}function Ha(){if(matchMedia("(min-monochrome: 0)").matches){for(let r=0;r<=za;++r)if(matchMedia(`(max-monochrome: ${r})`).matches)return r;throw new Error("Too high value")}}function Ja(){if(ve("no-preference"))return 0;if(ve("high")||ve("more"))return 1;if(ve("low")||ve("less"))return-1;if(ve("forced"))return 10}function ve(r){return matchMedia(`(prefers-contrast: ${r})`).matches}function Ka(){if(Cn("reduce"))return!0;if(Cn("no-preference"))return!1}function Cn(r){return matchMedia(`(prefers-reduced-motion: ${r})`).matches}function Za(){if(wn("reduce"))return!0;if(wn("no-preference"))return!1}function wn(r){return matchMedia(`(prefers-reduced-transparency: ${r})`).matches}function $a(){if(Pn("high"))return!0;if(Pn("standard"))return!1}function Pn(r){return matchMedia(`(dynamic-range: ${r})`).matches}function Ya(){let r=w.acos||N,e=w.acosh||N,t=w.asin||N,n=w.asinh||N,s=w.atanh||N,i=w.atan||N,a=w.sin||N,o=w.sinh||N,l=w.cos||N,c=w.cosh||N,u=w.tan||N,g=w.tanh||N,m=w.exp||N,y=w.expm1||N,d=w.log1p||N,f=_=>w.pow(w.PI,_),b=_=>w.log(_+w.sqrt(_*_-1)),A=_=>w.log(_+w.sqrt(_*_+1)),R=_=>w.log((1+_)/(1-_))/2,x=_=>w.exp(_)-1/w.exp(_)/2,S=_=>(w.exp(_)+1/w.exp(_))/2,C=_=>w.exp(_)-1,U=_=>(w.exp(2*_)-1)/(w.exp(2*_)+1),T=_=>w.log(1+_);return{acos:r(.12312423423423424),acosh:e(1e308),acoshPf:b(1e154),asin:t(.12312423423423424),asinh:n(1),asinhPf:A(1),atanh:s(.5),atanhPf:R(.5),atan:i(.5),sin:a(-1e300),sinh:o(1),sinhPf:x(1),cos:l(10.000000000123),cosh:c(1),coshPf:S(1),tan:u(-1e300),tanh:g(1),tanhPf:U(1),exp:m(1),expm1:y(1),expm1Pf:C(1),log1p:d(10),log1pPf:T(10),powPI:f(-100)}}function to(){return ro((r,e)=>{let t={},n={};for(let s of Object.keys(yr)){let[i={},a=eo]=yr[s],o=r.createElement("span");o.textContent=a,o.style.whiteSpace="nowrap";for(let l of Object.keys(i)){let c=i[l];c!==void 0&&(o.style[l]=c)}t[s]=o,e.append(r.createElement("br"),o)}for(let s of Object.keys(yr))n[s]=t[s].getBoundingClientRect().width;return n})}function ro(r,e=4e3){return xr((t,n)=>{let s=n.document,i=s.body,a=i.style;a.width=`${e}px`,a.webkitTextSizeAdjust=a.textSizeAdjust="none",Re()?i.style.zoom=`${1/n.devicePixelRatio}`:J()&&(i.style.zoom="reset");let o=s.createElement("div");return o.textContent=[...Array(e/20<<0)].map(()=>"word").join(" "),i.appendChild(o),r(s,i)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function no(){return navigator.pdfViewerEnabled}function so(){let r=new Float32Array(1),e=new Uint8Array(r.buffer);return r[0]=1/0,r[0]=r[0]-r[0],e[3]}function io(){let{ApplePaySession:r}=window;if(typeof(r==null?void 0:r.canMakePayments)!="function")return-1;if(ao())return-3;try{return r.canMakePayments()?1:0}catch(e){return oo(e)}}function oo(r){if(r instanceof Error&&r.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(r.message))return-2;throw r}function uo(){var r;let e=document.createElement("a"),t=(r=e.attributionSourceId)!==null&&r!==void 0?r:e.attributionsourceid;return t===void 0?void 0:String(t)}function yo({cache:r}){var e,t,n,s,i,a;let o=Ar(r);if(!o)return Nn;if(!zn(o))return Wn;let l=Xn()?null:o.getExtension(jn);return{version:((e=o.getParameter(o.VERSION))===null||e===void 0?void 0:e.toString())||"",vendor:((t=o.getParameter(o.VENDOR))===null||t===void 0?void 0:t.toString())||"",vendorUnmasked:l?(n=o.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((s=o.getParameter(o.RENDERER))===null||s===void 0?void 0:s.toString())||"",rendererUnmasked:l?(i=o.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((a=o.getParameter(o.SHADING_LANGUAGE_VERSION))===null||a===void 0?void 0:a.toString())||""}}function fo({cache:r}){let e=Ar(r);if(!e)return Nn;if(!zn(e))return Wn;let t=e.getSupportedExtensions(),n=e.getContextAttributes(),s=[],i=[],a=[],o=[],l=[];if(n)for(let u of Object.keys(n))i.push(`${u}=${n[u]}`);let c=In(e);for(let u of c){let g=e[u];a.push(`${u}=${g}${co.has(g)?`=${e.getParameter(g)}`:""}`)}if(t)for(let u of t){if(u===jn&&Xn()||u===mo&&ho())continue;let g=e.getExtension(u);if(!g){s.push(u);continue}for(let m of In(g)){let y=g[m];o.push(`${m}=${y}${lo.has(y)?`=${e.getParameter(y)}`:""}`)}}for(let u of go)for(let g of po){let m=bo(e,u,g);l.push(`${u}.${g}=${m.join(",")}`)}return o.sort(),a.sort(),{contextAttributes:i,parameters:a,shaderPrecisions:l,extensions:t,extensionParameters:o,unsupportedExtensions:s}}function Ar(r){if(r.webgl)return r.webgl.context;let e=document.createElement("canvas"),t;e.addEventListener("webglCreateContextError",()=>t=void 0);for(let n of["webgl","experimental-webgl"]){try{t=e.getContext(n)}catch{}if(t)break}return r.webgl={context:t},t}function bo(r,e,t){let n=r.getShaderPrecisionFormat(r[e],r[t]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function In(r){return Object.keys(r.__proto__).filter(_o)}function _o(r){return typeof r=="string"&&!r.match(/[^A-Z0-9_x]/)}function Xn(){return Sr()}function ho(){return Re()||J()}function zn(r){return typeof r.getParameter=="function"}function So(){if(!(Ct()||J()))return-2;if(!window.AudioContext)return-1;let e=new AudioContext().baseLatency;return e==null?-1:isFinite(e)?e:-3}function xo(){if(!window.Intl)return-1;let r=window.Intl.DateTimeFormat;if(!r)return-2;let e=r().resolvedOptions().locale;return!e&&e!==""?-3:e}function Ao(r){return Ln(Hn,r,[])}function Ro(r){let e=Do(r),t=To(e);return{score:e,comment:vo.replace(/\$/g,`${t}`)}}function Do(r){if(Ct())return .4;if(J())return Tt()&&!(Ne()&&Qe())?.5:.3;let e="value"in r.platform?r.platform.value:"";return/^Win/.test(e)?.6:/^Mac/.test(e)?.5:.7}function To(r){return En(.99+.01*r,1e-4)}function Co(r){let e="";for(let t of Object.keys(r).sort()){let n=r[t],s="error"in n?"error":JSON.stringify(n.value);e+=`${e?"|":""}${t.replace(/([:|\\])/g,"\\$1")}:${s}`}return e}function vr(r){return JSON.stringify(r,(e,t)=>t instanceof Error?Qi(t):t,2)}function Rr(r){return qn(Co(r))}function wo(r){let e,t=Ro(r);return{get visitorId(){return e===void 0&&(e=Rr(this.components)),e},set visitorId(n){e=n},confidence:t,components:r,version:kn}}function Jn(r=50){return qi(r,r*2)}function Po(r,e){let t=Date.now();return{async get(n){let s=Date.now(),i=await r(),a=wo(i);return(e||n!=null&&n.debug)&&console.log(`Copy the text below to get the debug data:
7
7
 
8
8
  \`\`\`
9
- version: ${i.version}
9
+ version: ${a.version}
10
10
  userAgent: ${navigator.userAgent}
11
11
  timeBetweenLoadAndGet: ${s-t}
12
- visitorId: ${i.visitorId}
13
- components: ${Dr(a)}
14
- \`\`\``),i}}}function Io(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let r=new XMLHttpRequest;r.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${En}/npm-monitoring`,!0),r.send()}catch(r){console.error(r)}}async function Kn(r={}){var e;(!((e=r.monitoring)!==null&&e!==void 0)||e)&&Io();let{delayFallback:t,debug:n}=r;await Jn(t);let s=vo({cache:{},debug:n});return Po(s,n)}var En,Ma,Ba,xt,vt,xn,Ga,Qa,ai,ii,xe,Dn,Di,Ai,Dt,dr,zi,I,N,eo,yr,io,Un,Wn,co,lo,go,po,jn,mo,Hn,Do,Eo,ko,$n=ns(()=>{En="5.0.1";Ma=[4283543511,3981806797],Ba=[3301882366,444984403];xt=[2277735313,289559509],vt=[1291169091,658871167],xn=[0,5],Ga=[0,1390208809],Qa=[0,944331445];ai="mmMwWLliI0O&1",ii="48px",xe=["monospace","sans-serif","serif"],Dn=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];Di=2500,Ai=10;zi=100;I=Math,N=()=>0;eo="mmMwWLliI0fiflO&1",yr={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};io=si;Un=-1,Wn=-2,co=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),lo=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),go=["FRAGMENT_SHADER","VERTEX_SHADER"],po=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],jn="WEBGL_debug_renderer_info",mo="WEBGL_polygon_mode";Hn={fonts:oi,domBlockers:Gi,fontPreferences:to,audio:Za,screenFrame:Ti,canvas:ci,osCpu:hi,languages:_i,colorDepth:Si,deviceMemory:xi,screenResolution:vi,hardwareConcurrency:wi,timezone:Ci,sessionStorage:Ii,localStorage:Ei,indexedDB:ki,openDatabase:qi,cpuClass:Vi,platform:Li,plugins:ui,touchSupport:bi,vendor:Oi,vendorFlavors:Fi,cookiesEnabled:Mi,colorGamut:Wi,invertedColors:ji,forcedColors:Xi,monochrome:Hi,contrast:Ji,reducedMotion:Ki,reducedTransparency:Zi,hdr:$i,math:Yi,pdfViewerEnabled:no,architecture:so,applePay:ao,privateClickMeasurement:uo,audioBaseLatency:So,dateTimeLocale:xo,webGlBasics:yo,webGlExtensions:fo};Do="$ if upgrade to Pro: https://fpjs.dev/pro";Eo={load:Kn,hashComponents:Ar,componentsToDebugString:Dr},ko=qn});var Fo={};qt(Fo,{ENVIRONMENTS:()=>cr,Logger:()=>Me,SeekoraClient:()=>We,createLogger:()=>Ge,default:()=>Oo,getBaseUrl:()=>bt,getEnvironment:()=>yn,getLogLevelFromEnv:()=>Be,loadConfig:()=>St,loadConfigFromEnv:()=>pr,loadConfigFromFile:()=>gr});function Re(r,e){return function(){return r.apply(e,arguments)}}var{toString:is}=Object.prototype,{getPrototypeOf:Lt}=Object,{iterator:He,toStringTag:Ir}=Symbol,Je=(r=>e=>{let t=is.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),J=r=>(r=r.toLowerCase(),e=>Je(e)===r),Ke=r=>e=>typeof e===r,{isArray:de}=Array,me=Ke("undefined");function Te(r){return r!==null&&!me(r)&&r.constructor!==null&&!me(r.constructor)&&W(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}var Er=J("ArrayBuffer");function os(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&Er(r.buffer),e}var us=Ke("string"),W=Ke("function"),kr=Ke("number"),we=r=>r!==null&&typeof r=="object",cs=r=>r===!0||r===!1,ze=r=>{if(Je(r)!=="object")return!1;let e=Lt(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ir in r)&&!(He in r)},ls=r=>{if(!we(r)||Te(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},gs=J("Date"),ps=J("File"),ms=J("Blob"),ds=J("FileList"),ys=r=>we(r)&&W(r.pipe),fs=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||W(r.append)&&((e=Je(r))==="formdata"||e==="object"&&W(r.toString)&&r.toString()==="[object FormData]"))},bs=J("URLSearchParams"),[hs,_s,Ss,xs]=["ReadableStream","Request","Response","Headers"].map(J),vs=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ce(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,s;if(typeof r!="object"&&(r=[r]),de(r))for(n=0,s=r.length;n<s;n++)e.call(null,r[n],n,r);else{if(Te(r))return;let a=t?Object.getOwnPropertyNames(r):Object.keys(r),i=a.length,o;for(n=0;n<i;n++)o=a[n],e.call(null,r[o],o,r)}}function qr(r,e){if(Te(r))return null;e=e.toLowerCase();let t=Object.keys(r),n=t.length,s;for(;n-- >0;)if(s=t[n],e===s.toLowerCase())return s;return null}var ge=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vr=r=>!me(r)&&r!==ge;function Vt(){let{caseless:r,skipUndefined:e}=Vr(this)&&this||{},t={},n=(s,a)=>{let i=r&&qr(t,a)||a;ze(t[i])&&ze(s)?t[i]=Vt(t[i],s):ze(s)?t[i]=Vt({},s):de(s)?t[i]=s.slice():(!e||!me(s))&&(t[i]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&Ce(arguments[s],n);return t}var Ds=(r,e,t,{allOwnKeys:n}={})=>(Ce(e,(s,a)=>{t&&W(s)?r[a]=Re(s,t):r[a]=s},{allOwnKeys:n}),r),As=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Rs=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},Ts=(r,e,t,n)=>{let s,a,i,o={};if(e=e||{},r==null)return e;do{for(s=Object.getOwnPropertyNames(r),a=s.length;a-- >0;)i=s[a],(!n||n(i,r,e))&&!o[i]&&(e[i]=r[i],o[i]=!0);r=t!==!1&&Lt(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},ws=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},Cs=r=>{if(!r)return null;if(de(r))return r;let e=r.length;if(!kr(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},Ps=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&Lt(Uint8Array)),Is=(r,e)=>{let n=(r&&r[He]).call(r),s;for(;(s=n.next())&&!s.done;){let a=s.value;e.call(r,a[0],a[1])}},Es=(r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},ks=J("HTMLFormElement"),qs=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,s){return n.toUpperCase()+s}),Pr=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Vs=J("RegExp"),Lr=(r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};Ce(t,(s,a)=>{let i;(i=e(s,a,r))!==!1&&(n[a]=i||s)}),Object.defineProperties(r,n)},Ls=r=>{Lr(r,(e,t)=>{if(W(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(W(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Os=(r,e)=>{let t={},n=s=>{s.forEach(a=>{t[a]=!0})};return de(r)?n(r):n(String(r).split(e)),t},Fs=()=>{},Ms=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function Bs(r){return!!(r&&W(r.append)&&r[Ir]==="FormData"&&r[He])}var Gs=r=>{let e=new Array(10),t=(n,s)=>{if(we(n)){if(e.indexOf(n)>=0)return;if(Te(n))return n;if(!("toJSON"in n)){e[s]=n;let a=de(n)?[]:{};return Ce(n,(i,o)=>{let l=t(i,s+1);!me(l)&&(a[o]=l)}),e[s]=void 0,a}}return n};return t(r,0)},Qs=J("AsyncFunction"),Ns=r=>r&&(we(r)||W(r))&&W(r.then)&&W(r.catch),Or=((r,e)=>r?setImmediate:e?((t,n)=>(ge.addEventListener("message",({source:s,data:a})=>{s===ge&&a===t&&n.length&&n.shift()()},!1),s=>{n.push(s),ge.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",W(ge.postMessage)),Us=typeof queueMicrotask<"u"?queueMicrotask.bind(ge):typeof process<"u"&&process.nextTick||Or,Ws=r=>r!=null&&W(r[He]),p={isArray:de,isArrayBuffer:Er,isBuffer:Te,isFormData:fs,isArrayBufferView:os,isString:us,isNumber:kr,isBoolean:cs,isObject:we,isPlainObject:ze,isEmptyObject:ls,isReadableStream:hs,isRequest:_s,isResponse:Ss,isHeaders:xs,isUndefined:me,isDate:gs,isFile:ps,isBlob:ms,isRegExp:Vs,isFunction:W,isStream:ys,isURLSearchParams:bs,isTypedArray:Ps,isFileList:ds,forEach:Ce,merge:Vt,extend:Ds,trim:vs,stripBOM:As,inherits:Rs,toFlatObject:Ts,kindOf:Je,kindOfTest:J,endsWith:ws,toArray:Cs,forEachEntry:Is,matchAll:Es,isHTMLForm:ks,hasOwnProperty:Pr,hasOwnProp:Pr,reduceDescriptors:Lr,freezeMethods:Ls,toObjectSet:Os,toCamelCase:qs,noop:Fs,toFiniteNumber:Ms,findKey:qr,global:ge,isContextDefined:Vr,isSpecCompliantForm:Bs,toJSONObject:Gs,isAsyncFn:Qs,isThenable:Ns,setImmediate:Or,asap:Us,isIterable:Ws};function ye(r,e,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}p.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:p.toJSONObject(this.config),code:this.code,status:this.status}}});var Fr=ye.prototype,Mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Mr[r]={value:r}});Object.defineProperties(ye,Mr);Object.defineProperty(Fr,"isAxiosError",{value:!0});ye.from=(r,e,t,n,s,a)=>{let i=Object.create(Fr);p.toFlatObject(r,i,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");let o=r&&r.message?r.message:"Error",l=e==null&&r?r.code:e;return ye.call(i,o,l,t,n,s),r&&i.cause==null&&Object.defineProperty(i,"cause",{value:r,configurable:!0}),i.name=r&&r.name||"Error",a&&Object.assign(i,a),i};var v=ye;var Ze=null;function Ot(r){return p.isPlainObject(r)||p.isArray(r)}function Gr(r){return p.endsWith(r,"[]")?r.slice(0,-2):r}function Br(r,e,t){return r?r.concat(e).map(function(s,a){return s=Gr(s),!t&&a?"["+s+"]":s}).join(t?".":""):e}function js(r){return p.isArray(r)&&!r.some(Ot)}var Xs=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function zs(r,e,t){if(!p.isObject(r))throw new TypeError("target must be an object");e=e||new(Ze||FormData),t=p.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,b){return!p.isUndefined(b[f])});let n=t.metaTokens,s=t.visitor||u,a=t.dots,i=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&p.isSpecCompliantForm(e);if(!p.isFunction(s))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(p.isDate(d))return d.toISOString();if(p.isBoolean(d))return d.toString();if(!l&&p.isBlob(d))throw new v("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(d)||p.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,f,b){let S=d;if(d&&!b&&typeof d=="object"){if(p.endsWith(f,"{}"))f=n?f:f.slice(0,-2),d=JSON.stringify(d);else if(p.isArray(d)&&js(d)||(p.isFileList(d)||p.endsWith(f,"[]"))&&(S=p.toArray(d)))return f=Gr(f),S.forEach(function(x,A){!(p.isUndefined(x)||x===null)&&e.append(i===!0?Br([f],A,a):i===null?f:f+"[]",c(x))}),!1}return Ot(d)?!0:(e.append(Br(b,f,a),c(d)),!1)}let g=[],m=Object.assign(Xs,{defaultVisitor:u,convertValue:c,isVisitable:Ot});function y(d,f){if(!p.isUndefined(d)){if(g.indexOf(d)!==-1)throw Error("Circular reference detected in "+f.join("."));g.push(d),p.forEach(d,function(S,R){(!(p.isUndefined(S)||S===null)&&s.call(e,S,p.isString(R)?R.trim():R,f,m))===!0&&y(S,f?f.concat(R):[R])}),g.pop()}}if(!p.isObject(r))throw new TypeError("data must be an object");return y(r),e}var oe=zs;function Qr(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Nr(r,e){this._pairs=[],r&&oe(r,this,e)}var Ur=Nr.prototype;Ur.append=function(e,t){this._pairs.push([e,t])};Ur.toString=function(e){let t=e?function(n){return e.call(this,n,Qr)}:Qr;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};var $e=Nr;function Hs(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Pe(r,e,t){if(!e)return r;let n=t&&t.encode||Hs;p.isFunction(t)&&(t={serialize:t});let s=t&&t.serialize,a;if(s?a=s(e,t):a=p.isURLSearchParams(e)?e.toString():new $e(e,t).toString(n),a){let i=r.indexOf("#");i!==-1&&(r=r.slice(0,i)),r+=(r.indexOf("?")===-1?"?":"&")+a}return r}var Ft=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){p.forEach(this.handlers,function(n){n!==null&&e(n)})}},Mt=Ft;var Ye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Wr=typeof URLSearchParams<"u"?URLSearchParams:$e;var jr=typeof FormData<"u"?FormData:null;var Xr=typeof Blob<"u"?Blob:null;var zr={isBrowser:!0,classes:{URLSearchParams:Wr,FormData:jr,Blob:Xr},protocols:["http","https","file","blob","url","data"]};var Qt={};qt(Qt,{hasBrowserEnv:()=>Gt,hasStandardBrowserEnv:()=>Js,hasStandardBrowserWebWorkerEnv:()=>Ks,navigator:()=>Bt,origin:()=>Zs});var Gt=typeof window<"u"&&typeof document<"u",Bt=typeof navigator=="object"&&navigator||void 0,Js=Gt&&(!Bt||["ReactNative","NativeScript","NS"].indexOf(Bt.product)<0),Ks=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zs=Gt&&window.location.href||"http://localhost";var q={...Qt,...zr};function Nt(r,e){return oe(r,new q.classes.URLSearchParams,{visitor:function(t,n,s,a){return q.isNode&&p.isBuffer(t)?(this.append(n,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}function $s(r){return p.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ys(r){let e={},t=Object.keys(r),n,s=t.length,a;for(n=0;n<s;n++)a=t[n],e[a]=r[a];return e}function ea(r){function e(t,n,s,a){let i=t[a++];if(i==="__proto__")return!0;let o=Number.isFinite(+i),l=a>=t.length;return i=!i&&p.isArray(s)?s.length:i,l?(p.hasOwnProp(s,i)?s[i]=[s[i],n]:s[i]=n,!o):((!s[i]||!p.isObject(s[i]))&&(s[i]=[]),e(t,n,s[i],a)&&p.isArray(s[i])&&(s[i]=Ys(s[i])),!o)}if(p.isFormData(r)&&p.isFunction(r.entries)){let t={};return p.forEachEntry(r,(n,s)=>{e($s(n),s,t,0)}),t}return null}var et=ea;function ta(r,e,t){if(p.isString(r))try{return(e||JSON.parse)(r),p.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var Ut={transitional:Ye,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n=t.getContentType()||"",s=n.indexOf("application/json")>-1,a=p.isObject(e);if(a&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return s?JSON.stringify(et(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e)||p.isReadableStream(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Nt(e,this.formSerializer).toString();if((o=p.isFileList(e))||n.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return oe(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||s?(t.setContentType("application/json",!1),ta(e)):e}],transformResponse:[function(e){let t=this.transitional||Ut.transitional,n=t&&t.forcedJSONParsing,s=this.responseType==="json";if(p.isResponse(e)||p.isReadableStream(e))return e;if(e&&p.isString(e)&&(n&&!this.responseType||s)){let i=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e,this.parseReviver)}catch(o){if(i)throw o.name==="SyntaxError"?v.from(o,v.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:q.classes.FormData,Blob:q.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],r=>{Ut.headers[r]={}});var fe=Ut;var ra=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hr=r=>{let e={},t,n,s;return r&&r.split(`
15
- `).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||e[t]&&ra[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};var Jr=Symbol("internals");function Ie(r){return r&&String(r).trim().toLowerCase()}function tt(r){return r===!1||r==null?r:p.isArray(r)?r.map(tt):String(r)}function na(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}var sa=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Wt(r,e,t,n,s){if(p.isFunction(n))return n.call(this,e,t);if(s&&(e=t),!!p.isString(e)){if(p.isString(n))return e.indexOf(n)!==-1;if(p.isRegExp(n))return n.test(e)}}function aa(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function ia(r,e){let t=p.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(s,a,i){return this[n].call(this,e,s,a,i)},configurable:!0})})}var be=class{constructor(e){e&&this.set(e)}set(e,t,n){let s=this;function a(o,l,c){let u=Ie(l);if(!u)throw new Error("header name must be a non-empty string");let g=p.findKey(s,u);(!g||s[g]===void 0||c===!0||c===void 0&&s[g]!==!1)&&(s[g||l]=tt(o))}let i=(o,l)=>p.forEach(o,(c,u)=>a(c,u,l));if(p.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(p.isString(e)&&(e=e.trim())&&!sa(e))i(Hr(e),t);else if(p.isObject(e)&&p.isIterable(e)){let o={},l,c;for(let u of e){if(!p.isArray(u))throw TypeError("Object iterator must return a key-value pair");o[c=u[0]]=(l=o[c])?p.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}i(o,t)}else e!=null&&a(t,e,n);return this}get(e,t){if(e=Ie(e),e){let n=p.findKey(this,e);if(n){let s=this[n];if(!t)return s;if(t===!0)return na(s);if(p.isFunction(t))return t.call(this,s,n);if(p.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ie(e),e){let n=p.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Wt(this,this[n],n,t)))}return!1}delete(e,t){let n=this,s=!1;function a(i){if(i=Ie(i),i){let o=p.findKey(n,i);o&&(!t||Wt(n,n[o],o,t))&&(delete n[o],s=!0)}}return p.isArray(e)?e.forEach(a):a(e),s}clear(e){let t=Object.keys(this),n=t.length,s=!1;for(;n--;){let a=t[n];(!e||Wt(this,this[a],a,e,!0))&&(delete this[a],s=!0)}return s}normalize(e){let t=this,n={};return p.forEach(this,(s,a)=>{let i=p.findKey(n,a);if(i){t[i]=tt(s),delete t[a];return}let o=e?aa(a):String(a).trim();o!==a&&delete t[a],t[o]=tt(s),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return p.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=e&&p.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
16
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(s=>n.set(s)),n}static accessor(e){let n=(this[Jr]=this[Jr]={accessors:{}}).accessors,s=this.prototype;function a(i){let o=Ie(i);n[o]||(ia(s,i),n[o]=!0)}return p.isArray(e)?e.forEach(a):a(e),this}};be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);p.reduceDescriptors(be.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}});p.freezeMethods(be);var Q=be;function Ee(r,e){let t=this||fe,n=e||t,s=Q.from(n.headers),a=n.data;return p.forEach(r,function(o){a=o.call(t,a,s.normalize(),e?e.status:void 0)}),s.normalize(),a}function ke(r){return!!(r&&r.__CANCEL__)}function Kr(r,e,t){v.call(this,r??"canceled",v.ERR_CANCELED,e,t),this.name="CanceledError"}p.inherits(Kr,v,{__CANCEL__:!0});var ee=Kr;function qe(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new v("Request failed with status code "+t.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function jt(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function oa(r,e){r=r||10;let t=new Array(r),n=new Array(r),s=0,a=0,i;return e=e!==void 0?e:1e3,function(l){let c=Date.now(),u=n[a];i||(i=c),t[s]=l,n[s]=c;let g=a,m=0;for(;g!==s;)m+=t[g++],g=g%r;if(s=(s+1)%r,s===a&&(a=(a+1)%r),c-i<e)return;let y=u&&c-u;return y?Math.round(m*1e3/y):void 0}}var Zr=oa;function ua(r,e){let t=0,n=1e3/e,s,a,i=(c,u=Date.now())=>{t=u,s=null,a&&(clearTimeout(a),a=null),r(...c)};return[(...c)=>{let u=Date.now(),g=u-t;g>=n?i(c,u):(s=c,a||(a=setTimeout(()=>{a=null,i(s)},n-g)))},()=>s&&i(s)]}var $r=ua;var he=(r,e,t=3)=>{let n=0,s=Zr(50,250);return $r(a=>{let i=a.loaded,o=a.lengthComputable?a.total:void 0,l=i-n,c=s(l),u=i<=o;n=i;let g={loaded:i,total:o,progress:o?i/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&u?(o-i)/c:void 0,event:a,lengthComputable:o!=null,[e?"download":"upload"]:!0};r(g)},t)},Xt=(r,e)=>{let t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},zt=r=>(...e)=>p.asap(()=>r(...e));var Yr=q.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,q.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(q.origin),q.navigator&&/(msie|trident)/i.test(q.navigator.userAgent)):()=>!0;var en=q.hasStandardBrowserEnv?{write(r,e,t,n,s,a,i){if(typeof document>"u")return;let o=[`${r}=${encodeURIComponent(e)}`];p.isNumber(t)&&o.push(`expires=${new Date(t).toUTCString()}`),p.isString(n)&&o.push(`path=${n}`),p.isString(s)&&o.push(`domain=${s}`),a===!0&&o.push("secure"),p.isString(i)&&o.push(`SameSite=${i}`),document.cookie=o.join("; ")},read(r){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ht(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Jt(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Ve(r,e,t){let n=!Ht(e);return r&&(n||t==!1)?Jt(r,e):e}var tn=r=>r instanceof Q?{...r}:r;function K(r,e){e=e||{};let t={};function n(c,u,g,m){return p.isPlainObject(c)&&p.isPlainObject(u)?p.merge.call({caseless:m},c,u):p.isPlainObject(u)?p.merge({},u):p.isArray(u)?u.slice():u}function s(c,u,g,m){if(p.isUndefined(u)){if(!p.isUndefined(c))return n(void 0,c,g,m)}else return n(c,u,g,m)}function a(c,u){if(!p.isUndefined(u))return n(void 0,u)}function i(c,u){if(p.isUndefined(u)){if(!p.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function o(c,u,g){if(g in e)return n(c,u);if(g in r)return n(void 0,c)}let l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(c,u,g)=>s(tn(c),tn(u),g,!0)};return p.forEach(Object.keys({...r,...e}),function(u){let g=l[u]||s,m=g(r[u],e[u],u);p.isUndefined(m)&&g!==o||(t[u]=m)}),t}var rt=r=>{let e=K({},r),{data:t,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:o}=e;if(e.headers=i=Q.from(i),e.url=Pe(Ve(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),p.isFormData(t)){if(q.hasStandardBrowserEnv||q.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(p.isFunction(t.getHeaders)){let l=t.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,g])=>{c.includes(u.toLowerCase())&&i.set(u,g)})}}if(q.hasStandardBrowserEnv&&(n&&p.isFunction(n)&&(n=n(e)),n||n!==!1&&Yr(e.url))){let l=s&&a&&en.read(a);l&&i.set(s,l)}return e};var ca=typeof XMLHttpRequest<"u",rn=ca&&function(r){return new Promise(function(t,n){let s=rt(r),a=s.data,i=Q.from(s.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:c}=s,u,g,m,y,d;function f(){y&&y(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function S(){if(!b)return;let x=Q.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),T={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:x,config:r,request:b};qe(function(C){t(C),f()},function(C){n(C),f()},T),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(n(new v("Request aborted",v.ECONNABORTED,r,b)),b=null)},b.onerror=function(A){let T=A&&A.message?A.message:"Network Error",w=new v(T,v.ERR_NETWORK,r,b);w.event=A||null,n(w),b=null},b.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",T=s.transitional||Ye;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),n(new v(A,T.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,r,b)),b=null},a===void 0&&i.setContentType(null),"setRequestHeader"in b&&p.forEach(i.toJSON(),function(A,T){b.setRequestHeader(T,A)}),p.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),o&&o!=="json"&&(b.responseType=s.responseType),c&&([m,d]=he(c,!0),b.addEventListener("progress",m)),l&&b.upload&&([g,y]=he(l),b.upload.addEventListener("progress",g),b.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(u=x=>{b&&(n(!x||x.type?new ee(null,r,b):x),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));let R=jt(s.url);if(R&&q.protocols.indexOf(R)===-1){n(new v("Unsupported protocol "+R+":",v.ERR_BAD_REQUEST,r));return}b.send(a||null)})};var la=(r,e)=>{let{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,s,a=function(c){if(!s){s=!0,o();let u=c instanceof Error?c:this.reason;n.abort(u instanceof v?u:new ee(u instanceof Error?u.message:u))}},i=e&&setTimeout(()=>{i=null,a(new v(`timeout ${e} of ms exceeded`,v.ETIMEDOUT))},e),o=()=>{r&&(i&&clearTimeout(i),i=null,r.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),r=null)};r.forEach(c=>c.addEventListener("abort",a));let{signal:l}=n;return l.unsubscribe=()=>p.asap(o),l}},nn=la;var ga=function*(r,e){let t=r.byteLength;if(!e||t<e){yield r;return}let n=0,s;for(;n<t;)s=n+e,yield r.slice(n,s),n=s},pa=async function*(r,e){for await(let t of ma(r))yield*ga(t,e)},ma=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}let e=r.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},Kt=(r,e,t,n)=>{let s=pa(r,e),a=0,i,o=l=>{i||(i=!0,n&&n(l))};return new ReadableStream({async pull(l){try{let{done:c,value:u}=await s.next();if(c){o(),l.close();return}let g=u.byteLength;if(t){let m=a+=g;t(m)}l.enqueue(new Uint8Array(u))}catch(c){throw o(c),c}},cancel(l){return o(l),s.return()}},{highWaterMark:2})};var sn=64*1024,{isFunction:nt}=p,da=(({Request:r,Response:e})=>({Request:r,Response:e}))(p.global),{ReadableStream:an,TextEncoder:on}=p.global,un=(r,...e)=>{try{return!!r(...e)}catch{return!1}},ya=r=>{r=p.merge.call({skipUndefined:!0},da,r);let{fetch:e,Request:t,Response:n}=r,s=e?nt(e):typeof fetch=="function",a=nt(t),i=nt(n);if(!s)return!1;let o=s&&nt(an),l=s&&(typeof on=="function"?(d=>f=>d.encode(f))(new on):async d=>new Uint8Array(await new t(d).arrayBuffer())),c=a&&o&&un(()=>{let d=!1,f=new t(q.origin,{body:new an,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!f}),u=i&&o&&un(()=>p.isReadableStream(new n("").body)),g={stream:u&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!g[d]&&(g[d]=(f,b)=>{let S=f&&f[d];if(S)return S.call(f);throw new v(`Response type '${d}' is not supported`,v.ERR_NOT_SUPPORT,b)})});let m=async d=>{if(d==null)return 0;if(p.isBlob(d))return d.size;if(p.isSpecCompliantForm(d))return(await new t(q.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(p.isArrayBufferView(d)||p.isArrayBuffer(d))return d.byteLength;if(p.isURLSearchParams(d)&&(d=d+""),p.isString(d))return(await l(d)).byteLength},y=async(d,f)=>{let b=p.toFiniteNumber(d.getContentLength());return b??m(f)};return async d=>{let{url:f,method:b,data:S,signal:R,cancelToken:x,timeout:A,onDownloadProgress:T,onUploadProgress:w,responseType:C,headers:_,withCredentials:D="same-origin",fetchOptions:P}=rt(d),j=e||fetch;C=C?(C+"").toLowerCase():"text";let ne=nn([R,x&&x.toAbortSignal()],A),Ae=null,le=ne&&ne.unsubscribe&&(()=>{ne.unsubscribe()}),Rr;try{if(w&&c&&b!=="get"&&b!=="head"&&(Rr=await y(_,S))!==0){let ie=new t(f,{method:"POST",body:S,duplex:"half"}),pe;if(p.isFormData(S)&&(pe=ie.headers.get("content-type"))&&_.setContentType(pe),ie.body){let[Et,je]=Xt(Rr,he(zt(w)));S=Kt(ie.body,sn,Et,je)}}p.isString(D)||(D=D?"include":"omit");let Y=a&&"credentials"in t.prototype,Tr={...P,signal:ne,method:b.toUpperCase(),headers:_.normalize().toJSON(),body:S,duplex:"half",credentials:Y?D:void 0};Ae=a&&new t(f,Tr);let ae=await(a?j(Ae,P):j(f,Tr)),wr=u&&(C==="stream"||C==="response");if(u&&(T||wr&&le)){let ie={};["status","statusText","headers"].forEach(Cr=>{ie[Cr]=ae[Cr]});let pe=p.toFiniteNumber(ae.headers.get("content-length")),[Et,je]=T&&Xt(pe,he(zt(T),!0))||[];ae=new n(Kt(ae.body,sn,Et,()=>{je&&je(),le&&le()}),ie)}C=C||"text";let Yn=await g[p.findKey(g,C)||"text"](ae,d);return!wr&&le&&le(),await new Promise((ie,pe)=>{qe(ie,pe,{data:Yn,headers:Q.from(ae.headers),status:ae.status,statusText:ae.statusText,config:d,request:Ae})})}catch(Y){throw le&&le(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new v("Network Error",v.ERR_NETWORK,d,Ae),{cause:Y.cause||Y}):v.from(Y,Y&&Y.code,d,Ae)}}},fa=new Map,Zt=r=>{let e=r&&r.env||{},{fetch:t,Request:n,Response:s}=e,a=[n,s,t],i=a.length,o=i,l,c,u=fa;for(;o--;)l=a[o],c=u.get(l),c===void 0&&u.set(l,c=o?new Map:ya(e)),u=c;return c},Nc=Zt();var $t={http:Ze,xhr:rn,fetch:{get:Zt}};p.forEach($t,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});var cn=r=>`- ${r}`,ha=r=>p.isFunction(r)||r===null||r===!1;function _a(r,e){r=p.isArray(r)?r:[r];let{length:t}=r,n,s,a={};for(let i=0;i<t;i++){n=r[i];let o;if(s=n,!ha(n)&&(s=$t[(o=String(n)).toLowerCase()],s===void 0))throw new v(`Unknown adapter '${o}'`);if(s&&(p.isFunction(s)||(s=s.get(e))))break;a[o||"#"+i]=s}if(!s){let i=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build")),o=t?i.length>1?`since :
17
- `+i.map(cn).join(`
18
- `):" "+cn(i[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s}var st={getAdapter:_a,adapters:$t};function Yt(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new ee(null,r)}function at(r){return Yt(r),r.headers=Q.from(r.headers),r.data=Ee.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),st.getAdapter(r.adapter||fe.adapter,r)(r).then(function(n){return Yt(r),n.data=Ee.call(r,r.transformResponse,n),n.headers=Q.from(n.headers),n},function(n){return ke(n)||(Yt(r),n&&n.response&&(n.response.data=Ee.call(r,r.transformResponse,n.response),n.response.headers=Q.from(n.response.headers))),Promise.reject(n)})}var it="1.13.2";var ot={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{ot[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var ln={};ot.transitional=function(e,t,n){function s(a,i){return"[Axios v"+it+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,o)=>{if(e===!1)throw new v(s(i," has been removed"+(t?" in "+t:"")),v.ERR_DEPRECATED);return t&&!ln[i]&&(ln[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,i,o):!0}};ot.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Sa(r,e,t){if(typeof r!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),s=n.length;for(;s-- >0;){let a=n[s],i=e[a];if(i){let o=r[a],l=o===void 0||i(o,a,r);if(l!==!0)throw new v("option "+a+" must be "+l,v.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new v("Unknown option "+a,v.ERR_BAD_OPTION)}}var Le={assertOptions:Sa,validators:ot};var te=Le.validators,_e=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Mt,response:new Mt}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;let a=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
19
- `+a):n.stack=a}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=K(this.defaults,t);let{transitional:n,paramsSerializer:s,headers:a}=t;n!==void 0&&Le.assertOptions(n,{silentJSONParsing:te.transitional(te.boolean),forcedJSONParsing:te.transitional(te.boolean),clarifyTimeoutError:te.transitional(te.boolean)},!1),s!=null&&(p.isFunction(s)?t.paramsSerializer={serialize:s}:Le.assertOptions(s,{encode:te.function,serialize:te.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Le.assertOptions(t,{baseUrl:te.spelling("baseURL"),withXsrfToken:te.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&p.merge(a.common,a[t.method]);a&&p.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),t.headers=Q.concat(i,a);let o=[],l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(t)===!1||(l=l&&f.synchronous,o.unshift(f.fulfilled,f.rejected))});let c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,g=0,m;if(!l){let d=[at.bind(this),void 0];for(d.unshift(...o),d.push(...c),m=d.length,u=Promise.resolve(t);g<m;)u=u.then(d[g++],d[g++]);return u}m=o.length;let y=t;for(;g<m;){let d=o[g++],f=o[g++];try{y=d(y)}catch(b){f.call(this,b);break}}try{u=at.call(this,y)}catch(d){return Promise.reject(d)}for(g=0,m=c.length;g<m;)u=u.then(c[g++],c[g++]);return u}getUri(e){e=K(this.defaults,e);let t=Ve(e.baseURL,e.url,e.allowAbsoluteUrls);return Pe(t,e.params,e.paramsSerializer)}};p.forEach(["delete","get","head","options"],function(e){_e.prototype[e]=function(t,n){return this.request(K(n||{},{method:e,url:t,data:(n||{}).data}))}});p.forEach(["post","put","patch"],function(e){function t(n){return function(a,i,o){return this.request(K(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}_e.prototype[e]=t(),_e.prototype[e+"Form"]=t(!0)});var Oe=_e;var er=class r{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});let n=this;this.promise.then(s=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](s);n._listeners=null}),this.promise.then=s=>{let a,i=new Promise(o=>{n.subscribe(o),a=o}).then(s);return i.cancel=function(){n.unsubscribe(a)},i},e(function(a,i,o){n.reason||(n.reason=new ee(a,i,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new r(function(s){e=s}),cancel:e}}},gn=er;function tr(r){return function(t){return r.apply(null,t)}}function rr(r){return p.isObject(r)&&r.isAxiosError===!0}var nr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(nr).forEach(([r,e])=>{nr[e]=r});var pn=nr;function mn(r){let e=new Oe(r),t=Re(Oe.prototype.request,e);return p.extend(t,Oe.prototype,e,{allOwnKeys:!0}),p.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return mn(K(r,s))},t}var G=mn(fe);G.Axios=Oe;G.CanceledError=ee;G.CancelToken=gn;G.isCancel=ke;G.VERSION=it;G.toFormData=oe;G.AxiosError=v;G.Cancel=G.CanceledError;G.all=function(e){return Promise.all(e)};G.spread=tr;G.isAxiosError=rr;G.mergeConfig=K;G.AxiosHeaders=Q;G.formToJSON=r=>et(p.isHTMLForm(r)?new FormData(r):r);G.getAdapter=st.getAdapter;G.HttpStatusCode=pn;G.default=G;var E=G;var{Axios:Bl,AxiosError:Gl,CanceledError:Ql,isCancel:Nl,CancelToken:Ul,VERSION:Wl,all:jl,Cancel:Xl,isAxiosError:zl,spread:Hl,toFormData:Jl,AxiosHeaders:Kl,HttpStatusCode:Zl,formToJSON:$l,getAdapter:Yl,mergeConfig:eg}=E;var V="https://api.seekora.com/api".replace(/\/+$/,"");var re=class{constructor(e,t=V,n=E){this.basePath=t;this.axios=n;e&&(this.configuration=e,this.basePath=e.basePath??t)}},ut=class extends Error{constructor(t,n){super(n);this.field=t;this.name="RequiredError"}},L={};var O="https://example.com",h=function(r,e,t){if(t==null)throw new ut(e,`Required parameter ${e} was null or undefined when calling ${r}.`)};function sr(r,e,t=""){e!=null&&(typeof e=="object"?Array.isArray(e)||e instanceof Set?e.forEach(n=>sr(r,n,t)):Object.keys(e).forEach(n=>sr(r,e[n],`${t}${t!==""?".":""}${n}`)):r.has(t)?r.append(t,e):r.set(t,e))}var F=function(r,...e){let t=new URLSearchParams(r.search);sr(t,e),r.search=t.toString()},xa=function(r,e){return e instanceof Set?Array.from(e):e},Z=function(r,e,t){let n=typeof r!="string";return(n&&t&&t.isJsonMime?t.isJsonMime(e.headers["Content-Type"]):n)?JSON.stringify(r!==void 0?r:{},xa):r||""},M=function(r){return r.pathname+r.search+r.hash},B=function(r,e,t,n){return(s=e,a=t)=>{let i={...r.options,url:(s.defaults.baseURL?"":(n==null?void 0:n.basePath)??a)+r.url};return s.request(i)}};var va=function(r){return{analyticsBatchPost:async(e,t,n,s={})=>{h("analyticsBatchPost","xStoreid",e),h("analyticsBatchPost","xStoresecret",t),h("analyticsBatchPost","analyticsBatchPostRequest",n);let a="/analytics/batch",i=new URL(a,O),o;r&&(o=r.baseOptions);let l={method:"POST",...o,...s},c={},u={};c["Content-Type"]="application/json",c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),F(i,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},l.data=Z(n,l,r),{url:M(i),options:l}},analyticsConfigGet:async(e,t,n={})=>{h("analyticsConfigGet","xStoreid",e),h("analyticsConfigGet","xStoresecret",t);let s="/analytics/config",a=new URL(s,O),i;r&&(i=r.baseOptions);let o={method:"GET",...i,...n},l={},c={};l.Accept="application/json",e!=null&&(l["x-storeid"]=String(e)),t!=null&&(l["x-storesecret"]=String(t)),F(a,c);let u=i&&i.headers?i.headers:{};return o.headers={...l,...u,...n.headers},{url:M(a),options:o}},analyticsEventPost:async(e,t,n,s={})=>{h("analyticsEventPost","xStoreid",e),h("analyticsEventPost","xStoresecret",t),h("analyticsEventPost","dataTypesEventPayload",n);let a="/analytics/event",i=new URL(a,O),o;r&&(o=r.baseOptions);let l={method:"POST",...o,...s},c={},u={};c["Content-Type"]="application/json",c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),F(i,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},l.data=Z(n,l,r),{url:M(i),options:l}},analyticsSchemaGet:async(e,t,n={})=>{h("analyticsSchemaGet","xStoreid",e),h("analyticsSchemaGet","xStoresecret",t);let s="/analytics/schema",a=new URL(s,O),i;r&&(i=r.baseOptions);let o={method:"GET",...i,...n},l={},c={};l.Accept="application/json",e!=null&&(l["x-storeid"]=String(e)),t!=null&&(l["x-storesecret"]=String(t)),F(a,c);let u=i&&i.headers?i.headers:{};return o.headers={...l,...u,...n.headers},{url:M(a),options:o}},analyticsValidatePost:async(e,t,n,s={})=>{h("analyticsValidatePost","xStoreid",e),h("analyticsValidatePost","xStoresecret",t),h("analyticsValidatePost","dataTypesEventPayload",n);let a="/analytics/validate",i=new URL(a,O),o;r&&(o=r.baseOptions);let l={method:"POST",...o,...s},c={},u={};c["Content-Type"]="application/json",c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),F(i,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},l.data=Z(n,l,r),{url:M(i),options:l}}}},Fe=function(r){let e=va(r);return{async analyticsBatchPost(t,n,s,a){var c,u;let i=await e.analyticsBatchPost(t,n,s,a),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["AnalyticsEventsApi.analyticsBatchPost"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(i,E,V,r)(g,l||m)},async analyticsConfigGet(t,n,s){var l,c;let a=await e.analyticsConfigGet(t,n,s),i=(r==null?void 0:r.serverIndex)??0,o=(c=(l=L["AnalyticsEventsApi.analyticsConfigGet"])==null?void 0:l[i])==null?void 0:c.url;return(u,g)=>B(a,E,V,r)(u,o||g)},async analyticsEventPost(t,n,s,a){var c,u;let i=await e.analyticsEventPost(t,n,s,a),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["AnalyticsEventsApi.analyticsEventPost"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(i,E,V,r)(g,l||m)},async analyticsSchemaGet(t,n,s){var l,c;let a=await e.analyticsSchemaGet(t,n,s),i=(r==null?void 0:r.serverIndex)??0,o=(c=(l=L["AnalyticsEventsApi.analyticsSchemaGet"])==null?void 0:l[i])==null?void 0:c.url;return(u,g)=>B(a,E,V,r)(u,o||g)},async analyticsValidatePost(t,n,s,a){var c,u;let i=await e.analyticsValidatePost(t,n,s,a),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["AnalyticsEventsApi.analyticsValidatePost"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(i,E,V,r)(g,l||m)}}};var ct=class extends re{analyticsBatchPost(e,t,n,s){return Fe(this.configuration).analyticsBatchPost(e,t,n,s).then(a=>a(this.axios,this.basePath))}analyticsConfigGet(e,t,n){return Fe(this.configuration).analyticsConfigGet(e,t,n).then(s=>s(this.axios,this.basePath))}analyticsEventPost(e,t,n,s){return Fe(this.configuration).analyticsEventPost(e,t,n,s).then(a=>a(this.axios,this.basePath))}analyticsSchemaGet(e,t,n){return Fe(this.configuration).analyticsSchemaGet(e,t,n).then(s=>s(this.axios,this.basePath))}analyticsValidatePost(e,t,n,s){return Fe(this.configuration).analyticsValidatePost(e,t,n,s).then(a=>a(this.axios,this.basePath))}},Da=function(r){return{v1SuggestionsConfigGet:async(e,t,n={})=>{h("v1SuggestionsConfigGet","xStoreid",e),h("v1SuggestionsConfigGet","xStoresecret",t);let s="/v1/suggestions/config",a=new URL(s,O),i;r&&(i=r.baseOptions);let o={method:"GET",...i,...n},l={},c={};l.Accept="application/json",e!=null&&(l["x-storeid"]=String(e)),t!=null&&(l["x-storesecret"]=String(t)),F(a,c);let u=i&&i.headers?i.headers:{};return o.headers={...l,...u,...n.headers},{url:M(a),options:o}},v1SuggestionsQueriesGet:async(e,t,n,s,a,i,o,l,c,u,g,m,y,d,f,b,S,R={})=>{h("v1SuggestionsQueriesGet","xStoreid",e),h("v1SuggestionsQueriesGet","xStoresecret",t);let x="/v1/suggestions/queries",A=new URL(x,O),T;r&&(T=r.baseOptions);let w={method:"GET",...T,...R},C={},_={};i!==void 0&&(_.query=i),o!==void 0&&(_.hitsPerPage=o),l!==void 0&&(_.page=l),c!==void 0&&(_.analytics_tags=c),u!==void 0&&(_.tags_match_mode=u),g!==void 0&&(_.include_categories=g),m!==void 0&&(_.include_facets=m),y!==void 0&&(_.max_categories=y),d!==void 0&&(_.max_facets=d),f!==void 0&&(_.min_popularity=f),b!==void 0&&(_.time_range=b),S!==void 0&&(_.disable_typo_tolerance=S),C.Accept="application/json",e!=null&&(C["x-storeid"]=String(e)),t!=null&&(C["x-storesecret"]=String(t)),n!=null&&(C["x-user-id"]=String(n)),s!=null&&(C["x-anon-id"]=String(s)),a!=null&&(C["x-session-id"]=String(a)),F(A,_);let D=T&&T.headers?T.headers:{};return w.headers={...C,...D,...R.headers},{url:M(A),options:w}},v1SuggestionsQueriesPost:async(e,t,n,s,a,i,o={})=>{h("v1SuggestionsQueriesPost","xStoreid",e),h("v1SuggestionsQueriesPost","xStoresecret",t);let l="/v1/suggestions/queries",c=new URL(l,O),u;r&&(u=r.baseOptions);let g={method:"POST",...u,...o},m={},y={};m["Content-Type"]="application/json",m.Accept="application/json",e!=null&&(m["x-storeid"]=String(e)),t!=null&&(m["x-storesecret"]=String(t)),n!=null&&(m["x-user-id"]=String(n)),s!=null&&(m["x-anon-id"]=String(s)),a!=null&&(m["x-session-id"]=String(a)),F(c,y);let d=u&&u.headers?u.headers:{};return g.headers={...m,...d,...o.headers},g.data=Z(i,g,r),{url:M(c),options:g}}}},ar=function(r){let e=Da(r);return{async v1SuggestionsConfigGet(t,n,s){var l,c;let a=await e.v1SuggestionsConfigGet(t,n,s),i=(r==null?void 0:r.serverIndex)??0,o=(c=(l=L["QuerySuggestionsApi.v1SuggestionsConfigGet"])==null?void 0:l[i])==null?void 0:c.url;return(u,g)=>B(a,E,V,r)(u,o||g)},async v1SuggestionsQueriesGet(t,n,s,a,i,o,l,c,u,g,m,y,d,f,b,S,R,x){var C,_;let A=await e.v1SuggestionsQueriesGet(t,n,s,a,i,o,l,c,u,g,m,y,d,f,b,S,R,x),T=(r==null?void 0:r.serverIndex)??0,w=(_=(C=L["QuerySuggestionsApi.v1SuggestionsQueriesGet"])==null?void 0:C[T])==null?void 0:_.url;return(D,P)=>B(A,E,V,r)(D,w||P)},async v1SuggestionsQueriesPost(t,n,s,a,i,o,l){var m,y;let c=await e.v1SuggestionsQueriesPost(t,n,s,a,i,o,l),u=(r==null?void 0:r.serverIndex)??0,g=(y=(m=L["QuerySuggestionsApi.v1SuggestionsQueriesPost"])==null?void 0:m[u])==null?void 0:y.url;return(d,f)=>B(c,E,V,r)(d,g||f)}}};var lt=class extends re{v1SuggestionsConfigGet(e,t,n){return ar(this.configuration).v1SuggestionsConfigGet(e,t,n).then(s=>s(this.axios,this.basePath))}v1SuggestionsQueriesGet(e,t,n,s,a,i,o,l,c,u,g,m,y,d,f,b,S,R){return ar(this.configuration).v1SuggestionsQueriesGet(e,t,n,s,a,i,o,l,c,u,g,m,y,d,f,b,S,R).then(x=>x(this.axios,this.basePath))}v1SuggestionsQueriesPost(e,t,n,s,a,i,o){return ar(this.configuration).v1SuggestionsQueriesPost(e,t,n,s,a,i,o).then(l=>l(this.axios,this.basePath))}};var Aa=function(r){return{apiV1StoresXStoreIDDocumentsBulkPost:async(e,t,n,s,a={})=>{h("apiV1StoresXStoreIDDocumentsBulkPost","xStoreid",e),h("apiV1StoresXStoreIDDocumentsBulkPost","xStoreWriteSecret",t),h("apiV1StoresXStoreIDDocumentsBulkPost","xStoreID",n),h("apiV1StoresXStoreIDDocumentsBulkPost","dataTypesBulkDocumentRequest",s);let i="/api/v1/stores/{xStoreID}/documents/bulk".replace("{xStoreID}",encodeURIComponent(String(n))),o=new URL(i,O),l;r&&(l=r.baseOptions);let c={method:"POST",...l,...a},u={},g={};u["Content-Type"]="application/json",u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),F(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...a.headers},c.data=Z(s,c,r),{url:M(o),options:c}},apiV1StoresXStoreIDDocumentsDocumentIDDelete:async(e,t,n,s,a={})=>{h("apiV1StoresXStoreIDDocumentsDocumentIDDelete","xStoreid",e),h("apiV1StoresXStoreIDDocumentsDocumentIDDelete","xStoreWriteSecret",t),h("apiV1StoresXStoreIDDocumentsDocumentIDDelete","xStoreID",n),h("apiV1StoresXStoreIDDocumentsDocumentIDDelete","documentID",s);let i="/api/v1/stores/{xStoreID}/documents/{documentID}".replace("{xStoreID}",encodeURIComponent(String(n))).replace("{documentID}",encodeURIComponent(String(s))),o=new URL(i,O),l;r&&(l=r.baseOptions);let c={method:"DELETE",...l,...a},u={},g={};u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),F(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...a.headers},{url:M(o),options:c}},apiV1StoresXStoreIDDocumentsPost:async(e,t,n,s,a={})=>{h("apiV1StoresXStoreIDDocumentsPost","xStoreid",e),h("apiV1StoresXStoreIDDocumentsPost","xStoreWriteSecret",t),h("apiV1StoresXStoreIDDocumentsPost","xStoreID",n),h("apiV1StoresXStoreIDDocumentsPost","dataTypesDocumentRequest",s);let i="/api/v1/stores/{xStoreID}/documents".replace("{xStoreID}",encodeURIComponent(String(n))),o=new URL(i,O),l;r&&(l=r.baseOptions);let c={method:"POST",...l,...a},u={},g={};u["Content-Type"]="application/json",u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),F(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...a.headers},c.data=Z(s,c,r),{url:M(o),options:c}}}},ir=function(r){let e=Aa(r);return{async apiV1StoresXStoreIDDocumentsBulkPost(t,n,s,a,i){var u,g;let o=await e.apiV1StoresXStoreIDDocumentsBulkPost(t,n,s,a,i),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKDocumentsApi.apiV1StoresXStoreIDDocumentsBulkPost"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,E,V,r)(m,c||y)},async apiV1StoresXStoreIDDocumentsDocumentIDDelete(t,n,s,a,i){var u,g;let o=await e.apiV1StoresXStoreIDDocumentsDocumentIDDelete(t,n,s,a,i),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKDocumentsApi.apiV1StoresXStoreIDDocumentsDocumentIDDelete"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,E,V,r)(m,c||y)},async apiV1StoresXStoreIDDocumentsPost(t,n,s,a,i){var u,g;let o=await e.apiV1StoresXStoreIDDocumentsPost(t,n,s,a,i),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKDocumentsApi.apiV1StoresXStoreIDDocumentsPost"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,E,V,r)(m,c||y)}}};var gt=class extends re{apiV1StoresXStoreIDDocumentsBulkPost(e,t,n,s,a){return ir(this.configuration).apiV1StoresXStoreIDDocumentsBulkPost(e,t,n,s,a).then(i=>i(this.axios,this.basePath))}apiV1StoresXStoreIDDocumentsDocumentIDDelete(e,t,n,s,a){return ir(this.configuration).apiV1StoresXStoreIDDocumentsDocumentIDDelete(e,t,n,s,a).then(i=>i(this.axios,this.basePath))}apiV1StoresXStoreIDDocumentsPost(e,t,n,s,a){return ir(this.configuration).apiV1StoresXStoreIDDocumentsPost(e,t,n,s,a).then(i=>i(this.axios,this.basePath))}},Ra=function(r){return{apiV1StoresXStoreIDQuerySuggestionsConfigGet:async(e,t,n,s={})=>{h("apiV1StoresXStoreIDQuerySuggestionsConfigGet","xStoreid",e),h("apiV1StoresXStoreIDQuerySuggestionsConfigGet","xStoresecret",t),h("apiV1StoresXStoreIDQuerySuggestionsConfigGet","xStoreID",n);let a="/api/v1/stores/{xStoreID}/query-suggestions/config".replace("{xStoreID}",encodeURIComponent(String(n))),i=new URL(a,O),o;r&&(o=r.baseOptions);let l={method:"GET",...o,...s},c={},u={};c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),F(i,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},{url:M(i),options:l}},apiV1StoresXStoreIDQuerySuggestionsConfigPut:async(e,t,n,s,a={})=>{h("apiV1StoresXStoreIDQuerySuggestionsConfigPut","xStoreid",e),h("apiV1StoresXStoreIDQuerySuggestionsConfigPut","xStoreWriteSecret",t),h("apiV1StoresXStoreIDQuerySuggestionsConfigPut","xStoreID",n),h("apiV1StoresXStoreIDQuerySuggestionsConfigPut","querySuggestionsServiceUpdateSuggestionConfigRequest",s);let i="/api/v1/stores/{xStoreID}/query-suggestions/config".replace("{xStoreID}",encodeURIComponent(String(n))),o=new URL(i,O),l;r&&(l=r.baseOptions);let c={method:"PUT",...l,...a},u={},g={};u["Content-Type"]="application/json",u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),F(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...a.headers},c.data=Z(s,c,r),{url:M(o),options:c}}}},dn=function(r){let e=Ra(r);return{async apiV1StoresXStoreIDQuerySuggestionsConfigGet(t,n,s,a){var c,u;let i=await e.apiV1StoresXStoreIDQuerySuggestionsConfigGet(t,n,s,a),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["SDKQuerySuggestionsConfigApi.apiV1StoresXStoreIDQuerySuggestionsConfigGet"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(i,E,V,r)(g,l||m)},async apiV1StoresXStoreIDQuerySuggestionsConfigPut(t,n,s,a,i){var u,g;let o=await e.apiV1StoresXStoreIDQuerySuggestionsConfigPut(t,n,s,a,i),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKQuerySuggestionsConfigApi.apiV1StoresXStoreIDQuerySuggestionsConfigPut"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,E,V,r)(m,c||y)}}};var pt=class extends re{apiV1StoresXStoreIDQuerySuggestionsConfigGet(e,t,n,s){return dn(this.configuration).apiV1StoresXStoreIDQuerySuggestionsConfigGet(e,t,n,s).then(a=>a(this.axios,this.basePath))}apiV1StoresXStoreIDQuerySuggestionsConfigPut(e,t,n,s,a){return dn(this.configuration).apiV1StoresXStoreIDQuerySuggestionsConfigPut(e,t,n,s,a).then(i=>i(this.axios,this.basePath))}},Ta=function(r){return{apiV1StoresXStoreIDDocumentsDelete:async(e,t,n,s={})=>{h("apiV1StoresXStoreIDDocumentsDelete","xStoreid",e),h("apiV1StoresXStoreIDDocumentsDelete","xStoreWriteSecret",t),h("apiV1StoresXStoreIDDocumentsDelete","xStoreID",n);let a="/api/v1/stores/{xStoreID}/documents".replace("{xStoreID}",encodeURIComponent(String(n))),i=new URL(a,O),o;r&&(o=r.baseOptions);let l={method:"DELETE",...o,...s},c={},u={};c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-store-write-secret"]=String(t)),F(i,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},{url:M(i),options:l}},apiV1StoresXStoreIDSchemaGet:async(e,t,n,s={})=>{h("apiV1StoresXStoreIDSchemaGet","xStoreid",e),h("apiV1StoresXStoreIDSchemaGet","xStoresecret",t),h("apiV1StoresXStoreIDSchemaGet","xStoreID",n);let a="/api/v1/stores/{xStoreID}/schema".replace("{xStoreID}",encodeURIComponent(String(n))),i=new URL(a,O),o;r&&(o=r.baseOptions);let l={method:"GET",...o,...s},c={},u={};c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),F(i,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},{url:M(i),options:l}},apiV1StoresXStoreIDSchemaPost:async(e,t,n,s,a={})=>{h("apiV1StoresXStoreIDSchemaPost","xStoreid",e),h("apiV1StoresXStoreIDSchemaPost","xStoreWriteSecret",t),h("apiV1StoresXStoreIDSchemaPost","xStoreID",n),h("apiV1StoresXStoreIDSchemaPost","dataTypesCollectionSchemaRequest",s);let i="/api/v1/stores/{xStoreID}/schema".replace("{xStoreID}",encodeURIComponent(String(n))),o=new URL(i,O),l;r&&(l=r.baseOptions);let c={method:"POST",...l,...a},u={},g={};u["Content-Type"]="application/json",u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),F(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...a.headers},c.data=Z(s,c,r),{url:M(o),options:c}}}},or=function(r){let e=Ta(r);return{async apiV1StoresXStoreIDDocumentsDelete(t,n,s,a){var c,u;let i=await e.apiV1StoresXStoreIDDocumentsDelete(t,n,s,a),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["SDKSchemaApi.apiV1StoresXStoreIDDocumentsDelete"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(i,E,V,r)(g,l||m)},async apiV1StoresXStoreIDSchemaGet(t,n,s,a){var c,u;let i=await e.apiV1StoresXStoreIDSchemaGet(t,n,s,a),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["SDKSchemaApi.apiV1StoresXStoreIDSchemaGet"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(i,E,V,r)(g,l||m)},async apiV1StoresXStoreIDSchemaPost(t,n,s,a,i){var u,g;let o=await e.apiV1StoresXStoreIDSchemaPost(t,n,s,a,i),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKSchemaApi.apiV1StoresXStoreIDSchemaPost"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,E,V,r)(m,c||y)}}};var mt=class extends re{apiV1StoresXStoreIDDocumentsDelete(e,t,n,s){return or(this.configuration).apiV1StoresXStoreIDDocumentsDelete(e,t,n,s).then(a=>a(this.axios,this.basePath))}apiV1StoresXStoreIDSchemaGet(e,t,n,s){return or(this.configuration).apiV1StoresXStoreIDSchemaGet(e,t,n,s).then(a=>a(this.axios,this.basePath))}apiV1StoresXStoreIDSchemaPost(e,t,n,s,a){return or(this.configuration).apiV1StoresXStoreIDSchemaPost(e,t,n,s,a).then(i=>i(this.axios,this.basePath))}},wa=function(r){return{apiV1StoresXStoreIDConfigGet:async(e,t,n,s={})=>{h("apiV1StoresXStoreIDConfigGet","xStoreid",e),h("apiV1StoresXStoreIDConfigGet","xStoresecret",t),h("apiV1StoresXStoreIDConfigGet","xStoreID",n);let a="/api/v1/stores/{xStoreID}/config".replace("{xStoreID}",encodeURIComponent(String(n))),i=new URL(a,O),o;r&&(o=r.baseOptions);let l={method:"GET",...o,...s},c={},u={};c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),F(i,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},{url:M(i),options:l}},apiV1StoresXStoreIDConfigPut:async(e,t,n,s,a={})=>{h("apiV1StoresXStoreIDConfigPut","xStoreid",e),h("apiV1StoresXStoreIDConfigPut","xStoreWriteSecret",t),h("apiV1StoresXStoreIDConfigPut","xStoreID",n),h("apiV1StoresXStoreIDConfigPut","dataTypesIndexConfig",s);let i="/api/v1/stores/{xStoreID}/config".replace("{xStoreID}",encodeURIComponent(String(n))),o=new URL(i,O),l;r&&(l=r.baseOptions);let c={method:"PUT",...l,...a},u={},g={};u["Content-Type"]="application/json",u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),F(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...a.headers},c.data=Z(s,c,r),{url:M(o),options:c}},apiV1StoresXStoreIDConfigSchemaGet:async(e,t,n,s={})=>{h("apiV1StoresXStoreIDConfigSchemaGet","xStoreid",e),h("apiV1StoresXStoreIDConfigSchemaGet","xStoresecret",t),h("apiV1StoresXStoreIDConfigSchemaGet","xStoreID",n);let a="/api/v1/stores/{xStoreID}/config-schema".replace("{xStoreID}",encodeURIComponent(String(n))),i=new URL(a,O),o;r&&(o=r.baseOptions);let l={method:"GET",...o,...s},c={},u={};c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),F(i,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},{url:M(i),options:l}}}},ur=function(r){let e=wa(r);return{async apiV1StoresXStoreIDConfigGet(t,n,s,a){var c,u;let i=await e.apiV1StoresXStoreIDConfigGet(t,n,s,a),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["SDKStoreConfigApi.apiV1StoresXStoreIDConfigGet"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(i,E,V,r)(g,l||m)},async apiV1StoresXStoreIDConfigPut(t,n,s,a,i){var u,g;let o=await e.apiV1StoresXStoreIDConfigPut(t,n,s,a,i),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKStoreConfigApi.apiV1StoresXStoreIDConfigPut"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,E,V,r)(m,c||y)},async apiV1StoresXStoreIDConfigSchemaGet(t,n,s,a){var c,u;let i=await e.apiV1StoresXStoreIDConfigSchemaGet(t,n,s,a),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["SDKStoreConfigApi.apiV1StoresXStoreIDConfigSchemaGet"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(i,E,V,r)(g,l||m)}}};var dt=class extends re{apiV1StoresXStoreIDConfigGet(e,t,n,s){return ur(this.configuration).apiV1StoresXStoreIDConfigGet(e,t,n,s).then(a=>a(this.axios,this.basePath))}apiV1StoresXStoreIDConfigPut(e,t,n,s,a){return ur(this.configuration).apiV1StoresXStoreIDConfigPut(e,t,n,s,a).then(i=>i(this.axios,this.basePath))}apiV1StoresXStoreIDConfigSchemaGet(e,t,n,s){return ur(this.configuration).apiV1StoresXStoreIDConfigSchemaGet(e,t,n,s).then(a=>a(this.axios,this.basePath))}};var Ca=function(r){return{v1SearchPost:async(e,t,n,s,a,i,o={})=>{h("v1SearchPost","xStoreid",e),h("v1SearchPost","xStoresecret",t),h("v1SearchPost","dataTypesPublicSearchRequest",n);let l="/v1/search",c=new URL(l,O),u;r&&(u=r.baseOptions);let g={method:"POST",...u,...o},m={},y={};m["Content-Type"]="application/json",m.Accept="application/json",e!=null&&(m["x-storeid"]=String(e)),t!=null&&(m["x-storesecret"]=String(t)),s!=null&&(m["x-user-id"]=String(s)),a!=null&&(m["x-anon-id"]=String(a)),i!=null&&(m["x-session-id"]=String(i)),F(c,y);let d=u&&u.headers?u.headers:{};return g.headers={...m,...d,...o.headers},g.data=Z(n,g,r),{url:M(c),options:g}}}},Pa=function(r){let e=Ca(r);return{async v1SearchPost(t,n,s,a,i,o,l){var m,y;let c=await e.v1SearchPost(t,n,s,a,i,o,l),u=(r==null?void 0:r.serverIndex)??0,g=(y=(m=L["SearchApi.v1SearchPost"])==null?void 0:m[u])==null?void 0:y.url;return(d,f)=>B(c,E,V,r)(d,g||f)}}};var yt=class extends re{v1SearchPost(e,t,n,s,a,i,o){return Pa(this.configuration).v1SearchPost(e,t,n,s,a,i,o).then(l=>l(this.axios,this.basePath))}};var ft=class{constructor(e={}){var t;this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.awsv4=e.awsv4,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions={...e.baseOptions,headers:{...(t=e.baseOptions)==null?void 0:t.headers}},this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!==null&&(t.test(e)||e.toLowerCase()==="application/json-patch+json")}};var cr={production:{baseUrl:"https://api.seekora.com/api",name:"Production"}};function bt(r,e){return e||cr.production.baseUrl}function yn(r){return"production"}var lr={verbose:0,info:1,warn:2,error:3,silent:4};function Be(){var s;let r;typeof process<"u"&&process.env?r=(s=process.env.SEEKORA_LOG_LEVEL)==null?void 0:s.toLowerCase():typeof window<"u"&&window.SEEKORA_LOG_LEVEL&&(r=String(window.SEEKORA_LOG_LEVEL).toLowerCase());let e={verbose:"verbose",info:"info",warn:"warn",warning:"warn",error:"error",silent:"silent",debug:"verbose",fatal:"error"};if(r&&e[r])return e[r];let t=typeof process<"u"&&process.env?"production":void 0,n=typeof process<"u"&&process.env?process.env.DEBUG:void 0;return t==="development"||n?"verbose":"info"}var Me=class{constructor(e={}){this.level=e.level||Be(),this.levelValue=lr[this.level],this.enableConsole=e.enableConsole!==!1,this.enableFile=e.enableFile||!1,this.filePath=e.filePath,this.format=e.format||"text",this.enableTimestamp=e.enableTimestamp!==!1,this.prefix=e.prefix||"[Seekora SDK]",this.enablePrefix=e.enablePrefix!==!1}shouldLog(e){return this.level==="silent"?!1:lr[e]>=this.levelValue}formatMessage(e,t,n){let s=[];if(this.enableTimestamp){let a=new Date().toISOString();s.push(`[${a}]`)}if(this.enablePrefix&&this.prefix&&s.push(this.prefix),s.push(`[${e.toUpperCase()}]`),s.push(t),n&&Object.keys(n).length>0){if(this.format==="json")return JSON.stringify({timestamp:this.enableTimestamp?new Date().toISOString():void 0,level:e,message:t,...n});s.push(JSON.stringify(n,null,2))}return s.join(" ")}write(e,t,n){if(!this.shouldLog(e))return;let s=this.formatMessage(e,t,n);this.enableConsole&&(e==="error"?console.error:e==="warn"?console.warn:console.log)(s),this.enableFile&&this.filePath}verbose(e,t){this.write("verbose",e,t)}info(e,t){this.write("info",e,t)}warn(e,t){this.write("warn",e,t)}error(e,t){this.write("error",e,t)}debug(e,t){this.verbose(e,t)}fatal(e,t){this.error(e,t)}setLevel(e){this.level=e,this.levelValue=lr[e]}getLevel(){return this.level}};function Ge(r){return new Me(r)}var _g=Ge();var ht,_t;try{typeof window>"u"&&typeof Xe<"u"&&(ht=Xe("fs"),_t=Xe("path"))}catch{}function Ia(){let r=[".seekora.json",".seekora.yaml",".seekora.yml","seekora.config.json","seekora.config.yaml","seekora.config.yml"];if(_t&&typeof process<"u"&&process.env){let e=process.env.HOME||process.env.USERPROFILE||"";e&&r.push(_t.join(e,".seekora.json"),_t.join(e,".seekora.yaml"))}return r}function gr(r){if(!ht||typeof window<"u")return null;let e=r?[r]:Ia();for(let t of e)if(t)try{if(!ht.existsSync(t))continue;let n=ht.readFileSync(t,"utf-8"),s;if(t.endsWith(".yaml")||t.endsWith(".yml"))try{s=JSON.parse(n)}catch{throw new Error("YAML parsing not fully supported. Use JSON or install yaml package.")}else s=JSON.parse(n);return s}catch{continue}return null}function pr(){return typeof window<"u"&&window.SEEKORA_CONFIG?window.SEEKORA_CONFIG:typeof process<"u"&&process.env?{storeId:process.env.SEEKORA_STORE_ID,readSecret:process.env.SEEKORA_READ_SECRET,writeSecret:process.env.SEEKORA_WRITE_SECRET,baseUrl:process.env.SEEKORA_BASE_URL,environment:process.env.SEEKORA_ENV,timeout:process.env.SEEKORA_TIMEOUT?parseInt(process.env.SEEKORA_TIMEOUT,10):void 0,logLevel:process.env.SEEKORA_LOG_LEVEL}:{}}function Ea(r,e,t){let n={};if(r&&Object.assign(n,r),Object.assign(n,e),Object.assign(n,t),!n.storeId)throw new Error("storeId is required. Provide it in config file, environment variable, or code.");if(!n.readSecret)throw new Error("readSecret is required. Provide it in config file, environment variable, or code.");return n}function St(r={}){let e=gr(r.configFile),t=pr();return Ea(e,t,r)}function ue(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){let e=Math.random()*16|0;return(r==="x"?e:e&3|8).toString(16)})}function fn(){if(typeof window<"u"&&(window!=null&&window.localStorage)){let r="seekora_anon_id",e=window.localStorage,t=e.getItem(r);return t||(t=ue(),e.setItem(r,t)),t}return global.__seekora_anon_id||(global.__seekora_anon_id=ue()),global.__seekora_anon_id}function bn(){if(typeof window<"u"&&(window!=null&&window.sessionStorage)){let r="seekora_session_id",e=window.sessionStorage,t=e.getItem(r);return t||(t=ue(),e.setItem(r,t)),t}return global.__seekora_session_id||(global.__seekora_session_id=ue()),global.__seekora_session_id}var Ct=null;async function qo(){if(Ct)return Ct;try{return Ct=await Promise.resolve().then(()=>($n(),Zn)),Ct}catch{return null}}var Vo={enableFingerprinting:!0,useFingerprintJS:!0,enableCanvasFingerprint:!0,enableWebGLFingerprint:!0,enableAudioFingerprint:!1,autoCollect:!0,cacheDuration:3e4,fingerprintStorageKey:"seekora_device_fp",enableExtendedComponents:!0},Pt=class{constructor(e={}){this.cachedContext=null;this.cacheTimestamp=0;this.cachedFingerprint=null;this.fingerprintJSAgent=null;this.fingerprintJSLoading=null;this.usingFingerprintJS=!1;this.config={...Vo,...e},this.config.enableFingerprinting&&(this.loadCachedFingerprint(),this.config.useFingerprintJS&&this.isBrowser()&&this.initFingerprintJS())}async initFingerprintJS(){this.fingerprintJSAgent||this.fingerprintJSLoading||(this.fingerprintJSLoading=(async()=>{try{let e=await qo();e&&(this.fingerprintJSAgent=await e.load(),this.usingFingerprintJS=!0,console.debug("[Seekora] FingerprintJS initialized successfully"))}catch{console.debug("[Seekora] FingerprintJS not available, using manual fingerprinting")}return this.fingerprintJSAgent})(),await this.fingerprintJSLoading)}async getFingerprintJSAgent(){return this.fingerprintJSAgent?this.fingerprintJSAgent:this.fingerprintJSLoading?(await this.fingerprintJSLoading,this.fingerprintJSAgent):(await this.initFingerprintJS(),this.fingerprintJSAgent)}isBrowser(){return typeof window<"u"&&typeof document<"u"}async collect(){if(this.cachedContext&&this.config.cacheDuration>0&&Date.now()-this.cacheTimestamp<this.config.cacheDuration)return this.cachedContext.document_visibility=this.getDocumentVisibility(),this.cachedContext.viewport_width=this.getViewportWidth(),this.cachedContext.viewport_height=this.getViewportHeight(),this.cachedContext;let e=await this.collectFresh();return this.cachedContext=e,this.cacheTimestamp=Date.now(),e}async collectFresh(){if(!this.isBrowser())return this.getServerContext();let e=this.parseUTMParameters(),t=this.getConnectionInfo(),n=this.parseBrowserInfo(),s={screen_width:screen.width||0,screen_height:screen.height||0,viewport_width:this.getViewportWidth(),viewport_height:this.getViewportHeight(),color_depth:screen.colorDepth||screen.pixelDepth||24,pixel_ratio:window.devicePixelRatio||1,browser_name:n.name,browser_version:n.version,browser_language:navigator.language||"en",browser_languages:Array.from(navigator.languages||[navigator.language||"en"]),timezone:this.getTimezone(),timezone_offset:new Date().getTimezoneOffset(),page_url:this.sanitizeUrl(window.location.href),page_path:window.location.pathname,page_title:document.title||"",page_referrer:this.sanitizeUrl(document.referrer||""),document_visibility:this.getDocumentVisibility(),...e,...t,platform:this.detectPlatform(),is_mobile:this.isMobile(),is_tablet:this.isTablet(),is_touch_device:this.isTouchDevice(),hardware_concurrency:navigator.hardwareConcurrency,max_touch_points:navigator.maxTouchPoints,device_memory:navigator.deviceMemory};return this.config.enableFingerprinting&&(s.device_fingerprint=await this.getOrGenerateFingerprint()),s}getServerContext(){return{screen_width:0,screen_height:0,viewport_width:0,viewport_height:0,color_depth:0,pixel_ratio:1,browser_name:"node",browser_version:process.version||"",browser_language:"en",browser_languages:["en"],timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",timezone_offset:new Date().getTimezoneOffset(),page_url:"",page_path:"",page_title:"",page_referrer:"",document_visibility:"visible",platform:process.platform||"unknown",is_mobile:!1,is_tablet:!1,is_touch_device:!1}}getViewportWidth(){var e,t;return this.isBrowser()&&(window.innerWidth||((e=document.documentElement)==null?void 0:e.clientWidth)||((t=document.body)==null?void 0:t.clientWidth))||0}getViewportHeight(){var e,t;return this.isBrowser()&&(window.innerHeight||((e=document.documentElement)==null?void 0:e.clientHeight)||((t=document.body)==null?void 0:t.clientHeight))||0}getDocumentVisibility(){return this.isBrowser()&&document.visibilityState||"visible"}getTimezone(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}parseUTMParameters(){if(!this.isBrowser())return{};try{let e=new URLSearchParams(window.location.search),t={},n=e.get("utm_source"),s=e.get("utm_medium"),a=e.get("utm_campaign"),i=e.get("utm_term"),o=e.get("utm_content");if(n&&(t.utm_source=n),s&&(t.utm_medium=s),a&&(t.utm_campaign=a),i&&(t.utm_term=i),o&&(t.utm_content=o),Object.keys(t).length===0&&document.referrer)try{let l=new URL(document.referrer),c=new URLSearchParams(l.search),u=c.get("utm_source"),g=c.get("utm_medium"),m=c.get("utm_campaign"),y=c.get("utm_term"),d=c.get("utm_content");u&&(t.utm_source=u),g&&(t.utm_medium=g),m&&(t.utm_campaign=m),y&&(t.utm_term=y),d&&(t.utm_content=d)}catch{}return t}catch{return{}}}getConnectionInfo(){if(!this.isBrowser())return{};let e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e?{connection_type:e.type,connection_effective_type:e.effectiveType,connection_downlink:e.downlink,connection_rtt:e.rtt}:{}}parseBrowserInfo(){if(!this.isBrowser())return{name:"node",version:process.version||""};let e=navigator.userAgent,t="unknown",n="";if(e.includes("Firefox/")){t="firefox";let s=e.match(/Firefox\/(\d+\.?\d*)/);n=s?s[1]:""}else if(e.includes("Edg/")){t="edge";let s=e.match(/Edg\/(\d+\.?\d*)/);n=s?s[1]:""}else if(e.includes("OPR/")||e.includes("Opera/")){t="opera";let s=e.match(/(?:OPR|Opera)\/(\d+\.?\d*)/);n=s?s[1]:""}else if(e.includes("Chrome/")){t="chrome";let s=e.match(/Chrome\/(\d+\.?\d*)/);n=s?s[1]:""}else if(e.includes("Safari/")&&!e.includes("Chrome")){t="safari";let s=e.match(/Version\/(\d+\.?\d*)/);n=s?s[1]:""}else if(e.includes("MSIE")||e.includes("Trident/")){t="ie";let s=e.match(/(?:MSIE |rv:)(\d+\.?\d*)/);n=s?s[1]:""}return{name:t,version:n}}detectPlatform(){if(!this.isBrowser())return process.platform||"unknown";let e=navigator.userAgent.toLowerCase(),t=(navigator.platform||"").toLowerCase();return e.includes("android")?"android":e.includes("iphone")||e.includes("ipad")||e.includes("ipod")?"ios":t.includes("mac")||e.includes("mac os")?"macos":t.includes("win")||e.includes("windows")?"windows":t.includes("linux")||e.includes("linux")?"linux":e.includes("cros")?"chromeos":"unknown"}isMobile(){if(!this.isBrowser())return!1;let e=navigator.userAgent.toLowerCase();return/android|webos|iphone|ipod|blackberry|iemobile|opera mini|mobile/i.test(e)}isTablet(){if(!this.isBrowser())return!1;let e=navigator.userAgent.toLowerCase();return/ipad|tablet|playbook|silk/i.test(e)||e.includes("android")&&!e.includes("mobile")}isTouchDevice(){return this.isBrowser()?"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0:!1}sanitizeUrl(e){if(!e)return"";try{let t=new URL(e);return["password","token","api_key","apikey","secret","auth","key"].forEach(s=>{t.searchParams.has(s)&&t.searchParams.set(s,"[REDACTED]")}),t.toString()}catch{return e}}loadCachedFingerprint(){if(this.isBrowser())try{let e=localStorage.getItem(this.config.fingerprintStorageKey);e&&(this.cachedFingerprint=e)}catch{}}async getOrGenerateFingerprint(){if(this.cachedFingerprint)return this.cachedFingerprint;let e=await this.generateFingerprint();if(this.cachedFingerprint=e,this.isBrowser())try{localStorage.setItem(this.config.fingerprintStorageKey,e)}catch{}return e}async generateFingerprint(){var e;if(this.config.useFingerprintJS&&this.isBrowser())try{let t=await this.getFingerprintJSAgent();if(t){let n=await t.get();return console.debug("[Seekora] FingerprintJS fingerprint generated:",{visitorId:n.visitorId,confidence:(e=n.confidence)==null?void 0:e.score,components:Object.keys(n.components||{}).length}),n.visitorId}}catch(t){console.debug("[Seekora] FingerprintJS failed, falling back to manual:",t)}return this.generateManualFingerprint()}async generateManualFingerprint(){var t;let e=[];if(!this.isBrowser())return e.push(process.platform||"unknown",process.version||"unknown",process.arch||"unknown"),this.hashComponents(e);if(e.push(screen.width,screen.height,screen.colorDepth,window.devicePixelRatio||1,screen.availWidth||0,screen.availHeight||0),e.push(navigator.language,((t=navigator.languages)==null?void 0:t.join(","))||"",navigator.hardwareConcurrency||0,navigator.maxTouchPoints||0,navigator.deviceMemory||0,navigator.cookieEnabled?1:0,navigator.doNotTrack||""),e.push(this.getTimezone()),e.push(navigator.platform||"",navigator.vendor||"",navigator.userAgent||""),navigator.plugins&&(e.push(navigator.plugins.length),this.config.enableExtendedComponents)){let n=Array.from(navigator.plugins).map(s=>s.name).sort().join(",");e.push(n)}if(this.config.enableCanvasFingerprint){let n=this.getCanvasFingerprint();n&&e.push(n)}if(this.config.enableWebGLFingerprint){let n=this.getWebGLFingerprint();n&&e.push(n)}if(this.config.enableAudioFingerprint){let n=await this.getAudioFingerprint();n&&e.push(n)}if(this.config.enableExtendedComponents){let n=this.getFontFingerprint();n&&e.push(n);let s=this.getWebGLParameters();s&&e.push(s)}return this.hashComponents(e)}async getAudioFingerprint(){if(!this.isBrowser())return null;try{let e=window.AudioContext||window.webkitAudioContext;if(!e)return null;let t=new e,n=t.createOscillator(),s=t.createAnalyser(),a=t.createGain(),i=t.createScriptProcessor(4096,1,1);n.type="triangle",n.frequency.setValueAtTime(1e4,t.currentTime),a.gain.setValueAtTime(0,t.currentTime),n.connect(s),s.connect(i),i.connect(a),a.connect(t.destination),n.start(0);let o=new Float32Array(s.frequencyBinCount);s.getFloatFrequencyData(o),n.stop(),await t.close();let l=o.slice(0,30).reduce((c,u)=>c+Math.abs(u),0);return this.simpleHash(l.toString())}catch{return null}}getFontFingerprint(){if(!this.isBrowser())return null;try{let e=["Arial","Courier New","Georgia","Helvetica","Times New Roman","Verdana","Comic Sans MS","Impact","Lucida Console","Tahoma","Trebuchet MS","Palatino Linotype","Century Gothic","Garamond"],n=document.createElement("canvas").getContext("2d");if(!n)return null;let s="mmmmmmmmmmlli",a="monospace";n.font=`72px ${a}`;let i=n.measureText(s).width,o=[];for(let l of e)n.font=`72px "${l}", ${a}`,n.measureText(s).width!==i&&o.push(l);return this.simpleHash(o.join(","))}catch{return null}}getWebGLParameters(){var e;if(!this.isBrowser())return null;try{let t=document.createElement("canvas"),n=t.getContext("webgl")||t.getContext("experimental-webgl");if(!n)return null;let s=[n.getParameter(n.MAX_VERTEX_ATTRIBS),n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),n.getParameter(n.MAX_VARYING_VECTORS),n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS),n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),n.getParameter(n.MAX_RENDERBUFFER_SIZE),((e=n.getParameter(n.MAX_VIEWPORT_DIMS))==null?void 0:e.toString())||""];return this.simpleHash(s.join(","))}catch{return null}}getCanvasFingerprint(){if(!this.isBrowser())return null;try{let e=document.createElement("canvas"),t=e.getContext("2d");if(!t)return null;e.width=200,e.height=50,t.textBaseline="top",t.font="14px Arial",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText("Seekora SDK",2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText("Canvas FP",4,17);let n=e.toDataURL();return this.simpleHash(n)}catch{return null}}getWebGLFingerprint(){if(!this.isBrowser())return null;try{let e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)return null;let n=t.getExtension("WEBGL_debug_renderer_info");if(!n)return null;let s=t.getParameter(n.UNMASKED_VENDOR_WEBGL),a=t.getParameter(n.UNMASKED_RENDERER_WEBGL);return this.simpleHash(`${s}~${a}`)}catch{return null}}hashComponents(e){let t=e.map(n=>String(n)).join("|");return this.simpleHash(t)}simpleHash(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n),t=t&t;return(t>>>0).toString(16).padStart(8,"0")}clearCache(){this.cachedContext=null,this.cacheTimestamp=0}clearFingerprint(){if(this.cachedFingerprint=null,this.isBrowser())try{localStorage.removeItem(this.config.fingerprintStorageKey)}catch{}}getConfig(){return{...this.config}}updateConfig(e){this.config={...this.config,...e},this.clearCache()}isUsingFingerprintJS(){return this.usingFingerprintJS}async getFingerprintInfo(){var t;if(!this.config.enableFingerprinting)return{fingerprint:"",method:"manual",confidence:0};if(this.config.useFingerprintJS&&this.isBrowser())try{let n=await this.getFingerprintJSAgent();if(n){let s=await n.get();return{fingerprint:s.visitorId,method:"fingerprintjs",confidence:(t=s.confidence)==null?void 0:t.score,componentsCount:Object.keys(s.components||{}).length}}}catch{}return{fingerprint:await this.generateManualFingerprint(),method:"manual",confidence:.7,componentsCount:15}}};var Lo={maxQueueSize:1e3,maxRetries:5,baseRetryDelay:1e3,maxRetryDelay:6e4,flushInterval:5e3,batchSize:10,storageKey:"seekora_event_queue",enablePersistence:!0,maxEventAge:864e5},It=class{constructor(e={}){this.queue=[];this.isOnline=!0;this.isFlushing=!1;this.flushTimer=null;this.logger=null;this.sender=null;this.config={...Lo,...e},typeof navigator<"u"&&(this.isOnline=navigator.onLine),this.config.enablePersistence&&this.restore(),this.setupNetworkListeners(),this.config.flushInterval>0&&this.startFlushTimer(),this.setupBeforeUnloadHandler()}setLogger(e){this.logger=e}setSender(e){this.sender=e}isBrowser(){return typeof window<"u"&&typeof localStorage<"u"}setupNetworkListeners(){typeof window>"u"||(window.addEventListener("online",()=>{this.isOnline=!0,this.log("verbose","Network online, triggering flush"),this.flush()}),window.addEventListener("offline",()=>{this.isOnline=!1,this.log("verbose","Network offline, pausing flush")}))}setupBeforeUnloadHandler(){typeof window>"u"||(window.addEventListener("beforeunload",()=>{this.persist()}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&this.persist()}))}startFlushTimer(){this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(()=>{this.flush()},this.config.flushInterval)}stopFlushTimer(){this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null)}log(e,t,n){if(this.logger)switch(e){case"verbose":this.logger.verbose(t,n);break;case"info":this.logger.info(t,n);break;case"warn":this.logger.warn(t,n);break;case"error":this.logger.error(t,n);break}}enqueue(e){this.enqueueInternal(e,!1)}enqueueBatch(e){e.forEach(t=>{this.enqueueInternal(t,!0)})}enqueueInternal(e,t){if(this.queue.length>=this.config.maxQueueSize){let a=Math.ceil(this.config.maxQueueSize*.1);this.queue.splice(0,a),this.log("warn",`Queue full, removed ${a} oldest events`)}let n=Date.now(),s={id:ue(),payload:e,queuedAt:n,retryCount:0,nextRetryAt:n,isBatch:t};this.queue.push(s),this.log("verbose","Event enqueued",{id:s.id,queueSize:this.queue.length}),this.isOnline&&!this.isFlushing&&this.flush()}async flush(){if(!(this.isFlushing||!this.isOnline||!this.sender)&&this.queue.length!==0){this.isFlushing=!0,this.log("verbose","Starting queue flush",{queueSize:this.queue.length});try{let e=Date.now(),t=this.queue.filter(s=>e-s.queuedAt>this.config.maxEventAge?!1:s.nextRetryAt<=e);if(this.queue=this.queue.filter(s=>e-s.queuedAt<=this.config.maxEventAge),t.length===0){this.log("verbose","No events ready for sending");return}let n=this.createBatches(t);for(let s of n)await this.sendBatch(s);this.config.enablePersistence&&this.persist()}catch(e){this.log("error","Queue flush failed",{error:e.message})}finally{this.isFlushing=!1}}}createBatches(e){let t=[];for(let n=0;n<e.length;n+=this.config.batchSize)t.push(e.slice(n,n+this.config.batchSize));return t}async sendBatch(e){if(!this.sender)return;let t=e.map(s=>s.payload),n=e.map(s=>s.id);try{await this.sender(t),this.queue=this.queue.filter(s=>!n.includes(s.id)),this.log("verbose","Batch sent successfully",{count:e.length,remainingQueueSize:this.queue.length})}catch(s){let a=Date.now();for(let i of e){let o=this.queue.find(l=>l.id===i.id);if(o)if(o.retryCount++,o.retryCount>=this.config.maxRetries)this.queue=this.queue.filter(l=>l.id!==i.id),this.log("warn","Event discarded after max retries",{id:i.id,retryCount:o.retryCount});else{let l=Math.min(this.config.baseRetryDelay*Math.pow(2,o.retryCount),this.config.maxRetryDelay);o.nextRetryAt=a+l,this.log("verbose","Event scheduled for retry",{id:i.id,retryCount:o.retryCount,nextRetryIn:l})}}this.log("warn","Batch send failed, events scheduled for retry",{count:e.length,error:s.message})}}persist(){if(!(!this.isBrowser()||!this.config.enablePersistence))try{let e=JSON.stringify(this.queue);localStorage.setItem(this.config.storageKey,e),this.log("verbose","Queue persisted to localStorage",{queueSize:this.queue.length})}catch(e){this.log("warn","Failed to persist queue",{error:e.message})}}restore(){if(this.isBrowser())try{let e=localStorage.getItem(this.config.storageKey);if(!e)return;let t=JSON.parse(e),n=Date.now();this.queue=t.filter(s=>n-s.queuedAt<=this.config.maxEventAge),this.queue.forEach(s=>{s.nextRetryAt=n}),this.log("info","Queue restored from localStorage",{storedCount:t.length,restoredCount:this.queue.length})}catch(e){this.log("warn","Failed to restore queue",{error:e.message});try{localStorage.removeItem(this.config.storageKey)}catch{}}}size(){return this.queue.length}isEmpty(){return this.queue.length===0}getOnlineStatus(){return this.isOnline}clear(){if(this.queue=[],this.isBrowser()&&this.config.enablePersistence)try{localStorage.removeItem(this.config.storageKey)}catch{}this.log("info","Queue cleared")}getStats(){let e=Date.now(),t=this.queue[0];return{queueSize:this.queue.length,isOnline:this.isOnline,isFlushing:this.isFlushing,oldestEventAge:t?e-t.queuedAt:null,pendingRetries:this.queue.filter(n=>n.retryCount>0).length}}destroy(){this.stopFlushTimer(),this.persist(),this.queue=[],this.sender=null,this.logger=null}};var We=class{constructor(e={}){this.cachedBrowserContext=null;this.eventQueue=null;let t=St(e);this.storeId=t.storeId,this.readSecret=t.readSecret,this.writeSecret=t.writeSecret;let n=t.logLevel||e.logLevel||Be();this.logger=Ge({level:n,...e.logger}),this.userId=e.userId,this.anonId=e.anonId||fn(),this.sessionId=e.sessionId||bn(),this.autoTrackSearch=e.autoTrackSearch||!1,this.enableContextCollection=e.enableContextCollection!==!1,this.contextCollector=new Pt(e.contextCollector),this.enableContextCollection&&this.collectContextAsync(),this.enableEventQueue=e.enableEventQueue||!1,this.enableEventQueue&&(this.eventQueue=new It(e.eventQueue),this.eventQueue.setLogger(this.logger),this.eventQueue.setSender(this.createQueueSender())),this.logger.verbose("Client identifiers initialized",{hasUserId:!!this.userId,anonId:this.anonId.substring(0,8)+"...",sessionId:this.sessionId.substring(0,8)+"...",autoTrackSearch:this.autoTrackSearch,enableContextCollection:this.enableContextCollection,enableEventQueue:this.enableEventQueue}),this.logger.verbose("Initializing SeekoraClient",{storeId:this.storeId,environment:t.environment,logLevel:n});let s=bt(t.environment,t.baseUrl);this.logger.verbose("Using base URL",{baseUrl:s}),this.config=new ft({basePath:s,baseOptions:{timeout:t.timeout||3e4,headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}}}),this.searchApi=new yt(this.config),this.suggestionsApi=new lt(this.config),this.suggestionsConfigApi=new pt(this.config),this.analyticsApi=new ct(this.config),this.storesApi=new dt(this.config),this.documentsApi=new gt(this.config),this.schemaApi=new mt(this.config),this.logger.info("SeekoraClient initialized successfully")}async search(e,t){var i,o,l,c,u,g,m,y,d,f,b;let n=e.trim()||"*",s=ue();this.logger.verbose("Executing search",{originalQuery:e,searchQuery:n,correlationId:s,options:t});let a={q:n,per_page:(t==null?void 0:t.per_page)||10,page:(t==null?void 0:t.page)||1,filter:(t==null?void 0:t.filter)||(t==null?void 0:t.filter_by),facet_by:t==null?void 0:t.facet_by,sort:(t==null?void 0:t.sort)||(t==null?void 0:t.sort_by),analytics_tags:t==null?void 0:t.analytics_tags,widget_mode:(t==null?void 0:t.widget_mode)||!1,search_fields:t==null?void 0:t.search_fields,field_weights:t==null?void 0:t.field_weights,return_fields:t==null?void 0:t.return_fields,omit_fields:t==null?void 0:t.omit_fields,snippet_fields:t==null?void 0:t.snippet_fields,full_snippet_fields:t==null?void 0:t.full_snippet_fields,snippet_prefix:t==null?void 0:t.snippet_prefix,snippet_suffix:t==null?void 0:t.snippet_suffix,snippet_token_limit:t==null?void 0:t.snippet_token_limit,snippet_min_len:t==null?void 0:t.snippet_min_len,include_snippets:t==null?void 0:t.include_snippets,group_field:t==null?void 0:t.group_field,group_size:t==null?void 0:t.group_size,prefix_mode:t==null?void 0:t.prefix_mode,infix_mode:t==null?void 0:t.infix_mode,typo_max:t==null?void 0:t.typo_max,typo_min_len_1:t==null?void 0:t.typo_min_len_1,typo_min_len_2:t==null?void 0:t.typo_min_len_2,search_timeout_ms:t==null?void 0:t.search_timeout_ms,require_all_terms:t==null?void 0:t.require_all_terms,exact_match_boost:t==null?void 0:t.exact_match_boost,cache_results:t==null?void 0:t.cache_results,apply_rules:t==null?void 0:t.apply_rules,preset_name:t==null?void 0:t.preset_name,facet_search_text:t==null?void 0:t.facet_search_text,include_suggestions:t==null?void 0:t.include_suggestions,suggestions_limit:t==null?void 0:t.suggestions_limit,max_facet_values:t==null?void 0:t.max_facet_values,stopword_sets:t==null?void 0:t.stopword_sets,synonym_sets:t==null?void 0:t.synonym_sets};this.logger.verbose("Search request prepared",{filter:a.filter,filterType:typeof a.filter,fullRequest:a});try{this.logger.verbose("Sending search API request",{endpoint:"/api/v1/search",method:"POST",storeId:this.storeId});let S={"x-storeid":this.storeId,"x-storesecret":this.readSecret};this.userId&&(S["x-user-id"]=this.userId),this.anonId&&(S["x-anon-id"]=this.anonId),this.sessionId&&(S["x-session-id"]=this.sessionId);let R=await this.searchApi.v1SearchPost(this.storeId,this.readSecret,a,this.userId,this.anonId,this.sessionId,{headers:S});this.logger.verbose("Search API response received",{status:R.status,hasData:!!R.data});let x=R.data,A=((i=x==null?void 0:x.data)==null?void 0:i.facets)||[];this.logger.verbose("API response received",{status:R.status,totalResults:((o=x==null?void 0:x.data)==null?void 0:o.total_results)||0,resultsCount:((c=(l=x==null?void 0:x.data)==null?void 0:l.results)==null?void 0:c.length)||0,facetsType:Array.isArray(A)?"array":typeof A,facetsCount:Array.isArray(A)?A.length:Object.keys(A||{}).length});let T={};Array.isArray(A)?(this.logger.verbose("Processing facets as array",{facetsCount:A.length}),A.forEach((D,P)=>{var ne;let j=(D==null?void 0:D.field_name)||(D==null?void 0:D.fieldName)||(D==null?void 0:D.name)||`facet_${P}`;j&&(D!=null&&D.counts||D!=null&&D.values||Array.isArray(D))&&(T[j]={field_name:j,counts:D.counts||D.values||(Array.isArray(D)?D:[]),stats:D.stats||{}},this.logger.verbose("Processed facet",{fieldName:j,index:P,counts:((ne=T[j].counts)==null?void 0:ne.length)||0}))})):A&&typeof A=="object"&&!Array.isArray(A)&&(this.logger.verbose("Processing facets as object",{facetKeys:Object.keys(A)}),Object.keys(A).forEach(D=>{let P=A[D];P&&(T[D]={field_name:P.field_name||D,counts:P.counts||P.values||[],stats:P.stats||{}})})),this.logger.verbose("Facets processed",{facetFields:Object.keys(T),totalFacetFields:Object.keys(T).length});let w=(u=x==null?void 0:x.data)==null?void 0:u.search_id,C={correlationId:s,searchId:w,userId:this.userId,anonId:this.anonId,sessionId:this.sessionId},_={results:((g=x==null?void 0:x.data)==null?void 0:g.results)||[],totalResults:((m=x==null?void 0:x.data)==null?void 0:m.total_results)||0,searchId:w,context:C,facets:T,facet_counts:T,...x};return this.logger.info("Search completed",{query:n,originalQuery:e,totalResults:_.totalResults,searchId:_.searchId,correlationId:s}),this.autoTrackSearch&&this.trackSearch({query:n,resultsCount:_.totalResults,context:C}).catch(D=>{this.logger.warn("Failed to auto-track search event",{error:D.message})}),_}catch(S){let R={query:n,originalQuery:e,error:S.message};throw S.response?(R.status=S.response.status,R.responseData=S.response.data,R.requestUrl=(y=S.config)==null?void 0:y.url,R.requestMethod=(d=S.config)==null?void 0:d.method):S.request&&(R.networkError=!0,R.requestConfig={url:(f=S.config)==null?void 0:f.url,method:(b=S.config)==null?void 0:b.method}),this.logger.error("Search failed",R),this.handleError(S,"search")}}async getSuggestions(e,t){var n,s,a,i,o,l,c,u,g,m,y,d,f,b;this.logger.verbose("Getting query suggestions",{query:e,options:t});try{let S={"x-storeid":this.storeId,"x-storesecret":this.readSecret};this.userId&&(S["x-user-id"]=this.userId),this.anonId&&(S["x-anon-id"]=this.anonId),this.sessionId&&(S["x-session-id"]=this.sessionId);let R=(t==null?void 0:t.filtered_tabs)&&t.filtered_tabs.length>0||(t==null?void 0:t.include_dropdown_recommendations)===!0,x=()=>{let _={query:e,hitsPerPage:(t==null?void 0:t.hitsPerPage)||5,page:t==null?void 0:t.page,include_categories:t==null?void 0:t.include_categories,include_facets:t==null?void 0:t.include_facets,max_categories:t==null?void 0:t.max_categories,max_facets:t==null?void 0:t.max_facets,min_popularity:t==null?void 0:t.min_popularity,time_range:t==null?void 0:t.time_range,disable_typo_tolerance:t==null?void 0:t.disable_typo_tolerance,include_dropdown_recommendations:t==null?void 0:t.include_dropdown_recommendations,filtered_tabs:t==null?void 0:t.filtered_tabs};return t!=null&&t.analytics_tags&&(_.analytics_tags=Array.isArray(t.analytics_tags)?t.analytics_tags:[t.analytics_tags]),t!=null&&t.tags_match_mode&&(_.tags_match_mode=t.tags_match_mode),_};if(R){this.logger.verbose("Using POST endpoint (filtered_tabs or include_dropdown_recommendations)",{endpoint:"/api/v1/suggestions/queries",query:e});let _=x(),D=await this.suggestionsApi.v1SuggestionsQueriesPost(this.storeId,this.readSecret,this.userId,this.anonId,this.sessionId,_,{headers:S}),P=((n=D.data)==null?void 0:n.data)||D.data,j=((a=(s=P==null?void 0:P.results)==null?void 0:s[0])==null?void 0:a.hits)||(P==null?void 0:P.hits)||[],ne=((o=(i=P==null?void 0:P.results)==null?void 0:i[1])==null?void 0:o.extensions)??((c=(l=P==null?void 0:P.results)==null?void 0:l[0])==null?void 0:c.extensions);return t!=null&&t.returnFullResponse?(this.logger.info("Query suggestions retrieved (POST, full response)",{query:e,count:j.length,status:D.status}),{suggestions:j,results:P==null?void 0:P.results,extensions:ne??void 0,raw:P}):(this.logger.info("Query suggestions retrieved (POST)",{query:e,count:j.length,status:D.status}),j)}this.logger.verbose("Using GET endpoint",{endpoint:"/api/v1/suggestions/queries",query:e});let A=Array.isArray(t==null?void 0:t.analytics_tags)?t.analytics_tags.join(","):t==null?void 0:t.analytics_tags,T=await this.suggestionsApi.v1SuggestionsQueriesGet(this.storeId,this.readSecret,this.userId,this.anonId,this.sessionId,e,(t==null?void 0:t.hitsPerPage)||5,t==null?void 0:t.page,A,t==null?void 0:t.tags_match_mode,t==null?void 0:t.include_categories,t==null?void 0:t.include_facets,t==null?void 0:t.max_categories,t==null?void 0:t.max_facets,t==null?void 0:t.min_popularity,t==null?void 0:t.time_range,t==null?void 0:t.disable_typo_tolerance,{headers:S}),w=((u=T.data)==null?void 0:u.data)||T.data,C=((m=(g=w==null?void 0:w.results)==null?void 0:g[0])==null?void 0:m.hits)||(w==null?void 0:w.hits)||[];if(t!=null&&t.returnFullResponse){let _=((d=(y=w==null?void 0:w.results)==null?void 0:y[1])==null?void 0:d.extensions)??((b=(f=w==null?void 0:w.results)==null?void 0:f[0])==null?void 0:b.extensions);return this.logger.info("Query suggestions retrieved (GET, full response)",{query:e,count:C.length,status:T.status}),{suggestions:C,results:w==null?void 0:w.results,extensions:_??void 0,raw:w}}return this.logger.info("Query suggestions retrieved (GET)",{query:e,count:C.length,status:T.status}),C}catch(S){throw this.logger.error("Failed to get suggestions",{query:e,error:S.message}),this.handleError(S,"getSuggestions")}}async getSuggestionsConfig(){var e,t,n;this.logger.verbose("Getting suggestions configuration");try{let s={"x-storeid":this.storeId,"x-storesecret":this.readSecret};try{let a=await this.suggestionsConfigApi.apiV1StoresXStoreIDQuerySuggestionsConfigGet(this.storeId,this.readSecret,this.storeId,{headers:s}),i=(e=a.data)==null?void 0:e.data,o=((t=i==null?void 0:i.metadata)==null?void 0:t.config)??(i==null?void 0:i.config)??i;return this.logger.info("Suggestions configuration retrieved",{configKeys:o?Object.keys(o):[],status:a.status}),o}catch(a){this.logger.verbose("Store config endpoint failed, trying legacy endpoint",{message:a==null?void 0:a.message});let i=await this.suggestionsApi.v1SuggestionsConfigGet(this.storeId,this.readSecret,{headers:s}),o=(n=i.data)==null?void 0:n.data;return this.logger.info("Suggestions configuration retrieved (legacy)",{configKeys:o?Object.keys(o):[],status:i.status}),o}}catch(s){throw this.logger.error("Failed to get suggestions config",{error:s.message}),this.handleError(s,"getSuggestionsConfig")}}async getConfig(){var e;this.logger.verbose("Getting store configuration");try{this.logger.verbose("Fetching store configuration",{endpoint:`/api/v1/stores/${this.storeId}/config`});let t={"x-storeid":this.storeId,"x-storesecret":this.readSecret};this.userId&&(t["x-user-id"]=this.userId),this.anonId&&(t["x-anon-id"]=this.anonId),this.sessionId&&(t["x-session-id"]=this.sessionId);let n=await this.storesApi.apiV1StoresXStoreIDConfigGet(this.storeId,this.readSecret,this.storeId,{headers:t}),s=(e=n.data)==null?void 0:e.data;return this.logger.info("Store configuration retrieved",{status:n.status,hasConfig:!!s}),s}catch(t){throw this.logger.error("Failed to get store config",{error:t.message}),this.handleError(t,"getConfig")}}async getStoreInfo(){this.logger.verbose("Getting store information");try{let e=await this.getConfig(),t={storeId:this.storeId};if(e){let n=e.config||e,s=e.onboarding_status;s&&(t.onboardingStatus=s),n&&(t.storeName=n.store_name||n.storeName||n.name||n.title||n.collection_name||`Store ${this.storeId.substring(0,8).toUpperCase()}`,n.query_by&&(t.queryFields=Array.isArray(n.query_by)?n.query_by:[n.query_by]),n.facet_by&&(t.facetFields=Array.isArray(n.facet_by)?n.facet_by:[n.facet_by]),n.primary_text&&(t.primaryField=n.primary_text),t.config=n)}return this.logger.info("Store information retrieved",{storeId:t.storeId,storeName:t.storeName}),t}catch(e){throw this.logger.error("Failed to get store info",{error:e.message}),this.handleError(e,"getStoreInfo")}}async updateConfig(e){var t;if(this.logger.verbose("Updating store configuration",{configKeys:Object.keys(e)}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"updateConfig",storeId:this.storeId}),new Error("Write secret is required for updateConfig");try{this.logger.verbose("Updating store configuration",{endpoint:`/api/v1/stores/${this.storeId}/config`,configKeys:Object.keys(e)});let n={"x-storeid":this.storeId,"x-storesecret":this.readSecret,"x-store-write-secret":this.writeSecret},s=await this.storesApi.apiV1StoresXStoreIDConfigPut(this.storeId,this.writeSecret,this.storeId,e,{headers:n}),a=(t=s.data)==null?void 0:t.data;return this.logger.info("Store configuration updated successfully",{status:s.status,hasConfig:!!a}),a}catch(n){throw this.logger.error("Failed to update store config",{error:n.message}),this.handleError(n,"updateConfig")}}async updateQuerySuggestionsConfig(e){var t,n,s,a;if(this.logger.verbose("Updating query suggestions configuration",{configKeys:Object.keys(e)}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"updateQuerySuggestionsConfig",storeId:this.storeId}),new Error("Write secret is required for updateQuerySuggestionsConfig");try{let i={"x-storeid":this.storeId,"x-store-write-secret":this.writeSecret,"Content-Type":"application/json"};try{let o=await this.suggestionsConfigApi.apiV1StoresXStoreIDQuerySuggestionsConfigPut(this.storeId,this.writeSecret,this.storeId,e,{headers:i}),l=(t=o.data)==null?void 0:t.data,c=((n=l==null?void 0:l.metadata)==null?void 0:n.config)??(l==null?void 0:l.config)??l;return this.logger.info("Query suggestions configuration updated successfully",{status:o.status,hasConfig:!!c}),c}catch(o){this.logger.verbose("PUT via generated API failed, using direct HTTP",{message:o==null?void 0:o.message});let l=this.suggestionsConfigApi.axios??this.suggestionsApi.axios??E,c=this.config.basePath??"https://api.seekora.com/api",u=await l.put(`${c}/v1/stores/${this.storeId}/query-suggestions/config`,e,{headers:i}),g=(s=u.data)==null?void 0:s.data,m=((a=g==null?void 0:g.metadata)==null?void 0:a.config)??(g==null?void 0:g.config)??g;return this.logger.info("Query suggestions configuration updated successfully",{status:u.status,hasConfig:!!m}),m}}catch(i){throw this.logger.error("Failed to update query suggestions config",{error:i.message}),this.handleError(i,"updateQuerySuggestionsConfig")}}async getConfigSchema(){var e;this.logger.verbose("Getting configuration schema");try{let n=(e=(await this.storesApi.apiV1StoresXStoreIDConfigSchemaGet(this.storeId,this.readSecret,this.storeId,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}})).data)==null?void 0:e.data;return this.logger.verbose("Configuration schema retrieved",{schemaKeys:n?Object.keys(n):[]}),n}catch(t){throw this.logger.error("Failed to get config schema",{error:t.message}),this.handleError(t,"getConfigSchema")}}async indexDocument(e){var t;if(this.logger.verbose("Indexing document",{hasCustomId:!!e.id,documentKeys:Object.keys(e.data)}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"indexDocument",storeId:this.storeId}),new Error("Write secret is required for indexDocument");try{let n={id:e.id,data:e.data},s=await this.documentsApi.apiV1StoresXStoreIDDocumentsPost(this.storeId,this.writeSecret,this.storeId,n),a=(t=s.data)==null?void 0:t.data;return this.logger.info("Document indexed successfully",{id:(a==null?void 0:a.id)||e.id,status:s.status}),{id:(a==null?void 0:a.id)||e.id||"",success:(a==null?void 0:a.status)==="success"||(a==null?void 0:a.status)==="inserted"||(a==null?void 0:a.status)==="updated"||!0,message:a==null?void 0:a.message,data:a}}catch(n){throw this.logger.error("Failed to index document",{error:n.message}),this.handleError(n,"indexDocument")}}async indexDocuments(e){var t,n;if(this.logger.verbose("Bulk indexing documents",{count:e.length,actions:e.map(s=>s.action||"upsert")}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"indexDocuments",storeId:this.storeId}),new Error("Write secret is required for indexDocuments");try{let s={documents:e.map(o=>({id:o.id,action:o.action,data:o.data}))},a=await this.documentsApi.apiV1StoresXStoreIDDocumentsBulkPost(this.storeId,this.writeSecret,this.storeId,s),i=(t=a.data)==null?void 0:t.data;return this.logger.info("Bulk document indexing completed",{successCount:(i==null?void 0:i.successCount)||0,errorCount:(i==null?void 0:i.errorCount)||0,status:a.status}),{success_count:(i==null?void 0:i.successCount)||e.length,error_count:(i==null?void 0:i.errorCount)||0,results:((n=i==null?void 0:i.results)==null?void 0:n.map(o=>({id:o.id,success:o.status==="success"||o.status==="inserted"||o.status==="updated"||!o.error,error:o.error})))||e.map(o=>({id:o.id,success:!0})),data:i}}catch(s){throw this.logger.error("Failed to bulk index documents",{count:e.length,error:s.message}),this.handleError(s,"indexDocuments")}}async deleteDocument(e){if(this.logger.verbose("Deleting document",{documentId:e}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"deleteDocument",storeId:this.storeId}),new Error("Write secret is required for deleteDocument");try{let t=await this.documentsApi.apiV1StoresXStoreIDDocumentsDocumentIDDelete(this.storeId,this.writeSecret,this.storeId,e);this.logger.info("Document deleted successfully",{documentId:e,status:t.status})}catch(t){throw this.logger.error("Failed to delete document",{documentId:e,error:t.message}),this.handleError(t,"deleteDocument")}}async createSchema(e){var t,n,s,a,i,o,l,c;if(this.logger.verbose("Creating/updating schema",{fieldCount:e.fields.length,mode:e.mode||"additive"}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"createSchema",storeId:this.storeId}),new Error("Write secret is required for createSchema");try{let u={fields:e.fields.map(y=>({name:y.name,type:y.type,facet:y.facet,index:y.index,optional:y.optional,sort:y.sort,infix:y.infix,locale:y.locale})),mode:e.mode,confirm_delete:e.confirmDelete,default_sorting_field:e.defaultSortingField,enable_nested_fields:e.enableNestedFields},m=(await this.schemaApi.apiV1StoresXStoreIDSchemaPost(this.storeId,this.writeSecret,this.storeId,u)).data;return this.logger.info("Schema created/updated successfully",{name:(t=m.data)==null?void 0:t.name,fieldCount:(s=(n=m.data)==null?void 0:n.fields)==null?void 0:s.length}),{name:((a=m.data)==null?void 0:a.name)||"",fields:(((i=m.data)==null?void 0:i.fields)||[]).map(y=>({name:y.name||"",type:y.type||"string",facet:y.facet,index:y.index,optional:y.optional,sort:y.sort,infix:y.infix,locale:y.locale})),defaultSortingField:(o=m.data)==null?void 0:o.default_sorting_field,numDocuments:((l=m.data)==null?void 0:l.num_documents)||0,createdAt:(c=m.data)==null?void 0:c.created_at}}catch(u){throw this.logger.error("Failed to create/update schema",{error:u.message}),this.handleError(u,"createSchema")}}async getSchema(){var e,t,n,s,a,i,o,l,c;this.logger.verbose("Getting schema",{storeId:this.storeId});try{let g=(await this.schemaApi.apiV1StoresXStoreIDSchemaGet(this.storeId,this.readSecret,this.storeId)).data;return this.logger.info("Schema retrieved successfully",{name:(e=g.data)==null?void 0:e.name,fieldCount:(n=(t=g.data)==null?void 0:t.fields)==null?void 0:n.length,numDocuments:(s=g.data)==null?void 0:s.num_documents}),{name:((a=g.data)==null?void 0:a.name)||"",fields:(((i=g.data)==null?void 0:i.fields)||[]).map(m=>({name:m.name||"",type:m.type||"string",facet:m.facet,index:m.index,optional:m.optional,sort:m.sort,infix:m.infix,locale:m.locale})),defaultSortingField:(o=g.data)==null?void 0:o.default_sorting_field,numDocuments:((l=g.data)==null?void 0:l.num_documents)||0,createdAt:(c=g.data)==null?void 0:c.created_at}}catch(u){throw this.logger.error("Failed to get schema",{error:u.message}),this.handleError(u,"getSchema")}}async clearDocuments(){var e,t,n;if(this.logger.verbose("Clearing all documents",{storeId:this.storeId}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"clearDocuments",storeId:this.storeId}),new Error("Write secret is required for clearDocuments");try{let a=(await this.schemaApi.apiV1StoresXStoreIDDocumentsDelete(this.storeId,this.writeSecret,this.storeId)).data;return this.logger.info("Documents cleared successfully",{deletedCount:(e=a.data)==null?void 0:e.deleted_count}),{deletedCount:((t=a.data)==null?void 0:t.deleted_count)||0,message:((n=a.data)==null?void 0:n.message)||"Documents cleared"}}catch(s){throw this.logger.error("Failed to clear documents",{error:s.message}),this.handleError(s,"clearDocuments")}}async collectContextAsync(){var e,t,n;try{this.cachedBrowserContext=await this.contextCollector.collect(),this.logger.verbose("Browser context collected",{hasFingerprint:!!((e=this.cachedBrowserContext)!=null&&e.device_fingerprint),platform:(t=this.cachedBrowserContext)==null?void 0:t.platform,timezone:(n=this.cachedBrowserContext)==null?void 0:n.timezone})}catch(s){this.logger.warn("Failed to collect browser context",{error:s.message})}}createQueueSender(){return async e=>{e.length===1?await this.sendEventDirect(e[0]):await this.sendEventsBatchDirect(e)}}async sendEventDirect(e){let t=await this.analyticsApi.analyticsEventPost(this.storeId,this.readSecret,e,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}});if(t.status>=400)throw new Error(`Failed to send event: ${t.status}`)}async sendEventsBatchDirect(e){let t={events:e},n=await this.analyticsApi.analyticsBatchPost(this.storeId,this.readSecret,t,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}});if(n.status>=400)throw new Error(`Failed to send batch events: ${n.status}`)}getBrowserContext(){return this.cachedBrowserContext}async collectBrowserContext(){return this.cachedBrowserContext=await this.contextCollector.collect(),this.cachedBrowserContext}buildEventPayload(e,t){let n={...e,user_id:e.user_id||(t==null?void 0:t.userId)||this.userId,anon_id:e.anon_id||(t==null?void 0:t.anonId)||this.anonId,session_id:e.session_id||(t==null?void 0:t.sessionId)||this.sessionId,correlation_id:e.correlation_id||(t==null?void 0:t.correlationId),search_id:e.search_id||(t==null?void 0:t.searchId)};if(!n.user_id&&!n.anon_id&&(n.anon_id=this.anonId),n.search_id&&!n.metadata&&(n.metadata={}),n.search_id&&n.metadata&&!n.metadata.search_id&&(n.metadata.search_id=n.search_id),this.enableContextCollection&&this.cachedBrowserContext){let s=this.cachedBrowserContext;n.screen_width=s.screen_width,n.screen_height=s.screen_height,n.viewport_width=s.viewport_width,n.viewport_height=s.viewport_height,n.color_depth=s.color_depth,n.pixel_ratio=s.pixel_ratio,s.device_fingerprint&&(n.device_fingerprint=s.device_fingerprint),n.browser_name=s.browser_name,n.browser_version=s.browser_version,n.browser_language=s.browser_language,n.timezone=s.timezone,n.timezone_offset=s.timezone_offset,n.page_url=s.page_url,n.page_path=s.page_path,n.page_title=s.page_title,n.page_referrer=s.page_referrer,s.utm_source&&(n.utm_source=s.utm_source),s.utm_medium&&(n.utm_medium=s.utm_medium),s.utm_campaign&&(n.utm_campaign=s.utm_campaign),s.utm_term&&(n.utm_term=s.utm_term),s.utm_content&&(n.utm_content=s.utm_content),s.connection_type&&(n.connection_type=s.connection_type),s.connection_effective_type&&(n.connection_effective_type=s.connection_effective_type),n.platform=s.platform,n.is_mobile=s.is_mobile,n.is_tablet=s.is_tablet,n.is_touch_device=s.is_touch_device}return n}async trackEvent(e,t){this.logger.verbose("Tracking analytics event",{eventName:e.event_name,hasContext:!!t});let n=this.buildEventPayload(e,t);if(this.enableEventQueue&&this.eventQueue){this.eventQueue.enqueue(n),this.logger.verbose("Event queued for sending",{eventName:e.event_name,queueSize:this.eventQueue.size()});return}try{this.logger.verbose("Sending analytics event",{endpoint:"/api/analytics/event",eventName:e.event_name});let s=await this.analyticsApi.analyticsEventPost(this.storeId,this.readSecret,n,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}});this.logger.verbose("Analytics event tracked successfully",{eventName:e.event_name,status:s.status})}catch(s){throw this.logger.error("Failed to track event",{eventName:e.event_name,error:s.message}),this.handleError(s,"trackEvent")}}async trackEvents(e,t){if(this.logger.verbose("Tracking batch analytics events",{count:e.length,hasContext:!!t}),e.length>100)throw this.logger.error("Batch size exceeds maximum",{count:e.length,max:100}),new Error("Maximum 100 events per batch");let n=e.map(s=>this.buildEventPayload(s,t));if(this.enableEventQueue&&this.eventQueue){this.eventQueue.enqueueBatch(n),this.logger.verbose("Events queued for sending",{count:e.length,queueSize:this.eventQueue.size()});return}try{this.logger.verbose("Sending batch analytics events",{endpoint:"/api/analytics/batch",eventCount:e.length});let s={events:n},a=await this.analyticsApi.analyticsBatchPost(this.storeId,this.readSecret,s,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}});this.logger.info("Batch analytics events tracked successfully",{count:e.length,status:a.status})}catch(s){throw this.logger.error("Failed to track batch events",{count:e.length,error:s.message}),this.handleError(s,"trackEvents")}}async trackSearch(e){this.logger.verbose("Tracking search event",{query:e.query,resultsCount:e.resultsCount,hasContext:!!e.context}),await this.trackEvent({event_name:"search.performed",query:e.query,results_count:e.resultsCount,analytics_tags:e.analyticsTags,metadata:e.metadata},e.context)}async trackImpression(e){this.logger.verbose("Tracking impression event",{itemId:e.itemId,position:e.position,hasContext:!!e.context}),await this.trackEvent({event_name:"impression",clicked_item_id:e.itemId,metadata:{position:e.position,list_type:e.listType,search_query:e.searchQuery,...e.metadata}},e.context)}async trackClick(e,t,n){this.logger.verbose("Tracking click event",{itemId:e,position:t,hasContext:!!n});let s=typeof n=="string"?{correlationId:"",searchId:n,anonId:this.anonId,sessionId:this.sessionId}:n;await this.trackEvent({event_name:"product_click",clicked_item_id:e,metadata:{position:t}},s)}async trackView(e,t){this.logger.verbose("Tracking view event",{itemId:e,hasContext:!!t});let n=typeof t=="string"?{correlationId:"",searchId:t,anonId:this.anonId,sessionId:this.sessionId}:t;await this.trackEvent({event_name:"view",clicked_item_id:e},n)}async trackConversion(e,t,n,s){this.logger.verbose("Tracking conversion event",{itemId:e,value:t,currency:n,hasContext:!!s});let a=typeof s=="string"?{correlationId:"",searchId:s,anonId:this.anonId,sessionId:this.sessionId}:s;await this.trackEvent({event_name:"conversion",clicked_item_id:e,value:t,currency:n},a)}async trackCustom(e,t={},n){this.logger.verbose("Tracking custom event",{eventName:e,hasContext:!!n}),await this.trackEvent({...t,event_name:e},n)}async validateEvent(e){var t,n,s,a,i,o;this.logger.verbose("Validating event payload",{eventName:e.event_name});try{this.logger.verbose("Validating event payload",{endpoint:"/api/analytics/validate",eventName:e.event_name});let l=this.buildEventPayload(e),c=await this.analyticsApi.analyticsValidatePost(this.storeId,this.readSecret,l,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}}),u=((t=c.data)==null?void 0:t.data)||c.data,g=(u==null?void 0:u.valid)!==!1&&c.status===200;return this.logger.verbose("Event validation result",{valid:g,eventName:e.event_name,message:u==null?void 0:u.message}),{valid:g,message:(u==null?void 0:u.message)||(g?"Event is valid":"Event validation failed"),errors:u==null?void 0:u.errors}}catch(l){return this.logger.error("Event validation failed",{error:l.message}),{valid:!1,message:((s=(n=l.response)==null?void 0:n.data)==null?void 0:s.message)||l.message||"Validation request failed",errors:((i=(a=l.response)==null?void 0:a.data)==null?void 0:i.errors)||((o=l.response)==null?void 0:o.data)}}}async getEventSchema(){var e;this.logger.verbose("Getting event schema");try{let t=await this.analyticsApi.analyticsSchemaGet(this.storeId,this.readSecret,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}}),n=((e=t.data)==null?void 0:e.data)||t.data;return this.logger.verbose("Event schema retrieved",{schemaKeys:n?Object.keys(n):[]}),n}catch(t){throw this.logger.error("Failed to get event schema",{error:t.message}),this.handleError(t,"getEventSchema")}}setUserId(e){this.userId=e,this.logger.info("User ID updated",{userId:e})}clearUserId(){this.userId=void 0,this.logger.info("User ID cleared")}getIdentifiers(){return{userId:this.userId,anonId:this.anonId,sessionId:this.sessionId}}getEventQueue(){return this.eventQueue}async flushEventQueue(){this.eventQueue&&await this.eventQueue.flush()}getEventQueueStats(){return this.eventQueue?{enabled:this.enableEventQueue,...this.eventQueue.getStats()}:null}async identify(e,t){this.logger.verbose("Identifying user",{userId:e}),this.userId=e;let n=this.cachedBrowserContext||await this.collectBrowserContext(),s={user_id:e,anon_id:this.anonId,session_id:this.sessionId,device_fingerprint:n==null?void 0:n.device_fingerprint,traits:t};try{let a=await E.post(`${this.config.basePath}/api/analytics/identify`,s,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret},timeout:1e4});this.logger.info("User identified successfully",{userId:e,linked:{anonId:!!this.anonId,fingerprint:!!(n!=null&&n.device_fingerprint)}})}catch(a){this.logger.error("Failed to identify user",{userId:e,error:a.message})}}async alias(e,t){this.logger.verbose("Creating alias",{anonId:e,userId:t});let n={user_id:t,anon_id:e};try{await E.post(`${this.config.basePath}/api/analytics/identify`,n,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret},timeout:1e4}),this.logger.info("Alias created successfully",{anonId:e,userId:t})}catch(s){this.logger.error("Failed to create alias",{anonId:e,userId:t,error:s.message})}}handleError(e,t){if(e.response){let n=e.response.status,s=e.response.data,a=(s==null?void 0:s.message)||`API request failed with status ${n}`;return n>=500?this.logger.error("API server error",{operation:t,status:n,message:a}):n===401||n===403?this.logger.error("Authentication error",{operation:t,status:n,message:a}):n===429?this.logger.warn("Rate limit exceeded",{operation:t,status:n,message:a}):this.logger.error("API request failed",{operation:t,status:n,message:a}),new Error(`[${t}] ${a} (${n})`)}else return e.request?(this.logger.error("Network error",{operation:t,error:e.message}),new Error(`[${t}] Network error: ${e.message}`)):(this.logger.error("Request error",{operation:t,error:e.message}),new Error(`[${t}] ${e.message}`))}getLogger(){return this.logger}};var Oo=We;return as(Fo);})();
12
+ visitorId: ${a.visitorId}
13
+ components: ${vr(i)}
14
+ \`\`\``),a}}}function Io(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let r=new XMLHttpRequest;r.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${kn}/npm-monitoring`,!0),r.send()}catch(r){console.error(r)}}async function Kn(r={}){var e;(!((e=r.monitoring)!==null&&e!==void 0)||e)&&Io();let{delayFallback:t,debug:n}=r;await Jn(t);let s=Ao({cache:{},debug:n});return Po(s,n)}var kn,Mi,Bi,xt,At,xn,Gi,Ui,ia,aa,Ae,vn,va,Ra,vt,dr,za,w,N,eo,yr,ao,Nn,Wn,co,lo,go,po,jn,mo,Hn,vo,ko,Eo,$n=ns(()=>{kn="5.0.1";Mi=[4283543511,3981806797],Bi=[3301882366,444984403];xt=[2277735313,289559509],At=[1291169091,658871167],xn=[0,5],Gi=[0,1390208809],Ui=[0,944331445];ia="mmMwWLliI0O&1",aa="48px",Ae=["monospace","sans-serif","serif"],vn=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];va=2500,Ra=10;za=100;w=Math,N=()=>0;eo="mmMwWLliI0fiflO&1",yr={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};ao=sa;Nn=-1,Wn=-2,co=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),lo=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),go=["FRAGMENT_SHADER","VERTEX_SHADER"],po=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],jn="WEBGL_debug_renderer_info",mo="WEBGL_polygon_mode";Hn={fonts:oa,domBlockers:Ga,fontPreferences:to,audio:Zi,screenFrame:Ta,canvas:ca,osCpu:_a,languages:ha,colorDepth:Sa,deviceMemory:xa,screenResolution:Aa,hardwareConcurrency:Ca,timezone:wa,sessionStorage:Ia,localStorage:ka,indexedDB:Ea,openDatabase:qa,cpuClass:Va,platform:La,plugins:ua,touchSupport:ba,vendor:Fa,vendorFlavors:Oa,cookiesEnabled:Ma,colorGamut:Wa,invertedColors:ja,forcedColors:Xa,monochrome:Ha,contrast:Ja,reducedMotion:Ka,reducedTransparency:Za,hdr:$a,math:Ya,pdfViewerEnabled:no,architecture:so,applePay:io,privateClickMeasurement:uo,audioBaseLatency:So,dateTimeLocale:xo,webGlBasics:yo,webGlExtensions:fo};vo="$ if upgrade to Pro: https://fpjs.dev/pro";ko={load:Kn,hashComponents:Rr,componentsToDebugString:vr},Eo=qn});var Oo={};qt(Oo,{ENVIRONMENTS:()=>cr,Logger:()=>Me,SeekoraClient:()=>We,createLogger:()=>Ge,default:()=>Fo,getBaseUrl:()=>bt,getEnvironment:()=>yn,getLogLevelFromEnv:()=>Be,loadConfig:()=>St,loadConfigFromEnv:()=>pr,loadConfigFromFile:()=>gr});function De(r,e){return function(){return r.apply(e,arguments)}}var{toString:as}=Object.prototype,{getPrototypeOf:Lt}=Object,{iterator:He,toStringTag:Ir}=Symbol,Je=(r=>e=>{let t=as.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),K=r=>(r=r.toLowerCase(),e=>Je(e)===r),Ke=r=>e=>typeof e===r,{isArray:ye}=Array,de=Ke("undefined");function Te(r){return r!==null&&!de(r)&&r.constructor!==null&&!de(r.constructor)&&j(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}var kr=K("ArrayBuffer");function os(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&kr(r.buffer),e}var us=Ke("string"),j=Ke("function"),Er=Ke("number"),Ce=r=>r!==null&&typeof r=="object",cs=r=>r===!0||r===!1,ze=r=>{if(Je(r)!=="object")return!1;let e=Lt(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ir in r)&&!(He in r)},ls=r=>{if(!Ce(r)||Te(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},gs=K("Date"),ps=K("File"),ms=K("Blob"),ds=K("FileList"),ys=r=>Ce(r)&&j(r.pipe),fs=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||j(r.append)&&((e=Je(r))==="formdata"||e==="object"&&j(r.toString)&&r.toString()==="[object FormData]"))},bs=K("URLSearchParams"),[_s,hs,Ss,xs]=["ReadableStream","Request","Response","Headers"].map(K),As=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function we(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,s;if(typeof r!="object"&&(r=[r]),ye(r))for(n=0,s=r.length;n<s;n++)e.call(null,r[n],n,r);else{if(Te(r))return;let i=t?Object.getOwnPropertyNames(r):Object.keys(r),a=i.length,o;for(n=0;n<a;n++)o=i[n],e.call(null,r[o],o,r)}}function qr(r,e){if(Te(r))return null;e=e.toLowerCase();let t=Object.keys(r),n=t.length,s;for(;n-- >0;)if(s=t[n],e===s.toLowerCase())return s;return null}var pe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vr=r=>!de(r)&&r!==pe;function Vt(){let{caseless:r,skipUndefined:e}=Vr(this)&&this||{},t={},n=(s,i)=>{let a=r&&qr(t,i)||i;ze(t[a])&&ze(s)?t[a]=Vt(t[a],s):ze(s)?t[a]=Vt({},s):ye(s)?t[a]=s.slice():(!e||!de(s))&&(t[a]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&we(arguments[s],n);return t}var vs=(r,e,t,{allOwnKeys:n}={})=>(we(e,(s,i)=>{t&&j(s)?r[i]=De(s,t):r[i]=s},{allOwnKeys:n}),r),Rs=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Ds=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},Ts=(r,e,t,n)=>{let s,i,a,o={};if(e=e||{},r==null)return e;do{for(s=Object.getOwnPropertyNames(r),i=s.length;i-- >0;)a=s[i],(!n||n(a,r,e))&&!o[a]&&(e[a]=r[a],o[a]=!0);r=t!==!1&&Lt(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},Cs=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},ws=r=>{if(!r)return null;if(ye(r))return r;let e=r.length;if(!Er(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},Ps=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&Lt(Uint8Array)),Is=(r,e)=>{let n=(r&&r[He]).call(r),s;for(;(s=n.next())&&!s.done;){let i=s.value;e.call(r,i[0],i[1])}},ks=(r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Es=K("HTMLFormElement"),qs=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,s){return n.toUpperCase()+s}),Pr=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Vs=K("RegExp"),Lr=(r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};we(t,(s,i)=>{let a;(a=e(s,i,r))!==!1&&(n[i]=a||s)}),Object.defineProperties(r,n)},Ls=r=>{Lr(r,(e,t)=>{if(j(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(j(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Fs=(r,e)=>{let t={},n=s=>{s.forEach(i=>{t[i]=!0})};return ye(r)?n(r):n(String(r).split(e)),t},Os=()=>{},Ms=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function Bs(r){return!!(r&&j(r.append)&&r[Ir]==="FormData"&&r[He])}var Gs=r=>{let e=new Array(10),t=(n,s)=>{if(Ce(n)){if(e.indexOf(n)>=0)return;if(Te(n))return n;if(!("toJSON"in n)){e[s]=n;let i=ye(n)?[]:{};return we(n,(a,o)=>{let l=t(a,s+1);!de(l)&&(i[o]=l)}),e[s]=void 0,i}}return n};return t(r,0)},Us=K("AsyncFunction"),Qs=r=>r&&(Ce(r)||j(r))&&j(r.then)&&j(r.catch),Fr=((r,e)=>r?setImmediate:e?((t,n)=>(pe.addEventListener("message",({source:s,data:i})=>{s===pe&&i===t&&n.length&&n.shift()()},!1),s=>{n.push(s),pe.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",j(pe.postMessage)),Ns=typeof queueMicrotask<"u"?queueMicrotask.bind(pe):typeof process<"u"&&process.nextTick||Fr,Ws=r=>r!=null&&j(r[He]),p={isArray:ye,isArrayBuffer:kr,isBuffer:Te,isFormData:fs,isArrayBufferView:os,isString:us,isNumber:Er,isBoolean:cs,isObject:Ce,isPlainObject:ze,isEmptyObject:ls,isReadableStream:_s,isRequest:hs,isResponse:Ss,isHeaders:xs,isUndefined:de,isDate:gs,isFile:ps,isBlob:ms,isRegExp:Vs,isFunction:j,isStream:ys,isURLSearchParams:bs,isTypedArray:Ps,isFileList:ds,forEach:we,merge:Vt,extend:vs,trim:As,stripBOM:Rs,inherits:Ds,toFlatObject:Ts,kindOf:Je,kindOfTest:K,endsWith:Cs,toArray:ws,forEachEntry:Is,matchAll:ks,isHTMLForm:Es,hasOwnProperty:Pr,hasOwnProp:Pr,reduceDescriptors:Lr,freezeMethods:Ls,toObjectSet:Fs,toCamelCase:qs,noop:Os,toFiniteNumber:Ms,findKey:qr,global:pe,isContextDefined:Vr,isSpecCompliantForm:Bs,toJSONObject:Gs,isAsyncFn:Us,isThenable:Qs,setImmediate:Fr,asap:Ns,isIterable:Ws};function fe(r,e,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}p.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:p.toJSONObject(this.config),code:this.code,status:this.status}}});var Or=fe.prototype,Mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Mr[r]={value:r}});Object.defineProperties(fe,Mr);Object.defineProperty(Or,"isAxiosError",{value:!0});fe.from=(r,e,t,n,s,i)=>{let a=Object.create(Or);p.toFlatObject(r,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");let o=r&&r.message?r.message:"Error",l=e==null&&r?r.code:e;return fe.call(a,o,l,t,n,s),r&&a.cause==null&&Object.defineProperty(a,"cause",{value:r,configurable:!0}),a.name=r&&r.name||"Error",i&&Object.assign(a,i),a};var v=fe;var Ze=null;function Ft(r){return p.isPlainObject(r)||p.isArray(r)}function Gr(r){return p.endsWith(r,"[]")?r.slice(0,-2):r}function Br(r,e,t){return r?r.concat(e).map(function(s,i){return s=Gr(s),!t&&i?"["+s+"]":s}).join(t?".":""):e}function js(r){return p.isArray(r)&&!r.some(Ft)}var Xs=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function zs(r,e,t){if(!p.isObject(r))throw new TypeError("target must be an object");e=e||new(Ze||FormData),t=p.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,b){return!p.isUndefined(b[f])});let n=t.metaTokens,s=t.visitor||u,i=t.dots,a=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&p.isSpecCompliantForm(e);if(!p.isFunction(s))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(p.isDate(d))return d.toISOString();if(p.isBoolean(d))return d.toString();if(!l&&p.isBlob(d))throw new v("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(d)||p.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,f,b){let A=d;if(d&&!b&&typeof d=="object"){if(p.endsWith(f,"{}"))f=n?f:f.slice(0,-2),d=JSON.stringify(d);else if(p.isArray(d)&&js(d)||(p.isFileList(d)||p.endsWith(f,"[]"))&&(A=p.toArray(d)))return f=Gr(f),A.forEach(function(x,S){!(p.isUndefined(x)||x===null)&&e.append(a===!0?Br([f],S,i):a===null?f:f+"[]",c(x))}),!1}return Ft(d)?!0:(e.append(Br(b,f,i),c(d)),!1)}let g=[],m=Object.assign(Xs,{defaultVisitor:u,convertValue:c,isVisitable:Ft});function y(d,f){if(!p.isUndefined(d)){if(g.indexOf(d)!==-1)throw Error("Circular reference detected in "+f.join("."));g.push(d),p.forEach(d,function(A,R){(!(p.isUndefined(A)||A===null)&&s.call(e,A,p.isString(R)?R.trim():R,f,m))===!0&&y(A,f?f.concat(R):[R])}),g.pop()}}if(!p.isObject(r))throw new TypeError("data must be an object");return y(r),e}var ce=zs;function Ur(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Qr(r,e){this._pairs=[],r&&ce(r,this,e)}var Nr=Qr.prototype;Nr.append=function(e,t){this._pairs.push([e,t])};Nr.toString=function(e){let t=e?function(n){return e.call(this,n,Ur)}:Ur;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};var $e=Qr;function Hs(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Pe(r,e,t){if(!e)return r;let n=t&&t.encode||Hs;p.isFunction(t)&&(t={serialize:t});let s=t&&t.serialize,i;if(s?i=s(e,t):i=p.isURLSearchParams(e)?e.toString():new $e(e,t).toString(n),i){let a=r.indexOf("#");a!==-1&&(r=r.slice(0,a)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}var Ot=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){p.forEach(this.handlers,function(n){n!==null&&e(n)})}},Mt=Ot;var Ye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Wr=typeof URLSearchParams<"u"?URLSearchParams:$e;var jr=typeof FormData<"u"?FormData:null;var Xr=typeof Blob<"u"?Blob:null;var zr={isBrowser:!0,classes:{URLSearchParams:Wr,FormData:jr,Blob:Xr},protocols:["http","https","file","blob","url","data"]};var Ut={};qt(Ut,{hasBrowserEnv:()=>Gt,hasStandardBrowserEnv:()=>Js,hasStandardBrowserWebWorkerEnv:()=>Ks,navigator:()=>Bt,origin:()=>Zs});var Gt=typeof window<"u"&&typeof document<"u",Bt=typeof navigator=="object"&&navigator||void 0,Js=Gt&&(!Bt||["ReactNative","NativeScript","NS"].indexOf(Bt.product)<0),Ks=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zs=Gt&&window.location.href||"http://localhost";var E={...Ut,...zr};function Qt(r,e){return ce(r,new E.classes.URLSearchParams,{visitor:function(t,n,s,i){return E.isNode&&p.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function $s(r){return p.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ys(r){let e={},t=Object.keys(r),n,s=t.length,i;for(n=0;n<s;n++)i=t[n],e[i]=r[i];return e}function ei(r){function e(t,n,s,i){let a=t[i++];if(a==="__proto__")return!0;let o=Number.isFinite(+a),l=i>=t.length;return a=!a&&p.isArray(s)?s.length:a,l?(p.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!o):((!s[a]||!p.isObject(s[a]))&&(s[a]=[]),e(t,n,s[a],i)&&p.isArray(s[a])&&(s[a]=Ys(s[a])),!o)}if(p.isFormData(r)&&p.isFunction(r.entries)){let t={};return p.forEachEntry(r,(n,s)=>{e($s(n),s,t,0)}),t}return null}var et=ei;function ti(r,e,t){if(p.isString(r))try{return(e||JSON.parse)(r),p.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var Nt={transitional:Ye,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n=t.getContentType()||"",s=n.indexOf("application/json")>-1,i=p.isObject(e);if(i&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return s?JSON.stringify(et(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e)||p.isReadableStream(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Qt(e,this.formSerializer).toString();if((o=p.isFileList(e))||n.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return ce(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||s?(t.setContentType("application/json",!1),ti(e)):e}],transformResponse:[function(e){let t=this.transitional||Nt.transitional,n=t&&t.forcedJSONParsing,s=this.responseType==="json";if(p.isResponse(e)||p.isReadableStream(e))return e;if(e&&p.isString(e)&&(n&&!this.responseType||s)){let a=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e,this.parseReviver)}catch(o){if(a)throw o.name==="SyntaxError"?v.from(o,v.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:E.classes.FormData,Blob:E.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],r=>{Nt.headers[r]={}});var be=Nt;var ri=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hr=r=>{let e={},t,n,s;return r&&r.split(`
15
+ `).forEach(function(a){s=a.indexOf(":"),t=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!t||e[t]&&ri[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};var Jr=Symbol("internals");function Ie(r){return r&&String(r).trim().toLowerCase()}function tt(r){return r===!1||r==null?r:p.isArray(r)?r.map(tt):String(r)}function ni(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}var si=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Wt(r,e,t,n,s){if(p.isFunction(n))return n.call(this,e,t);if(s&&(e=t),!!p.isString(e)){if(p.isString(n))return e.indexOf(n)!==-1;if(p.isRegExp(n))return n.test(e)}}function ii(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function ai(r,e){let t=p.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(s,i,a){return this[n].call(this,e,s,i,a)},configurable:!0})})}var _e=class{constructor(e){e&&this.set(e)}set(e,t,n){let s=this;function i(o,l,c){let u=Ie(l);if(!u)throw new Error("header name must be a non-empty string");let g=p.findKey(s,u);(!g||s[g]===void 0||c===!0||c===void 0&&s[g]!==!1)&&(s[g||l]=tt(o))}let a=(o,l)=>p.forEach(o,(c,u)=>i(c,u,l));if(p.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(p.isString(e)&&(e=e.trim())&&!si(e))a(Hr(e),t);else if(p.isObject(e)&&p.isIterable(e)){let o={},l,c;for(let u of e){if(!p.isArray(u))throw TypeError("Object iterator must return a key-value pair");o[c=u[0]]=(l=o[c])?p.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(o,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Ie(e),e){let n=p.findKey(this,e);if(n){let s=this[n];if(!t)return s;if(t===!0)return ni(s);if(p.isFunction(t))return t.call(this,s,n);if(p.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ie(e),e){let n=p.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Wt(this,this[n],n,t)))}return!1}delete(e,t){let n=this,s=!1;function i(a){if(a=Ie(a),a){let o=p.findKey(n,a);o&&(!t||Wt(n,n[o],o,t))&&(delete n[o],s=!0)}}return p.isArray(e)?e.forEach(i):i(e),s}clear(e){let t=Object.keys(this),n=t.length,s=!1;for(;n--;){let i=t[n];(!e||Wt(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){let t=this,n={};return p.forEach(this,(s,i)=>{let a=p.findKey(n,i);if(a){t[a]=tt(s),delete t[i];return}let o=e?ii(i):String(i).trim();o!==i&&delete t[i],t[o]=tt(s),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return p.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=e&&p.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
16
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(s=>n.set(s)),n}static accessor(e){let n=(this[Jr]=this[Jr]={accessors:{}}).accessors,s=this.prototype;function i(a){let o=Ie(a);n[o]||(ai(s,a),n[o]=!0)}return p.isArray(e)?e.forEach(i):i(e),this}};_e.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);p.reduceDescriptors(_e.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}});p.freezeMethods(_e);var Q=_e;function ke(r,e){let t=this||be,n=e||t,s=Q.from(n.headers),i=n.data;return p.forEach(r,function(o){i=o.call(t,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function Ee(r){return!!(r&&r.__CANCEL__)}function Kr(r,e,t){v.call(this,r??"canceled",v.ERR_CANCELED,e,t),this.name="CanceledError"}p.inherits(Kr,v,{__CANCEL__:!0});var re=Kr;function qe(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new v("Request failed with status code "+t.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function jt(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function oi(r,e){r=r||10;let t=new Array(r),n=new Array(r),s=0,i=0,a;return e=e!==void 0?e:1e3,function(l){let c=Date.now(),u=n[i];a||(a=c),t[s]=l,n[s]=c;let g=i,m=0;for(;g!==s;)m+=t[g++],g=g%r;if(s=(s+1)%r,s===i&&(i=(i+1)%r),c-a<e)return;let y=u&&c-u;return y?Math.round(m*1e3/y):void 0}}var Zr=oi;function ui(r,e){let t=0,n=1e3/e,s,i,a=(c,u=Date.now())=>{t=u,s=null,i&&(clearTimeout(i),i=null),r(...c)};return[(...c)=>{let u=Date.now(),g=u-t;g>=n?a(c,u):(s=c,i||(i=setTimeout(()=>{i=null,a(s)},n-g)))},()=>s&&a(s)]}var $r=ui;var he=(r,e,t=3)=>{let n=0,s=Zr(50,250);return $r(i=>{let a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-n,c=s(l),u=a<=o;n=a;let g={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&u?(o-a)/c:void 0,event:i,lengthComputable:o!=null,[e?"download":"upload"]:!0};r(g)},t)},Xt=(r,e)=>{let t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},zt=r=>(...e)=>p.asap(()=>r(...e));var Yr=E.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,E.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(E.origin),E.navigator&&/(msie|trident)/i.test(E.navigator.userAgent)):()=>!0;var en=E.hasStandardBrowserEnv?{write(r,e,t,n,s,i,a){if(typeof document>"u")return;let o=[`${r}=${encodeURIComponent(e)}`];p.isNumber(t)&&o.push(`expires=${new Date(t).toUTCString()}`),p.isString(n)&&o.push(`path=${n}`),p.isString(s)&&o.push(`domain=${s}`),i===!0&&o.push("secure"),p.isString(a)&&o.push(`SameSite=${a}`),document.cookie=o.join("; ")},read(r){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ht(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Jt(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Ve(r,e,t){let n=!Ht(e);return r&&(n||t==!1)?Jt(r,e):e}var tn=r=>r instanceof Q?{...r}:r;function Z(r,e){e=e||{};let t={};function n(c,u,g,m){return p.isPlainObject(c)&&p.isPlainObject(u)?p.merge.call({caseless:m},c,u):p.isPlainObject(u)?p.merge({},u):p.isArray(u)?u.slice():u}function s(c,u,g,m){if(p.isUndefined(u)){if(!p.isUndefined(c))return n(void 0,c,g,m)}else return n(c,u,g,m)}function i(c,u){if(!p.isUndefined(u))return n(void 0,u)}function a(c,u){if(p.isUndefined(u)){if(!p.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function o(c,u,g){if(g in e)return n(c,u);if(g in r)return n(void 0,c)}let l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(c,u,g)=>s(tn(c),tn(u),g,!0)};return p.forEach(Object.keys({...r,...e}),function(u){let g=l[u]||s,m=g(r[u],e[u],u);p.isUndefined(m)&&g!==o||(t[u]=m)}),t}var rt=r=>{let e=Z({},r),{data:t,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:o}=e;if(e.headers=a=Q.from(a),e.url=Pe(Ve(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),p.isFormData(t)){if(E.hasStandardBrowserEnv||E.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(p.isFunction(t.getHeaders)){let l=t.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,g])=>{c.includes(u.toLowerCase())&&a.set(u,g)})}}if(E.hasStandardBrowserEnv&&(n&&p.isFunction(n)&&(n=n(e)),n||n!==!1&&Yr(e.url))){let l=s&&i&&en.read(i);l&&a.set(s,l)}return e};var ci=typeof XMLHttpRequest<"u",rn=ci&&function(r){return new Promise(function(t,n){let s=rt(r),i=s.data,a=Q.from(s.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:c}=s,u,g,m,y,d;function f(){y&&y(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function A(){if(!b)return;let x=Q.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),C={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:x,config:r,request:b};qe(function(T){t(T),f()},function(T){n(T),f()},C),b=null}"onloadend"in b?b.onloadend=A:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(A)},b.onabort=function(){b&&(n(new v("Request aborted",v.ECONNABORTED,r,b)),b=null)},b.onerror=function(S){let C=S&&S.message?S.message:"Network Error",U=new v(C,v.ERR_NETWORK,r,b);U.event=S||null,n(U),b=null},b.ontimeout=function(){let S=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",C=s.transitional||Ye;s.timeoutErrorMessage&&(S=s.timeoutErrorMessage),n(new v(S,C.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,r,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&p.forEach(a.toJSON(),function(S,C){b.setRequestHeader(C,S)}),p.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),o&&o!=="json"&&(b.responseType=s.responseType),c&&([m,d]=he(c,!0),b.addEventListener("progress",m)),l&&b.upload&&([g,y]=he(l),b.upload.addEventListener("progress",g),b.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(u=x=>{b&&(n(!x||x.type?new re(null,r,b):x),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));let R=jt(s.url);if(R&&E.protocols.indexOf(R)===-1){n(new v("Unsupported protocol "+R+":",v.ERR_BAD_REQUEST,r));return}b.send(i||null)})};var li=(r,e)=>{let{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,s,i=function(c){if(!s){s=!0,o();let u=c instanceof Error?c:this.reason;n.abort(u instanceof v?u:new re(u instanceof Error?u.message:u))}},a=e&&setTimeout(()=>{a=null,i(new v(`timeout ${e} of ms exceeded`,v.ETIMEDOUT))},e),o=()=>{r&&(a&&clearTimeout(a),a=null,r.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),r=null)};r.forEach(c=>c.addEventListener("abort",i));let{signal:l}=n;return l.unsubscribe=()=>p.asap(o),l}},nn=li;var gi=function*(r,e){let t=r.byteLength;if(!e||t<e){yield r;return}let n=0,s;for(;n<t;)s=n+e,yield r.slice(n,s),n=s},pi=async function*(r,e){for await(let t of mi(r))yield*gi(t,e)},mi=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}let e=r.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},Kt=(r,e,t,n)=>{let s=pi(r,e),i=0,a,o=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{let{done:c,value:u}=await s.next();if(c){o(),l.close();return}let g=u.byteLength;if(t){let m=i+=g;t(m)}l.enqueue(new Uint8Array(u))}catch(c){throw o(c),c}},cancel(l){return o(l),s.return()}},{highWaterMark:2})};var sn=64*1024,{isFunction:nt}=p,di=(({Request:r,Response:e})=>({Request:r,Response:e}))(p.global),{ReadableStream:an,TextEncoder:on}=p.global,un=(r,...e)=>{try{return!!r(...e)}catch{return!1}},yi=r=>{r=p.merge.call({skipUndefined:!0},di,r);let{fetch:e,Request:t,Response:n}=r,s=e?nt(e):typeof fetch=="function",i=nt(t),a=nt(n);if(!s)return!1;let o=s&&nt(an),l=s&&(typeof on=="function"?(d=>f=>d.encode(f))(new on):async d=>new Uint8Array(await new t(d).arrayBuffer())),c=i&&o&&un(()=>{let d=!1,f=new t(E.origin,{body:new an,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!f}),u=a&&o&&un(()=>p.isReadableStream(new n("").body)),g={stream:u&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!g[d]&&(g[d]=(f,b)=>{let A=f&&f[d];if(A)return A.call(f);throw new v(`Response type '${d}' is not supported`,v.ERR_NOT_SUPPORT,b)})});let m=async d=>{if(d==null)return 0;if(p.isBlob(d))return d.size;if(p.isSpecCompliantForm(d))return(await new t(E.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(p.isArrayBufferView(d)||p.isArrayBuffer(d))return d.byteLength;if(p.isURLSearchParams(d)&&(d=d+""),p.isString(d))return(await l(d)).byteLength},y=async(d,f)=>{let b=p.toFiniteNumber(d.getContentLength());return b??m(f)};return async d=>{let{url:f,method:b,data:A,signal:R,cancelToken:x,timeout:S,onDownloadProgress:C,onUploadProgress:U,responseType:T,headers:_,withCredentials:D="same-origin",fetchOptions:V}=rt(d),X=e||fetch;T=T?(T+"").toLowerCase():"text";let I=nn([R,x&&x.toAbortSignal()],S),ee=null,ie=I&&I.unsubscribe&&(()=>{I.unsubscribe()}),Dr;try{if(U&&c&&b!=="get"&&b!=="head"&&(Dr=await y(_,A))!==0){let ue=new t(f,{method:"POST",body:A,duplex:"half"}),me;if(p.isFormData(A)&&(me=ue.headers.get("content-type"))&&_.setContentType(me),ue.body){let[kt,je]=Xt(Dr,he(zt(U)));A=Kt(ue.body,sn,kt,je)}}p.isString(D)||(D=D?"include":"omit");let te=i&&"credentials"in t.prototype,Tr={...V,signal:I,method:b.toUpperCase(),headers:_.normalize().toJSON(),body:A,duplex:"half",credentials:te?D:void 0};ee=i&&new t(f,Tr);let oe=await(i?X(ee,V):X(f,Tr)),Cr=u&&(T==="stream"||T==="response");if(u&&(C||Cr&&ie)){let ue={};["status","statusText","headers"].forEach(wr=>{ue[wr]=oe[wr]});let me=p.toFiniteNumber(oe.headers.get("content-length")),[kt,je]=C&&Xt(me,he(zt(C),!0))||[];oe=new n(Kt(oe.body,sn,kt,()=>{je&&je(),ie&&ie()}),ue)}T=T||"text";let Yn=await g[p.findKey(g,T)||"text"](oe,d);return!Cr&&ie&&ie(),await new Promise((ue,me)=>{qe(ue,me,{data:Yn,headers:Q.from(oe.headers),status:oe.status,statusText:oe.statusText,config:d,request:ee})})}catch(te){throw ie&&ie(),te&&te.name==="TypeError"&&/Load failed|fetch/i.test(te.message)?Object.assign(new v("Network Error",v.ERR_NETWORK,d,ee),{cause:te.cause||te}):v.from(te,te&&te.code,d,ee)}}},fi=new Map,Zt=r=>{let e=r&&r.env||{},{fetch:t,Request:n,Response:s}=e,i=[n,s,t],a=i.length,o=a,l,c,u=fi;for(;o--;)l=i[o],c=u.get(l),c===void 0&&u.set(l,c=o?new Map:yi(e)),u=c;return c},Qc=Zt();var $t={http:Ze,xhr:rn,fetch:{get:Zt}};p.forEach($t,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});var cn=r=>`- ${r}`,_i=r=>p.isFunction(r)||r===null||r===!1;function hi(r,e){r=p.isArray(r)?r:[r];let{length:t}=r,n,s,i={};for(let a=0;a<t;a++){n=r[a];let o;if(s=n,!_i(n)&&(s=$t[(o=String(n)).toLowerCase()],s===void 0))throw new v(`Unknown adapter '${o}'`);if(s&&(p.isFunction(s)||(s=s.get(e))))break;i[o||"#"+a]=s}if(!s){let a=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build")),o=t?a.length>1?`since :
17
+ `+a.map(cn).join(`
18
+ `):" "+cn(a[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s}var st={getAdapter:hi,adapters:$t};function Yt(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new re(null,r)}function it(r){return Yt(r),r.headers=Q.from(r.headers),r.data=ke.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),st.getAdapter(r.adapter||be.adapter,r)(r).then(function(n){return Yt(r),n.data=ke.call(r,r.transformResponse,n),n.headers=Q.from(n.headers),n},function(n){return Ee(n)||(Yt(r),n&&n.response&&(n.response.data=ke.call(r,r.transformResponse,n.response),n.response.headers=Q.from(n.response.headers))),Promise.reject(n)})}var at="1.13.2";var ot={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{ot[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var ln={};ot.transitional=function(e,t,n){function s(i,a){return"[Axios v"+at+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(e===!1)throw new v(s(a," has been removed"+(t?" in "+t:"")),v.ERR_DEPRECATED);return t&&!ln[a]&&(ln[a]=!0,console.warn(s(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,a,o):!0}};ot.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Si(r,e,t){if(typeof r!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),s=n.length;for(;s-- >0;){let i=n[s],a=e[i];if(a){let o=r[i],l=o===void 0||a(o,i,r);if(l!==!0)throw new v("option "+i+" must be "+l,v.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new v("Unknown option "+i,v.ERR_BAD_OPTION)}}var Le={assertOptions:Si,validators:ot};var ne=Le.validators,Se=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Mt,response:new Mt}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;let i=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
19
+ `+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Z(this.defaults,t);let{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&Le.assertOptions(n,{silentJSONParsing:ne.transitional(ne.boolean),forcedJSONParsing:ne.transitional(ne.boolean),clarifyTimeoutError:ne.transitional(ne.boolean)},!1),s!=null&&(p.isFunction(s)?t.paramsSerializer={serialize:s}:Le.assertOptions(s,{encode:ne.function,serialize:ne.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Le.assertOptions(t,{baseUrl:ne.spelling("baseURL"),withXsrfToken:ne.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&p.merge(i.common,i[t.method]);i&&p.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),t.headers=Q.concat(a,i);let o=[],l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(t)===!1||(l=l&&f.synchronous,o.unshift(f.fulfilled,f.rejected))});let c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,g=0,m;if(!l){let d=[it.bind(this),void 0];for(d.unshift(...o),d.push(...c),m=d.length,u=Promise.resolve(t);g<m;)u=u.then(d[g++],d[g++]);return u}m=o.length;let y=t;for(;g<m;){let d=o[g++],f=o[g++];try{y=d(y)}catch(b){f.call(this,b);break}}try{u=it.call(this,y)}catch(d){return Promise.reject(d)}for(g=0,m=c.length;g<m;)u=u.then(c[g++],c[g++]);return u}getUri(e){e=Z(this.defaults,e);let t=Ve(e.baseURL,e.url,e.allowAbsoluteUrls);return Pe(t,e.params,e.paramsSerializer)}};p.forEach(["delete","get","head","options"],function(e){Se.prototype[e]=function(t,n){return this.request(Z(n||{},{method:e,url:t,data:(n||{}).data}))}});p.forEach(["post","put","patch"],function(e){function t(n){return function(i,a,o){return this.request(Z(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Se.prototype[e]=t(),Se.prototype[e+"Form"]=t(!0)});var Fe=Se;var er=class r{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});let n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i,a=new Promise(o=>{n.subscribe(o),i=o}).then(s);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i,a,o){n.reason||(n.reason=new re(i,a,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new r(function(s){e=s}),cancel:e}}},gn=er;function tr(r){return function(t){return r.apply(null,t)}}function rr(r){return p.isObject(r)&&r.isAxiosError===!0}var nr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(nr).forEach(([r,e])=>{nr[e]=r});var pn=nr;function mn(r){let e=new Fe(r),t=De(Fe.prototype.request,e);return p.extend(t,Fe.prototype,e,{allOwnKeys:!0}),p.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return mn(Z(r,s))},t}var G=mn(be);G.Axios=Fe;G.CanceledError=re;G.CancelToken=gn;G.isCancel=Ee;G.VERSION=at;G.toFormData=ce;G.AxiosError=v;G.Cancel=G.CanceledError;G.all=function(e){return Promise.all(e)};G.spread=tr;G.isAxiosError=rr;G.mergeConfig=Z;G.AxiosHeaders=Q;G.formToJSON=r=>et(p.isHTMLForm(r)?new FormData(r):r);G.getAdapter=st.getAdapter;G.HttpStatusCode=pn;G.default=G;var P=G;var{Axios:Bl,AxiosError:Gl,CanceledError:Ul,isCancel:Ql,CancelToken:Nl,VERSION:Wl,all:jl,Cancel:Xl,isAxiosError:zl,spread:Hl,toFormData:Jl,AxiosHeaders:Kl,HttpStatusCode:Zl,formToJSON:$l,getAdapter:Yl,mergeConfig:eg}=P;var q="https://stage-api.seekora.ai/api".replace(/\/+$/,"");var se=class{constructor(e,t=q,n=P){this.basePath=t;this.axios=n;e&&(this.configuration=e,this.basePath=e.basePath??t)}},ut=class extends Error{constructor(t,n){super(n);this.field=t;this.name="RequiredError"}},L={};var F="https://example.com",h=function(r,e,t){if(t==null)throw new ut(e,`Required parameter ${e} was null or undefined when calling ${r}.`)};function sr(r,e,t=""){e!=null&&(typeof e=="object"?Array.isArray(e)||e instanceof Set?e.forEach(n=>sr(r,n,t)):Object.keys(e).forEach(n=>sr(r,e[n],`${t}${t!==""?".":""}${n}`)):r.has(t)?r.append(t,e):r.set(t,e))}var O=function(r,...e){let t=new URLSearchParams(r.search);sr(t,e),r.search=t.toString()},xi=function(r,e){return e instanceof Set?Array.from(e):e},$=function(r,e,t){let n=typeof r!="string";return(n&&t&&t.isJsonMime?t.isJsonMime(e.headers["Content-Type"]):n)?JSON.stringify(r!==void 0?r:{},xi):r||""},M=function(r){return r.pathname+r.search+r.hash},B=function(r,e,t,n){return(s=e,i=t)=>{let a={...r.options,url:(s.defaults.baseURL?"":(n==null?void 0:n.basePath)??i)+r.url};return s.request(a)}};var Ai=function(r){return{analyticsBatchPost:async(e,t,n,s={})=>{h("analyticsBatchPost","xStoreid",e),h("analyticsBatchPost","xStoresecret",t),h("analyticsBatchPost","analyticsBatchPostRequest",n);let i="/analytics/batch",a=new URL(i,F),o;r&&(o=r.baseOptions);let l={method:"POST",...o,...s},c={},u={};c["Content-Type"]="application/json",c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),O(a,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},l.data=$(n,l,r),{url:M(a),options:l}},analyticsConfigGet:async(e,t,n={})=>{h("analyticsConfigGet","xStoreid",e),h("analyticsConfigGet","xStoresecret",t);let s="/analytics/config",i=new URL(s,F),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...n},l={},c={};l.Accept="application/json",e!=null&&(l["x-storeid"]=String(e)),t!=null&&(l["x-storesecret"]=String(t)),O(i,c);let u=a&&a.headers?a.headers:{};return o.headers={...l,...u,...n.headers},{url:M(i),options:o}},analyticsEventPost:async(e,t,n,s={})=>{h("analyticsEventPost","xStoreid",e),h("analyticsEventPost","xStoresecret",t),h("analyticsEventPost","dataTypesEventPayload",n);let i="/analytics/event",a=new URL(i,F),o;r&&(o=r.baseOptions);let l={method:"POST",...o,...s},c={},u={};c["Content-Type"]="application/json",c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),O(a,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},l.data=$(n,l,r),{url:M(a),options:l}},analyticsSchemaGet:async(e,t,n={})=>{h("analyticsSchemaGet","xStoreid",e),h("analyticsSchemaGet","xStoresecret",t);let s="/analytics/schema",i=new URL(s,F),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...n},l={},c={};l.Accept="application/json",e!=null&&(l["x-storeid"]=String(e)),t!=null&&(l["x-storesecret"]=String(t)),O(i,c);let u=a&&a.headers?a.headers:{};return o.headers={...l,...u,...n.headers},{url:M(i),options:o}},analyticsValidatePost:async(e,t,n,s={})=>{h("analyticsValidatePost","xStoreid",e),h("analyticsValidatePost","xStoresecret",t),h("analyticsValidatePost","dataTypesEventPayload",n);let i="/analytics/validate",a=new URL(i,F),o;r&&(o=r.baseOptions);let l={method:"POST",...o,...s},c={},u={};c["Content-Type"]="application/json",c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),O(a,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},l.data=$(n,l,r),{url:M(a),options:l}}}},Oe=function(r){let e=Ai(r);return{async analyticsBatchPost(t,n,s,i){var c,u;let a=await e.analyticsBatchPost(t,n,s,i),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["AnalyticsEventsApi.analyticsBatchPost"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(a,P,q,r)(g,l||m)},async analyticsConfigGet(t,n,s){var l,c;let i=await e.analyticsConfigGet(t,n,s),a=(r==null?void 0:r.serverIndex)??0,o=(c=(l=L["AnalyticsEventsApi.analyticsConfigGet"])==null?void 0:l[a])==null?void 0:c.url;return(u,g)=>B(i,P,q,r)(u,o||g)},async analyticsEventPost(t,n,s,i){var c,u;let a=await e.analyticsEventPost(t,n,s,i),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["AnalyticsEventsApi.analyticsEventPost"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(a,P,q,r)(g,l||m)},async analyticsSchemaGet(t,n,s){var l,c;let i=await e.analyticsSchemaGet(t,n,s),a=(r==null?void 0:r.serverIndex)??0,o=(c=(l=L["AnalyticsEventsApi.analyticsSchemaGet"])==null?void 0:l[a])==null?void 0:c.url;return(u,g)=>B(i,P,q,r)(u,o||g)},async analyticsValidatePost(t,n,s,i){var c,u;let a=await e.analyticsValidatePost(t,n,s,i),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["AnalyticsEventsApi.analyticsValidatePost"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(a,P,q,r)(g,l||m)}}};var ct=class extends se{analyticsBatchPost(e,t,n,s){return Oe(this.configuration).analyticsBatchPost(e,t,n,s).then(i=>i(this.axios,this.basePath))}analyticsConfigGet(e,t,n){return Oe(this.configuration).analyticsConfigGet(e,t,n).then(s=>s(this.axios,this.basePath))}analyticsEventPost(e,t,n,s){return Oe(this.configuration).analyticsEventPost(e,t,n,s).then(i=>i(this.axios,this.basePath))}analyticsSchemaGet(e,t,n){return Oe(this.configuration).analyticsSchemaGet(e,t,n).then(s=>s(this.axios,this.basePath))}analyticsValidatePost(e,t,n,s){return Oe(this.configuration).analyticsValidatePost(e,t,n,s).then(i=>i(this.axios,this.basePath))}},vi=function(r){return{v1SuggestionsConfigGet:async(e,t,n={})=>{h("v1SuggestionsConfigGet","xStoreid",e),h("v1SuggestionsConfigGet","xStoresecret",t);let s="/v1/suggestions/config",i=new URL(s,F),a;r&&(a=r.baseOptions);let o={method:"GET",...a,...n},l={},c={};l.Accept="application/json",e!=null&&(l["x-storeid"]=String(e)),t!=null&&(l["x-storesecret"]=String(t)),O(i,c);let u=a&&a.headers?a.headers:{};return o.headers={...l,...u,...n.headers},{url:M(i),options:o}},v1SuggestionsQueriesGet:async(e,t,n,s,i,a,o,l,c,u,g,m,y,d,f,b,A,R={})=>{h("v1SuggestionsQueriesGet","xStoreid",e),h("v1SuggestionsQueriesGet","xStoresecret",t);let x="/v1/suggestions/queries",S=new URL(x,F),C;r&&(C=r.baseOptions);let U={method:"GET",...C,...R},T={},_={};a!==void 0&&(_.query=a),o!==void 0&&(_.hitsPerPage=o),l!==void 0&&(_.page=l),c!==void 0&&(_.analytics_tags=c),u!==void 0&&(_.tags_match_mode=u),g!==void 0&&(_.include_categories=g),m!==void 0&&(_.include_facets=m),y!==void 0&&(_.max_categories=y),d!==void 0&&(_.max_facets=d),f!==void 0&&(_.min_popularity=f),b!==void 0&&(_.time_range=b),A!==void 0&&(_.disable_typo_tolerance=A),T.Accept="application/json",e!=null&&(T["x-storeid"]=String(e)),t!=null&&(T["x-storesecret"]=String(t)),n!=null&&(T["x-user-id"]=String(n)),s!=null&&(T["x-anon-id"]=String(s)),i!=null&&(T["x-session-id"]=String(i)),O(S,_);let D=C&&C.headers?C.headers:{};return U.headers={...T,...D,...R.headers},{url:M(S),options:U}},v1SuggestionsQueriesPost:async(e,t,n,s,i,a,o={})=>{h("v1SuggestionsQueriesPost","xStoreid",e),h("v1SuggestionsQueriesPost","xStoresecret",t);let l="/v1/suggestions/queries",c=new URL(l,F),u;r&&(u=r.baseOptions);let g={method:"POST",...u,...o},m={},y={};m["Content-Type"]="application/json",m.Accept="application/json",e!=null&&(m["x-storeid"]=String(e)),t!=null&&(m["x-storesecret"]=String(t)),n!=null&&(m["x-user-id"]=String(n)),s!=null&&(m["x-anon-id"]=String(s)),i!=null&&(m["x-session-id"]=String(i)),O(c,y);let d=u&&u.headers?u.headers:{};return g.headers={...m,...d,...o.headers},g.data=$(a,g,r),{url:M(c),options:g}}}},ir=function(r){let e=vi(r);return{async v1SuggestionsConfigGet(t,n,s){var l,c;let i=await e.v1SuggestionsConfigGet(t,n,s),a=(r==null?void 0:r.serverIndex)??0,o=(c=(l=L["QuerySuggestionsApi.v1SuggestionsConfigGet"])==null?void 0:l[a])==null?void 0:c.url;return(u,g)=>B(i,P,q,r)(u,o||g)},async v1SuggestionsQueriesGet(t,n,s,i,a,o,l,c,u,g,m,y,d,f,b,A,R,x){var T,_;let S=await e.v1SuggestionsQueriesGet(t,n,s,i,a,o,l,c,u,g,m,y,d,f,b,A,R,x),C=(r==null?void 0:r.serverIndex)??0,U=(_=(T=L["QuerySuggestionsApi.v1SuggestionsQueriesGet"])==null?void 0:T[C])==null?void 0:_.url;return(D,V)=>B(S,P,q,r)(D,U||V)},async v1SuggestionsQueriesPost(t,n,s,i,a,o,l){var m,y;let c=await e.v1SuggestionsQueriesPost(t,n,s,i,a,o,l),u=(r==null?void 0:r.serverIndex)??0,g=(y=(m=L["QuerySuggestionsApi.v1SuggestionsQueriesPost"])==null?void 0:m[u])==null?void 0:y.url;return(d,f)=>B(c,P,q,r)(d,g||f)}}};var lt=class extends se{v1SuggestionsConfigGet(e,t,n){return ir(this.configuration).v1SuggestionsConfigGet(e,t,n).then(s=>s(this.axios,this.basePath))}v1SuggestionsQueriesGet(e,t,n,s,i,a,o,l,c,u,g,m,y,d,f,b,A,R){return ir(this.configuration).v1SuggestionsQueriesGet(e,t,n,s,i,a,o,l,c,u,g,m,y,d,f,b,A,R).then(x=>x(this.axios,this.basePath))}v1SuggestionsQueriesPost(e,t,n,s,i,a,o){return ir(this.configuration).v1SuggestionsQueriesPost(e,t,n,s,i,a,o).then(l=>l(this.axios,this.basePath))}};var Ri=function(r){return{apiV1StoresXStoreIDDocumentsBulkPost:async(e,t,n,s,i={})=>{h("apiV1StoresXStoreIDDocumentsBulkPost","xStoreid",e),h("apiV1StoresXStoreIDDocumentsBulkPost","xStoreWriteSecret",t),h("apiV1StoresXStoreIDDocumentsBulkPost","xStoreID",n),h("apiV1StoresXStoreIDDocumentsBulkPost","dataTypesBulkDocumentRequest",s);let a="/api/v1/stores/{xStoreID}/documents/bulk".replace("{xStoreID}",encodeURIComponent(String(n))),o=new URL(a,F),l;r&&(l=r.baseOptions);let c={method:"POST",...l,...i},u={},g={};u["Content-Type"]="application/json",u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),O(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...i.headers},c.data=$(s,c,r),{url:M(o),options:c}},apiV1StoresXStoreIDDocumentsDocumentIDDelete:async(e,t,n,s,i={})=>{h("apiV1StoresXStoreIDDocumentsDocumentIDDelete","xStoreid",e),h("apiV1StoresXStoreIDDocumentsDocumentIDDelete","xStoreWriteSecret",t),h("apiV1StoresXStoreIDDocumentsDocumentIDDelete","xStoreID",n),h("apiV1StoresXStoreIDDocumentsDocumentIDDelete","documentID",s);let a="/api/v1/stores/{xStoreID}/documents/{documentID}".replace("{xStoreID}",encodeURIComponent(String(n))).replace("{documentID}",encodeURIComponent(String(s))),o=new URL(a,F),l;r&&(l=r.baseOptions);let c={method:"DELETE",...l,...i},u={},g={};u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),O(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...i.headers},{url:M(o),options:c}},apiV1StoresXStoreIDDocumentsPost:async(e,t,n,s,i={})=>{h("apiV1StoresXStoreIDDocumentsPost","xStoreid",e),h("apiV1StoresXStoreIDDocumentsPost","xStoreWriteSecret",t),h("apiV1StoresXStoreIDDocumentsPost","xStoreID",n),h("apiV1StoresXStoreIDDocumentsPost","dataTypesDocumentRequest",s);let a="/api/v1/stores/{xStoreID}/documents".replace("{xStoreID}",encodeURIComponent(String(n))),o=new URL(a,F),l;r&&(l=r.baseOptions);let c={method:"POST",...l,...i},u={},g={};u["Content-Type"]="application/json",u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),O(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...i.headers},c.data=$(s,c,r),{url:M(o),options:c}}}},ar=function(r){let e=Ri(r);return{async apiV1StoresXStoreIDDocumentsBulkPost(t,n,s,i,a){var u,g;let o=await e.apiV1StoresXStoreIDDocumentsBulkPost(t,n,s,i,a),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKDocumentsApi.apiV1StoresXStoreIDDocumentsBulkPost"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,P,q,r)(m,c||y)},async apiV1StoresXStoreIDDocumentsDocumentIDDelete(t,n,s,i,a){var u,g;let o=await e.apiV1StoresXStoreIDDocumentsDocumentIDDelete(t,n,s,i,a),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKDocumentsApi.apiV1StoresXStoreIDDocumentsDocumentIDDelete"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,P,q,r)(m,c||y)},async apiV1StoresXStoreIDDocumentsPost(t,n,s,i,a){var u,g;let o=await e.apiV1StoresXStoreIDDocumentsPost(t,n,s,i,a),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKDocumentsApi.apiV1StoresXStoreIDDocumentsPost"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,P,q,r)(m,c||y)}}};var gt=class extends se{apiV1StoresXStoreIDDocumentsBulkPost(e,t,n,s,i){return ar(this.configuration).apiV1StoresXStoreIDDocumentsBulkPost(e,t,n,s,i).then(a=>a(this.axios,this.basePath))}apiV1StoresXStoreIDDocumentsDocumentIDDelete(e,t,n,s,i){return ar(this.configuration).apiV1StoresXStoreIDDocumentsDocumentIDDelete(e,t,n,s,i).then(a=>a(this.axios,this.basePath))}apiV1StoresXStoreIDDocumentsPost(e,t,n,s,i){return ar(this.configuration).apiV1StoresXStoreIDDocumentsPost(e,t,n,s,i).then(a=>a(this.axios,this.basePath))}},Di=function(r){return{apiV1StoresXStoreIDQuerySuggestionsConfigGet:async(e,t,n,s={})=>{h("apiV1StoresXStoreIDQuerySuggestionsConfigGet","xStoreid",e),h("apiV1StoresXStoreIDQuerySuggestionsConfigGet","xStoresecret",t),h("apiV1StoresXStoreIDQuerySuggestionsConfigGet","xStoreID",n);let i="/api/v1/stores/{xStoreID}/query-suggestions/config".replace("{xStoreID}",encodeURIComponent(String(n))),a=new URL(i,F),o;r&&(o=r.baseOptions);let l={method:"GET",...o,...s},c={},u={};c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),O(a,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},{url:M(a),options:l}},apiV1StoresXStoreIDQuerySuggestionsConfigPut:async(e,t,n,s,i={})=>{h("apiV1StoresXStoreIDQuerySuggestionsConfigPut","xStoreid",e),h("apiV1StoresXStoreIDQuerySuggestionsConfigPut","xStoreWriteSecret",t),h("apiV1StoresXStoreIDQuerySuggestionsConfigPut","xStoreID",n),h("apiV1StoresXStoreIDQuerySuggestionsConfigPut","querySuggestionsServiceUpdateSuggestionConfigRequest",s);let a="/api/v1/stores/{xStoreID}/query-suggestions/config".replace("{xStoreID}",encodeURIComponent(String(n))),o=new URL(a,F),l;r&&(l=r.baseOptions);let c={method:"PUT",...l,...i},u={},g={};u["Content-Type"]="application/json",u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),O(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...i.headers},c.data=$(s,c,r),{url:M(o),options:c}}}},dn=function(r){let e=Di(r);return{async apiV1StoresXStoreIDQuerySuggestionsConfigGet(t,n,s,i){var c,u;let a=await e.apiV1StoresXStoreIDQuerySuggestionsConfigGet(t,n,s,i),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["SDKQuerySuggestionsConfigApi.apiV1StoresXStoreIDQuerySuggestionsConfigGet"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(a,P,q,r)(g,l||m)},async apiV1StoresXStoreIDQuerySuggestionsConfigPut(t,n,s,i,a){var u,g;let o=await e.apiV1StoresXStoreIDQuerySuggestionsConfigPut(t,n,s,i,a),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKQuerySuggestionsConfigApi.apiV1StoresXStoreIDQuerySuggestionsConfigPut"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,P,q,r)(m,c||y)}}};var pt=class extends se{apiV1StoresXStoreIDQuerySuggestionsConfigGet(e,t,n,s){return dn(this.configuration).apiV1StoresXStoreIDQuerySuggestionsConfigGet(e,t,n,s).then(i=>i(this.axios,this.basePath))}apiV1StoresXStoreIDQuerySuggestionsConfigPut(e,t,n,s,i){return dn(this.configuration).apiV1StoresXStoreIDQuerySuggestionsConfigPut(e,t,n,s,i).then(a=>a(this.axios,this.basePath))}},Ti=function(r){return{apiV1StoresXStoreIDDocumentsDelete:async(e,t,n,s={})=>{h("apiV1StoresXStoreIDDocumentsDelete","xStoreid",e),h("apiV1StoresXStoreIDDocumentsDelete","xStoreWriteSecret",t),h("apiV1StoresXStoreIDDocumentsDelete","xStoreID",n);let i="/api/v1/stores/{xStoreID}/documents".replace("{xStoreID}",encodeURIComponent(String(n))),a=new URL(i,F),o;r&&(o=r.baseOptions);let l={method:"DELETE",...o,...s},c={},u={};c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-store-write-secret"]=String(t)),O(a,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},{url:M(a),options:l}},apiV1StoresXStoreIDSchemaGet:async(e,t,n,s={})=>{h("apiV1StoresXStoreIDSchemaGet","xStoreid",e),h("apiV1StoresXStoreIDSchemaGet","xStoresecret",t),h("apiV1StoresXStoreIDSchemaGet","xStoreID",n);let i="/api/v1/stores/{xStoreID}/schema".replace("{xStoreID}",encodeURIComponent(String(n))),a=new URL(i,F),o;r&&(o=r.baseOptions);let l={method:"GET",...o,...s},c={},u={};c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),O(a,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},{url:M(a),options:l}},apiV1StoresXStoreIDSchemaPost:async(e,t,n,s,i={})=>{h("apiV1StoresXStoreIDSchemaPost","xStoreid",e),h("apiV1StoresXStoreIDSchemaPost","xStoreWriteSecret",t),h("apiV1StoresXStoreIDSchemaPost","xStoreID",n),h("apiV1StoresXStoreIDSchemaPost","dataTypesCollectionSchemaRequest",s);let a="/api/v1/stores/{xStoreID}/schema".replace("{xStoreID}",encodeURIComponent(String(n))),o=new URL(a,F),l;r&&(l=r.baseOptions);let c={method:"POST",...l,...i},u={},g={};u["Content-Type"]="application/json",u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),O(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...i.headers},c.data=$(s,c,r),{url:M(o),options:c}}}},or=function(r){let e=Ti(r);return{async apiV1StoresXStoreIDDocumentsDelete(t,n,s,i){var c,u;let a=await e.apiV1StoresXStoreIDDocumentsDelete(t,n,s,i),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["SDKSchemaApi.apiV1StoresXStoreIDDocumentsDelete"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(a,P,q,r)(g,l||m)},async apiV1StoresXStoreIDSchemaGet(t,n,s,i){var c,u;let a=await e.apiV1StoresXStoreIDSchemaGet(t,n,s,i),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["SDKSchemaApi.apiV1StoresXStoreIDSchemaGet"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(a,P,q,r)(g,l||m)},async apiV1StoresXStoreIDSchemaPost(t,n,s,i,a){var u,g;let o=await e.apiV1StoresXStoreIDSchemaPost(t,n,s,i,a),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKSchemaApi.apiV1StoresXStoreIDSchemaPost"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,P,q,r)(m,c||y)}}};var mt=class extends se{apiV1StoresXStoreIDDocumentsDelete(e,t,n,s){return or(this.configuration).apiV1StoresXStoreIDDocumentsDelete(e,t,n,s).then(i=>i(this.axios,this.basePath))}apiV1StoresXStoreIDSchemaGet(e,t,n,s){return or(this.configuration).apiV1StoresXStoreIDSchemaGet(e,t,n,s).then(i=>i(this.axios,this.basePath))}apiV1StoresXStoreIDSchemaPost(e,t,n,s,i){return or(this.configuration).apiV1StoresXStoreIDSchemaPost(e,t,n,s,i).then(a=>a(this.axios,this.basePath))}},Ci=function(r){return{apiV1StoresXStoreIDConfigGet:async(e,t,n,s={})=>{h("apiV1StoresXStoreIDConfigGet","xStoreid",e),h("apiV1StoresXStoreIDConfigGet","xStoresecret",t),h("apiV1StoresXStoreIDConfigGet","xStoreID",n);let i="/api/v1/stores/{xStoreID}/config".replace("{xStoreID}",encodeURIComponent(String(n))),a=new URL(i,F),o;r&&(o=r.baseOptions);let l={method:"GET",...o,...s},c={},u={};c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),O(a,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},{url:M(a),options:l}},apiV1StoresXStoreIDConfigPut:async(e,t,n,s,i={})=>{h("apiV1StoresXStoreIDConfigPut","xStoreid",e),h("apiV1StoresXStoreIDConfigPut","xStoreWriteSecret",t),h("apiV1StoresXStoreIDConfigPut","xStoreID",n),h("apiV1StoresXStoreIDConfigPut","dataTypesIndexConfig",s);let a="/api/v1/stores/{xStoreID}/config".replace("{xStoreID}",encodeURIComponent(String(n))),o=new URL(a,F),l;r&&(l=r.baseOptions);let c={method:"PUT",...l,...i},u={},g={};u["Content-Type"]="application/json",u.Accept="application/json",e!=null&&(u["x-storeid"]=String(e)),t!=null&&(u["x-store-write-secret"]=String(t)),O(o,g);let m=l&&l.headers?l.headers:{};return c.headers={...u,...m,...i.headers},c.data=$(s,c,r),{url:M(o),options:c}},apiV1StoresXStoreIDConfigSchemaGet:async(e,t,n,s={})=>{h("apiV1StoresXStoreIDConfigSchemaGet","xStoreid",e),h("apiV1StoresXStoreIDConfigSchemaGet","xStoresecret",t),h("apiV1StoresXStoreIDConfigSchemaGet","xStoreID",n);let i="/api/v1/stores/{xStoreID}/config-schema".replace("{xStoreID}",encodeURIComponent(String(n))),a=new URL(i,F),o;r&&(o=r.baseOptions);let l={method:"GET",...o,...s},c={},u={};c.Accept="application/json",e!=null&&(c["x-storeid"]=String(e)),t!=null&&(c["x-storesecret"]=String(t)),O(a,u);let g=o&&o.headers?o.headers:{};return l.headers={...c,...g,...s.headers},{url:M(a),options:l}}}},ur=function(r){let e=Ci(r);return{async apiV1StoresXStoreIDConfigGet(t,n,s,i){var c,u;let a=await e.apiV1StoresXStoreIDConfigGet(t,n,s,i),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["SDKStoreConfigApi.apiV1StoresXStoreIDConfigGet"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(a,P,q,r)(g,l||m)},async apiV1StoresXStoreIDConfigPut(t,n,s,i,a){var u,g;let o=await e.apiV1StoresXStoreIDConfigPut(t,n,s,i,a),l=(r==null?void 0:r.serverIndex)??0,c=(g=(u=L["SDKStoreConfigApi.apiV1StoresXStoreIDConfigPut"])==null?void 0:u[l])==null?void 0:g.url;return(m,y)=>B(o,P,q,r)(m,c||y)},async apiV1StoresXStoreIDConfigSchemaGet(t,n,s,i){var c,u;let a=await e.apiV1StoresXStoreIDConfigSchemaGet(t,n,s,i),o=(r==null?void 0:r.serverIndex)??0,l=(u=(c=L["SDKStoreConfigApi.apiV1StoresXStoreIDConfigSchemaGet"])==null?void 0:c[o])==null?void 0:u.url;return(g,m)=>B(a,P,q,r)(g,l||m)}}};var dt=class extends se{apiV1StoresXStoreIDConfigGet(e,t,n,s){return ur(this.configuration).apiV1StoresXStoreIDConfigGet(e,t,n,s).then(i=>i(this.axios,this.basePath))}apiV1StoresXStoreIDConfigPut(e,t,n,s,i){return ur(this.configuration).apiV1StoresXStoreIDConfigPut(e,t,n,s,i).then(a=>a(this.axios,this.basePath))}apiV1StoresXStoreIDConfigSchemaGet(e,t,n,s){return ur(this.configuration).apiV1StoresXStoreIDConfigSchemaGet(e,t,n,s).then(i=>i(this.axios,this.basePath))}};var wi=function(r){return{v1SearchPost:async(e,t,n,s,i,a,o={})=>{h("v1SearchPost","xStoreid",e),h("v1SearchPost","xStoresecret",t),h("v1SearchPost","dataTypesPublicSearchRequest",n);let l="/v1/search",c=new URL(l,F),u;r&&(u=r.baseOptions);let g={method:"POST",...u,...o},m={},y={};m["Content-Type"]="application/json",m.Accept="application/json",e!=null&&(m["x-storeid"]=String(e)),t!=null&&(m["x-storesecret"]=String(t)),s!=null&&(m["x-user-id"]=String(s)),i!=null&&(m["x-anon-id"]=String(i)),a!=null&&(m["x-session-id"]=String(a)),O(c,y);let d=u&&u.headers?u.headers:{};return g.headers={...m,...d,...o.headers},g.data=$(n,g,r),{url:M(c),options:g}}}},Pi=function(r){let e=wi(r);return{async v1SearchPost(t,n,s,i,a,o,l){var m,y;let c=await e.v1SearchPost(t,n,s,i,a,o,l),u=(r==null?void 0:r.serverIndex)??0,g=(y=(m=L["SearchApi.v1SearchPost"])==null?void 0:m[u])==null?void 0:y.url;return(d,f)=>B(c,P,q,r)(d,g||f)}}};var yt=class extends se{v1SearchPost(e,t,n,s,i,a,o){return Pi(this.configuration).v1SearchPost(e,t,n,s,i,a,o).then(l=>l(this.axios,this.basePath))}};var ft=class{constructor(e={}){var t;this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.awsv4=e.awsv4,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions={...e.baseOptions,headers:{...(t=e.baseOptions)==null?void 0:t.headers}},this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!==null&&(t.test(e)||e.toLowerCase()==="application/json-patch+json")}};var cr={production:{baseUrl:"https://api.seekora.com/api",name:"Production"}};function bt(r,e){return e||cr.production.baseUrl}function yn(r){return"production"}var lr={verbose:0,info:1,warn:2,error:3,silent:4};function Be(){var s;let r;typeof process<"u"&&process.env?r=(s=process.env.SEEKORA_LOG_LEVEL)==null?void 0:s.toLowerCase():typeof window<"u"&&window.SEEKORA_LOG_LEVEL&&(r=String(window.SEEKORA_LOG_LEVEL).toLowerCase());let e={verbose:"verbose",info:"info",warn:"warn",warning:"warn",error:"error",silent:"silent",debug:"verbose",fatal:"error"};if(r&&e[r])return e[r];let t=typeof process<"u"&&process.env?"production":void 0,n=typeof process<"u"&&process.env?process.env.DEBUG:void 0;return t==="development"||n?"verbose":"info"}var Me=class{constructor(e={}){this.level=e.level||Be(),this.levelValue=lr[this.level],this.enableConsole=e.enableConsole!==!1,this.enableFile=e.enableFile||!1,this.filePath=e.filePath,this.format=e.format||"text",this.enableTimestamp=e.enableTimestamp!==!1,this.prefix=e.prefix||"[Seekora SDK]",this.enablePrefix=e.enablePrefix!==!1}shouldLog(e){return this.level==="silent"?!1:lr[e]>=this.levelValue}formatMessage(e,t,n){let s=[];if(this.enableTimestamp){let i=new Date().toISOString();s.push(`[${i}]`)}if(this.enablePrefix&&this.prefix&&s.push(this.prefix),s.push(`[${e.toUpperCase()}]`),s.push(t),n&&Object.keys(n).length>0){if(this.format==="json")return JSON.stringify({timestamp:this.enableTimestamp?new Date().toISOString():void 0,level:e,message:t,...n});s.push(JSON.stringify(n,null,2))}return s.join(" ")}write(e,t,n){if(!this.shouldLog(e))return;let s=this.formatMessage(e,t,n);this.enableConsole&&(e==="error"?console.error:e==="warn"?console.warn:console.log)(s),this.enableFile&&this.filePath}verbose(e,t){this.write("verbose",e,t)}info(e,t){this.write("info",e,t)}warn(e,t){this.write("warn",e,t)}error(e,t){this.write("error",e,t)}debug(e,t){this.verbose(e,t)}fatal(e,t){this.error(e,t)}setLevel(e){this.level=e,this.levelValue=lr[e]}getLevel(){return this.level}};function Ge(r){return new Me(r)}var hg=Ge();var _t,ht;try{typeof window>"u"&&typeof Xe<"u"&&(_t=Xe("fs"),ht=Xe("path"))}catch{}function Ii(){let r=[".seekora.json",".seekora.yaml",".seekora.yml","seekora.config.json","seekora.config.yaml","seekora.config.yml"];if(ht&&typeof process<"u"&&process.env){let e=process.env.HOME||process.env.USERPROFILE||"";e&&r.push(ht.join(e,".seekora.json"),ht.join(e,".seekora.yaml"))}return r}function gr(r){if(!_t||typeof window<"u")return null;let e=r?[r]:Ii();for(let t of e)if(t)try{if(!_t.existsSync(t))continue;let n=_t.readFileSync(t,"utf-8"),s;if(t.endsWith(".yaml")||t.endsWith(".yml"))try{s=JSON.parse(n)}catch{throw new Error("YAML parsing not fully supported. Use JSON or install yaml package.")}else s=JSON.parse(n);return s}catch{continue}return null}function pr(){return typeof window<"u"&&window.SEEKORA_CONFIG?window.SEEKORA_CONFIG:typeof process<"u"&&process.env?{storeId:process.env.SEEKORA_STORE_ID,readSecret:process.env.SEEKORA_READ_SECRET,writeSecret:process.env.SEEKORA_WRITE_SECRET,baseUrl:process.env.SEEKORA_BASE_URL,environment:process.env.SEEKORA_ENV,timeout:process.env.SEEKORA_TIMEOUT?parseInt(process.env.SEEKORA_TIMEOUT,10):void 0,logLevel:process.env.SEEKORA_LOG_LEVEL}:{}}function ki(r,e,t){let n={};if(r&&Object.assign(n,r),Object.assign(n,e),Object.assign(n,t),!n.storeId)throw new Error("storeId is required. Provide it in config file, environment variable, or code.");if(!n.readSecret)throw new Error("readSecret is required. Provide it in config file, environment variable, or code.");return n}function St(r={}){let e=gr(r.configFile),t=pr();return ki(e,t,r)}function le(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){let e=Math.random()*16|0;return(r==="x"?e:e&3|8).toString(16)})}function fn(){if(typeof window<"u"&&(window!=null&&window.localStorage)){let r="seekora_anon_id",e=window.localStorage,t=e.getItem(r);return t||(t=le(),e.setItem(r,t)),t}return global.__seekora_anon_id||(global.__seekora_anon_id=le()),global.__seekora_anon_id}function bn(){if(typeof window<"u"&&(window!=null&&window.sessionStorage)){let r="seekora_session_id",e=window.sessionStorage,t=e.getItem(r);return t||(t=le(),e.setItem(r,t)),t}return global.__seekora_session_id||(global.__seekora_session_id=le()),global.__seekora_session_id}var wt=null;async function qo(){if(wt)return wt;try{return wt=await Promise.resolve().then(()=>($n(),Zn)),wt}catch{return null}}var Vo={enableFingerprinting:!0,useFingerprintJS:!0,enableCanvasFingerprint:!0,enableWebGLFingerprint:!0,enableAudioFingerprint:!1,autoCollect:!0,cacheDuration:3e4,fingerprintStorageKey:"seekora_device_fp",enableExtendedComponents:!0},Pt=class{constructor(e={}){this.cachedContext=null;this.cacheTimestamp=0;this.cachedFingerprint=null;this.fingerprintJSAgent=null;this.fingerprintJSLoading=null;this.usingFingerprintJS=!1;this.config={...Vo,...e},this.config.enableFingerprinting&&(this.loadCachedFingerprint(),this.config.useFingerprintJS&&this.isBrowser()&&this.initFingerprintJS())}async initFingerprintJS(){this.fingerprintJSAgent||this.fingerprintJSLoading||(this.fingerprintJSLoading=(async()=>{try{let e=await qo();e&&(this.fingerprintJSAgent=await e.load(),this.usingFingerprintJS=!0,console.debug("[Seekora] FingerprintJS initialized successfully"))}catch{console.debug("[Seekora] FingerprintJS not available, using manual fingerprinting")}return this.fingerprintJSAgent})(),await this.fingerprintJSLoading)}async getFingerprintJSAgent(){return this.fingerprintJSAgent?this.fingerprintJSAgent:this.fingerprintJSLoading?(await this.fingerprintJSLoading,this.fingerprintJSAgent):(await this.initFingerprintJS(),this.fingerprintJSAgent)}isBrowser(){return typeof window<"u"&&typeof document<"u"}async collect(){if(this.cachedContext&&this.config.cacheDuration>0&&Date.now()-this.cacheTimestamp<this.config.cacheDuration)return this.cachedContext.document_visibility=this.getDocumentVisibility(),this.cachedContext.viewport_width=this.getViewportWidth(),this.cachedContext.viewport_height=this.getViewportHeight(),this.cachedContext;let e=await this.collectFresh();return this.cachedContext=e,this.cacheTimestamp=Date.now(),e}async collectFresh(){if(!this.isBrowser())return this.getServerContext();let e=this.parseUTMParameters(),t=this.getConnectionInfo(),n=this.parseBrowserInfo(),s={screen_width:screen.width||0,screen_height:screen.height||0,viewport_width:this.getViewportWidth(),viewport_height:this.getViewportHeight(),color_depth:screen.colorDepth||screen.pixelDepth||24,pixel_ratio:window.devicePixelRatio||1,browser_name:n.name,browser_version:n.version,browser_language:navigator.language||"en",browser_languages:Array.from(navigator.languages||[navigator.language||"en"]),timezone:this.getTimezone(),timezone_offset:new Date().getTimezoneOffset(),page_url:this.sanitizeUrl(window.location.href),page_path:window.location.pathname,page_title:document.title||"",page_referrer:this.sanitizeUrl(document.referrer||""),document_visibility:this.getDocumentVisibility(),...e,...t,platform:this.detectPlatform(),is_mobile:this.isMobile(),is_tablet:this.isTablet(),is_touch_device:this.isTouchDevice(),hardware_concurrency:navigator.hardwareConcurrency,max_touch_points:navigator.maxTouchPoints,device_memory:navigator.deviceMemory};return this.config.enableFingerprinting&&(s.device_fingerprint=await this.getOrGenerateFingerprint()),s}getServerContext(){return{screen_width:0,screen_height:0,viewport_width:0,viewport_height:0,color_depth:0,pixel_ratio:1,browser_name:"node",browser_version:process.version||"",browser_language:"en",browser_languages:["en"],timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",timezone_offset:new Date().getTimezoneOffset(),page_url:"",page_path:"",page_title:"",page_referrer:"",document_visibility:"visible",platform:process.platform||"unknown",is_mobile:!1,is_tablet:!1,is_touch_device:!1}}getViewportWidth(){var e,t;return this.isBrowser()&&(window.innerWidth||((e=document.documentElement)==null?void 0:e.clientWidth)||((t=document.body)==null?void 0:t.clientWidth))||0}getViewportHeight(){var e,t;return this.isBrowser()&&(window.innerHeight||((e=document.documentElement)==null?void 0:e.clientHeight)||((t=document.body)==null?void 0:t.clientHeight))||0}getDocumentVisibility(){return this.isBrowser()&&document.visibilityState||"visible"}getTimezone(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}parseUTMParameters(){if(!this.isBrowser())return{};try{let e=new URLSearchParams(window.location.search),t={},n=e.get("utm_source"),s=e.get("utm_medium"),i=e.get("utm_campaign"),a=e.get("utm_term"),o=e.get("utm_content");if(n&&(t.utm_source=n),s&&(t.utm_medium=s),i&&(t.utm_campaign=i),a&&(t.utm_term=a),o&&(t.utm_content=o),Object.keys(t).length===0&&document.referrer)try{let l=new URL(document.referrer),c=new URLSearchParams(l.search),u=c.get("utm_source"),g=c.get("utm_medium"),m=c.get("utm_campaign"),y=c.get("utm_term"),d=c.get("utm_content");u&&(t.utm_source=u),g&&(t.utm_medium=g),m&&(t.utm_campaign=m),y&&(t.utm_term=y),d&&(t.utm_content=d)}catch{}return t}catch{return{}}}getConnectionInfo(){if(!this.isBrowser())return{};let e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e?{connection_type:e.type,connection_effective_type:e.effectiveType,connection_downlink:e.downlink,connection_rtt:e.rtt}:{}}parseBrowserInfo(){if(!this.isBrowser())return{name:"node",version:process.version||""};let e=navigator.userAgent,t="unknown",n="";if(e.includes("Firefox/")){t="firefox";let s=e.match(/Firefox\/(\d+\.?\d*)/);n=s?s[1]:""}else if(e.includes("Edg/")){t="edge";let s=e.match(/Edg\/(\d+\.?\d*)/);n=s?s[1]:""}else if(e.includes("OPR/")||e.includes("Opera/")){t="opera";let s=e.match(/(?:OPR|Opera)\/(\d+\.?\d*)/);n=s?s[1]:""}else if(e.includes("Chrome/")){t="chrome";let s=e.match(/Chrome\/(\d+\.?\d*)/);n=s?s[1]:""}else if(e.includes("Safari/")&&!e.includes("Chrome")){t="safari";let s=e.match(/Version\/(\d+\.?\d*)/);n=s?s[1]:""}else if(e.includes("MSIE")||e.includes("Trident/")){t="ie";let s=e.match(/(?:MSIE |rv:)(\d+\.?\d*)/);n=s?s[1]:""}return{name:t,version:n}}detectPlatform(){if(!this.isBrowser())return process.platform||"unknown";let e=navigator.userAgent.toLowerCase(),t=(navigator.platform||"").toLowerCase();return e.includes("android")?"android":e.includes("iphone")||e.includes("ipad")||e.includes("ipod")?"ios":t.includes("mac")||e.includes("mac os")?"macos":t.includes("win")||e.includes("windows")?"windows":t.includes("linux")||e.includes("linux")?"linux":e.includes("cros")?"chromeos":"unknown"}isMobile(){if(!this.isBrowser())return!1;let e=navigator.userAgent.toLowerCase();return/android|webos|iphone|ipod|blackberry|iemobile|opera mini|mobile/i.test(e)}isTablet(){if(!this.isBrowser())return!1;let e=navigator.userAgent.toLowerCase();return/ipad|tablet|playbook|silk/i.test(e)||e.includes("android")&&!e.includes("mobile")}isTouchDevice(){return this.isBrowser()?"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0:!1}sanitizeUrl(e){if(!e)return"";try{let t=new URL(e);return["password","token","api_key","apikey","secret","auth","key"].forEach(s=>{t.searchParams.has(s)&&t.searchParams.set(s,"[REDACTED]")}),t.toString()}catch{return e}}loadCachedFingerprint(){if(this.isBrowser())try{let e=localStorage.getItem(this.config.fingerprintStorageKey);e&&(this.cachedFingerprint=e)}catch{}}async getOrGenerateFingerprint(){if(this.cachedFingerprint)return this.cachedFingerprint;let e=await this.generateFingerprint();if(this.cachedFingerprint=e,this.isBrowser())try{localStorage.setItem(this.config.fingerprintStorageKey,e)}catch{}return e}async generateFingerprint(){var e;if(this.config.useFingerprintJS&&this.isBrowser())try{let t=await this.getFingerprintJSAgent();if(t){let n=await t.get();return console.debug("[Seekora] FingerprintJS fingerprint generated:",{visitorId:n.visitorId,confidence:(e=n.confidence)==null?void 0:e.score,components:Object.keys(n.components||{}).length}),n.visitorId}}catch(t){console.debug("[Seekora] FingerprintJS failed, falling back to manual:",t)}return this.generateManualFingerprint()}async generateManualFingerprint(){var t;let e=[];if(!this.isBrowser())return e.push(process.platform||"unknown",process.version||"unknown",process.arch||"unknown"),this.hashComponents(e);if(e.push(screen.width,screen.height,screen.colorDepth,window.devicePixelRatio||1,screen.availWidth||0,screen.availHeight||0),e.push(navigator.language,((t=navigator.languages)==null?void 0:t.join(","))||"",navigator.hardwareConcurrency||0,navigator.maxTouchPoints||0,navigator.deviceMemory||0,navigator.cookieEnabled?1:0,navigator.doNotTrack||""),e.push(this.getTimezone()),e.push(navigator.platform||"",navigator.vendor||"",navigator.userAgent||""),navigator.plugins&&(e.push(navigator.plugins.length),this.config.enableExtendedComponents)){let n=Array.from(navigator.plugins).map(s=>s.name).sort().join(",");e.push(n)}if(this.config.enableCanvasFingerprint){let n=this.getCanvasFingerprint();n&&e.push(n)}if(this.config.enableWebGLFingerprint){let n=this.getWebGLFingerprint();n&&e.push(n)}if(this.config.enableAudioFingerprint){let n=await this.getAudioFingerprint();n&&e.push(n)}if(this.config.enableExtendedComponents){let n=this.getFontFingerprint();n&&e.push(n);let s=this.getWebGLParameters();s&&e.push(s)}return this.hashComponents(e)}async getAudioFingerprint(){if(!this.isBrowser())return null;try{let e=window.AudioContext||window.webkitAudioContext;if(!e)return null;let t=new e,n=t.createOscillator(),s=t.createAnalyser(),i=t.createGain(),a=t.createScriptProcessor(4096,1,1);n.type="triangle",n.frequency.setValueAtTime(1e4,t.currentTime),i.gain.setValueAtTime(0,t.currentTime),n.connect(s),s.connect(a),a.connect(i),i.connect(t.destination),n.start(0);let o=new Float32Array(s.frequencyBinCount);s.getFloatFrequencyData(o),n.stop(),await t.close();let l=o.slice(0,30).reduce((c,u)=>c+Math.abs(u),0);return this.simpleHash(l.toString())}catch{return null}}getFontFingerprint(){if(!this.isBrowser())return null;try{let e=["Arial","Courier New","Georgia","Helvetica","Times New Roman","Verdana","Comic Sans MS","Impact","Lucida Console","Tahoma","Trebuchet MS","Palatino Linotype","Century Gothic","Garamond"],n=document.createElement("canvas").getContext("2d");if(!n)return null;let s="mmmmmmmmmmlli",i="monospace";n.font=`72px ${i}`;let a=n.measureText(s).width,o=[];for(let l of e)n.font=`72px "${l}", ${i}`,n.measureText(s).width!==a&&o.push(l);return this.simpleHash(o.join(","))}catch{return null}}getWebGLParameters(){var e;if(!this.isBrowser())return null;try{let t=document.createElement("canvas"),n=t.getContext("webgl")||t.getContext("experimental-webgl");if(!n)return null;let s=[n.getParameter(n.MAX_VERTEX_ATTRIBS),n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),n.getParameter(n.MAX_VARYING_VECTORS),n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS),n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),n.getParameter(n.MAX_RENDERBUFFER_SIZE),((e=n.getParameter(n.MAX_VIEWPORT_DIMS))==null?void 0:e.toString())||""];return this.simpleHash(s.join(","))}catch{return null}}getCanvasFingerprint(){if(!this.isBrowser())return null;try{let e=document.createElement("canvas"),t=e.getContext("2d");if(!t)return null;e.width=200,e.height=50,t.textBaseline="top",t.font="14px Arial",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText("Seekora SDK",2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText("Canvas FP",4,17);let n=e.toDataURL();return this.simpleHash(n)}catch{return null}}getWebGLFingerprint(){if(!this.isBrowser())return null;try{let e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)return null;let n=t.getExtension("WEBGL_debug_renderer_info");if(!n)return null;let s=t.getParameter(n.UNMASKED_VENDOR_WEBGL),i=t.getParameter(n.UNMASKED_RENDERER_WEBGL);return this.simpleHash(`${s}~${i}`)}catch{return null}}hashComponents(e){let t=e.map(n=>String(n)).join("|");return this.simpleHash(t)}simpleHash(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n),t=t&t;return(t>>>0).toString(16).padStart(8,"0")}clearCache(){this.cachedContext=null,this.cacheTimestamp=0}clearFingerprint(){if(this.cachedFingerprint=null,this.isBrowser())try{localStorage.removeItem(this.config.fingerprintStorageKey)}catch{}}getConfig(){return{...this.config}}updateConfig(e){this.config={...this.config,...e},this.clearCache()}isUsingFingerprintJS(){return this.usingFingerprintJS}async getFingerprintInfo(){var t;if(!this.config.enableFingerprinting)return{fingerprint:"",method:"manual",confidence:0};if(this.config.useFingerprintJS&&this.isBrowser())try{let n=await this.getFingerprintJSAgent();if(n){let s=await n.get();return{fingerprint:s.visitorId,method:"fingerprintjs",confidence:(t=s.confidence)==null?void 0:t.score,componentsCount:Object.keys(s.components||{}).length}}}catch{}return{fingerprint:await this.generateManualFingerprint(),method:"manual",confidence:.7,componentsCount:15}}};var Lo={maxQueueSize:1e3,maxRetries:5,baseRetryDelay:1e3,maxRetryDelay:6e4,flushInterval:5e3,batchSize:10,storageKey:"seekora_event_queue",enablePersistence:!0,maxEventAge:864e5},It=class{constructor(e={}){this.queue=[];this.isOnline=!0;this.isFlushing=!1;this.flushTimer=null;this.logger=null;this.sender=null;this.config={...Lo,...e},typeof navigator<"u"&&(this.isOnline=navigator.onLine),this.config.enablePersistence&&this.restore(),this.setupNetworkListeners(),this.config.flushInterval>0&&this.startFlushTimer(),this.setupBeforeUnloadHandler()}setLogger(e){this.logger=e}setSender(e){this.sender=e}isBrowser(){return typeof window<"u"&&typeof localStorage<"u"}setupNetworkListeners(){typeof window>"u"||(window.addEventListener("online",()=>{this.isOnline=!0,this.log("verbose","Network online, triggering flush"),this.flush()}),window.addEventListener("offline",()=>{this.isOnline=!1,this.log("verbose","Network offline, pausing flush")}))}setupBeforeUnloadHandler(){typeof window>"u"||(window.addEventListener("beforeunload",()=>{this.persist()}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&this.persist()}))}startFlushTimer(){this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(()=>{this.flush()},this.config.flushInterval)}stopFlushTimer(){this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null)}log(e,t,n){if(this.logger)switch(e){case"verbose":this.logger.verbose(t,n);break;case"info":this.logger.info(t,n);break;case"warn":this.logger.warn(t,n);break;case"error":this.logger.error(t,n);break}}enqueue(e){this.enqueueInternal(e,!1)}enqueueBatch(e){e.forEach(t=>{this.enqueueInternal(t,!0)})}enqueueInternal(e,t){if(this.queue.length>=this.config.maxQueueSize){let i=Math.ceil(this.config.maxQueueSize*.1);this.queue.splice(0,i),this.log("warn",`Queue full, removed ${i} oldest events`)}let n=Date.now(),s={id:le(),payload:e,queuedAt:n,retryCount:0,nextRetryAt:n,isBatch:t};this.queue.push(s),this.log("verbose","Event enqueued",{id:s.id,queueSize:this.queue.length}),this.isOnline&&!this.isFlushing&&this.flush()}async flush(){if(!(this.isFlushing||!this.isOnline||!this.sender)&&this.queue.length!==0){this.isFlushing=!0,this.log("verbose","Starting queue flush",{queueSize:this.queue.length});try{let e=Date.now(),t=this.queue.filter(s=>e-s.queuedAt>this.config.maxEventAge?!1:s.nextRetryAt<=e);if(this.queue=this.queue.filter(s=>e-s.queuedAt<=this.config.maxEventAge),t.length===0){this.log("verbose","No events ready for sending");return}let n=this.createBatches(t);for(let s of n)await this.sendBatch(s);this.config.enablePersistence&&this.persist()}catch(e){this.log("error","Queue flush failed",{error:e.message})}finally{this.isFlushing=!1}}}createBatches(e){let t=[];for(let n=0;n<e.length;n+=this.config.batchSize)t.push(e.slice(n,n+this.config.batchSize));return t}async sendBatch(e){if(!this.sender)return;let t=e.map(s=>s.payload),n=e.map(s=>s.id);try{await this.sender(t),this.queue=this.queue.filter(s=>!n.includes(s.id)),this.log("verbose","Batch sent successfully",{count:e.length,remainingQueueSize:this.queue.length})}catch(s){let i=Date.now();for(let a of e){let o=this.queue.find(l=>l.id===a.id);if(o)if(o.retryCount++,o.retryCount>=this.config.maxRetries)this.queue=this.queue.filter(l=>l.id!==a.id),this.log("warn","Event discarded after max retries",{id:a.id,retryCount:o.retryCount});else{let l=Math.min(this.config.baseRetryDelay*Math.pow(2,o.retryCount),this.config.maxRetryDelay);o.nextRetryAt=i+l,this.log("verbose","Event scheduled for retry",{id:a.id,retryCount:o.retryCount,nextRetryIn:l})}}this.log("warn","Batch send failed, events scheduled for retry",{count:e.length,error:s.message})}}persist(){if(!(!this.isBrowser()||!this.config.enablePersistence))try{let e=JSON.stringify(this.queue);localStorage.setItem(this.config.storageKey,e),this.log("verbose","Queue persisted to localStorage",{queueSize:this.queue.length})}catch(e){this.log("warn","Failed to persist queue",{error:e.message})}}restore(){if(this.isBrowser())try{let e=localStorage.getItem(this.config.storageKey);if(!e)return;let t=JSON.parse(e),n=Date.now();this.queue=t.filter(s=>n-s.queuedAt<=this.config.maxEventAge),this.queue.forEach(s=>{s.nextRetryAt=n}),this.log("info","Queue restored from localStorage",{storedCount:t.length,restoredCount:this.queue.length})}catch(e){this.log("warn","Failed to restore queue",{error:e.message});try{localStorage.removeItem(this.config.storageKey)}catch{}}}size(){return this.queue.length}isEmpty(){return this.queue.length===0}getOnlineStatus(){return this.isOnline}clear(){if(this.queue=[],this.isBrowser()&&this.config.enablePersistence)try{localStorage.removeItem(this.config.storageKey)}catch{}this.log("info","Queue cleared")}getStats(){let e=Date.now(),t=this.queue[0];return{queueSize:this.queue.length,isOnline:this.isOnline,isFlushing:this.isFlushing,oldestEventAge:t?e-t.queuedAt:null,pendingRetries:this.queue.filter(n=>n.retryCount>0).length}}destroy(){this.stopFlushTimer(),this.persist(),this.queue=[],this.sender=null,this.logger=null}};var We=class{constructor(e={}){this.cachedBrowserContext=null;this.eventQueue=null;this.clientConfig=e;let t=St(e);this.storeId=t.storeId,this.readSecret=t.readSecret,this.writeSecret=t.writeSecret;let n=t.logLevel||e.logLevel||Be();this.logger=Ge({level:n,...e.logger}),this.userId=e.userId,this.anonId=e.anonId||fn(),this.sessionId=e.sessionId||bn(),this.autoTrackSearch=e.autoTrackSearch||!1,this.enableContextCollection=e.enableContextCollection!==!1,this.contextCollector=new Pt(e.contextCollector),this.enableContextCollection&&this.collectContextAsync(),this.enableEventQueue=e.enableEventQueue||!1,this.enableEventQueue&&(this.eventQueue=new It(e.eventQueue),this.eventQueue.setLogger(this.logger),this.eventQueue.setSender(this.createQueueSender())),this.logger.verbose("Client identifiers initialized",{hasUserId:!!this.userId,anonId:this.anonId.substring(0,8)+"...",sessionId:this.sessionId.substring(0,8)+"...",autoTrackSearch:this.autoTrackSearch,enableContextCollection:this.enableContextCollection,enableEventQueue:this.enableEventQueue}),this.logger.verbose("Initializing SeekoraClient",{storeId:this.storeId,environment:t.environment,logLevel:n});let s=bt(t.environment,t.baseUrl);this.logger.verbose("Using base URL",{baseUrl:s}),this.config=new ft({basePath:s,baseOptions:{timeout:t.timeout||3e4,headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}}}),this.searchApi=new yt(this.config),this.suggestionsApi=new lt(this.config),this.suggestionsConfigApi=new pt(this.config),this.analyticsApi=new ct(this.config),this.storesApi=new dt(this.config),this.documentsApi=new gt(this.config),this.schemaApi=new mt(this.config),this.logger.info("SeekoraClient initialized successfully")}async search(e,t){var a,o,l,c,u,g,m,y,d,f,b;let n=e.trim()||"*",s=le();this.logger.verbose("Executing search",{originalQuery:e,searchQuery:n,correlationId:s,options:t});let i={q:n,per_page:(t==null?void 0:t.per_page)||10,page:(t==null?void 0:t.page)||1,filter:(t==null?void 0:t.filter)||(t==null?void 0:t.filter_by),facet_by:t==null?void 0:t.facet_by,sort:(t==null?void 0:t.sort)||(t==null?void 0:t.sort_by),analytics_tags:t==null?void 0:t.analytics_tags,widget_mode:(t==null?void 0:t.widget_mode)||!1,search_fields:t==null?void 0:t.search_fields,field_weights:t==null?void 0:t.field_weights,return_fields:t==null?void 0:t.return_fields,omit_fields:t==null?void 0:t.omit_fields,snippet_fields:t==null?void 0:t.snippet_fields,full_snippet_fields:t==null?void 0:t.full_snippet_fields,snippet_prefix:t==null?void 0:t.snippet_prefix,snippet_suffix:t==null?void 0:t.snippet_suffix,snippet_token_limit:t==null?void 0:t.snippet_token_limit,snippet_min_len:t==null?void 0:t.snippet_min_len,include_snippets:t==null?void 0:t.include_snippets,group_field:t==null?void 0:t.group_field,group_size:t==null?void 0:t.group_size,prefix_mode:t==null?void 0:t.prefix_mode,infix_mode:t==null?void 0:t.infix_mode,typo_max:t==null?void 0:t.typo_max,typo_min_len_1:t==null?void 0:t.typo_min_len_1,typo_min_len_2:t==null?void 0:t.typo_min_len_2,search_timeout_ms:t==null?void 0:t.search_timeout_ms,require_all_terms:t==null?void 0:t.require_all_terms,exact_match_boost:t==null?void 0:t.exact_match_boost,cache_results:t==null?void 0:t.cache_results,apply_rules:t==null?void 0:t.apply_rules,preset_name:t==null?void 0:t.preset_name,facet_search_text:t==null?void 0:t.facet_search_text,include_suggestions:t==null?void 0:t.include_suggestions,suggestions_limit:t==null?void 0:t.suggestions_limit,max_facet_values:t==null?void 0:t.max_facet_values,stopword_sets:t==null?void 0:t.stopword_sets,synonym_sets:t==null?void 0:t.synonym_sets};this.logger.verbose("Search request prepared",{filter:i.filter,filterType:typeof i.filter,fullRequest:i});try{this.logger.verbose("Sending search API request",{endpoint:"/api/v1/search",method:"POST",storeId:this.storeId});let A={"x-storeid":this.storeId,"x-storesecret":this.readSecret};this.userId&&(A["x-user-id"]=this.userId),this.anonId&&(A["x-anon-id"]=this.anonId),this.sessionId&&(A["x-session-id"]=this.sessionId);let R=await this.searchApi.v1SearchPost(this.storeId,this.readSecret,i,this.userId,this.anonId,this.sessionId,{headers:A});this.logger.verbose("Search API response received",{status:R.status,hasData:!!R.data});let x=R.data,S=((a=x==null?void 0:x.data)==null?void 0:a.facets)||[];this.logger.verbose("API response received",{status:R.status,totalResults:((o=x==null?void 0:x.data)==null?void 0:o.total_results)||0,resultsCount:((c=(l=x==null?void 0:x.data)==null?void 0:l.results)==null?void 0:c.length)||0,facetsType:Array.isArray(S)?"array":typeof S,facetsCount:Array.isArray(S)?S.length:Object.keys(S||{}).length});let C={};Array.isArray(S)?(this.logger.verbose("Processing facets as array",{facetsCount:S.length}),S.forEach((D,V)=>{var I;let X=(D==null?void 0:D.field_name)||(D==null?void 0:D.fieldName)||(D==null?void 0:D.name)||`facet_${V}`;X&&(D!=null&&D.counts||D!=null&&D.values||Array.isArray(D))&&(C[X]={field_name:X,counts:D.counts||D.values||(Array.isArray(D)?D:[]),stats:D.stats||{}},this.logger.verbose("Processed facet",{fieldName:X,index:V,counts:((I=C[X].counts)==null?void 0:I.length)||0}))})):S&&typeof S=="object"&&!Array.isArray(S)&&(this.logger.verbose("Processing facets as object",{facetKeys:Object.keys(S)}),Object.keys(S).forEach(D=>{let V=S[D];V&&(C[D]={field_name:V.field_name||D,counts:V.counts||V.values||[],stats:V.stats||{}})})),this.logger.verbose("Facets processed",{facetFields:Object.keys(C),totalFacetFields:Object.keys(C).length});let U=(u=x==null?void 0:x.data)==null?void 0:u.search_id,T={correlationId:s,searchId:U,userId:this.userId,anonId:this.anonId,sessionId:this.sessionId},_={results:((g=x==null?void 0:x.data)==null?void 0:g.results)||[],totalResults:((m=x==null?void 0:x.data)==null?void 0:m.total_results)||0,searchId:U,context:T,facets:C,facet_counts:C,...x};return this.logger.info("Search completed",{query:n,originalQuery:e,totalResults:_.totalResults,searchId:_.searchId,correlationId:s}),this.autoTrackSearch&&this.trackSearch({query:n,resultsCount:_.totalResults,context:T}).catch(D=>{this.logger.warn("Failed to auto-track search event",{error:D.message})}),_}catch(A){let R={query:n,originalQuery:e,error:A.message};throw A.response?(R.status=A.response.status,R.responseData=A.response.data,R.requestUrl=(y=A.config)==null?void 0:y.url,R.requestMethod=(d=A.config)==null?void 0:d.method):A.request&&(R.networkError=!0,R.requestConfig={url:(f=A.config)==null?void 0:f.url,method:(b=A.config)==null?void 0:b.method}),this.logger.error("Search failed",R),this.handleError(A,"search")}}async getSuggestions(e,t){var n,s,i,a,o,l,c,u,g,m,y,d,f,b,A;this.logger.verbose("Getting query suggestions",{query:e,options:t});try{let R={"x-storeid":this.storeId,"x-storesecret":this.readSecret};this.userId&&(R["x-user-id"]=this.userId),this.anonId&&(R["x-anon-id"]=this.anonId),this.sessionId&&(R["x-session-id"]=this.sessionId);let x=(t==null?void 0:t.filtered_tabs)&&t.filtered_tabs.length>0||(t==null?void 0:t.include_dropdown_recommendations)===!0||(t==null?void 0:t.include_dropdown_product_list)===!1||(t==null?void 0:t.include_filtered_tabs)===!1,S=(n=this.clientConfig)==null?void 0:n.suggestionsDefaults,C=()=>{let V={query:e,hitsPerPage:(t==null?void 0:t.hitsPerPage)??(S==null?void 0:S.hitsPerPage)??5,page:t==null?void 0:t.page,include_categories:t==null?void 0:t.include_categories,include_facets:t==null?void 0:t.include_facets,max_categories:t==null?void 0:t.max_categories,max_facets:t==null?void 0:t.max_facets,min_popularity:t==null?void 0:t.min_popularity,time_range:(t==null?void 0:t.time_range)??(S==null?void 0:S.time_range),disable_typo_tolerance:t==null?void 0:t.disable_typo_tolerance,include_dropdown_recommendations:(t==null?void 0:t.include_dropdown_recommendations)??(S==null?void 0:S.include_dropdown_recommendations),include_dropdown_product_list:(t==null?void 0:t.include_dropdown_product_list)??(S==null?void 0:S.include_dropdown_product_list),include_filtered_tabs:(t==null?void 0:t.include_filtered_tabs)??(S==null?void 0:S.include_filtered_tabs),filtered_tabs:t==null?void 0:t.filtered_tabs};return t!=null&&t.analytics_tags&&(V.analytics_tags=Array.isArray(t.analytics_tags)?t.analytics_tags:[t.analytics_tags]),t!=null&&t.tags_match_mode&&(V.tags_match_mode=t.tags_match_mode),V};if(x){this.logger.verbose("Using POST endpoint (filtered_tabs or include_dropdown_recommendations)",{endpoint:"/api/v1/suggestions/queries",query:e});let V=C(),X=await this.suggestionsApi.v1SuggestionsQueriesPost(this.storeId,this.readSecret,this.userId,this.anonId,this.sessionId,V,{headers:R}),I=((s=X.data)==null?void 0:s.data)||X.data,ee=((a=(i=I==null?void 0:I.results)==null?void 0:i[0])==null?void 0:a.hits)||(I==null?void 0:I.hits)||[],ie=((l=(o=I==null?void 0:I.results)==null?void 0:o[1])==null?void 0:l.extensions)??((u=(c=I==null?void 0:I.results)==null?void 0:c[0])==null?void 0:u.extensions);return t!=null&&t.returnFullResponse?(this.logger.info("Query suggestions retrieved (POST, full response)",{query:e,count:ee.length,status:X.status}),{suggestions:ee,results:I==null?void 0:I.results,extensions:ie??void 0,raw:I}):(this.logger.info("Query suggestions retrieved (POST)",{query:e,count:ee.length,status:X.status}),ee)}this.logger.verbose("Using GET endpoint",{endpoint:"/api/v1/suggestions/queries",query:e});let U=Array.isArray(t==null?void 0:t.analytics_tags)?t.analytics_tags.join(","):t==null?void 0:t.analytics_tags,T=await this.suggestionsApi.v1SuggestionsQueriesGet(this.storeId,this.readSecret,this.userId,this.anonId,this.sessionId,e,(t==null?void 0:t.hitsPerPage)||5,t==null?void 0:t.page,U,t==null?void 0:t.tags_match_mode,t==null?void 0:t.include_categories,t==null?void 0:t.include_facets,t==null?void 0:t.max_categories,t==null?void 0:t.max_facets,t==null?void 0:t.min_popularity,t==null?void 0:t.time_range,t==null?void 0:t.disable_typo_tolerance,{headers:R}),_=((g=T.data)==null?void 0:g.data)||T.data,D=((y=(m=_==null?void 0:_.results)==null?void 0:m[0])==null?void 0:y.hits)||(_==null?void 0:_.hits)||[];if(t!=null&&t.returnFullResponse){let V=((f=(d=_==null?void 0:_.results)==null?void 0:d[1])==null?void 0:f.extensions)??((A=(b=_==null?void 0:_.results)==null?void 0:b[0])==null?void 0:A.extensions);return this.logger.info("Query suggestions retrieved (GET, full response)",{query:e,count:D.length,status:T.status}),{suggestions:D,results:_==null?void 0:_.results,extensions:V??void 0,raw:_}}return this.logger.info("Query suggestions retrieved (GET)",{query:e,count:D.length,status:T.status}),D}catch(R){throw this.logger.error("Failed to get suggestions",{query:e,error:R.message}),this.handleError(R,"getSuggestions")}}async getSuggestionsConfig(){var e,t,n;this.logger.verbose("Getting suggestions configuration");try{let s={"x-storeid":this.storeId,"x-storesecret":this.readSecret};try{let i=await this.suggestionsConfigApi.apiV1StoresXStoreIDQuerySuggestionsConfigGet(this.storeId,this.readSecret,this.storeId,{headers:s}),a=(e=i.data)==null?void 0:e.data,o=((t=a==null?void 0:a.metadata)==null?void 0:t.config)??(a==null?void 0:a.config)??a;return this.logger.info("Suggestions configuration retrieved",{configKeys:o?Object.keys(o):[],status:i.status}),o}catch(i){this.logger.verbose("Store config endpoint failed, trying legacy endpoint",{message:i==null?void 0:i.message});let a=await this.suggestionsApi.v1SuggestionsConfigGet(this.storeId,this.readSecret,{headers:s}),o=(n=a.data)==null?void 0:n.data;return this.logger.info("Suggestions configuration retrieved (legacy)",{configKeys:o?Object.keys(o):[],status:a.status}),o}}catch(s){throw this.logger.error("Failed to get suggestions config",{error:s.message}),this.handleError(s,"getSuggestionsConfig")}}async getConfig(){var e;this.logger.verbose("Getting store configuration");try{this.logger.verbose("Fetching store configuration",{endpoint:`/api/v1/stores/${this.storeId}/config`});let t={"x-storeid":this.storeId,"x-storesecret":this.readSecret};this.userId&&(t["x-user-id"]=this.userId),this.anonId&&(t["x-anon-id"]=this.anonId),this.sessionId&&(t["x-session-id"]=this.sessionId);let n=await this.storesApi.apiV1StoresXStoreIDConfigGet(this.storeId,this.readSecret,this.storeId,{headers:t}),s=(e=n.data)==null?void 0:e.data;return this.logger.info("Store configuration retrieved",{status:n.status,hasConfig:!!s}),s}catch(t){throw this.logger.error("Failed to get store config",{error:t.message}),this.handleError(t,"getConfig")}}async getStoreInfo(){this.logger.verbose("Getting store information");try{let e=await this.getConfig(),t={storeId:this.storeId};if(e){let n=e.config||e,s=e.onboarding_status;s&&(t.onboardingStatus=s),n&&(t.storeName=n.store_name||n.storeName||n.name||n.title||n.collection_name||`Store ${this.storeId.substring(0,8).toUpperCase()}`,n.query_by&&(t.queryFields=Array.isArray(n.query_by)?n.query_by:[n.query_by]),n.facet_by&&(t.facetFields=Array.isArray(n.facet_by)?n.facet_by:[n.facet_by]),n.primary_text&&(t.primaryField=n.primary_text),t.config=n)}return this.logger.info("Store information retrieved",{storeId:t.storeId,storeName:t.storeName}),t}catch(e){throw this.logger.error("Failed to get store info",{error:e.message}),this.handleError(e,"getStoreInfo")}}async updateConfig(e){var t;if(this.logger.verbose("Updating store configuration",{configKeys:Object.keys(e)}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"updateConfig",storeId:this.storeId}),new Error("Write secret is required for updateConfig");try{this.logger.verbose("Updating store configuration",{endpoint:`/api/v1/stores/${this.storeId}/config`,configKeys:Object.keys(e)});let n={"x-storeid":this.storeId,"x-storesecret":this.readSecret,"x-store-write-secret":this.writeSecret},s=await this.storesApi.apiV1StoresXStoreIDConfigPut(this.storeId,this.writeSecret,this.storeId,e,{headers:n}),i=(t=s.data)==null?void 0:t.data;return this.logger.info("Store configuration updated successfully",{status:s.status,hasConfig:!!i}),i}catch(n){throw this.logger.error("Failed to update store config",{error:n.message}),this.handleError(n,"updateConfig")}}async updateQuerySuggestionsConfig(e){var t,n,s,i;if(this.logger.verbose("Updating query suggestions configuration",{configKeys:Object.keys(e)}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"updateQuerySuggestionsConfig",storeId:this.storeId}),new Error("Write secret is required for updateQuerySuggestionsConfig");try{let a={"x-storeid":this.storeId,"x-store-write-secret":this.writeSecret,"Content-Type":"application/json"};try{let o=await this.suggestionsConfigApi.apiV1StoresXStoreIDQuerySuggestionsConfigPut(this.storeId,this.writeSecret,this.storeId,e,{headers:a}),l=(t=o.data)==null?void 0:t.data,c=((n=l==null?void 0:l.metadata)==null?void 0:n.config)??(l==null?void 0:l.config)??l;return this.logger.info("Query suggestions configuration updated successfully",{status:o.status,hasConfig:!!c}),c}catch(o){this.logger.verbose("PUT via generated API failed, using direct HTTP",{message:o==null?void 0:o.message});let l=this.suggestionsConfigApi.axios??this.suggestionsApi.axios??P,c=this.config.basePath??"https://api.seekora.com/api",u=await l.put(`${c}/v1/stores/${this.storeId}/query-suggestions/config`,e,{headers:a}),g=(s=u.data)==null?void 0:s.data,m=((i=g==null?void 0:g.metadata)==null?void 0:i.config)??(g==null?void 0:g.config)??g;return this.logger.info("Query suggestions configuration updated successfully",{status:u.status,hasConfig:!!m}),m}}catch(a){throw this.logger.error("Failed to update query suggestions config",{error:a.message}),this.handleError(a,"updateQuerySuggestionsConfig")}}async getConfigSchema(){var e;this.logger.verbose("Getting configuration schema");try{let n=(e=(await this.storesApi.apiV1StoresXStoreIDConfigSchemaGet(this.storeId,this.readSecret,this.storeId,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}})).data)==null?void 0:e.data;return this.logger.verbose("Configuration schema retrieved",{schemaKeys:n?Object.keys(n):[]}),n}catch(t){throw this.logger.error("Failed to get config schema",{error:t.message}),this.handleError(t,"getConfigSchema")}}async indexDocument(e){var t;if(this.logger.verbose("Indexing document",{hasCustomId:!!e.id,documentKeys:Object.keys(e.data)}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"indexDocument",storeId:this.storeId}),new Error("Write secret is required for indexDocument");try{let n={id:e.id,data:e.data},s=await this.documentsApi.apiV1StoresXStoreIDDocumentsPost(this.storeId,this.writeSecret,this.storeId,n),i=(t=s.data)==null?void 0:t.data;return this.logger.info("Document indexed successfully",{id:(i==null?void 0:i.id)||e.id,status:s.status}),{id:(i==null?void 0:i.id)||e.id||"",success:(i==null?void 0:i.status)==="success"||(i==null?void 0:i.status)==="inserted"||(i==null?void 0:i.status)==="updated"||!0,message:i==null?void 0:i.message,data:i}}catch(n){throw this.logger.error("Failed to index document",{error:n.message}),this.handleError(n,"indexDocument")}}async indexDocuments(e){var t,n;if(this.logger.verbose("Bulk indexing documents",{count:e.length,actions:e.map(s=>s.action||"upsert")}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"indexDocuments",storeId:this.storeId}),new Error("Write secret is required for indexDocuments");try{let s={documents:e.map(o=>({id:o.id,action:o.action,data:o.data}))},i=await this.documentsApi.apiV1StoresXStoreIDDocumentsBulkPost(this.storeId,this.writeSecret,this.storeId,s),a=(t=i.data)==null?void 0:t.data;return this.logger.info("Bulk document indexing completed",{successCount:(a==null?void 0:a.successCount)||0,errorCount:(a==null?void 0:a.errorCount)||0,status:i.status}),{success_count:(a==null?void 0:a.successCount)||e.length,error_count:(a==null?void 0:a.errorCount)||0,results:((n=a==null?void 0:a.results)==null?void 0:n.map(o=>({id:o.id,success:o.status==="success"||o.status==="inserted"||o.status==="updated"||!o.error,error:o.error})))||e.map(o=>({id:o.id,success:!0})),data:a}}catch(s){throw this.logger.error("Failed to bulk index documents",{count:e.length,error:s.message}),this.handleError(s,"indexDocuments")}}async deleteDocument(e){if(this.logger.verbose("Deleting document",{documentId:e}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"deleteDocument",storeId:this.storeId}),new Error("Write secret is required for deleteDocument");try{let t=await this.documentsApi.apiV1StoresXStoreIDDocumentsDocumentIDDelete(this.storeId,this.writeSecret,this.storeId,e);this.logger.info("Document deleted successfully",{documentId:e,status:t.status})}catch(t){throw this.logger.error("Failed to delete document",{documentId:e,error:t.message}),this.handleError(t,"deleteDocument")}}async createSchema(e){var t,n,s,i,a,o,l,c;if(this.logger.verbose("Creating/updating schema",{fieldCount:e.fields.length,mode:e.mode||"additive"}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"createSchema",storeId:this.storeId}),new Error("Write secret is required for createSchema");try{let u={fields:e.fields.map(y=>({name:y.name,type:y.type,facet:y.facet,index:y.index,optional:y.optional,sort:y.sort,infix:y.infix,locale:y.locale})),mode:e.mode,confirm_delete:e.confirmDelete,default_sorting_field:e.defaultSortingField,enable_nested_fields:e.enableNestedFields},m=(await this.schemaApi.apiV1StoresXStoreIDSchemaPost(this.storeId,this.writeSecret,this.storeId,u)).data;return this.logger.info("Schema created/updated successfully",{name:(t=m.data)==null?void 0:t.name,fieldCount:(s=(n=m.data)==null?void 0:n.fields)==null?void 0:s.length}),{name:((i=m.data)==null?void 0:i.name)||"",fields:(((a=m.data)==null?void 0:a.fields)||[]).map(y=>({name:y.name||"",type:y.type||"string",facet:y.facet,index:y.index,optional:y.optional,sort:y.sort,infix:y.infix,locale:y.locale})),defaultSortingField:(o=m.data)==null?void 0:o.default_sorting_field,numDocuments:((l=m.data)==null?void 0:l.num_documents)||0,createdAt:(c=m.data)==null?void 0:c.created_at}}catch(u){throw this.logger.error("Failed to create/update schema",{error:u.message}),this.handleError(u,"createSchema")}}async getSchema(){var e,t,n,s,i,a,o,l,c;this.logger.verbose("Getting schema",{storeId:this.storeId});try{let g=(await this.schemaApi.apiV1StoresXStoreIDSchemaGet(this.storeId,this.readSecret,this.storeId)).data;return this.logger.info("Schema retrieved successfully",{name:(e=g.data)==null?void 0:e.name,fieldCount:(n=(t=g.data)==null?void 0:t.fields)==null?void 0:n.length,numDocuments:(s=g.data)==null?void 0:s.num_documents}),{name:((i=g.data)==null?void 0:i.name)||"",fields:(((a=g.data)==null?void 0:a.fields)||[]).map(m=>({name:m.name||"",type:m.type||"string",facet:m.facet,index:m.index,optional:m.optional,sort:m.sort,infix:m.infix,locale:m.locale})),defaultSortingField:(o=g.data)==null?void 0:o.default_sorting_field,numDocuments:((l=g.data)==null?void 0:l.num_documents)||0,createdAt:(c=g.data)==null?void 0:c.created_at}}catch(u){throw this.logger.error("Failed to get schema",{error:u.message}),this.handleError(u,"getSchema")}}async clearDocuments(){var e,t,n;if(this.logger.verbose("Clearing all documents",{storeId:this.storeId}),!this.writeSecret)throw this.logger.error("Write secret required but not provided",{operation:"clearDocuments",storeId:this.storeId}),new Error("Write secret is required for clearDocuments");try{let i=(await this.schemaApi.apiV1StoresXStoreIDDocumentsDelete(this.storeId,this.writeSecret,this.storeId)).data;return this.logger.info("Documents cleared successfully",{deletedCount:(e=i.data)==null?void 0:e.deleted_count}),{deletedCount:((t=i.data)==null?void 0:t.deleted_count)||0,message:((n=i.data)==null?void 0:n.message)||"Documents cleared"}}catch(s){throw this.logger.error("Failed to clear documents",{error:s.message}),this.handleError(s,"clearDocuments")}}async collectContextAsync(){var e,t,n;try{this.cachedBrowserContext=await this.contextCollector.collect(),this.logger.verbose("Browser context collected",{hasFingerprint:!!((e=this.cachedBrowserContext)!=null&&e.device_fingerprint),platform:(t=this.cachedBrowserContext)==null?void 0:t.platform,timezone:(n=this.cachedBrowserContext)==null?void 0:n.timezone})}catch(s){this.logger.warn("Failed to collect browser context",{error:s.message})}}createQueueSender(){return async e=>{e.length===1?await this.sendEventDirect(e[0]):await this.sendEventsBatchDirect(e)}}async sendEventDirect(e){let t=await this.analyticsApi.analyticsEventPost(this.storeId,this.readSecret,e,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}});if(t.status>=400)throw new Error(`Failed to send event: ${t.status}`)}async sendEventsBatchDirect(e){let t={events:e},n=await this.analyticsApi.analyticsBatchPost(this.storeId,this.readSecret,t,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}});if(n.status>=400)throw new Error(`Failed to send batch events: ${n.status}`)}getBrowserContext(){return this.cachedBrowserContext}async collectBrowserContext(){return this.cachedBrowserContext=await this.contextCollector.collect(),this.cachedBrowserContext}buildEventPayload(e,t){let n=e.anonymous_id??e.anon_id??(t==null?void 0:t.anonId)??this.anonId,s={...e,user_id:e.user_id||(t==null?void 0:t.userId)||this.userId,anon_id:n,session_id:e.session_id||(t==null?void 0:t.sessionId)||this.sessionId,correlation_id:e.correlation_id||(t==null?void 0:t.correlationId),search_id:e.search_id||(t==null?void 0:t.searchId),event_ts:e.event_ts??new Date().toISOString(),anonymous_id:n,orgcode:e.orgcode??(t==null?void 0:t.orgcode),xstoreid:e.xstoreid??(t==null?void 0:t.xstoreId)??this.storeId};if(!s.user_id&&!s.anon_id&&(s.anon_id=this.anonId,s.anonymous_id=this.anonId),s.search_id&&!s.metadata&&(s.metadata={}),s.search_id&&s.metadata&&!s.metadata.search_id&&(s.metadata.search_id=s.search_id),this.enableContextCollection&&this.cachedBrowserContext){let i=this.cachedBrowserContext;s.screen_width=i.screen_width,s.screen_height=i.screen_height,s.viewport_width=i.viewport_width,s.viewport_height=i.viewport_height,s.color_depth=i.color_depth,s.pixel_ratio=i.pixel_ratio,i.device_fingerprint&&(s.device_fingerprint=i.device_fingerprint),s.browser_name=i.browser_name,s.browser_version=i.browser_version,s.browser_language=i.browser_language,s.timezone=i.timezone,s.timezone_offset=i.timezone_offset,s.page_url=i.page_url,s.page_path=i.page_path,s.page_title=i.page_title,s.page_referrer=i.page_referrer,i.utm_source&&(s.utm_source=i.utm_source),i.utm_medium&&(s.utm_medium=i.utm_medium),i.utm_campaign&&(s.utm_campaign=i.utm_campaign),i.utm_term&&(s.utm_term=i.utm_term),i.utm_content&&(s.utm_content=i.utm_content),i.connection_type&&(s.connection_type=i.connection_type),i.connection_effective_type&&(s.connection_effective_type=i.connection_effective_type),s.platform=i.platform,s.is_mobile=i.is_mobile?1:0,s.is_tablet=i.is_tablet?1:0,s.is_touch_device=i.is_touch_device}return s}async trackEvent(e,t){this.logger.verbose("Tracking analytics event",{eventName:e.event_name,hasContext:!!t});let n=this.buildEventPayload(e,t);if(this.enableEventQueue&&this.eventQueue){this.eventQueue.enqueue(n),this.logger.verbose("Event queued for sending",{eventName:e.event_name,queueSize:this.eventQueue.size()});return}try{this.logger.verbose("Sending analytics event",{endpoint:"/api/analytics/event",eventName:e.event_name});let s=await this.analyticsApi.analyticsEventPost(this.storeId,this.readSecret,n,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}});this.logger.verbose("Analytics event tracked successfully",{eventName:e.event_name,status:s.status})}catch(s){throw this.logger.error("Failed to track event",{eventName:e.event_name,error:s.message}),this.handleError(s,"trackEvent")}}async trackEvents(e,t){if(this.logger.verbose("Tracking batch analytics events",{count:e.length,hasContext:!!t}),e.length>100)throw this.logger.error("Batch size exceeds maximum",{count:e.length,max:100}),new Error("Maximum 100 events per batch");let n=e.map(s=>this.buildEventPayload(s,t));if(this.enableEventQueue&&this.eventQueue){this.eventQueue.enqueueBatch(n),this.logger.verbose("Events queued for sending",{count:e.length,queueSize:this.eventQueue.size()});return}try{this.logger.verbose("Sending batch analytics events",{endpoint:"/api/analytics/batch",eventCount:e.length});let s={events:n},i=await this.analyticsApi.analyticsBatchPost(this.storeId,this.readSecret,s,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}});this.logger.info("Batch analytics events tracked successfully",{count:e.length,status:i.status})}catch(s){throw this.logger.error("Failed to track batch events",{count:e.length,error:s.message}),this.handleError(s,"trackEvents")}}async trackSearch(e){this.logger.verbose("Tracking search event",{query:e.query,resultsCount:e.resultsCount,hasContext:!!e.context}),await this.trackEvent({event_name:"search.performed",query:e.query,results_count:e.resultsCount,analytics_tags:e.analyticsTags,metadata:e.metadata},e.context)}async trackImpression(e){this.logger.verbose("Tracking impression event",{itemId:e.itemId,position:e.position,hasContext:!!e.context}),await this.trackEvent({event_name:"impression",clicked_item_id:e.itemId,metadata:{position:e.position,list_type:e.listType,search_query:e.searchQuery,...e.metadata}},e.context)}async trackClick(e,t,n){this.logger.verbose("Tracking click event",{itemId:e,position:t,hasContext:!!n});let s=typeof n=="string"?{correlationId:"",searchId:n,anonId:this.anonId,sessionId:this.sessionId}:n;await this.trackEvent({event_name:"product_click",clicked_item_id:e,metadata:{position:t}},s)}async trackView(e,t){this.logger.verbose("Tracking view event",{itemId:e,hasContext:!!t});let n=typeof t=="string"?{correlationId:"",searchId:t,anonId:this.anonId,sessionId:this.sessionId}:t;await this.trackEvent({event_name:"view",clicked_item_id:e},n)}async trackConversion(e,t,n,s){this.logger.verbose("Tracking conversion event",{itemId:e,value:t,currency:n,hasContext:!!s});let i=typeof s=="string"?{correlationId:"",searchId:s,anonId:this.anonId,sessionId:this.sessionId}:s;await this.trackEvent({event_name:"conversion",clicked_item_id:e,value:t,currency:n},i)}async trackCustom(e,t={},n){this.logger.verbose("Tracking custom event",{eventName:e,hasContext:!!n}),await this.trackEvent({...t,event_name:e},n)}async validateEvent(e){var t,n,s,i,a,o;this.logger.verbose("Validating event payload",{eventName:e.event_name});try{this.logger.verbose("Validating event payload",{endpoint:"/api/analytics/validate",eventName:e.event_name});let l=this.buildEventPayload(e),c=await this.analyticsApi.analyticsValidatePost(this.storeId,this.readSecret,l,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}}),u=((t=c.data)==null?void 0:t.data)||c.data,g=(u==null?void 0:u.valid)!==!1&&c.status===200;return this.logger.verbose("Event validation result",{valid:g,eventName:e.event_name,message:u==null?void 0:u.message}),{valid:g,message:(u==null?void 0:u.message)||(g?"Event is valid":"Event validation failed"),errors:u==null?void 0:u.errors}}catch(l){return this.logger.error("Event validation failed",{error:l.message}),{valid:!1,message:((s=(n=l.response)==null?void 0:n.data)==null?void 0:s.message)||l.message||"Validation request failed",errors:((a=(i=l.response)==null?void 0:i.data)==null?void 0:a.errors)||((o=l.response)==null?void 0:o.data)}}}async getEventSchema(){var e;this.logger.verbose("Getting event schema");try{let t=await this.analyticsApi.analyticsSchemaGet(this.storeId,this.readSecret,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret}}),n=((e=t.data)==null?void 0:e.data)||t.data;return this.logger.verbose("Event schema retrieved",{schemaKeys:n?Object.keys(n):[]}),n}catch(t){throw this.logger.error("Failed to get event schema",{error:t.message}),this.handleError(t,"getEventSchema")}}setUserId(e){this.userId=e,this.logger.info("User ID updated",{userId:e})}clearUserId(){this.userId=void 0,this.logger.info("User ID cleared")}getIdentifiers(){return{userId:this.userId,anonId:this.anonId,sessionId:this.sessionId}}getEventQueue(){return this.eventQueue}async flushEventQueue(){this.eventQueue&&await this.eventQueue.flush()}getEventQueueStats(){return this.eventQueue?{enabled:this.enableEventQueue,...this.eventQueue.getStats()}:null}async identify(e,t){this.logger.verbose("Identifying user",{userId:e}),this.userId=e;let n=this.cachedBrowserContext||await this.collectBrowserContext(),s={user_id:e,anon_id:this.anonId,session_id:this.sessionId,device_fingerprint:n==null?void 0:n.device_fingerprint,traits:t};try{let i=await P.post(`${this.config.basePath}/api/analytics/identify`,s,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret},timeout:1e4});this.logger.info("User identified successfully",{userId:e,linked:{anonId:!!this.anonId,fingerprint:!!(n!=null&&n.device_fingerprint)}})}catch(i){this.logger.error("Failed to identify user",{userId:e,error:i.message})}}async alias(e,t){this.logger.verbose("Creating alias",{anonId:e,userId:t});let n={user_id:t,anon_id:e};try{await P.post(`${this.config.basePath}/api/analytics/identify`,n,{headers:{"x-storeid":this.storeId,"x-storesecret":this.readSecret},timeout:1e4}),this.logger.info("Alias created successfully",{anonId:e,userId:t})}catch(s){this.logger.error("Failed to create alias",{anonId:e,userId:t,error:s.message})}}handleError(e,t){if(e.response){let n=e.response.status,s=e.response.data,i=(s==null?void 0:s.message)||`API request failed with status ${n}`;return n>=500?this.logger.error("API server error",{operation:t,status:n,message:i}):n===401||n===403?this.logger.error("Authentication error",{operation:t,status:n,message:i}):n===429?this.logger.warn("Rate limit exceeded",{operation:t,status:n,message:i}):this.logger.error("API request failed",{operation:t,status:n,message:i}),new Error(`[${t}] ${i} (${n})`)}else return e.request?(this.logger.error("Network error",{operation:t,error:e.message}),new Error(`[${t}] Network error: ${e.message}`)):(this.logger.error("Request error",{operation:t,error:e.message}),new Error(`[${t}] ${e.message}`))}getLogger(){return this.logger}};var Fo=We;return is(Oo);})();