@stitch-money/client 3.14.0 → 3.15.0

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.
package/build/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client"
2
- var Qn=Object.create;var fe=Object.defineProperty,er=Object.defineProperties,tr=Object.getOwnPropertyDescriptor,nr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertyNames,le=Object.getOwnPropertySymbols,or=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var Oe=(e,t,n)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))ke.call(t,n)&&Oe(e,n,t[n]);if(le)for(var n of le(t))ft.call(t,n)&&Oe(e,n,t[n]);return e},K=(e,t)=>er(e,nr(t));var dt=(e,t)=>{var n={};for(var r in e)ke.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&le)for(var r of le(e))t.indexOf(r)<0&&ft.call(e,r)&&(n[r]=e[r]);return n};var ir=(e,t)=>()=>(e&&(t=e(e=0)),t);var ar=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sr=(e,t)=>{for(var n in t)fe(e,n,{get:t[n],enumerable:!0})},cr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rr(t))!ke.call(e,o)&&o!==n&&fe(e,o,{get:()=>t[o],enumerable:!(r=tr(t,o))||r.enumerable});return e};var pt=(e,t,n)=>(n=e!=null?Qn(or(e)):{},cr(t||!e||!e.__esModule?fe(n,"default",{value:e,enumerable:!0}):n,e));var O=(e,t,n)=>(Oe(e,typeof t!="symbol"?t+"":t,n),n);var h=(e,t,n)=>new Promise((r,o)=>{var a=l=>{try{s(n.next(l))}catch(f){o(f)}},i=l=>{try{s(n.throw(l))}catch(f){o(f)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,i);s((n=n.apply(e,t)).next())});var De=ar((Ea,It)=>{"use strict";var Me=class e extends Error{constructor(t){super(e._prepareSuperMessage(t)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch(n){return String(t)}}},br=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Le=Symbol(".toJSON called"),wr=e=>{e[Le]=!0;let t=e.toJSON();return delete e[Le],t},Fe=({from:e,seen:t,to_:n,forceEnumerable:r,maxDepth:o,depth:a})=>{let i=n||(Array.isArray(e)?[]:{});if(t.push(e),a>=o)return i;if(typeof e.toJSON=="function"&&e[Le]!==!0)return wr(e);for(let[s,l]of Object.entries(e)){if(typeof Buffer=="function"&&Buffer.isBuffer(l)){i[s]="[object Buffer]";continue}if(typeof l!="function"){if(!l||typeof l!="object"){i[s]=l;continue}if(!t.includes(e[s])){a++,i[s]=Fe({from:e[s],seen:t.slice(),forceEnumerable:r,maxDepth:o,depth:a});continue}i[s]="[Circular]"}}for(let{property:s,enumerable:l}of br)typeof e[s]=="string"&&Object.defineProperty(i,s,{value:e[s],enumerable:r?!0:l,configurable:!0,writable:!0});return i},vr=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;return typeof e=="object"&&e!==null?Fe({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e},Sr=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;if(e instanceof Error)return e;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){let r=new Error;return Fe({from:e,seen:[],to_:r,maxDepth:n,depth:0}),r}return new Me(e)};It.exports={serializeError:vr,deserializeError:Sr}});var mn={};sr(mn,{componentsToDebugString:()=>qe,default:()=>Ii,getFullscreenElement:()=>qt,getUnstableAudioFingerprint:()=>en,getUnstableCanvasFingerprint:()=>tn,getUnstableHardwareConcurrency:()=>on,getUnstableScreenFrame:()=>rn,getUnstableScreenResolution:()=>nn,getWebGLContext:()=>Ke,hashComponents:()=>Qe,isAndroid:()=>ve,isChromium:()=>z,isDesktopWebKit:()=>we,isEdgeHTML:()=>Xt,isGecko:()=>B,isSamsungInternet:()=>Qt,isTrident:()=>Je,isWebKit:()=>T,load:()=>pn,loadSources:()=>Jt,murmurX64Hash128:()=>xi,prepareForSources:()=>dn,sources:()=>fn,transformSource:()=>Vr,withIframe:()=>Xe});function he(e,t){return new Promise(n=>setTimeout(n,e,t))}function Ir(){return new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)})}function xr(e,t=1/0){let{requestIdleCallback:n}=window;return n?new Promise(r=>n.call(window,()=>r(),{timeout:t})):he(Math.min(e,t))}function be(e){return!!e&&typeof e.then=="function"}function Tt(e,t){try{let n=e();be(n)?n.then(r=>t(!0,r),r=>t(!1,r)):t(!0,n)}catch(n){t(!1,n)}}function Nt(e,t,n=16){return h(this,null,function*(){let r=Array(e.length),o=Date.now();for(let a=0;a<e.length;++a){r[a]=t(e[a],a);let i=Date.now();i>=o+n&&(o=i,yield Ir())}return r})}function ee(e){return e.then(void 0,()=>{}),e}function Cr(e,t){for(let n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function Ar(e,t){return!Cr(e,t)}function Be(e){return parseInt(e)}function N(e){return parseFloat(e)}function F(e,t){return typeof e=="number"&&isNaN(e)?t:e}function _(e){return e.reduce((t,n)=>t+(n?1:0),0)}function Yt(e,t=1){if(Math.abs(t)>=1)return Math.round(e/t)*t;{let n=1/t;return Math.round(e*n)/n}}function Or(e){var t,n;let r=`Unexpected syntax '${e}'`,o=/^\s*([a-z-]*)(.*)$/i.exec(e),a=o[1]||void 0,i={},s=/([.:#][\w-]+|\[.+?\])/gi,l=(f,c)=>{i[f]=i[f]||[],i[f].push(c)};for(;;){let f=s.exec(o[2]);if(!f)break;let c=f[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":{let u=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(u)l(u[1],(n=(t=u[4])!==null&&t!==void 0?t:u[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[a,i]}function kr(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>127)return new TextEncoder().encode(e);t[n]=r}return t}function D(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,s=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,c=0,u=0,m=0,g=0;g+=a+f,m+=g>>>16,g&=65535,m+=o+l,u+=m>>>16,m&=65535,u+=r+s,c+=u>>>16,u&=65535,c+=n+i,c&=65535,e[0]=c<<16|u,e[1]=m<<16|g}function k(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,s=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,c=0,u=0,m=0,g=0;g+=a*f,m+=g>>>16,g&=65535,m+=o*f,u+=m>>>16,m&=65535,m+=a*l,u+=m>>>16,m&=65535,u+=r*f,c+=u>>>16,u&=65535,u+=o*l,c+=u>>>16,u&=65535,u+=a*s,c+=u>>>16,u&=65535,c+=n*f+r*l+o*s+a*i,c&=65535,e[0]=c<<16|u,e[1]=m<<16|g}function Z(e,t){let n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function A(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function R(e,t){e[0]^=t[0],e[1]^=t[1]}function Mt(e){let t=[0,e[0]>>>1];R(e,t),k(e,Tr),t[1]=e[0]>>>1,R(e,t),k(e,Nr),t[1]=e[0]>>>1,R(e,t)}function zt(e,t){let n=kr(e);t=t||0;let r=[0,n.length],o=r[1]%16,a=r[1]-o,i=[0,t],s=[0,t],l=[0,0],f=[0,0],c;for(c=0;c<a;c=c+16)l[0]=n[c+4]|n[c+5]<<8|n[c+6]<<16|n[c+7]<<24,l[1]=n[c]|n[c+1]<<8|n[c+2]<<16|n[c+3]<<24,f[0]=n[c+12]|n[c+13]<<8|n[c+14]<<16|n[c+15]<<24,f[1]=n[c+8]|n[c+9]<<8|n[c+10]<<16|n[c+11]<<24,k(l,me),Z(l,31),k(l,ge),R(i,l),Z(i,27),D(i,s),k(i,Lt),D(i,Mr),k(f,ge),Z(f,33),k(f,me),R(s,f),Z(s,31),D(s,i),k(s,Lt),D(s,Lr);l[0]=0,l[1]=0,f[0]=0,f[1]=0;let u=[0,0];switch(o){case 15:u[1]=n[c+14],A(u,48),R(f,u);case 14:u[1]=n[c+13],A(u,40),R(f,u);case 13:u[1]=n[c+12],A(u,32),R(f,u);case 12:u[1]=n[c+11],A(u,24),R(f,u);case 11:u[1]=n[c+10],A(u,16),R(f,u);case 10:u[1]=n[c+9],A(u,8),R(f,u);case 9:u[1]=n[c+8],R(f,u),k(f,ge),Z(f,33),k(f,me),R(s,f);case 8:u[1]=n[c+7],A(u,56),R(l,u);case 7:u[1]=n[c+6],A(u,48),R(l,u);case 6:u[1]=n[c+5],A(u,40),R(l,u);case 5:u[1]=n[c+4],A(u,32),R(l,u);case 4:u[1]=n[c+3],A(u,24),R(l,u);case 3:u[1]=n[c+2],A(u,16),R(l,u);case 2:u[1]=n[c+1],A(u,8),R(l,u);case 1:u[1]=n[c],R(l,u),k(l,me),Z(l,31),k(l,ge),R(i,l)}return R(i,r),R(s,r),D(i,s),D(s,i),Mt(i),Mt(s),D(i,s),D(s,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function Fr(e){var t;return v({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
3
- `)},e)}function Dr(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Bt(e){return typeof e!="function"}function jr(e,t){let n=ee(new Promise(r=>{let o=Date.now();Tt(e.bind(null,t),(...a)=>{let i=Date.now()-o;if(!a[0])return r(()=>({error:a[1],duration:i}));let s=a[1];if(Bt(s))return r(()=>({value:s,duration:i}));r(()=>new Promise(l=>{let f=Date.now();Tt(s,(...c)=>{let u=i+Date.now()-f;if(!c[0])return l({error:c[1],duration:u});l({value:c[1],duration:u})})}))})}));return function(){return n.then(o=>o())}}function Jt(e,t,n,r){let o=Object.keys(e).filter(i=>Ar(n,i)),a=ee(Nt(o,i=>jr(e[i],t),r));return function(){return h(this,null,function*(){let s=yield a,l=yield Nt(s,u=>ee(u()),r),f=yield Promise.all(l),c={};for(let u=0;u<o.length;++u)c[o[u]]=f[u];return c})}}function Vr(e,t){let n=r=>Bt(r)?t(r):()=>{let o=r();return be(o)?o.then(t):t(o)};return r=>{let o=e(r);return be(o)?o.then(n):n(o)}}function Je(){let e=window,t=navigator;return _(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Xt(){let e=window,t=navigator;return _(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Je()}function z(){let e=window,t=navigator;return _(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function T(){let e=window,t=navigator;return _(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function we(){let e=window,{HTMLElement:t,Document:n}=e;return _(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function te(){let e=window;return Dr(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function B(){var e,t;let n=window;return _(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Gr(){let e=window,t=navigator,{CSS:n}=e;return _(["userActivation"in t,n.supports("color","light-dark(#000, #fff)"),n.supports("height","1lh"),"globalPrivacyControl"in t])>=3}function Kt(){let{CSS:e}=window;return _([e.supports("selector(::details-content)"),e.supports("selector(::before::marker)"),e.supports("selector(::after::marker)"),!("locale"in CompositionEvent.prototype)])>=3}function Wr(){let e=window;return _([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function $r(){let e=window,{URLPattern:t}=e;return _(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Ur(){let e=window;return _(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function ne(){let e=window,t=navigator,{CSS:n,HTMLButtonElement:r}=e;return _([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function Zr(){if(navigator.platform==="iPad")return!0;let e=screen,t=e.width/e.height;return _(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function qt(){let e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Hr(){let e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function ve(){let e=z(),t=B(),n=window,r=navigator,o="connection";return e?_([!("SharedWorker"in n),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:t?_(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2:!1}function Qt(){let e=navigator,t=window,n=Audio.prototype,{visualViewport:r}=t;return _(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function Yr(){return Br()?-4:en()}function en(){let e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(zr())return-1;let n=4500,r=5e3,o=new t(1,r,44100),a=o.createOscillator();a.type="triangle",a.frequency.value=1e4;let i=o.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(o.destination),a.start(0);let[s,l]=Jr(o),f=ee(s.then(c=>Xr(c.getChannelData(0).subarray(n)),c=>{if(c.name==="timeout"||c.name==="suspended")return-3;throw c}));return()=>(l(),f)}function zr(){return T()&&!we()&&!Ur()}function Br(){return T()&&ne()&&te()||z()&&Qt()&&$r()}function Jr(e){let a=()=>{};return[new Promise((s,l)=>{let f=!1,c=0,u=0;e.oncomplete=d=>s(d.renderedBuffer);let m=()=>{setTimeout(()=>l(Ft("timeout")),Math.min(500,u+5e3-Date.now()))},g=()=>{try{let d=e.startRendering();switch(be(d)&&ee(d),e.state){case"running":u=Date.now(),f&&m();break;case"suspended":document.hidden||c++,f&&c>=3?l(Ft("suspended")):setTimeout(g,500);break}}catch(d){l(d)}};g(),a=()=>{f||(f=!0,u>0&&m())}}),a]}function Xr(e){let t=0;for(let n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function Ft(e){let t=new Error(e);return t.name=e,t}function Xe(e,t,n=50){return h(this,null,function*(){var r,o,a;let i=document;for(;!i.body;)yield he(n);let s=i.createElement("iframe");try{for(yield new Promise((l,f)=>{let c=!1,u=()=>{c=!0,l()},m=p=>{c=!0,f(p)};s.onload=u,s.onerror=m;let{style:g}=s;g.setProperty("display","block","important"),g.position="absolute",g.top="0",g.left="0",g.visibility="hidden",t&&"srcdoc"in s?s.srcdoc=t:s.src="about:blank",i.body.appendChild(s);let d=()=>{var p,y;c||(((y=(p=s.contentWindow)===null||p===void 0?void 0:p.document)===null||y===void 0?void 0:y.readyState)==="complete"?u():setTimeout(d,10))};d()});!(!((o=(r=s.contentWindow)===null||r===void 0?void 0:r.document)===null||o===void 0)&&o.body);)yield he(n);return yield e(s,s.contentWindow)}finally{(a=s.parentNode)===null||a===void 0||a.removeChild(s)}})}function Kr(e){let[t,n]=Or(e),r=document.createElement(t!=null?t:"div");for(let o of Object.keys(n)){let a=n[o].join(" ");o==="style"?qr(r.style,a):r.setAttribute(o,a)}return r}function qr(e,t){for(let n of t.split(";")){let r=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(r){let[,o,a,,i]=r;e.setProperty(o,a,i||"")}}}function Qr(){let e=window;for(;;){let t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}function no(){return Xe((n,r)=>h(this,[n,r],function*(e,{document:t}){let o=t.body;o.style.fontSize=to;let a=t.createElement("div");a.style.setProperty("visibility","hidden","important");let i={},s={},l=p=>{let y=t.createElement("span"),{style:b}=y;return b.position="absolute",b.top="0",b.left="0",b.fontFamily=p,y.textContent=eo,a.appendChild(y),y},f=(p,y)=>l(`'${p}',${y}`),c=()=>H.map(l),u=()=>{let p={};for(let y of Dt)p[y]=H.map(b=>f(y,b));return p},m=p=>H.some((y,b)=>p[b].offsetWidth!==i[y]||p[b].offsetHeight!==s[y]),g=c(),d=u();o.appendChild(a);for(let p=0;p<H.length;p++)i[H[p]]=g[p].offsetWidth,s[H[p]]=g[p].offsetHeight;return Dt.filter(p=>m(d[p]))}))}function ro(){let e=navigator.plugins;if(!e)return;let t=[];for(let n=0;n<e.length;++n){let r=e[n];if(!r)continue;let o=[];for(let a=0;a<r.length;++a){let i=r[a];o.push({type:i.type,suffixes:i.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:o})}return t}function oo(){return tn(fo())}function tn(e){let t=!1,n,r,[o,a]=io();return ao(o,a)?(t=so(a),e?n=r="skipped":[n,r]=co(o,a)):n=r="unsupported",{winding:t,geometry:n,text:r}}function io(){let e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function ao(e,t){return!!(t&&e.toDataURL)}function so(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function co(e,t){uo(e,t);let n=Ue(e),r=Ue(e);return n!==r?["unstable","unstable"]:(lo(e,t),[Ue(e),n])}function uo(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';let n="Cwm fjordbank gly \u{1F603}";t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function lo(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(let[n,r,o]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])t.fillStyle=n,t.beginPath(),t.arc(r,o,40,0,Math.PI*2,!0),t.closePath(),t.fill();t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function Ue(e){return e.toDataURL()}function fo(){let e=T()&&ne()&&te(),t=B()&&Gr();return e||t}function po(){let e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=Be(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch(o){n=!1}let r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:r}}function mo(){return navigator.oscpu}function go(){let e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))z()&&Wr()||t.push(e.languages);else if(typeof e.languages=="string"){let r=e.languages;r&&t.push(r.split(","))}return t}function yo(){return window.screen.colorDepth}function ho(){return F(N(navigator.deviceMemory),void 0)}function bo(){if(!(T()&&ne()&&te()))return nn()}function nn(){let e=screen,t=r=>F(Be(r),null),n=[t(e.width),t(e.height)];return n.sort().reverse(),n}function So(){if(Ze!==void 0)return;let e=()=>{let t=Ye();ze(t)?Ze=setTimeout(e,wo):(ye=t,Ze=void 0)};e()}function rn(){return So(),()=>h(this,null,function*(){let e=Ye();if(ze(e)){if(ye)return[...ye];qt()&&(yield Hr(),e=Ye())}return ze(e)||(ye=e),e})}function Ro(){let e=T()&&ne()&&te(),t=B()&&Kt();if(e||t)return()=>Promise.resolve(void 0);let n=rn();return()=>h(this,null,function*(){let r=yield n(),o=a=>a===null?null:Yt(a,vo);return[o(r[0]),o(r[1]),o(r[2]),o(r[3])]})}function Ye(){let e=screen;return[F(N(e.availTop),null),F(N(e.width)-N(e.availWidth)-F(N(e.availLeft),0),null),F(N(e.height)-N(e.availHeight)-F(N(e.availTop),0),null),F(N(e.availLeft),null)]}function ze(e){for(let t=0;t<4;++t)if(e[t])return!1;return!0}function Po(){let e=on();return e!==void 0&&B()&&Kt()?e>=8?8:4:e}function on(){return F(Be(navigator.hardwareConcurrency),void 0)}function Eo(){var e;let t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){let r=new t().resolvedOptions().timeZone;if(r)return r}let n=-_o();return`UTC${n>=0?"+":""}${n}`}function _o(){let e=new Date().getFullYear();return Math.max(N(new Date(e,0,1).getTimezoneOffset()),N(new Date(e,6,1).getTimezoneOffset()))}function Io(){try{return!!window.sessionStorage}catch(e){return!0}}function xo(){try{return!!window.localStorage}catch(e){return!0}}function Co(){if(!(Je()||Xt()))try{return!!window.indexedDB}catch(e){return!0}}function Ao(){return!!window.openDatabase}function Oo(){return navigator.cpuClass}function ko(){let{platform:e}=navigator;return e==="MacIntel"&&T()&&!we()?Zr()?"iPad":"iPhone":e}function To(){return navigator.vendor||""}function No(){let e=[];for(let t of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let n=window[t];n&&typeof n=="object"&&e.push(t)}return e.sort()}function Mo(){let e=document;try{e.cookie="cookietest=1; SameSite=Strict;";let t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(t){return!1}}function Lo(){let e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("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:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Fo(){return h(this,arguments,function*({debug:e}={}){if(!Do())return;let t=Lo(),n=Object.keys(t),r=[].concat(...n.map(i=>t[i])),o=yield jo(r);e&&Vo(t,o);let a=n.filter(i=>{let s=t[i];return _(s.map(f=>o[f]))>s.length*.6});return a.sort(),a})}function Do(){return T()||ve()}function jo(e){return h(this,null,function*(){var t;let n=document,r=n.createElement("div"),o=new Array(e.length),a={};jt(r);for(let i=0;i<e.length;++i){let s=Kr(e[i]);s.tagName==="DIALOG"&&s.show();let l=n.createElement("div");jt(l),l.appendChild(s),r.appendChild(l),o[i]=s}for(;!n.body;)yield he(50);n.body.appendChild(r);try{for(let i=0;i<e.length;++i)o[i].offsetParent||(a[e[i]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return a})}function jt(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function Vo(e,t){let n="DOM blockers debug:\n```";for(let r of Object.keys(e)){n+=`
2
+ var Qn=Object.create;var pe=Object.defineProperty,er=Object.defineProperties,tr=Object.getOwnPropertyDescriptor,nr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertyNames,de=Object.getOwnPropertySymbols,or=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var Oe=(e,t,n)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))ke.call(t,n)&&Oe(e,n,t[n]);if(de)for(var n of de(t))ft.call(t,n)&&Oe(e,n,t[n]);return e},Q=(e,t)=>er(e,nr(t));var dt=(e,t)=>{var n={};for(var r in e)ke.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&de)for(var r of de(e))t.indexOf(r)<0&&ft.call(e,r)&&(n[r]=e[r]);return n};var ir=(e,t)=>()=>(e&&(t=e(e=0)),t);var ar=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sr=(e,t)=>{for(var n in t)pe(e,n,{get:t[n],enumerable:!0})},cr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rr(t))!ke.call(e,o)&&o!==n&&pe(e,o,{get:()=>t[o],enumerable:!(r=tr(t,o))||r.enumerable});return e};var pt=(e,t,n)=>(n=e!=null?Qn(or(e)):{},cr(t||!e||!e.__esModule?pe(n,"default",{value:e,enumerable:!0}):n,e));var k=(e,t,n)=>(Oe(e,typeof t!="symbol"?t+"":t,n),n);var b=(e,t,n)=>new Promise((r,o)=>{var a=l=>{try{s(n.next(l))}catch(f){o(f)}},i=l=>{try{s(n.throw(l))}catch(f){o(f)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,i);s((n=n.apply(e,t)).next())});var De=ar((_a,It)=>{"use strict";var Me=class e extends Error{constructor(t){super(e._prepareSuperMessage(t)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch(n){return String(t)}}},br=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Le=Symbol(".toJSON called"),wr=e=>{e[Le]=!0;let t=e.toJSON();return delete e[Le],t},Fe=({from:e,seen:t,to_:n,forceEnumerable:r,maxDepth:o,depth:a})=>{let i=n||(Array.isArray(e)?[]:{});if(t.push(e),a>=o)return i;if(typeof e.toJSON=="function"&&e[Le]!==!0)return wr(e);for(let[s,l]of Object.entries(e)){if(typeof Buffer=="function"&&Buffer.isBuffer(l)){i[s]="[object Buffer]";continue}if(typeof l!="function"){if(!l||typeof l!="object"){i[s]=l;continue}if(!t.includes(e[s])){a++,i[s]=Fe({from:e[s],seen:t.slice(),forceEnumerable:r,maxDepth:o,depth:a});continue}i[s]="[Circular]"}}for(let{property:s,enumerable:l}of br)typeof e[s]=="string"&&Object.defineProperty(i,s,{value:e[s],enumerable:r?!0:l,configurable:!0,writable:!0});return i},vr=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;return typeof e=="object"&&e!==null?Fe({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e},Sr=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;if(e instanceof Error)return e;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){let r=new Error;return Fe({from:e,seen:[],to_:r,maxDepth:n,depth:0}),r}return new Me(e)};It.exports={serializeError:vr,deserializeError:Sr}});var mn={};sr(mn,{componentsToDebugString:()=>qe,default:()=>Ii,getFullscreenElement:()=>qt,getUnstableAudioFingerprint:()=>en,getUnstableCanvasFingerprint:()=>tn,getUnstableHardwareConcurrency:()=>on,getUnstableScreenFrame:()=>rn,getUnstableScreenResolution:()=>nn,getWebGLContext:()=>Ke,hashComponents:()=>Qe,isAndroid:()=>Re,isChromium:()=>B,isDesktopWebKit:()=>Se,isEdgeHTML:()=>Jt,isGecko:()=>X,isSamsungInternet:()=>Qt,isTrident:()=>Xe,isWebKit:()=>N,load:()=>pn,loadSources:()=>Xt,murmurX64Hash128:()=>xi,prepareForSources:()=>dn,sources:()=>fn,transformSource:()=>Vr,withIframe:()=>Je});function we(e,t){return new Promise(n=>setTimeout(n,e,t))}function Ir(){return new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)})}function xr(e,t=1/0){let{requestIdleCallback:n}=window;return n?new Promise(r=>n.call(window,()=>r(),{timeout:t})):we(Math.min(e,t))}function ve(e){return!!e&&typeof e.then=="function"}function Tt(e,t){try{let n=e();ve(n)?n.then(r=>t(!0,r),r=>t(!1,r)):t(!0,n)}catch(n){t(!1,n)}}function Nt(e,t,n=16){return b(this,null,function*(){let r=Array(e.length),o=Date.now();for(let a=0;a<e.length;++a){r[a]=t(e[a],a);let i=Date.now();i>=o+n&&(o=i,yield Ir())}return r})}function ne(e){return e.then(void 0,()=>{}),e}function Cr(e,t){for(let n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function Ar(e,t){return!Cr(e,t)}function Be(e){return parseInt(e)}function M(e){return parseFloat(e)}function D(e,t){return typeof e=="number"&&isNaN(e)?t:e}function E(e){return e.reduce((t,n)=>t+(n?1:0),0)}function Yt(e,t=1){if(Math.abs(t)>=1)return Math.round(e/t)*t;{let n=1/t;return Math.round(e*n)/n}}function Or(e){var t,n;let r=`Unexpected syntax '${e}'`,o=/^\s*([a-z-]*)(.*)$/i.exec(e),a=o[1]||void 0,i={},s=/([.:#][\w-]+|\[.+?\])/gi,l=(f,c)=>{i[f]=i[f]||[],i[f].push(c)};for(;;){let f=s.exec(o[2]);if(!f)break;let c=f[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":{let u=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(u)l(u[1],(n=(t=u[4])!==null&&t!==void 0?t:u[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[a,i]}function kr(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>127)return new TextEncoder().encode(e);t[n]=r}return t}function V(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,s=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,c=0,u=0,p=0,g=0;g+=a+f,p+=g>>>16,g&=65535,p+=o+l,u+=p>>>16,p&=65535,u+=r+s,c+=u>>>16,u&=65535,c+=n+i,c&=65535,e[0]=c<<16|u,e[1]=p<<16|g}function T(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,s=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,c=0,u=0,p=0,g=0;g+=a*f,p+=g>>>16,g&=65535,p+=o*f,u+=p>>>16,p&=65535,p+=a*l,u+=p>>>16,p&=65535,u+=r*f,c+=u>>>16,u&=65535,u+=o*l,c+=u>>>16,u&=65535,u+=a*s,c+=u>>>16,u&=65535,c+=n*f+r*l+o*s+a*i,c&=65535,e[0]=c<<16|u,e[1]=p<<16|g}function H(e,t){let n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function O(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function R(e,t){e[0]^=t[0],e[1]^=t[1]}function Mt(e){let t=[0,e[0]>>>1];R(e,t),T(e,Tr),t[1]=e[0]>>>1,R(e,t),T(e,Nr),t[1]=e[0]>>>1,R(e,t)}function zt(e,t){let n=kr(e);t=t||0;let r=[0,n.length],o=r[1]%16,a=r[1]-o,i=[0,t],s=[0,t],l=[0,0],f=[0,0],c;for(c=0;c<a;c=c+16)l[0]=n[c+4]|n[c+5]<<8|n[c+6]<<16|n[c+7]<<24,l[1]=n[c]|n[c+1]<<8|n[c+2]<<16|n[c+3]<<24,f[0]=n[c+12]|n[c+13]<<8|n[c+14]<<16|n[c+15]<<24,f[1]=n[c+8]|n[c+9]<<8|n[c+10]<<16|n[c+11]<<24,T(l,ye),H(l,31),T(l,he),R(i,l),H(i,27),V(i,s),T(i,Lt),V(i,Mr),T(f,he),H(f,33),T(f,ye),R(s,f),H(s,31),V(s,i),T(s,Lt),V(s,Lr);l[0]=0,l[1]=0,f[0]=0,f[1]=0;let u=[0,0];switch(o){case 15:u[1]=n[c+14],O(u,48),R(f,u);case 14:u[1]=n[c+13],O(u,40),R(f,u);case 13:u[1]=n[c+12],O(u,32),R(f,u);case 12:u[1]=n[c+11],O(u,24),R(f,u);case 11:u[1]=n[c+10],O(u,16),R(f,u);case 10:u[1]=n[c+9],O(u,8),R(f,u);case 9:u[1]=n[c+8],R(f,u),T(f,he),H(f,33),T(f,ye),R(s,f);case 8:u[1]=n[c+7],O(u,56),R(l,u);case 7:u[1]=n[c+6],O(u,48),R(l,u);case 6:u[1]=n[c+5],O(u,40),R(l,u);case 5:u[1]=n[c+4],O(u,32),R(l,u);case 4:u[1]=n[c+3],O(u,24),R(l,u);case 3:u[1]=n[c+2],O(u,16),R(l,u);case 2:u[1]=n[c+1],O(u,8),R(l,u);case 1:u[1]=n[c],R(l,u),T(l,ye),H(l,31),T(l,he),R(i,l)}return R(i,r),R(s,r),V(i,s),V(s,i),Mt(i),Mt(s),V(i,s),V(s,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function Fr(e){var t;return v({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
3
+ `)},e)}function Dr(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Bt(e){return typeof e!="function"}function jr(e,t){let n=ne(new Promise(r=>{let o=Date.now();Tt(e.bind(null,t),(...a)=>{let i=Date.now()-o;if(!a[0])return r(()=>({error:a[1],duration:i}));let s=a[1];if(Bt(s))return r(()=>({value:s,duration:i}));r(()=>new Promise(l=>{let f=Date.now();Tt(s,(...c)=>{let u=i+Date.now()-f;if(!c[0])return l({error:c[1],duration:u});l({value:c[1],duration:u})})}))})}));return function(){return n.then(o=>o())}}function Xt(e,t,n,r){let o=Object.keys(e).filter(i=>Ar(n,i)),a=ne(Nt(o,i=>jr(e[i],t),r));return function(){return b(this,null,function*(){let s=yield a,l=yield Nt(s,u=>ne(u()),r),f=yield Promise.all(l),c={};for(let u=0;u<o.length;++u)c[o[u]]=f[u];return c})}}function Vr(e,t){let n=r=>Bt(r)?t(r):()=>{let o=r();return ve(o)?o.then(t):t(o)};return r=>{let o=e(r);return ve(o)?o.then(n):n(o)}}function Xe(){let e=window,t=navigator;return E(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Jt(){let e=window,t=navigator;return E(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Xe()}function B(){let e=window,t=navigator;return E(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function N(){let e=window,t=navigator;return E(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Se(){let e=window,{HTMLElement:t,Document:n}=e;return E(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function re(){let e=window;return Dr(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function X(){var e,t;let n=window;return E(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Gr(){let e=window,t=navigator,{CSS:n}=e;return E(["userActivation"in t,n.supports("color","light-dark(#000, #fff)"),n.supports("height","1lh"),"globalPrivacyControl"in t])>=3}function Kt(){let{CSS:e}=window;return E([e.supports("selector(::details-content)"),e.supports("selector(::before::marker)"),e.supports("selector(::after::marker)"),!("locale"in CompositionEvent.prototype)])>=3}function Wr(){let e=window;return E([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function $r(){let e=window,{URLPattern:t}=e;return E(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Ur(){let e=window;return E(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function oe(){let e=window,t=navigator,{CSS:n,HTMLButtonElement:r}=e;return E([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function Zr(){if(navigator.platform==="iPad")return!0;let e=screen,t=e.width/e.height;return E(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function qt(){let e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Hr(){let e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Re(){let e=B(),t=X(),n=window,r=navigator,o="connection";return e?E([!("SharedWorker"in n),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:t?E(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2:!1}function Qt(){let e=navigator,t=window,n=Audio.prototype,{visualViewport:r}=t;return E(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function Yr(){return Br()?-4:en()}function en(){let e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(zr())return-1;let n=4500,r=5e3,o=new t(1,r,44100),a=o.createOscillator();a.type="triangle",a.frequency.value=1e4;let i=o.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(o.destination),a.start(0);let[s,l]=Xr(o),f=ne(s.then(c=>Jr(c.getChannelData(0).subarray(n)),c=>{if(c.name==="timeout"||c.name==="suspended")return-3;throw c}));return()=>(l(),f)}function zr(){return N()&&!Se()&&!Ur()}function Br(){return N()&&oe()&&re()||B()&&Qt()&&$r()}function Xr(e){let a=()=>{};return[new Promise((s,l)=>{let f=!1,c=0,u=0;e.oncomplete=m=>s(m.renderedBuffer);let p=()=>{setTimeout(()=>l(Ft("timeout")),Math.min(500,u+5e3-Date.now()))},g=()=>{try{let m=e.startRendering();switch(ve(m)&&ne(m),e.state){case"running":u=Date.now(),f&&p();break;case"suspended":document.hidden||c++,f&&c>=3?l(Ft("suspended")):setTimeout(g,500);break}}catch(m){l(m)}};g(),a=()=>{f||(f=!0,u>0&&p())}}),a]}function Jr(e){let t=0;for(let n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function Ft(e){let t=new Error(e);return t.name=e,t}function Je(e,t,n=50){return b(this,null,function*(){var r,o,a;let i=document;for(;!i.body;)yield we(n);let s=i.createElement("iframe");try{for(yield new Promise((l,f)=>{let c=!1,u=()=>{c=!0,l()},p=d=>{c=!0,f(d)};s.onload=u,s.onerror=p;let{style:g}=s;g.setProperty("display","block","important"),g.position="absolute",g.top="0",g.left="0",g.visibility="hidden",t&&"srcdoc"in s?s.srcdoc=t:s.src="about:blank",i.body.appendChild(s);let m=()=>{var d,y;c||(((y=(d=s.contentWindow)===null||d===void 0?void 0:d.document)===null||y===void 0?void 0:y.readyState)==="complete"?u():setTimeout(m,10))};m()});!(!((o=(r=s.contentWindow)===null||r===void 0?void 0:r.document)===null||o===void 0)&&o.body);)yield we(n);return yield e(s,s.contentWindow)}finally{(a=s.parentNode)===null||a===void 0||a.removeChild(s)}})}function Kr(e){let[t,n]=Or(e),r=document.createElement(t!=null?t:"div");for(let o of Object.keys(n)){let a=n[o].join(" ");o==="style"?qr(r.style,a):r.setAttribute(o,a)}return r}function qr(e,t){for(let n of t.split(";")){let r=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(r){let[,o,a,,i]=r;e.setProperty(o,a,i||"")}}}function Qr(){let e=window;for(;;){let t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}function no(){return Je((n,r)=>b(this,[n,r],function*(e,{document:t}){let o=t.body;o.style.fontSize=to;let a=t.createElement("div");a.style.setProperty("visibility","hidden","important");let i={},s={},l=d=>{let y=t.createElement("span"),{style:h}=y;return h.position="absolute",h.top="0",h.left="0",h.fontFamily=d,y.textContent=eo,a.appendChild(y),y},f=(d,y)=>l(`'${d}',${y}`),c=()=>Y.map(l),u=()=>{let d={};for(let y of Dt)d[y]=Y.map(h=>f(y,h));return d},p=d=>Y.some((y,h)=>d[h].offsetWidth!==i[y]||d[h].offsetHeight!==s[y]),g=c(),m=u();o.appendChild(a);for(let d=0;d<Y.length;d++)i[Y[d]]=g[d].offsetWidth,s[Y[d]]=g[d].offsetHeight;return Dt.filter(d=>p(m[d]))}))}function ro(){let e=navigator.plugins;if(!e)return;let t=[];for(let n=0;n<e.length;++n){let r=e[n];if(!r)continue;let o=[];for(let a=0;a<r.length;++a){let i=r[a];o.push({type:i.type,suffixes:i.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:o})}return t}function oo(){return tn(fo())}function tn(e){let t=!1,n,r,[o,a]=io();return ao(o,a)?(t=so(a),e?n=r="skipped":[n,r]=co(o,a)):n=r="unsupported",{winding:t,geometry:n,text:r}}function io(){let e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function ao(e,t){return!!(t&&e.toDataURL)}function so(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function co(e,t){uo(e,t);let n=Ue(e),r=Ue(e);return n!==r?["unstable","unstable"]:(lo(e,t),[Ue(e),n])}function uo(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';let n="Cwm fjordbank gly \u{1F603}";t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function lo(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(let[n,r,o]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])t.fillStyle=n,t.beginPath(),t.arc(r,o,40,0,Math.PI*2,!0),t.closePath(),t.fill();t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function Ue(e){return e.toDataURL()}function fo(){let e=N()&&oe()&&re(),t=X()&&Gr();return e||t}function po(){let e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=Be(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch(o){n=!1}let r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:r}}function mo(){return navigator.oscpu}function go(){let e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))B()&&Wr()||t.push(e.languages);else if(typeof e.languages=="string"){let r=e.languages;r&&t.push(r.split(","))}return t}function yo(){return window.screen.colorDepth}function ho(){return D(M(navigator.deviceMemory),void 0)}function bo(){if(!(N()&&oe()&&re()))return nn()}function nn(){let e=screen,t=r=>D(Be(r),null),n=[t(e.width),t(e.height)];return n.sort().reverse(),n}function So(){if(Ze!==void 0)return;let e=()=>{let t=Ye();ze(t)?Ze=setTimeout(e,wo):(be=t,Ze=void 0)};e()}function rn(){return So(),()=>b(this,null,function*(){let e=Ye();if(ze(e)){if(be)return[...be];qt()&&(yield Hr(),e=Ye())}return ze(e)||(be=e),e})}function Ro(){let e=N()&&oe()&&re(),t=X()&&Kt();if(e||t)return()=>Promise.resolve(void 0);let n=rn();return()=>b(this,null,function*(){let r=yield n(),o=a=>a===null?null:Yt(a,vo);return[o(r[0]),o(r[1]),o(r[2]),o(r[3])]})}function Ye(){let e=screen;return[D(M(e.availTop),null),D(M(e.width)-M(e.availWidth)-D(M(e.availLeft),0),null),D(M(e.height)-M(e.availHeight)-D(M(e.availTop),0),null),D(M(e.availLeft),null)]}function ze(e){for(let t=0;t<4;++t)if(e[t])return!1;return!0}function Po(){let e=on();return e!==void 0&&X()&&Kt()?e>=8?8:4:e}function on(){return D(Be(navigator.hardwareConcurrency),void 0)}function Eo(){var e;let t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){let r=new t().resolvedOptions().timeZone;if(r)return r}let n=-_o();return`UTC${n>=0?"+":""}${n}`}function _o(){let e=new Date().getFullYear();return Math.max(M(new Date(e,0,1).getTimezoneOffset()),M(new Date(e,6,1).getTimezoneOffset()))}function Io(){try{return!!window.sessionStorage}catch(e){return!0}}function xo(){try{return!!window.localStorage}catch(e){return!0}}function Co(){if(!(Xe()||Jt()))try{return!!window.indexedDB}catch(e){return!0}}function Ao(){return!!window.openDatabase}function Oo(){return navigator.cpuClass}function ko(){let{platform:e}=navigator;return e==="MacIntel"&&N()&&!Se()?Zr()?"iPad":"iPhone":e}function To(){return navigator.vendor||""}function No(){let e=[];for(let t of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let n=window[t];n&&typeof n=="object"&&e.push(t)}return e.sort()}function Mo(){let e=document;try{e.cookie="cookietest=1; SameSite=Strict;";let t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(t){return!1}}function Lo(){let e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("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:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Fo(){return b(this,arguments,function*({debug:e}={}){if(!Do())return;let t=Lo(),n=Object.keys(t),r=[].concat(...n.map(i=>t[i])),o=yield jo(r);e&&Vo(t,o);let a=n.filter(i=>{let s=t[i];return E(s.map(f=>o[f]))>s.length*.6});return a.sort(),a})}function Do(){return N()||Re()}function jo(e){return b(this,null,function*(){var t;let n=document,r=n.createElement("div"),o=new Array(e.length),a={};jt(r);for(let i=0;i<e.length;++i){let s=Kr(e[i]);s.tagName==="DIALOG"&&s.show();let l=n.createElement("div");jt(l),l.appendChild(s),r.appendChild(l),o[i]=s}for(;!n.body;)yield we(50);n.body.appendChild(r);try{for(let i=0;i<e.length;++i)o[i].offsetParent||(a[e[i]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return a})}function jt(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function Vo(e,t){let n="DOM blockers debug:\n```";for(let r of Object.keys(e)){n+=`
4
4
  ${r}:`;for(let o of e[r])n+=`
5
5
  ${t[o]?"\u{1F6AB}":"\u27A1\uFE0F"} ${o}`}console.log(`${n}
6
- \`\`\``)}function Go(){for(let e of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${e})`).matches)return e}function Wo(){if(Vt("inverted"))return!0;if(Vt("none"))return!1}function Vt(e){return matchMedia(`(inverted-colors: ${e})`).matches}function $o(){if(Gt("active"))return!0;if(Gt("none"))return!1}function Gt(e){return matchMedia(`(forced-colors: ${e})`).matches}function Zo(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=Uo;++e)if(matchMedia(`(max-monochrome: ${e})`).matches)return e;throw new Error("Too high value")}}function Ho(){if(Y("no-preference"))return 0;if(Y("high")||Y("more"))return 1;if(Y("low")||Y("less"))return-1;if(Y("forced"))return 10}function Y(e){return matchMedia(`(prefers-contrast: ${e})`).matches}function Yo(){if(Wt("reduce"))return!0;if(Wt("no-preference"))return!1}function Wt(e){return matchMedia(`(prefers-reduced-motion: ${e})`).matches}function zo(){if($t("reduce"))return!0;if($t("no-preference"))return!1}function $t(e){return matchMedia(`(prefers-reduced-transparency: ${e})`).matches}function Bo(){if(Ut("high"))return!0;if(Ut("standard"))return!1}function Ut(e){return matchMedia(`(dynamic-range: ${e})`).matches}function Jo(){let e=w.acos||C,t=w.acosh||C,n=w.asin||C,r=w.asinh||C,o=w.atanh||C,a=w.atan||C,i=w.sin||C,s=w.sinh||C,l=w.cos||C,f=w.cosh||C,c=w.tan||C,u=w.tanh||C,m=w.exp||C,g=w.expm1||C,d=w.log1p||C,p=S=>w.pow(w.PI,S),y=S=>w.log(S+w.sqrt(S*S-1)),b=S=>w.log(S+w.sqrt(S*S+1)),P=S=>w.log((1+S)/(1-S))/2,x=S=>w.exp(S)-1/w.exp(S)/2,G=S=>(w.exp(S)+1/w.exp(S))/2,xe=S=>w.exp(S)-1,Ce=S=>(w.exp(2*S)-1)/(w.exp(2*S)+1),Ae=S=>w.log(1+S);return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:y(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:b(1),atanh:o(.5),atanhPf:P(.5),atan:a(.5),sin:i(-1e300),sinh:s(1),sinhPf:x(1),cos:l(10.000000000123),cosh:f(1),coshPf:G(1),tan:c(-1e300),tanh:u(1),tanhPf:Ce(1),exp:m(1),expm1:g(1),expm1Pf:xe(1),log1p:d(10),log1pPf:Ae(10),powPI:p(-100)}}function Ko(){return qo((e,t)=>{let n={},r={};for(let o of Object.keys(He)){let[a={},i=Xo]=He[o],s=e.createElement("span");s.textContent=i,s.style.whiteSpace="nowrap";for(let l of Object.keys(a)){let f=a[l];f!==void 0&&(s.style[l]=f)}n[o]=s,t.append(e.createElement("br"),s)}for(let o of Object.keys(He))r[o]=n[o].getBoundingClientRect().width;return r})}function qo(e,t=4e3){return Xe((n,r)=>{let o=r.document,a=o.body,i=a.style;i.width=`${t}px`,i.webkitTextSizeAdjust=i.textSizeAdjust="none",z()?a.style.zoom=`${1/r.devicePixelRatio}`:T()&&(a.style.zoom="reset");let s=o.createElement("div");return s.textContent=[...Array(t/20<<0)].map(()=>"word").join(" "),a.appendChild(s),e(o,a)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function Qo(){return navigator.pdfViewerEnabled}function ei(){let e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function ti(){let{ApplePaySession:e}=window;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(ni())return-3;try{return e.canMakePayments()?1:0}catch(t){return ri(t)}}function ri(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function oi(){var e;let t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}function li({cache:e}){var t,n,r,o,a,i;let s=Ke(e);if(!s)return an;if(!ln(s))return sn;let l=un()?null:s.getExtension(cn);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=s.getParameter(s.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((o=s.getParameter(s.RENDERER))===null||o===void 0?void 0:o.toString())||"",rendererUnmasked:l?(a=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||a===void 0?void 0:a.toString():"",shadingLanguageVersion:((i=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||i===void 0?void 0:i.toString())||""}}function fi({cache:e}){let t=Ke(e);if(!t)return an;if(!ln(t))return sn;let n=t.getSupportedExtensions(),r=t.getContextAttributes(),o=[],a=[],i=[],s=[],l=[];if(r)for(let c of Object.keys(r))a.push(`${c}=${r[c]}`);let f=Zt(t);for(let c of f){let u=t[c];i.push(`${c}=${u}${ii.has(u)?`=${t.getParameter(u)}`:""}`)}if(n)for(let c of n){if(c===cn&&un()||c===ui&&mi())continue;let u=t.getExtension(c);if(!u){o.push(c);continue}for(let m of Zt(u)){let g=u[m];s.push(`${m}=${g}${ai.has(g)?`=${t.getParameter(g)}`:""}`)}}for(let c of si)for(let u of ci){let m=di(t,c,u);l.push(`${c}.${u}=${m.join(",")}`)}return s.sort(),i.sort(),{contextAttributes:a,parameters:i,shaderPrecisions:l,extensions:n,extensionParameters:s,unsupportedExtensions:o}}function Ke(e){if(e.webgl)return e.webgl.context;let t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",()=>n=void 0);for(let r of["webgl","experimental-webgl"]){try{n=t.getContext(r)}catch(o){}if(n)break}return e.webgl={context:n},n}function di(e,t,n){let r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function Zt(e){return Object.keys(e.__proto__).filter(pi)}function pi(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function un(){return B()}function mi(){return z()||T()}function ln(e){return typeof e.getParameter=="function"}function gi(){if(!(ve()||T()))return-2;if(!window.AudioContext)return-1;let t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function yi(){if(!window.Intl)return-1;let e=window.Intl.DateTimeFormat;if(!e)return-2;let t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}function hi(e){return Jt(fn,e,[])}function wi(e){let t=vi(e),n=Si(t);return{score:t,comment:bi.replace(/\$/g,`${n}`)}}function vi(e){if(ve())return .4;if(T())return we()&&!(ne()&&te())?.5:.3;let t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function Si(e){return Yt(.99+.01*e,1e-4)}function Ri(e){let t="";for(let n of Object.keys(e).sort()){let r=e[n],o="error"in r?"error":JSON.stringify(r.value);t+=`${t?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${o}`}return t}function qe(e){return JSON.stringify(e,(t,n)=>n instanceof Error?Fr(n):n,2)}function Qe(e){return zt(Ri(e))}function Pi(e){let t,n=wi(e);return{get visitorId(){return t===void 0&&(t=Qe(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:Ht}}function dn(e=50){return xr(e,e*2)}function Ei(e,t){let n=Date.now();return{get(o){return h(this,null,function*(){let a=Date.now(),i=yield e(),s=Pi(i);return(t||o!=null&&o.debug)&&console.log(`Copy the text below to get the debug data:
6
+ \`\`\``)}function Go(){for(let e of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${e})`).matches)return e}function Wo(){if(Vt("inverted"))return!0;if(Vt("none"))return!1}function Vt(e){return matchMedia(`(inverted-colors: ${e})`).matches}function $o(){if(Gt("active"))return!0;if(Gt("none"))return!1}function Gt(e){return matchMedia(`(forced-colors: ${e})`).matches}function Zo(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=Uo;++e)if(matchMedia(`(max-monochrome: ${e})`).matches)return e;throw new Error("Too high value")}}function Ho(){if(z("no-preference"))return 0;if(z("high")||z("more"))return 1;if(z("low")||z("less"))return-1;if(z("forced"))return 10}function z(e){return matchMedia(`(prefers-contrast: ${e})`).matches}function Yo(){if(Wt("reduce"))return!0;if(Wt("no-preference"))return!1}function Wt(e){return matchMedia(`(prefers-reduced-motion: ${e})`).matches}function zo(){if($t("reduce"))return!0;if($t("no-preference"))return!1}function $t(e){return matchMedia(`(prefers-reduced-transparency: ${e})`).matches}function Bo(){if(Ut("high"))return!0;if(Ut("standard"))return!1}function Ut(e){return matchMedia(`(dynamic-range: ${e})`).matches}function Xo(){let e=w.acos||A,t=w.acosh||A,n=w.asin||A,r=w.asinh||A,o=w.atanh||A,a=w.atan||A,i=w.sin||A,s=w.sinh||A,l=w.cos||A,f=w.cosh||A,c=w.tan||A,u=w.tanh||A,p=w.exp||A,g=w.expm1||A,m=w.log1p||A,d=S=>w.pow(w.PI,S),y=S=>w.log(S+w.sqrt(S*S-1)),h=S=>w.log(S+w.sqrt(S*S+1)),I=S=>w.log((1+S)/(1-S))/2,x=S=>w.exp(S)-1/w.exp(S)/2,C=S=>(w.exp(S)+1/w.exp(S))/2,W=S=>w.exp(S)-1,Ce=S=>(w.exp(2*S)-1)/(w.exp(2*S)+1),Ae=S=>w.log(1+S);return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:y(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:h(1),atanh:o(.5),atanhPf:I(.5),atan:a(.5),sin:i(-1e300),sinh:s(1),sinhPf:x(1),cos:l(10.000000000123),cosh:f(1),coshPf:C(1),tan:c(-1e300),tanh:u(1),tanhPf:Ce(1),exp:p(1),expm1:g(1),expm1Pf:W(1),log1p:m(10),log1pPf:Ae(10),powPI:d(-100)}}function Ko(){return qo((e,t)=>{let n={},r={};for(let o of Object.keys(He)){let[a={},i=Jo]=He[o],s=e.createElement("span");s.textContent=i,s.style.whiteSpace="nowrap";for(let l of Object.keys(a)){let f=a[l];f!==void 0&&(s.style[l]=f)}n[o]=s,t.append(e.createElement("br"),s)}for(let o of Object.keys(He))r[o]=n[o].getBoundingClientRect().width;return r})}function qo(e,t=4e3){return Je((n,r)=>{let o=r.document,a=o.body,i=a.style;i.width=`${t}px`,i.webkitTextSizeAdjust=i.textSizeAdjust="none",B()?a.style.zoom=`${1/r.devicePixelRatio}`:N()&&(a.style.zoom="reset");let s=o.createElement("div");return s.textContent=[...Array(t/20<<0)].map(()=>"word").join(" "),a.appendChild(s),e(o,a)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function Qo(){return navigator.pdfViewerEnabled}function ei(){let e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function ti(){let{ApplePaySession:e}=window;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(ni())return-3;try{return e.canMakePayments()?1:0}catch(t){return ri(t)}}function ri(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function oi(){var e;let t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}function li({cache:e}){var t,n,r,o,a,i;let s=Ke(e);if(!s)return an;if(!ln(s))return sn;let l=un()?null:s.getExtension(cn);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=s.getParameter(s.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((o=s.getParameter(s.RENDERER))===null||o===void 0?void 0:o.toString())||"",rendererUnmasked:l?(a=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||a===void 0?void 0:a.toString():"",shadingLanguageVersion:((i=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||i===void 0?void 0:i.toString())||""}}function fi({cache:e}){let t=Ke(e);if(!t)return an;if(!ln(t))return sn;let n=t.getSupportedExtensions(),r=t.getContextAttributes(),o=[],a=[],i=[],s=[],l=[];if(r)for(let c of Object.keys(r))a.push(`${c}=${r[c]}`);let f=Zt(t);for(let c of f){let u=t[c];i.push(`${c}=${u}${ii.has(u)?`=${t.getParameter(u)}`:""}`)}if(n)for(let c of n){if(c===cn&&un()||c===ui&&mi())continue;let u=t.getExtension(c);if(!u){o.push(c);continue}for(let p of Zt(u)){let g=u[p];s.push(`${p}=${g}${ai.has(g)?`=${t.getParameter(g)}`:""}`)}}for(let c of si)for(let u of ci){let p=di(t,c,u);l.push(`${c}.${u}=${p.join(",")}`)}return s.sort(),i.sort(),{contextAttributes:a,parameters:i,shaderPrecisions:l,extensions:n,extensionParameters:s,unsupportedExtensions:o}}function Ke(e){if(e.webgl)return e.webgl.context;let t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",()=>n=void 0);for(let r of["webgl","experimental-webgl"]){try{n=t.getContext(r)}catch(o){}if(n)break}return e.webgl={context:n},n}function di(e,t,n){let r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function Zt(e){return Object.keys(e.__proto__).filter(pi)}function pi(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function un(){return X()}function mi(){return B()||N()}function ln(e){return typeof e.getParameter=="function"}function gi(){if(!(Re()||N()))return-2;if(!window.AudioContext)return-1;let t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function yi(){if(!window.Intl)return-1;let e=window.Intl.DateTimeFormat;if(!e)return-2;let t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}function hi(e){return Xt(fn,e,[])}function wi(e){let t=vi(e),n=Si(t);return{score:t,comment:bi.replace(/\$/g,`${n}`)}}function vi(e){if(Re())return .4;if(N())return Se()&&!(oe()&&re())?.5:.3;let t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function Si(e){return Yt(.99+.01*e,1e-4)}function Ri(e){let t="";for(let n of Object.keys(e).sort()){let r=e[n],o="error"in r?"error":JSON.stringify(r.value);t+=`${t?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${o}`}return t}function qe(e){return JSON.stringify(e,(t,n)=>n instanceof Error?Fr(n):n,2)}function Qe(e){return zt(Ri(e))}function Pi(e){let t,n=wi(e);return{get visitorId(){return t===void 0&&(t=Qe(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:Ht}}function dn(e=50){return xr(e,e*2)}function Ei(e,t){let n=Date.now();return{get(o){return b(this,null,function*(){let a=Date.now(),i=yield e(),s=Pi(i);return(t||o!=null&&o.debug)&&console.log(`Copy the text below to get the debug data:
7
7
 
8
8
  \`\`\`
9
9
  version: ${s.version}
@@ -11,17 +11,17 @@ userAgent: ${navigator.userAgent}
11
11
  timeBetweenLoadAndGet: ${a-n}
12
12
  visitorId: ${s.visitorId}
13
13
  components: ${qe(i)}
14
- \`\`\``),s})}}}function _i(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let e=new XMLHttpRequest;e.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${Ht}/npm-monitoring`,!0),e.send()}catch(e){console.error(e)}}function pn(){return h(this,arguments,function*(e={}){let{delayFallback:t,debug:n,monitoring:r=!0}=e;r&&_i(),yield dn(t);let o=hi({cache:{},debug:n});return Ei(o,n)})}var Ht,Tr,Nr,me,ge,Lt,Mr,Lr,eo,to,H,Dt,wo,vo,ye,Ze,Uo,w,C,Xo,He,ni,an,sn,ii,ai,si,ci,cn,ui,fn,bi,Ii,xi,gn=ir(()=>{"use strict";Ht="5.1.0";Tr=[4283543511,3981806797],Nr=[3301882366,444984403];me=[2277735313,289559509],ge=[1291169091,658871167],Lt=[0,5],Mr=[0,1390208809],Lr=[0,944331445];eo="mmMwWLliI0O&1",to="48px",H=["monospace","sans-serif","serif"],Dt=["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"];wo=2500,vo=10;Uo=100;w=Math,C=()=>0;Xo="mmMwWLliI0fiflO&1",He={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};ni=Qr;an=-1,sn=-2,ii=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]),ai=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),si=["FRAGMENT_SHADER","VERTEX_SHADER"],ci=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],cn="WEBGL_debug_renderer_info",ui="WEBGL_polygon_mode";fn={fonts:no,domBlockers:Fo,fontPreferences:Ko,audio:Yr,screenFrame:Ro,canvas:oo,osCpu:mo,languages:go,colorDepth:yo,deviceMemory:ho,screenResolution:bo,hardwareConcurrency:Po,timezone:Eo,sessionStorage:Io,localStorage:xo,indexedDB:Co,openDatabase:Ao,cpuClass:Oo,platform:ko,plugins:ro,touchSupport:po,vendor:To,vendorFlavors:No,cookiesEnabled:Mo,colorGamut:Go,invertedColors:Wo,forcedColors:$o,monochrome:Zo,contrast:Ho,reducedMotion:Yo,reducedTransparency:zo,hdr:Bo,math:Jo,pdfViewerEnabled:Qo,architecture:ei,applePay:ti,privateClickMeasurement:oi,audioBaseLatency:gi,dateTimeLocale:yi,webGlBasics:li,webGlExtensions:fi};bi="$ if upgrade to Pro: https://fingerprint.com/github/?utm_source=oss&utm_medium=referral&utm_campaign=confidence_score";Ii={load:pn,hashComponents:Qe,componentsToDebugString:qe},xi=zt});var mt=(r=>(r.ApplePay="APPLE_PAY",r.SamsungPay="SAMSUNG_PAY",r.GooglePay="GOOGLE_PAY",r))(mt||{});var ur=["visa","mastercard"];function q(e){let t=e==null?void 0:e.allowedNetworks;return t&&t.length>0?[...t]:[...ur]}function gt(e){switch(e){case"mastercard":return"masterCard";case"visa":case"amex":return e}}function yt(e){switch(e){case"visa":return"VISA";case"mastercard":return"MASTERCARD";case"amex":return"AMEX"}}function ht(e){switch(e){case"visa":case"mastercard":case"amex":return e}}var Q=function(){return Q=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Q.apply(this,arguments)};function bt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function wt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function lr(e,t){return function(n,r){return Object.prototype.hasOwnProperty.call(n,r)}(e,t)?e[t]:void 0}function fr(e,t,n,r){var o,a=document,i="securitypolicyviolation",s=function(f){var c=new URL(e,location.href),u=f.blockedURI;u!==c.href&&u!==c.protocol.slice(0,-1)&&u!==c.origin||(o=f,l())};a.addEventListener(i,s);var l=function(){return a.removeEventListener(i,s)};return r==null||r.then(l,l),Promise.resolve().then(t).then(function(f){return l(),f},function(f){return new Promise(function(c){var u=new MessageChannel;u.port1.onmessage=function(){return c()},u.port2.postMessage(null)}).then(function(){if(l(),o)return n(o);throw f})})}var vt={default:"endpoint"};var St="Blocked by CSP",Rt="The endpoint parameter is not a valid URL";var dr="API key required";var pr="3.11.4",Te="Failed to load the JS script of the agent",Ne="9319";function mr(e,t){var n,r,o,a,i,s,l,f=[],c=(n=function(d){var p=wt([],d,!0);return{current:function(){return p[0]},postpone:function(){var y=p.shift();y!==void 0&&p.push(y)},exclude:function(){p.shift()}}}(e),a=100,i=3e3,s=0,r=function(){return Math.random()*Math.min(i,a*Math.pow(2,s++))},o=new Set,[n.current(),function(d,p){var y,b=p instanceof Error?p.message:"";if(b===St||b===Rt)n.exclude(),y=0;else if(b===Ne)n.exclude();else if(b===Te){var P=Date.now()-d.getTime()<50,x=n.current();x&&P&&!o.has(x)&&(o.add(x),y=0),n.postpone()}else n.postpone();var G=n.current();return G===void 0?void 0:[G,y!=null?y:d.getTime()+r()-Date.now()]}]),u=c[0],m=c[1];if(u===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var g=function(d){var p=new Date,y=function(P){return f.push({url:d,startedAt:p,finishedAt:new Date,error:P})},b=t(d);return b.then(function(){return y()},y),b.catch(function(P){if(l!=null||(l=P),f.length>=5)throw l;var x=m(p,P);if(!x)throw l;var G,xe=x[0],Ce=x[1];return(G=Ce,new Promise(function(Ae){return setTimeout(Ae,G)})).then(function(){return g(xe)})})};return g(u).then(function(d){return[d,f]})}var Pt="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",Et=Pt;function _t(e){var t;e.scriptUrlPattern;var n=e.token,r=e.apiKey,o=r===void 0?n:r,a=bt(e,["scriptUrlPattern","token","apiKey"]),i=(t=lr(e,"scriptUrlPattern"))!==null&&t!==void 0?t:Pt,s=function(){var c=[],u=function(){c.push({time:new Date,state:document.visibilityState})},m=function(g,d,p,y){return g.addEventListener(d,p,y),function(){return g.removeEventListener(d,p,y)}}(document,"visibilitychange",u);return u(),[c,m]}(),l=s[0],f=s[1];return Promise.resolve().then(function(){if(!o||typeof o!="string")throw new Error(dr);var c=function(u,m){return(Array.isArray(u)?u:[u]).map(function(g){return function(d,p){var y=encodeURIComponent;return d.replace(/<[^<>]+>/g,function(b){return b==="<version>"?"3":b==="<apiKey>"?y(p):b==="<loaderVersion>"?y(pr):b})}(String(g),m)})}(i,o);return mr(c,gr)}).catch(function(c){throw f(),function(u){return u instanceof Error&&u.message===Ne?new Error(Te):u}(c)}).then(function(c){var u=c[0],m=c[1];return f(),u.load(Q(Q({},a),{ldi:{attempts:m,visibilityStates:l}}))})}function gr(e){return fr(e,function(){return function(t){return new Promise(function(n,r){if(function(s){if(URL.prototype)try{return new URL(s,location.href),!1}catch(l){if(l instanceof Error&&l.name==="TypeError")return!0;throw l}}(t))throw new Error(Rt);var o=document.createElement("script"),a=function(){var s;return(s=o.parentNode)===null||s===void 0?void 0:s.removeChild(o)},i=document.head||document.getElementsByTagName("head")[0];o.onload=function(){a(),n()},o.onerror=function(){a(),r(new Error(Te))},o.async=!0,o.src=t,i.appendChild(o)})}(e)},function(){throw new Error(St)}).then(yr)}function yr(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(r,o){var a,i=(a=Object.getOwnPropertyDescriptor)===null||a===void 0?void 0:a.call(Object,r,o);i!=null&&i.configurable?delete r[o]:i&&!i.writable||(r[o]=void 0)}(e,t),typeof(n==null?void 0:n.load)!="function")throw new Error(Ne);return n}var xt=pt(De());function L(){return typeof crypto!="undefined"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}var Rr="https://analytics.stitch.money/query",je={loggingUrl:Rr},de={};function Ve(e={}){let r=e,{loggingUrl:t}=r,n=dt(r,["loggingUrl"]);typeof t=="string"&&t.length>0&&(je.loggingUrl=t),de=v(v({sessionId:L()},de),n)}function Ct(){var e,t,n;return((t=(e=window==null?void 0:window.location)==null?void 0:e.ancestorOrigins)==null?void 0:t.length)>0?Object.values((n=window==null?void 0:window.location)==null?void 0:n.ancestorOrigins).join(","):(document==null?void 0:document.referrer)||void 0}function Ge(e,t){return h(this,null,function*(){try{yield fetch(je.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_EVENT",event:{message:e,metadata:v(v({hostname:Ct()},de),t)}})})}catch(n){try{yield E("[logEvent] Error logging event",n,t)}catch(r){}}})}function E(e,t,n){return h(this,null,function*(){try{yield fetch(je.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_ERROR",error:{message:e,error:(0,xt.serializeError)(t),metadata:v(v({hostname:Ct()},de),n)}})})}catch(r){}})}var hn=pt(De());var Pr="~";var Er=new TextEncoder;function We(e){return h(this,null,function*(){var n;let t=(n=globalThis.crypto)==null?void 0:n.subtle;if(t===void 0)return e;try{let r=yield t.digest("SHA-256",Er.encode(e)),o=_r(new Uint8Array(r)).slice(0,12);return`${e}${Pr}${o}`}catch(r){return e}})}function _r(e){let t="";for(let n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/gu,"-").replace(/\//gu,"_").replace(/=+$/u,"")}var $e;function pe(e,t=0){let n=typeof e=="string"?($e!=null?$e:$e=new TextEncoder).encode(e):e,r=n,o=t+374761393&4294967295,a=0;if(r.length>=16){let s=[t+2654435761+2246822519&4294967295,t+2246822519&4294967295,t+0&4294967295,t-2654435761&4294967295],l=n,f=l.length-16,c=0;for(a=0;(a&4294967280)<=f;a+=4){let u=a,m=l[u+0]+(l[u+1]<<8),g=l[u+2]+(l[u+3]<<8),d=m*2246822519+(g*2246822519<<16),p=s[c]+d&4294967295;p=p<<13|p>>>19;let y=p&65535,b=p>>>16;s[c]=y*2654435761+(b*2654435761<<16)&4294967295,c=c+1&3}o=(s[0]<<1|s[0]>>>31)+(s[1]<<7|s[1]>>>25)+(s[2]<<12|s[2]>>>20)+(s[3]<<18|s[3]>>>14)&4294967295}o=o+n.length&4294967295;let i=n.length-4;for(;a<=i;a+=4){let s=a,l=r[s+0]+(r[s+1]<<8),f=r[s+2]+(r[s+3]<<8),c=l*3266489917+(f*3266489917<<16);o=o+c&4294967295,o=o<<17|o>>>15,o=(o&65535)*668265263+((o>>>16)*668265263<<16)&4294967295}for(;a<r.length;++a){let s=r[a];o=o+s*374761393,o=o<<11|o>>>21,o=(o&65535)*2654435761+((o>>>16)*2654435761<<16)&4294967295}return o=o^o>>>15,o=((o&65535)*2246822519&4294967295)+((o>>>16)*2246822519<<16),o=o^o>>>13,o=((o&65535)*3266489917&4294967295)+((o>>>16)*3266489917<<16),o=o^o>>>16,o<0?o+4294967296:o}function At(e){let t={};if(e===null||typeof e!="object")return t;for(let[n,r]of Object.entries(e)){if(r===null||typeof r!="object")continue;let{value:o}=r;if(o!==void 0){if(typeof o=="string"||typeof o=="number"){t[n]=o.toString();continue}try{let a=JSON.stringify(o);if(a===void 0)continue;t[n]=pe(a,0).toString()}catch(a){continue}}}return t}var Ot="stitch-fp-session-id";function kt(){try{let e=localStorage.getItem(Ot);return e||(e=L(),localStorage.setItem(Ot,e)),e}catch(e){return}}var et,tt,re;function yn(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function Ci(e){var r;let t=e.cause,n=t!=null?typeof t=="object"&&"message"in t?t.message:typeof t=="object"?"Unknown cause":String(t):void 0;return v(v(v({message:(r=e.message)!=null?r:"Unknown error",name:e.name},typeof e.code=="string"&&{code:e.code}),typeof e.requestId=="string"&&{requestId:e.requestId}),n&&{cause:n})}function bn(t){return h(this,arguments,function*({config:e}){let n={apiKey:e.publicKey,endpoint:[e.endpoint,vt],scriptUrlPattern:[e.scriptUrlPattern,Et],region:"eu"},r=_t(n);if(e.ossEnabled!==!0)return{proAgent:yield r};let[o,a]=yield Promise.all([r,Promise.resolve().then(()=>(gn(),mn)).then(i=>i.load()).catch(i=>{E("OSS fingerprint agent load failed",i,{source:"fingerprint-stitch"})})]);return v({proAgent:o},a!==void 0&&{ossAgent:a})})}function wn(s){return h(this,arguments,function*({config:e,clientId:t,agent:n,payerId:r,sdkVersion:o,ipAddress:a,ipAddressProof:i}){let l=(e==null?void 0:e.ossEnabled)===!0,f=l?a:void 0,c=l?i:void 0;if((e==null?void 0:e.disabled)===!0){let m={disabled:!0,emulated:!1,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:"",visitorId:""}};return btoa(JSON.stringify(m))}if((e==null?void 0:e.disabled)===!1&&(e!=null&&e.useEmulation)&&(t!=null&&t.startsWith("test"))){let m=L().replace(/-/g,"").slice(0,8),g=yield We(m),d=v({disabled:!1,emulated:!0,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:`${Date.now()}.${yn(6)}`,visitorId:yn(20)}},l&&{oss:K(v(v({fingerprintHash:g,rawSignals:{},sessionId:L()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})});return btoa(JSON.stringify(d))}if(n!==void 0&&(e==null?void 0:e.disabled)===!1){let m=Date.now();if(et!==void 0&&tt!==void 0&&re!==void 0&&re.ossEnabled===l&&re.ipAddress===f&&re.ipAddressProof===c&&m-tt<e.cacheDurationInSeconds*1e3)return btoa(JSON.stringify(et));try{let g={linkedId:t,tag:{payerId:r}},d,p;if(l&&n.ossAgent!==void 0){let[P,x]=yield Promise.allSettled([n.proAgent.get(g),n.ossAgent.get()]);if(P.status==="rejected")throw P.reason;d=P.value,x.status==="fulfilled"?p=x.value:E("OSS fingerprint collection failed",x.reason,{source:"fingerprint-stitch"})}else d=yield n.proAgent.get(g);let y;if(p!==void 0)try{if(typeof p.visitorId!="string"||p.visitorId.length===0)throw new Error("OSS fingerprint payload missing visitorId");let P=yield We(p.visitorId);y=K(v(v({fingerprintHash:P,rawSignals:At(p.components),sessionId:kt()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})}catch(P){E("OSS fingerprint payload construction failed",P,{source:"fingerprint-stitch"})}let b=v({disabled:!1,emulated:!1,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:d.requestId,visitorId:d.visitorId}},y!==void 0&&{oss:y});return et=b,tt=m,re={ossEnabled:l,ipAddress:f,ipAddressProof:c},btoa(JSON.stringify(b))}catch(g){let d=Ci((0,hn.serializeError)(g)),p=d.name&&d.name!=="Error"?`${d.name}: ${d.message}`:d.message,y={error:v(v(v(v({outcome:"Failed",message:p||"Unknown error"},d.code&&{code:d.code}),d.cause&&{cause:d.cause}),d.requestId&&{requestId:d.requestId}),o&&{sdkVersion:o})};return btoa(JSON.stringify(y))}}let u={error:v({outcome:"Failed",message:"Attempted to get fingerprint data but either runtime config or the agent are not present"},o&&{sdkVersion:o})};return btoa(JSON.stringify(u))})}function Ai(e){return typeof e=="number"}function Oi(e){return typeof e=="string"}function ki(e){return typeof e=="bigint"}function Sn(e){return!!e&&Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e)}function Rn(e){return e!=null&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}var Pn=new WeakSet;function oe(e){return Pn.add(e),e}function En(e,t){return oe({type:"object",fields:e,text:t})}function Ti(e,t){return oe({type:"array",items:e,text:t})}function Se(e,t){return oe({type:"opaque",value:e,text:t})}function Ni(e,t){return oe({type:"scalar",value:e,text:t})}function _n(e,t){return t!==void 0?oe(K(v({},e),{text:t})):e}function In(e,t){let n=new Map([...e.fields,...t]);return En(n,e.text)}function xn(e){return Pn.has(e)}function Mi(e,t,n){n.add(e);let r=[];for(let o of e)r.push(ot(o,void 0,n));return Ti(r,t)}function Cn(e,t,n){n.add(e);let r=new Map;for(let o of Object.keys(e)){let a=e[o];r.set(o,ot(a,void 0,n))}return En(r,t)}function ot(e,t,n){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e.getMonth=="function"?Ni(e,t):xn(e)?_n(e,t):Array.isArray(e)?n.has(e)?Se("<circular ref>",t):Mi(e,t,n):Rn(e)?n.has(e)?Se("<circular ref>",t):Cn(e,t,n):Se(typeof e=="function"?"<function>":"???",t)}function W(e,t){return ot(e,t,new WeakSet)}function An(e,t){return Cn(e,t,new WeakSet)}var $=" ";function nt(e){return e.indexOf(`
15
- `)>=0}function it(e,t=$){return nt(e)?e.split(`
14
+ \`\`\``),s})}}}function _i(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let e=new XMLHttpRequest;e.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${Ht}/npm-monitoring`,!0),e.send()}catch(e){console.error(e)}}function pn(){return b(this,arguments,function*(e={}){let{delayFallback:t,debug:n,monitoring:r=!0}=e;r&&_i(),yield dn(t);let o=hi({cache:{},debug:n});return Ei(o,n)})}var Ht,Tr,Nr,ye,he,Lt,Mr,Lr,eo,to,Y,Dt,wo,vo,be,Ze,Uo,w,A,Jo,He,ni,an,sn,ii,ai,si,ci,cn,ui,fn,bi,Ii,xi,gn=ir(()=>{"use strict";Ht="5.1.0";Tr=[4283543511,3981806797],Nr=[3301882366,444984403];ye=[2277735313,289559509],he=[1291169091,658871167],Lt=[0,5],Mr=[0,1390208809],Lr=[0,944331445];eo="mmMwWLliI0O&1",to="48px",Y=["monospace","sans-serif","serif"],Dt=["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"];wo=2500,vo=10;Uo=100;w=Math,A=()=>0;Jo="mmMwWLliI0fiflO&1",He={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};ni=Qr;an=-1,sn=-2,ii=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]),ai=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),si=["FRAGMENT_SHADER","VERTEX_SHADER"],ci=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],cn="WEBGL_debug_renderer_info",ui="WEBGL_polygon_mode";fn={fonts:no,domBlockers:Fo,fontPreferences:Ko,audio:Yr,screenFrame:Ro,canvas:oo,osCpu:mo,languages:go,colorDepth:yo,deviceMemory:ho,screenResolution:bo,hardwareConcurrency:Po,timezone:Eo,sessionStorage:Io,localStorage:xo,indexedDB:Co,openDatabase:Ao,cpuClass:Oo,platform:ko,plugins:ro,touchSupport:po,vendor:To,vendorFlavors:No,cookiesEnabled:Mo,colorGamut:Go,invertedColors:Wo,forcedColors:$o,monochrome:Zo,contrast:Ho,reducedMotion:Yo,reducedTransparency:zo,hdr:Bo,math:Xo,pdfViewerEnabled:Qo,architecture:ei,applePay:ti,privateClickMeasurement:oi,audioBaseLatency:gi,dateTimeLocale:yi,webGlBasics:li,webGlExtensions:fi};bi="$ if upgrade to Pro: https://fingerprint.com/github/?utm_source=oss&utm_medium=referral&utm_campaign=confidence_score";Ii={load:pn,hashComponents:Qe,componentsToDebugString:qe},xi=zt});var mt=(r=>(r.ApplePay="APPLE_PAY",r.SamsungPay="SAMSUNG_PAY",r.GooglePay="GOOGLE_PAY",r))(mt||{});var ur=["visa","mastercard"];function ee(e){let t=e==null?void 0:e.allowedNetworks;return t&&t.length>0?[...t]:[...ur]}function gt(e){switch(e){case"mastercard":return"masterCard";case"visa":case"amex":return e}}function yt(e){switch(e){case"visa":return"VISA";case"mastercard":return"MASTERCARD";case"amex":return"AMEX"}}function ht(e){switch(e){case"visa":case"mastercard":case"amex":return e}}var te=function(){return te=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},te.apply(this,arguments)};function bt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function wt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function lr(e,t){return function(n,r){return Object.prototype.hasOwnProperty.call(n,r)}(e,t)?e[t]:void 0}function fr(e,t,n,r){var o,a=document,i="securitypolicyviolation",s=function(f){var c=new URL(e,location.href),u=f.blockedURI;u!==c.href&&u!==c.protocol.slice(0,-1)&&u!==c.origin||(o=f,l())};a.addEventListener(i,s);var l=function(){return a.removeEventListener(i,s)};return r==null||r.then(l,l),Promise.resolve().then(t).then(function(f){return l(),f},function(f){return new Promise(function(c){var u=new MessageChannel;u.port1.onmessage=function(){return c()},u.port2.postMessage(null)}).then(function(){if(l(),o)return n(o);throw f})})}var vt={default:"endpoint"};var St="Blocked by CSP",Rt="The endpoint parameter is not a valid URL";var dr="API key required";var pr="3.11.4",Te="Failed to load the JS script of the agent",Ne="9319";function mr(e,t){var n,r,o,a,i,s,l,f=[],c=(n=function(m){var d=wt([],m,!0);return{current:function(){return d[0]},postpone:function(){var y=d.shift();y!==void 0&&d.push(y)},exclude:function(){d.shift()}}}(e),a=100,i=3e3,s=0,r=function(){return Math.random()*Math.min(i,a*Math.pow(2,s++))},o=new Set,[n.current(),function(m,d){var y,h=d instanceof Error?d.message:"";if(h===St||h===Rt)n.exclude(),y=0;else if(h===Ne)n.exclude();else if(h===Te){var I=Date.now()-m.getTime()<50,x=n.current();x&&I&&!o.has(x)&&(o.add(x),y=0),n.postpone()}else n.postpone();var C=n.current();return C===void 0?void 0:[C,y!=null?y:m.getTime()+r()-Date.now()]}]),u=c[0],p=c[1];if(u===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var g=function(m){var d=new Date,y=function(I){return f.push({url:m,startedAt:d,finishedAt:new Date,error:I})},h=t(m);return h.then(function(){return y()},y),h.catch(function(I){if(l!=null||(l=I),f.length>=5)throw l;var x=p(d,I);if(!x)throw l;var C,W=x[0],Ce=x[1];return(C=Ce,new Promise(function(Ae){return setTimeout(Ae,C)})).then(function(){return g(W)})})};return g(u).then(function(m){return[m,f]})}var Pt="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",Et=Pt;function _t(e){var t;e.scriptUrlPattern;var n=e.token,r=e.apiKey,o=r===void 0?n:r,a=bt(e,["scriptUrlPattern","token","apiKey"]),i=(t=lr(e,"scriptUrlPattern"))!==null&&t!==void 0?t:Pt,s=function(){var c=[],u=function(){c.push({time:new Date,state:document.visibilityState})},p=function(g,m,d,y){return g.addEventListener(m,d,y),function(){return g.removeEventListener(m,d,y)}}(document,"visibilitychange",u);return u(),[c,p]}(),l=s[0],f=s[1];return Promise.resolve().then(function(){if(!o||typeof o!="string")throw new Error(dr);var c=function(u,p){return(Array.isArray(u)?u:[u]).map(function(g){return function(m,d){var y=encodeURIComponent;return m.replace(/<[^<>]+>/g,function(h){return h==="<version>"?"3":h==="<apiKey>"?y(d):h==="<loaderVersion>"?y(pr):h})}(String(g),p)})}(i,o);return mr(c,gr)}).catch(function(c){throw f(),function(u){return u instanceof Error&&u.message===Ne?new Error(Te):u}(c)}).then(function(c){var u=c[0],p=c[1];return f(),u.load(te(te({},a),{ldi:{attempts:p,visibilityStates:l}}))})}function gr(e){return fr(e,function(){return function(t){return new Promise(function(n,r){if(function(s){if(URL.prototype)try{return new URL(s,location.href),!1}catch(l){if(l instanceof Error&&l.name==="TypeError")return!0;throw l}}(t))throw new Error(Rt);var o=document.createElement("script"),a=function(){var s;return(s=o.parentNode)===null||s===void 0?void 0:s.removeChild(o)},i=document.head||document.getElementsByTagName("head")[0];o.onload=function(){a(),n()},o.onerror=function(){a(),r(new Error(Te))},o.async=!0,o.src=t,i.appendChild(o)})}(e)},function(){throw new Error(St)}).then(yr)}function yr(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(r,o){var a,i=(a=Object.getOwnPropertyDescriptor)===null||a===void 0?void 0:a.call(Object,r,o);i!=null&&i.configurable?delete r[o]:i&&!i.writable||(r[o]=void 0)}(e,t),typeof(n==null?void 0:n.load)!="function")throw new Error(Ne);return n}var xt=pt(De());function F(){return typeof crypto!="undefined"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}var Rr="https://analytics.stitch.money/query",je={loggingUrl:Rr},me={};function Ve(e={}){let r=e,{loggingUrl:t}=r,n=dt(r,["loggingUrl"]);typeof t=="string"&&t.length>0&&(je.loggingUrl=t),me=v(v({sessionId:F()},me),n)}function Ct(){var e,t,n;return((t=(e=window==null?void 0:window.location)==null?void 0:e.ancestorOrigins)==null?void 0:t.length)>0?Object.values((n=window==null?void 0:window.location)==null?void 0:n.ancestorOrigins).join(","):(document==null?void 0:document.referrer)||void 0}function Ge(e,t){return b(this,null,function*(){try{yield fetch(je.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_EVENT",event:{message:e,metadata:v(v({hostname:Ct()},me),t)}})})}catch(n){try{yield P("[logEvent] Error logging event",n,t)}catch(r){}}})}function P(e,t,n){return b(this,null,function*(){try{yield fetch(je.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_ERROR",error:{message:e,error:(0,xt.serializeError)(t),metadata:v(v({hostname:Ct()},me),n)}})})}catch(r){}})}var hn=pt(De());var Pr="~";var Er=new TextEncoder;function We(e){return b(this,null,function*(){var n;let t=(n=globalThis.crypto)==null?void 0:n.subtle;if(t===void 0)return e;try{let r=yield t.digest("SHA-256",Er.encode(e)),o=_r(new Uint8Array(r)).slice(0,12);return`${e}${Pr}${o}`}catch(r){return e}})}function _r(e){let t="";for(let n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/gu,"-").replace(/\//gu,"_").replace(/=+$/u,"")}var $e;function ge(e,t=0){let n=typeof e=="string"?($e!=null?$e:$e=new TextEncoder).encode(e):e,r=n,o=t+374761393&4294967295,a=0;if(r.length>=16){let s=[t+2654435761+2246822519&4294967295,t+2246822519&4294967295,t+0&4294967295,t-2654435761&4294967295],l=n,f=l.length-16,c=0;for(a=0;(a&4294967280)<=f;a+=4){let u=a,p=l[u+0]+(l[u+1]<<8),g=l[u+2]+(l[u+3]<<8),m=p*2246822519+(g*2246822519<<16),d=s[c]+m&4294967295;d=d<<13|d>>>19;let y=d&65535,h=d>>>16;s[c]=y*2654435761+(h*2654435761<<16)&4294967295,c=c+1&3}o=(s[0]<<1|s[0]>>>31)+(s[1]<<7|s[1]>>>25)+(s[2]<<12|s[2]>>>20)+(s[3]<<18|s[3]>>>14)&4294967295}o=o+n.length&4294967295;let i=n.length-4;for(;a<=i;a+=4){let s=a,l=r[s+0]+(r[s+1]<<8),f=r[s+2]+(r[s+3]<<8),c=l*3266489917+(f*3266489917<<16);o=o+c&4294967295,o=o<<17|o>>>15,o=(o&65535)*668265263+((o>>>16)*668265263<<16)&4294967295}for(;a<r.length;++a){let s=r[a];o=o+s*374761393,o=o<<11|o>>>21,o=(o&65535)*2654435761+((o>>>16)*2654435761<<16)&4294967295}return o=o^o>>>15,o=((o&65535)*2246822519&4294967295)+((o>>>16)*2246822519<<16),o=o^o>>>13,o=((o&65535)*3266489917&4294967295)+((o>>>16)*3266489917<<16),o=o^o>>>16,o<0?o+4294967296:o}function At(e){let t={};if(e===null||typeof e!="object")return t;for(let[n,r]of Object.entries(e)){if(r===null||typeof r!="object")continue;let{value:o}=r;if(o!==void 0){if(typeof o=="string"||typeof o=="number"){t[n]=o.toString();continue}try{let a=JSON.stringify(o);if(a===void 0)continue;t[n]=ge(a,0).toString()}catch(a){continue}}}return t}var Ot="stitch-fp-session-id";function kt(){try{let e=localStorage.getItem(Ot);return e||(e=F(),localStorage.setItem(Ot,e)),e}catch(e){return}}var Ci=4096,et,tt,J;function yn(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function Ai(e){var r;let t=e.cause,n=t!=null?typeof t=="object"&&"message"in t?t.message:typeof t=="object"?"Unknown cause":String(t):void 0;return v(v(v({message:(r=e.message)!=null?r:"Unknown error",name:e.name},typeof e.code=="string"&&{code:e.code}),typeof e.requestId=="string"&&{requestId:e.requestId}),n&&{cause:n})}function bn(t){return b(this,arguments,function*({config:e}){let n={apiKey:e.publicKey,endpoint:[e.endpoint,vt],scriptUrlPattern:[e.scriptUrlPattern,Et],region:"eu"},r=_t(n);if(e.ossEnabled!==!0)return{proAgent:yield r};let[o,a]=yield Promise.all([r,Promise.resolve().then(()=>(gn(),mn)).then(i=>i.load()).catch(i=>{P("OSS fingerprint agent load failed",i,{source:"fingerprint-stitch"})})]);return v({proAgent:o},a!==void 0&&{ossAgent:a})})}function wn(l){return b(this,arguments,function*({config:e,clientId:t,agent:n,payerId:r,sdkVersion:o,ipAddress:a,ipAddressProof:i,fingerprintContext:s}){let f=(e==null?void 0:e.ossEnabled)===!0,c;f&&s!==void 0&&(s.length>Ci?P("Fingerprint context exceeded size limit and was dropped",new Error(`fingerprintContext length ${s.length}`),{source:"fingerprint-stitch"}):c=s);let u=f?a:void 0,p=f?i:void 0;if((e==null?void 0:e.disabled)===!0){let m={disabled:!0,emulated:!1,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:"",visitorId:""}};return btoa(JSON.stringify(m))}if((e==null?void 0:e.disabled)===!1&&(e!=null&&e.useEmulation)&&(t!=null&&t.startsWith("test"))){let m=F().replace(/-/g,"").slice(0,8),d=yield We(m),y=v(v({disabled:!1,emulated:!0,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:`${Date.now()}.${yn(6)}`,visitorId:yn(20)}},c!==void 0&&{fingerprintContext:c}),f&&{oss:Q(v(v({fingerprintHash:d,rawSignals:{},sessionId:F()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})});return btoa(JSON.stringify(y))}if(n!==void 0&&(e==null?void 0:e.disabled)===!1){let m=Date.now();if(et!==void 0&&tt!==void 0&&J!==void 0&&J.ossEnabled===f&&J.ipAddress===u&&J.ipAddressProof===p&&J.fingerprintContext===c&&m-tt<e.cacheDurationInSeconds*1e3)return btoa(JSON.stringify(et));try{let d={linkedId:t,tag:{payerId:r}},y,h;if(f&&n.ossAgent!==void 0){let[C,W]=yield Promise.allSettled([n.proAgent.get(d),n.ossAgent.get()]);if(C.status==="rejected")throw C.reason;y=C.value,W.status==="fulfilled"?h=W.value:P("OSS fingerprint collection failed",W.reason,{source:"fingerprint-stitch"})}else y=yield n.proAgent.get(d);let I;if(h!==void 0)try{if(typeof h.visitorId!="string"||h.visitorId.length===0)throw new Error("OSS fingerprint payload missing visitorId");let C=yield We(h.visitorId);I=Q(v(v({fingerprintHash:C,rawSignals:At(h.components),sessionId:kt()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})}catch(C){P("OSS fingerprint payload construction failed",C,{source:"fingerprint-stitch"})}let x=v(v({disabled:!1,emulated:!1,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:y.requestId,visitorId:y.visitorId}},c!==void 0&&{fingerprintContext:c}),I!==void 0&&{oss:I});return et=x,tt=m,J={ossEnabled:f,ipAddress:u,ipAddressProof:p,fingerprintContext:c},btoa(JSON.stringify(x))}catch(d){let y=Ai((0,hn.serializeError)(d)),h=y.name&&y.name!=="Error"?`${y.name}: ${y.message}`:y.message,I={error:v(v(v(v({outcome:"Failed",message:h||"Unknown error"},y.code&&{code:y.code}),y.cause&&{cause:y.cause}),y.requestId&&{requestId:y.requestId}),o&&{sdkVersion:o})};return btoa(JSON.stringify(I))}}let g={error:v({outcome:"Failed",message:"Attempted to get fingerprint data but either runtime config or the agent are not present"},o&&{sdkVersion:o})};return btoa(JSON.stringify(g))})}function Oi(e){return typeof e=="number"}function ki(e){return typeof e=="string"}function Ti(e){return typeof e=="bigint"}function Sn(e){return!!e&&Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e)}function Rn(e){return e!=null&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}var Pn=new WeakSet;function ie(e){return Pn.add(e),e}function En(e,t){return ie({type:"object",fields:e,text:t})}function Ni(e,t){return ie({type:"array",items:e,text:t})}function Pe(e,t){return ie({type:"opaque",value:e,text:t})}function Mi(e,t){return ie({type:"scalar",value:e,text:t})}function _n(e,t){return t!==void 0?ie(Q(v({},e),{text:t})):e}function In(e,t){let n=new Map([...e.fields,...t]);return En(n,e.text)}function xn(e){return Pn.has(e)}function Li(e,t,n){n.add(e);let r=[];for(let o of e)r.push(ot(o,void 0,n));return Ni(r,t)}function Cn(e,t,n){n.add(e);let r=new Map;for(let o of Object.keys(e)){let a=e[o];r.set(o,ot(a,void 0,n))}return En(r,t)}function ot(e,t,n){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e.getMonth=="function"?Mi(e,t):xn(e)?_n(e,t):Array.isArray(e)?n.has(e)?Pe("<circular ref>",t):Li(e,t,n):Rn(e)?n.has(e)?Pe("<circular ref>",t):Cn(e,t,n):Pe(typeof e=="function"?"<function>":"???",t)}function $(e,t){return ot(e,t,new WeakSet)}function An(e,t){return Cn(e,t,new WeakSet)}var U=" ";function nt(e){return e.indexOf(`
15
+ `)>=0}function it(e,t=U){return nt(e)?e.split(`
16
16
  `).map(n=>`${t}${n}`).join(`
17
- `):`${t}${e}`}var Li=/'/g;function U(e){return typeof e=="string"?"'"+e.replace(Li,"\\'")+"'":JSON.stringify(e)}function Re(e,t=[]){let n=[];if(e.type==="array"){let a=e.items,i=0;for(let s of a)for(let l of Re(s,[...t,i++]))n.push(l)}else if(e.type==="object"){let a=e.fields;for(let[i,s]of a)for(let l of Re(s,[...t,i]))n.push(l)}let r=e.text;if(!r)return n;let o;return t.length===0?o="":t.length===1?o=typeof t[0]=="number"?`Value at index ${t[0]}: `:`Value at key ${U(t[0])}: `:o=`Value at keypath ${U(t.map(String).join("."))}: `,[...n,`${o}${r}`]}function Fi(e,t=80){let n=JSON.stringify(e);if(n.length<=t)return n;let r=`${e.substring(0,t-15)}...`;return n=`${JSON.stringify(r)} [truncated]`,n}function Di(e,t){let{items:n}=e;if(n.length===0)return"[]";let r=[];for(let o of n){let[a,i]=at(o,`${t}${$}`);r.push(`${t}${$}${a},`),i!==void 0&&r.push(it(i,`${t}${$}`))}return["[",...r,`${t}]`].join(`
18
- `)}function ji(e,t){let{fields:n}=e;if(n.size===0)return"{}";let r=[];for(let[o,a]of n){let i=On(o),s=`${t}${$}${" ".repeat(i.length+2)}`,[l,f]=at(a,`${t}${$}`);r.push(`${t}${$}${i}: ${l},`),f!==void 0&&r.push(it(f,s))}return["{",...r,`${t}}`].join(`
19
- `)}function On(e){return typeof e=="string"?Fi(e):typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"?e.toString():e===null?"null":e===void 0?"undefined":Sn(e)?`new Date(${U(e.toISOString())})`:e instanceof Date?"(Invalid Date)":"(unserializable)"}function at(e,t=""){let n;e.type==="array"?n=Di(e,t):e.type==="object"?n=ji(e,t):e.type==="scalar"?n=On(e.value):n=e.value;let r=e.text;if(r!==void 0){let o="^".repeat(nt(n)?1:n.length);return[n,[o,r].join(nt(r)?`
20
- `:" ")]}else return[n,void 0]}function Vi(e){let[t,n]=at(e);return n!==void 0?`${t}
21
- ${n}`:t}function Gi(e){return Re(e,[]).join(`
22
- `)}function kn(e){return{ok:!0,value:e,error:void 0}}function Tn(e){return{ok:!1,value:void 0,error:e}}function Wi(e){return t=>{try{let n=e(t);return kn(n)}catch(n){return Tn(W(t,n instanceof Error?n.message:String(n)))}}}function $i(e,t){let n=t(e);if(typeof n=="string"){let r=new Error(`
23
- ${n}`);return r.name="Decoding error",r}else return n}function I(e){function t(c){return e(c,kn,u=>Tn(xn(u)?u:W(c,u)))}function n(c,u=Vi){let m=t(c);if(m.ok)return m.value;throw $i(m.error,u)}function r(c){return t(c).value}function o(c){return i(Wi(c))}function a(c,u){return l(m=>c(m)?null:u)}function i(c){return I((u,m,g)=>{let d=t(u);if(!d.ok)return d;let p=vn(c)?c:c(d.value,m,g);return vn(p)?p.decode(d.value):p})}function s(c){return i(c)}function l(c){return i((u,m,g)=>{let d=c(u);return d===null?m(u):g(typeof d=="string"?W(u,d):d)})}function f(c){return I((u,m,g)=>{let d=t(u);return d.ok?d:g(W(d.error,c))})}return Ui({verify:n,value:r,decode:t,transform:o,refine:a,reject:l,describe:f,then:i,pipe:s})}var Nn=new WeakSet;function Ui(e){return Nn.add(e),e}function vn(e){return Nn.has(e)}var Zi=I((e,t,n)=>Array.isArray(e)?t(e):n("Must be an array"));function Hi(e,t,n,r){let o=[];for(let a=0;a<e.length;++a){let i=e[a];if(i.ok)o.push(i.value);else{let s=i.error,l=t.slice();return l.splice(a,1,W(s,s.text?`${s.text} (at index ${a})`:`index ${a}`)),r(W(l))}}return n(o)}function st(e){let t=e.decode;return Zi.then((n,r,o)=>{let a=n.map(t);return Hi(a,n,r,o)})}function Yi(e){return I((t,n,r)=>t instanceof e?n(t):r(`Must be ${e.name} instance`))}function Mn(e){return I(t=>e().decode(t))}function zi(e,t){let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}var Ln=I((e,t,n)=>Rn(e)?t(e):n("Must be an object"));function J(e){let t=new Set(Object.keys(e));return Ln.then((n,r,o)=>{let a=new Set(Object.keys(n)),i=zi(t,a),s={},l=null;for(let f of Object.keys(e)){let c=e[f],u=n[f],m=c.decode(u);if(m.ok){let g=m.value;g!==void 0&&(s[f]=g),i.delete(f)}else{let g=m.error;u===void 0?i.add(f):(l===null&&(l=new Map),l.set(f,g))}}if(l||i.size>0){let f=An(n);if(l&&(f=In(f,l)),i.size>0){let c=Array.from(i).map(U).join(", "),u=i.size>1?"keys":"key";f=_n(f,`Missing ${u}: ${c}`)}return o(f)}return r(s)})}var rt=`Either:
24
- `;function Bi(e){return`-${it(e).substring(1)}`}function Ji(e){return e.startsWith(rt)?e.substring(rt.length):Bi(e)}function ie(...e){if(e.length===0)throw new Error("Pass at least one decoder to either()");return I((t,n,r)=>{let o=[];for(let i=0;i<e.length;i++){let s=e[i].decode(t);if(s.ok)return s;o.push(s.error)}let a=rt+o.map(i=>Ji(Re(i).join(`
17
+ `):`${t}${e}`}var Fi=/'/g;function Z(e){return typeof e=="string"?"'"+e.replace(Fi,"\\'")+"'":JSON.stringify(e)}function Ee(e,t=[]){let n=[];if(e.type==="array"){let a=e.items,i=0;for(let s of a)for(let l of Ee(s,[...t,i++]))n.push(l)}else if(e.type==="object"){let a=e.fields;for(let[i,s]of a)for(let l of Ee(s,[...t,i]))n.push(l)}let r=e.text;if(!r)return n;let o;return t.length===0?o="":t.length===1?o=typeof t[0]=="number"?`Value at index ${t[0]}: `:`Value at key ${Z(t[0])}: `:o=`Value at keypath ${Z(t.map(String).join("."))}: `,[...n,`${o}${r}`]}function Di(e,t=80){let n=JSON.stringify(e);if(n.length<=t)return n;let r=`${e.substring(0,t-15)}...`;return n=`${JSON.stringify(r)} [truncated]`,n}function ji(e,t){let{items:n}=e;if(n.length===0)return"[]";let r=[];for(let o of n){let[a,i]=at(o,`${t}${U}`);r.push(`${t}${U}${a},`),i!==void 0&&r.push(it(i,`${t}${U}`))}return["[",...r,`${t}]`].join(`
18
+ `)}function Vi(e,t){let{fields:n}=e;if(n.size===0)return"{}";let r=[];for(let[o,a]of n){let i=On(o),s=`${t}${U}${" ".repeat(i.length+2)}`,[l,f]=at(a,`${t}${U}`);r.push(`${t}${U}${i}: ${l},`),f!==void 0&&r.push(it(f,s))}return["{",...r,`${t}}`].join(`
19
+ `)}function On(e){return typeof e=="string"?Di(e):typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"?e.toString():e===null?"null":e===void 0?"undefined":Sn(e)?`new Date(${Z(e.toISOString())})`:e instanceof Date?"(Invalid Date)":"(unserializable)"}function at(e,t=""){let n;e.type==="array"?n=ji(e,t):e.type==="object"?n=Vi(e,t):e.type==="scalar"?n=On(e.value):n=e.value;let r=e.text;if(r!==void 0){let o="^".repeat(nt(n)?1:n.length);return[n,[o,r].join(nt(r)?`
20
+ `:" ")]}else return[n,void 0]}function Gi(e){let[t,n]=at(e);return n!==void 0?`${t}
21
+ ${n}`:t}function Wi(e){return Ee(e,[]).join(`
22
+ `)}function kn(e){return{ok:!0,value:e,error:void 0}}function Tn(e){return{ok:!1,value:void 0,error:e}}function $i(e){return t=>{try{let n=e(t);return kn(n)}catch(n){return Tn($(t,n instanceof Error?n.message:String(n)))}}}function Ui(e,t){let n=t(e);if(typeof n=="string"){let r=new Error(`
23
+ ${n}`);return r.name="Decoding error",r}else return n}function _(e){function t(c){return e(c,kn,u=>Tn(xn(u)?u:$(c,u)))}function n(c,u=Gi){let p=t(c);if(p.ok)return p.value;throw Ui(p.error,u)}function r(c){return t(c).value}function o(c){return i($i(c))}function a(c,u){return l(p=>c(p)?null:u)}function i(c){return _((u,p,g)=>{let m=t(u);if(!m.ok)return m;let d=vn(c)?c:c(m.value,p,g);return vn(d)?d.decode(m.value):d})}function s(c){return i(c)}function l(c){return i((u,p,g)=>{let m=c(u);return m===null?p(u):g(typeof m=="string"?$(u,m):m)})}function f(c){return _((u,p,g)=>{let m=t(u);return m.ok?m:g($(m.error,c))})}return Zi({verify:n,value:r,decode:t,transform:o,refine:a,reject:l,describe:f,then:i,pipe:s})}var Nn=new WeakSet;function Zi(e){return Nn.add(e),e}function vn(e){return Nn.has(e)}var Hi=_((e,t,n)=>Array.isArray(e)?t(e):n("Must be an array"));function Yi(e,t,n,r){let o=[];for(let a=0;a<e.length;++a){let i=e[a];if(i.ok)o.push(i.value);else{let s=i.error,l=t.slice();return l.splice(a,1,$(s,s.text?`${s.text} (at index ${a})`:`index ${a}`)),r($(l))}}return n(o)}function st(e){let t=e.decode;return Hi.then((n,r,o)=>{let a=n.map(t);return Yi(a,n,r,o)})}function zi(e){return _((t,n,r)=>t instanceof e?n(t):r(`Must be ${e.name} instance`))}function Mn(e){return _(t=>e().decode(t))}function Bi(e,t){let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}var Ln=_((e,t,n)=>Rn(e)?t(e):n("Must be an object"));function K(e){let t=new Set(Object.keys(e));return Ln.then((n,r,o)=>{let a=new Set(Object.keys(n)),i=Bi(t,a),s={},l=null;for(let f of Object.keys(e)){let c=e[f],u=n[f],p=c.decode(u);if(p.ok){let g=p.value;g!==void 0&&(s[f]=g),i.delete(f)}else{let g=p.error;u===void 0?i.add(f):(l===null&&(l=new Map),l.set(f,g))}}if(l||i.size>0){let f=An(n);if(l&&(f=In(f,l)),i.size>0){let c=Array.from(i).map(Z).join(", "),u=i.size>1?"keys":"key";f=_n(f,`Missing ${u}: ${c}`)}return o(f)}return r(s)})}var rt=`Either:
24
+ `;function Xi(e){return`-${it(e).substring(1)}`}function Ji(e){return e.startsWith(rt)?e.substring(rt.length):Xi(e)}function ae(...e){if(e.length===0)throw new Error("Pass at least one decoder to either()");return _((t,n,r)=>{let o=[];for(let i=0;i<e.length;i++){let s=e[i].decode(t);if(s.ok)return s;o.push(s.error)}let a=rt+o.map(i=>Ji(Ee(i).join(`
25
25
  `))).join(`
26
- `);return r(a)})}function Fn(e){return I((t,n,r)=>{let o=e.find(a=>a===t);return o!==void 0?n(o):r(`Must be one of ${e.map(a=>U(a)).join(", ")}`)})}function Dn(e){return typeof e=="function"?e():e}var Xi=jn(null),Ki=jn(void 0),qi=I((e,t,n)=>e==null?t(e):n("Must be undefined or null"));function Pe(e,t){let n=ie(Ki,e);return arguments.length>=2?n.transform(r=>r!=null?r:Dn(t)):n}function ct(e,t){let n=ie(qi,e);return arguments.length>=2?n.transform(r=>r!=null?r:Dn(t)):n}function jn(e){return I((t,n,r)=>t===e?n(e):r(`Must be ${typeof e=="symbol"?String(e):U(e)}`))}var Ba=I((e,t,n)=>t(e));var ae=I((e,t,n)=>typeof e=="boolean"?t(e):n("Must be boolean")),Ja=I((e,t,n)=>t(!!e));function Qi(e,t){let n=t!==void 0?e:void 0,r=t!==void 0?t:e;return Ln.then((o,a,i)=>{var f;let s={},l=new Map;for(let c of Object.keys(o)){let u=o[c],m=n==null?void 0:n.decode(c);if((m==null?void 0:m.ok)===!1)return i(W(o,`Invalid key ${U(c)}: ${Gi(m.error)}`));let g=(f=m==null?void 0:m.value)!=null?f:c,d=r.decode(u);d.ok?l.size===0&&(s[g]=d.value):(l.set(c,d.error),s={})}return l.size>0?i(In(An(o),l)):a(s)})}var ea=/^([A-Za-z]{3,9}(?:[+][A-Za-z]{3,9})?):\/\/(?:([-;:&=+$,\w]+)@)?(?:([A-Za-z0-9.-]+)(?::([0-9]{2,5}))?)(\/(?:[-+~%/.,\w]*)?(?:\?[-+=&;%@.,/\w]*)?(?:#[.,!/\w]*)?)?$/,Vn=I((e,t,n)=>Oi(e)?t(e):n("Must be string")),j=V(/\S/,"Must be non-empty string");function V(e,t){return Vn.refine(n=>e.test(n),t)}var Xa=V(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"Must be email"),ta=ie(V(ea,"Must be URL").transform(e=>new URL(e)),Yi(URL)),Ka=ta.refine(e=>e.protocol==="https:","Must be an HTTPS URL"),qa=V(/^[a-z_][a-z0-9_]*$/i,"Must be valid identifier");var Gn=V(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,"Must be uuid"),Qa=Gn.refine(e=>e[14]==="1","Must be uuidv1"),es=Gn.refine(e=>e[14]==="4","Must be uuidv4"),na=V(/^[0-9]+$/,"Must only contain digits"),ts=V(/^[0-9a-f]+$/i,"Must only contain hexadecimal digits"),ns=na.transform(Number),ra=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:[.]\d+)?(?:Z|[+-]\d{2}:?\d{2})$/,oa=I((e,t,n)=>Sn(e)?t(e):n("Must be a Date")),ia=V(ra,"Must be ISO8601 format").transform(e=>{let t=new Date(e);if(isNaN(t.getTime()))throw new Error("Must be valid date/time value");return t}),rs=ie(oa,ia).describe("Must be a Date or date string"),aa=I((e,t,n)=>Ai(e)?t(e):n("Must be number")),se=aa.refine(e=>Number.isFinite(e),"Number must be finite"),sa=se.refine(e=>Number.isInteger(e),"Number must be an integer"),Wn=se.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),os=sa.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),is=I((e,t,n)=>ki(e)?t(e):n("Must be bigint")),ca=Mn(()=>Qi($n)),ua=Mn(()=>st($n)),$n=ie(Xi,Vn,se,ae,ca,ua).describe("Must be valid JSON value");var Ee=3,Un=500,Hn={prod:"https://public-config.stitch.money",staging:"https://public-config-staging.stitch.money",preprod:"https://public-config-pre-prod.stitch.money"},la=Fn(["visa","mastercard","amex"]),_e=ct(J({allowedNetworks:ct(st(la))})),fa=J({analytics:J({changeEventDebounceDelayMs:Wn}),evervault:J({teamId:j,appId:j}),ipAddress:Pe(j),ipAddressProof:Pe(j),fingerprint:J({disabled:ae,useEmulation:ae,ossEnabled:Pe(ae),publicKey:j,endpoint:j,scriptUrlPattern:j,cacheDurationInSeconds:se}),card:_e,applePay:_e,googlePay:_e,samsungPay:_e});function Zn(e){return e!=null&&typeof e=="object"&&"aborted"in e&&"addEventListener"in e}function da(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Hn,e)}function pa(e){let t=da(e==null?void 0:e.environment)?e.environment:"prod";return Hn[t]}function ma(e,t){return`${pa(t)}/config/${e}`}function ce(e,t,n){return h(this,null,function*(){let r=Zn(t)?t:void 0,o=Zn(t)?n:t,a=ma(e,o);try{let i=0;for(;i<Ee;)try{let s=yield fetch(a,{signal:r});if(s.ok)return{type:"success",runtimeConfig:fa.verify(yield s.json())};if(i++,i===Ee)return{type:"error",error:new Error(`[${ce.name}] Failed to retrieve runtime config after ${Ee} attempts. Runtime config endpoint returned ${s.status} response`)};yield new Promise(l=>setTimeout(l,Un))}catch(s){if(i++,i===Ee)throw s;yield new Promise(l=>setTimeout(l,Un))}return{type:"error",error:new Error(`[${ce.name}] Failed to retrieve runtime config`)}}catch(i){return i instanceof Error?{type:"error",error:i}:typeof i=="string"?{type:"error",error:new Error(i)}:{type:"error",error:new Error(`[${ce.name}] Failed to retrieve runtime config. Unknown error thrown`)}}})}import{v4 as ha}from"uuid";var ga="9ba67dd8d5b247cfb3f76e";function Ie(e){return{version:"2",serviceId:ga,protocol:"PROTOCOL_3DS",allowedBrands:q(e==null?void 0:e.samsungPay).map(t=>ht(t))}}function Yn(e){return{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["CRYPTOGRAM_3DS"],allowedCardNetworks:q(e==null?void 0:e.googlePay).map(t=>yt(t))}}]}}function zn(e){return h(this,null,function*(){if(!window.ApplePaySession)return!1;let t=ApplePaySession;if(t.applePayCapabilities&&e)try{return(yield t.applePayCapabilities(e)).paymentCredentialStatus!=="applePayUnsupported"}catch(n){E("[determineApplePaySupport] failed to get applePayCapabilities, falling back to canMakePayments",n,{merchantIdentifier:e})}return t.canMakePayments()})}function Bn(){if(!window.ApplePaySession)return-1;let t=n=>n===0?-1:ApplePaySession.supportsVersion(n)?n:t(n-1);return t(14)}function Jn(e,t){return h(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(Yn(t))).result}catch(n){return!1}})}function Xn(e,t){return h(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(Ie(t))).result}catch(n){return!1}})}var M=class extends Error{constructor(t){super(t),this.name="SessionError"}};var ue=e=>e instanceof Error?e.toString():JSON.stringify(e);var ut="3.13.0";var ba="[onvalidatemerchant]",Kn="[onpaymentauthorized]",X="[onClickSamsungPaySessionHandler]",lt="[onClickGooglePaySessionHandler]",qn=class{constructor(t){O(this,"onCancelPayment");O(this,"clientId");O(this,"gatewayMerchantId");O(this,"runtimeConfigEnvironment");O(this,"applePayIsSupported",!1);O(this,"samsungPayIsSupported",!1);O(this,"googlePayIsSupported",!1);O(this,"runtimeConfig");O(this,"fingerprintAgent");O(this,"googlePayClient");O(this,"samsungPayClient");var s,l,f;Ve({source:"wallets-client",version:ut});let{onCancelPayment:n,clientId:r,gatewayMerchantId:o,runtimeConfigEnvironment:a}=t,i=(f=(l=(s=globalThis.google)==null?void 0:s.payments)==null?void 0:l.api)==null?void 0:f.PaymentsClient;this.googlePayClient=i?new i({environment:r!=null&&r.startsWith("test-")?"TEST":"PRODUCTION"}):void 0,this.samsungPayClient=window.SamsungPay?new window.SamsungPay.PaymentClient({environment:r!=null&&r.startsWith("test-")?"STAGE":"PRODUCTION",nonce:ha()}):void 0,this.onCancelPayment=n!=null?n:()=>{},this.clientId=r,this.gatewayMerchantId=o,this.runtimeConfigEnvironment=a,this.loadFingerprintAgent()}loadRuntimeConfig(){return h(this,null,function*(){var t,n;if(this.runtimeConfig===void 0&&this.clientId){let r=yield ce(this.clientId,{environment:this.runtimeConfigEnvironment});if(r.type==="error"){let o=(n=(t=r.error)==null?void 0:t.message)!=null?n:"Failed to load runtime configuration";throw E(o,r.error,{clientId:this.clientId}),r.error?r.error:new Error(o)}this.runtimeConfig=r.runtimeConfig}})}loadFingerprintAgent(){return h(this,null,function*(){this.fingerprintAgent===void 0&&(this.runtimeConfig===void 0&&(yield this.loadRuntimeConfig()),this.runtimeConfig!==void 0&&!this.runtimeConfig.fingerprint.disabled&&(this.fingerprintAgent=yield bn({config:this.runtimeConfig.fingerprint})))})}fingerprint(){return h(this,null,function*(){var n,r,o;let t=yield wn({config:(n=this.runtimeConfig)==null?void 0:n.fingerprint,agent:this.fingerprintAgent,clientId:this.clientId,sdkVersion:ut,ipAddress:(r=this.runtimeConfig)==null?void 0:r.ipAddress,ipAddressProof:(o=this.runtimeConfig)==null?void 0:o.ipAddressProof});return Ve({fingerprint:t}),t})}supportedPaymentMethods(){return h(this,null,function*(){let t=[];try{yield this.loadRuntimeConfig()}catch(n){}return this.applePayIsSupported=yield zn(this.gatewayMerchantId),this.applePayIsSupported&&t.push("APPLE_PAY"),this.samsungPayIsSupported=yield Xn(this.samsungPayClient,this.runtimeConfig),this.samsungPayIsSupported&&t.push("SAMSUNG_PAY"),this.googlePayIsSupported=yield Jn(this.googlePayClient,this.runtimeConfig),this.googlePayIsSupported&&t.push("GOOGLE_PAY"),t})}onClickApplePaySessionHandler(t,n,r,o,a,i){let s=Bn();return()=>{var u,m,g;let l=q((u=this.runtimeConfig)==null?void 0:u.applePay).map(d=>gt(d)),f={countryCode:"ZA",currencyCode:t,supportedNetworks:l,merchantCapabilities:["supports3DS"],total:{label:r,amount:n.toString()}};i&&(f.recurringPaymentRequest={paymentDescription:r,billingAgreement:i.billingAgreement,regularBilling:{label:r,amount:((m=i.recurringAmount)!=null?m:n).toString(),paymentTiming:"recurring",recurringPaymentIntervalUnit:i.recurringIntervalUnit,recurringPaymentIntervalCount:(g=i.recurringIntervalCount)!=null?g:1},managementURL:i.managementUrl});let c;try{c=new ApplePaySession(s,f)}catch(d){E("Failed to create Apple Pay session",d,{clientId:this.clientId});return}c.onvalidatemerchant=d=>h(this,null,function*(){try{let p=yield o(d.validationURL);if(!c)throw new Error("ApplePaySession is missing");if(p==null||typeof p!="object")throw new Error(`verifyCallbackResponse is not an object: ${JSON.stringify(p)}`);if(Object.keys(p).length===0)throw new Error(`verifyCallbackResponse is an empty object: ${JSON.stringify(p)}`);c.completeMerchantValidation(p)}catch(p){throw E(`${ba} Failed to complete merchant validation`,p,{clientId:this.clientId}),new M(`Failed to complete merchant validation: ${ue(p)}`)}}),c.onpaymentauthorized=d=>h(this,null,function*(){try{let p=d.payment.token,y=yield this.fingerprint(),b=yield a(p,y);switch(b.status){case"TransactionPending":case"TransactionSuccess":{c==null||c.completePayment(ApplePaySession.STATUS_SUCCESS);break}case"TransactionFailure":{c==null||c.completePayment(ApplePaySession.STATUS_FAILURE);break}default:{let P="Invalid transaction status",x=new M(`${P} ${b.status}`);throw E(`${Kn} Invalid transaction status`,x,{clientId:this.clientId}),x}}}catch(p){throw c==null||c.completePayment(ApplePaySession.STATUS_FAILURE),E(`${Kn} Failed to create payment`,p,{clientId:this.clientId}),new M(`Failed to create payment: ${ue(p)}`)}}),c.oncancel=()=>{this.onCancelPayment()},c.begin()}}onClickSamsungPaySessionHandler(t,n,r,o,a,i,s){return()=>h(this,null,function*(){if(!this.samsungPayClient){let l="Samsung Pay client not initialized",f=new Error(l);throw E(`${X} ${l}`,f,{clientId:this.clientId}),f}try{let l={orderNumber:o,merchant:{name:r,url:a,id:i,countryCode:"ZA"},amount:{option:"FORMAT_TOTAL_PRICE_ONLY",currency:t,total:n}},f=yield this.fingerprint(),c=Ie(this.runtimeConfig);Ge(`${X} Loading payment sheet`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentMethods:c,transactionDetail:l}});let u=yield this.samsungPayClient.loadPaymentSheet(c,l);Ge(`${X} Received payment credential`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentCredential:u}});let m=yield s(u,f);switch(m.status){case"TransactionPending":break;case"TransactionFailure":{this.samsungPayClient.notify({status:"REJECTED"});break}case"TransactionSuccess":{this.samsungPayClient.notify({status:"CHARGED"});break}default:{this.samsungPayClient.notify({status:"ERRED"});let g=`${X} Invalid transaction status: ${m.status}`,d=new M(g);throw E(g,d,{clientId:this.clientId,type:"SAMSUNG_PAY"}),d}}}catch(l){throw E(`${X} Failed to create payment`,l,{clientId:this.clientId,type:"SAMSUNG_PAY"}),new M(`${X} Failed to create payment: ${ue(l)}`)}})}onClickGooglePaySessionHandler(t){return n=>h(this,null,function*(){try{let r=yield this.fingerprint(),o=yield t(n.paymentMethodData.tokenizationData.token,r);switch(o.status){case"TransactionPending":case"TransactionFailure":case"TransactionSuccess":break;default:{let a=`${lt} Invalid transaction status: ${o.status}`,i=new M(a);throw E(a,i,{clientId:this.clientId}),i}}}catch(r){throw E(`${lt} Failed to create payment`,r,{clientId:this.clientId}),new M(`${lt} Failed to create payment: ${ue(r)}`)}})}};export{qn as StitchWalletClientSdk,mt as WalletType};
26
+ `);return r(a)})}function Fn(e){return _((t,n,r)=>{let o=e.find(a=>a===t);return o!==void 0?n(o):r(`Must be one of ${e.map(a=>Z(a)).join(", ")}`)})}function Dn(e){return typeof e=="function"?e():e}var Ki=jn(null),qi=jn(void 0),Qi=_((e,t,n)=>e==null?t(e):n("Must be undefined or null"));function se(e,t){let n=ae(qi,e);return arguments.length>=2?n.transform(r=>r!=null?r:Dn(t)):n}function ct(e,t){let n=ae(Qi,e);return arguments.length>=2?n.transform(r=>r!=null?r:Dn(t)):n}function jn(e){return _((t,n,r)=>t===e?n(e):r(`Must be ${typeof e=="symbol"?String(e):Z(e)}`))}var Xa=_((e,t,n)=>t(e));var ce=_((e,t,n)=>typeof e=="boolean"?t(e):n("Must be boolean")),Ja=_((e,t,n)=>t(!!e));function ea(e,t){let n=t!==void 0?e:void 0,r=t!==void 0?t:e;return Ln.then((o,a,i)=>{var f;let s={},l=new Map;for(let c of Object.keys(o)){let u=o[c],p=n==null?void 0:n.decode(c);if((p==null?void 0:p.ok)===!1)return i($(o,`Invalid key ${Z(c)}: ${Wi(p.error)}`));let g=(f=p==null?void 0:p.value)!=null?f:c,m=r.decode(u);m.ok?l.size===0&&(s[g]=m.value):(l.set(c,m.error),s={})}return l.size>0?i(In(An(o),l)):a(s)})}var ta=/^([A-Za-z]{3,9}(?:[+][A-Za-z]{3,9})?):\/\/(?:([-;:&=+$,\w]+)@)?(?:([A-Za-z0-9.-]+)(?::([0-9]{2,5}))?)(\/(?:[-+~%/.,\w]*)?(?:\?[-+=&;%@.,/\w]*)?(?:#[.,!/\w]*)?)?$/,Vn=_((e,t,n)=>ki(e)?t(e):n("Must be string")),j=G(/\S/,"Must be non-empty string");function G(e,t){return Vn.refine(n=>e.test(n),t)}var Ka=G(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"Must be email"),na=ae(G(ta,"Must be URL").transform(e=>new URL(e)),zi(URL)),qa=na.refine(e=>e.protocol==="https:","Must be an HTTPS URL"),Qa=G(/^[a-z_][a-z0-9_]*$/i,"Must be valid identifier");var Gn=G(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,"Must be uuid"),es=Gn.refine(e=>e[14]==="1","Must be uuidv1"),ts=Gn.refine(e=>e[14]==="4","Must be uuidv4"),ra=G(/^[0-9]+$/,"Must only contain digits"),ns=G(/^[0-9a-f]+$/i,"Must only contain hexadecimal digits"),rs=ra.transform(Number),oa=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:[.]\d+)?(?:Z|[+-]\d{2}:?\d{2})$/,ia=_((e,t,n)=>Sn(e)?t(e):n("Must be a Date")),aa=G(oa,"Must be ISO8601 format").transform(e=>{let t=new Date(e);if(isNaN(t.getTime()))throw new Error("Must be valid date/time value");return t}),os=ae(ia,aa).describe("Must be a Date or date string"),sa=_((e,t,n)=>Oi(e)?t(e):n("Must be number")),ue=sa.refine(e=>Number.isFinite(e),"Number must be finite"),ca=ue.refine(e=>Number.isInteger(e),"Number must be an integer"),Wn=ue.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),is=ca.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),as=_((e,t,n)=>Ti(e)?t(e):n("Must be bigint")),ua=Mn(()=>ea($n)),la=Mn(()=>st($n)),$n=ae(Ki,Vn,ue,ce,ua,la).describe("Must be valid JSON value");var _e=3,Un=500,Hn={prod:"https://public-config.stitch.money",staging:"https://public-config-staging.stitch.money",preprod:"https://public-config-pre-prod.stitch.money"},fa=Fn(["visa","mastercard","amex"]),Ie=ct(K({allowedNetworks:ct(st(fa))})),da=K({analytics:K({changeEventDebounceDelayMs:Wn}),evervault:K({teamId:j,appId:j}),ipAddress:se(j),ipAddressProof:se(j),fingerprintContext:se(j),fingerprint:K({disabled:ce,useEmulation:ce,ossEnabled:se(ce),publicKey:j,endpoint:j,scriptUrlPattern:j,cacheDurationInSeconds:ue}),card:Ie,applePay:Ie,googlePay:Ie,samsungPay:Ie});function Zn(e){return e!=null&&typeof e=="object"&&"aborted"in e&&"addEventListener"in e}function pa(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Hn,e)}function ma(e){let t=pa(e==null?void 0:e.environment)?e.environment:"prod";return Hn[t]}function ga(e,t){return`${ma(t)}/config/${e}`}function le(e,t,n){return b(this,null,function*(){let r=Zn(t)?t:void 0,o=Zn(t)?n:t,a=ga(e,o);try{let i=0;for(;i<_e;)try{let s=yield fetch(a,{signal:r});if(s.ok)return{type:"success",runtimeConfig:da.verify(yield s.json())};if(i++,i===_e)return{type:"error",error:new Error(`[${le.name}] Failed to retrieve runtime config after ${_e} attempts. Runtime config endpoint returned ${s.status} response`)};yield new Promise(l=>setTimeout(l,Un))}catch(s){if(i++,i===_e)throw s;yield new Promise(l=>setTimeout(l,Un))}return{type:"error",error:new Error(`[${le.name}] Failed to retrieve runtime config`)}}catch(i){return i instanceof Error?{type:"error",error:i}:typeof i=="string"?{type:"error",error:new Error(i)}:{type:"error",error:new Error(`[${le.name}] Failed to retrieve runtime config. Unknown error thrown`)}}})}import{v4 as ba}from"uuid";var ya="9ba67dd8d5b247cfb3f76e";function xe(e){return{version:"2",serviceId:ya,protocol:"PROTOCOL_3DS",allowedBrands:ee(e==null?void 0:e.samsungPay).map(t=>ht(t))}}function Yn(e){return{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["CRYPTOGRAM_3DS"],allowedCardNetworks:ee(e==null?void 0:e.googlePay).map(t=>yt(t))}}]}}function zn(e){return b(this,null,function*(){if(!window.ApplePaySession)return!1;let t=ApplePaySession;if(t.applePayCapabilities&&e)try{return(yield t.applePayCapabilities(e)).paymentCredentialStatus!=="applePayUnsupported"}catch(n){P("[determineApplePaySupport] failed to get applePayCapabilities, falling back to canMakePayments",n,{merchantIdentifier:e})}return t.canMakePayments()})}function Bn(){if(!window.ApplePaySession)return-1;let t=n=>n===0?-1:ApplePaySession.supportsVersion(n)?n:t(n-1);return t(14)}function Xn(e,t){return b(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(Yn(t))).result}catch(n){return!1}})}function Jn(e,t){return b(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(xe(t))).result}catch(n){return!1}})}var L=class extends Error{constructor(t){super(t),this.name="SessionError"}};var fe=e=>e instanceof Error?e.toString():JSON.stringify(e);var ut="3.14.0";var wa="[onvalidatemerchant]",Kn="[onpaymentauthorized]",q="[onClickSamsungPaySessionHandler]",lt="[onClickGooglePaySessionHandler]",qn=class{constructor(t){k(this,"onCancelPayment");k(this,"clientId");k(this,"gatewayMerchantId");k(this,"runtimeConfigEnvironment");k(this,"applePayIsSupported",!1);k(this,"samsungPayIsSupported",!1);k(this,"googlePayIsSupported",!1);k(this,"runtimeConfig");k(this,"fingerprintAgent");k(this,"googlePayClient");k(this,"samsungPayClient");var s,l,f;Ve({source:"wallets-client",version:ut});let{onCancelPayment:n,clientId:r,gatewayMerchantId:o,runtimeConfigEnvironment:a}=t,i=(f=(l=(s=globalThis.google)==null?void 0:s.payments)==null?void 0:l.api)==null?void 0:f.PaymentsClient;this.googlePayClient=i?new i({environment:r!=null&&r.startsWith("test-")?"TEST":"PRODUCTION"}):void 0,this.samsungPayClient=window.SamsungPay?new window.SamsungPay.PaymentClient({environment:r!=null&&r.startsWith("test-")?"STAGE":"PRODUCTION",nonce:ba()}):void 0,this.onCancelPayment=n!=null?n:()=>{},this.clientId=r,this.gatewayMerchantId=o,this.runtimeConfigEnvironment=a,this.loadFingerprintAgent()}loadRuntimeConfig(){return b(this,null,function*(){var t,n;if(this.runtimeConfig===void 0&&this.clientId){let r=yield le(this.clientId,{environment:this.runtimeConfigEnvironment});if(r.type==="error"){let o=(n=(t=r.error)==null?void 0:t.message)!=null?n:"Failed to load runtime configuration";throw P(o,r.error,{clientId:this.clientId}),r.error?r.error:new Error(o)}this.runtimeConfig=r.runtimeConfig}})}loadFingerprintAgent(){return b(this,null,function*(){this.fingerprintAgent===void 0&&(this.runtimeConfig===void 0&&(yield this.loadRuntimeConfig()),this.runtimeConfig!==void 0&&!this.runtimeConfig.fingerprint.disabled&&(this.fingerprintAgent=yield bn({config:this.runtimeConfig.fingerprint})))})}fingerprint(){return b(this,null,function*(){var n,r,o,a;let t=yield wn({config:(n=this.runtimeConfig)==null?void 0:n.fingerprint,agent:this.fingerprintAgent,clientId:this.clientId,sdkVersion:ut,ipAddress:(r=this.runtimeConfig)==null?void 0:r.ipAddress,ipAddressProof:(o=this.runtimeConfig)==null?void 0:o.ipAddressProof,fingerprintContext:(a=this.runtimeConfig)==null?void 0:a.fingerprintContext});return Ve({fingerprint:t}),t})}supportedPaymentMethods(){return b(this,null,function*(){let t=[];try{yield this.loadRuntimeConfig()}catch(n){}return this.applePayIsSupported=yield zn(this.gatewayMerchantId),this.applePayIsSupported&&t.push("APPLE_PAY"),this.samsungPayIsSupported=yield Jn(this.samsungPayClient,this.runtimeConfig),this.samsungPayIsSupported&&t.push("SAMSUNG_PAY"),this.googlePayIsSupported=yield Xn(this.googlePayClient,this.runtimeConfig),this.googlePayIsSupported&&t.push("GOOGLE_PAY"),t})}onClickApplePaySessionHandler(t,n,r,o,a,i){let s=Bn();return()=>{var u,p,g;let l=ee((u=this.runtimeConfig)==null?void 0:u.applePay).map(m=>gt(m)),f={countryCode:"ZA",currencyCode:t,supportedNetworks:l,merchantCapabilities:["supports3DS"],total:{label:r,amount:n.toString()}};i&&(f.recurringPaymentRequest={paymentDescription:r,billingAgreement:i.billingAgreement,regularBilling:{label:r,amount:((p=i.recurringAmount)!=null?p:n).toString(),paymentTiming:"recurring",recurringPaymentIntervalUnit:i.recurringIntervalUnit,recurringPaymentIntervalCount:(g=i.recurringIntervalCount)!=null?g:1},managementURL:i.managementUrl});let c;try{c=new ApplePaySession(s,f)}catch(m){P("Failed to create Apple Pay session",m,{clientId:this.clientId});return}c.onvalidatemerchant=m=>b(this,null,function*(){try{let d=yield o(m.validationURL);if(!c)throw new Error("ApplePaySession is missing");if(d==null||typeof d!="object")throw new Error(`verifyCallbackResponse is not an object: ${JSON.stringify(d)}`);if(Object.keys(d).length===0)throw new Error(`verifyCallbackResponse is an empty object: ${JSON.stringify(d)}`);c.completeMerchantValidation(d)}catch(d){throw P(`${wa} Failed to complete merchant validation`,d,{clientId:this.clientId}),new L(`Failed to complete merchant validation: ${fe(d)}`)}}),c.onpaymentauthorized=m=>b(this,null,function*(){try{let d=m.payment.token,y=yield this.fingerprint(),h=yield a(d,y);switch(h.status){case"TransactionPending":case"TransactionSuccess":{c==null||c.completePayment(ApplePaySession.STATUS_SUCCESS);break}case"TransactionFailure":{c==null||c.completePayment(ApplePaySession.STATUS_FAILURE);break}default:{let I="Invalid transaction status",x=new L(`${I} ${h.status}`);throw P(`${Kn} Invalid transaction status`,x,{clientId:this.clientId}),x}}}catch(d){throw c==null||c.completePayment(ApplePaySession.STATUS_FAILURE),P(`${Kn} Failed to create payment`,d,{clientId:this.clientId}),new L(`Failed to create payment: ${fe(d)}`)}}),c.oncancel=()=>{this.onCancelPayment()},c.begin()}}onClickSamsungPaySessionHandler(t,n,r,o,a,i,s){return()=>b(this,null,function*(){if(!this.samsungPayClient){let l="Samsung Pay client not initialized",f=new Error(l);throw P(`${q} ${l}`,f,{clientId:this.clientId}),f}try{let l={orderNumber:o,merchant:{name:r,url:a,id:i,countryCode:"ZA"},amount:{option:"FORMAT_TOTAL_PRICE_ONLY",currency:t,total:n}},f=yield this.fingerprint(),c=xe(this.runtimeConfig);Ge(`${q} Loading payment sheet`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentMethods:c,transactionDetail:l}});let u=yield this.samsungPayClient.loadPaymentSheet(c,l);Ge(`${q} Received payment credential`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentCredential:u}});let p=yield s(u,f);switch(p.status){case"TransactionPending":break;case"TransactionFailure":{this.samsungPayClient.notify({status:"REJECTED"});break}case"TransactionSuccess":{this.samsungPayClient.notify({status:"CHARGED"});break}default:{this.samsungPayClient.notify({status:"ERRED"});let g=`${q} Invalid transaction status: ${p.status}`,m=new L(g);throw P(g,m,{clientId:this.clientId,type:"SAMSUNG_PAY"}),m}}}catch(l){throw P(`${q} Failed to create payment`,l,{clientId:this.clientId,type:"SAMSUNG_PAY"}),new L(`${q} Failed to create payment: ${fe(l)}`)}})}onClickGooglePaySessionHandler(t){return n=>b(this,null,function*(){try{let r=yield this.fingerprint(),o=yield t(n.paymentMethodData.tokenizationData.token,r);switch(o.status){case"TransactionPending":case"TransactionFailure":case"TransactionSuccess":break;default:{let a=`${lt} Invalid transaction status: ${o.status}`,i=new L(a);throw P(a,i,{clientId:this.clientId}),i}}}catch(r){throw P(`${lt} Failed to create payment`,r,{clientId:this.clientId}),new L(`${lt} Failed to create payment: ${fe(r)}`)}})}};export{qn as StitchWalletClientSdk,mt as WalletType};
27
27
  //# sourceMappingURL=index.js.map