1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{3454:function(e,t,i){"use strict";var r,n;e.exports=(null==(r=i.g.process)?void 0:r.env)&&"object"==typeof(null==(n=i.g.process)?void 0:n.env)?i.g.process:i(7663)},6840:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return i(5635)}])},8199:function(e,t){"use strict";var i,r,n,s;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return o},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return h},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return i},isThenable:function(){return p}});let o="refresh",a="navigate",l="restore",c="server-patch",u="prefetch",d="fast-refresh",h="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(n=i||(i={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",(s=r||(r={})).fresh="fresh",s.reusable="reusable",s.expired="expired",s.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7195:function(e,t,i){"use strict";function r(e,t,i,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),i(8337),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4080:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return x}});let r=i(8754),n=i(1757),s=i(5893),o=n._(i(7294)),a=r._(i(3935)),l=r._(i(3867)),c=i(5283),u=i(6594),d=i(3945);i(3179);let h=i(1928),p=r._(i(3872)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,i,r,n,s,o){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),null==i?void 0:i.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,n=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function v(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let m=(0,o.forwardRef)((e,t)=>{let{src:i,srcSet:r,sizes:n,height:a,width:l,decoding:c,className:u,style:d,fetchPriority:h,placeholder:p,loading:f,unoptimized:m,fill:b,onLoadRef:x,onLoadingCompleteRef:_,setBlurComplete:y,setShowAltText:w,sizesInput:F,onLoad:j,onError:S,...k}=e;return(0,s.jsx)("img",{...k,...v(h),loading:f,width:l,height:a,decoding:c,"data-nimg":b?"fill":"1",className:u,style:d,sizes:n,srcSet:r,src:i,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(S&&(e.src=e.src),e.complete&&g(e,p,x,_,y,m,F))},[i,p,x,_,y,S,m,F,t]),onLoad:e=>{g(e.currentTarget,p,x,_,y,m,F)},onError:e=>{w(!0),"empty"!==p&&y(!0),S&&S(e)}})});function b(e){let{isAppRouter:t,imgAttributes:i}=e,r={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...v(i.fetchPriority)};return t&&a.default.preload?(a.default.preload(i.src,r),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...r},"__nimg-"+i.src+i.srcSet+i.sizes)})}let x=(0,o.forwardRef)((e,t)=>{let i=(0,o.useContext)(h.RouterContext),r=(0,o.useContext)(d.ImageConfigContext),n=(0,o.useMemo)(()=>{var e;let t=f||r||u.imageConfigDefault,i=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
1e-t),n=t.deviceSizes.sort((e,t)=>e-t),s=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:i,deviceSizes:n,qualities:s}},[r]),{onLoad:a,onLoadingComplete:l}=e,g=(0,o.useRef)(a);(0,o.useEffect)(()=>{g.current=a},[a]);let v=(0,o.useRef)(l);(0,o.useEffect)(()=>{v.current=l},[l]);let[x,_]=(0,o.useState)(!1),[y,w]=(0,o.useState)(!1),{props:F,meta:j}=(0,c.getImgProps)(e,{defaultLoader:p.default,imgConf:n,blurComplete:x,showAltText:y});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m,{...F,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:g,onLoadingCompleteRef:v,setBlurComplete:_,setShowAltText:w,sizesInput:e.sizes,ref:t}),j.priority?(0,s.jsx)(b,{isAppRouter:!i,imgAttributes:F}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8342:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let r=i(8754),n=i(5893),s=r._(i(7294)),o=i(6075),a=i(3955),l=i(8041),c=i(9903),u=i(5490),d=i(1928),h=i(257),p=i(4229),f=i(7195),g=i(9470),v=i(8199),m=new Set;function b(e,t,i,r,n,s){if(s||(0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let n=t+"%"+i+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(m.has(n))return;m.add(n)}(async()=>s?e.prefetch(t,n):e.prefetch(t,i,r))().catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let _=s.default.forwardRef(function(e,t){let i,r;let{href:l,as:m,children:_,prefetch:y=null,passHref:w,replace:F,shallow:j,scroll:S,locale:k,onClick:E,onMouseEnter:C,onTouchStart:R,legacyBehavior:P=!1,...I}=e;i=_,P&&("string"==typeof i||"number"==typeof i)&&(i=(0,n.jsx)("a",{children:i}));let T=s.default.useContext(d.RouterContext),A=s.default.useContext(h.AppRouterContext),M=null!=T?T:A,O=!T,z=!1!==y,L=null===y?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:D,as:q}=s.default.useMemo(()=>{if(!T){let e=x(l);return{href:e,as:m?x(m):e}}let[e,t]=(0,o.resolveHref)(T,l,!0);return{href:e,as:m?(0,o.resolveHref)(T,m):t||e}},[T,l,m]),$=s.default.useRef(D),H=s.default.useRef(q);P&&(r=s.default.Children.only(i));let N=P?r&&"object"==typeof r&&r.ref:t,[W,B,V]=(0,p.useIntersection)({rootMargin:"200px"}),U=s.default.useCallback(e=>{(H.current!==q||$.current!==D)&&(V(),H.current=q,$.current=D),W(e),N&&("function"==typeof N?N(e):"object"==typeof N&&(N.current=e))},[q,N,D,V,W]);s.default.useEffect(()=>{M&&B&&z&&b(M,D,q,{locale:k},{kind:L},O)},[q,D,B,k,z,null==T?void 0:T.locale,M,O,L]);let G={ref:U,onClick(e){P||"function"!=typeof E||E(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,i,r,n,o,l,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(i)))return;e.preventDefault();let h=()=>{let e=null==l||l;"beforePopState"in t?t[n?"replace":"push"](i,r,{shallow:o,locale:c,scroll:e}):t[n?"replace":"push"](r||i,{scroll:e})};u?s.default.startTransition(h):h()}(e,M,D,q,F,j,S,k,O)},onMouseEnter(e){P||"function"!=typeof C||C(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(z||!O)&&b(M,D,q,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:L},O)},onTouchStart:function(e){P||"function"!=typeof R||R(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(z||!O)&&b(M,D,q,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:L},O)}};if((0,c.isAbsoluteUrl)(q))G.href=q;else if(!P||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==k?k:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,f.getDomainLocale)(q,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);G.href=t||(0,g.addBasePath)((0,u.addLocale)(q,e,null==T?void 0:T.defaultLocale))}return P?s.default.cloneElement(r,G):(0,n.jsx)("a",{...I,...G,children:i})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4229:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=i(7294),n=i(4474),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l(e){let{rootRef:t,rootMargin:i,disabled:l}=e,c=l||!s,[u,d]=(0,r.useState)(!1),h=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{h.current=e},[]);return(0,r.useEffect)(()=>{if(s){if(c||u)return;let e=h.current;if(e&&e.tagName)return function(e,t,i){let{id:r,observer:n,elements:s}=function(e){let t;let i={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===i.root&&e.margin===i.margin);if(r&&(t=o.get(r)))return t;let n=new Map;return t={id:i,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=n.get(e.target),i=e.isIntersecting||e.intersectionRatio>0;t&&i&&t(i)})},e),elements:n},a.push(i),o.set(i,t),t}(i);return s.set(e,t),n.observe(e),function(){if(s.delete(e),n.unobserve(e),0===s.size){n.disconnect(),o.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:i})}else if(!u){let e=(0,n.requestIdleCallback)(()=>d(!0));return()=>(0,n.cancelIdleCallback)(e)}},[c,i,t,u,h.current]),[p,u,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5283:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),i(3179);let r=i(6630),n=i(6594);function s(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var i,a;let l,c,u,{src:d,sizes:h,unoptimized:p=!1,priority:f=!1,loading:g,className:v,quality:m,width:b,height:x,fill:_=!1,style:y,overrideSrc:w,onLoad:F,onLoadingComplete:j,placeholder:S="empty",blurDataURL:k,fetchPriority:E,decoding:C="async",layout:R,objectFit:P,objectPosition:I,lazyBoundary:T,lazyRoot:A,...M}=e,{imgConf:O,showAltText:z,blurComplete:L,defaultLoader:D}=t,q=O||n.imageConfigDefault;if("allSizes"in q)l=q;else{let e=[...q.deviceSizes,...q.imageSizes].sort((e,t)=>e-t),t=q.deviceSizes.sort((e,t)=>e-t),r=null==(i=q.qualities)?void 0:i.sort((e,t)=>e-t);l={...q,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===D)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let $=M.loader||D;delete M.loader,delete M.srcSet;let H="__next_img_default"in $;if(H){if("custom"===l.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=$;$=t=>{let{config:i,...r}=t;return e(r)}}if(R){"fill"===R&&(_=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];e&&(y={...y,...e});let t={responsive:"100vw",fill:"100vw"}[R];t&&!h&&(h=t)}let N="",W=o(b),B=o(x);if("object"==typeof(a=d)&&(s(a)||void 0!==a.src)){let e=s(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(c=e.blurWidth,u=e.blurHeight,k=k||e.blurDataURL,N=e.src,!_){if(W||B){if(W&&!B){let t=W/e.width;B=Math.round(e.height*t)}else if(!W&&B){let t=B/e.height;W=Math.round(e.width*t)}}else W=e.width,B=e.height}}let V=!f&&("lazy"===g||void 0===g);(!(d="string"==typeof d?d:N)||d.startsWith("data:")||d.startsWith("blob:"))&&(p=!0,V=!1),l.unoptimized&&(p=!0),H&&d.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(p=!0),f&&(E="high");let U=o(m),G=Object.assign(_?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:P,objectPosition:I}:{},z?{}:{color:"transparent"},y),Q=L||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:W,heightInt:B,blurWidth:c,blurHeight:u,blurDataURL:k||"",objectFit:G.objectFit})+'")':'url("'+S+'")',Z=Q?{backgroundSize:G.objectFit||"cover",backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Q}:{}
1,K=function(e){let{config:t,src:i,unoptimized:r,width:n,quality:s,sizes:o,loader:a}=e;if(r)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:c}=function(e,t,i){let{deviceSizes:r,allSizes:n}=e;if(i){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(i);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:n.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:n,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>n.find(t=>t>=e)||n[n.length-1]))],kind:"x"}}(t,n,o),u=l.length-1;return{sizes:o||"w"!==c?o:"100vw",srcSet:l.map((e,r)=>a({config:t,src:i,quality:s,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:a({config:t,src:i,quality:s,width:l[u]})}}({config:l,src:d,unoptimized:p,width:W,quality:U,sizes:h,loader:$});return{props:{...M,loading:V?"lazy":g,fetchPriority:E,width:W,height:B,decoding:C,className:v,style:{...G,...Z},sizes:K.sizes,srcSet:K.srcSet,src:w||K.src},meta:{unoptimized:p,priority:f,placeholder:S,fill:_}}}},6630:function(e,t){"use strict";function i(e){let{widthInt:t,heightInt:i,blurWidth:r,blurHeight:n,blurDataURL:s,objectFit:o}=e,a=r?40*r:t,l=n?40*n:i,c=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},6210:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return l},getImageProps:function(){return a}});let r=i(8754),n=i(5283),s=i(4080),o=r._(i(3872));function a(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let l=s.Image},3872:function(e,t){"use strict";function i(e){var t;let{config:i,src:r,width:n,quality:s}=e,o=s||(null==(t=i.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return i.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+o}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),i.__next_img_default=!0;let r=i},2914:function(e,t,i){"use strict";i.d(t,{$0H:function(){return S},A0H:function(){return C},CP_:function(){return K},DNl:function(){return O},Dli:function(){return f},EXY:function(){return Q},F9M:function(){return k},FJM:function(){return d},Fm7:function(){return a},I$:function(){return X},Iev:function(){return Z},LDL:function(){return ee},MXt:function(){return L},Mp$:function(){return c},Nh4:function(){return I},QJe:function(){return B},RPl:function(){return y},RUr:function(){return l},RiI:function(){return p},SRX:function(){return b},U41:function(){return H},XEH:function(){return A},YzZ:function(){return V},Z1Y:function(){return s},ZBn:function(){return _},_TT:function(){return M},aHS:function(){return G},bri:function(){return N},dci:function(){return w},fSQ:function(){return et},fkU:function(){return D},gJy:function(){return x},hWE:function(){return P},iNY:function(){return $},jyA:function(){return q},kUi:function(){return R},l_A:function(){return h},m17:function(){return u},nGB:function(){return j},pyd:function(){return W},qyc:function(){return g},spm:function(){return U},ssk:function(){return F},t6Z:function(){return z},tp7:function(){return Y},uYL:function(){return T},vAr:function(){return v},wXW:function(){return J},xRf:function(){return o},xng:function(){return E},xpo:function(){return n},ypE:function(){return m}});var r=i(6771);function n(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"}}]})(e)}function s(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M192 160c44.2 0 80-35.8 80-80S236.2 0 192 0s-80 35.8-80 80 35.8 80 80 80zm-53.4 248.8l25.6-32-61.5-51.2L56.8 383c-11.4 14.2-11.7 34.4-.8 49l48 64c7.9 10.5 19.9 16 32 16 8.3 0 16.8-2.6 24-8 17.7-13.2 21.2-38.3 8-56l-29.4-39.2zm142.7-83.2l-61.5 51.2 25.6 32L216 448c-13.2 17.7-9.7 42.8 8 56 7.2 5.4 15.6 8 24 8 12.2 0 24.2-5.5 32-16l48-64c10.9-14.6 10.6-34.8-.8-49l-45.9-57.4zM376.7 145c-12.7-18.1-37.6-22.4-55.7-9.8l-40.6 28.5c-52.7 37-124.2 37-176.8 0L63 135.3C44.9 122.6 20 127 7.3 145-5.4 163.1-1 188 17 200.7l40.6 28.5c17 11.9 35.4 20.9 54.4 27.9V288h160v-30.8c19-7 37.4-16 54.4-27.9l40.6-28.5c18.1-12.8 22.4-37.7 9.7-55.8z"}}]})(e)}function a(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}]})(e)}function l(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32
1-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"}}]})(e)}function c(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"}}]})(e)}function u(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"}}]})(e)}function d(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}}]})(e)}function h(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(e)}function p(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}}]})(e)}function f(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}}]})(e)}function g(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"}}]})(e)}function v(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"}}]})(e)}function m(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"}}]})(e)}function b(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.
16-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"}}]})(e)}function x(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function _(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M323.56 51.2c-20.8 19.3-39.58 39.59-56.22 59.97C240.08 73.62 206.28 35.53 168 0 69.74 91.17 0 209.96 0 281.6 0 408.85 100.29 512 224 512s224-103.15 224-230.4c0-53.27-51.98-163.14-124.44-230.4zm-19.47 340.65C282.43 407.01 255.72 416 226.86 416 154.71 416 96 368.26 96 290.75c0-38.61 24.31-72.63 72.79-130.75 6.93 7.98 98.83 125.34 98.83 125.34l58.63-66.88c4.14 6.85 7.91 13.55 11.27 19.97 27.35 52.19 15.81 118.97-33.43 153.42z"}}]})(e)}function y(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm256 32h160c17.7 0 32-14.3 32-32V320H288v160zm192-320h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40z"}}]})(e)}function w(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M639.4 433.6c-8.4-20.4-31.8-30.1-52.2-21.6l-22.1 9.2-38.7-101.9c47.9-35 64.8-100.3 34.5-152.8L474.3 16c-8-13.9-25.1-19.7-40-13.6L320 49.8 205.7 2.4c-14.9-6.2-32-.3-40 13.6L79.1 166.5C48.9 219 65.7 284.3 113.6 319.2L74.9 421.1l-22.1-9.2c-20.4-8.5-43.7 1.2-52.2 21.6-1.7 4.1.2 8.8 4.3 10.5l162.3 67.4c4.1 1.7 8.7-.2 10.4-4.3 8.4-20.4-1.2-43.8-21.6-52.3l-22.1-9.2L173.3 342c4.4.5 8.8 1.3 13.1 1.3 51.7 0 99.4-33.1 113.4-85.3l20.2-75.4 20.2 75.4c14 52.2 61.7 85.3 113.4 85.3 4.3 0 8.7-.8 13.1-1.3L506 445.6l-22.1 9.2c-20.4 8.5-30.1 31.9-21.6 52.3 1.7 4.1 6.4 6 10.4 4.3L635.1 444c4-1.7 6-6.3 4.3-10.4zM275.9 162.1l-112.1-46.5 36.5-63.4 94.5 39.2-18.9 70.7zm88.2 0l-18.9-70.7 94.5-39.2 36.5 63.4-112.1 46.5z"}}]})(e)}function F(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"}}]})(e)}function j(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.
102-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"}}]})(e)}function S(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"}}]})(e)}function k(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"}}]})(e)}function E(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"}}]})(e)}function C(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"}}]})(e)}function R(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"}}]})(e)}function P(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"}}]})(e)}function I(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"}}]})(e)}function T(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"}}]})(e)}function A(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"}}]})(e)}function M(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"}}]})(e)}function O(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"}}]})(e)}function z(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"}}]})(e)}function L(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.
1698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"}}]})(e)}function D(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"}}]})(e)}function q(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"}}]})(e)}function $(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"}}]})(e)}function H(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"}}]})(e)}function N(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"}}]})(e)}function W(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M304,320a16,16,0,1,0,16,16A16,16,0,0,0,304,320Zm32-96a16,16,0,1,0,16,16A16,16,0,0,0,336,224Zm32,64a16,16,0,1,0-16-16A16,16,0,0,0,368,288Zm-32,32a16,16,0,1,0-16-16A16,16,0,0,0,336,320Zm-32-64a16,16,0,1,0,16,16A16,16,0,0,0,304,256Zm128-32a16,16,0,1,0-16-16A16,16,0,0,0,432,224Zm-48,16a16,16,0,1,0,16-16A16,16,0,0,0,384,240Zm-16-48a16,16,0,1,0,16,16A16,16,0,0,0,368,192Zm96,32a16,16,0,1,0,16,16A16,16,0,0,0,464,224Zm32-32a16,16,0,1,0,16,16A16,16,0,0,0,496,192Zm-64,64a16,16,0,1,0,16,16A16,16,0,0,0,432,256Zm-32,32a16,16,0,1,0,16,16A16,16,0,0,0,400,288Zm-64,64a16,16,0,1,0,16,16A16,16,0,0,0,336,352Zm-32,32a16,16,0,1,0,16,16A16,16,0,0,0,304,384Zm64-64a16,16,0,1,0,16,16A16,16,0,0,0,368,320Zm21.65-218.35-11.3-11.31a16,16,0,0,0-22.63,0L350.05,96A111.19,111.19,0,0,0,272,64c-19.24,0-37.08,5.3-52.9,13.85l-10-10A121.72,121.72,0,0,0,123.44,32C55.49,31.5,0,92.91,0,160.85V464a16,16,0,0,0,16,16H48a16,16,0,0,0,16-16V158.4c0-30.15,21-58.2,51-61.93a58.38,58.38,0,0,1,48.93,16.67l10,10C165.3,138.92,160,156.76,160,176a111.23,111.23,0,0,0,32,78.05l-5.66,5.67a16,16,0,0,0,0,22.62l11.3,11.31a16,16,0,0,0,22.63,0L389.65,124.28A16,16,0,0,0,389.65,101.65Z"}}]})(e)}function B(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19
1-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"}}]})(e)}function V(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V112c0-8.8-7.2-16-16-16s-16 7.2-16 16v210.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"}}]})(e)}function U(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"}}]})(e)}function G(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}function Q(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"}}]})(e)}function Z(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M368 48c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v16c0 8.8 7.2 16 16 16h16v156.7C11.8 214.8 0 226.9 0 240c0 67.2 34.6 126.2 86.8 160.5l-21.4 70.2C59.1 491.2 74.5 512 96 512h192c21.5 0 36.9-20.8 30.6-41.3l-21.4-70.2C349.4 366.2 384 307.2 384 240c0-13.1-11.8-25.2-32-35.3V48h16zM80 72c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V72zm112 200c-77.1 0-139.6-14.3-139.6-32s62.5-32 139.6-32 139.6 14.3 139.6 32-62.5 32-139.6 32z"}}]})(e)}function K(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"}}]})(e)}function Y(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59
1-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"}}]})(e)}function J(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"}}]})(e)}function X(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"}}]})(e)}function ee(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"}}]})(e)}function et(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"}}]})(e)}},6771:function(e,t,i){"use strict";i.d(t,{w_:function(){return l}});var r=i(7294),n={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=r.createContext&&r.createContext(n),o=function(){return(o=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},a=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};function l(e){return function(t){return r.createElement(c,o({attr:o({},e.attr)},t),function e(t){return t&&t.map(function(t,i){return r.createElement(t.tag,o({key:i},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var i,n=e.attr,s=e.size,l=e.title,c=a(e,["attr","size","title"]),u=s||t.size||"1em";return t.className&&(i=t.className),e.className&&(i=(i?i+" ":"")+e.className),r.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,c,{className:i,style:o(o({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==s?r.createElement(s.Consumer,null,function(e){return t(e)}):t(n)}},5635:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return f}});var r=i(5893);i(3434);var n=i(7294);i(3659),i(8844);let s=e=>{let t=window;"function"==typeof t.gtag&&t.gtag("config","G-THMB0GKLR2",{page_path:e})};var o=i(926),a=i(1297),l=i(3079),c=i(8767),u=i(1282),d=i(7277);let h=new Set(["/","/404","/_error","/about","/contact","/services","/services/[slug]","/areas","/areas/[area]","/guides","/guides/[slug]","/plumber/[slug]","/boiler-servicing/[slug]","/privacy","/terms","/sitemap"]),p=new c.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var f=function(e){let{Component:t,pageProps:i}=e,f=(0,l.useRouter)();(0,n.useEffect)(()=>{(0,a.t)()&&((0,o.IR)(),(0,o.iM)(f.asPath));let e=e=>{(0,a.t)()&&(s(e),(0,o.iM)(e))};return f.events.on("routeChangeComplete",e),()=>{f.events.off("routeChangeComplete",e)}},[f.events]);let g="plumbing"===u.siteConfig.id&&!h.has(f.pathname);return(0,r.jsx)(c.QueryClientProvider,{client:p,children:g?(0,r.jsx)(d.ut,{}):(0,r.jsx)(t,{...i})})}},7277:function(e,t,i){"use strict";i.d(t,{SH:function(){return eO},B_:function(){return eN},yf:function(){return eH},_$:function(){return eB},jj:function(){return eW},vA:function(){return eq},u5:function(){return eK},Fr:function(){return eZ},h1:function(){return eT},ut:function(){return e6},FC:function(){return e0},r1:function(){return eU},d$:function(){return eQ},Bu:function(){return eA},yb:function(){return e5},ew:function(){return e1},AU:function(){return m},ZM:function(){return C},Y:function(){return E}});var r=i(5893),n=i(7294),s=i(9008),o=i.n(s),a=i(1163),l=i(1107),c=i(2914),u=i(1282),d=JSON.parse('{"ak":["Ealing","Chiswick","Richmond","Chelsea","Greenford","Fulham","Kensington","Acton","Islington","Camden"],"Lx":["Worcester Bosch","Vaillant","Ideal","Baxi","Glow-worm","Viessmann"],"Lu":{"emergency":{"keyword":"emergency-plumber","noun":"Emergency plumber"},"boilers-heating":{"keyword":"boiler-repair","noun":"Boiler repair"},"bathrooms":{"keyword":"bathroom-fitting","noun":"Bathroom fitting"},"drainage":{"keyword":"blocked-drains","noun":"Blocked drain clearance"},"water-heaters":{"keyword":"hot-water-repair","noun":"Hot water repair"},"general":{"keyword":"plumber","noun":"Plumber"}},"A8":["how-to-bleed-a-radiator","boiler-making-noise","stop-tap-location"]}');let h="07969 775011",p="tel:07969775011",f="https://wa.me/447969775011?text=Hi%20SureHeat%2C%20I%27d%20like%20a%20quote",g="https://formspree.io/f/your-form-id",v="https://www.checkatrade.com/trades/cdplumbingandheating829176",m=[{slug:"emergency",icon:c.EXY,title:"Emergency Plumbing",blurb:"Burst pipe? Flooded kitchen? Call our emergency line and we aim to be with you within the hour.",points:["Rapid emergency response","Leak detection & repair","Burst & frozen pipes","Honest advice on the phone"]},{slug:"boilers-heating",icon:c.ZBn,title:"Boilers & Heating",blurb:"Gas Safe registered engineers for boiler repairs, servicing and full new installations.",points:["Boiler repair & service","New boiler installs","Power flushing","Radiator fitting"]},{slug:"bathrooms",icon:c.pyd,title:"Bathroom Installation",blurb:"From a new tap to a full bathroom refit, clean, tidy work finished on time.",points:["Full bathroom fits","Showers & wet rooms","Tiling & sealing","Taps & basins"]},{slug:"drainage",icon:c.Iev,title:"Blocked Drains",blurb:"Sinks, toilets and outside drains cleared fast with no mess left behind.",points:["CCTV drain surveys","High-pressure jetting","Blocked toilets & sinks","Drain repairs"]},{slug:"water-heaters",icon:c.YzZ,title:"Hot Water & Cylinders",blurb
1:"No hot water? We repair, replace and upgrade cylinders and immersion heaters.",points:["Cylinder replacement","Immersion heaters","Unvented systems","Thermostat faults"]},{slug:"general",icon:c.LDL,title:"General Plumbing",blurb:"The everyday jobs done properly, dripping taps, running toilets, leaky valves and more.",points:["Taps & washers","Toilet repairs","Leak fixes","Appliance plumbing"]}],b=[{value:"5,000+",label:"Jobs completed"},{value:"15 yrs",label:"On the tools"},{value:"10/10",label:"Checkatrade rating"},{value:"60 min",label:"Emergency response"}],x=[{name:"Combi boiler conversion",area:"Chiswick (W4)",rating:5,text:"We are very happy with the works that Calum conducted in our flat that was in major need for renovated plumbing. Calum is very flexible and trustworthy. We have more works coming up with the bathroom so we will make sure to call him again. Thank you!"},{name:"Bathroom install & boiler repairs",area:"Uxbridge (UB8)",rating:5,text:"Callum and his team are fantastic tradesmen. We were fully informed and given great advice re fittings required. We found Callum to be extremely professional and efficient as well as being a really personable and friendly person. The works were completed to an excellent standard."},{name:"Central heating service & repair",area:"Ealing (W5)",rating:5,text:"Callum was extremely polite and professional at all times. He identified all issues needing addressing and managed to fix them in one day, so that the system was left in good order for the winter. I would definitely recommend him."},{name:"New boiler fitted",area:"Ruislip (HA4)",rating:5,text:"Excellent service from start to finish, turned up on time and job done with no fuss or mess."},{name:"Boiler service & kitchen taps",area:"West Ealing (W13)",rating:5,text:"Calum was very polite and efficient! I would highly recommend as his work was fantastic and he completed the job to the highest of standards. He was helpful, friendly and polite throughout too!"},{name:"Full bathroom fit",area:"Wandsworth (SW18)",rating:5,text:"Excellent workmanship, very reliable and would recommend them to anyone. Clean tidy and efficient! Well done guys!"}],_=[{icon:c.DNl,title:"Give us a ring",text:"Tell us whatâs going on. Weâll give honest advice and a clear idea of cost over the phone."},{icon:c.qyc,title:"We turn up on time",text:"A real time slot, not a vague all-day window. We text when weâre on the way."},{icon:c.CP_,title:"Job done right",text:"Fixed first time wherever possible, with the price agreed before we start."}],y=[{icon:c.t6Z,title:"Upfront pricing",text:"Fixed quotes agreed before any work begins. No hidden extras, ever."},{icon:c.bri,title:"Gas Safe registered",text:"Fully qualified, insured and Gas Safe registered engineers."},{icon:c.qyc,title:"Emergency call-outs",text:"Open 8am to 6pm, with an emergency line for genuine out-of-hours disasters."},{icon:c.xng,title:"Tidy & respectful",text:"Dust sheets down, boots off, mess cleared. We treat your home like ours."}],w=d.ak,F=[{q:"Are you available in an emergency?",a:"Yes. We are open 8am to 6pm and run an emergency line for genuine out-of-hours emergencies, aiming to reach urgent jobs within the hour."},{q:"Are your engineers qualified?",a:"Every engineer is fully qualified, insured and Gas Safe registered for any gas or boiler work."},{q:"How do I get a quote?",a:"Give us a call or fill in the contact form. For most jobs we can give an honest estimate straight away."}],j={emergency:{intro:"A burst pipe or major leak can cause serious damage in minutes. Our emergency line runs beyond our usual 8am to 6pm hours, and we aim to have a fully-equipped engineer with you within the hour to stop the damage and put things right.",includes:["Burst & leaking pipes","No hot water or heating","Overflowing toilets","Water leak detection","Emergency isolation & make-safe","Insurance-friendly reports"]},"boilers-heating":{intro:"From an annual service to a brand-new A-rated combi, our Gas Safe registered engineers keep your home warm and safe. We fit and repair all major brands, and as Vaillant Advance certified installer
1s we can offer up to 10-year warranties on new Vaillant boilers.",includes:["Boiler repair & fault-finding","Annual boiler service","New boiler installation","10-year Vaillant warranties","Power flushing","Radiator & valve fitting","Smart thermostat upgrades"]},bathrooms:{intro:"Whether itâs swapping a tap or designing and fitting a full bathroom, we deliver a clean, watertight finish on time and on budget. One team handles plumbing, tiling and sealing, no juggling trades.",includes:["Full bathroom installation","Showers & wet rooms","Tiling & waterproofing","Basin, bath & toilet fitting","Tap & mixer replacement","Accessibility adaptations"]},drainage:{intro:"Slow or blocked drains are messy and unhealthy. We clear blockages fast with the right kit, then use CCTV to find the root cause so it doesnât come straight back.",includes:["Blocked sinks & toilets","High-pressure drain jetting","CCTV drain surveys","Outside & soil-stack drains","Drain repairs & relining","Recurring-blockage diagnosis"]},"water-heaters":{intro:"No hot water is more than an inconvenience. We repair, replace and upgrade cylinders, immersion heaters and unvented systems to get you back up and running.",includes:["Hot water cylinder replacement","Immersion heater repair","Unvented (Megaflo) systems","Thermostat & element faults","System upgrades","Annual safety checks"]},general:{intro:"The everyday jobs that keep a home running smoothly, done properly the first time. No job is too small.",includes:["Dripping & faulty taps","Running or leaking toilets","Leaks & pipe repairs","Appliance plumbing","Outside taps","Stopcock & valve replacement"]}};function S(e){let t=m.find(t=>t.slug===e);if(t)return{...t,...j[t.slug]}}let k=d.Lu;function E(e){var t;return(null===(t=k[e])||void 0===t?void 0:t.keyword)||e}function C(e){let t=Object.keys(k).find(t=>k[t].keyword===e);return t?S(t):void 0}let R=[{logo:"/img/plumbing/logos/gas-safe.svg",name:"Gas Safe Registered"},{logo:"/img/plumbing/logos/checkatrade.svg",name:"Checkatrade Verified"},{logo:"/img/plumbing/logos/g3.svg",name:"G3 Unvented Hot Water Certified"},{logo:"/img/plumbing/logos/vaillant-advance.svg",name:"Vaillant Advance Installer"},{logo:"/img/plumbing/logos/insured.svg",name:"\xa35m Public Liability Insurance"}],P=[{name:"Worcester Bosch",color:"#E2001A"},{name:"Vaillant",color:"#00917E"},{name:"Ideal",color:"#D2002E"},{name:"Baxi",color:"#005CB9"},{name:"Glow-worm",color:"#E8730C"},{name:"Viessmann",color:"#C20E1A"},{name:"Grohe",color:"#1A1A1A"},{name:"Mira",color:"#0072CE"}],I=d.Lx;function T(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-")}let A=[{name:"Sam Reid",role:"Founder & Lead Engineer",photo:"/img/plumbing/team2.jpg",bio:"Gas Safe registered for 15 years. Started the firm with one van and a promise to do things properly."},{name:"Marcus Bell",role:"Senior Heating Engineer",photo:"/img/plumbing/engineer.jpg",bio:"Boiler and central-heating specialist. If itâs cold and broken, Marcus is the one who fixes it."},{name:"Sophie Hayes",role:"Bookings & Customer Care",photo:"/img/plumbing/team3.jpg",bio:"The friendly voice on the phone. Sophie keeps every job on time and every customer in the loop."}],M=[{src:"/img/plumbing/bathroom.jpg",caption:"Full bathroom refit, Ealing"},{src:"/img/plumbing/work3.jpg",caption:"Marble en-suite, Kensington"},{src:"/img/plumbing/bath.jpg",caption:"Freestanding bath install, Chelsea"},{src:"/img/plumbing/pipes.jpg",caption:"New copper pipework, Fulham"},{src:"/img/plumbing/work1.jpg",caption:"Copper pipe soldering"},{src:"/img/plumbing/tap.jpg",caption:"Mixer tap replacement, Chiswick"}],O=[{slug:"how-to-bleed-a-radiator",title:"How to bleed a radiator (and why it matters)",excerpt:"Cold patches at the top of your radiators? Trapped air is the usual culprit. Hereâs how to fix it in five minutes.",readMins:4,body:["If your radiators are warm at the bottom but cold at the top, trapped air is stopping hot water from circulating. Bleeding the radiator releases that air and restores even heat.","Turn your heating off and let the radiators cool. Hold a cloth under the bleed valve at the top corner and turn the bleed key anti-clockwise a quarter turn. Youâll hear a hiss as air escapes.","When water starts to dribble out, close the valve again. Once youâve done every radiator, check your boiler pressure, you may
1need to top it up to around 1.2 bar.","If radiators keep needing bleeding, or the boiler loses pressure repeatedly, give us a call, it usually points to a leak or a failing part worth checking."]},{slug:"boiler-making-noise",title:"Why is my boiler making noises?",excerpt:"Banging, whistling or gurgling? Hereâs what the most common boiler sounds usually mean.",readMins:5,body:["A healthy boiler is fairly quiet. New or louder noises are worth paying attention to, theyâre often an early warning that something needs attention before it becomes a breakdown.","Banging or âkettlingâ usually means limescale or sludge build-up on the heat exchanger. A power flush often solves it. Whistling can be trapped air or low pressure. Gurgling often points to trapped air or a frozen condensate pipe in winter.","Tapping or clicking on start-up can be normal expansion, but persistent clicking with no ignition may be a faulty gas valve or ignition lead.","Because boilers run on gas, anything youâre unsure about is best left to a Gas Safe engineer. We can usually diagnose the noise on the first visit and quote on the spot."]},{slug:"stop-tap-location",title:"Where is my stopcock, and why you need to know",excerpt:"In a leak, finding your stop tap fast can save you thousands. Hereâs where to look.",readMins:3,body:["Your internal stop tap (stopcock) shuts off the cold water supply to your whole home. In a burst-pipe emergency, turning it off quickly is the single best thing you can do to limit damage.","Itâs most often under the kitchen sink, but can also be in a downstairs bathroom, utility room, or near the front door. Turn it clockwise to close.","Test it twice a year, they can seize up if never used. If yours is stiff, stuck or leaking, itâs a quick, cheap job for us to replace before you ever need it in anger.","Itâs also worth knowing where your external stopcock is, usually under a small metal cover near the boundary of your property."]}],z=d.A8.map(e=>O.find(t=>t.slug===e)).filter(e=>!!e);function L(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-")}c.QJe,c.Nh4,c.DNl;var D=i(1297),q=i(926);let $=u.siteConfig.colors.primary;function H(){let[e,t]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{try{localStorage.getItem(D.c)||t(!0)}catch(e){return}},[]),!e)return null;let i=e=>{try{localStorage.setItem(D.c,e)}catch(e){return}t(!1),"accepted"===e&&((0,q.IR)(),(0,q.iM)())};return(0,r.jsxs)(l.xu,{position:"fixed",zIndex:120,bottom:{base:90,md:20},left:{base:16,md:20},right:{base:16,md:"auto"},maxW:{base:"none",md:"380px"},bg:"#0B2545",color:"#FFFFFF",borderRadius:16,p:5,children:[(0,r.jsxs)(l.xv,{fontSize:14,lineHeight:1.6,color:"rgba(255,255,255,0.85)",mb:4,children:["We use cookies to improve your experience and understand how the site is used. See our"," ",(0,r.jsx)(l.xu,{as:"a",href:"/privacy",color:u.siteConfig.colors.highlightColor,textDecoration:"underline",children:"privacy policy"}),"."]}),(0,r.jsxs)(l.xu,{display:"flex",gap:3,children:[(0,r.jsx)(l.xu,{as:"button",onClick:()=>i("accepted"),bg:$,color:"#FFFFFF",fontWeight:700,fontSize:14,px:5,py:2.5,borderRadius:999,border:"none",cursor:"pointer",children:"Accept"}),(0,r.jsx)(l.xu,{as:"button",onClick:()=>i("declined"),bg:"rgba(255,255,255,0.12)",color:"#FFFFFF",fontWeight:700,fontSize:14,px:5,py:2.5,borderRadius:999,border:"none",cursor:"pointer",children:"Decline"})]})]})}function N(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=window;try{var r,n,s;null===(r=i.gtag)||void 0===r||r.call(i,"event",e,t),null===(s=i.posthog)||void 0===s||null===(n=s.capture)||void 0===n||n.call(s,e,t)}catch(e){return}}let W=e=>N("call_click",{source:e}),B=e=>N("whatsapp_click",{source:e}),V=e=>N("quote_submit",{source:e});function U(e){let{source:t,label:i="WhatsApp",iconOnly:n=!1,full:s=!1}=e;return(0,r.jsxs)(l.xu,{as:"a",href:f,target:"_blank",rel:"noopener",onClick:()=>B(t),"aria-label":n?"Message us on WhatsApp":void 0,display:s?"flex":"inline-flex",alignItems:"center",justifyContent:"center",gap:n?0:2,w:n?42:s?"100%":void 0,h:n?42:void 0,bg:"#149E4A",color:"#FFFFFF",fontWeight:700,fontSize:16,px:n?0:7,py:n?0:3.5,borderRadius:999,textDecoration:"none",_hover:{bg:"#11823D"},children:[(0,r.jsx)(l.xu,{as:c.xpo,fontSize:n?20:18}),n?null:i]})}function G(e){let{query:t="North London",rounded:i=20,ratio:n="16 / 10"}=e,s="https://www.google.com/maps?q=".concat(encodeURIComponent(t),"&output=embed");return(0,r.jsx)(l.xu,{borderRadius:i,overflow:"hidden",aspectRatio:n,children:(0,r.jsx)(l.xu,{as:"iframe",src:s,title:"Map of ".concat(t),loading:"lazy",style:{border:0,display:"block",width:"100%",height:"100%"}})})}let Q="#0B2545",Z=u.siteConfig.colors.primary,K="#F4F8FD",Y=e=>e&&"#FFFFFF"!==e.toUpperCase()?"#FFFFFF":K;function J(e){let{href:t,children:i,full:n}=e;
1return(0,r.jsx)(l.xu,{as:"a",href:t,display:n?"flex":"inline-flex",alignItems:"center",justifyContent:"center",gap:2,bg:Z,color:"#FFFFFF",fontWeight:700,fontSize:16,px:7,py:3.5,borderRadius:999,w:n?"100%":void 0,textDecoration:"none",_hover:{bg:u.siteConfig.colors.primaryHover},children:i})}function X(e){let{children:t}=e;return(0,r.jsx)(l.xv,{color:Z,fontWeight:800,fontSize:13,letterSpacing:"0.12em",textTransform:"uppercase",mb:3,children:t})}function ee(e){let{eyebrow:t,title:i,subtitle:n,align:s="center",light:o}=e;return(0,r.jsxs)(l.xu,{maxW:"center"===s?"720px":void 0,mx:"center"===s?"auto":void 0,textAlign:s,children:[t&&(0,r.jsx)(X,{children:t}),(0,r.jsx)(l.xv,{as:"h2",fontWeight:800,fontSize:{base:30,md:40},lineHeight:1.15,color:o?"#FFFFFF":Q,children:i}),n&&(0,r.jsx)(l.xv,{mt:4,fontSize:{base:16,md:18},lineHeight:1.7,color:o?"rgba(255,255,255,0.85)":"#4B5E78",children:n})]})}function et(e){let{count:t=5,color:i="#FFB400",size:n=16}=e;return(0,r.jsx)(l.xu,{display:"inline-flex",gap:.5,children:Array.from({length:t}).map((e,t)=>(0,r.jsx)(l.xu,{as:c.QJe,color:i,fontSize:n},t))})}function ei(e){let{children:t}=e;return(0,r.jsxs)(l.xu,{display:"flex",alignItems:"flex-start",gap:3,mb:3,children:[(0,r.jsx)(l.xu,{flexShrink:0,w:22,h:22,mt:.5,borderRadius:999,bg:u.siteConfig.colors.primaryGlow,display:"flex",alignItems:"center",justifyContent:"center",children:(0,r.jsx)(l.xu,{as:c.l_A,color:Z,fontSize:11})}),(0,r.jsx)(l.xv,{fontSize:15,color:"#3C4D63",lineHeight:1.5,children:t})]})}function er(e){let{src:t,alt:i,ratio:n="4 / 3",rounded:s=20}=e;return(0,r.jsx)(l.xu,{w:"100%",borderRadius:s,overflow:"hidden",aspectRatio:n,children:(0,r.jsx)(l.xu,{as:"img",src:t,alt:i,w:"100%",h:"100%",objectFit:"cover",display:"block"})})}function en(e){let{eyebrow:t,title:i,subtitle:n,image:s,imageAlt:o,badges:a}=e;return(0,r.jsxs)(l.xu,{bgGradient:"linear(135deg, ".concat(Q,", #143a6b)"),position:"relative",overflow:"hidden",children:[(0,r.jsx)(l.xu,{position:"absolute",top:"-160px",right:"-120px",w:"480px",h:"480px",borderRadius:999,bg:"rgba(59,158,255,0.14)"}),(0,r.jsxs)(l.xu,{maxW:"1120px",mx:"auto",px:5,py:{base:14,md:20},position:"relative",display:"grid",gridTemplateColumns:s?{base:"1fr",lg:"1.1fr 0.9fr"}:"1fr",gap:{base:10,lg:14},alignItems:"center",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(l.xv,{color:u.siteConfig.colors.highlightColor,fontWeight:800,fontSize:13,letterSpacing:"0.12em",textTransform:"uppercase",mb:3,children:t}),(0,r.jsx)(l.xv,{as:"h1",fontWeight:800,fontSize:{base:34,md:50},lineHeight:1.1,color:"#FFFFFF",maxW:"720px",children:i}),n&&(0,r.jsx)(l.xv,{mt:5,fontSize:{base:16,md:19},lineHeight:1.6,color:"rgba(255,255,255,0.85)",maxW:"620px",children:n}),a&&a.length>0&&(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:2.5,mt:7,children:a.map(e=>(0,r.jsxs)(l.xu,{display:"inline-flex",alignItems:"center",gap:2,bg:"rgba(255,255,255,0.12)",borderRadius:999,px:4,py:2,children:[(0,r.jsx)(l.xu,{as:c.l_A,color:u.siteConfig.colors.highlightColor,fontSize:11}),(0,r.jsx)(l.xv,{fontSize:13,fontWeight:600,color:"#FFFFFF",children:e})]},e))}),(0,r.jsxs)(l.xu,{display:"flex",flexWrap:"wrap",gap:4,mt:a&&a.length?6:8,children:[(0,r.jsx)(l.xu,{as:"a",href:"/contact",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:2,bg:"#FFFFFF",color:Q,fontWeight:800,fontSize:16,px:7,py:3.5,borderRadius:999,textDecoration:"none",_hover:{bg:"rgba(255,255,255,0.9)"},children:"Get a free quote"}),(0,r.jsxs)(l.xu,{as:"a",href:p,onClick:()=>W("page_header"),display:"inline-flex",alignItems:"center",justifyContent:"center",gap:2,bg:"rgba(255,255,255,0.12)",color:"#FFFFFF",fontWeight:700,fontSize:16,px:7,py:3.5,borderRadius:999,textDecoration:"none",_hover:{bg:"rgba(255,255,255,0.2)"},children:[(0,r.jsx)(l.xu,{as:c.DNl,fontSize:14})," ",h]}),(0,r.jsx)(U,{source:"page_header"})]})]}),s&&(0,r.jsx)(l.xu,{display:{base:"none",lg:"block"},children:(0,r.jsx)(l.xu,{w:"100%",aspectRatio:"4 / 3.2",borderRadius:20,overflow:"hidden",children:(0,r.jsx)(l.xu,{as:"img",src:s,alt:o||i,w:"100%",h:"100%",objectFit:"cover",display:"block"})})})]})]})}function es(e){let{children:t,bg:i,py:n,id:s}=e;return(0,r.jsx)(l.xu,{as:"section",id:s,bg:i,py:null!=n?n:{base:16,md:24},children:(0,r.jsx)(l.xu,{maxW:"1120px",mx:"auto",px:5,children:t})})}let eo="#0B2545",ea=u.siteConfig.colors.primary;function el(e){let{children:t,title:i,description:s,active:c,ogImage:d="/img/plumbing/bathroom.jpg",noindex:h}
1=e,[p,f]=(0,n.useState)(!1);(0,n.useEffect)(()=>f(!0),[]);let g=(0,a.useRouter)(),v=((null==g?void 0:g.asPath)||"/").split("?")[0].split("#")[0],m="".concat(u.siteConfig.domain).concat("/"===v?"":v),b=d.startsWith("http")?d:"".concat(u.siteConfig.domain).concat(d);return(0,r.jsxs)(l.xu,{bg:"#FFFFFF",minH:"100vh",color:eo,children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:i}),(0,r.jsx)("meta",{name:"description",content:s}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,r.jsx)("link",{rel:"icon",href:u.siteConfig.favicon}),(0,r.jsx)("link",{rel:"apple-touch-icon",href:"/img/plumbing/apple-touch-icon.png"}),h?(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"}):(0,r.jsx)("link",{rel:"canonical",href:m}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:site_name",content:u.siteConfig.name}),(0,r.jsx)("meta",{property:"og:title",content:i}),(0,r.jsx)("meta",{property:"og:description",content:s}),(0,r.jsx)("meta",{property:"og:url",content:m}),(0,r.jsx)("meta",{property:"og:image",content:b}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:i}),(0,r.jsx)("meta",{name:"twitter:description",content:s}),(0,r.jsx)("meta",{name:"twitter:image",content:b}),(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:".plm-dnav{display:none}.plm-dcta{display:none}.plm-mcall{display:inline-flex}@media(min-width:640px){.plm-dcta{display:inline-flex}}@media(min-width:768px){.plm-dnav{display:flex}.plm-mcall{display:none}}"}})]}),(0,r.jsx)(ec,{active:c}),(0,r.jsx)(l.xu,{as:"main",children:t}),(0,r.jsx)(eu,{}),(0,r.jsx)(H,{})]},p?"client":"ssr")}function ec(e){let{active:t}=e;return(0,r.jsx)(l.xu,{as:"header",position:"sticky",top:0,zIndex:50,bg:"rgba(255,255,255,0.92)",backdropFilter:"blur(10px)",children:(0,r.jsx)(l.W2,{maxW:"6xl",px:5,children:(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",py:3.5,children:[(0,r.jsxs)(l.xu,{as:"a",href:"/",display:"flex",alignItems:"center",gap:2.5,textDecoration:"none",children:[(0,r.jsx)(l.xu,{as:"img",src:u.siteConfig.logo,alt:"".concat(u.siteConfig.name," logo"),w:44,h:44,display:"block"}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:18,color:eo,children:"SureHeat Services"})]}),(0,r.jsx)(l.xu,{className:"plm-dnav",as:"nav",alignItems:"center",gap:8,children:[{label:"Home",href:"/",key:"home"},{label:"Services",href:"/services",key:"services"},{label:"About",href:"/about",key:"about"},{label:"Contact",href:"/contact",key:"contact"}].map(e=>(0,r.jsx)(l.xu,{as:"a",href:e.href,fontSize:15,fontWeight:t===e.key?700:500,color:t===e.key?ea:eo,textDecoration:"none",_hover:{color:ea},children:e.label},e.key))}),(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:3,children:[(0,r.jsx)(l.xu,{className:"plm-dcta",as:"a",href:f,target:"_blank",rel:"noopener",onClick:()=>B("navbar"),alignItems:"center",justifyContent:"center",w:42,h:42,bg:"#149E4A",color:"#FFFFFF",borderRadius:999,textDecoration:"none","aria-label":"Message us on WhatsApp",_hover:{bg:"#11823D"},children:(0,r.jsx)(l.xu,{as:c.xpo,fontSize:20})}),(0,r.jsxs)(l.xu,{className:"plm-dcta",as:"a",href:"/contact",alignItems:"center",gap:2,bg:ea,color:"#FFFFFF",fontWeight:700,fontSize:14,px:5,py:2.5,borderRadius:999,textDecoration:"none",_hover:{bg:u.siteConfig.colors.primaryHover},children:[(0,r.jsx)(l.xu,{as:c.DNl,fontSize:12}),"Get a Free Quote"]}),(0,r.jsx)(l.xu,{className:"plm-mcall",as:"a",href:f,target:"_blank",rel:"noopener",onClick:()=>B("navbar_mobile"),alignItems:"center",justifyContent:"center",w:42,h:42,bg:"#149E4A",color:"#FFFFFF",borderRadius:999,textDecoration:"none","aria-label":"Message us on WhatsApp",children:(0,r.jsx)(l.xu,{as:c.xpo,fontSize:19})}),(0,r.jsxs)(l.xu,{className:"plm-mcall",as:"a",href:p,onClick:()=>W("navbar_mobile"),alignItems:"center",gap:2,bg:ea,color:"#FFFFFF",fontWeight:700,fontSize:14,px:4,py:2.5,borderRadius:999,textDecoration:"none",children:[(0,r.jsx)(l.xu,{as:c.DNl,fontSize:13}),"Call"]})]})]})})})}function eu(){let e=new Date().getFullYear();return(0,r.jsxs)(l.xu,{as:"footer",bg:eo,color:"rgba(255,255,255,0.75)",mt:0,children:[(0,r.jsx)(l.W2,{maxW:"6xl",px:5,children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"2fr 1fr 1fr"},gap:10,py:{base:12,md:16},children:[(0,r.jsxs)(l.xu,{maxW:"360px",children:[(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:2.5,mb:4,children:[(0,r.jsx)(l.xu,{as:"img",src:u.siteConfig.logo,alt:"".concat(u.siteConfig.name," logo"),w:38,h:38,display:"block"}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:18,color:"#FFFFFF",children:"SureHeat Services"})]}),(0,r.jsx)(l.xv,{fontSize:14,lineHeight:1.7,children:"Friendly, reliable, Gas Safe registered plumbers covering West & North London. Honest pricing and tidy, professional work."})]}),(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(l.xv,{fontWeight:700,color:"#FFFFFF",mb:4,fontSize:15,children:"Qu
1ick links"}),[{label:"Home",href:"/"},{label:"Services",href:"/services"},{label:"Areas covered",href:"/areas"},{label:"Guides",href:"/guides"},{label:"About us",href:"/about"},{label:"Contact",href:"/contact"}].map(e=>(0,r.jsx)(l.xu,{as:"a",href:e.href,display:"block",mb:2.5,fontSize:14,color:"rgba(255,255,255,0.75)",textDecoration:"none",_hover:{color:"#FFFFFF"},children:e.label},e.label))]}),(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(l.xv,{fontWeight:700,color:"#FFFFFF",mb:4,fontSize:15,children:"Get in touch"}),(0,r.jsx)(l.xu,{as:"a",href:p,display:"block",mb:2.5,fontSize:14,color:"#FFFFFF",fontWeight:700,textDecoration:"none",children:h}),(0,r.jsx)(l.xu,{as:"a",href:"mailto:".concat(u.siteConfig.helpEmail),display:"block",mb:4,fontSize:14,textDecoration:"none",color:"rgba(255,255,255,0.75)",children:u.siteConfig.helpEmail}),(0,r.jsx)(l.xu,{mb:4,children:(0,r.jsx)(U,{source:"footer",label:"WhatsApp us"})}),(0,r.jsx)(l.xv,{fontSize:14,children:"Open 8am to 6pm \xb7 Emergency call-outs"})]})]})}),(0,r.jsx)(l.xu,{bg:"#07182C",children:(0,r.jsxs)(l.W2,{maxW:"6xl",px:5,children:[(0,r.jsxs)(l.xu,{py:5,display:"flex",flexWrap:"wrap",gap:3,alignItems:"center",justifyContent:"space-between",children:[(0,r.jsxs)(l.xv,{fontSize:13,color:"rgba(255,255,255,0.6)",children:["\xa9 ",e," ",u.siteConfig.companyName,". All rights reserved."]}),(0,r.jsx)(l.xu,{display:"flex",alignItems:"center",gap:6,children:[{label:"Sitemap",href:"/sitemap"},{label:"Privacy",href:"/privacy"},{label:"Terms",href:"/terms"}].map(e=>(0,r.jsx)(l.xu,{as:"a",href:e.href,fontSize:13,fontWeight:600,color:"rgba(255,255,255,0.6)",textDecoration:"none",_hover:{color:"#FFFFFF"},children:e.label},e.label))})]}),(0,r.jsx)(l.xv,{fontSize:12,color:"rgba(255,255,255,0.4)",pb:5,lineHeight:1.6,children:u.siteConfig.companyNote})]})})]})}let ed=u.siteConfig.domain;function eh(e){let{faq:t,extra:i}=e,n=[{"@context":"https://schema.org","@type":"Plumber","@id":"".concat(ed,"/#business"),name:u.siteConfig.name,image:"".concat(ed,"/img/plumbing/bathroom.jpg"),url:ed,telephone:h,email:u.siteConfig.helpEmail,priceRange:"\xa3\xa3",address:{"@type":"PostalAddress",addressRegion:"London",addressCountry:"GB"},areaServed:w.map(e=>({"@type":"City",name:e})),openingHoursSpecification:{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],opens:"08:00",closes:"18:00"}}];return t&&n.push({"@context":"https://schema.org","@type":"FAQPage",mainEntity:F.map(e=>({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.a}}))}),i&&n.push(i),(0,r.jsx)(o(),{children:n.map((e,t)=>(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}},t))})}function ep(e){let{light:t}=e;return(0,r.jsxs)(l.xu,{as:"a",href:v,target:"_blank",rel:"noopener",display:"inline-flex",alignItems:"center",gap:3,bg:t?"rgba(255,255,255,0.12)":"#FFFFFF",borderColor:t?"rgba(255,255,255,0.25)":"#E6ECF5",borderRadius:999,px:4,py:2.5,textDecoration:"none",children:[(0,r.jsx)(l.xu,{as:c.FJM,color:t?"#FFFFFF":Z,fontSize:16}),(0,r.jsx)(et,{count:5,size:14}),(0,r.jsxs)(l.xv,{fontSize:14,fontWeight:700,color:t?"#FFFFFF":Q,children:["10/10"," on Checkatrade"]})]})}function ef(){return(0,r.jsx)(l.xu,{bg:"#0B2545",color:"#FFFFFF",children:(0,r.jsx)(l.W2,{maxW:"6xl",px:5,children:(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",justifyContent:"center",gap:2,py:{base:2,md:2.5},textAlign:"center",children:[(0,r.jsx)(l.xu,{as:c.gJy,color:u.siteConfig.colors.highlightColor,fontSize:13,flexShrink:0}),(0,r.jsxs)(l.xv,{fontSize:{base:12,md:14},fontWeight:600,color:"rgba(255,255,255,0.9)",children:[(0,r.jsxs)(l.xu,{as:"span",display:{base:"none",sm:"inline"},children:["Plumbing emergency? We aim to reach you within the hour."," "]}),(0,r.jsxs)(l.xu,{as:"a",href:p,onClick:()=>W("emergency_banner"),color:"#FFFFFF",fontWeight:800,textDecoration:"none",children:[(0,r.jsxs)(l.xu,{as:"span",display:{base:"inline",sm:"none"},children:["Emergency?"," "]}),"Call ",h]})]})]})})})}function eg(){let{bg:e="#FFFFFF"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.jsxs)(es,{bg:e,py:{base:12,md:16},children:[(0,r.jsx)(l.xv,{textAlign:"center",fontSize:13,fontWeight:700,color:"#7185A0",textTransform:"uppercase",letterSpacing:"0.12em",mb:8,children:"Fully accredited & insured"}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",lg:"repeat(6, 1fr)"},gap:5,children:R.map(e=>(0,r.jsxs)(l.xu,{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:3,children:[(0,r.jsx)(l.xu,{as:"img",src:e.logo,alt:e.name,w:84,h:84,display:"block"}),(0,r.jsx)(l.xv,{fontSize:12,fontWeight:600,color:"#4B5E78",lineHeight:1.3,children:e.name})]},e.name))})]})}function ev(){let{bg:e=K}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Y(e);return(0,r.jsxs)(es,{bg:e,py:{base:14,md:18}
1,children:[(0,r.jsx)(l.xu,{mb:{base:8,md:12},children:(0,r.jsx)(ee,{eyebrow:"Brands we work with",title:"Approved installers of every major brand",subtitle:"We supply, fit and repair every leading boiler and fixture brand, and can spread the cost of a new boiler with finance from 0% APR."})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",lg:"repeat(4, 1fr)"},gap:4,children:P.map(e=>(0,r.jsxs)(l.xu,{as:"a",href:I.includes(e.name)?"/boiler-servicing/".concat(T(e.name)):"/services/bathrooms",bg:t,borderRadius:16,px:5,py:7,textDecoration:"none",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,transition:"transform 0.2s ease, background 0.2s ease",_hover:{transform:"translateY(-4px)",bg:"#EAF2FD"},children:[(0,r.jsx)(l.xu,{w:44,h:44,borderRadius:999,bg:e.color,display:"flex",alignItems:"center",justifyContent:"center",children:(0,r.jsx)(l.xv,{fontWeight:800,fontSize:18,color:"#FFFFFF",children:e.name.charAt(0)})}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:16,color:e.color,textAlign:"center",lineHeight:1.2,children:e.name})]},e.name))})]})}function em(e){let{limit:t,bg:i="#FFFFFF"}=e,n=t?M.slice(0,t):M;return(0,r.jsxs)(es,{bg:i,children:[(0,r.jsx)(l.xu,{mb:{base:10,md:14},children:(0,r.jsx)(ee,{eyebrow:"Recent work",title:"Proof in every job",subtitle:"A look at some of the bathrooms, boilers and pipework we've recently completed across London."})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",sm:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:5,children:n.map(e=>(0,r.jsxs)(l.xu,{position:"relative",borderRadius:16,overflow:"hidden",children:[(0,r.jsx)(l.xu,{as:"img",src:e.src,alt:e.caption,w:"100%",aspectRatio:"4 / 3",objectFit:"cover",display:"block"}),(0,r.jsx)(l.xu,{position:"absolute",bottom:0,left:0,w:"100%",bgGradient:"linear(180deg, rgba(11,37,69,0), rgba(11,37,69,0.82))",px:4,py:4,children:(0,r.jsx)(l.xv,{color:"#FFFFFF",fontWeight:700,fontSize:14,children:e.caption})})]},e.caption))})]})}function eb(){return(0,r.jsxs)(es,{bg:"#FFFFFF",children:[(0,r.jsx)(l.xu,{mb:{base:10,md:14},children:(0,r.jsx)(ee,{eyebrow:"Meet the team",title:"Real people, real local plumbers",subtitle:"The friendly faces behind SureHeat Services, fully qualified and genuinely nice to have in your home."})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"repeat(3, 1fr)"},gap:6,children:A.map(e=>(0,r.jsxs)(l.xu,{bg:K,borderRadius:18,overflow:"hidden",children:[(0,r.jsx)(l.xu,{as:"img",src:e.photo,alt:e.name,w:"100%",aspectRatio:"4 / 3.4",objectFit:"cover",display:"block"}),(0,r.jsxs)(l.xu,{p:6,children:[(0,r.jsx)(l.xv,{fontWeight:800,fontSize:19,color:Q,children:e.name}),(0,r.jsx)(l.xv,{fontWeight:700,fontSize:14,color:Z,mb:3,children:e.role}),(0,r.jsx)(l.xv,{fontSize:14,lineHeight:1.6,color:"#4B5E78",children:e.bio})]})]},e.name))})]})}let ex="#EAF2FD";function e_(){return(0,r.jsx)(l.xu,{position:"relative",overflow:"hidden",bgGradient:"linear(180deg, #F4F8FD, #FFFFFF)",children:(0,r.jsx)(l.W2,{maxW:"6xl",px:5,children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",lg:"1.05fr 0.95fr"},gap:{base:10,lg:14},alignItems:"center",py:{base:14,md:20},position:"relative",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsxs)(l.xu,{display:"inline-flex",alignItems:"center",gap:2,bg:"#FFFFFF",borderRadius:999,px:4,py:2,mb:6,children:[(0,r.jsx)(l.xu,{as:c.FJM,color:Z,fontSize:14}),(0,r.jsx)(l.xv,{fontSize:13,fontWeight:700,color:Q,children:"Gas Safe registered \xb7 10/10 on Checkatrade"})]}),(0,r.jsxs)(l.xv,{as:"h1",fontWeight:800,fontSize:{base:38,md:56},lineHeight:1.05,color:Q,children:["Local plumbers you can"," ",(0,r.jsx)(l.xv,{as:"span",color:Z,children:"actually rely on"})]}),(0,r.jsx)(l.xv,{mt:5,fontSize:{base:17,md:20},lineHeight:1.6,color:"#4B5E78",maxW:"540px",children:"From dripping taps to full bathroom installs and emergencies, SureHeat Services turns up on time, charges fair fixed prices and gets the job done right."}),(0,r.jsxs)(l.xu,{display:"flex",flexWrap:"wrap",gap:4,mt:8,children:[(0,r.jsxs)(J,{href:"/contact",children:[(0,r.jsx)(l.xu,{as:c.LDL,fontSize:14})," Get a Free Quote"]}),(0,r.jsx)(U,{source:"hero"})]}),(0,r.jsxs)(l.xu,{as:"a",href:p,onClick:()=>W("hero"),display:"inline-flex",alignItems:"center",gap:2,mt:5,textDecoration:"none",children:[(0,r.jsx)(l.xu,{as:c.DNl,color:Z,fontSize:14}),(0,r.jsxs)(l.xv,{fontSize:16,color:"#4B5E78",children:["Or call"," ",(0,r.jsx)(l.xv,{as:"span",fontWeight:800,color:Q,children:h})]})]}),(0,r.jsx)(l.xu,{mt:7,children:(0,r.jsx)(ep,{})})]}),(0,r.jsx)(l.xu,{children:(0,r.jsx)(er,{src:"/img/plumbing/bathroom.jpg",alt:"Modern bathroom installed by SureHeat Services",ratio:"4 / 3.4"})})]})})})}function ey(){return(0,r.jsx)(l.xu,{bg:Q,children:(0,r.jsx)(l.W2,{maxW:"6xl",px:5,children:(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"repeat(2, 1fr)",md:"repeat(4, 1fr)"},gap:6,py:{base:8,md:10},children:b.map(e=>(0,r.jsxs)(l.xu,{textAlign:"center",children:[(0,r.jsx)(l.xv,{fontWeight:800,fontSize:{base:26,md:34},color:"#FFFFFF",children:e.value}),(0,r.jsx)(l.xv,{fontSize:13,color:u.siteConfig.colors.highlightColor,fontWeight:600,mt:1,children:e.label})]},e.label))})})})}function ew(e){let{service:t,href:i,cardBg:n=K}=e;return(0,r.jsxs)(l.xu,{as:"a",href:i||"/services/".concat(t.slug),display:"block",textDecoration:"none",bg:n,borderRadius:18,p:7,transition:"transform 0.2s ease",_hover:{transform:"translateY(-4px)"},children:[(0,r.jsx)(l.xu,{w:56,h:56,borderRadius:14,bg:ex,display:"flex",alignItems:"center",justifyContent:"center",mb:5,children:(0,r.jsx)(l.xu,{as:t.icon,color:Z,fontSize:26})}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:20,color:Q,mb:2,children:t.title}),(0,r.jsx)(l.xv,{fontSize:15,lineHeight:1.6,color:"#4B5E78",mb:5,children:t.blurb}),(0,r.jsx)(l.xu,{children:t.points.map(e=>(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:2.5,mb:2,children:[(0,r.jsx)(l.xu,{as:c.FJM,color:Z,fontSize:13,flexShrink:0}),(0,r.jsx)(l.xv,{fontSize:14,color:"#3C4D63",children:e})]},e))}),(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:1.5,mt:6,color:Z,fontWeight:700,fontSize:14,children:["Learn more",(0,r.jsx)(l.xu,{as:c.Dli,fontSize:11})]})]})}function eF(e){let{heading:t=!0,bg:i="#FFFFFF"}=e;return(0,r.jsxs)(es,{bg:i,children:[t&&(0,r.jsx)(l.xu,{mb:{base:10,md:14},children:(0,r.jsx)(ee,{eyebrow:"What we do",title:"Plumbing & heating, all under one roof",subtitle:"Whatever's gone wrong, there's a good chance we've fixed it a hundred times before. Here's what we get called out for most."})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:6,children:m.map(e=>(0,r.jsx)(ew,{service:e,cardBg:Y(i)},e.slug))})]})}function ej(){let{bg:e=K}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.jsxs)(es,{bg:e,children:[(0,r.jsx)(l.xu,{mb:{base:10,md:14},children:(0,r.jsx)(ee,{eyebrow:"Why SureHeat",title:"Honest pricing. No nasty surprises.",subt
1itle:"We built our reputation on doing the simple things properly, turning up, being honest, and leaving your home clean."})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",sm:"repeat(2, 1fr)",lg:"repeat(4, 1fr)"},gap:6,children:y.map(t=>(0,r.jsxs)(l.xu,{bg:Y(e),borderRadius:16,p:7,children:[(0,r.jsx)(l.xu,{w:52,h:52,borderRadius:999,bg:ex,display:"flex",alignItems:"center",justifyContent:"center",mb:5,children:(0,r.jsx)(l.xu,{as:t.icon,color:Z,fontSize:22})}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:18,color:Q,mb:2,children:t.title}),(0,r.jsx)(l.xv,{fontSize:14,lineHeight:1.6,color:"#4B5E78",children:t.text})]},t.title))})]})}function eS(){let{bg:e="#FFFFFF"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.jsxs)(es,{bg:e,children:[(0,r.jsx)(l.xu,{mb:{base:10,md:14},children:(0,r.jsx)(ee,{eyebrow:"How it works",title:"Getting sorted is simple"})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",sm:"repeat(3, 1fr)",lg:"repeat(3, 1fr)"},gap:6,children:_.map((t,i)=>(0,r.jsxs)(l.xu,{position:"relative",bg:Y(e),borderRadius:18,p:7,children:[(0,r.jsx)(l.xu,{w:64,h:64,borderRadius:999,bgGradient:"linear(135deg, ".concat(Z,", #0B3D91)"),display:"flex",alignItems:"center",justifyContent:"center",mb:5,children:(0,r.jsx)(l.xu,{as:t.icon,color:"#FFFFFF",fontSize:24})}),(0,r.jsxs)(l.xv,{fontWeight:800,color:Z,fontSize:13,mb:1,children:["STEP ",i+1]}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:19,color:Q,mb:2,children:t.title}),(0,r.jsx)(l.xv,{fontSize:14,lineHeight:1.6,color:"#4B5E78",children:t.text})]},t.title))})]})}function ek(e){let{review:t,cardBg:i="#FFFFFF"}=e;return(0,r.jsxs)(l.xu,{bg:i,borderRadius:18,p:7,h:"100%",display:"flex",flexDirection:"column",children:[(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:4,children:[(0,r.jsx)(et,{count:t.rating,size:15}),(0,r.jsx)(l.xu,{as:c.fkU,color:u.siteConfig.colors.highlightColor,fontSize:20})]}),(0,r.jsx)(l.xv,{fontSize:15,lineHeight:1.7,color:"#34465E",mb:6,flex:1,children:t.text}),(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:3,children:[(0,r.jsx)(l.xu,{w:44,h:44,flexShrink:0,borderRadius:999,bgGradient:"linear(135deg, ".concat(Z,", #0B3D91)"),display:"flex",alignItems:"center",justifyContent:"center",children:(0,r.jsx)(l.xv,{fontWeight:800,fontSize:16,color:"#FFFFFF",children:t.name.charAt(0)})}),(0,r.jsxs)(l.xu,{children:[(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:2,children:[(0,r.jsx)(l.xv,{fontWeight:800,fontSize:15,color:Q,children:t.name}),(0,r.jsx)(l.xu,{as:c.FJM,color:Z,fontSize:12,title:"Verified customer"})]}),(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:1.5,children:[(0,r.jsx)(l.xu,{as:c.Nh4,color:"#9AA8BC",fontSize:11}),(0,r.jsx)(l.xv,{fontSize:13,color:"#7185A0",children:t.area})]})]})]})]})}function eE(e){let{limit:t,bg:i=K}=e,n=t?x.slice(0,t):x;return(0,r.jsxs)(es,{bg:i,children:[(0,r.jsx)(l.xu,{mb:{base:10,md:14},children:(0,r.jsx)(ee,{eyebrow:"Customer reviews",title:"Trusted by thousands of local homes",subtitle:"Rated 10/10 on Checkatrade. Real reviews from verified customers across West & North London."})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:6,children:n.map(e=>(0,r.jsx)(ek,{review:e,cardBg:Y(i)},e.name))}),(0,r.jsx)(l.xu,{textAlign:"center",mt:{base:8,md:10},children:(0,r.jsxs)(l.xu,{as:"a",href:v,target:"_blank",rel:"noopener",display:"inline-flex",alignItems:"center",gap:2,color:Z,fontWeight:700,fontSize:15,textDecoration:"none",children:["Read all our reviews on Checkatrade",(0,r.jsx)(l.xu,{as:c.Z1Y,fontSize:12})]})})]})}function eC(){let{bg:e="#FFFFFF"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.jsx)(es,{bg:e,children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",lg:"1fr 1fr"},gap:{base:10,lg:16},alignItems:"center",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(X,{children:"Areas we cover"}),(0,r.jsx)(ee,{align:"left",title:"Proudly serving West & North London"}),(0,r.jsx)(l.xv,{mt:4,fontSize:16,lineHeight:1.7,color:"#4B5E78",maxW:"480px",children:"Based locally and on the road every day. If your area isn't listed below, give us a ring. Chances are we still cover you."}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:3,mt:7,children:w.map(t=>(0,r.jsxs)(l.xu,{as:"a",href:"/areas/".concat(L(t)),display:"inline-flex",alignItems:"center",gap:2,bg:Y(e),borderRadius:999,px:4,py:2,textDecoration:"none",_hover:{bg:ex},children:[(0,r.jsx)(l.xu,{as:c.Nh4,color:Z,fontSize:11}),(0,r.jsx)(l.xv,{fontSize:14,fontWeight:600,color:Q,children:t}),(0,r.jsx)(l.xu,{as:c.Dli,color:"#B7C4D6",fontSize:10})]},t))})]}),(0,r.jsx)(er,{src:"/img/plumbing/engineer.jpg",alt:"SureHeat Services engineer on a job"})]})})}function eR(){let{bg:e=K}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.jsxs)(es,{bg:e,children:[(0,r.jsx)(l.xu,{mb:{base:10,md:12},children:(0,r.jsx)(ee,{eyebrow:"FAQs",title:"Questions, answered"})}),(0,r.jsx)(l.xu,{maxW:"780px",mx:"auto",display:"flex",flexDirection:"column",gap:4,children:F.map(t=>(0,r.jsxs)(l.xu,{bg:Y(e),borderRadius:14,p:6,children:[(0,r.jsx)(l.xv,{fontWeight:800,fontSize:17,color:Q,mb:2,children:t.q}),(0,r.jsx)(l.xv,{fontSize:15,lineHeight:1.6,color:"#4B5E78",children:t.a})]},t.q))})]})}function eP(){return(0,r.jsx)(l.xu,{bgGradient:"linear(135deg, ".concat(Z,", #0B3D91)"),position:"relative",overflow:"hidden",children:(0,r.jsx)(l.W2,{maxW:"6xl",px:5,children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"1.4fr 1fr"},gap:8,alignItems:"center",py:{base:14,md:20},position:"relative",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(l.xv,{as:"h2",fontWeight:800,fontSize:{base:30,md:42},lineHeight:1.1,color:"#FFFFFF",children:"Got a plumbing problem? Let's sort it."}),(0,r.jsx)(l.xv,{mt:4,fontSize:{base:16,md:19},lineHeight:1.6,color:"rgba(255,255,255,0.9)",maxW:"520px",children:"Free quotes and a friendly engineer on the way. Call now or request a callback."})]}),(0,r.jsxs)(l.xu,{display:"flex",flexDirection:"column",gap:4,children:[(0,r.jsxs)(l.xu,{as:"a",href:p,onClick:()=>W("cta_band"),display:"flex",alignItems:"center",justifyContent:"center",gap:3,bg:"#FFFFFF",color:Z,fontWeight:800,fontSize:18,px:7,py:4,borderRadius:999,textDecoration:"none",children:[(0,r.jsx)(l.xu,{as:c.DNl,fontSize:16})," ",h]}),(0,r.jsx)(l.xu,{as:"a",href:"/contact",display:"flex",alignItems:"center",justifyContent:"center",gap:2,bg:"rgba(255,255,255,0.16)",color:"#FFFFFF",fontWeight:700,fontSize:16,px:7,py:3.5,borderRadius:999,textDecoration:"none",_hover:{bg:"rgba(255,255,255,0.26)"},children:"Request a callback"}),(0,r.jsx)(U,{source:"cta_band",label:"Message us on WhatsApp",full:!0})]})]})})})}let eI="#FFFFFF";function eT(){return(0,r.jsxs)(el,{active:"home",title:"SureHeat Services, Local Plumbers & Heating Engineers in London",description:"Gas Safe registered plumbers covering West & North London. Emergency call-out
1s, boiler repairs, bathroom installs and blocked drains. Free quotes and honest advice.",children:[(0,r.jsx)(eh,{faq:!0}),(0,r.jsx)(ef,{}),(0,r.jsx)(e_,{}),(0,r.jsx)(ey,{}),(0,r.jsx)(eF,{bg:eI}),(0,r.jsx)(ej,{bg:eI}),(0,r.jsx)(em,{limit:6,bg:K}),(0,r.jsx)(eE,{limit:6,bg:eI}),(0,r.jsx)(ev,{bg:K}),(0,r.jsx)(eg,{bg:eI}),(0,r.jsx)(eC,{bg:K}),(0,r.jsx)(eR,{bg:eI}),(0,r.jsx)(eP,{})]})}function eA(){return(0,r.jsxs)(el,{active:"services",title:"Our Services, SureHeat Services",description:"Emergency plumbing, boiler repairs and installs, bathroom fitting, blocked drains, hot water cylinders and general plumbing across West & North London.",children:[(0,r.jsx)(eh,{faq:!0}),(0,r.jsx)(en,{eyebrow:"Our services",title:"Plumbing & heating done properly",subtitle:"One trusted team for everything from a dripping tap at midnight to a brand-new bathroom. Fixed prices agreed before we start.",image:"/img/plumbing/bathroom.jpg",imageAlt:"Plumbing and heating services",badges:["Free quotes","Gas Safe registered","10/10 on Checkatrade"]}),(0,r.jsx)(eF,{heading:!1}),(0,r.jsx)(ej,{}),(0,r.jsx)(eS,{}),(0,r.jsx)(em,{limit:6}),(0,r.jsx)(eR,{}),(0,r.jsx)(eP,{})]})}let eM=[{icon:c.spm,title:"Honest to a fault",text:"We tell you what actually needs doing, not what makes us the most money."},{icon:c.$0H,title:"Properly local",text:"Born and raised here. Many of our customers are neighbours, and word of mouth keeps us busy."},{icon:c.LDL,title:"Genuinely skilled",text:"Time-served, Gas Safe registered engineers who take pride in a tidy, lasting job."}];function eO(){return(0,r.jsxs)(el,{active:"about",title:"About Us, SureHeat Services",description:"Meet SureHeat Services, a friendly, family-run team of Gas Safe registered plumbers and heating engineers serving West & North London for over 15 years.",children:[(0,r.jsx)(eh,{}),(0,r.jsx)(en,{eyebrow:"About us",title:"A family-run team that treats your home like our own",subtitle:"What started as one man and a van is now a trusted local team, but the values haven't changed one bit.",image:"/img/plumbing/engineer.jpg",imageAlt:"SureHeat Services team",badges:["15 years on the tools","Gas Safe registered","5,000+ jobs"]}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",lg:"1fr 1fr"},gap:{base:10,lg:16},alignItems:"center",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(ee,{align:"left",eyebrow:"Our story",title:"15 years on the tools"}),(0,r.jsx)(l.xv,{mt:5,fontSize:16,lineHeight:1.8,color:"#4B5E78",children:"SureHeat started out fixing leaks and fitting boilers back in 2011 with a single van and a simple promise: turn up when you say you will, do the job properly, and charge a fair price. That promise built a reputation , and that reputation built the business."}),(0,r.jsx)(l.xv,{mt:4,fontSize:16,lineHeight:1.8,color:"#4B5E78",children:"Today the team has grown, but you'll still get the same friendly, no-nonsense service whether it's a dripping tap or a full central-heating system. We're not happy until you are."}),(0,r.jsxs)(l.xu,{mt:7,children:[(0,r.jsx)(ei,{children:"Gas Safe registered & fully insured engineers"}),(0,r.jsx)(ei,{children:"G3 certified for unvented hot water systems"}),(0,r.jsx)(ei,{children:"Upfront fixed pricing agreed before we start"}),(0,r.jsx)(ei,{children:"Clean, respectful work in your home"})]})]}),(0,r.jsx)(er,{src:"/img/plumbing/bath.jpg",alt:"Bathroom fitted by SureHeat Services",ratio:"4 / 4"})]})}),(0,r.jsx)(ey,{}),(0,r.jsxs)(es,{bg:K,children:[(0,r.jsx)(l.xu,{mb:{base:10,md:14},children:(0,r.jsx)(ee,{eyebrow:"What we stand for",title:"The values behind every job"})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"repeat(3, 1fr)"},gap:6,children:eM.map(e=>(0,r.jsxs)(l.xu,{bg:"#FFFFFF",borderRadius:16,p:8,textAlign:"center",children:[(0,r.jsx)(l.xu,{w:64,h:64,mx:"auto",borderRadius:999,bg:Z+"1A",display:"flex",alignItems:"center",justifyContent:"center",mb:5,children:(0,r.jsx)(l.xu,{as:e.icon,color:Z,fontSize:26})}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:19,color:Q,mb:2,children:e.title}),(0,r.jsx)(l.xv,{fontSize:15,lineHeight:1.6,color:"#4B5E78",children:e.text})]},e.title))})]}),(0,r.jsx)(eb,{}),(0,r.jsx)(em,{limit:6}),(0,r.jsx)(eg,{}),(0,r.jsx)(eE,{limit:3}),(0,r.jsx)(eP,{})]})}let ez={width:"100%",padding:"13px 16px",fontSize:15,color:Q,background:"#FFFFFF",border:"1px solid #D9E2EF",borderRadius:12,outline:"none",fontFamily:"inherit",boxSizing:"border-box"},eL={display:"block",fontSize:13,fontWeight:700,color:Q,marginBottom:7},eD={...ez,paddingRight:42,appearance:"none",WebkitAppearance:"none",MozAp
1pearance:"none",backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237185A0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")",backgroundRepeat:"no-repeat",backgroundPosition:"right 16px center",backgroundSize:"12px"};function eq(){let[e,t]=(0,n.useState)(!1),[i,s]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1),d=async e=>{e.preventDefault();let i=new FormData(e.currentTarget);if(!i.get("company")){s(!0),a(!1);try{if(!(g&&!g.includes("your-form-id")))throw Error("form endpoint not configured");let e=await fetch(g,{method:"POST",body:i,headers:{Accept:"application/json"}});if(!e.ok)throw Error("form submit failed: ".concat(e.status));V("contact_form"),t(!0)}catch(e){a(!0)}s(!1)}};return(0,r.jsxs)(el,{active:"contact",title:"Contact Us, SureHeat Services",description:"Get a free quote or book a plumber in West & North London. Call 07969 775011 or send us a message and we'll get straight back to you.",children:[(0,r.jsx)(eh,{faq:!0}),(0,r.jsx)(en,{eyebrow:"Get in touch",title:"Book a plumber or get a free quote",subtitle:"Call us for emergencies, or drop us a message below and we'll be in touch fast, usually within the hour during opening hours.",image:"/img/plumbing/tap.jpg",imageAlt:"Get in touch with SureHeat Services",badges:["Emergency call-outs","Free quotes","Gas Safe registered"]}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",lg:"1.1fr 0.9fr"},gap:{base:10,lg:14},alignItems:"start",children:[(0,r.jsx)(l.xu,{bg:K,borderRadius:20,p:{base:6,md:9},children:e?(0,r.jsxs)(l.xu,{textAlign:"center",py:10,children:[(0,r.jsx)(l.xu,{w:72,h:72,mx:"auto",borderRadius:999,bg:Z+"1A",display:"flex",alignItems:"center",justifyContent:"center",mb:5,children:(0,r.jsx)(l.xu,{as:c.FJM,color:Z,fontSize:34})}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:24,color:Q,mb:2,children:"Thanks, message received!"}),(0,r.jsxs)(l.xv,{fontSize:16,color:"#4B5E78",maxW:"420px",mx:"auto",children:["We'll get back to you shortly. For anything urgent, give us a ring on ",h,"."]})]}):(0,r.jsxs)("form",{onSubmit:d,children:[(0,r.jsx)(l.xv,{fontWeight:800,fontSize:22,color:Q,mb:6,children:"Request a callback"}),(0,r.jsx)("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off",style:{position:"absolute",left:"-9999px",width:1,height:1},"aria-hidden":"true"}),(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",sm:"1fr 1fr"},gap:5,mb:5,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:eL,children:"Your name"}),(0,r.jsx)("input",{style:ez,type:"text",name:"name",placeholder:"Jane Smith",required:!0})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:eL,children:"Phone number"}),(0,r.jsx)("input",{style:ez,type:"tel",name:"phone",placeholder:"07123 456789",required:!0})]})]}),(0,r.jsxs)(l.xu,{mb:5,children:[(0,r.jsx)("label",{style:eL,children:"Email address"}),(0,r.jsx)("input",{style:ez,type:"email",name:"email",placeholder:"[email protected]"})]}),(0,r.jsxs)(l.xu,{mb:5,children:[(0,r.jsx)("label",{style:eL,children:"What do you need help with?"}),(0,r.jsxs)("select",{style:eD,name:"service",defaultValue:"",children:[(0,r.jsx)("option",{value:"",disabled:!0,children:"Select a serviceâ¦"}),m.map(e=>(0,r.jsx)("option",{value:e.slug,children:e.title},e.slug)),(0,r.jsx)("option",{value:"other",children:"Something else"})]})]}),(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",sm:"1fr 1fr"},gap:5,mb:5,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:eL,children:"Preferred date"}),(0,r.jsx)("input",{style:ez,type:"date",name:"preferred_date"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{style:eL,children:"Preferred time"}),(0,r.jsxs)("select",{style:eD,name:"preferred_time",defaultValue:"",children:[(0,r.jsx)("option",{value:"",children:"No preference"}),(0,r.jsx)("option",{value:"morning",children:"Morning (8am-12pm)"}),(0,r.jsx)("option",{value:"afternoon",children:"Afternoon (12pm-5pm)"}),(0,r.jsx)("option",{value:"evening",children:"Evening (5pm-8pm)"}),(0,r.jsx)("option",{value:"emergency",children:"ASAP / emergency"})]})]})]}),(0,r.jsxs)(l.xu,{mb:6,children:[(0,r.jsx)("label",{style:eL,children:"Message"}),(0,r.jsx)("textarea",{style:{...ez,minHeight:120,resize:"vertical"},name:"message",placeholder:"Tell us a bit about the jobâ¦"})]}),o&&(0,r.jsxs)(l.xu,{bg:"#FDF0F0",borderRadius:12,px:5,py:4,mb:5,children:[(0,r.jsx)(l.xv,{fontSize:14,fontWeight:700,color:"#B0322D",mb:1,children:"Your message didn't send"}),(0,r.jsxs)(l.xv,{fontSize:14,color:"#7A4A48",lineHeight:1.6,children:["Sorry about that. Please try again, or call us on"," ",(0,r.jsx)(l.xu,{as:"a",href:p,color:"#B0322D",fontWeight:700,onClick:()=>W("contact_form_error"),children:h})," ","and we'll sort it straight away."]})]}),(0,r.jsx)("button",{type:"submit",disabled:i,style:{width:"100%",padding:"15px 20px",fontSize:16,fontWeight:700,color:"#FFFFFF",background:Z,border:"none",borderRadius:999,cursor:i?"default":"pointer",opacity:i?.7:1},children:i?"Sendingâ¦":"Send message"}),(0,r.jsx)(l.xu,{mt:4,children:(0,r.jsx)(U,{source:"contact_form",label:"Message us on WhatsApp",full:!0})}),(0,r.jsx)(l.xv,{fontSize:13,color:"#7185A0",textAlign:"center",mt:4,children:"We aim to reply within the hour"})]})}),(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(e$,{icon:c.DNl,label:"Call us",value:h,href:p,onClick:()=>W("contact_row")}),(0,r.jsx)(e$,{icon:c.xpo,label:"WhatsApp",value:"Message us",href:f,onClick:()=>B("contact_row")}),(0,r.jsx)(e$,{icon:c.SRX,label:"Email",value:u.siteConfig.helpEmail,href:"mailto:".concat(u.siteConfig.helpEmail)}),(0,r.jsx)(e$,{icon:c.qyc,label:"Opening hours",value:"8am to 6pm \xb7 emergency line after hours"}),(0,r.jsx)(l.xu,{mt:8,children:(0,r.jsx)(G,{query:"West London, London, UK"})})]})]})})]})}function e$(e){let{icon:t,label:i,value:n,href:s,onClick:o}=e,a=(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:4,bg:K,borderRadius:16,p:5,mb:4,children:[(0,r.jsx)(l.xu,{w:52,h:52,flexShrink:0,borderRadius:13,bg:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",children:(0,r.jsx)(l.xu,{as:t,color:Z,fontSize:22})}),(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(l.xv,{fontSize:13,color:"#7185A0",fontWeight:600,children:i}),(0,r.jsx)(l.xv,{fontSize:17,fontWeight:800,color:Q,children:n})]})]});return s?(0,r.jsx)(l.xu,{as:"a",href:s,onClick:o,textDecoration:"none",display:"block",children:a}):a}function eH(){return(0,r.jsxs)(el,{active:"services",title:"Areas We Cover, SureHeat Services",description:"Local plumbers covering West & North London, Ealing, Chiswick, Richmond, Chelsea, Fulham, Kensington and more. Emergency call-out
1s and free quotes.",children:[(0,r.jsx)(eh,{}),(0,r.jsx)(en,{eyebrow:"Coverage",title:"Areas we cover across London",subtitle:"Based locally and on the road every day. Tap your area for local plumbing info, or call us, if you're nearby, we've got you.",image:"/img/plumbing/engineer.jpg",imageAlt:"Plumbers covering London",badges:["West London","North London","Central London"]}),(0,r.jsxs)(es,{bg:"#FFFFFF",children:[(0,r.jsx)(l.xu,{mb:{base:8,md:12},children:(0,r.jsx)(ee,{eyebrow:"Find your area",title:"Local plumbers, near you"})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",lg:"repeat(4, 1fr)"},gap:4,children:w.map(e=>(0,r.jsxs)(l.xu,{as:"a",href:"/areas/".concat(L(e)),display:"flex",alignItems:"center",justifyContent:"space-between",gap:3,bg:K,borderRadius:14,px:5,py:4,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:[(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:2.5,children:[(0,r.jsx)(l.xu,{as:c.Nh4,color:Z,fontSize:15}),(0,r.jsx)(l.xv,{fontSize:15,fontWeight:700,color:Q,children:e})]}),(0,r.jsx)(l.xu,{as:c.Z1Y,color:"#B7C4D6",fontSize:13})]},e))})]}),(0,r.jsx)(eP,{})]})}function eN(e){let{area:t}=e,i=w.filter(e=>e!==t).slice(0,8);return(0,r.jsxs)(el,{active:"services",title:"Plumber in ".concat(t,", SureHeat Services"),description:"Local Gas Safe registered plumbers in ".concat(t,". Emergency call-outs, boiler repairs, bathrooms and blocked drains. Free quotes and fast response."),children:[(0,r.jsx)(eh,{faq:!0}),(0,r.jsx)(en,{eyebrow:"Areas we cover",title:"Your local plumber in ".concat(t),subtitle:"Fast, friendly and fully Gas Safe registered plumbers serving ".concat(t," and the surrounding area. From emergencies to full bathroom installs, free quotes and honest advice."),image:"/img/plumbing/engineer.jpg",imageAlt:"Plumber in ".concat(t),badges:["Free quotes","Gas Safe registered","10/10 on Checkatrade"]}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",lg:"1fr 1fr"},gap:{base:10,lg:16},alignItems:"center",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(ee,{align:"left",eyebrow:t,title:"Plumbing & heating in ".concat(t)}),(0,r.jsxs)(l.xv,{mt:5,fontSize:16,lineHeight:1.8,color:"#4B5E78",children:["We work in ",t," every single week, so we know the area and the kind of properties, and the plumbing quirks, that come with it. Whether it's a period terrace or a new-build flat, there's a good chance we've fixed exactly your problem just round the corner."]}),(0,r.jsx)(l.xu,{mt:7,children:["Local engineers, often with you within the hour","Free quotes across "+t,"Gas Safe registered & fully insured","G3 certified for unvented hot water"].map(e=>(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:3,mb:3,children:[(0,r.jsx)(l.xu,{as:c.FJM,color:Z,fontSize:16,flexShrink:0}),(0,r.jsx)(l.xv,{fontSize:15,color:"#3C4D63",children:e})]},e))}),(0,r.jsx)(l.xu,{mt:7,children:(0,r.jsxs)(J,{href:"/contact",children:["Get a free quote in ",t," ",(0,r.jsx)(l.xu,{as:c.Z1Y,fontSize:13})]})})]}),(0,r.jsx)(er,{src:"/img/plumbing/bath.jpg",alt:"Plumbing work in ".concat(t),ratio:"4 / 3.2"})]})}),(0,r.jsxs)(es,{bg:K,children:[(0,r.jsx)(l.xu,{mb:{base:10,md:14},children:(0,r.jsx)(ee,{eyebrow:"Our services",title:"What we do in ".concat(t)})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:6,children:m.map(e=>(0,r.jsx)(ew,{service:e,href:"/plumber/".concat(E(e.slug),"-in-").concat(L(t))},e.slug))})]}),(0,r.jsx)(ej,{bg:"#FFFFFF"}),(0,r.jsxs)(es,{bg:K,children:[(0,r.jsx)(l.xu,{mb:{base:8,md:10},children:(0,r.jsx)(ee,{eyebrow:"Boiler brands",title:"Boiler servicing in ".concat(t)})}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"center",children:I.map(e=>(0,r.jsx)(l.xu,{as:"a",href:"/boiler-servicing/".concat(T(e),"-in-").concat(L(t)),bg:"#FFFFFF",borderRadius:999,px:5,py:2.5,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:(0,r.jsxs)(l.xv,{fontSize:14,fontWeight:600,color:Q,children:[e," servicing in ",t]})},e))})]}),(0,r.jsx)(eE,{limit:3,bg:"#FFFFFF"}),(0,r.jsxs)(es,{bg:K,children:[(0,r.jsx)(l.xu,{mb:{base:8,md:10},children:(0,r.jsx)(ee,{eyebrow:"Nearby",title:"We also cover"})}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"center",children:i.map(e=>(0,r.jsx)(l.xu,{as:"a",href:"/areas/".concat(L(e)),bg:"#FFFFFF",borderRadius:999,px:5,py:2.5,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:(0,r.jsxs)(l.xv,{fontSize:14,fontWeight:600,color:Q,children:["Plumber in ",e]})},e))})]}),(0,r.jsx)(eP,{})]})}function eW(e){let{brand:t}=e,i=I.filter(e=>e!==t),n={"@context":"https://schema.org","@type":"Service",name:"".concat(t," boiler servicing & repair"),serviceType:"".concat(t," boiler service, repair & installation"),areaServed:"London",provider:{"@id":"".concat(u.siteConfig.domain,"/#business")}};return(0,r.jsxs)(el,{active:"services",title:"".concat(t," Boiler Servicing, Repair & Installation, SureHeat Services"),description:"Gas Safe registered ".concat(t," boiler servicing, repair and installation across London. Fixed prices and free quotes."),children:[(0,r.jsx)(eh,{faq:!0,extra:n}),(0,r.jsx)(en,{eyebrow:"Boiler brand",title:"".concat(t," boiler servicing & repair"),subtitle:"Gas Safe registered ".concat(t," specialists across London. Servicing, fault-finding, repairs and full installations, all at honest fixed prices."),image:"/img/plumbing/work1.jpg",imageAlt:"".concat(t," boiler servicing"),badges:["Gas Safe registered","West & North London","10/10 on Checkatrade"]}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",lg:"1fr 1fr"},gap:{base:10,lg:16},alignItems:"center",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(l.xu,{w:64,h:64,borderRadius:16,bg:K,display:"flex",alignItems:"center",justifyContent:"center",mb:6,children:(0,r.jsx)(l.xu,{as:c.ZBn,color:Z,fontSize:28})}),(0,r.jsx)(ee,{align:"left",title:"Trusted ".concat(t," engineers")}),(0,r.jsxs)(l.xv,{mt:5,fontSize:16,lineHeight:1.8,color:"#4B5E78",children:["Our engineers service and repair ",t," boilers day in, day out. We carry common ",t," parts on the van, so most faults are fixed on the first visit, and we'll always give you an honest, fixed price before we start."]}),(0,r.jsx)(l.xu,{mt:7,children:["Annual ".concat(t," boiler servicing"),"".concat(t," fault-finding & repair"),"New ".concat(t," boiler installation & quotes"),"Free quotes & honest advice"].map(e=>(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:3,mb:3,children:[(0,r.jsx)(l.xu,{as:c.FJM,color:Z,fontSize:16,flexShrink:0}),(0,r.jsx)(l.xv,{fontSize:15,color:"#3C4D63",children:e})]},e))}),(0,r.jsx)(l.xu,{mt:7,children:(0,r.jsxs)(J,{href:"/contact",children:["Book ",t," servicing"," ",(0,r.jsx)(l.xu,{as:c.Z1Y,fontSize:13})]})})]}),(0,r.jsx)(er,{src:"/img/plumbing/work1.jpg",alt:"".concat(t," boiler servicing"),ratio:"4 / 3.4"})]})}),(0,r.jsx)(ej,{}),(0,r.jsx)(eS,{}),(0,r.jsxs)(es,{bg:K,children:[(0,r.jsx)(l.xu,{mb:{base:8,md:12},children:(0,r.jsx)(ee,{eyebrow:"Areas covered",title:"".concat(t," servicing across London")})}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"center",children:w.map(e=>(0,r.jsx)(l.xu,{as:"a",href:"/boiler-servicing/".concat(T(t),"-in-").concat(L(e)),bg:"#FFFFFF",borderRadius:999,px:5,py:2.5,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:(0,r.jsxs)(l.xv,{fontSize:14,fontWeight:600,color:Q,children:[t," in ",e]})},e))})]}),(0,r.jsxs)(es,{bg:"#FFFFFF",children:[(0,r.jsx)(l.xu,{mb:{base:6,md:8},children:(0,r.jsx)(ee,{eyebrow:"Other brands",title:"We service every major brand"})}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"center",children:i.map(e=>(0,r.jsx)(l.xu,{as:"a",href:"/boiler-servicing/".concat(T(e)),bg:K,borderRadius:999,px:5,py:2.5,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:(0,r.jsx)(l.xv,{fontSize:14,fontWeight:600,color:Q,children:e})},e))})]}),(0,r.jsx)(eP,{})]})}function eB(e){let{brand:t,area:i}=e,n=w.filter(e=>e!==i).slice(0,8),s=I.filter(e=>e!==t),o={"@context":"https://schema.org","@type":"Service",name:"".concat(t," boiler servicing in ").concat(i),serviceType:"".concat(t," boiler service & repair"),areaServed:{"@type":"City",name:i},provider:{"@id":"".concat(u.siteConfig.domain,"/#business")}};return(0,r.jsxs)(el,{active:"services",title:"".concat(t," Servicing in ").concat(i,", SureHeat Services"),description:"Gas Safe registered ".concat(t," boiler servicing, repair and installation in ").concat(i,". Fixed prices and same-day appointments available."),children:[(0,r.jsx)(eh,{faq:!0,extra:o}),(0,r.jsx)(en,{eyebrow:"".concat(t," \xb7 ").concat(i),title:"".concat(t," servicing in ").concat(i),subtitle:"Local Gas Safe registered engineers servicing, repairing and installing ".concat(t," boilers across ").concat(i,". Fixed prices and honest advice."),image:"/img/plumbing/work1.jpg",imageAlt:"".concat(t," boiler servicing in ").concat(i),badges:["Gas Safe registered","Parts on the van","Same-day available"]}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",lg:"1fr 1fr"},gap:{base:10,lg:16},alignItems:"center",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(l.xu,{w:64,h:64,borderRadius:16,bg:K,display:"flex",alignItems:"center",justifyContent:"center",mb:6,children:(0,r.jsx)(l.xu,{as:c.ZBn,color:Z,fontSize:28})}),(0,r.jsx)(ee,{align:"left",title:"Your local ".concat(t," engineers in ").concat(i)}),(0,r.jsxs)(l.xv,{mt:5,fontSize:16,lineHeight:1.8,color:"#4B5E78",children:["Whether your ",t," boiler needs its annual service, has thrown a fault co
1de, or it's time for a brand-new install, our ",i," ","engineers know ",t," systems inside out. We carry common ",t," ","parts on the van, so most repairs are sorted on the first visit."]}),(0,r.jsx)(l.xu,{mt:7,children:["Annual ".concat(t," boiler service from \xa379"),"".concat(t," fault-finding & repair"),"New ".concat(t," boiler installation"),"Free quotes in ".concat(i)].map(e=>(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:3,mb:3,children:[(0,r.jsx)(l.xu,{as:c.FJM,color:Z,fontSize:16,flexShrink:0}),(0,r.jsx)(l.xv,{fontSize:15,color:"#3C4D63",children:e})]},e))}),(0,r.jsx)(l.xu,{mt:7,children:(0,r.jsxs)(J,{href:"/contact",children:["Book ",t," servicing in ",i," ",(0,r.jsx)(l.xu,{as:c.Z1Y,fontSize:13})]})})]}),(0,r.jsx)(er,{src:"/img/plumbing/work1.jpg",alt:"".concat(t," boiler servicing in ").concat(i),ratio:"4 / 3.2"})]})}),(0,r.jsx)(ej,{}),(0,r.jsxs)(es,{bg:"#FFFFFF",children:[(0,r.jsx)(l.xu,{mb:{base:8,md:10},children:(0,r.jsx)(ee,{eyebrow:"Other brands",title:"More boilers we service in ".concat(i)})}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"center",mb:10,children:s.map(e=>(0,r.jsx)(l.xu,{as:"a",href:"/boiler-servicing/".concat(T(e),"-in-").concat(L(i)),bg:K,borderRadius:999,px:5,py:2.5,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:(0,r.jsxs)(l.xv,{fontSize:14,fontWeight:600,color:Q,children:[e," in ",i]})},e))}),(0,r.jsx)(l.xu,{mb:{base:6,md:8},children:(0,r.jsx)(ee,{eyebrow:"Other areas",title:"".concat(t," servicing nearby")})}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"center",children:n.map(e=>(0,r.jsx)(l.xu,{as:"a",href:"/boiler-servicing/".concat(T(t),"-in-").concat(L(e)),bg:K,borderRadius:999,px:5,py:2.5,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:(0,r.jsxs)(l.xv,{fontSize:14,fontWeight:600,color:Q,children:[t," in ",e]})},e))})]}),(0,r.jsx)(eP,{})]})}let eV={emergency:"/img/plumbing/pipes.jpg","boilers-heating":"/img/plumbing/work1.jpg",bathrooms:"/img/plumbing/bathroom.jpg",drainage:"/img/plumbing/pipes.jpg","water-heaters":"/img/plumbing/tap.jpg",general:"/img/plumbing/work2.jpg"};function eU(e){var t;let{service:i,area:n}=e,s=(null===(t=k[i.slug])||void 0===t?void 0:t.noun)||i.title,o="".concat(s," in ").concat(n),a=w.filter(e=>e!==n).slice(0,8),d=m.filter(e=>e.slug!==i.slug),h={"@context":"https://schema.org","@type":"Service",name:o,description:i.blurb,serviceType:i.title,areaServed:{"@type":"City",name:n},provider:{"@id":"".concat(u.siteConfig.domain,"/#business")}};return(0,r.jsxs)(el,{active:"services",title:"".concat(o,", SureHeat Services"),description:"".concat(s," in ").concat(n,". ").concat(i.blurb," Gas Safe registered, free quotes."),children:[(0,r.jsx)(eh,{faq:!0,extra:h}),(0,r.jsx)(en,{eyebrow:"".concat(i.title," \xb7 ").concat(n),title:o,subtitle:"Local, Gas Safe registered engineers for ".concat(i.title.toLowerCase()," in ").concat(n,". ").concat(i.blurb," Honest advice before any work starts."),image:eV[i.slug]||"/img/plumbing/pipes.jpg",imageAlt:o,badges:["Free quotes","Gas Safe registered","10/10 on Checkatrade"]}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",lg:"1.05fr 0.95fr"},gap:{base:10,lg:14},alignItems:"center",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(l.xu,{w:64,h:64,borderRadius:16,bg:K,display:"flex",alignItems:"center",justifyContent:"center",mb:6,children:(0,r.jsx)(l.xu,{as:i.icon,color:Z,fontSize:28})}),(0,r.jsx)(ee,{align:"left",title:"".concat(i.title," in ").concat(n,", done properly")}),(0,r.jsx)(l.xv,{mt:5,fontSize:16,lineHeight:1.8,color:"#4B5E78",children:i.intro}),(0,r.jsxs)(l.xv,{mt:4,fontSize:16,lineHeight:1.8,color:"#4B5E78",children:["We cover ",n," and the surrounding area every week, so a local engineer is rarely far away. Call now for"," ",i.title.toLowerCase()," in ",n," with a fair, fixed price agreed before we start."]}),(0,r.jsx)(l.xu,{mt:7,children:i.includes.slice(0,4).map(e=>(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:3,mb:3,children:[(0,r.jsx)(l.xu,{as:c.FJM,color:Z,fontSize:16,flexShrink:0}),(0,r.jsx)(l.xv,{fontSize:15,color:"#3C4D63",children:e})]},e))}),(0,r.jsx)(l.xu,{mt:7,children:(0,r.jsxs)(J,{href:"/contact",children:["Get a free quote in ",n," ",(0,r.jsx)(l.xu,{as:c.Z1Y,fontSize:13})]})})]}),(0,r.jsx)(er,{src:eV[i.slug]||"/img/plumbing/pipes.jpg",alt:o,ratio:"4 / 3.4"})]})}),(0,r.jsx)(ej,{}),(0,r.jsxs)(es,{bg:"#FFFFFF",children:[(0,r.jsx)(l.xu,{mb:{base:8,md:10},children:(0,r.jsx)(ee,{eyebrow:"More in this area",title:"Other plumbing services in ".concat(n)})}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"center",children:d.map(e=>(0,r.jsx)(l.xu,{as:"a",href:"/plumber/".concat(E(e.slug),"-in-").concat(L(n)),bg:K,borderRadius:999,px:5,py:2.5,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:(0,r.jsxs)(l.xv,{fontSize:14,fontWeight:600,color:Q,children:[e.title," in ",n]})},e.slug))})]}),(0,r.jsx)(eE,{limit:3}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",lg:"1fr 1fr"},gap:{base:8,lg:14},alignItems:"center",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(ee,{align:"left",eyebrow:"Nearby",title:"".concat(s," near ").concat(n)}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:3,mt:7,children:a.map(e=>(0,r.jsx)(l.xu,{as:"a",href:"/plumber/".concat(E(i.slug),"-in-").concat(L(e)),bg:K,borderRadius:999,px:5,py:2.5,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:(0,r.jsx)(l.xv,{fontSize:14,fontWeight:600,color:Q,children:e})},e))})]}),(0,r.jsx)(er,{src:eV[i.slug]||"/img/plumbing/pipes.jpg",alt:"".concat(s," in ").concat(n),ratio:"4 / 3.2"})]})}),(0,r.jsx)(eP,{})]})}let eG={emergency:"/img/plumbing/pipes.jpg","boilers-heating":"/img/plumbing/work1.jpg",bathrooms:"/img/plumbing/bathroom.jpg",drainage:"/img/plumbing/pipes.jpg","water-heaters":"/img/plumbing/tap.jpg",general:"/img/plumbing/work2.jpg"};function eQ(e){let{slug:t}=e,i=S(t);if(!i)return null;let n=i.icon,s=m.filter(e=>e.slug!==t),o={"@context":"https://schema.org","@type":"Service",name:i.title,de
1scription:i.blurb,provider:{"@id":"".concat(u.siteConfig.domain,"/#business")},areaServed:"London",serviceType:i.title};return(0,r.jsxs)(el,{active:"services",title:"".concat(i.title," in London, SureHeat Services"),description:i.blurb,children:[(0,r.jsx)(eh,{extra:o}),(0,r.jsx)(en,{eyebrow:"Service",title:"".concat(i.title," in London"),subtitle:i.blurb}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",lg:"1.05fr 0.95fr"},gap:{base:10,lg:14},alignItems:"center",children:[(0,r.jsxs)(l.xu,{children:[(0,r.jsx)(l.xu,{w:64,h:64,borderRadius:16,bg:K,display:"flex",alignItems:"center",justifyContent:"center",mb:6,children:(0,r.jsx)(l.xu,{as:n,color:Z,fontSize:28})}),(0,r.jsx)(ee,{align:"left",title:"Reliable ".concat(i.title.toLowerCase())}),(0,r.jsx)(l.xv,{mt:5,fontSize:16,lineHeight:1.8,color:"#4B5E78",children:i.intro}),(0,r.jsxs)(l.xu,{display:"flex",flexWrap:"wrap",gap:4,mt:7,children:[(0,r.jsxs)(J,{href:"/contact",children:["Get a free quote ",(0,r.jsx)(l.xu,{as:c.Z1Y,fontSize:13})]}),(0,r.jsxs)(l.xu,{as:"a",href:p,onClick:()=>W("service_detail"),display:"inline-flex",alignItems:"center",gap:2,fontWeight:700,fontSize:16,color:Q,px:2,py:3.5,textDecoration:"none",children:[(0,r.jsx)(l.xu,{as:c.DNl,color:Z,fontSize:14})," ",h]})]})]}),(0,r.jsx)(er,{src:eG[t]||"/img/plumbing/pipes.jpg",alt:i.title,ratio:"4 / 3.4"})]})}),(0,r.jsxs)(es,{bg:K,children:[(0,r.jsx)(l.xu,{mb:{base:8,md:12},children:(0,r.jsx)(ee,{eyebrow:"What's included",title:"Our ".concat(i.title.toLowerCase()," covers")})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",sm:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:4,children:i.includes.map(e=>(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:3,bg:"#FFFFFF",borderRadius:14,px:5,py:4,children:[(0,r.jsx)(l.xu,{as:c.FJM,color:Z,fontSize:16,flexShrink:0}),(0,r.jsx)(l.xv,{fontSize:15,fontWeight:600,color:Q,children:e})]},e))})]}),(0,r.jsx)(ej,{}),(0,r.jsx)(eS,{}),(0,r.jsxs)(es,{bg:K,children:[(0,r.jsx)(l.xu,{mb:{base:8,md:12},children:(0,r.jsx)(ee,{eyebrow:"More services",title:"We can help with that too"})}),(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",sm:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:5,children:s.map(e=>(0,r.jsxs)(l.xu,{as:"a",href:"/services/".concat(e.slug),display:"flex",alignItems:"center",gap:4,bg:"#FFFFFF",borderRadius:14,p:5,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:[(0,r.jsx)(l.xu,{w:48,h:48,flexShrink:0,borderRadius:12,bg:K,display:"flex",alignItems:"center",justifyContent:"center",children:(0,r.jsx)(l.xu,{as:e.icon,color:Z,fontSize:20})}),(0,r.jsx)(l.xv,{fontWeight:700,fontSize:16,color:Q,children:e.title})]},e.slug))})]}),(0,r.jsx)(eP,{})]})}function eZ(){return(0,r.jsxs)(el,{active:"services",title:"Plumbing Guides & Advice, SureHeat Services",description:"Free, no-nonsense plumbing and heating advice from London's SureHeat Services. How to bleed a radiator, what boiler noises mean, where your stopcock is and more.",children:[(0,r.jsx)(eh,{}),(0,r.jsx)(en,{eyebrow:"Advice",title:"Plumbing guides & honest advice",subtitle:"Free, jargon-free tips to help you understand what's going on, and when it's time to call a pro.",image:"/img/plumbing/work2.jpg",imageAlt:"Plumbing tools and advice"}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsx)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",md:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:6,children:z.map(e=>(0,r.jsxs)(l.xu,{as:"a",href:"/guides/".concat(e.slug),display:"flex",flexDirection:"column",bg:"#FFFFFF",borderRadius:18,p:7,textDecoration:"none",transition:"transform 0.2s ease",_hover:{transform:"translateY(-4px)"},children:[(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:2,mb:4,children:[(0,r.jsx)(l.xu,{as:c.fSQ,color:Z,fontSize:13}),(0,r.jsxs)(l.xv,{fontSize:13,fontWeight:600,color:"#7185A0",children:[e.readMins," min read"]})]}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:19,color:Q,mb:3,lineHeight:1.25,children:e.title}),(0,r.jsx)(l.xv,{fontSize:15,lineHeight:1.6,color:"#4B5E78",mb:5,children:e.excerpt}),(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:2,color:Z,fontWeight:700,fontSize:14,mt:"auto",children:["Read guide ",(0,r.jsx)(l.xu,{as:c.Z1Y,fontSize:12})]})]},e.slug))})}),(0,r.jsx)(eP,{})]})}function eK(e){let{slug:t}=e,i=z.find(e=>e.slug===t);if(!i)return null;let n={"@context":"https://schema.org","@type":"Article",headline:i.title,de
1scription:i.excerpt,author:{"@type":"Organization",name:u.siteConfig.name},publisher:{"@id":"".concat(u.siteConfig.domain,"/#business")}};return(0,r.jsxs)(el,{active:"services",title:"".concat(i.title,", SureHeat Services"),description:i.excerpt,children:[(0,r.jsx)(eh,{extra:n}),(0,r.jsx)(en,{eyebrow:"".concat(i.readMins," min read"),title:i.title,subtitle:i.excerpt}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{maxW:"760px",mx:"auto",children:[i.body.map((e,t)=>(0,r.jsx)(l.xv,{fontSize:17,lineHeight:1.85,color:"#3C4D63",mb:6,children:e},t)),(0,r.jsxs)(l.xu,{mt:8,bg:K,borderRadius:18,p:8,textAlign:"center",children:[(0,r.jsx)(l.xv,{fontWeight:800,fontSize:22,color:Q,mb:3,children:"Rather leave it to the experts?"}),(0,r.jsx)(l.xv,{fontSize:16,color:"#4B5E78",mb:6,maxW:"480px",mx:"auto",children:"Our friendly engineers are a phone call away, free fixed quotes."}),(0,r.jsx)(l.xu,{display:"flex",justifyContent:"center",children:(0,r.jsxs)(l.xu,{as:"a",href:"/contact",display:"inline-flex",alignItems:"center",gap:2,bg:Z,color:"#FFFFFF",fontWeight:700,fontSize:16,px:7,py:3.5,borderRadius:999,textDecoration:"none",children:["Get a free quote ",(0,r.jsx)(l.xu,{as:c.Z1Y,fontSize:13})]})})]})]})})]})}function eY(e){let{children:t}=e;return(0,r.jsx)(l.xv,{fontSize:16,lineHeight:1.8,color:"#3C4D63",mb:5,children:t})}function eJ(e){let{children:t}=e;return(0,r.jsx)(l.xv,{as:"h2",fontWeight:800,fontSize:22,color:Q,mt:9,mb:4,children:t})}function eX(e){let{title:t,eyebrow:i,children:n}=e;return(0,r.jsxs)(el,{active:"home",title:"".concat(t,", SureHeat Services"),description:"".concat(t," for SureHeat Services."),children:[(0,r.jsx)(en,{eyebrow:i,title:t}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{maxW:"760px",mx:"auto",children:[n,(0,r.jsxs)(l.xv,{fontSize:14,color:"#7185A0",mt:10,children:["Questions? Email"," ",(0,r.jsx)(l.xu,{as:"a",href:"mailto:".concat(u.siteConfig.helpEmail),color:Z,textDecoration:"underline",children:u.siteConfig.helpEmail})," ","or call ",h,"."]})]})})]})}function e0(){return(0,r.jsxs)(eX,{title:"Privacy Policy",eyebrow:"Legal",children:[(0,r.jsxs)(eY,{children:["This policy explains how ",u.siteConfig.companyName," (âweâ, âusâ) collects and uses your personal information when you use our website or request our services. We are the data controller for the information you provide."]}),(0,r.jsx)(eJ,{children:"What we collect"}),(0,r.jsx)(eY,{children:"When you contact us or request a quote we may collect your name, phone number, email address, postcode and the details of the work you need. If you call us, we may keep a record of the call for quality and scheduling."}),(0,r.jsx)(eJ,{children:"How we use it"}),(0,r.jsx)(eY,{children:"We use your information only to respond to your enquiry, provide quotes, carry out work, and contact you about your job. We may also use anonymised analytics to understand how our website is used and improve it."}),(0,r.jsx)(eJ,{children:"Who we share it with"}),(0,r.jsx)(eY,{children:"We never sell your data. We only share it with trusted suppliers where strictly necessary to deliver a service (for example a parts supplier), or where required by law."}),(0,r.jsx)(eJ,{children:"Cookies"}),(0,r.jsx)(eY,{children:"Our website uses essential cookies to function and analytics cookies to measure traffic. You can accept or decline non-essential cookies using the banner, and control cookies through your browser settings."}),(0,r.jsx)(eJ,{children:"Your rights"}),(0,r.jsx)(eY,{children:"You have the right to access, correct or delete the personal data we hold about you, and to object to certain processing. To exercise any of these rights, contact us using the details below."})]})}function e1(){return(0,r.jsxs)(eX,{title:"Terms of Service",eyebrow:"Legal",children:[(0,r.jsxs)(eY,{children:["These terms apply to the services provided by ",u.siteConfig.companyName,". By booking work with us you agree to them."]}),(0,r.jsx)(eJ,{children:"Quotes & pricing"}),(0,r.jsx)(eY,{children:"We provide free, no-obligation quotes. Fixed-price work is agreed before we begin. Where work is charged by the hour, we'll make our rates clear up front."}),(0,r.jsx)(eJ,{children:"Our work"}),(0,r.jsx)(eY,{children:"All gas work is carried out by Gas Safe registered engineers. Parts are covered by the manufacturer's warranty."}),(0,r.jsx)(eJ,{children:"Payment"}),(0,r.jsx)(eY,{children:"Payment is due on completion of the work unless otherwise agreed in writing. For larger installations a deposit may be requested before materials are ordered."}),(0,r.jsx)(eJ,{children:"Cancellations"}),(0,r.jsx)(eY,{children:"You can cancel or reschedule a booking by giving us reasonable notice. For booked installations, cancellation after materials have been ordered may incur a charge to cover those costs."}),(0,r.jsx)(eJ,{children:"Liability"}),(0,r.jsx)(eY,{children:"We carry public liability insurance. Nothing in these terms limits your statutory rights as a consumer under UK law."})]})}let e2=[{label:"Home",href:"/"},{label:"Our services",href:"/services"},{label:"Areas we cover",href:"/areas"},{label:"Get a free quote",href:"/contact"}];function e6(){return(0,r.jsx)(el,{active:"home",title:"Page not found, SureHeat Services",description:"Sorry, we couldn't find that page. Browse our plumbing services or get in touch for a free quote.",noindex:!0,children:(0,r.jsx)(es,{bg:"#FFFFFF",py:{base:20,md:28},children:(0,r.jsxs)(l.xu,{maxW:"640px",mx:"auto",textAlign:"center",children:[(0,r.jsx)(l.xv,{fontWeight:800,fontSize:{base:90,md:120},lineHeight:1,color:K,children:"404"}),(0,r.jsx)(l.xv,{as:"h1",fontWeight:800,fontSize:{base:28,md:36},color:Q,mt:2,children:"We couldn't find that page"}),(0,r.jsx)(l.xv,{fontSize:{base:16,md:18},lineHeight:1.7,color:"#4B5E78",mt:4,children:"It may have moved or never existed. Let's get you back on track, or just give us a ring and we'll help straight away."}),(0,r.jsxs)(l.xu,{display:"flex",flexWrap:"wrap",gap:4,justifyContent:"center",mt:8,children:[(0,r.jsxs)(J,{href:"/",children:["Back to home ",(0,r.jsx)(l.xu,{as:c.Z1Y,fontSize:13})]}),(0,r.jsxs)(l.xu,{as:"a",href:p,onClick:()=>W("not_found"),display:"inline-flex",alignItems:"center",gap:2,fontWeight:700,fontSize:16,color:Q,px:2,py:3.5,textDecoration:"none",children:[(0,r.jsx)(l.xu,{as:c.DNl,color:Z,fontSize:14})," ",h]})]}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"center",mt:10,children:e2.map(e=>(0,r.jsx)(l.xu,{as:"a",href:e.href,bg:K,borderRadius:999,px:5,py:2.5,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:(0,r.jsx)(l.xv,{fontSize:14,fontWeight:600,color:Q,children:e.label})},e.label))})]})})})}function e4(e){let{title:t,icon:i,links:n}=e;return(0,r.jsxs)(l.xu,{bg:K,borderRadius:18,p:7,children:[(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:3,mb:5,children:[(0,r.jsx)(l.xu,{w:42,h:42,borderRadius:11,bg:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",children:(0,r.jsx)(l.xu,{as:i,color:Z,fontSize:18})}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:18,color:Q,children:t})]}),(0,r.jsx)(l.xu,{display:"flex",flexDirection:"column",gap:1,children:n.map(e=>(0,r.jsxs)(l.xu,{as:"a",href:e.href,display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,bg:"transparent",borderRadius:9,px:3,py:2.5,textDecoration:"none",_hover:{bg:"#FFFFFF"},children:[(0,r.jsx)(l.xv,{fontSize:14,fontWeight:600,color:"#3C4D63",children:e.label}),(0,r.jsx)(l.xu,{as:c.Dli,color:"#B7C4D6",fontSize:11})]},e.href))})]})}function e3(e){let{href:t,children:i,bg:n}=e;return(0,r.jsxs)(l.xu,{as:"a",href:t,display:"inline-flex",alignItems:"center",gap:2,bg:n,borderRadius:999,px:4,py:2,textDecoration:"none",_hover:{bg:"#EAF2FD"},children:[(0,r.jsx)(l.xu,{as:c.Nh4,color:Z,fontSize:10}),(0,r.jsx)(l.xv,{fontSize:13,fontWeight:600,color:Q,children:i})]})}function e5(){let e=[{label:"All services",href:"/services"},...m.map(e=>({label:e.title,href:"/services/".concat(e.slug)}))],t=[{label:"All guides",href:"/guides"},...z.map(e=>({label:e.title,href:"/guides/".concat(e.slug)}))],i=I.map(e=>({label:"".concat(e," servicing"),href:"/boiler-servicing/".concat(T(e))}));return(0,r.jsxs)(el,{active:"home",title:"Sitemap, SureHeat Services",description:"A full index of every page on the SureHeat Services website: services, areas covered, boiler brands and guides.",children:[(0,r.jsx)(en,{eyebrow:"Sitemap",title:"Everything on this site",subt
1itle:"A complete index of our pages. Looking for something specific? It's all here."}),(0,r.jsx)(es,{bg:"#FFFFFF",children:(0,r.jsxs)(l.xu,{display:"grid",gridTemplateColumns:{base:"1fr",sm:"repeat(2, 1fr)",lg:"repeat(4, 1fr)"},gap:6,children:[(0,r.jsx)(e4,{title:"Company",icon:c.m17,links:[{label:"Home",href:"/"},{label:"About us",href:"/about"},{label:"Contact",href:"/contact"},{label:"Areas we cover",href:"/areas"},{label:"Privacy policy",href:"/privacy"},{label:"Terms of service",href:"/terms"}]}),(0,r.jsx)(e4,{title:"Services",icon:c.LDL,links:e}),(0,r.jsx)(e4,{title:"Boiler servicing",icon:c.ZBn,links:i}),(0,r.jsx)(e4,{title:"Guides",icon:c.Mp$,links:t})]})}),(0,r.jsxs)(es,{bg:K,children:[(0,r.jsx)(l.xu,{mb:{base:6,md:8},children:(0,r.jsx)(ee,{align:"left",eyebrow:"Areas",title:"Areas we cover"})}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:2.5,children:w.map(e=>(0,r.jsx)(e3,{href:"/areas/".concat(L(e)),bg:"#FFFFFF",children:e},e))})]}),(0,r.jsxs)(es,{bg:"#FFFFFF",children:[(0,r.jsx)(l.xu,{mb:{base:6,md:8},children:(0,r.jsx)(ee,{align:"left",eyebrow:"Boiler servicing",title:"Boiler servicing by area",subtitle:"Servicing, repair and installation for every major brand, in every area we cover."})}),I.map(e=>(0,r.jsxs)(l.xu,{mb:7,children:[(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:2.5,mb:3,children:[(0,r.jsx)(l.xu,{as:c.ZBn,color:Z,fontSize:14}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:16,color:Q,children:e})]}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:2,children:w.map(t=>(0,r.jsx)(e3,{href:"/boiler-servicing/".concat(T(e),"-in-").concat(L(t)),bg:K,children:t},t))})]},e))]}),(0,r.jsxs)(es,{bg:K,children:[(0,r.jsx)(l.xu,{mb:{base:6,md:8},children:(0,r.jsx)(ee,{align:"left",eyebrow:"Local services",title:"Plumbing services by area",subtitle:"Every service, in every area we cover."})}),m.map(e=>{var t;return(0,r.jsxs)(l.xu,{mb:7,children:[(0,r.jsxs)(l.xu,{display:"flex",alignItems:"center",gap:2.5,mb:3,children:[(0,r.jsx)(l.xu,{as:e.icon,color:Z,fontSize:14}),(0,r.jsx)(l.xv,{fontWeight:800,fontSize:16,color:Q,children:(null===(t=k[e.slug])||void 0===t?void 0:t.noun)||e.title})]}),(0,r.jsx)(l.xu,{display:"flex",flexWrap:"wrap",gap:2,children:w.map(t=>(0,r.jsx)(e3,{href:"/plumber/".concat(E(e.slug),"-in-").concat(L(t)),bg:"#FFFFFF",children:t},t))})]},e.slug)})]})]})}},1282:function(e,t,i){"use strict";i.d(t,{X:function(){return l},siteConfig:function(){return c}});var r=i(3454);let n={id:"cohabitate",name:"Cohabitate",tagline:"Turn chores into scores!",logo:"/img/cohabitate-logo.png",logoLong:"/img/cohabitate-logo.png",favicon:"/img/favicon/favicon.ico",domain:"https://cohabitate.app",appDomain:"https://cohabitate.app",helpEmail:"[email protected]",companyName:"APHVN Limited",companyUrl:"https://aphvn.com",companyNote:"APHVN Limited is registered in the United Kingdom. Company number 15968200.",colors:{primary:"#00BFA6",highlightColor:"#5EECD0",primaryHover:"#00D9BC",primaryGlow:"#00BFA644",gradientFrom:"#00BFA6",gradientTo:"#00897B",selectionBg:"#00BFA6",selectionText:"#0A0E14",bgGlow1:"#00BFA6",bgGlow2:"#006B5E"},storeLinks:{ios:"https://apps.apple.com/gb/app/cohabitate/id1631687141",android:"https://play.google.com/store/apps/details?id=io.manolis.cohabitate&hl=en_GB"},socialLinks:{},navItems:[{label:"Features",href:"#features"},{label:"FAQ",href:"#faq"}],ctaLabel:"Download App",ctaHref:"https://apps.apple.com/gb/app/cohabitate/id1631687141"},s={cohabitate:n,panicclean:{id:"panicclean",name:"Panic Clean",tagline:"Make cleaning feel effortless",logo:"/img/panic-clean-logo.png",logoLong:"/img/panic-clean-logo.png",favicon:"/img/favicon/favicon.ico",domain:"https://panicclean.com",appDomain:"https://panicclean.com",helpEmail:"[email protected]",companyName:"APHVN Limited",companyUrl:"https://aphvn.com",companyNote:"APHVN Limited is registered in the United Kingdom. Company number 15968200.",colors:{primary:"#00BFA6",highlightColor:"#5EECD0",primaryHover:"#00D9BC",primaryGlow:"#00BFA644",gradientFrom:"#00BFA6",gradientTo:"#009688",selectionBg:"#00BFA6",selectionText:"#0A0E14",bgGlow1:"#00BFA6",bgGlow2:"#0D1B2A"},storeLinks:{ios:"https://apps.apple.com/us/app/panic-clean-adhd-room-timer/id6761738162",android:"https://play.google.com/store/apps/details?id=io.manolis.adhd"},socialLinks:{},navItems:[{label:"Features",href:"#features"},{label:"FAQ",href:"#faq"}],ctaLabel:"Download App",ctaHref:"https://apps.apple.com/us/app/panic-clean-adhd-room-timer/id6761738162"},pacty:{id:"pacty",name:"Cooked",tagline:"Stick to the gym. Together.",logo:"/img/pacty-logo.png",logoLong:"/img/pacty-logo.png",favicon:"/img/pacty-favicon/favicon.ico",domain:"https://cooked.aphvn.com",appDomain:"https://cooked.aphvn.com",helpEmail:"[email protected]",companyName:"APHVN Limited",companyUrl:"https://aphvn.com",companyNote:"APHVN Limited is registered in the United Kingdom. Company number 15968200.",colors:{primary:"#FF6B35",highlightColor:"#FFA07A",primaryHover:"#FF855C",primaryGlow:"#FF6B3544",gradientFrom:"#FF6B35",gradientTo:"#D14D1F",selectionBg:"#FF6B35",
1selectionText:"#0A0E14",bgGlow1:"#FF6B35",bgGlow2:"#1A0F08"},storeLinks:{ios:"https://apps.apple.com/app/id6770724720",android:"https://play.google.com/store/apps/details?id=io.manolis.pacty&hl=en_GB"},appScheme:"pacty",iosAppStoreId:"6770724720",androidPackage:"io.manolis.pacty",socialLinks:{},navItems:[{label:"Features",href:"#features"},{label:"FAQ",href:"#faq"}],ctaLabel:"Download App",ctaHref:"https://apps.apple.com/app/id6770724720"},quitvape:{id:"quitvape",name:"QuitVape",tagline:"Quit vaping for good.",logo:"/img/quitvape-logo.png",logoLong:"/img/quitvape-logo.png",favicon:"/img/quitvape-icon.png",domain:"https://quitvape.aphvn.com",appDomain:"https://quitvape.aphvn.com",helpEmail:"[email protected]",companyName:"APHVN Limited",companyUrl:"https://aphvn.com",companyNote:"APHVN Limited is registered in the United Kingdom. Company number 15968200.",colors:{primary:"#1E9E6A",highlightColor:"#52D699",primaryHover:"#22B07D",primaryGlow:"#1E9E6A44",gradientFrom:"#1E9E6A",gradientTo:"#15734D",selectionBg:"#1E9E6A",selectionText:"#0A0E14",bgGlow1:"#1E9E6A",bgGlow2:"#0A1930"},storeLinks:{ios:"",android:"https://play.google.com/store/apps/details?id=io.manolis.vapeless"},appScheme:"vapeless",androidPackage:"io.manolis.vapeless",socialLinks:{},navItems:[{label:"Features",href:"#features"},{label:"FAQ",href:"#faq"}],ctaLabel:"Download App",ctaHref:"https://play.google.com/store/apps/details?id=io.manolis.vapeless"},lastword:{id:"lastword",name:"Last Word",tagline:"Learn to shut down the worst people you know.",logo:"/img/lastword-logo.png",logoLong:"/img/lastword-logo.png",favicon:"/img/lastword-icon.png",domain:"https://lastword.aphvn.com",appDomain:"https://lastword.aphvn.com",helpEmail:"[email protected]",companyName:"APHVN Limited",companyUrl:"https://aphvn.com",companyNote:"APHVN Limited is registered in the United Kingdom. Company number 15968200.",colors:{primary:"#268A4E",highlightColor:"#57C688",primaryHover:"#2FA35D",primaryGlow:"#268A4E44",gradientFrom:"#268A4E",gradientTo:"#1B693A",selectionBg:"#268A4E",selectionText:"#FFFFFF",bgGlow1:"#268A4E",bgGlow2:"#0E2417"},storeLinks:{ios:"https://apps.apple.com/gb/app/last-word-political-debate-ai/id6787298859",android:"https://play.google.com/store/apps/details?id=io.manolis.clapback"},appScheme:"clapback",iosAppStoreId:"6787298859",androidPackage:"io.manolis.clapback",socialLinks:{},navItems:[{label:"Features",href:"#features"},{label:"FAQ",href:"#faq"}],ctaLabel:"Download App",ctaHref:"https://apps.apple.com/gb/app/last-word-political-debate-ai/id6787298859"},loov:{id:"loov",name:"Loov",tagline:"Your type. Every time.",logo:"/img/loov-logo.png",logoLong:"/img/loov-logo.png",favicon:"/img/loov-icon.png",domain:"https://loov.aphvn.com",appDomain:"https://loov.aphvn.com",helpEmail:"[email protected]",companyName:"APHVN Limited",companyUrl:"https://aphvn.com",companyNote:"APHVN Limited is registered in the United Kingdom. Company number 15968200.",colors:{primary:"#FF3D77",highlightColor:"#FF7AA2",primaryHover:"#FF5C8D",primaryGlow:"#FF3D7744",gradientFrom:"#FF3D77",gradientTo:"#B33BF6",selectionBg:"#FF3D77",selectionText:"#FFFFFF",bgGlow1:"#FF3D77",bgGlow2:"#3D0F26"},storeLinks:{ios:"",android:"https://play.google.com/store/apps/details?id=io.manolis.dateai"},appScheme:"dateai",androidPackage:"io.manolis.dateai",socialLinks:{},navItems:[{label:"Features",href:"#features"},{label:"FAQ",href:"#faq"}],ctaLabel:"Download App",ctaHref:"https://play.google.com/store/apps/details?id=io.manolis.dateai"},plumbing:{id:"plumbing",name:"SureHeat Services",tagline:"Local plumbers you can actually rely on",logo:"/img/plumbing/sureheat-orb-512.png",logoLong:"/img/plumbing/sureheat-orb-512.png",favicon:"/img/plumbing/favicon.png",domain:"https://sureheatservices.co.uk",appDomain:"https://sureheatservices.co.uk",helpEmail:"[email protected]",companyName:"SureHeat Services Limited",companyUrl:"https://sureheatservices.co.uk",companyNote:"SureHeat Services Limited is registered in England & Wales. Gas Safe registered No. 000000.",colors:{primary:"#1E78F0",highlightColor:"#54AAFF",primaryHover:"#1462CE",primaryGlow:"#1E78F033",gradientFrom:"#1E78F0",gradientTo:"#0C3E9C",selectionBg:"#1E78F0",selectionText:"#FFFFFF",bgGlow1:"#54AAFF",bgGlow2:"#0C3E9C"},storeLinks:{ios:"",android:""},socialLinks:{},navItems:[{label:"Services",href:"/services"},{label:"About",href:"/about"},{label:"Contact",href:"/contact"}],ctaLabel:"Get a Free Quote",ctaHref:"/contact"}};function o(){return s[r.env.NEXT_PUBLIC_SITE||"cohabitate"]||n}let a={"panicclean.com":"panicclean","panicclean.app":"panicclean","cohabitate.app":"cohabitate","cohabitate.com":"cohabitate","cooked.aphvn.com":"pacty","quitvape.app":"quitvape","quitvape.aphvn.com":"quitvape","lastword.aphvn.com":"lastword","loov.aphvn.com":"loov","sureheatservices.co.uk":"plumbing"};function l(e){if(!e)return o();let t=a[e.replace(/^www\./,"").toLowerCase()];return t&&s[t]||o()}let c=o()},1107:function(e,t,i){"use strict";i.d(t,{oM:function(){return $},Ct:function(){return k},xu:function(){return o},zx:function(){return g}
1,W2:function(){return u},iz:function(){return E},kC:function(){return M},Ug:function(){return p},X6:function(){return l},JO:function(){return H},hU:function(){return v},Ee:function(){return S},II:function(){return w},BZ:function(){return D},Z8:function(){return q},rU:function(){return x},fG:function(){return _},AB:function(){return y},aV:function(){return O},DE:function(){return L},HC:function(){return z},MI:function(){return f},$j:function(){return V},Kq:function(){return d},kN:function(){return N},dw:function(){return W},Jf:function(){return B},OK:function(){return I},td:function(){return P},x4:function(){return A},nP:function(){return T},iA:function(){return G},mQ:function(){return R},p3:function(){return Z},Td:function(){return J},xv:function(){return a},Th:function(){return Y},hr:function(){return Q},Tr:function(){return K},gC:function(){return h},qY:function(){return U}});var r=i(5893),n=i(7294),s=i(2114);let o=(0,n.forwardRef)((e,t)=>{let{as:i="div",children:o,className:a,style:l,_hover:c,_groupHover:u,sx:d,dangerouslySetInnerHTML:h,noOfLines:p,...f}=e,[g,v]=(0,n.useState)(window.innerWidth),[m,b]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=()=>v(window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let x=(0,s.y3)(f,g),_=c&&m?(0,s.y3)(c,g):{},y={ref:t,className:a,style:{...x,..._,...p?{display:"-webkit-box",WebkitLineClamp:p,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},...l},onClick:f.onClick,onMouseEnter:c?()=>{var e;b(!0),null===(e=f.onMouseEnter)||void 0===e||e.call(f)}:f.onMouseEnter,onMouseLeave:c?()=>{var e;b(!1),null===(e=f.onMouseLeave)||void 0===e||e.call(f)}:f.onMouseLeave,id:f.id,role:f.role,"aria-label":f["aria-label"],"aria-hidden":f["aria-hidden"],tabIndex:f.tabIndex,title:f.title};return void 0!==f.href&&(y.href=f.href),void 0!==f.target&&(y.target=f.target),void 0!==f.rel&&(y.rel=f.rel),void 0!==f.type&&(y.type=f.type),void 0!==f.src&&(y.src=f.src),void 0!==f.alt&&(y.alt=f.alt),void 0!==f.autoPlay&&(y.autoPlay=f.autoPlay),void 0!==f.muted&&(y.muted=f.muted),void 0!==f.loop&&(y.loop=f.loop),void 0!==f.playsInline&&(y.playsInline=f.playsInline),void 0!==f.controls&&(y.controls=f.controls),void 0!==f.poster&&(y.poster=f.poster),void 0!==f.loading&&(y.loading=f.loading),h&&(y.dangerouslySetInnerHTML=h),(0,r.jsx)(i,{...y,children:o})});o.displayName="Box";let a=(0,n.forwardRef)((e,t)=>{let{as:i="p",...n}=e;return(0,r.jsx)(o,{ref:t,as:i,...n})});a.displayName="Text";let l=(0,n.forwardRef)((e,t)=>{let{as:i="h2",...n}=e;return(0,r.jsx)(o,{ref:t,as:i,...n})});l.displayName="Heading";let c={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px","3xl":"1536px","4xl":"1600px","5xl":"1700px","6xl":"1200px","7xl":"1400px","8xl":"1536px"},u=(0,n.forwardRef)((e,t)=>{let{maxW:i="1200px",px:n={base:16,md:24},mx:s="auto",w:a="100%",centerContent:l,...u}=e,d=c[i]||i;return(0,r.jsx)(o,{ref:t,maxW:d,px:n,mx:s,w:a,...l?{display:"flex",flexDirection:"column",alignItems:"center"}:{},...u})});u.displayName="Container";let d=(0,n.forwardRef)((e,t)=>{let{direction:i="column",spacing:n=4,align:s,justify:a,...l}=e;return(0,r.jsx)(o,{ref:t,display:"flex",flexDirection:i,gap:n,alignItems:s,justifyContent:a,...l})});d.displayName="Stack";let h=(0,n.forwardRef)((e,t)=>{let{align:i="stretch",...n}=e;return(0,r.jsx)(d,{ref:t,direction:"column",align:i,...n})});h.displayName="VStack";let p=(0,n.forwardRef)((e,t)=>{let{align:i="center",...n}=e;return(0,r.jsx)(d,{ref:t,direction:"row",align:i,...n})});p.displayName="HStack",(0,n.forwardRef)((e,t)=>{let{templateColumns:i,templateRows:n,gap:s=4,...a}=e;return(0,r.jsx)(o,{ref:t,display:"grid",gridTemplateColumns:i,gridTemplateRows:n,gap:s,...a})}).displayName="Grid";let f=(0,n.forwardRef)((e,t)=>{let i,{columns:a,spacing:l,spacingX:c,spacingY:u,minChildWidth:d,templateColumns:h,...p}=e,[f,g]=(0,n.useState)(window.innerWidth);if((0,n.useEffect)(()=>{let e=()=>g(window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),void 0!==h)i=(0,s.OX)(h,f);else if(d)i="repeat(auto-fit, minmax(".concat(d,", 1fr))");else if(void 0!==a){let e=(0,s.OX)(a,f);void 0!==e&&(i="repeat(".concat(e,", 1fr)"))}return(0,r.jsx)(o,{ref:t,display:"grid",gridTemplateColumns:i,gap:l,...p})});f.displayName="SimpleGrid";let g=(0,n.forwardRef)((e,t)=>{let{variant:i="solid",colorScheme:n="accent",size:s="md",isDisabled:a=!1,leftIcon:l,rightIcon:c,children:u,type:d="button",...h}=e;return(0,r.jsxs)(o,{ref:t,as:"button",type:d,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:2,borderRadius:8,fontWeight:600,cursor:a?"not-allowed":"pointer",opacity:a?.5:1,transition:"all 0.2s ease",...{sm:{px:3,py:1.5,fontSize:"sm"},md:{px:4,py:2,fontSize:"md"},lg:{px:6,py:3,fontSize:"lg"}}[s],...{solid:{bg:"".concat(n,".200"),color:"black",_hover:{bg:"".concat(n,".300")}},outline:{border:"1px solid",borderColor:"".concat(n,".200"),color:"".concat(n,".200"),bg:"transparent",_hover:{bg:"".concat(n,".200"),color:"black"}},ghost:{bg:"transparent",color:"".concat(n,".200"),_hover:{bg:"dark.300"}}}[i],...h,children:[l,u,c]})});g.displayName="Button";let v=(0,n.forwardRef)((e,t)=>{let{icon:i,...n}=e;return(0,r.jsx)(g,{ref:t,...n,children:i})});v.displayName="IconButton";var m=i(1664),b=i.n(m);let x=(0,n.forwardRef)((e,t)=>{let{href:i="#",isExternal:n,children:s,as:a,...l}=e;return n||i.startsWith("http")?(0,r.jsx)(o,{ref:t,as:"a",href:i,cursor:"pointer",...n?{target:"_blank",rel:"noopener"}:{},...l,children:s}):(0,r.jsx)(b(),{href:i,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(o,{ref:t,as:"a",cursor:"pointer",...l,children:s})})});x.displayName="Link";let _=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,position:"relative",...n,children:i})});_.displayName="LinkBox";let y=(0,n.forwardRef)((e,t)=>{let{href:i="#",isExternal:n,children:s,as:a,...l}=e,c={position:"static",_hover:{textDecoration:"none"},...l},u={content:'""',cursor:"inherit",display:"block",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0};return n||i.startsWith("http")?(0,r.jsxs)(o,{ref:t,as:"a",href:i,cursor:"pointer",...n?{target:"_blank",rel:"noopener"}:{},...c,children:[s,(0,r.jsx)("span",{style:u,"aria-hidden":"true"})]}):(0,r.jsx)(b(),{href:i,passHref:!0,legacyBehavior:!0,children:(0,r.jsxs)(o,{ref:t,as:"a",cursor:"pointer",...c,children:[s,(0,r.jsx)("span",{style:u,"aria-hidden":"true"})]})})});y.displayName="LinkOverlay";let w=(0,n.forwardRef)((e,t)=>{let{value:i,onChange:n,placeholder:s,type:a="text",name:l,disabled:c,required:u,autoComplete:d,bg:h="dark.300",color:p="white",border:f="1px solid",borderColor:g="dark.400",borderRadius:v=8,px:m=4,py:b=2,fontSize:x="md",..._}=e;return(0,r.jsx)(o,{ref:t,as:"input",type:a,value:i,onChange:n,placeholder:s,name:l,disabled:c,required:u,autoComplete:d,bg:h,color:p,border:f,borderColor:g,borderRadius:v,px:m,py:b,fontSize:x,_hover:{borderColor:"accent.200"},..._})});w.displayName="Input",(0,n.forwardRef)((e,t)=>{let{value:i,onChange:n,placeholder:s,name:a,disabled:l,required:c,rows:u=4,bg:d="dark.300",color:h="white",border:p="1px solid",borderColor:f="dark.400",borderRadius:g=8,px:v=4,py:m=2,fontSize:b="md",...x}=e;return(0,r.jsx)(o,{ref:t,as:"textarea",value:i,onChange:n,placeholder:s,name:a,disabled:l,required:c,rows:u,bg:d,color:h,border:p,borderColor:f,borderRadius:g,px:v,py:m,fontSize:b,_hover:{borderColor:"accent.200"},...x})}).displayName="Textarea";var F=i(5675),j=i.n(F);let S=(0,n.forwardRef)((e,t)=>{let{src:i,alt:a,width:l,height:c,objectFit:u="contain",objectPosition:d="center",loading:h,priority:p,quality:f,fill:g,h:v,w:m,...b}
1=e,[x,_]=(0,n.useState)(window.innerWidth);(0,n.useEffect)(()=>{let e=()=>_(window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let y=v?(0,s.lp)((0,s.OX)(v,x)):void 0,w=m?(0,s.lp)((0,s.OX)(m,x)):void 0;return g?(0,r.jsx)(o,{position:"relative",overflow:"hidden",h:v,w:m,...b,children:(0,r.jsx)(j(),{src:i,alt:a,fill:!0,style:{objectFit:u,objectPosition:d},loading:h,priority:p,quality:f})}):l&&c?(0,r.jsx)(o,{h:v,w:m,...b,children:(0,r.jsx)(j(),{ref:t,src:i,alt:a,width:l,height:c,style:{objectFit:u,objectPosition:d},loading:h,priority:p,quality:f})}):(0,r.jsx)(o,{ref:t,as:"img",src:i,alt:a,objectFit:u,objectPosition:d,h:v,w:m,...b,style:{height:y,width:w,objectFit:u,...b.style}})});S.displayName="Image";let k=(0,n.forwardRef)((e,t)=>{let{colorScheme:i="gray",variant:n="solid",children:s,...a}=e;return(0,r.jsx)(o,{ref:t,as:"span",display:"inline-flex",alignItems:"center",px:2,py:.5,fontSize:"xs",fontWeight:600,borderRadius:4,...{solid:{bg:"".concat(i,".200"),color:"accent"===i?"black":"white"},subtle:{bg:"".concat(i,".100"),color:"".concat(i,".900")}}[n],...a,children:s})});k.displayName="Badge";let E=(0,n.forwardRef)((e,t)=>{let{orientation:i="horizontal",borderColor:n="dark.400",...s}=e;return(0,r.jsx)(o,{ref:t,..."horizontal"===i?{w:"100%",h:"1px",borderBottom:"1px solid",borderColor:n}:{h:"100%",w:"1px",borderLeft:"1px solid",borderColor:n},...s})});E.displayName="Divider";let C=(0,n.createContext)(null),R=(0,n.forwardRef)((e,t)=>{let{children:i,defaultIndex:s=0,index:a,onChange:l,variant:c,...u}=e,[d,h]=(0,n.useState)(s);return(0,r.jsx)(C.Provider,{value:{selectedIndex:void 0!==a?a:d,setSelectedIndex:e=>{void 0===a&&h(e),null==l||l(e)}},children:(0,r.jsx)(o,{ref:t,...u,children:i})})});R.displayName="Tabs";let P=(0,n.forwardRef)((e,t)=>{let{children:i,...s}=e,o=n.Children.toArray(i);return(0,r.jsx)(p,{ref:t,spacing:0,...s,children:o.map((e,t)=>(0,n.isValidElement)(e)?(0,n.cloneElement)(e,{...e.props,"data-index":t}):e)})});P.displayName="TabList";let I=(0,n.forwardRef)((e,t)=>{var i;let{children:s,_selected:a,...l}=e,c=(0,n.useContext)(C),u=null!==(i=l["data-index"])&&void 0!==i?i:0;if(!c)throw Error("Tab must be used within Tabs");let d=c.selectedIndex===u;return(0,r.jsx)(o,{ref:t,as:"button",type:"button",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>c.setSelectedIndex(u),...l,...d&&a?a:{},children:s})});I.displayName="Tab";let T=(0,n.forwardRef)((e,t)=>{let{children:i,...s}=e,a=n.Children.toArray(i);return(0,r.jsx)(o,{ref:t,...s,children:a.map((e,t)=>(0,n.isValidElement)(e)?(0,n.cloneElement)(e,{...e.props,"data-index":t}):e)})});T.displayName="TabPanels";let A=(0,n.forwardRef)((e,t)=>{var i;let{children:s,...a}=e,l=(0,n.useContext)(C),c=null!==(i=a["data-index"])&&void 0!==i?i:0;if(!l)throw Error("TabPanel must be used within Tabs");return l.selectedIndex!==c?null:(0,r.jsx)(o,{ref:t,...a,children:s})});A.displayName="TabPanel";let M=(0,n.forwardRef)((e,t)=>{let{direction:i,wrap:n,align:s,justify:a,...l}=e;return(0,r.jsx)(o,{ref:t,display:"flex",flexDirection:i,flexWrap:n,alignItems:s,justifyContent:a,...l})});M.displayName="Flex",(0,n.forwardRef)((e,t)=>{let{...i}=e;return(0,r.jsx)(o,{ref:t,flex:1,...i})}).displayName="Spacer";let O=(0,n.forwardRef)((e,t)=>{let{spacing:i=2,styleType:n="none",children:s,...a}=e;return(0,r.jsx)(o,{ref:t,as:"ul",display:"flex",flexDirection:"column",gap:i,listStyleType:n,pl:"none"!==n?5:0,...a,children:s})});O.displayName="List";let z=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,as:"li",display:"flex",alignItems:"center",gap:2,...n,children:i})});z.displayName="ListItem";let L=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,as:"span",display:"inline-flex",flexShrink:0,...n,children:i})});L.displayName="ListIcon";let D=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,position:"relative",display:"flex",alignItems:"center",...n,children:i})});D.displayName="InputGroup";let q=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,position:"absolute",left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",px:4,pointerEvents:"none",...n,children:i})});q.displayName="InputLeftElement",(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,position:"absolute",right:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",px:4,pointerEvents:"none",...n,children:i})}).displayName="InputRightElement";let $=(0,n.forwardRef)((e,t)=>{let{ratio:i=4/3,children:n,...s}=e;return(0,r.jsxs)(o,{ref:t,position:"relative",w:"100%",...s,children:[(0,r.jsx)(o,{paddingBottom:"".concat(1/i*100,"%")}),(0,r.jsx)(o,{position:"absolute",inset:0,children:n})]})});$.displayName="AspectRatio";let H=(0,n.forwardRef)((e,t)=>{let{as:i,children:n,...s}=e;return i?(0,r.jsx)(o,{ref:t,as:"span",display:"inline-flex",alignItems:"center",...s,children:(0,r.jsx)(i,{})}):(0,r.jsx)(o,{ref:t,as:"span",display:"inline-flex",alignItems:"center",...s,children:n})});H.displayName="Icon";let N=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,...n,children:i})});N.displayName="Stat";let W=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,as:"dt",fontWeight:500,mb:1,...n,children:i})});W.displayName="StatLabel";let B=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,as:"dd",fontSize:"2xl",fontWeight:700,...n,children:i})});B.displayName="StatNumber",(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,as:"dd",fontSize:"sm",color:"gray.500",...n,children:i})}).displayName="StatHelpText",(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,display:"flex",alignItems:"center",justifyContent:"center",...n,children:i})}).displayName="Center";let V=(0,n.forwardRef)((e,t)=>{let{size:i="md",thickness:n="2px",speed:a="0.65s",color:l="accent.200",...c}=e,u={xs:"12px",sm:"16px",md:"24px",lg:"32px",xl:"48px"},d=(0,s.zn)(l)||l;return(0,r.jsx)(o,{ref:t,as:"span",display:"inline-block",w:u[i],h:u[i],borderRadius:"50%",border:"".concat(n," solid ").concat(d),borderTop:"".concat(n," solid transparent"),style:{animation:"spin ".concat(a," linear infinite")},...c,children:(0,r.jsx)("style",{children:"\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "})})});function U(){let e=arguments.length>
10&&void 0!==arguments[0]&&arguments[0],[t,i]=(0,n.useState)(e);return{isOpen:t,onOpen:(0,n.useCallback)(()=>{i(!0)},[]),onClose:(0,n.useCallback)(()=>{i(!1)},[]),onToggle:(0,n.useCallback)(()=>{i(e=>!e)},[])}}V.displayName="Spinner",(0,n.forwardRef)((e,t)=>{let{children:i,in:s=!0,delay:a=0,unmountOnExit:l=!1,...c}=e,[u,d]=(0,n.useState)(s),[h,p]=(0,n.useState)(s?1:0);return((0,n.useEffect)(()=>{if(s){d(!0);let e=setTimeout(()=>{p(1)},a);return()=>clearTimeout(e)}if(p(0),l){let e=setTimeout(()=>{d(!1)},300);return()=>clearTimeout(e)}},[s,a,l]),u)?(0,r.jsx)(o,{ref:t,opacity:h,transition:"opacity 0.3s ease",...c,children:i}):null}).displayName="Fade",i(2923);let G=(0,n.forwardRef)((e,t)=>{let{children:i,variant:n,size:s="md",...a}=e;return(0,r.jsx)(o,{ref:t,as:"table",w:"100%",...a,children:i})});G.displayName="Table";let Q=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,as:"thead",...n,children:i})});Q.displayName="Thead";let Z=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,as:"tbody",...n,children:i})});Z.displayName="Tbody";let K=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,as:"tr",...n,children:i})});K.displayName="Tr";let Y=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,as:"th",textAlign:"left",fontWeight:600,p:3,...n,children:i})});Y.displayName="Th";let J=(0,n.forwardRef)((e,t)=>{let{children:i,...n}=e;return(0,r.jsx)(o,{ref:t,as:"td",p:3,...n,children:i})});J.displayName="Td"},2923:function(e,t,i){"use strict";i.d(t,{r:function(){return r}});let r={colors:{accent:{100:"#fff5cc",200:"#ffcc00",300:"#e6b800",400:"#cc9900"},dark:{100:"#0a0a0f",200:"#12121a",300:"#1a1a24",400:"#22222e",500:"#2a2a38"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},white:"#ffffff",black:"#000000",transparent:"transparent",green:{400:"#4ade80",500:"#22c55e"},red:{400:"#f87171",500:"#ef4444"},blue:{400:"#60a5fa",500:"#3b82f6"},yellow:{400:"#facc15",500:"#eab308"}},breakpoints:{base:0,xs:480,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},spacing:{0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160},fontSizes:{xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60},fontWeights:{normal:400,medium:500,semibold:600,bold:700},radii:{none:0,sm:4,md:8,lg:12,xl:16,"2xl":20,"3xl":24,full:9999},shadows:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",glow:"0 0 40px rgba(255, 204, 0, 0.15)"},transitions:{fast:"0.15s ease",normal:"0.3s ease",slow:"0.5s ease"},zIndices:{base:0,dropdown:1e3,sticky:1100,modal:1200,popover:1300,toast:1400,tooltip:1500}}},2114:function(e,t,i){"use strict";i.d(t,{OX:function(){return s},lp:function(){return a},y3:function(){return l},zn:function(){return o}});var r=i(2923);let n=["base","xs","sm","md","lg","xl","2xl"];function s(e,t){if(void 0===e)return;if("object"!=typeof e||null===e||Array.isArray(e))return e;let i=e.base;for(let s of n)t>=r.r.breakpoints[s]&&void 0!==e[s]&&(i=e[s]);return i}function o(e){if(!e)return;if(e.includes(".")){let[t,i]=e.split("."),n=r.r.colors[t];if(n&&"object"==typeof n)return n[i]||e}let t=r.r.colors[e];return"string"==typeof t?t:e}function a(e){if(void 0===e)return;if("string"==typeof e)return e;let t=r.r.spacing[e];return void 0!==t?"".concat(t,"px"):"".concat(4*e,"px")}function l(e,t){let i=e=>s(e,t),n=e=>a(i(e)),l={};if(void 0!==e.display&&(l.display=i(e.display)),void 0!==e.position&&(l.position=i(e.position)),void 0!==e.top&&(l.top=i(e.top)),void 0!==e.right&&(l.right=i(e.right)),void 0!==e.bottom&&(l.bottom=i(e.bottom)),void 0!==e.left&&(l.left=i(e.left)),void 0!==e.zIndex&&(l.zIndex=i(e.zIndex)),void 0!==e.inset){let t=i(e.inset);l.top=t,l.right=t,l.bottom=t,l.left=t}return void 0!==e.w&&(l.width=i(e.w)),void 0!==e.width&&(l.width=i(e.width)),void 0!==e.h&&(l.height=i(e.h)),void 0!==e.height&&(l.height=i(e.height)),void 0!==e.minW&&(l.minWidth=i(e.minW)),void 0!==e.maxW&&(l.maxWidth=i(e.maxW)),void 0!==e.minH&&(l.minHeight=i(e.minH)),void 0!==e.maxH&&(l.maxHeight=i(e.maxH)),void 0!==e.p&&(l.padding=n(e.p)),void 0!==e.px&&(l.paddingLeft=n(e.px),l.paddingRight=n(e.px)),void 0!==e.py&&(l.paddingTop=n(e.py),l.paddingBottom=n(e.py)),void 0!==e.pt&&(l.paddingTop=n(e.pt)),void 0!==e.pr&&(l.paddingRight=n(e.pr)),void 0!==e.pb&&(l.paddingBottom=n(e.pb)),void 0!==e.pl&&(l.paddingLeft=n(e.pl)),void 0!==e.m&&(l.margin=n(e.m)),void 0!==e.mx&&(l.marginLeft=n(e.mx),l.marginRight=n(e.mx)),void 0!==e.my&&(l.marginTop=n(e.my),l.marginBottom=n(e.my)),void 0!==e.mt&&(l.marginTop=n(e.mt)),void 0!==e.mr&&(l.marginRight=n(e.mr)),void 0!==e.mb&&(l.marginBottom=n(e.mb)),void 0!==e.ml&&(l.marginLeft=n(e.ml)),void 0!==e.flex&&(l.flex=i(e.flex)),void 0!==e.flexDirection&&(l.flexDirection=i(e.flexDirection)),void 0!==e.flexWrap&&(l.flexWrap=i(e.flexWrap)),void 0!==e.alignItems&&(l.alignItems=i(e.alignItems)),void 0!==e.justifyContent&&(l.justifyContent=i(e.justifyContent)),void 0!==e.alignSelf&&(l.alignSelf=i(e.alignSelf)),void 0!==e.gap&&(l.ga
1p=n(e.gap)),void 0!==e.flexShrink&&(l.flexShrink=i(e.flexShrink)),void 0!==e.flexGrow&&(l.flexGrow=i(e.flexGrow)),void 0!==e.order&&(l.order=i(e.order)),void 0!==e.gridTemplateColumns&&(l.gridTemplateColumns=i(e.gridTemplateColumns)),void 0!==e.gridTemplateRows&&(l.gridTemplateRows=i(e.gridTemplateRows)),void 0!==e.gridColumn&&(l.gridColumn=i(e.gridColumn)),void 0!==e.gridRow&&(l.gridRow=i(e.gridRow)),void 0!==e.bg&&(l.backgroundColor=o(i(e.bg))),void 0!==e.bgImage&&(l.backgroundImage=e.bgImage),void 0!==e.bgSize&&(l.backgroundSize=e.bgSize),void 0!==e.bgPosition&&(l.backgroundPosition=e.bgPosition),void 0!==e.bgRepeat&&(l.backgroundRepeat=e.bgRepeat),void 0!==e.bgGradient&&(l.backgroundImage=function(e){if(e){if(e.startsWith("radial("))return e.replace("radial(","radial-gradient(");if(e.startsWith("linear(")){let t=e.replace("linear(","linear-gradient(");return(t=(t=(t=(t=(t=(t=(t=t.replace("to-r,","to right,")).replace("to-l,","to left,")).replace("to-t,","to top,")).replace("to-b,","to bottom,")).replace("to-tr,","to top right,")).replace("to-tl,","to top left,")).replace("to-br,","to bottom right,")).replace("to-bl,","to bottom left,")}return e}}(e.bgGradient)),void 0!==e.backgroundImage&&(l.backgroundImage=e.backgroundImage),void 0!==e.backgroundSize&&(l.backgroundSize=e.backgroundSize),void 0!==e.backgroundPosition&&(l.backgroundPosition=e.backgroundPosition),void 0!==e.border&&(l.border=e.border),void 0!==e.borderWidth&&(l.borderWidth=i(e.borderWidth)),void 0!==e.borderColor&&(l.borderColor=o(e.borderColor)),void 0!==e.borderRadius&&(l.borderRadius=i(e.borderRadius)),void 0!==e.borderTopLeftRadius&&(l.borderTopLeftRadius=i(e.borderTopLeftRadius)),void 0!==e.borderTopRightRadius&&(l.borderTopRightRadius=i(e.borderTopRightRadius)),void 0!==e.borderBottomLeftRadius&&(l.borderBottomLeftRadius=i(e.borderBottomLeftRadius)),void 0!==e.borderBottomRightRadius&&(l.borderBottomRightRadius=i(e.borderBottomRightRadius)),void 0!==e.borderLeft&&(l.borderLeft=e.borderLeft),void 0!==e.borderTop&&(l.borderTop=e.borderTop),void 0!==e.borderRight&&(l.borderRight=e.borderRight),void 0!==e.borderBottom&&(l.borderBottom=e.borderBottom),void 0!==e.color&&(l.color=o(e.color)),void 0!==e.fontSize&&(l.fontSize=function(e){if(void 0===e)return;if("number"==typeof e)return e;let t=r.r.fontSizes[e];return void 0!==t?t:e}(i(e.fontSize))),void 0!==e.fontWeight&&(l.fontWeight=i(e.fontWeight)),void 0!==e.lineHeight&&(l.lineHeight=i(e.lineHeight)),void 0!==e.textAlign&&(l.textAlign=i(e.textAlign)),void 0!==e.textDecoration&&(l.textDecoration=e.textDecoration),void 0!==e.textTransform&&(l.textTransform=e.textTransform),void 0!==e.fontStyle&&(l.fontStyle=e.fontStyle),void 0!==e.letterSpacing&&(l.letterSpacing=i(e.letterSpacing)),void 0!==e.whiteSpace&&(l.whiteSpace=e.whiteSpace),void 0!==e.opacity&&(l.opacity=i(e.opacity)),void 0!==e.overflow&&(l.overflow=e.overflow),void 0!==e.overflowX&&(l.overflowX=e.overflowX),void 0!==e.overflowY&&(l.overflowY=e.overflowY),void 0!==e.curs
1or&&(l.cursor=e.cursor),void 0!==e.transition&&(l.transition=e.transition),void 0!==e.transform&&(l.transform=e.transform),void 0!==e.boxShadow&&(l.boxShadow=e.boxShadow),void 0!==e.backdropFilter&&(l.backdropFilter=e.backdropFilter,l.WebkitBackdropFilter=e.backdropFilter),void 0!==e.aspectRatio&&(l.aspectRatio=i(e.aspectRatio)),void 0!==e.pointerEvents&&(l.pointerEvents=e.pointerEvents),void 0!==e.userSelect&&(l.userSelect=e.userSelect),void 0!==e.objectFit&&(l.objectFit=e.objectFit),void 0!==e.objectPosition&&(l.objectPosition=e.objectPosition),void 0!==e.visibility&&(l.visibility=e.visibility),void 0!==e.listStyleType&&(l.listStyleType=e.listStyleType),l}},1297:function(e,t,i){"use strict";i.d(t,{c:function(){return n},t:function(){return s}});var r=i(1282);let n="plm_cookie_consent";function s(){if("plumbing"!==r.siteConfig.id)return!0;try{return"accepted"===localStorage.getItem(n)}catch(e){return!1}}},926:function(e,t,i){"use strict";i.d(t,{IR:function(){return om},u$:function(){return ox},iM:function(){return ob}});var r="undefined"!=typeof window?window:void 0,n="undefined"!=typeof globalThis?globalThis:r;"undefined"==typeof self&&(n.self=n),"undefined"==typeof File&&(n.File=function(){});var s=null==n?void 0:n.navigator,o=null==n?void 0:n.document,a=null==n?void 0:n.location,l=null==n?void 0:n.fetch,c=null!=n&&n.XMLHttpRequest&&"withCredentials"in new n.XMLHttpRequest?n.XMLHttpRequest:void 0,u=null==n?void 0:n.AbortController,d=null==n?void 0:n.CompressionStream,h=null==s?void 0:s.userAgent,p=null!=r?r:{},f="1.378.1",g={DEBUG:!1,LIB_VERSION:f,LIB_NAME:"web",JS_SDK_VERSION:f};function v(e,t,i,r,n,s,o){try{var a=e[s](o),l=a.value}catch(e){return void i(e)}a.done?t(l):Promise.resolve(l).then(r,n)}function m(e){return function(){var t=this,i=arguments;return new Promise(function(r,n){var s=e.apply(t,i);function o(e){v(s,r,n,o,a,"next",e)}function a(e){v(s,r,n,o,a,"throw",e)}o(void 0)})}}function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(null,arguments)}function x(e,t){if(null==e)return{};var i={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;i[r]=e[r]}return i}var _,y,w,F=((_={}).GZipJS="gzip-js",_.Base64="base64",_),j=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],S="NativeGzipValidationError",k=e=>e.length>=2&&31===e[0]&&139===e[1],E=e=>!(!e||"object"!=typeof e)&&"NotReadableError"===("name"in e?String(e.name):""),C=e=>{var t=Error("Native gzip produced invalid output: "+e);throw t.name=S,t},R=(y=m(function*(e,t){18>e.size&&C("too-short");var i=new Uint8Array((yield e.slice(0,10).arrayBuffer()));k(i)&&8===i[2]||C("invalid-header");var r=new DataView((yield e.slice(e.size-8).arrayBuffer()));r.getUint32(0,!0)!==(e=>{for(var t=(()=>{if(w)return w;w=[];for(var e=0;256>e;e++){for(var t=e,i=0;8>i;i++)t=1&t?3988292384^t>>>1:t>>>1;w[e]=t>>>0}return w})(),i=4294967295,r=0;e.length>r;r++)i=t[255&(i^e[r])]^i>>>8;return(4294967295^i)>>>0})(t)&&C("invalid-crc");var n=t.length>>>0;r.getUint32(4,!0)!==n&&C("invalid-size")}),function(e,t){return y.apply(this,arguments)});function P(){return(P=m(function*(e,t,i){void 0===t&&(t=!0);try{var r,n=(new TextEncoder).encode(e),s=new CompressionStream("gzip"),o=s.writable.getWriter(),a=o.write(n).then(()=>o.close()).catch((r=m(function*(e){try{yield o.abort(e)}catch(e){}throw e}),function(e){return r.apply(this,arguments)})),l=new Response(s.readable).blob(),[c]=yield Promise.all([l,a]);return yield R(c,n),c}catch(e){if(null!=i&&i.rethrow)throw e;return t&&console.error("Failed to gzip compress data",e),null}})).apply(this,arguments)}var I=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hub
1spot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],T=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var i=e.toLowerCase();return I.concat(t).some(e=>{var t=e.toLowerCase();return -1!==i.indexOf(t)})};function A(e,t){return -1!==e.indexOf(t)}var M=function(e){return e.trim()},O=function(e){return e.replace(/^\$/,"")},z=Object.prototype,L=z.hasOwnProperty,D=z.toString,q=Array.isArray||function(e){return"[object Array]"===D.call(e)},$=e=>"function"==typeof e,H=e=>e===Object(e)&&!q(e),N=e=>{if(H(e)){for(var t in e)if(L.call(e,t))return!1;return!0}return!1},W=e=>void 0===e,B=e=>"[object String]"==D.call(e),V=e=>B(e)&&0===e.trim().length,U=e=>null===e,G=e=>W(e)||U(e),Q=e=>"[object Number]"==D.call(e)&&e==e,Z=e=>Q(e)&&e>0,K=e=>"[object Boolean]"===D.call(e),Y=e=>e instanceof FormData,J=e=>A(j,e);function X(e){return null===e||"object"!=typeof e}function ee(e,t){return({}).toString.call(e)==="[object "+t+"]"}function et(e){return"undefined"!=typeof Event&&function(e,t){try{return e instanceof t}catch(e){return!1}}(e,Event)}var ei=[!0,"true",1,"1","yes"],er=e=>A(ei,e),en=[!1,"false",0,"0","no"];function es(e,t,i,r,n){return t>i&&(r.warn("min cannot be greater than max."),t=i),Q(e)?e>i?(r.warn(" cannot be greater than max: "+i+". Using max value instead."),i):t>e?(r.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(r.warn(" must be a number. using max or fallback. max: "+i+", fallback: "+n),es(n||i,t,i,r))}class eo{constructor(e){this.$t={},this.zt=e.zt,this.Zt=es(e.bucketSize,0,100,e.Gt),this.Qt=es(e.refillRate,0,this.Zt,e.Gt),this.Jt=es(e.refillInterval,0,864e5,e.Gt)}Kt(e,t){var i=Math.floor((t-e.lastAccess)/this.Jt);i>0&&(e.tokens=Math.min(e.tokens+i*this.Qt,this.Zt),e.lastAccess=e.lastAccess+i*this.Jt)}consumeRateLimit(e){var t,i=Date.now(),r=String(e),n=this.$t[r];return n?this.Kt(n,i):this.$t[r]=n={tokens:this.Zt,lastAccess:i},0===n.tokens||(n.tokens--,0===n.tokens&&(null==(t=this.zt)||t.call(this,e)),0===n.tokens)}stop(){this.$t={}}}var ea,el,ec,eu="Mobile",ed="Android",eh="Tablet",ep=ed+" "+eh,ef="iPad",eg="Apple",ev=eg+" Watch",em="Safari",eb="BlackBerry",ex="Samsung",e_=ex+"Browser",ey=ex+" Internet",ew="Chrome",eF=ew+" OS",ej=ew+" iOS",eS="Internet Explorer",ek=eS+" "+eu,eE="Opera",eC=eE+" Mini",eR="Edge",eP="Microsoft "+eR,eI="Firefox",eT=eI+" iOS",eA="Nintendo",eM="PlayStation",eO="Xbox",ez=ed+" "+eu,eL=eu+" "+em,eD="Windows",eq=eD+" Phone",e$="Nokia",eH="Ouya",eN="Generic",eW=eN+" "+eu.toLowerCase(),eB=eN+" "+eh.toLowerCase(),eV="Konqueror",eU="Oculus Browser",eG="Vivaldi",eQ="Yandex",eZ="Whale",eK="DuckDuckGo",eY="Pale Moon",eJ="Waterfox",eX="Brave",e0="(\\d+(\\.\\d+)?)",e1=RegExp("Version/"+e0),e2=RegExp(eO,"i"),e6=RegExp(eM+" \\w+","i"),e4=RegExp(eA+" \\w+","i"),e3=RegExp(eb+"|PlayBook|BB10","i"),e5={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},e8=function(e,t,i){var r;return t=t||"",(null!=i&&i.brave?eX:null)||(A(e," OPR/")&&A(e,"Mini")?eC:A(e," OPR/")?eE:e3.test(e)?eb:A(e,"IE"+eu)||A(e,"WPDesktop")?ek:A(e,"OculusBrowser")?eU:A(e,e_)?ey:A(e,eR)||A(e,"Edg/")?eP:A(e,eG+"/")?eG:A(e,"YaBrowser/")?eQ:A(e,eZ+"/")?eZ:A(e,eK+"/")||A(e,"Ddg/")?eK:A(e,"FBIOS")?"Facebook "+eu:A(e,"UCWEB")||A(e,"UCBrowser")?"UC Browser":A(e,"CriOS")?ej:A(e,"CrMo")||A(e,ew)?ew:A(e,ed)&&A(e,em)?ez:A(e,"FxiOS")?eT:A(e.toLowerCase(),eV.toLowerCase())?eV:A(e,eX+"/")?eX:(r=t)&&A(r,eg)||A(e,em)&&!A(e,ew)&&!A(e,ed)?A(e,eu)?eL:em:A(e,"PaleMoon/")?eY:A(e,eJ+"/")?eJ:A(e,eI)?eI:A(e,"MSIE")||A(e,"Trident/")?eS:A(e,"Gecko")?eI:"")},e7={[ek]:[RegExp("rv:"+e0)],[eP]:[RegExp(eR+"?\\/"+e0)],[ew]:[RegExp("("+ew+"|CrMo)\\/"+e0)],[ej]:[RegExp("CriOS\\/"+e0)],"UC Browser":[RegExp("(UCBrowser|UCWEB)\\/"+e0)],[em]:[e1],[eL]:[e1],[eE]:[RegExp("(Opera|OPR)\\/"+e0)],[eI]:[RegExp(eI+"\\/"+e0)],[eT]:[RegExp("FxiOS\\/"+e0)],[eV]:[RegExp("Konqueror[:/]?"+e0,"i")],[eb]:[RegExp(eb+" "+e0),e1],[ez]:[RegExp("android\\s"+e0,"i")],[ey]:[RegExp(e_+"\\/"+e0)],[eU]:[RegExp("OculusBrowser\\/"+e0)],[eG]:[RegExp(eG+"\\/"+e0)],[eQ]:[RegExp("YaBrowser\\/"+e0)],[eZ]:[RegExp(eZ+"\\/"+e0)],[eX]:[RegExp(eX+"\\/"+e0)],[eK]:[RegExp("(DuckDuckGo|Ddg)\\/"+e0)],[eY]:[RegExp("PaleMoon\\/"+e0)],[eJ]:[RegExp(eJ+"\\/"+e0)],[eS]:[RegExp("(rv:|MSIE )"+e0)],Mozilla:[RegExp("rv:"+e0)]},e9=function(e,t,i){var r=e7[e8(e,t,i)];if(W(r))return null;for(var n=0;r.length>n;n++){var s=e.match(r[n]);if(s)return parseFloat(s[s.length-2])}return null},te=[[RegExp(eO+"; "+eO+" (.*?)[);]","i"),e=>[eO,e&&e[1]||""]],[RegExp(eA,"i"),[eA,""]],[RegExp(eM,"i"),[eM,""]],[e3,[eb,""]],[RegExp(eD,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[eq,""];if(new RegExp(eu).test(t)&&!/IEMobile\b/.test(t))return[eD+" "+eu,""];var i=/Windows NT ([0-9.]+)/i.exec(t);if(i&&i[1]){var r=e5[i[1]]||"";return/arm/i.test(t)&&(r="RT"),[eD,r]}return[eD,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=W(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+ed+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+ed+")","i"),e=>e&&e[2]?[ed,[e[2],e[3],e[4]||"0"].join(".")]:[ed,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[eF,""]],[/Linux|debian/i,["Linux",""]]],tt=function(e){return e4.test(e)?eA:e6.test(e)?eM:e2.test(e)?eO:RegExp(eH,"i").test(e)?eH:RegExp("("+eq+"|WPDesktop)","i").test(e)?eq:/iPad/.test(e)?ef:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?ev:e3.test(e)?eb:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(e$,"i").test(e)?e$:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(eu).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?ed:ep:RegExp("(pda|"+eu+")","i").test(e)?eW:RegExp(eh,"i").test(e)&&!RegExp(eh+" pc","i").test(e)?eB:""},ti=e=>e instanceof Error,tr={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},tn=tr.info;function ts(e){var t=[];for(var i in e){var r=e[i];U(r)||W(r)||t.push({key:i,value:function e(t){if(K(t))return{boolValue:t};if("number"==typeof t)return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if("string"==typeof t)return{stringValue:t};if(q(t))return{arrayValue:{values:t.map(t=>e(t))}};try{return{stringValue:JSON.stringify(t)}}catch(e){return{stringValue:String(t)}}}(r)})}return t}class to{constructor(e,t,i){void 0===i&&(i=[]),this.coercers=e,this.stackParser=t,this.modifiers=i}buildFromUnknown(e,t){void 0===t&&(t={});var i=t&&t.mechanism||{handled:!0,type:"generic"},r=this.buildCoercingContext(i,t,0).apply(e),n=this.buildParsingContext(t),s=this.parseStacktrace(r,n);return{$exception_list:this.convertToExceptionList(s,i),$exception_level:"error"}}modifyFrames(e){var t=this;return m(function*(){for(var i of e)i.stacktrace&&i.stacktrace.frames&&q(i.stacktrace.frames)&&(i.stacktrace.frames=yield t.applyModifiers(i.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var i,r;return null!=e.cause&&(i=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(r=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.ski
1pFirstLines:0),t.chunkIdMap)),b({},e,{cause:i,stack:r})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var i of this.coercers)if(i.match(e))return i.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return m(function*(){var i=e;for(var r of t.modifiers)i=yield r(i);return i})()}convertToExceptionList(e,t){var i,r,n,s={type:e.type,value:e.value,mechanism:{type:null!==(i=t.type)&&void 0!==i?i:"generic",handled:null===(r=t.handled)||void 0===r||r,synthetic:null!==(n=e.synthetic)&&void 0!==n&&n}};e.stack&&(s.stacktrace={type:"raw",frames:e.stack});var o=[s];return null!=e.cause&&o.push(...this.convertToExceptionList(e.cause,b({},t,{handled:!0}))),o}buildParsingContext(e){var t;return{chunkIdMap:function(e){var t=globalThis._posthogChunkIds;if(t){var i=Object.keys(t);return ec&&i.length===el||(el=i.length,ec=i.reduce((i,r)=>{ea||(ea={});var n=ea[r];if(n)i[n[0]]=n[1];else for(var s=e(r),o=s.length-1;o>=0;o--){var a=s[o],l=null==a?void 0:a.filename,c=t[r];if(l&&c){i[l]=c,ea[r]=[l,c];break}}return i},{})),ec}}(this.stackParser),skipFirstLines:null!==(t=e.skipFirstLines)&&void 0!==t?t:1}}buildCoercingContext(e,t,i){void 0===i&&(i=0);var r=(i,r)=>{if(4>=r){var n=this.buildCoercingContext(e,t,r);return this.applyCoercers(i,n)}};return b({},t,{syntheticException:0==i?t.syntheticException:void 0,mechanism:e,apply:e=>r(e,i),next:e=>r(e,i+1)})}}function ta(e,t,i,r,n){var s={platform:e,filename:t,function:"<anonymous>"===i?"?":i,in_app:!0};return W(r)||(s.lineno=r),W(n)||(s.colno=n),s}var tl=(e,t)=>{var i=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return i||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",i?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},tc=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tu=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,td=/\((\S*)(?::(\d+))(?::(\d+))\)/,th=(e,t)=>{var i=tc.exec(e);if(i){var[,r,n,s]=i;return ta(t,r,"?",+n,+s)}var o=tu.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){var a=td.exec(o[2]);a&&(o[2]=a[1],o[3]=a[2],o[4]=a[3])}var[l,c]=tl(o[1]||"?",o[2]);return ta(t,c,l,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},tp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tf=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tg=(e,t)=>{var i=tp.exec(e);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var r=tf.exec(i[3]);r&&(i[1]=i[1]||"eval",i[3]=r[1],i[4]=r[2],i[5]="")}var n=i[3],s=i[1]||"?";return[s,n]=tl(s,n),ta(t,n,s,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}},tv=/\(error: (.*)\)/;class tm{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var i=B(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:i?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return ee(e,"DOMException")}isDOMError(e){return ee(e,"DOMError")}}class tb{match(e){return e instanceof Error}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var i=e.message;return String(i.error&&"string"==typeof i.error.message?i.error.message:i)}getStack(e){return e.stacktrace||e.stack||void 0}}class tx{constructor(){}match(e){return ee(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var i;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}}var t_=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class ty{match(e){return"string"==typeof e}coerce(e,t){var i,[r,n]=this.getInfos(e);return{type:null!=r?r:"Error",value:null!=n?n:e,stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}getInfos(e){var t="Error",i=e,r=e.match(t_);return r&&(t=r[1],i=r[2]),[t,i]}}var tw=["fatal","error","warning","log","info","debug"];function tF(e,t){void 0===t&&(t=40);var i=Object.keys(e);if(i.sort(),!i.length)return"[object has no keys]";for(var r=i.length;r>0;r--){var n=i.slice(0,r).join(", ");
1if(t>=n.length)return r===i.length?n:n.length>t?n.slice(0,t)+"...":n}return""}class tj{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var i,r=this.getErrorPropertyFromObject(e);return r?t.apply(r):{type:this.getType(e),value:this.getValue(e),stack:null==(i=t.syntheticException)?void 0:i.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return et(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var i=this.getObjectClassName(e);return(i&&"Object"!==i?"'"+i+"'":"Object")+" captured as exception with keys: "+tF(e)}isSeverityLevel(e){return B(e)&&!V(e)&&tw.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(({}).hasOwnProperty.call(e,t)){var i=e[t];if(ti(i))return i}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){return}}}class tS{match(e){return et(e)}coerce(e,t){var i,r=e.constructor.name;return{type:r,value:r+" captured as exception with keys: "+tF(e),stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}}class tk{match(e){return X(e)}coerce(e,t){var i;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}}class tE{match(e){return ee(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!et(e))return!1;try{var t=e.detail;return null!=t&&"object"==typeof t&&"reason"in t}catch(e){return!1}}coerce(e,t){var i,r=this.getUnhandledRejectionReason(e);return X(r)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r),stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}:t.apply(r)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&null!=e.detail&&"object"==typeof e.detail&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}}var tC="$message",tR="$timestamp",tP=new Set([tC,tR]),tI={enabled:!0,max_bytes:32768};function tT(e){var t;return e?{enabled:null!==(t=e.enabled)&&void 0!==t?t:tI.enabled,max_bytes:function(e,t){if(!Q(e)||e===1/0||e===-1/0)return t;var i=Math.floor(e);return 0>i?t:i}(e.max_bytes,tI.max_bytes)}:b({},tI)}class tA{constructor(e){this.Yt=[],this.Xt=0,this.qt=tT(e)}setConfig(e){this.qt=tT(e),this.er()}add(e){var t=function(e){var t=function(e){var t=new WeakSet;try{return JSON.stringify(e,(e,i)=>{if("bigint"==typeof i)return i.toString();if("function"!=typeof i&&"symbol"!=typeof i){if(i instanceof Date)return i.toISOString();if(i instanceof Error)return{name:i.name,message:i.message,stack:i.stack};if(i&&"object"==typeof i){if(t.has(i))return"[Circular]";t.add(i)}return i}})}catch(e){return}}(e);if(t)try{var i=JSON.parse(t);if(!H(i))return;var r=i[tC],n=i[tR];if(!B(r)||0===r.trim().length||!B(n)&&!Q(n))return;return{step:i,json:t}}catch(e){return}}(e);if(t){var i=function(e){if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e).length;for(var t=encodeURIComponent(e),i=0,r=0;t.length>r;r++)"%"===t[r]?(i+=1,r+=2):i+=1;return i}(t.json);i>this.qt.max_bytes||(this.Yt.push({step:t.step,bytes:i}),this.Xt+=i,this.er())}}getAttachable(){return this.Yt.map(e=>e.step)}clear(){this.Yt=[],this.Xt=0}size(){return this.Yt.length}er(){for(;this.Xt>this.qt.max_bytes&&this.Yt.length>0;){var e=this.Yt.shift();e&&(this.Xt-=e.bytes)}}}var tM=function(e,t){var{debugEnabled:i}=void 0===t?{}:t,n={k(t){if(r&&(g.DEBUG||p.POSTHOG_DEBUG||i)&&!W(r.console)&&r.console){for(var n=("__rrweb_original__"in r.console[t])?r.console[t].__rrweb_original__:r.console[t],s=arguments.length,o=Array(s>1?s-1:0),a=1;s>a;a++)o[a-1]=arguments[a];n(e,...o)}},debug(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];n.k("debug",...t)},info(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];n.k("log",...t)},warn(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];n.k("warn",...t)},error(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];n.k("error",...t)},critical(){for(var t=arguments.length,i=Array(t),r=0;t>r;r++)i[r]=arguments[r];console.error(e,...i)},uninitializedWarning(e){n.error("You must initialize PostHog before calling "+e)},createLogger:(t,i)=>tM(e+" "+t,i)};return n},tO=tM("[PostHog.js]"),tz=tO.createLogger,tL=tz("[ExternalScriptsLoader]"),tD=(e,t,i)=>{if(e.config.disable_external_dependency_loading)return tL.warn(t+" was requested but loading of external scripts is disabled."),i("Loading of external scripts is disabled");var r=null==o?void 0:o.querySelectorAll("script");
1if(r){for(var n,s=0;r.length>s;s++)if(n=function(){if(r[s].src===t){var e=r[s];return e.__posthog_loading_callback_fired?{v:i()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,i(void 0,t)}),e.onerror=e=>i(e),{v:void 0})}}())return n.v}var a=()=>{if(!o)return i("document not found");var r=o.createElement("script");if(r.type="text/javascript",r.crossOrigin="anonymous",r.src=t,r.onload=e=>{r.__posthog_loading_callback_fired=!0,i(void 0,e)},r.onerror=e=>i(e),e.config.prepare_external_dependency_script&&(r=e.config.prepare_external_dependency_script(r)),!r)return i("prepare_external_dependency_script returned null");if("head"===e.config.external_scripts_inject_target)o.head.appendChild(r);else{var n,s=o.querySelectorAll("body > script");s.length>0?null==(n=s[0].parentNode)||n.insertBefore(r,s[0]):o.body.appendChild(r)}};null!=o&&o.body?a():null==o||o.addEventListener("DOMContentLoaded",a)};p.__PosthogExtensions__=p.__PosthogExtensions__||{},p.__PosthogExtensions__.loadExternalDependency=(e,t,i)=>{if("remote-config"!==t){var r;if(e.config.__preview_external_dependency_versioned_paths)r=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var n="/static/"+t+".js?v="+e.version;"toolbar"===t&&(n=n+"&t="+3e5*Math.floor(Date.now()/3e5)),r=e.requestRouter.endpointFor("assets",n)}tD(e,r,i)}else{var s=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");tD(e,s,i)}},p.__PosthogExtensions__.loadSiteApp=(e,t,i)=>{var r=e.requestRouter.endpointFor("api",t);tD(e,r,i)};var tq="$people_distinct_id",t$="$device_id",tH="__alias",tN="__timers",tW="$autocapture_disabled_server_side",tB="$heatmaps_enabled_server_side",tV="$exception_capture_enabled_server_side",tU="$error_tracking_suppression_rules",tG="$error_tracking_capture_extension_exceptions",tQ="$web_vitals_enabled_server_side",tZ="$dead_clicks_enabled_server_side",tK="$product_tours_enabled_server_side",tY="$web_vitals_allowed_metrics",tJ="$session_recording_remote_config",tX="$replay_override_sampling",t0="$replay_override_linked_flag",t1="$replay_override_url_trigger",t2="$replay_override_event_trigger",t6="$sesid",t4="$session_is_sampled",t3="$enabled_feature_flags",t5="$active_feature_flags",t8="$early_access_features",t7="$feature_flag_details",t9="$feature_flag_payloads",ie="$feature_flag_request_id",it="$override_feature_flags",ii="$override_feature_flag_payloads",ir="$stored_person_properties",is="$stored_group_properties",io="$surveys",ia="$surveys_activated",il="ph_product_tours",ic="$flag_call_reported",iu="$flag_call_reported_session_id",id="$feature_flag_errors",ih="$feature_flag_evaluated_at",ip="$user_state",ig="$client_session_props",iv="$capture_rate_limit",im="$initial_campaign_params",ib="$initial_referrer_info",ix="$initial_person_info",i_="$epp",iy="__POSTHOG_TOOLBAR__",iw="$posthog_cookieless",iF="$sdk_debug_extensions_init_method",ij="$sdk_debug_extensions_init_time_ms",iS="$sdk_debug_recording_script_not_loaded",ik="PostHog loadExternalDependency extension not found.",iE="on_reject",iC="always",iR="anonymous",iP="identified",iI="identified_only",iT="visibilitychange",iA="beforeunload",iM="$pageview",iO="$pageleave",iz="$identify",iL="$groupidentify";function iD(e,t){q(e)&&e.forEach(t)}function iq(e,t){if(!G(e)){if(q(e))e.forEach(t);else if(Y(e))e.forEach((e,i)=>t(e,i));else for(var i in e)L.call(e,i)&&t(e[i],i)}}var i$=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;t>r;r++)i[r-1]=arguments[r];for(var n of i)for(var s in n)void 0!==n[s]&&(e[s]=n[s]);return e};function iH(e){for(var t=Object.keys(e),i=t.length,r=Array(i);i--;)r[i]=[t[i],e[t[i]]];return r}var iN=function(e){try{return e()}catch(e){return}},iW=function(e){return function(){try{for(var t=arguments.length,i=Array(t),r=0;t>r;r++)i[r]=arguments[r];return e.apply(this,i)}catch(e){tO.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),tO.critical(e)}}},iB=function(e){var t={};return iq(e,function(e,i){(B(e)&&e.length>0||Q(e))&&(t[i]=e)}),t},iV=["herokuapp.com","vercel.app","netlify.app"];function iU(e,t,i,r){var{capture:n=!1,passive:s=!0}=null!=r?r:{};null==e||e.addEventListener(t,i,{capture:n,passive:s})}function iG(e){return"ph_toolbar_internal"===e.name}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Q(e)&&isFinite(e)&&Math.floor(e)===e});class iQ{constructor(e){if(this.bytes=e,16!==e.length)throw TypeError("not 128-bit length")}static fromFieldsV7(e,t,i,r){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(i)||!Number.isInteger(r)||0>e||0>t||0>i||0>r||e>0xffffffffffff||t>4095||i>1073741823||r>4294967295)throw RangeError("invalid field value");var n=new Uint8Array(16);return n[0]=e/1099511627776,n[1]=e/4294967296,n[2]=e/16777216,n[3]=e/65536,n[4]=e/256,n[5]=e,n[6]=112|t>>>8,n[7]=t,n[8]=128|i>>>24,n[9]=i>>>16,n[10]=i>>>8,n[11]=i,n[12]=r>>>
124,n[13]=r>>>16,n[14]=r>>>8,n[15]=r,new iQ(n)}toString(){for(var e="",t=0;this.bytes.length>t;t++)e=e+(this.bytes[t]>>>4).toString(16)+(15&this.bytes[t]).toString(16),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}clone(){return new iQ(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;16>t;t++){var i=this.bytes[t]-e.bytes[t];if(0!==i)return Math.sign(i)}return 0}}class iZ{constructor(){this.S=0,this.C=0,this.I=new iJ}generate(){var e=this.generateOrAbort();if(W(e)){this.S=0;var t=this.generateOrAbort();if(W(t))throw Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.T();else{if(this.S>=e+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.T())}return iQ.fromFieldsV7(this.S,Math.trunc(this.C/1073741824),1073741823&this.C,this.I.nextUint32())}T(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var iK,iY=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};r&&!W(r.crypto)&&crypto.getRandomValues&&(iY=e=>crypto.getRandomValues(e));class iJ{constructor(){this.M=new Uint32Array(8),this.O=1/0}nextUint32(){return this.M.length>this.O||(iY(this.M),this.O=0),this.M[this.O++]}}var iX=()=>i0().toString(),i0=()=>(iK||(iK=new iZ)).generate(),i1="",i2=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,i6={R:()=>!!o,D(e){tO.error("cookieStore error: "+e)},A(e){if(o){try{for(var t=e+"=",i=o.cookie.split(";").filter(e=>e.length),r=0;i.length>r;r++){for(var n=i[r];" "==n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}}catch(e){}return null}},F(e){var t;try{t=JSON.parse(i6.A(e))||{}}catch(e){}return t},N(e,t,i,r,n){if(o)try{var s="",a="",l=function(e,t){if(t){var i=function(e,t){if(void 0===t&&(t=o),i1)return i1;if(!t||["localhost","127.0.0.1"].includes(e))return"";for(var i=e.split("."),r=Math.min(i.length,8),n="dmn_chk_"+iX();!i1&&r--;){var s=i.slice(r).join("."),a=n+"=1;domain=."+s+";path=/";t.cookie=a+";max-age=3",t.cookie.includes(n)&&(t.cookie=a+";max-age=0",i1=s)}return i1}(e);if(!i){var r,n=(r=e.match(i2))?r[0]:"";n!==i&&tO.info("Warning: cookie subdomain discovery mismatch",n,i),i=n}return i?"; domain=."+i:""}return""}(o.location.hostname,r);if(i){var c=new Date;c.setTime(c.getTime()+864e5*i),s="; expires="+c.toUTCString()}n&&(a="; secure");var u=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+l+a;return u.length>3686.4&&tO.warn("cookieStore warning: large cookie, len="+u.length),o.cookie=u,u}catch(e){return}},q(e,t){if(null!=o&&o.cookie)try{i6.N(e,"",-1,t)}catch(e){return}}},i4=null,i3={R(){if(!U(i4))return i4;var e=!0;if(W(r))e=!1;else try{var t="__mplssupport__";i3.N(t,"xyz"),'"xyz"'!==i3.A(t)&&(e=!1),i3.q(t)}catch(t){e=!1}return e||tO.error("localStorage unsupported; falling back to cookie store"),i4=e,e},D(e){tO.error("localStorage error: "+e)},A(e){try{return null==r?void 0:r.localStorage.getItem(e)}catch(e){i3.D(e)}return null},F(e){try{return JSON.parse(i3.A(e))||{}}catch(e){}return null},N(e,t){try{null==r||r.localStorage.setItem(e,JSON.stringify(t))}catch(e){i3.D(e)}},q(e){try{null==r||r.localStorage.removeItem(e)}catch(e){i3.D(e)}}},i5=[t$,"distinct_id",t6,t4,i_,ix,ip],i8={},i7={R:()=>!0,D(e){tO.error("memoryStorage error: "+e)},A:e=>i8[e]||null,F:e=>i8[e]||null,N(e,t){i8[e]=t},q(e){delete i8[e]}},i9=null,re={R(){if(!U(i9))return i9;if(i9=!0,W(r))i9=!1;else try{var e="__support__";re.N(e,"xyz"),'"xyz"'!==re.A(e)&&(i9=!1),re.q(e)}catch(e){i9=!1}return i9},D(e){tO.error("sessionStorage error: ",e)},A(e){try{return null==r?void 0:r.sessionStorage.getItem(e)}catch(e){re.D(e)}return null},F(e){try{return JSON.parse(re.A(e))||null}catch(e){}return null},N(e,t){try{null==r||r.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){re.D(e)}},q(e){try{null==r||r.sessionStorage.removeItem(e)}catch(e){re.D(e)}}};class rt{constructor(e){this._instance=e}get qt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.qt.cookieless_mode===iC||this.isRejected()||-1===this.consent&&this.qt.cookieless_mode===iE}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return 0===this.consent}isRejected(){return 0===this.consent||-1===this.consent&&this.qt.opt_out_capturing_by_default}optInOut(e){this.nr.N(this.sr,e?1:0,this.qt.cookie_expiration,this.qt.cross_subdomain_cookie,this.qt.secure_cookie)}reset(){this.nr.q(this.sr,this.qt.cross_subdomain_cookie)}get sr(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:i}=this._instance.config;
1return i||(t?t+e:"__ph_opt_in_out_"+e)}get ir(){var e=this.nr.A(this.sr);return er(e)?1:A(en,e)?0:-1}get nr(){var e=this.qt.opt_out_capturing_persistence_type,t="localStorage"===e?i3:i6;if(!this.ar||this.ar!==t){this.ar=t;var i="localStorage"===e?i6:i3;i.A(this.sr)&&(this.ar.A(this.sr)||this.optInOut(er(i.A(this.sr))),i.q(this.sr,this.qt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.qt.respect_dnt&&[null==s?void 0:s.doNotTrack,null==s?void 0:s.msDoNotTrack,p.doNotTrack].some(e=>er(e))}}var ri=tz("[Dead Clicks]"),rr=()=>!0,rn=e=>{var t,i=!(null==(t=e.instance.persistence)||!t.get_property(tZ)),r=e.instance.config.capture_dead_clicks;return K(r)?r:!!H(r)||i};class rs{get lazyLoadedDeadClicksAutocapture(){return this.ur}constructor(e,t,i){this.instance=e,this.isEnabled=t,this.onCapture=i,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[tZ]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.lr(()=>{this.hr()}):this.stop()}lr(e){var t,i;null!=(t=p.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(i=p.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?ri.error("failed to load script",t):e()})}hr(){var e;if(o){if(!this.ur&&null!=(e=p.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=H(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.ur=p.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.ur.start(o),ri.info("starting...")}}else ri.error("`document` not found. Cannot start.")}stop(){this.ur&&(this.ur.stop(),this.ur=void 0,ri.info("stopping..."))}}var ro=tz("[SegmentIntegration]"),ra="posthog-js";function rl(e,t){var{organization:i,projectId:r,prefix:n,severityAllowList:s=["error"],sendExceptionsToPostHog:o=!0}=void 0===t?{}:t;return t=>{if("*"!==s&&!s.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var a=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=a,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var l,c,u,d,h,p,f=(null==(l=t.exception)?void 0:l.values)||[],g=f.map(e=>b({},e,{stacktrace:e.stacktrace?b({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>b({},e,{platform:"web:javascript"}))}):void 0})),v={$exception_message:(null==(c=f[0])?void 0:c.value)||t.message,$exception_type:null==(u=f[0])?void 0:u.type,$exception_level:t.level,$exception_list:g,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(d=f[0])?void 0:d.value)||t.message,$sentry_exception_type:null==(h=f[0])?void 0:h.type,$sentry_tags:t.tags};return i&&r&&(v.$sentry_url=(n||"https://sentry.io/organizations/")+i+"/issues/?project="+r+"&query="+t.event_id),o&&(null==(p=e.exceptions)||p.sendExceptionEvent(v)),t}}class rc{constructor(e,t,i,r,n,s){this.name=ra,this.setupOnce=function(o){o(rl(e,{organization:t,projectId:i,prefix:r,severityAllowList:n,sendExceptionsToPostHog:null==s||s}))}}}class ru{constructor(e){this.cr=(e,t,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength)&&(tO.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:i}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.vr()}vr(){var e;this.pr=null==(e=this._instance.sessionManager)?void 0:e.onSessionId(this.cr)}destroy(){var e;null==(e=this.pr)||e.call(this),this.pr=void 0}doPageView(e,t){var i,n=this.gr(e,t);return this.dr={pathname:null!==(i=null==r?void 0:r.location.pathname)&&void 0!==i?i:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var t;return this.gr(e,null==(t=this.dr)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.dr)?void 0:e.pageViewId}}gr(e,t){var i=this.dr;if(!i)return{$pageview_id:t};var r={$pageview_id:t,$prev_pageview_id:i.pageViewId},n=this._instance.scrollManager.getContext();if(n&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:s,lastScrollY:o,maxScrollY:a,maxContentHeight:l,lastContentY:c,maxContentY:u}=n;if(!(W(s)||W(o)||W(a)||W(l)||W(c)||W(u))){s=Math.ceil(s),o=Math.ceil(o),a=Math.ceil(a),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u);var d=s>1?es(o/s,0,1,tO):1,h=s>1?es(a/s,0,1,tO):1,p=l>1?es(c/l,0,1,tO):1,f=l>1?es(u/l,0,1,tO):1;r=i$(r,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:a,$prev_pageview_max_scroll_percentage:h,$prev_pageview_last_content:c,$prev_pageview_last_content_percentage:p,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:f})}}return i.pathname&&(r.$prev_pageview_pathname=i.pathname),i.timestamp&&(r.$prev_pageview_duration=(e.getTime()-i.timestamp.getTime())/1e3),r}}var rd={[tq]:{exposure:"hidden"},[tH]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[tN]:{exposure:"hidden"},[tW]:{exposure:"event"},[tB]:{exposure:"hidden"}
1,[tV]:{exposure:"event"},[tU]:{exposure:"hidden"},[tG]:{exposure:"event"},[tQ]:{exposure:"event"},[tZ]:{exposure:"event"},[tK]:{exposure:"hidden"},[tY]:{exposure:"event"},[tJ]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[t6]:{exposure:"hidden"},[t4]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[t3]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!H(e))return{};for(var t={},i=Object.keys(e),r=0;i.length>r;r++)t["$feature/"+i[r]]=e[i[r]];return t}},[t5]:{exposure:"event"},[t8]:{exposure:"hidden"},[t7]:{exposure:"hidden"},[t9]:{exposure:"event"},[ie]:{exposure:"event"},[it]:{exposure:"event"},[ii]:{exposure:"hidden"},[ir]:{exposure:"hidden"},[is]:{exposure:"hidden"},[io]:{exposure:"hidden"},[ia]:{exposure:"event"},[il]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[ic]:{exposure:"hidden"},[iu]:{exposure:"hidden"},[id]:{exposure:"hidden"},[ih]:{exposure:"hidden"},[ip]:{exposure:"hidden"},[ig]:{exposure:"hidden"},[iv]:{exposure:"hidden"},[im]:{exposure:"hidden"},[ib]:{exposure:"hidden"},[ix]:{exposure:"hidden"},[i_]:{exposure:"hidden"}
1,[tX]:{exposure:"event"},[t0]:{exposure:"event"},[t1]:{exposure:"event"},[t2]:{exposure:"event"},[iF]:{exposure:"event"},[ij]:{exposure:"event"},[iS]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},rh=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],rp=e=>{var t=null==o?void 0:o.createElement("a");return W(t)?null:(t.href=e,t)},rf=function(e,t){for(var i,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;r.length>n;n++){var s=r[n].split("=");if(s[0]===t){i=s;break}}if(!q(i)||2>i.length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(e){tO.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},rg=function(e,t,i){if(!e||!t||!t.length)return e;for(var r=e.split("#"),n=r[1],s=(r[0]||"").split("?"),o=s[1],a=s[0],l=(o||"").split("&"),c=[],u=0;l.length>u;u++){var d=l[u].split("=");q(d)&&(t.includes(d[0])?c.push(d[0]+"="+i):c.push(l[u]))}var h=a;return null!=o&&(h+="?"+c.join("&")),null!=n&&(h+="#"+n),h},rv=function(e,t){var i=e.match(RegExp(t+"=([^&]*)"));return i?i[1]:null},rm="https?://(.*)",rb=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],rx=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...rb],r_="<masked>",ry=["li_fat_id"];function rw(e,t,i){if(!o)return{};var r,n=t?[...rb,...i||[]]:[],s=rF(rg(o.URL,n,r_),e);return i$((r={},iq(ry,function(e){var t=i6.A(e);r[e]=t||null}),r),s)}function rF(e,t){var i=rx.concat(t||[]),r={};return iq(i,function(t){var i=rf(e,t);r[t]=i||null}),r}function rj(e){var t=e?0===e.search(rm+"google.([^/?]*)")?"google":0===e.search(rm+"bing.com")?"bing":0===e.search(rm+"yahoo.com")?"yahoo":0===e.search(rm+"duckduckgo.com")?"duckduckgo":null:null,i={};if(!U(t)){i.$search_engine=t;var r=o?rf(o.referrer,"yahoo"!=t?"q":"p"):"";r.length&&(i.ph_keyword=r)}return i}function rS(){return navigator.language||navigator.userLanguage}var rk="$direct";function rE(){return(null==o?void 0:o.referrer)||rk}function rC(e,t){var i=e?[...rb,...t||[]]:[],r=null==a?void 0:a.href.substring(0,1e3);return{r:rE().substring(0,1e3),u:r?rg(r,i,r_):void 0}}function rR(e){var t,{r:i,u:r}=e,n={$referrer:i,$referring_domain:null==i?void 0:i==rk?rk:null==(t=rp(i))?void 0:t.host};if(r){n.$current_url=r;var s=rp(r);n.$host=null==s?void 0:s.host,n.$pathname=null==s?void 0:s.pathname,i$(n,rF(r))}return i&&i$(n,rj(i)),n}function rP(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}var rI=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class rT{constructor(e,t){if(this.qt=e,this.props={},this.mr=!1,this.yr=(i="",e.token&&(i=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),e.persistence_name?"ph_"+e.persistence_name:"ph_"+i+"_posthog"),this.nr=this.br(e),this.load(),e.debug&&tO.info("Persistence loaded",e.persistence,b({},this.props)),this.update_config(e,e,t),this.save(),r){var i,n=()=>this.flush();iU(r,"beforeunload",n,{capture:!1}),iU(r,"pagehide",n,{capture:!1})}}_r(){var e,t=null==(e=this.qt)?void 0:e.persistence_save_debounce_ms;return Q(t)&&t>0?t:0}isDisabled(){return!!this.wr}br(e){-1===rI.indexOf(e.persistence.toLowerCase())&&(tO.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t,i,n=(void 0===(t=e.cookie_persisted_properties||[])&&(t=[]),i=[...i5,...t],b({},i3,{F(e){try{var t={};try{t=i6.F(e)||{}}catch(e){}var i=i$(t,JSON.parse(i3.A(e)||"{}"));return i3.N(e,i),i}catch(e){}return null},N(e,t,r,n,s,o){try{i3.N(e,t,void 0,void 0,o);var a={};
1i.forEach(e=>{t[e]&&(a[e]=t[e])}),Object.keys(a).length&&i6.N(e,a,r,n,s,o)}catch(e){i3.D(e)}},q(e,t){try{null==r||r.localStorage.removeItem(e),i6.q(e,t)}catch(e){i3.D(e)}}})),s=e.persistence.toLowerCase();return"localstorage"===s&&i3.R()?i3:"localstorage+cookie"===s&&n.R()?n:"sessionstorage"===s&&re.R()?re:"memory"===s?i7:"cookie"===s?i6:n.R()?n:i6}Sr(e){var t=null!=e?e:this.qt.feature_flag_cache_ttl_ms;if(!t||0>=t)return!1;var i=this.props[ih];return!i||"number"!=typeof i||Date.now()-i>t}properties(){var e={};return iq(this.props,(t,i)=>{var r=(e=>{var t=rd[e];if(t)return t;for(var[i,r]of rh)if(0===e.indexOf(i))return r})(i);if("derived"===(null==r?void 0:r.exposure)){if(null!=r.shouldSkipFromEventProperties&&r.shouldSkipFromEventProperties(t,i===t3?()=>this.Sr():()=>!1))return;r.transformToEventProperties&&i$(e,r.transformToEventProperties(t))}else r&&"event"!==r.exposure||(e[i]=t)}),e}load(){if(!this.wr){var e=this.nr.F(this.yr);e&&(this.props=i$({},e))}}refreshKey(e){if(!this.wr){var t=this.nr.F(this.yr);t&&e in t?this.kr(e,t[e]):this.Cr(e)}}save(){if(!this.wr){var e=this._r();e>0?W(this.Ir)&&(this.Ir=setTimeout(()=>{this.Ir=void 0,this.Tr()},e)):this.Tr()}}flush(){W(this.Ir)||(clearTimeout(this.Ir),this.Ir=void 0,this.Tr())}Tr(){if(!this.wr){try{var e=JSON.stringify(this.props)+"|"+this.Er+"|"+this.Mr+"|"+this.Rr;if(e===this.Pr)return;this.Pr=e}catch(e){}this.nr.N(this.yr,this.props,this.Er,this.Mr,this.Rr,this.qt.debug)}}remove(){W(this.Ir)||(clearTimeout(this.Ir),this.Ir=void 0),this.nr.q(this.yr,!1),this.nr.q(this.yr,!0),this.Pr=void 0}clear(){this.remove(),this.props={}}register_once(e,t,i){if(H(e)){W(t)&&(t="None"),this.Er=W(i)?this.Or:i;var r=!1;if(iq(e,(e,i)=>{this.props.hasOwnProperty(i)&&this.props[i]!==t||(this.kr(i,e),r=!0)}),r)return this.save(),!0}return!1}register(e,t){if(H(e)){this.Er=W(t)?this.Or:t;var i=!1;if(iq(e,(t,r)=>{e.hasOwnProperty(r)&&this.props[r]!==t&&(this.kr(r,t),i=!0)}),i)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Cr(e),this.save())}update_campaign_params(){if(!this.mr){var e=rw(this.qt.custom_campaign_params,this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties);N(iB(e))||this.register(e),this.mr=!0}}update_search_keyword(){var e;this.register((e=null==o?void 0:o.referrer)?rj(e):{})}update_referrer_info(){var e;this.register_once({$referrer:rE(),$referring_domain:null!=o&&o.referrer&&(null==(e=rp(o.referrer))?void 0:e.host)||rk},void 0)}set_initial_person_info(){this.props[im]||this.props[ib]||this.register_once({[ix]:rC(this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};iq([ib,im],t=>{var i=this.props[t];i&&iq(i,function(t,i){e["$initial_"+O(i)]=t})});var t,i,r=this.props[ix];return r&&i$(e,(t=rR(r),i={},iq(t,function(e,t){i["$initial_"+O(t)]=e}),i)),e}safe_merge(e){return iq(this.props,function(t,i){i in e||(e[i]=t)}),e}update_config(e,t,i){if(this.Or=this.Er=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!i),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence||!((e,t)=>{if(e.length!==t.length)return!1;var i=[...e].sort(),r=[...t].sort();return i.every((e,t)=>e===r[t])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[])){var r=this.br(e),n=this.props;this.clear(),this.nr=r,this.props=n,this.save()}}set_disabled(e){this.wr=e,this.wr?this.remove():this.save()}set_cross_subdomain(e){e!==this.Mr&&(this.Mr=e,this.remove(),this.save())}set_secure(e){e!==this.Rr&&(this.Rr=e,this.remove(),this.save())}set_event_timer(e,t){var i=this.props[tN]||{};i[e]=t,this.kr(tN,i),this.save()}remove_event_timer(e){var t=this.props[tN]||{},i=t[e];return W(i)||(delete t[e],this.kr(tN,t),this.save()),i}get_property(e){return this.props[e]}set_property(e,t){this.kr(e,t),this.save()}kr(e,t){this.props[e]=t}Cr(e){delete this.props[e]}}var rA={Activation:"events",Cancellation:"cancelEvents"},rM={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},rO={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},rz={Popover:"popover",Inline:"inline"},rL={SHOWN:"product tour shown"},rD={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},rq=tz("[RateLimiter]");class r${constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;
vendor: 6,717 bytes, line 1
1if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{rq.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void rq.warn('could not rate limit - continuing. Error: "'+(null==e?void 0:e.message)+'"',{text:t})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return(null==(e=this.instance.config.rate_limiting)?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max((null==(e=this.instance.config.rate_limiting)?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){void 0===e&&(e=!1);var t,i,r,{captureEventsBurstLimit:n,captureEventsPerSecond:s}=this,o=(new Date).getTime(),a=null!==(t=null==(i=this.instance.persistence)?void 0:i.get_property(iv))&&void 0!==t?t:{tokens:n,last:o};a.tokens+=(o-a.last)/1e3*s,a.last=o,a.tokens>n&&(a.tokens=n);var l=1>a.tokens;return l||e||(a.tokens=Math.max(0,a.tokens-1)),!l||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+s+" events per second and "+n+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=l,null==(r=this.instance.persistence)||r.set_property(iv,a),{isRateLimited:l,remainingTokens:a.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var rH=tz("[RemoteConfig]");class rN{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=p._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}Lr(e){var t,i;null!=(t=p.__PosthogExtensions__)&&t.loadExternalDependency?null==(i=p.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):e()}Fr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(t){e(t.json)}})}load(){try{if(this.remoteConfig)return rH.info("Using preloaded remote config",this.remoteConfig),this.Ar(this.remoteConfig),void this.Nr();if(this._instance.$r())return void rH.warn("Remote config is disabled. Falling back to local config.");this.Lr(e=>{if(!e)return rH.info("No config found after loading remote JS config. Falling back to JSON."),void this.Fr(e=>{this.Ar(e),this.Nr()});this.Ar(e),this.Nr()})}catch(e){rH.error("Error loading remote config",e)}}stop(){this.Dr&&(clearInterval(this.Dr),this.Dr=void 0)}refresh(){!this._instance.$r()&&o&&"hidden"!==o.visibilityState&&this._instance.reloadFeatureFlags()}Nr(){var e;if(!this.Dr){var t=null!==(e=this._instance.config.remote_config_refresh_interval_ms)&&void 0!==e?e:3e5;0!==t&&(this.Dr=setInterval(()=>{this.refresh()},t))}}Ar(e){var t;e||rH.error("Failed to fetch remote config from PostHog."),this._instance.Ar(null!=e?e:{}),!1!==(null==e?void 0:e.hasFeatureFlags)&&(this._instance.config.advanced_disable_feature_flags_on_first_load||null==(t=this._instance.featureFlags)||t.ensureFlagsLoaded())}}var rW={GZipJS:"gzip-js",Base64:"base64"},rB=Uint8Array,rV=Uint16Array,rU=Uint32Array,rG=new rB([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),rQ=new rB([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),rZ=new rB([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),rK=function(e,t){for(var i=new rV(31),r=0;31>r;++r)i[r]=t+=1<<e[r-1];var n=new rU(i[30]);for(r=1;30>r;++r)for(var s=i[r];i[r+1]>s;++s)n[s]=s-i[r]<<5|r;return[i,n]},rY=rK(rG,2),rJ=rY[1];rY[0][28]=258,rJ[258]=28;for(var rX=rK(rQ,0)[1],r0=new rV(32768),r1=0;32768>r1;++r1){var r2=(43690&r1)>>>1|(21845&r1)<<1;r0[r1]=((65280&(r2=(61680&(r2=(52428&r2)>>>2|(13107&r2)<<2))>>>4|(3855&r2)<<4))>>>8|(255&r2)<<8)>>>1}var r6=function(e,t,i){for(var r=e.length,n=0,s=new rV(t);r>n;++n)++s[e[n]-1];var o,a=new rV(t);for(n=0;t>n;++n)a[n]=a[n-1]+s[n-1]<<1;if(i){o=new rV(1<<t);var l=15-t;for(n=0;r>n;++n)if(e[n])for(var c=n<<4|e[n],u=t-e[n],d=a[e[n]-1]++<<u,h=d|(1<<u)-1;h>=d;++d)o[r0[d]>>>l]=c}else for(o=new rV(r),n=0;r>n;++n)o[n]=r0[a[e[n]-1]++]>>>15-e[n];return o},r4=new rB(288);for(r1=0;144>r1;++r1)r4[r1]=8;for(r1=144;256>r1;++r1)r4[r1]=9;for(r1=256;280>r1;++r1)r4[r1]=7;for(r1=280;288>r1;++r1)r4[r1]=8;var r3=new rB(32);for(r1=0;32>r1;++r1)r3[r1]=5;var r5=r6(r4,9,0),r8=r6(r3,5,0),r7=function(e){return(e/8>>0)+(7&e&&1)},r9=function(e,t,i){(null==i||i>e.length)&&(i=e.length);var r=new(e instanceof rV?rV:e instanceof rU?rU:rB)(i-t);return r.set(e.subarray(t,i)),r},ne=function(e,t,i){var r=t/8>>0;e[r]|=i<<=7&t,e[r+1]|=i>>>8},nt=function(e,t,i){var r=t/8>>0;e[r]|=i<<=7&t,e[r+1]|=i>>>8,e[r+2]|=i>>>16},ni=function(e,t){for(var i=[],r=0;e.length>r;++r)e[r]&&i.push({s:r,f:e[r]});var n=i.length,s=i.slice();if(!n)return[new rB(0),0];if(1==n){var o=new rB(i[0].s+1);return o[i[0].s]=1,[o,1]}i.sort(function(e,t){return e.f-t.f}),i.push({s:-1,f:25001});var a=i[0],l=i[1],c=0,u=1,d=2;for(i[0]={s:-1,f:a.f+l.f,l:a,r:l};u!=n-1;)a=i[i[d].f>i[c].f?c++:d++],l=i[c!=u&&i[d].f>i[c].f?c++:d++],i[u++]={s:-1,f:a.f+l.f,l:a,r:l};var h=s[0].s;for(r=1;n>r;++r)s[r].s>h&&(h=s[r].s);var p=new rV(h+1),f=nr(i[u-1],p,0);if(f>t){r=0;var g=0,v=f-t,m=1<<v;for(s.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});n>r;++r){var b=s[r].s;if(t>=p[b])break;g+=m-(1<<f-p[b]),p[b]=t}for(g>>>=v;g>0;){var x=s[r].s;t>p[x]?g-=1<<t-p[x]++-1:++r}for(;r>=0&&g;--r){var _=s[r].s;p[_]==t&&(--p[_],++g)}f=t}return[new rB(p),f]},nr=function(e,t,i){return -1==e.s?Math.max(nr(e.l,t,i+1),nr(e.r,t,i+1)):t[e.s]=i},nn=function(e){for(var t=e.length;t&&!e[--t];);for(var i=new rV(++t),r=0,n=e[0],s=1,o=function(e){i[r++]=e},a=1;t>=a;++a)if(e[a]==n&&a!=t)++s;else{if(!n&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(n),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(n);s=1,n=e[a]}return[i.subarray(0,r),t]},ns=function(e,t){for(var i=0,r=0;t.length>r;++r)i+=e[r]*t[r];return i},no=function(e,t,i){var r=i.length,n=r7(t+2);e[n]=255&r,e[n+1]=r>>>8,e[n+2]=255^e[n],e[n+3]=255^e[n+1];for(var s=0;r>s;++s)e[n+s+4]=i[s];return 8*(n+4+r)},na=function(e,t,i,r,n,s,o,a,l,c,u){ne(t,u++,i),++n[256];for(var d=ni(n,15),h=d[0],p=d[1],f=ni(s,15),g=f[0],v=f[1],m=nn(h),b=m[0],x=m[1],_=nn(g),y=_[0],w=_[1],F=new rV(19),j=0;b.length>j;++j)F[31&b[j]]++;for(j=0;y.length>j;++j)F[31&y[j]]++;for(var S=ni(F,7),k=S[0],E=S[1],C=19;C>4&&!k[rZ[C-1]];--C);var R,P,I,T,A=c+5<<3,M=ns(n,r4)+ns(s,r3)+o,O=ns(n,h)+ns(s,g)+o+14+3*C+ns(F,k)+(2*F[16]+3*F[17]+7*F[18]);if(M>=A&&O>=A)return no(t,u,e.subarray(l,l+c));if(ne(t,u,1+(M>O)),u+=2,M>
1O){R=r6(h,p,0),P=h,I=r6(g,v,0),T=g;var z=r6(k,E,0);for(ne(t,u,x-257),ne(t,u+5,w-1),ne(t,u+10,C-4),u+=14,j=0;C>j;++j)ne(t,u+3*j,k[rZ[j]]);u+=3*C;for(var L=[b,y],D=0;2>D;++D){var q=L[D];for(j=0;q.length>j;++j)ne(t,u,z[$=31&q[j]]),u+=k[$],$>15&&(ne(t,u,q[j]>>>5&127),u+=q[j]>>>12)}}else R=r5,P=r4,I=r8,T=r3;for(j=0;a>j;++j)if(r[j]>255){nt(t,u,R[257+($=r[j]>>>18&31)]),u+=P[$+257],$>7&&(ne(t,u,r[j]>>>23&31),u+=rG[$]);var $,H=31&r[j];nt(t,u,I[H]),u+=T[H],H>3&&(nt(t,u,r[j]>>>5&8191),u+=rQ[H])}else nt(t,u,R[r[j]]),u+=P[r[j]];return nt(t,u,R[256]),u+P[256]},nl=new rU([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),nc=function(){for(var e=new rU(256),t=0;256>t;++t){for(var i=t,r=9;--r;)i=(1&i&&3988292384)^i>>>1;e[t]=i}return e}(),nu=function(e,t,i){for(;i;++t)e[t]=i,i>>>=8},nd=!!c||!!l,nh="text/plain",np=!1,nf=(e,t)=>{var[i,r]=e.split("#"),[n,s]=i.split("?");if(!s)return e;var o=s.split("&").filter(e=>e.split("=")[0]!==t).join("&");return n+(o?"?"+o:"")+(r?"#"+r:"")},ng=function(e,t,i){void 0===i&&(i=!0);var r,n,s,o,a,[l,c]=e.split("?"),u=b({},t),d=null!==(a=null==c?void 0:c.split("&").map(e=>{var t,[r,n]=e.split("="),s=i&&null!==(t=u[r])&&void 0!==t?t:n;return delete u[r],r+"="+s}))&&void 0!==a?a:[],h=(void 0===r&&(r="&"),o=[],iq(u,function(e,t){W(e)||W(t)||"undefined"===t||(n=encodeURIComponent(e instanceof File?e.name:e.toString()),s=encodeURIComponent(t),o[o.length]=s+"="+n)}),o.join(r));return h&&d.push(h),l+"?"+d.join("&")},nv=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),nm=e=>{if(e.tr)return e.tr;var{data:t,compression:i}=e;if(t){if(i===rW.GZipJS){var r,n,s,o,a,l,c,u,d=(r=function(e,t){var i=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new rB(e.length+(e.length>>>1)),n=0,s=function(e){r[n++]=e},o=0;i>o;++o){if(n+5>r.length){var a=new rB(n+8+(i-o<<1));a.set(r),r=a}var l=e.charCodeAt(o);128>l?s(l):(2048>l?s(192|l>>>6):(l>55295&&57344>l?(s(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++o))>>>18),s(128|l>>>12&63)):s(224|l>>>12),s(128|l>>>6&63)),s(128|63&l))}return r9(r,0,n)}(nv(t)),n={mtime:0},s=4294967295,o={p(e){for(var t=s,i=0;e.length>i;++i)t=nc[255&t^e[i]]^t>>>8;s=t},d:()=>4294967295^s},a=r.length,o.p(r),u=(l=10+(n.filename&&n.filename.length+1||0),c=function(e,t,i,r,n,s){var o=e.length,a=new rB(r+o+5*(1+Math.floor(o/7e3))+8),l=a.subarray(r,a.length-8),c=0;if(!t||8>o)for(var u=0;o>=u;u+=65535){var d=u+65535;o>d?c=no(l,c,e.subarray(u,d)):(l[u]=!0,c=no(l,c,e.subarray(u,o)))}else{for(var h=nl[t-1],p=h>>>13,f=8191&h,g=(1<<i)-1,v=new rV(32768),m=new rV(g+1),b=Math.ceil(i/3),x=2*b,_=function(t){return(e[t]^e[t+1]<<b^e[t+2]<<x)&g},y=new rU(25e3),w=new rV(288),F=new rV(32),j=0,S=0,k=(u=0,0),E=0,C=0;o>u;++u){var R=_(u),P=32767&u,I=m[R];if(v[P]=I,m[R]=P,u>=E){var T=o-u;if((j>7e3||k>24576)&&T>423){c=na(e,l,0,y,w,F,S,k,C,u-C,c),k=j=S=0,C=u;for(var A=0;286>A;++A)w[A]=0;for(A=0;30>A;++A)F[A]=0}var M=2,O=0,z=f,L=P-I&32767;if(T>2&&R==_(u-L))for(var D=Math.min(p,T)-1,q=Math.min(32767,u),$=Math.min(258,T);q>=L&&--z&&P!=I;){if(e[u+M]==e[u+M-L]){for(var H=0;$>H&&e[u+H]==e[u+H-L];++H);if(H>M){if(M=H,O=L,H>D)break;var N=Math.min(L,H-2),W=0;for(A=0;N>A;++A){var B=u-L+A+32768&32767,V=B-v[B]+32768&32767;V>W&&(W=V,I=B)}}}L+=(P=I)-(I=v[P])+32768&32767}if(O){y[k++]=268435456|rJ[M]<<18|rX[O];var U=31&rJ[M],G=31&rX[O];S+=rG[U]+rQ[G],++w[257+U],++F[G],E=u+M,++j}else y[k++]=e[u],++w[e[u]]}}c=na(e,l,!0,y,w,F,S,k,C,u-C,c)}return r9(a,0,r+r7(c)+8)}(r,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+n.mem,l,8)).length,function(e,t){var i=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=2>t.level?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&nu(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),i){e[3]=8;for(var r=0;i.length>=r;++r)e[r+10]=i.charCodeAt(r)}}(c,n),nu(c,u-8,o.d()),nu(c,u-4,a),c);return{contentType:nh,body:d.buffer.slice(d.byteOffset,d.byteOffset+d.byteLength),estimatedSize:d.byteLength}}if(i===rW.Base64){let e;var h,p="data="+encodeURIComponent("string"==typeof(e=(h=nv(t))?btoa(encodeURIComponent(h).replace(/%([0-9A-F]{2})/g,(e,t)=>
1String.fromCharCode(parseInt(t,16)))):h)?e:nv(e));return{contentType:"application/x-www-form-urlencoded",body:p,estimatedSize:new Blob([p]).size}}var f=nv(t);return{contentType:"application/json",body:f,estimatedSize:new Blob([f]).size}}},nb=e=>{var t,i,r,n=nm(e);return!n||(i=e.compression,r=rf(e.url,"compression"),i!==F.GZipJS&&r!==F.GZipJS&&"gzip"!==r)||((t=n.body)instanceof ArrayBuffer?k(new Uint8Array(t)):ArrayBuffer.isView(t)&&k(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)))?{url:e.url,encodedBody:n}:(np=!0,{url:nf(e.url,"compression"),encodedBody:nm(b({},e,{compression:void 0,tr:void 0}))})},nx=(nQ=m(function*(e){var t=nv(e.data),i=yield function(e,t,i){return P.apply(this,arguments)}(t,g.DEBUG,{rethrow:!0});if(!i)return e;var r=yield i.arrayBuffer();return b({},e,{tr:{contentType:nh,body:r,estimatedSize:r.byteLength}})}),function(e){return nQ.apply(this,arguments)}),n_=(e,t)=>ng(e,{_:(new Date).getTime().toString(),ver:g.JS_SDK_VERSION,compression:t}),ny=[];l&&ny.push({transport:"fetch",method(e){var t,{url:i,encodedBody:r}=nb(e),{contentType:n,body:s,estimatedSize:o}=null!=r?r:{},a=new Headers;iq(e.headers,function(e,t){a.append(t,e)}),n&&a.append("Content-Type",n);var c=null;if(u){var d=new u;c={signal:d.signal,timeout:setTimeout(()=>d.abort(),e.timeout)}}l(i,b({method:(null==e?void 0:e.method)||"GET",headers:a,keepalive:"POST"===e.method&&52428.8>(o||0),body:s,signal:null==(t=c)?void 0:t.signal},e.fetchOptions)).then(t=>t.text().then(i=>{var r={statusCode:t.status,text:i};if(200===t.status)try{r.json=JSON.parse(i)}catch(e){tO.error(e)}null==e.callback||e.callback(r)})).catch(t=>{tO.error(t),null==e.callback||e.callback({statusCode:0,error:t})}).finally(()=>c?clearTimeout(c.timeout):null)}}),c&&ny.push({transport:"XHR",method(e){var t=new c,{url:i,encodedBody:r}=nb(e);t.open(e.method||"GET",i,!0);var{contentType:n,body:s}=null!=r?r:{};iq(e.headers,function(e,i){t.setRequestHeader(i,e)}),n&&t.setRequestHeader("Content-Type",n),e.timeout&&(t.timeout=e.timeout),e.disableXHRCredentials||(t.withCredentials=!0),t.onreadystatechange=()=>{if(4===t.readyState){var i={statusCode:t.status,text:t.responseText};if(200===t.status)try{i.json=JSON.parse(t.responseText)}catch(e){}null==e.callback||e.callback(i)}},t.send(s)}}),null!=s&&s.sendBeacon&&ny.push({transport:"sendBeacon",method(e){try{var{url:t,encodedBody:i}=nb(e),r=ng(t,{beacon:"1"}),{contentType:n,body:o}=null!=i?i:{};if(!o)return;var a=o instanceof Blob?o:new Blob([o],{type:n});s.sendBeacon(r,a)}catch(e){}}});
1class nw{constructor(e,t){this.qr=!0,this.jr=[],this.Hr=es((null==t?void 0:t.flush_interval_ms)||3e3,250,5e3,tO.createLogger("flush interval"),3e3),this.Ur=e}enqueue(e){this.jr.push(e),this.Br||this.zr()}unload(){this.Vr();var e=Object.values(this.jr.length>0?this.Wr():{});[...e.filter(e=>0===e.url.indexOf("/e")),...e.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.Ur(b({},e,{transport:"sendBeacon"}))})}enable(){this.qr=!1,this.zr()}zr(){var e=this;this.qr||(this.Br=setTimeout(()=>{if(this.Vr(),this.jr.length>0){var t=this.Wr();for(var i in t)!function(){var r=t[i],n=(new Date).getTime();r.data&&q(r.data)&&iq(r.data,e=>{e.offset=Math.abs(e.timestamp-n),delete e.timestamp}),e.Ur(r)}()}},this.Hr))}Vr(){clearTimeout(this.Br),this.Br=void 0}Wr(){var e={};return iq(this.jr,t=>{var i,r=(t?t.batchKey:null)||t.url;W(e[r])&&(e[r]=b({},t,{data:[]})),null==(i=e[r].data)||i.push(t.data)}),this.jr=[],e}}var nF=["retriesPerformedSoFar"];class nj{constructor(e){this.Zr=!1,this.Gr=3e3,this.jr=[],this._instance=e,this.jr=[],this.Qr=!0,!W(r)&&"onLine"in r.navigator&&(this.Qr=r.navigator.onLine,this.Jr=()=>{this.Qr=!0,this.Kr()},this.Yr=()=>{this.Qr=!1},iU(r,"online",this.Jr),iU(r,"offline",this.Yr))}get length(){return this.jr.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,i=x(e,nF);Z(t)&&(i.url=ng(i.url,{retry_count:t})),this._instance._send_request(b({},i,{callback:e=>{200===e.statusCode||e.statusCode>=400&&500>e.statusCode||(null!=t?t:0)>=10?null==i.callback||i.callback(e):this.Xr(b({retriesPerformedSoFar:t},i))}}))}Xr(e){var t,i,r=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=r+1;var n=Math.ceil((i=Math.min(18e5,t=3e3*Math.pow(2,r)))+(Math.random()-.5)*(i-t/2)),s=Date.now()+n;this.jr.push({retryAt:s,requestOptions:e});var o="Enqueued failed request for retry in "+n;navigator.onLine||(o+=" (Browser is offline)"),tO.warn(o),this.Zr||(this.Zr=!0,this.ei())}ei(){if(this.ti&&clearTimeout(this.ti),0===this.jr.length)return this.Zr=!1,void(this.ti=void 0);this.ti=setTimeout(()=>{this.Qr&&this.jr.length>0&&this.Kr(),this.ei()},this.Gr)}Kr(){var e=Date.now(),t=[],i=this.jr.filter(i=>e>i.retryAt||(t.push(i),!1));if(this.jr=t,i.length>0)for(var{requestOptions:r}of i)this.retriableRequest(r)}unload(){for(var{requestOptions:e}of(this.ti&&(clearTimeout(this.ti),this.ti=void 0),this.Zr=!1,W(r)||(this.Jr&&(r.removeEventListener("online",this.Jr),this.Jr=void 0),this.Yr&&(r.removeEventListener("offline",this.Yr),this.Yr=void 0)),this.jr))try{this._instance._send_request(b({},e,{transport:"sendBeacon"}))}catch(e){tO.error(e)}this.jr=[]}}class nS{constructor(e){this.ri=()=>{this.ii||(this.ii={});var e,t,i,r,n=this.scrollElement(),s=this.scrollY(),o=n?Math.max(0,n.scrollHeight-n.clientHeight):0,a=s+((null==n?void 0:n.clientHeight)||0),l=(null==n?void 0:n.scrollHeight)||0;this.ii.lastScrollY=Math.ceil(s),this.ii.maxScrollY=Math.max(s,null!==(e=this.ii.maxScrollY)&&void 0!==e?e:0),this.ii.maxScrollHeight=Math.max(o,null!==(t=this.ii.maxScrollHeight)&&void 0!==t?t:0),this.ii.lastContentY=a,this.ii.maxContentY=Math.max(a,null!==(i=this.ii.maxContentY)&&void 0!==i?i:0),this.ii.maxContentHeight=Math.max(l,null!==(r=this.ii.maxContentHeight)&&void 0!==r?r:0)},this._instance=e}get ni(){return this._instance.config.scroll_root_selector}getContext(){return this.ii}resetContext(){var e=this.ii;return setTimeout(this.ri,0),e}startMeasuringScrollPosition(){iU(r,"scroll",this.ri,{capture:!0}),iU(r,"scrollend",this.ri,{capture:!0}),iU(r,"resize",this.ri)}scrollElement(){if(!this.ni)return null==r?void 0:r.document.documentElement;for(var e of q(this.ni)?this.ni:[this.ni]){var t=null==r?void 0:r.document.querySelector(e);if(t)return t}}scrollY(){if(this.ni){var e=this.scrollElement();return e&&e.scrollTop||0}return r&&(r.scrollY||r.pageYOffset||r.document.documentElement.scrollTop)||0}scrollX(){if(this.ni){var e=this.scrollElement();return e&&e.scrollLeft||0}return r&&(r.scrollX||r.pageXOffset||r.document.documentElement.scrollLeft)||0}}var nk=e=>rC(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);
1class nE{constructor(e,t,i,r){this.si=e=>{var t=this.oi();if(!t||t.sessionId!==e){var i={sessionId:e,props:this.ai(this._instance)};this.ui.register({[ig]:i})}},this._instance=e,this.li=t,this.ui=i,this.ai=r||nk,this.li.onSessionId(this.si)}oi(){return this.ui.props[ig]}getSetOnceProps(){var e,t=null==(e=this.oi())?void 0:e.props;return t?"r"in t?rR(t):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return iq(iB(this.getSetOnceProps()),(t,i)=>{"$current_url"===i&&(i="url"),e["$session_entry_"+O(i)]=t}),e}}class nC{constructor(){this.hi={}}on(e,t){return this.hi[e]||(this.hi[e]=[]),this.hi[e].push(t),()=>{this.hi[e]=this.hi[e].filter(e=>e!==t)}}emit(e,t){for(var i of this.hi[e]||[])i(t);for(var r of this.hi["*"]||[])r(e,t)}}var nR=tz("[SessionId]");class nP{on(e,t){return this.ci.on(e,t)}constructor(e,t,i){if(this.di=null,this.vi=[],this.fi=void 0,this.ci=new nC,this.pi=(e,t)=>!(!Z(e)||!Z(t))&&Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===iC)throw Error('SessionIdManager cannot be used with cookieless_mode="always"');this.qt=e.config,this.ui=e.persistence,this.gi=void 0,this.mi=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.yi=t||iX,this.bi=i||iX;var r,n=this.qt.persistence_name||this.qt.token;if(this._sessionTimeoutMs=1e3*es(this.qt.session_idle_timeout_seconds||1800,60,36e3,nR.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.wi(),this.xi="ph_"+n+"_window_id",this.Si="ph_"+n+"_primary_window_exists",this.ki()){var s=re.F(this.xi),o=re.F(this.Si);s&&!o?this.gi=s:re.q(this.xi),re.N(this.Si,!0)}if(null!=(r=this.qt.bootstrap)&&r.sessionID)try{var a=(e=>{var t=this.qt.bootstrap.sessionID.replace(/-/g,"");if(32!==t.length)throw Error("Not a valid UUID");if("7"!==t[12])throw Error("Not a UUIDv7");return parseInt(t.substring(0,12),16)})();this.Ci(this.qt.bootstrap.sessionID,(new Date).getTime(),a)}catch(e){nR.error("Invalid sessionID in bootstrap",e)}this.Ii()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return W(this.vi)&&(this.vi=[]),this.vi.push(e),this.mi&&e(this.mi,this.gi),()=>{this.vi=this.vi.filter(t=>t!==e)}}ki(){return"memory"!==this.qt.persistence&&!this.ui.wr&&re.R()}Ti(e){e!==this.gi&&(this.gi=e,this.ki()&&re.N(this.xi,e))}Ei(){return this.gi?this.gi:this.ki()?re.F(this.xi):null}Mi(e){var t=this.di;return!U(t)&&!U(e)&&5e3>Math.abs(e-t)}Ci(e,t,i){var r=t!==this._sessionActivityTimestamp,n=!(e!==this.mi||i!==this._sessionStartTimestamp);this._sessionStartTimestamp=i,this._sessionActivityTimestamp=t,this.mi=e,n&&!r||n&&this.Mi(t)||(this.di=t,this.ui.register({[t6]:[t,e,i]}))}Ri(){var e,t=null==(e=this.qt)?void 0:e.persistence_save_debounce_ms;return Z(t)&&t>0}Pi(){var e;if(!U(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.di){this.Ri()?this.ui.refreshKey(t6):(this.ui.flush(),this.ui.load());var[,t,i]=this.Oi();t===this.mi&&i===this._sessionStartTimestamp&&(this.di=this._sessionActivityTimestamp,this.ui.register({[t6]:[this._sessionActivityTimestamp,null!==(e=this.mi)&&void 0!==e?e:null,this._sessionStartTimestamp]}),this.ui.flush())}}Li(){var[e]=this.Oi();return Math.max(Z(e)?e:0,Z(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0)}Oi(){var e=this.ui.props[t6];return q(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.di=null,clearTimeout(this.Fi),this.Fi=void 0,this.Ci(null,null,null)}destroy(){this.Pi(),clearTimeout(this.Fi),this.Fi=void 0,this.fi&&r&&(r.removeEventListener(iA,this.fi,{capture:!1}),this.fi=void 0),this.vi=[]}Ii(){this.fi=()=>{this.Pi(),this.ki()&&re.q(this.Si)},iU(r,iA,this.fi,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),this.qt.cookieless_mode===iC)throw Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var i=t||(new Date).getTime(),[,r,n]=this.Oi(),s=this.Li(),o=this.Ei(),a=Z(n)&&Math.abs(i-n)>864e5,l=!1,c=!r,u=!c&&!e&&this.pi(i,s);c||u||a?(r=this.yi(),o=this.bi(),nR.info("new session ID generated",{sessionId:r,windowId:o,changeReason:{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:a}}),n=i,l=!0):o||(o=this.bi(),l=!0);var d=Z(s)&&e&&!a?s:i,h=Z(n)?n:(new Date).getTime();
1return this.Ti(o),this.Ci(r,d,h),e||this.wi(),l&&this.vi.forEach(e=>e(r,o,l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:a}:void 0)),{sessionId:r,windowId:o,sessionStartTimestamp:h,changeReason:l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:a}:void 0,lastActivityTimestamp:s}}wi(){clearTimeout(this.Fi),this.Fi=setTimeout(()=>{var e=this.Li();if(this.pi((new Date).getTime(),e)){var t=this.mi;this.resetSessionId(),this.ci.emit("forcedIdleReset",{idleSessionId:t})}},1.1*this.sessionTimeoutMs)}}var nI=function(e,t){if(!e)return!1;var i=e.userAgent;if(i&&T(i,t))return!0;try{var r=null==e?void 0:e.userAgentData;if(null!=r&&r.brands&&r.brands.some(e=>T(null==e?void 0:e.brand,t)))return!0}catch(e){}return!!e.webdriver},nT=function(e,t){if(!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch(e){return!1}};function nA(e,t,i){return nv({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:i})}var nM={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>nT(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!nT(t,e))),icontains:(e,t)=>t.map(nO).some(t=>e.map(nO).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(nO).every(t=>e.map(nO).every(e=>!t.includes(e))),gt:(e,t)=>t.some(t=>{var i=parseFloat(t);return!isNaN(i)&&e.some(e=>i>parseFloat(e))}),lt:(e,t)=>t.some(t=>{var i=parseFloat(t);return!isNaN(i)&&e.some(e=>i<parseFloat(e))})},nO=e=>e.toLowerCase();function nz(e,t){return!e||Object.entries(e).every(e=>{var[i,r]=e,n=null==t?void 0:t[i];if(W(n)||U(n))return!1;var s=[String(n)],o=nM[r.operator];return!!o&&o(r.values,s)})}var nL="custom",nD="i.posthog.com",nq=/^\/static\//;class n${constructor(e){this.Ai={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+nD,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.Ai[this.apiHost]||(this.Ai[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":nL),this.Ai[this.apiHost]}Ni(e){var t=this.instance.config.__preview_external_dependency_versioned_paths;if("string"==typeof t&&nq.test(e))return t.trim().replace(/\/$/,"")||void 0}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if("flags"===e)return this.flagsApiHost+t;if("assets"===e){var i=this.Ni(t);if(i)return""+i+t}if(this.region===nL)return this.apiHost+t;var r=nD+t;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var nH=tz("[Surveys]"),nN="seenSurvey_",nW=["popover","widget","api"],nB={ignoreConditions:!1,ignoreDelay:!1,displayType:rz.Popover},nV=tz("[PostHog ExternalIntegrations]"),nU={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class nG{constructor(e){this._instance=e}lr(e,t){var i;null==(i=p.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,e,e=>{if(e)return nV.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e,t=this,i=function(e){var i,r,s;!n||null!=(i=p.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[e]||t.lr(nU[e],()=>{var i;null==(i=p.__PosthogExtensions__)||null==(i=i.integrations)||null==(i=i[e])||i.start(t._instance)}),!n&&null!=(r=p.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[e]&&(null==(s=p.__PosthogExtensions__)||null==(s=s.integrations)||null==(s=s[e])||s.stop())};for(var[r,n]of Object.entries(null!==(e=this._instance.config.integrations)&&void 0!==e?e:{}))i(r)}}var nQ,nZ,nK={},nY=0,nJ=()=>{},nX='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',n0="Surveys module not available",n1="sanitize_properties is deprecated. Use before_send instead",n2="Invalid value for property_denylist config: ",n6="posthog",n4=!nd&&-1===(null==h?void 0:h.indexOf("MSIE"))&&-1===(null==h?void 0:h.indexOf("Mozilla")),n3=e=>{var t;return b({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:function(e){var t=null==e?void 0:e.hostname;if(!B(t))return!1;var i=t.split(".").slice(-2).join(".");for(var r of iV)if(i===r)return!1;return!0}(null==o?void 0:o.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:nJ,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:a&&B(null==a?void 0:a.search)&&-1!==a.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==r||null==(t=r.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(e){tO.error("Bad HTTP status: "+e.statusCode+" "+e.text)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:iI,before_send:void 0,request_queue_config:{flush_interval_ms:3e3},error_tracking:{},_onCapture:nJ,__preview_eager_load_replay:!1},{rageclick:!e||"2025-11-30">e||{content_ignorelist:!0},capture_pageview:!e||"2025-05-24">e||"history_change",session_recording:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:e&&e>="2026-05-30"?250:0})},n5=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],n8=e=>{var t={};
1for(var[i,r]of n5)W(e[i])||(t[r]=e[i]);var n=i$({},t,e);return q(e.property_blacklist)&&(W(e.property_denylist)?n.property_denylist=e.property_blacklist:q(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:tO.error(n2+e.property_denylist)),n};class n7{constructor(){this.__forceAllowLocalhost=!1}get $i(){return this.__forceAllowLocalhost}set $i(e){tO.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class n9{Di(e,t){if(e){var i=this.qi.indexOf(e);-1!==i&&this.qi.splice(i,1)}return this.qi.push(t),null==t.initialize||t.initialize(),t}ji(){return this.config.cookieless_mode===iC||this.config.cookieless_mode===iE&&this.consent.isRejected()}get decideEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}get flagsEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}constructor(){this.webPerformance=new n7,this.Hi=!1,this.version=g.LIB_VERSION,this.Ui=new nC,this.qi=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=n3(),this.SentryIntegration=rc,this.sentryIntegration=e=>{var t;return t=rl(this,e),{name:ra,processEvent:e=>t(e)}},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Bi=!1,this.zi=null,this.Vi=null,this.Wi=null,this.scrollManager=new nS(this),this.pageViewManager=new ru(this),this.rateLimiter=new r$(this),this.requestRouter=new n$(this),this.consent=new rt(this),this.externalIntegrations=new nG(this);var e,t=null!==(e=n9.__defaultExtensionClasses)&&void 0!==e?e:{};this.featureFlags=t.featureFlags&&new t.featureFlags(this),this.toolbar=t.toolbar&&new t.toolbar(this),this.surveys=t.surveys&&new t.surveys(this),this.conversations=t.conversations&&new t.conversations(this),this.logs=t.logs&&new t.logs(this),this.experiments=t.experiments&&new t.experiments(this),this.exceptions=t.exceptions&&new t.exceptions(this),this.people={set:(e,t,i)=>{var r=B(e)?{[e]:t}:e;this.setPersonProperties(r),null==i||i({})},set_once:(e,t,i)=>{var r=B(e)?{[e]:t}:e;this.setPersonProperties(void 0,r),null==i||i({})}},this.on("eventCaptured",e=>tO.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,i){if(i&&i!==n6){var r,n=null!==(r=nK[i])&&void 0!==r?r:new n9;return n._init(e,t,i),nK[i]=n,nK[n6][i]=n,n}return this._init(e,t,i)}_init(e,t,i){void 0===t&&(t={});var n,s,o=B(e)?e.trim():"";if(!o)return tO.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},t.debug=this.Zi(t.debug),this.Gi=t,this.Qi=[],t.person_profiles?this.Vi=t.person_profiles:t.process_person&&(this.Vi=t.process_person),this.set_config(i$({},n3(t.defaults),n8(t),{name:i,token:o})),this.config.on_xhr_error&&tO.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:rW.GZipJS;var a=this.Ji();this.persistence=new rT(this.config,a),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new rT(b({},this.config,{persistence:"sessionStorage"}),a);var l=b({},this.persistence.props),c=b({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Ki=new nw(e=>this.Yi(e),this.config.request_queue_config),this.Xi=new nj(this),this.__request_queue=[];var u=this.ji();if(u||(this.sessionManager=new nP(this),this.sessionPropsManager=new nE(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(tO.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.en(u)},0)):(tO.info("Initializing extensions synchronously"),this.en(u)),g.DEBUG=g.DEBUG||this.config.debug,g.DEBUG&&tO.info("Starting in debug mode",{this:this,config:t,thisC:b({},this.config),p:l,s:c}),!this.config.identity_distinct_id||null!=(n=t.bootstrap)&&n.distinctID||(t.bootstrap=b({},t.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0}
1)),void 0!==(null==(s=t.bootstrap)?void 0:s.distinctID)){var d=t.bootstrap.distinctID,h=this.get_distinct_id(),p=this.persistence.get_property(ip);if(t.bootstrap.isIdentifiedID&&null!=h&&h!==d&&p===iR)this.identify(d);else if(t.bootstrap.isIdentifiedID&&null!=h&&h!==d&&p===iP)tO.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var f=this.config.get_device_id(iX()),v=t.bootstrap.isIdentifiedID?f:d;this.persistence.set_property(ip,t.bootstrap.isIdentifiedID?iP:iR),this.register({distinct_id:d,$device_id:v})}}if(u)this.register_once({distinct_id:iw,$device_id:null},"");else if(!this.get_distinct_id()){var m=this.config.get_device_id(iX());this.register_once({distinct_id:m,$device_id:m},""),this.persistence.set_property(ip,iR)}return iU(r,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),t.segment?function(e,t){var i=e.config.segment;if(!i)return t();!function(e,t){var i=e.config.segment;if(!i)return t();var r=i=>{var r=()=>i.anonymousId()||iX();e.config.get_device_id=r,i.id()&&(e.register({distinct_id:i.id(),$device_id:r()}),e.persistence.set_property(ip,iP)),t()},n=i.user();"then"in n&&$(n.then)?n.then(r):r(n)}(e,()=>{var r;i.register((Promise&&Promise.resolve||ro.warn("This browser does not have Promise support, and can not use the segment integration"),r=(t,i)=>{if(!i)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(ro.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(ro.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var r=e.calculateEventProperties(i,t.event.properties);return t.event.properties=Object.assign({},r,t.event.properties),t},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>r(e,e.event.event),page:e=>r(e,iM),identify:e=>r(e,iz),screen:e=>r(e,"$screen")})).then(()=>{t()})})}(this,()=>this.tn()):this.tn(),$(this.config._onCapture)&&this.config._onCapture!==nJ&&(tO.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&tO.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}en(e){var t,i,r,n,s,o,a,l=performance.now(),c=b({},n9.__defaultExtensionClasses,this.config.__extensionClasses),u=[];c.featureFlags&&this.qi.push(this.featureFlags=null!==(t=this.featureFlags)&&void 0!==t?t:new c.featureFlags(this)),c.exceptions&&this.qi.push(this.exceptions=null!==(i=this.exceptions)&&void 0!==i?i:new c.exceptions(this)),c.historyAutocapture&&this.qi.push(this.historyAutocapture=new c.historyAutocapture(this)),c.tracingHeaders&&this.qi.push(new c.tracingHeaders(this)),c.siteApps&&this.qi.push(this.siteApps=new c.siteApps(this)),c.sessionRecording&&!e&&this.qi.push(this.sessionRecording=new c.sessionRecording(this)),this.config.disable_scroll_properties||u.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),c.autocapture&&this.qi.push(this.autocapture=new c.autocapture(this)),c.surveys&&this.qi.push(this.surveys=null!==(r=this.surveys)&&void 0!==r?r:new c.surveys(this)),c.logs&&this.qi.push(this.logs=null!==(n=this.logs)&&void 0!==n?n:new c.logs(this)),c.conversations&&this.qi.push(this.conversations=null!==(s=this.conversations)&&void 0!==s?s:new c.conversations(this)),c.productTours&&this.qi.push(this.productTours=new c.productTours(this)),c.heatmaps&&this.qi.push(this.heatmaps=new c.heatmaps(this)),c.webVitalsAutocapture&&this.qi.push(this.webVitalsAutocapture=new c.webVitalsAutocapture(this)),c.exceptionObserver&&this.qi.push(this.exceptionObserver=new c.exceptionObserver(this)),c.deadClicksAutocapture&&this.qi.push(this.deadClicksAutocapture=new c.deadClicksAutocapture(this,rn)),c.toolbar&&this.qi.push(this.toolbar=null!==(o=this.toolbar)&&void 0!==o?o:new c.toolbar(this)),c.experiments&&this.qi.push(this.experiments=null!==(a=this.experiments)&&void 0!==a?a:new c.experiments(this)),this.qi.forEac
1h(e=>{e.initialize&&u.push(()=>{null==e.initialize||e.initialize()})}),u.push(()=>{if(this.rn){var e=this.rn;this.rn=void 0,this.Ar(e)}}),this.nn(u,l)}nn(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.nn(e,t)},0);var i=e.shift();if(i)try{i()}catch(e){tO.error("Error initializing extension:",e)}}var r=Math.round(performance.now()-t);this.register_for_session({[iF]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[ij]:r}),this.config.__preview_deferred_init_extensions&&tO.info("PostHog extensions initialized ("+r+"ms)")}Ar(e){var t;if(!o||!o.body)return tO.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.Ar(e)},500);this.config.__preview_deferred_init_extensions&&(this.rn=e),this.sn=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=A(e.supportedCompression,rW.GZipJS)?rW.GZipJS:A(e.supportedCompression,rW.Base64)?rW.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Vi?this.Vi:iI}),this.qi.forEach(t=>null==t.onRemoteConfig?void 0:t.onRemoteConfig(e))}tn(){try{this.config.loaded(this)}catch(e){tO.critical("`loaded` function failed",e)}if(this.an(),this.config.internal_or_test_user_hostname&&null!=a&&a.hostname){var e=a.hostname,t=this.config.internal_or_test_user_hostname;("string"==typeof t?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.ji())&&this.un()},1),this.ln=new rN(this),this.ln.load()}an(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Ki)||e.enable())}_dom_loaded(){this.is_capturing()&&iD(this.__request_queue,e=>this.Yi(e)),this.__request_queue=[],this.an()}_handle_unload(){var e,t,i,r;null==(e=this.surveys)||e.handlePageUnload(),this.config.request_batching?(this.hn()&&this.capture(iO),null==(t=this.logs)||t.flushLogs("sendBeacon"),null==(i=this.Ki)||i.unload(),null==(r=this.Xi)||r.unload()):this.hn()&&this.capture(iO,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(n4?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=ng(e.url,{ip:this.config.ip?1:0}),e.headers=b({},this.config.request_headers,e.headers),e.compression="best-available"===e.compression?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(e=>{var t,i,r,n=b({},e);n.timeout=n.timeout||6e4,n.url=n_(n.url,n.compression);var s=null!==(t=n.transport)&&void 0!==t?t:"fetch",o=ny.filter(e=>!n.disableTransport||!e.transport||!n.disableTransport.includes(e.transport)),a=null!==(i=null==(r=function(e,t){for(var i=0;e.length>i;i++)if(e[i].transport===s)return e[i]}(o))?void 0:r.method)&&void 0!==i?i:o[0].method;if(!a)throw Error("No available transport method");"sendBeacon"!==s&&n.data&&n.compression===rW.GZipJS&&d&&!np?nx(n).then(e=>{a(e)}).catch(t=>{if(E(t))return np=!0,void a(b({},n,{compression:void 0,url:n_(e.url,void 0)}));(e=>{if(!e||"object"!=typeof e)return!1;var t="name"in e?String(e.name):"";return E(e)||t===S})(t)&&(np=!0),a(n)}):a(n)})(b({},e,{callback:t=>{var i,r;this.rateLimiter.checkForLimiting(t),400>t.statusCode||null==(i=(r=this.config).on_request_error)||i.call(r,t),null==e.callback||e.callback(t)}}))))}Yi(e){this.Xi?this.Xi.retriableRequest(e):this._send_request(e)}_execute_array(e){nY++;try{var t,i=[],r=[],n=[];iD(e,e=>{if(e){if(q(t=e[0]))n.push(e);else if($(e))try{e.call(this)}catch(t){tO.error("Error executing queued PostHog call",e,t)}else q(e)&&"alias"===t?i.push(e):q(e)&&-1!==t.indexOf("capture")&&$(this[t])?n.push(e):r.push(e)}});var s=function(e,t){iD(e,function(e){try{if(q(e[0])){var i=t;iq(e,function(e){i=i[e[0]].apply(i,e.slice(1))})}else t[e[0]].apply(t,e.slice(1))}catch(t){tO.error("Error executing queued PostHog call",e,t)}})};s(i,this),s(r,this),s(n,this)}finally{nY--}}push(e){if(nY>0&&q(e)&&B(e[0])){var t=n9.prototype[e[0]];$(t)&&t.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,t,i){var r,n,s,o,a;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Ki){if(this.is_capturing()){if(!W(e)&&B(e)){var l=!this.config.opt_out_useragent_filter&&this._is_bot();if(!l||this.config.__preview_capture_bot_pageviews){var c=null!=i&&i.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==c||!c.isRateLimited){null!=t&&t.$current_url&&!B(null==t?void 0:t.$current_url)&&(tO.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),"$exception"!==e||null!=i&&i.cn||tO.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var u=new Date,d=(null==i?void 0:i.timestamp)||u,h=(null==i?void 0:i.uuid)||iX(),p={uuid:h,event:e,properties:this.calculateEventProperties(e,t||{},d,h)};e===iM&&this.config.__preview_capture_bot_pageviews&&l&&(p.event="$bot_pageview",p.properties.$browser_type="bot"),c&&
1(p.properties.$lib_rate_limit_remaining_tokens=c.remainingTokens),(null==i?void 0:i.$set)&&(p.$set=null==i?void 0:i.$set);var f,g,v,m=this.dn(null==i?void 0:i.$set_once,e!==iL,e===iz);if(m&&(p.$set_once=m),null!=i&&i._noTruncate||(n=this.config.properties_string_max_length,s=p,o=e=>B(e)?e.slice(0,n):e,a=new Set,p=function e(t,i){var r;return t!==Object(t)?o?o(t):t:a.has(t)?void 0:(a.add(t),q(t)?(r=[],iD(t,t=>{r.push(e(t))})):(r={},iq(t,(t,i)=>{a.has(t)||(r[i]=e(t,i))})),r)}(s)),p.timestamp=d,W(null==i?void 0:i.timestamp)||(p.properties.$event_time_override_provided=!0,p.properties.$event_time_override_system_time=u),e===rM.DISMISSED||e===rM.SENT){var x=null==t?void 0:t[rO.SURVEY_ID],_=null==t?void 0:t[rO.SURVEY_ITERATION];(e=>{try{var t,i=(t=""+nN+e.id,e.current_iteration&&e.current_iteration>0&&(t=""+nN+e.id+"_"+e.current_iteration),t);if(localStorage.getItem(i))return;localStorage.setItem(i,"true")}catch(e){nH.error("Failed to persist survey seen state",e)}})({id:x,current_iteration:_}),p.$set=b({},p.$set,{[(f={id:x,current_iteration:_},v="$survey_"+(g=e===rM.SENT?"responded":"dismissed")+"/"+f.id,f.current_iteration&&f.current_iteration>0&&(v="$survey_"+g+"/"+f.id+"/"+f.current_iteration),v)]:!0})}else e===rM.SHOWN&&(p.$set=b({},p.$set,{[rO.SURVEY_LAST_SEEN_DATE]:(new Date).toISOString()}));if(e===rL.SHOWN){var y=null==t?void 0:t[rD.TOUR_TYPE];y&&(p.$set=b({},p.$set,{[rD.TOUR_LAST_SEEN_DATE+"/"+y]:(new Date).toISOString()}))}var w=b({},p.properties.$set,p.$set);if(N(w)||this.setPersonPropertiesForFlags(w),!G(this.config.before_send)){var F=this.vn(p);if(!F)return;p=F}this.Ui.emit("eventCaptured",p);var j={method:"POST",url:null!==(r=null==i?void 0:i._url)&&void 0!==r?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:p,compression:"best-available",batchKey:null==i?void 0:i._batchKey,transport:null==i?void 0:i.transport};return!this.config.request_batching||i&&(null==i||!i._batchKey)||null!=i&&i.send_instantly?this.Yi(j):this.Ki.enqueue(j),p}tO.critical("This capture call is ignored due to client rate limiting.")}}else tO.error("No event name provided to posthog.capture")}}else tO.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",t=>e(t.event,t))}calculateEventProperties(e,t,i,n,s){if(i=i||new Date,!this.persistence||!this.sessionPersistence)return t;var l,c=s?void 0:this.persistence.remove_event_timer(e),u=b({},t);if(u.token=this.config.token,u.$config_defaults=this.config.defaults,this.ji()&&(u.$cookieless_mode=!0),"$snapshot"===e){var d=b({},this.persistence.properties(),this.sessionPersistence.properties());return u.distinct_id=d.distinct_id,(!B(u.distinct_id)&&!Q(u.distinct_id)||V(u.distinct_id))&&tO.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),u}var p,f=function(e,t){if(!h)return{};var i,n,s,o,l,c,u,d,p,f,v,m,b=e?[...rb,...t||[]]:[],[x,_]=function(e){for(var t=0;te.length>t;t++){var[i,r]=te[t],n=i.exec(e),s=n&&($(r)?r(n,e):r);if(s)return s}return["",""]}(h),y=null!=(l="undefined"!=typeof navigator?navigator:void 0)&&l.brave?{brave:!0}:{};return i$(iB({$os:x,$os_version:_,$browser:e8(h,navigator.vendor,y),$device:tt(h),$device_type:(u={userAgentDataPlatform:null==(i=navigator)||null==(i=i.userAgentData)?void 0:i.platform,maxTouchPoints:null==(n=navigator)?void 0:n.maxTouchPoints,screenWidth:null==r||null==(s=r.screen)?void 0:s.width,screenHeight:null==r||null==(o=r.screen)?void 0:o.height,devicePixelRatio:null==r?void 0:r.devicePixelRatio},(m=tt(h))===ef||m===ep||"Kobo"===m||"Kindle Fire"===m||m===eB?eh:m===eA||m===eO||m===eM||m===eH?"Console":m===ev?"Wearable":m?eu:"Android"===(null==u?void 0:u.userAgentDataPlatform)&&(null!==(d=null==u?void 0:u.maxTouchPoints)&&void 0!==d?d:0)>0?600>Math.min(null!==(p=null==u?void 0:u.screenWidth)&&void 0!==p?p:0,null!==(f=null==u?void 0:u.screenHeight)&&void 0!==f?f:0)/(null!==(v=null==u?void 0:u.devicePixelRatio)&&void 0!==v?v:1)?eu:eh:"Desktop"),$timezone:rP(),$timezone_offset:function(){try{return(new Date).getTimezoneOffset()}catch(e){return}}()}),{$current_url:rg(null==a?void 0:a.href,b,r_),$host:null==a?void 0:a.host,$pathname:null==a?void 0:a.pathname,$raw_user_agent:h.length>1e3?h.substring(0,997)+"...":h,$browser_version:e9(h,navigator.vendor,y),$browser_language:rS(),$browser_language_prefix:"string"==typeof(c=rS())?c.split("-")[0]:void 0,$screen_height:null==r?void 0:r.screen.height,$screen_width:null==r?void 0:r.screen.width,$viewport_height:null==r?void 0:r.innerHe
1ight,$viewport_width:null==r?void 0:r.innerWidth,$lib:g.LIB_NAME,$lib_version:g.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:v,windowId:m}=this.sessionManager.checkAndGetSessionAndWindowId(s,i.getTime());u.$session_id=v,u.$window_id=m}this.sessionPropsManager&&i$(u,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&i$(u,this.sessionRecording.sdkDebugProperties),u.$sdk_debug_retry_queue_size=null==(l=this.Xi)?void 0:l.length}catch(e){u.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===nL&&(u.$lib_custom_api_host=this.config.api_host),p=e!==iM||s?e!==iO||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(i):this.pageViewManager.doPageView(i,n),u=i$(u,p),e===iM&&o&&(u.title=o.title),!W(c)){var x=i.getTime()-c;u.$duration=parseFloat((x/1e3).toFixed(3))}h&&this.config.opt_out_useragent_filter&&(u.$browser_type=this._is_bot()?"bot":"browser"),(u=i$({},f,this.persistence.properties(),this.sessionPersistence.properties(),u)).$is_identified=this._isIdentified(),q(this.config.property_denylist)?iq(this.config.property_denylist,function(e){delete u[e]}):tO.error(n2+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var _=this.config.sanitize_properties;_&&(tO.error(n1),u=_(u,e));var y=this.fn();return u.$process_person_profile=y,y&&!s&&this.pn("_calculate_event_properties"),u}dn(e,t,i){if(void 0===t&&(t=!0),void 0===i&&(i=!1),!this.persistence||!this.fn()||this.Hi&&!i)return e;var r,n=i$({},this.persistence.get_initial_props(),(null==(r=this.sessionPropsManager)?void 0:r.getSetOnceProps())||{},e||{}),s=this.config.sanitize_properties;return s&&(tO.error(n1),n=s(n,"$set_once")),t&&(this.Hi=!0),N(n)?void 0:n}register(e,t){var i;null==(i=this.persistence)||i.register(e,t)}register_once(e,t,i){var r;null==(r=this.persistence)||r.register_once(e,t,i)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e)}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}gn(e,t){this.register({[e]:t})}getFeatureFlag(e,t){var i;return null==(i=this.featureFlags)?void 0:i.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t;return null==(t=this.featureFlags)?void 0:t.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){var i;return null==(i=this.featureFlags)?void 0:i.getFeatureFlagResult(e,t)}isFeatureEnabled(e,t){var i;return null==(i=this.featureFlags)?void 0:i.isFeatureEnabled(e,t)}reloadFeatureFlags(){var e;null==(e=this.featureFlags)||e.reloadFeatureFlags()}updateFlags(e,t,i){var r;null==(r=this.featureFlags)||r.updateFlags(e,t,i)}updateEarlyAccessFeatureEnrollment(e,t,i){var r;null==(r=this.featureFlags)||r.updateEarlyAccessFeatureEnrollment(e,t,i)}getEarlyAccessFeatures(e,t,i){var r;return void 0===t&&(t=!1),null==(r=this.featureFlags)?void 0:r.getEarlyAccessFeatures(e,t,i)}on(e,t){return this.Ui.on(e,t)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:n0}),()=>{})}onSessionId(e){var t,i;return null!==(t=null==(i=this.sessionManager)?void 0:i.onSessionId(e))&&void 0!==t?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getSurveys(e,t):e([],{isLoaded:!1,error:n0})}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,t):e([],{isLoaded:!1,error:n0})}renderSurvey(e,t){var i;null==(i=this.surveys)||i.renderSurvey(e,t)}displaySurvey(e,t){var i;void 0===t&&(t=nB),null==(i=this.surveys)||i.displaySurvey(e,t)}cancelPendingSurvey(e){var t;null==(t=this.surveys)||t.cancelPendingSurvey(e)}canRenderSurvey(e){var t,i;return null!==(t=null==(i=this.surveys)?void 0:i.canRenderSurvey(e))&&void 0!==t?t:{visible:!1,disabledReason:n0}}canRenderSurveyAsync(e,t){var i,r;return void 0===t&&(t=!1),null!==(i=null==(r=this.surveys)?void 0:r.canRenderSurveyAsync(e,t))&&void 0!==i?i:Promise.resolve({visible:!1,disabledReason:n0})}mn(e){return!e||V(e)?(tO.critical("Unique user id has not been set in posthog.identify"),!1):e===iw?(tO.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(tO.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
1ot a hardcoded string.'),!1)}identify(e,t,i){if(!this.__loaded||!this.persistence)return tO.uninitializedWarning("posthog.identify");if(Q(e)&&(e=e.toString(),tO.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.mn(e)&&this.pn("posthog.identify")){var r=this.get_distinct_id();this.register({$user_id:e}),this.get_property(t$)||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},""),e!==r&&e!==this.get_property(tH)&&(this.unregister(tH),this.register({distinct_id:e}));var n,s=(this.persistence.get_property(ip)||iR)===iR;e!==r&&s?(this.persistence.set_property(ip,iP),this.setPersonPropertiesForFlags({$set:t||{},$set_once:i||{}},!1),this.capture(iz,{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:i||{}}),this.Wi=nA(e,t,i),null==(n=this.featureFlags)||n.setAnonymousDistinctId(r)):(t||i)&&this.setPersonProperties(t,i),e!==r&&(this.reloadFeatureFlags(),this.unregister(ic))}}setPersonProperties(e,t){if((e||t)&&this.pn("posthog.setPersonProperties")){var i=nA(this.get_distinct_id(),e,t);this.Wi!==i?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:t||{}},!0),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Wi=i):tO.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,i){if(e&&t){var r=this.getGroups(),n=r[e]!==t;if(n&&this.resetGroupPropertiesForFlags(e),this.register({$groups:b({},r,{[e]:t})}),n||i){var s={$group_type:e,$group_key:t};i&&(s.$group_set=i),this.capture(iL,s)}i&&this.setGroupPropertiesForFlags({[e]:i}),n&&!i&&this.reloadFeatureFlags()}else tO.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){var i;void 0===t&&(t=!0),null==(i=this.featureFlags)||i.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){var e;null==(e=this.featureFlags)||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){var i;void 0===t&&(t=!0),this.pn("posthog.setGroupPropertiesForFlags")&&(null==(i=this.featureFlags)||i.setGroupPropertiesForFlags(e,t))}resetGroupPropertiesForFlags(e){var t;null==(t=this.featureFlags)||t.resetGroupPropertiesForFlags(e)}reset(e){if(tO.info("reset"),!this.__loaded)return tO.uninitializedWarning("posthog.reset");var t,i,r,n,s,o,a,l,c,u=this.get_property(t$),d=this.get_property(tJ);if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(i=this.sessionPersistence)||i.clear(),W(d)||null==(c=this.persistence)||c.register({[tJ]:d}),null==(r=this.surveys)||r.reset(),null==(n=this.ln)||n.stop(),null==(s=this.featureFlags)||s.reset(),null==(o=this.conversations)||o.reset(),null==(a=this.persistence)||a.set_property(ip,iR),null==(l=this.sessionManager)||l.resetSessionId(),this.Wi=null,this.config.cookieless_mode===iC)this.register_once({distinct_id:iw,$device_id:null},"");else{var h=this.config.get_device_id(iX());this.register_once({distinct_id:h,$device_id:e?h:u},"")}this.register({$last_posthog_reset:(new Date).toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(e,t){var i;this.config.identity_distinct_id=e,this.config.identity_hash=t,this.alias(e),null==(i=this.conversations)||i.yn()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,null==(e=this.conversations)||e.bn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!==(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:i}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(null!=e&&e.withTimestamp&&i){var n,s=null!==(n=e.timestampLookBack)&&void 0!==n?n:10;if(!i)return r;r+="?t="+Math.max(Math.floor(((new Date).getTime()-i)/1e3)-s,0)}return r}alias(e,t){return e===this.get_property(tq)?(tO.critical("Attempting to create alias for existing People user - aborting."),-2):this.pn("posthog.alias")?(W(t)&&(t=this.get_distinct_id()),e!==t?(this.gn(tH,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(tO.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=b({},this.config);if(H(e)){i$(this.config,n8(e));var i,r,n,s,o,a,l,c,u,d,h=this.Ji();null==(i=this.persistence)||i.update_config(this.config,t,h),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new rT(b({},this.config,{persistence:"sessionStorage"}),h);var p=this.Zi(this.config.debug);K(p)&&(this.config.debug=p),K(this.config.debug)&&(this.config.debug?(g.DEBUG=!0,i3.R()&&i3.N("ph_debug",!0),tO.info("set_config",{config:e,oldConfig:t,newConfig:b({},this.config)})):(g.DEBUG=!1,i3.R()&&i3.q("ph_debug"))),null==(r=this.exceptionObserver)||r.onConfigChange(),null==(n=this.exceptions)||n.onConfigChange(),null==(s=this.sessionRecording)||s.startIfEnabledOrStop(),null==(o=this.autocapture)||o.startIfEnabled(),null==(a=this.heatmaps)||a.startIfEnabled(),null==(l=this.exceptionObserver)||l.startIfEnabledOrStop(),null==(c=this.deadClicksAutocapture)||
1c.startIfEnabledOrStop(),null==(u=this.surveys)||u.loadIfEnabled(),this._n(),null==(d=this.externalIntegrations)||d.startIfEnabledOrStop()}}_overrideSDKInfo(e,t){g.LIB_NAME=e,g.LIB_VERSION=t}startSessionRecording(e){var t,i,r,n,s,o=!0===e,a={sampling:o||!(null==e||!e.sampling),linked_flag:o||!(null==e||!e.linked_flag),url_trigger:o||!(null==e||!e.url_trigger),event_trigger:o||!(null==e||!e.event_trigger)};Object.values(a).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),a.sampling&&(null==(i=this.sessionRecording)||i.overrideSampling()),a.linked_flag&&(null==(r=this.sessionRecording)||r.overrideLinkedFlag()),a.url_trigger&&(null==(n=this.sessionRecording)||n.overrideTrigger("url")),a.event_trigger&&(null==(s=this.sessionRecording)||s.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){if(this.exceptions){var i=Error("PostHog syntheticException"),r=this.exceptions.buildProperties(e,{handled:!0,syntheticException:i});return this.exceptions.sendExceptionEvent(b({},r,t))}}addExceptionStep(e,t){var i;null==(i=this.exceptions)||i.addExceptionStep(e,t)}captureLog(e){var t;null==(t=this.logs)||t.captureLog(e)}get logger(){var e,t;return null!==(e=null==(t=this.logs)?void 0:t.logger)&&void 0!==e?e:n9.wn}startExceptionAutocapture(e){this.set_config({capture_exceptions:null==e||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var t,i;return null!==(t=null==(i=this.toolbar)?void 0:i.loadToolbar(e))&&void 0!==t&&t}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:n6;return t!==n6&&(t=n6+"."+t),t}_isIdentified(){var e,t;return(null==(e=this.persistence)?void 0:e.get_property(ip))===iP||(null==(t=this.sessionPersistence)?void 0:t.get_property(ip))===iP}fn(){var e,t;return!("never"===this.config.person_profiles||this.config.person_profiles===iI&&!this._isIdentified()&&N(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[tH])&&(null==(t=this.persistence)||null==(t=t.props)||!t[i_]))}hn(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.fn()||this.pn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.pn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}pn(e){return"never"===this.config.person_profiles?(tO.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.gn(i_,!0),!0)}Ji(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==iE)}_n(){var e,t,i,r,n=this.Ji();return(null==(e=this.persistence)?void 0:e.wr)!==n&&(null==(i=this.persistence)||i.set_disabled(n)),(null==(t=this.sessionPersistence)?void 0:t.wr)!==n&&(null==(r=this.sessionPersistence)||r.set_disabled(n)),n}opt_in_capturing(e){var t;if(this.config.cookieless_mode!==iC){if(this.ji()){this.reset(!0),null==(n=this.sessionManager)||n.destroy(),null==(s=this.pageViewManager)||s.destroy(),this.sessionManager=new nP(this),this.pageViewManager=new ru(this),this.persistence&&(this.sessionPropsManager=new nE(this,this.sessionManager,this.persistence));var i,r,n,s,o,a,l,c,u=null!==(o=null==(a=this.config.__extensionClasses)?void 0:a.sessionRecording)&&void 0!==o?o:null==(l=n9.__defaultExtensionClasses)?void 0:l.sessionRecording;u&&(this.sessionRecording=this.Di(this.sessionRecording,new u(this)),this.sn&&(null==(c=this.sessionRecording)||null==c.onRemoteConfig||c.onRemoteConfig(this.sn)))}this.consent.optInOut(!0),this._n(),this.an(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),this.config.cookieless_mode==iE&&(null==(i=this.surveys)||i.loadIfEnabled()),(W(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(r=null==e?void 0:e.captureEventName)&&void 0!==r?r:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.un()}else tO.warn(nX)}opt_out_capturing(){var e,t,i;this.config.cookieless_mode!==iC?(this.config.cookieless_mode===iE&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this._n(),this.config.cookieless_mode===iE&&(this.register({distinct_id:iw,$device_id:null}),null==(e=this.sessionRecording)||e.stopRecording(),this.sessionRecording=void 0,null==(t=this.sessionManager)||t.destroy(),null==(i=this.pageViewM
1anager)||i.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.un(),this.an())):tO.warn(nX)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return 1===e?"granted":0===e?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===iC||(this.config.cookieless_mode===iE?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this._n()}_is_bot(){return s?nI(s,this.config.custom_blocked_useragents):void 0}un(){o&&("visible"===o.visibilityState?this.Bi||(this.Bi=!0,this.capture(iM,{title:o.title},{send_instantly:!0}),this.zi&&(o.removeEventListener(iT,this.zi),this.zi=null)):this.zi||(this.zi=this.un.bind(this),iU(o,iT,this.zi)))}debug(e){!1===e?(null==r||r.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==r||r.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}$r(){var e,t,i,r,n=this.Gi||{};return"advanced_disable_flags"in n?!!n.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(tO.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(t="advanced_disable_decide",i=(e="advanced_disable_flags")in n&&!G(n[e]),r=t in n&&!G(n[t]),i?n[e]:!!r&&(tO&&tO.warn("Config field '"+t+"' is deprecated. Please use '"+e+"' instead. The old field will be removed in a future major version."),n[t]))}vn(e){if(G(this.config.before_send))return e;var t=q(this.config.before_send)?this.config.before_send:[this.config.before_send],i=e;for(var r of t){if(G(i=r(i))){var n="Event '"+e.event+"' was rejected in beforeSend function";return J(e.event)?tO.warn(n+". This can cause unexpected behavior."):tO.info(n),null}i.properties&&!N(i.properties)||tO.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return i}getPageViewId(){var e;return null==(e=this.pageViewManager.dr)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,i){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(i)})}Zi(e){var t=K(e)&&!e,i=i3.R()&&"true"===i3.A("ph_debug");return!t&&(!!i||e)}}function se(e){return e instanceof Element&&(e.id===iy||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function st(e){return!!e&&1===e.nodeType}function si(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function sr(e){return!!e&&3===e.nodeType}function sn(e){return!!e&&11===e.nodeType&&st(e.host)}function ss(e){return e?M(e).split(/\s+/):[]}function so(e){var t=null==r?void 0:r.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function sa(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return ss(t)}function sl(e){return G(e)?null:M(e).split(/(\s+)/).filter(e=>sk(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function sc(e){var t="";return sb(e)&&!sx(e)&&e.childNodes&&e.childNodes.length&&iq(e.childNodes,function(e){var i;sr(e)&&e.textContent&&(t+=null!==(i=sl(e.textContent))&&void 0!==i?i:"")}),M(t)}function su(e){var t;return W(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}n9.__defaultExtensionClasses={},n9.wn={trace:nZ=()=>{},debug:nZ,info:nZ,warn:nZ,error:nZ,fatal:nZ},function(e,t){for(var i=0;t.length>i;i++)e.prototype[t[i]]=iW(e.prototype[t[i]])}(n9,["identify"]);var sd=["a","button","form","input","select","textarea","label"];function sh(e,t){if(W(t))return!0;var i,r=function(e){if(t.some(t=>e.matches(t)))return{v:!0}};for(var n of e)if(i=r(n))return i.v;return!1}function sp(e){var t=e.parentNode;return!(!t||!st(t))&&t}var sf=["next","previous","prev",">","<"],sg=[".ph-no-rageclick",".ph-no-capture"],sv=e=>!e||si(e,"html")||!st(e),sm=(e,t)=>{if(!r||sv(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var i=!1,n=[e],s=e;s.parentNode&&!si(s,"body");)if(sn(s.parentNode))n.push(s.parentNode.host),s=s.parentNode.host;else{var o=sp(s);if(!o)break;if(t||sd.indexOf(o.tagName.toLowerCase())>-1)i=!0;else{var a=r.getComputedStyle(o);a&&"pointer"===a.getPropertyValue("cursor")&&(i=!0)}n.push(o),s=o}return{parentIsUsefulElement:i,targetElementList:n}};
1function sb(e){for(var t=e;t.parentNode&&!si(t,"body");t=t.parentNode){var i=sa(t);if(A(i,"ph-sensitive")||A(i,"ph-no-capture"))return!1}if(A(sa(e),"ph-include"))return!0;var r=e.type||"";if(B(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var n=e.name||e.id||"";return!B(n)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,""))}function sx(e){return!!(si(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||si(e,"select")||si(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var s_="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",sy=RegExp("^(?:"+s_+")$"),sw=new RegExp(s_),sF="\\d{3}-?\\d{2}-?\\d{4}",sj=RegExp("^("+sF+")$"),sS=RegExp("("+sF+")");function sk(e,t){return void 0===t&&(t=!0),!(G(e)||B(e)&&(e=M(e),(t?sy:sw).test((e||"").replace(/[- ]/g,""))||(t?sj:sS).test(e)))}function sE(e){var t=sc(e);return sk(t=(t+" "+function e(t){var i="";return t&&t.childNodes&&t.childNodes.length&&iq(t.childNodes,function(t){var r;if(t&&"span"===(null==(r=t.tagName)?void 0:r.toLowerCase()))try{var n=sc(t);i=(i+" "+n).trim(),t.childNodes&&t.childNodes.length&&(i=(i+" "+e(t)).trim())}catch(e){tO.error("[AutoCapture]",e)}}),i}(e)).trim())?t:""}function sC(e){return e.replace(/"|\\"/g,'\\"')}class sR{constructor(e){this.disabled=!1===e;var t=H(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,i){if(this.disabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(e-r.x)+Math.abs(t-r.y)<this.thresholdPx&&this.timeoutMs>i-r.timestamp){if(this.clicks.push({x:e,y:t,timestamp:i}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:i}];return!1}}var sP="$copy_autocapture",sI=tz("[AutoCapture]");function sT(e,t){return t.length>e?t.slice(0,e)+"...":t}var sA=tz("[ExceptionAutocapture]");function sM(e,t,i){try{if(!(t in e))return()=>{};var r=e[t],n=i(r);return $(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=n,()=>{e[t]===n&&(e[t]=r)}}catch(e){return()=>{}}}var sO=tz("[TracingHeaders]"),sz=tz("[Web Vitals]"),sL="disabled",sD="lazy_loading",sq="awaiting_config",s$="missing_config";tz("[SessionRecording]"),tz("[SessionRecording]");var sH="[SessionRecording]",sN=tz(sH),sW=tz("[Heatmaps]");function sB(e){return H(e)&&"clientX"in e&&"clientY"in e&&Q(e.clientX)&&Q(e.clientY)}var sV=tz("[Product Tours]"),sU=["$set_once","$set"],sG=tz("[SiteApps]"),sQ="Error while initializing PostHog app with config id ";function sZ(e,t,i){if(G(e))return!1;switch(i){case"exact":return e===t;case"contains":return RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*"),"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(e){return!1}default:return!1}}class sK{constructor(e){this.xn=new nC,this.Sn=(e,t)=>this.kn(e,t)&&this.Cn(e,t)&&this.In(e,t)&&this.Tn(e,t),this.kn=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.En=new Set,this.Mn=new Set}init(){var e,t;W(null==(e=this._instance)?void 0:e._addCaptureHook)||null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.on(e,t)})}register(e){var t,i;if(!W(null==(t=this._instance)?void 0:t._addCaptureHook)&&(e.forEach(e=>{var t,i;null==(t=this.Mn)||t.add(e),null==(i=e.steps)||i.forEach(e=>{var t;null==(t=this.En)||t.add((null==e?void 0:e.event)||"")})}),null!=(i=this._instance)&&i.autocapture)){var r,n=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&n.add(null==e?void 0:e.selector)})}),null==(r=this._instance)||r.autocapture.setElementSelectors(n)}}on(e,t){var i;null!=t&&0!=e.length&&(this.En.has(e)||this.En.has(null==t?void 0:t.event))&&this.Mn&&(null==(i=this.Mn)?void 0:i.size)>0&&this.Mn.forEach(e=>{this.Rn(t,e)&&this.xn.emit("actionCaptured",e.name)})}Pn(e){this.onAction("actionCaptured",t=>e(t))}Rn(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var i of t.steps)if(this.Sn(e,i))return!0;return!1}onAction(e,t){return this.xn.on(e,t)}Cn(e,t){if(null!=t&&t.url){var i,r=null==e||null==(i=e.properties)?void 0:i.$current_url;if(!r||"string"!=typeof r||!sZ(r,t.url,t.url_matching||"contains"))return!1}return!0}In(e,t){return!!this.On(e,t)&&!!this.Ln(e,t)&&!!this.Fn(e,t)}On(e,t){if(null==t||!t.href)return!0;var i=this.An(e);if(i.length>0)return i.some(e=>sZ(e.href,t.href,t.href_matching||"exact"));var r,n,s=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!s&&sZ((n=s.match(/(?::|")href="(.*?)"/))?n[1]:"",t.href,t.href_matching||"exact")}Ln(e,t){if(null==t||!t.text)return!0;var i=this.An(e);if(i.length>0)return i.some(e=>sZ(e.text,t.text,t.text_matching||"exact")||sZ(e.$el_text,t.text,t.text_matching||"exact"));var r,n,s,o,a=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!a&&(n=function(e){for(var t,i=[],r=/(?::|")text="(.*?)"/g;!G(t=r.exec(e));)i.includes(t[1])||i.push(t[1]);return i}(a),s=t.text,o=t.text_matching||"exact",n.some(e=>sZ(e,s,o)))}Fn(e,t){if(null==t||!t.selector)return!0;var i,r,n=null==e||null==(i=e.properties)?void 0:i.$element_selectors;if(null!=n&&n.includes(t.selector))return!0;var s=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";if(t.selector_regex&&s)try{return new RegExp(t.selector_regex).test(s)}catch(e){}return!1}An(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}Tn(e,t){return null==t||!t.properties||0===t.properties.length||nz(t.properties.reduce((e,t)=>
1{var i=q(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:i,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}class sY{constructor(e){this._instance=e,this.Nn=new Map,this.$n=new Map,this.Dn=new Map}qn(e,t){return!!e&&nz(e.propertyFilters,null==t?void 0:t.properties)}jn(e,t){var i=new Map;return e.forEach(e=>{var r;null==(r=e.conditions)||null==(r=r[t])||null==(r=r.values)||r.forEach(t=>{if(null!=t&&t.name){var r=i.get(t.name)||[];r.push(e.id),i.set(t.name,r)}})}),i}Hn(e,t,i){var r=(i===rA.Activation?this.Nn:this.$n).get(e),n=[];return this.Un(e=>{n=e.filter(e=>null==r?void 0:r.includes(e.id))}),n.filter(r=>{var n,s=null==(n=r.conditions)||null==(n=n[i])||null==(n=n.values)?void 0:n.find(t=>t.name===e);return this.qn(s,t)})}register(e){var t;W(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.Bn(e),this.zn(e))}zn(e){var t=e.filter(e=>{var t,i;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(i=e.conditions)||null==(i=i.actions)||null==(i=i.values)?void 0:i.length)>0});0!==t.length&&(null==this.Vn&&(this.Vn=new sK(this._instance),this.Vn.init(),this.Vn.Pn(e=>{this.onAction(e)})),t.forEach(e=>{var t,i,r,n,s;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(i=e.conditions)&&null!=(i=i.actions)&&i.values&&(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0&&(null==(n=this.Vn)||n.register(e.conditions.actions.values),null==(s=e.conditions)||null==(s=s.actions)||null==(s=s.values)||s.forEach(t=>{if(t&&t.name){var i=this.Dn.get(t.name);i&&i.push(e.id),this.Dn.set(t.name,i||[e.id])}}))}))}Bn(e){var t,i=e.filter(e=>{var t,i;return(null==(t=e.conditions)?void 0:t.events)&&(null==(i=e.conditions)||null==(i=i.events)||null==(i=i.values)?void 0:i.length)>0}),r=e.filter(e=>{var t,i;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(i=e.conditions)||null==(i=i.cancelEvents)||null==(i=i.values)?void 0:i.length)>0});0===i.length&&0===r.length||(null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.onEvent(e,t)}),this.Nn=this.jn(e,rA.Activation),this.$n=this.jn(e,rA.Cancellation))}onEvent(e,t){var i,r=this.le(),n=this.Wn(),s=this.Zn(),o=(null==(i=this._instance)||null==(i=i.persistence)?void 0:i.props[n])||[];if(s===e&&t&&o.length>0){r.info("event matched, removing item from activated items",{event:e,eventPayload:t,existingActivatedItems:o});var a,l,c=(null==t||null==(a=t.properties)?void 0:a.$survey_id)||(null==t||null==(l=t.properties)?void 0:l.$product_tour_id);if(c){var u=o.indexOf(c);0>u||(o.splice(u,1),this.Gn(o))}}else{if(this.$n.has(e)){var d=this.Hn(e,t,rA.Cancellation);d.length>0&&(r.info("cancel event matched, cancelling items",{event:e,itemsToCancel:d.map(e=>e.id)}),d.forEach(e=>{var t=o.indexOf(e.id);0>t||o.splice(t,1),this.Qn(e.id)}),this.Gn(o))}if(this.Nn.has(e)){r.info("event name matched",{event:e,eventPayload:t,items:this.Nn.get(e)});var h=this.Hn(e,t,rA.Activation);this.Gn(o.concat(h.map(e=>e.id)||[]))}}}onAction(e){var t,i=this.Wn(),r=(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[i])||[];this.Dn.has(e)&&this.Gn(r.concat(this.Dn.get(e)||[]))}Gn(e){var t=this.le(),i=[...new Set(e)].filter(e=>!this.Jn(e));t.info("updating activated items",{activatedItems:i}),this.Kn(i)}getActivatedIds(){var e,t=this.Wn();return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t])||[]}getEventToItemsMap(){return this.Nn}Yn(){return this.Vn}}class sJ extends sY{constructor(e){super(e)}Wn(){return ia}Zn(){return rM.SHOWN}Un(e){var t;null==(t=this._instance)||t.getSurveys(e)}Qn(e){var t;null==(t=this._instance)||t.cancelPendingSurvey(e)}le(){return nH}Kn(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[ia]:e})}Jn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var sX="SDK is not enabled or survey functionality is not yet loaded",s0="Disabled. Not loading surveys.",s1=null!=r&&r.location?rv(r.location.hash,"__posthog")||rv(location.hash,"state"):null,s2="_postHogToolbarParams",s6=tz("[Toolbar]"),s4=tz("[FeatureFlags]"),s3=tz("[FeatureFlags]",{debugEnabled:!0}),s5="\" failed. Feature flags didn't load in time.",s8=e=>{for(var t={},i=0;e.length>i;i++)t[e[i]]=!0;return t},s7=e=>{var t={};for(var[i,r]of iH(e||{}))r&&(t[i]=r);return t},s9=tz("[Error tracking]"),oe="Refusing to render web experiment since the viewer is a likely bot",ot={icontains:(e,t)=>!!r&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!r&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!r&&nT(t.href,e),not_regex:(e,t)=>!!r&&!nT(t.href,e),exact:(e,t)=>
1t.href===e,is_not:(e,t)=>t.href!==e};class oi{get qt(){return this._instance.config}constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{oi.Xn("retrieved web experiments from the server"),t.es=new Map,e.forEach(e=>{if(e.feature_flag_key){t.es&&(oi.Xn("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(i=t.es)||i.set(e.feature_flag_key,e));var i,r=t._instance.getFeatureFlag(e.feature_flag_key);B(r)&&e.variants[r]&&t.ts(e.name,r,e.variants[r].transforms)}else if(e.variants)for(var n in e.variants){var s=e.variants[n];oi.rs(s)&&t.ts(e.name,n,s.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}initialize(){}onFeatureFlags(e){if(this._is_bot())oi.Xn(oe);else if(!this.qt.disable_web_experiments){if(G(this.es))return this.es=new Map,this.loadIfEnabled(),void this.previewWebExperiment();oi.Xn("applying feature flags",e),e.forEach(e=>{var t;if(this.es&&null!=(t=this.es)&&t.has(e)){var i,r=this._instance.getFeatureFlag(e),n=null==(i=this.es)?void 0:i.get(e);r&&null!=n&&n.variants[r]&&this.ts(n.name,r,n.variants[r].transforms)}})}}previewWebExperiment(){var e=oi.getWindowLocation();if(null!=e&&e.search){var t=rf(null==e?void 0:e.search,"__experiment_id"),i=rf(null==e?void 0:e.search,"__experiment_variant");t&&i&&(oi.Xn("previewing web experiments "+t+" && "+i),this.getWebExperiments(e=>{this.ns(parseInt(t),i,e)},!1,!0))}}loadIfEnabled(){this.qt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,i){if(this.qt.disable_web_experiments&&!i)return e([]);var r=this._instance.get_property("$web_experiments");if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.qt.token),method:"GET",callback:t=>e(200===t.statusCode&&t.json&&t.json.experiments||[])})}ns(e,t,i){var r=i.filter(t=>t.id===e);r&&r.length>0&&(oi.Xn("Previewing web experiment ["+r[0].name+"] with variant ["+t+"]"),this.ts(r[0].name,t,r[0].variants[t].transforms))}static rs(e){return!G(e.conditions)&&oi.ss(e)&&oi.os(e)}static ss(e){if(G(e.conditions)||G(null==(t=e.conditions)?void 0:t.url))return!0;var t,i,r,n,s=oi.getWindowLocation();return!!s&&(null==(i=e.conditions)||!i.url||ot[null!==(r=null==(n=e.conditions)?void 0:n.urlMatchType)&&void 0!==r?r:"icontains"](e.conditions.url,s))}
1static getWindowLocation(){return null==r?void 0:r.location}static os(e){if(G(e.conditions)||G(null==(i=e.conditions)?void 0:i.utm))return!0;var t=rw();if(t.utm_source){var i,r,n,s,o,a,l,c,u,d=null==(r=e.conditions)||null==(r=r.utm)||!r.utm_campaign||(null==(n=e.conditions)||null==(n=n.utm)?void 0:n.utm_campaign)==t.utm_campaign,h=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_source||(null==(o=e.conditions)||null==(o=o.utm)?void 0:o.utm_source)==t.utm_source,p=null==(a=e.conditions)||null==(a=a.utm)||!a.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==t.utm_medium,f=null==(c=e.conditions)||null==(c=c.utm)||!c.utm_term||(null==(u=e.conditions)||null==(u=u.utm)?void 0:u.utm_term)==t.utm_term;return d&&p&&f&&h}return!1}static Xn(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;t>r;r++)i[r-1]=arguments[r];tO.info("[WebExperiments] "+e,i)}ts(e,t,i){this._is_bot()?oi.Xn(oe):"control"!==t?i.forEach(i=>{if(i.selector){oi.Xn("applying transform of variant "+t+" for experiment "+e+" ",i);var r,n=null==(r=document)?void 0:r.querySelectorAll(i.selector);null==n||n.forEach(e=>{i.html&&(e.innerHTML=i.html),i.css&&e.setAttribute("style",i.css)})}}):oi.Xn("Control variants leave the page unmodified.")}_is_bot(){return s&&this._instance?nI(s,this.qt.custom_blocked_useragents):void 0}}var or=tz("[Conversations]"),on="Conversations not available yet.",os={featureFlags:class{constructor(e){this.us=!1,this.ls=!1,this.hs=!1,this.cs=!1,this.ds=!1,this.vs=!1,this.fs=!1,this.ps=!1,this._instance=e,this.featureFlagEventHandlers=[]}get qt(){return this._instance.config}get ui(){return this._instance.persistence}gs(e){return this._instance.get_property(e)}ys(){var e,t;return null!==(e=null==(t=this.ui)?void 0:t.Sr(this.qt.feature_flag_cache_ttl_ms))&&void 0!==e&&e}bs(){return!!this.ys()&&(this.ps||this.hs||(this.ps=!0,s4.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}_s(){var e,t=null!==(e=this.qt.evaluation_contexts)&&void 0!==e?e:this.qt.evaluation_environments;return!this.qt.evaluation_environments||this.qt.evaluation_contexts||this.fs||(s4.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.fs=!0),null!=t&&t.length?t.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||s4.error("Invalid evaluation context found:",e,"Expected non-empty string"),t}):[]}ws(){return this._s().length>0}xs(){var e=this.qt.flag_keys;if(!W(e)){if(q(e))return e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||s4.error("Invalid flag key found:",e,"Expected non-empty string"),t});s4.error("Invalid flag_keys found:",e,"Expected array of non-empty strings")}}initialize(){var e,t,{config:i}=this._instance,r=null!==(e=null==(t=i.bootstrap)?void 0:t.featureFlags)&&void 0!==e?e:{};if(Object.keys(r).length){var n,s,o=null!==(n=null==(s=i.bootstrap)?void 0:s.featureFlagPayloads)&&void 0!==n?n:{},a=Object.keys(r).filter(e=>!!r[e]).reduce((e,t)=>(e[t]=r[t]||!1,e),{}),l=Object.keys(o).filter(e=>a[e]).reduce((e,t)=>(o[t]&&(e[t]=o[t]),e),{});this.receivedFeatureFlags({featureFlags:a,featureFlagPayloads:l})}}updateFlags(e,t,i){var r=null!=i&&i.merge?this.getFlagVariants():{},n=null!=i&&i.merge?this.getFlagPayloads():{},s=b({},r,e),o=b({},n,t),a={};for(var[l,c]of Object.entries(s)){var u="string"==typeof c;
1a[l]={key:l,enabled:!!u||!!c,variant:u?c:void 0,reason:void 0,metadata:W(null==o?void 0:o[l])?void 0:{id:0,version:void 0,description:void 0,payload:o[l]}}}this.receivedFeatureFlags({flags:a})}get hasLoadedFlags(){return this.ls}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.gs(t7),t=this.gs(it),i=this.gs(ii);if(!i&&!t)return e||{};var r=i$({},e||{});for(var n of[...new Set([...Object.keys(i||{}),...Object.keys(t||{})])]){var s,o,a=r[n],l=null==t?void 0:t[n],c=W(l)?null!==(s=null==a?void 0:a.enabled)&&void 0!==s&&s:!!l,u=W(l)?a.variant:"string"==typeof l?l:void 0,d=null==i?void 0:i[n],h=b({},a,{enabled:c,variant:c?null!=u?u:null==a?void 0:a.variant:void 0});c!==(null==a?void 0:a.enabled)&&(h.original_enabled=null==a?void 0:a.enabled),u!==(null==a?void 0:a.variant)&&(h.original_variant=null==a?void 0:a.variant),d&&(h.metadata=b({},null==a?void 0:a.metadata,{payload:d,original_payload:null==a||null==(o=a.metadata)?void 0:o.payload})),r[n]=h}return this.us||(s4.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:i,finalDetails:r}),this.us=!0),r}getFlagVariants(){var e=this.gs(t3),t=this.gs(it);if(!t)return e||{};for(var i=i$({},e),r=Object.keys(t),n=0;r.length>n;n++)i[r[n]]=t[r[n]];return this.us||(s4.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:i}),this.us=!0),i}getFlagPayloads(){var e=this.gs(t9),t=this.gs(ii);if(!t)return e||{};for(var i=i$({},e||{}),r=Object.keys(t),n=0;r.length>n;n++)i[r[n]]=t[r[n]];return this.us||(s4.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:i}),this.us=!0),i}reloadFeatureFlags(){this.cs||this.qt.advanced_disable_feature_flags||this.Ss||(this._instance.Ui.emit("featureFlagsReloading",!0),this.Ss=setTimeout(()=>{this.ks()},5))}Cs(){clearTimeout(this.Ss),this.Ss=void 0}ensureFlagsLoaded(){this.ls||this.hs||this.Ss||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.cs=e}ks(e){var t;if(this.Cs(),!this._instance.$r()){if(this.hs)this.ds=!0;else{var i=this.qt.token,r=this.gs(t$),n={token:i,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:b({},(null==(t=this.ui)?void 0:t.get_initial_props())||{},this.gs(ir)||{}),group_properties:this.gs(is),timezone:rP()};U(r)||W(r)||(n.$device_id=r),(null!=e&&e.disableFlags||this.qt.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.ws()&&(n.evaluation_contexts=this._s());var s=this.xs();W(s)||(n.flag_keys=s);var o=!!this.qt.advanced_only_evaluate_survey_feature_flags,a=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.qt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.hs=!0,this._instance._send_request({method:"POST",url:a,data:n,compression:this.qt.disable_compression?void 0:rW.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback:e=>{var t,i,r,s=!0;if(200===e.statusCode&&(this.ds||(this.$anon_distinct_id=void 0),s=!1),this.hs=!1,!n.disable_flags||this.ds){this.vs=!s;var a=[];e.error?e.error instanceof Error?a.push("AbortError"===e.error.name?"timeout":"connection_error"):a.push("unknown_error"):200!==e.statusCode&&a.push("api_error_"+e.statusCode),null!=(t=e.json)&&t.errorsWhileComputingFlags&&a.push("errors_while_computing_flags");var l,c=!(null==(i=e.json)||null==(i=i.quotaLimited)||!i.includes("feature_flags"));(c&&a.push("quota_limited"),null==(r=this.ui)||r.register({[id]:a}),c)?s4.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(n.disable_flags||this.receivedFeatureFlags(null!==(l=e.json)&&void 0!==l?l:{},s,{partialResponse:o}),this.ds&&(this.ds=!1,this.ks()))}}})}}}getFeatureFlag(e,t){var i;if(void 0===t&&(t={}),!t.fresh||this.vs){if(this.ls||this.getFlags()&&this.getFlags().length>0){if(!this.bs()){var r=this.getFeatureFlagResult(e,t);return null!==(i=null==r?void 0:r.variant)&&void 0!==i?i:null==r?void 0:r.enabled}}else s4.warn('getFeatureFlag for key "'+e+s5)}}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return null==t?void 0:t.payload}getFeatureFlagResult(e,t){if(void 0===t&&(t={}),!t.fresh||this.vs){if(this.ls||this.getFlags()&&this.getFlags().length>0){if(!this.bs()){var i=this.getFlagVariants(),r=e in i,n=i[e],s=this.getFlagPayloads()[e],o=String(n),a=this.gs(ie)||void 0,l=this.gs(ih)||void 0,c=this.gs(ic)||{};if(this.qt.advanced_feature_flags_dedup_per_session){var u,d=this._instance.get_session_id(),h=this.gs(iu);d&&d!==h&&(c={},null==(u=this.ui)||u.register({[ic]:c,[iu]:d}))}if((t.send_event||!("send_event"in t))&&(!(e in c)||!c[e].includes(o))){q(c[e])?c[e].push(o):c[e]=[o],null==(v=this.ui)||v.register({[ic]:c});var p=this.getFeatureFlagDetails(e),f=[...null!==(m=this.gs(id))&&void 0!==m?m:[]];W(n)&&f.push("flag_missing");var g={$feature_flag:e,$feature_flag_response:n,$feature_flag_payload:s||null,$feature_flag_request_id:a,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:(null==(b=this.qt.bootstrap)||null==(b=b.featureFlags)?void 0:b[e])||null,$feature_flag_bootstrapped_payload:(null==(x=this.qt.bootstrap)||null==(x=x.featureFlagPayloads)?void 0:x[e])||null,$used_bootstrap_value:!this.vs};W(null==p||null==(_=p.metadata)?void 0:_.version)||(g.$feature_flag_version=p.metadata.version);var v,m,b,x,_,y,w,F,j,S,k,E=null!==(y=null==p||null==(w=p.reason)?void 0:w.description)&&void 0!==y?y:null==p||null==(F=p.reason)?void 0:F.code;E&&(g.$feature_flag_reason=E),null!=p&&null!=(j=p.metadata)&&j.id&&(g.$feature_flag_id=p.metadata.id),W(null==p?void 0:p.original_variant)&&W(null==p?void 0:p.original_enabled)||(g.$feature_flag_original_response=W(p.original_variant)?p.original_enabled:p.original_variant),null!=p&&null!=(S=p.metadata)&&S.original_payload&&(g.$feature_flag_original_payload=null==p||null==(k=p.metadata)?void 0:k.original_payload),f.length&&(g.$feature_flag_error=f.join(",")),this._instance.capture("$feature_flag_called",g)}if(r){var C=s;if(!W(s))try{C=JSON.parse(s)}catch(e){}return{key:e,enabled:!!n,variant:"string"==typeof n?n:void 0,payload:C}}}}else s4.warn('getFeatureFlagResult for key "'+e+s5)}}getRemoteConfigPayload(e,t){var i=this.qt.token,r={distinct_id:this._instance.get_distinct_id(),token:i};this.ws()&&(r.evaluation_contexts=this._s());var n=this.xs();W(n)||(r.flag_keys=n),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:r,compression:this.qt.disable_compression?void 0:rW.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback(i){var r,n=null==(r=i.json)?void 0:r.featureFlagPayloads;t((null==n?void 0:n[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),!t.fresh||this.vs){if(this.ls||this.getFlags()&&this.getFlags().length>0){var i=this.getFeatureFlag(e,t);return W(i)?void 0:!!i}s4.warn('isFeatureEnabled for key "'+e+s5)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t,i){if(this.ui){this.ls=!0;var r=this.getFlagVariants(),n=this.getFlagPayloads(),s=this.getFlagsWithDetails();!function(e,t,i,r,n,s){void 0===i&&(i={}),void 0===r&&(r={}),void 0===n&&(n={});var o,a=((o=e.flags)?(e.featureFlags=Object.fromEntries(Object.keys(o).map(e=>{var t;return[e,null!==(t=o[e].variant)&&void 0!==t?t:o[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(o).filter(e=>o[e].enabled).filter(e=>{var t;return null==(t=o[e].metadata)?void 0:t.payload}).map(e=>{var t;return[e,null==(t=o[e].metadata)?void 0:t.payload]}))):s4.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e),l=a.flags,c=a.featureFlags,u=a.featureFlagPayloads;if(c){var d=e.requestId,h=e.evaluatedAt;if(q(c)){s4.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var p={};if(c)for(var f=0;c.length>f;f++)p[c[f]]=!0;t&&t.register({[t5]:c,[t3]:p})}else{var g=c,v=u,m=l;if(null!=s&&s.partialResponse)g=b({},i,g),v=b({},r,v),m=b({},n,m);else if(e.errorsWhileComputingFlags){if(l){var x=new Set(Object.keys(l).filter(e=>{var t;return!(null!=(t=l[e])&&t.failed)}));g=b({},i,Object.fromEntries(Object.entries(g).filter(e=>{var[t]=e;return x.has(t)}))),v=b({},r,Object.fromEntries(Object.entries(v||{}).filter(e=>{var[t]=e;return x.has(t)}))),m=b({},n,Object.fromEntries(Object.entries(m||{}).filter(e=>{var[t]=e;return x.has(t)})))}else g=b({},i,g),v=b({},r,v),m=b({},n,m)}t&&t.register(b({[t5]:Object.keys(s7(g)),[t3]:g||{},[t9]:v||{},[t7]:m||{}},d?{[ie]:d}:{},h?{[ih]:h}:{}))}}}(e,this.ui,r,n,s,i),t||(this.ps=!1),this.Is(t)}}override(e,t){void 0===t&&(t=!1),s4.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ui)return s4.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this.ui.unregister(it),this.ui.unregister(ii),this.Is(),s3.info("All overrides cleared");if(q(e)){var t,i=s8(e);return this.ui.register({[it]:i}),this.Is(),s3.info("Flag overrides set",{flags:e})}if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){if(this.us=!!(null!==(t=e.suppressWarning)&&void 0!==t&&t),"flags"in e){if(!1===e.flags)this.ui.unregister(it),s3.info("Flag overrides cleared");else if(e.flags){if(q(e.flags)){var r=s8(e.flags);this.ui.register({[it]:r})}else this.ui.register({[it]:e.flags});s3.info("Flag overrides set",{flags:e.flags})}}return"payloads"in e&&(!1===e.payloads?(this.ui.unregister(ii),s3.info("Payload overrides cleared")):e.payloads&&(this.ui.register({[ii]:e.payloads}),s3.info("Payload overrides set",{payloads:e.payloads}))),void this.Is()}if(e&&"object"==typeof e)return this.ui.register({[it]:e}),this.Is(),s3.info("Flag overrides set",{flags:e});s4.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ls){var{flags:t,flagVariants:i}=this.Ts();e(t,i)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,i){var r,n=(this.gs(t8)||[]).find(t=>t.flagKey===e),s={["$feature_enrollment/"+e]:t},o={$feature_flag:e,$feature_enrollment:t,$set:s};n&&(o.$early_access_feature_name=n.name),i&&(o.$feature_enrollment_stage=i),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(s,!1);var a=b({},this.getFlagVariants(),{[e]:t});null==(r=this.ui)||r.register({[t5]:Object.keys(s7(a)),[t3]:a}),this.Is()}getEarlyAccessFeatures(e,t,i){void 0===t&&(t=!1);var r=this.gs(t8),n=i?"&"+i.map(e=>"stage="+e).join("&"):"";if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.qt.token+n),method:"GET",callback:t=>{var i,r;if(t.json){var n=t.json.earlyAccessFeatures;return null==(i=this.ui)||i.unregister(t8),null==(r=this.ui)||r.register({[t8]:n}),e(n)}}})}Ts(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,i)=>(e[i]=t[i],e),{})}}Is(e){var{flags:t,flagVariants:i}=this.Ts();
1this.featureFlagEventHandlers.forEach(r=>r(t,i,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var i=this.gs(ir)||{},r=(null==e?void 0:e.$set)||(null!=e&&e.$set_once?{}:e),n=null==e?void 0:e.$set_once,s={};if(n)for(var o in n)({}).hasOwnProperty.call(n,o)&&(o in i||(s[o]=n[o]));this._instance.register({[ir]:b({},i,s,r)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(ir)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var i=this.gs(is)||{};0!==Object.keys(i).length&&Object.keys(i).forEach(t=>{i[t]=b({},i[t],e[t]),delete e[t]}),this._instance.register({[is]:b({},i,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.gs(is)||{};this._instance.register({[is]:b({},t,{[e]:{}})})}else this._instance.unregister(is)}reset(){this.ls=!1,this.hs=!1,this.cs=!1,this.ds=!1,this.vs=!1,this.$anon_distinct_id=void 0,this.Cs(),this.us=!1}}},oo=b({productTours:class{get ui(){return this._instance.persistence}constructor(e){this.Do=null,this.qo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ui&&this.ui.register({[tK]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Do||(e=this._instance).config.disable_product_tours||null==(t=e.persistence)||!t.get_property(tK)||this.lr(()=>this.jo())}lr(e){var t,i;null!=(t=p.__PosthogExtensions__)&&t.generateProductTours?e():null==(i=p.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"product-tours",t=>{t?sV.error("Could not load product tours script",t):e()})}jo(){var e;!this.Do&&null!=(e=p.__PosthogExtensions__)&&e.generateProductTours&&(this.Do=p.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(void 0===t&&(t=!1),!q(this.qo)||t){var i=this.ui;if(i){var r=i.props[il];if(q(r)&&!t)return this.qo=r,void e(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:t=>{var r=t.statusCode;if(200!==r||!t.json){var n="Product Tours API could not be loaded, status: "+r;return sV.error(n),void e([],{isLoaded:!1,error:n})}var s=q(t.json.product_tours)?t.json.product_tours:[];this.qo=s,i&&i.register({[il]:s}),e(s,{isLoaded:!0})}})}else e(this.qo,{isLoaded:!0})}getActiveProductTours(e){G(this.Do)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Do.getActiveProductTours(e)}showProductTour(e){var t;null==(t=this.Do)||t.showTourById(e)}previewTour(e){this.Do?this.Do.previewTour(e):this.lr(()=>{var t;this.jo(),null==(t=this.Do)||t.previewTour(e)})}dismissProductTour(){var e;null==(e=this.Do)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.Do)||e.nextStep()}previousStep(){var e;null==(e=this.Do)||e.previousStep()}clearCache(){var e;this.qo=null,null==(e=this.ui)||e.unregister(il)}resetTour(e){var t;null==(t=this.Do)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.Do)||e.resetAllTours()}cancelPendingTour(e){var t;null==(t=this.Do)||t.cancelPendingTour(e)}}},os),oa=b({surveys:class{get qt(){return this._instance.config}constructor(e){this.Qo=void 0,this._surveyManager=null,this.Jo=!1,this.Ko=[],this.Yo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.qt.disable_surveys){var t=e.surveys;if(G(t))return nH.warn("Flags not loaded yet. Not loading surveys.");var i=q(t);this.Qo=i?t.length>0:t,nH.info("flags response received, isSurveysEnabled: "+this.Qo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var i=localStorage.key(t);(null!=i&&i.startsWith(nN)||null!=i&&i.startsWith("inProgressSurvey_"))&&e.push(i)}e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager){if(this.Jo)nH.info("Already initializing surveys, skipping...");else if(this.qt.disable_surveys)nH.info(s0);else if(this.qt.cookieless_mode&&this._instance.consent.isOptedOut())nH.info("Not loading surveys in cookieless mode without consent.");else{var e=null==p?void 0:p.__PosthogExtensions__;if(e){if(!W(this.Qo)||this.qt.advanced_enable_surveys){var t=this.Qo||this.qt.advanced_enable_surveys;this.Jo=!0;try{var i=e.generateSurveys;if(i)return void this.Xo(i,t);var r=e.loadExternalDependency;if(!r)return void this.ea(ik);r(this._instance,"surveys",i=>{i||!e.generateSurveys?this.ea("Could not load surveys script",i):this.Xo(e.generateSurveys,t)})}catch(e){throw this.ea("Error initializing surveys",e),e}finally{this.Jo=!1}}}else nH.error("PostHog Extensions not found.")}}}Xo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new sJ(this._instance),nH.info("Surveys loaded successfully"),this.ta({isLoaded:!0})}ea(e,t){nH.error(e,t),this.ta({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Ko.push(e),this._surveyManager&&this.ta({isLoaded:!0}),()=>{this.Ko=this.Ko.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this.qt.disable_surveys)return nH.info(s0),e([]);var i,r=this._instance.get_property(io);if(r&&!t)return e(r,{isLoaded:!0});"undefined"!=typeof Promise&&this.Yo?this.Yo.then(t=>{var{surveys:i,context:r}=t;return e(i,r)}):("undefined"!=typeof Promise&&(this.Yo=new Promise(e=>{i=e})),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.qt.token),method:"GET",timeout:this.qt.surveys_request_timeout_ms,callback:t=>{this.Yo=null;var r=t.statusCode;if(200!==r||!t.json){var n="Surveys API could not be loaded, status: "+r;nH.error(n);var s={isLoaded:!1,error:n};return e([],s),void(null==i||i({surveys:[],context:s}))}
1var o,a,l=t.json.surveys||[],c=l.filter(e=>{var t,i;return!(!e.start_date||e.end_date)&&(!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)||!(null==(i=e.conditions)||null==(i=i.actions)||null==(i=i.values)||!i.length))});c.length>0&&(null==(a=this._surveyEventReceiver)||a.register(c)),null==(o=this._instance.persistence)||o.register({[io]:l});var u={isLoaded:!0};e(l,u),null==i||i({surveys:l,context:u})}}))}ta(e){for(var t of this.Ko)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){nH.error("Error in survey callback",e)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!G(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);nH.warn("init was not called")}ra(e){var t=null;return this.getSurveys(i=>{var r;t=null!==(r=i.find(t=>t.id===e))&&void 0!==r?r:null}),t}ia(e){if(G(this._surveyManager))return{eligible:!1,reason:sX};var t="string"==typeof e?this.ra(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(G(this._surveyManager))return nH.warn("init was not called"),{visible:!1,disabledReason:sX};var t=this.ia(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return G(this._surveyManager)?(nH.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:sX})):new Promise(i=>{this.getSurveys(t=>{var r,n=null!==(r=t.find(t=>t.id===e))&&void 0!==r?r:null;if(n){var s=this.ia(n);i({visible:s.eligible,disabledReason:s.reason})}else i({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,i){var r;if(G(this._surveyManager))nH.warn("init was not called");else{var n="string"==typeof e?this.ra(e):e;if(null!=n&&n.id){if(nW.includes(n.type)){var s=null==o?void 0:o.querySelector(t);if(s)return null!=(r=n.appearance)&&r.surveyPopupDelaySeconds?(nH.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;nH.info("Rendering survey "+n.id+" with delay of "+(null==(e=n.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(n,s,i),nH.info("Survey "+n.id+" rendered")},1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,s,i);nH.warn("Survey element not found")}else nH.warn("Surveys of type "+n.type+" cannot be rendered in the app")}else nH.warn("Survey not found")}}displaySurvey(e,t){var i;if(G(this._surveyManager))nH.warn("init was not called");else{var r=this.ra(e);if(r){var n=r;if(null!=(i=r.appearance)&&i.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=b({},r,{appearance:b({},r.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==rz.Popover&&t.initialResponses&&nH.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),!1===t.ignoreConditions){var s=this.canRenderSurvey(r);if(!s.visible)return void nH.warn("Survey is not eligible to be displayed: ",s.disabledReason)}t.displayType!==rz.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else nH.warn("Survey not found")}}cancelPendingSurvey(e){G(this._surveyManager)?nH.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;null==(e=this._surveyManager)||e.handlePageUnload()}}},os),ol=b({experiments:oi},os),oc=b({},os,{sessionRecording:class{get qt(){return this._instance.config}get ui(){return this._instance.persistence}get started(){var e;return!(null==(e=this.Es)||!e.isStarted)}get status(){var e,t;return this.Ms===sq||this.Ms===s$?this.Ms:null!==(e=null==(t=this.Es)?void 0:t.status)&&void 0!==e?e:this.Ms}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.Ms=sL,this.Rs=void 0,this._instance=e,!this._instance.sessionManager)throw sN.error("started without valid sessionManager"),Error(sH+" started without valid sessionManager. This is a bug.");if(this.qt.cookieless_mode===iC)throw Error(sH+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get Ps(){var e,t=!(null==(e=this._instance.get_property(tJ))||!e.enabled),i=!this.qt.disable_session_recording,n=this.qt.disable_session_recording||this._instance.consent.isOptedOut();return r&&t&&i&&!n}startIfEnabledOrStop(e){var t;if(!this.Ps||null==(t=this.Es)||!t.isStarted){var i=!W(Object.assign)&&!W(Array.from);this.Ps&&i?(this.Os(e),sN.info("starting")):(this.Ms=sL,this.stopRecording())}}Os(e){var t,i,r;this.Ps&&(this.Ms!==sq&&this.Ms!==s$&&(this.Ms=sD),null!=p&&null!=(t=p.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(i=p.__PosthogExtensions__)&&i.initSessionRecording?this.Ls(e):null==(r=p.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,this.Fs,t=>{if(t)return sN.error("could not load recorder",t);this.Ls(e)}))}stopRecording(){var e,t;null==(e=this.Rs)||e.call(this),this.Rs=void 0,null==(t=this.Es)||t.stop()}As(){var e,t;null==(e=this.Rs)||e.call(this),this.Rs=void 0,null==(t=this.Es)||t.discard()}Ns(){var e;null==(e=this.ui)||e.unregister(t4)}$s(e,t){if(G(e))return null;var i=Q(e)?e:parseFloat(e);return"number"!=typeof i||!Number.isFinite(i)||0>i||i>1?(sN.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):i}Ds(e){if(this.ui){var t,i,r=this.ui,n=()=>{var t,i=!1===e.sessionRecording?void 0:e.sessionRecording,n=this.$s(null==(t=this.qt.session_recording)?void 0:t.sampleRate,"session_recording.sampleRate"),s=this.$s(null==i?void 0:i.sampleRate,"remote config sampleRate"),o=null!=n?n:s;G(o)&&this.Ns();var a=null==i?void 0:i.minimumDurationMilliseconds;r.register({[tJ]:b({cache_timestamp:Date.now(),enabled:!!i},i,{networkPayloadCapture:b({capturePerformance:e.capturePerformance},null==i?void 0:i.networkPayloadCapture),canvasRecording:{enabled:null==i?void 0:i.recordCanvas,fps:null==i?void 0:i.canvasFps,quality:null==i?void 0:i.canvasQuality},sampleRate:o,minimumDurationMilliseconds:W(a)?null:a,endpoint:null==i?void 0:i.endpoint,triggerMatchType:null==i?void 0:i.triggerMatchType,masking:null==i?void 0:i.masking,urlTriggers:null==i?void 0:i.urlTriggers,version:null==i?void 0:i.version,triggerGroups:null==i?void 0:i.triggerGroups})})};n(),null==(t=this.Rs)||t.call(this),this.Rs=null==(i=this._instance.sessionManager)?void 0:i.onSessionId(n)}}onRemoteConfig(e){return"sessionRecording"in e?!1===e.sessionRecording?(this.Ds(e),void this.As()):(this.Ds(e),void this.startIfEnabledOrStop()):(this.Ms===sq&&(this.Ms=s$,
1sN.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var i;void 0===t&&(t="log"),null!=(i=this.Es)&&i.log?this.Es.log(e,t):sN.warn("log called before recorder was ready")}get Fs(){var e,t,i=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(tJ);return(null==i||null==(t=i.scriptConfig)?void 0:t.script)||"lazy-recorder"}qs(){var e,t,i=this._instance.get_property(tJ);if(!i)return!1;try{t="object"==typeof i?i:JSON.parse(i)}catch(e){return sN.warn("persisted remote config for session recording is invalid and will be ignored",e),!1}var r=null!==(e=t.cache_timestamp)&&void 0!==e?e:Date.now();return 36e5>=Date.now()-r}Ls(e){var t,i;if(null==(t=p.__PosthogExtensions__)||!t.initSessionRecording)return sN.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[iS]:!0});if(this.Es||(this.Es=null==(i=p.__PosthogExtensions__)?void 0:i.initSessionRecording(this._instance),this.Es._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.qs()){if(this.Ms===s$||this.Ms===sq)return;return this.Ms=sq,sN.info("persisted remote config is stale, requesting fresh config before starting"),void new rN(this._instance).load()}this.Ms=sD,this.Es.start(e)}onRRwebEmit(e){var t;null==(t=this.Es)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Es||null==(t=this.ui)||t.register({[t0]:!0}),null==(e=this.Es)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Es||null==(t=this.ui)||t.register({[tX]:!0}),null==(e=this.Es)||e.overrideSampling()}overrideTrigger(e){var t,i;this.Es||null==(i=this.ui)||i.register({["url"===e?t1:t2]:!0}),null==(t=this.Es)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.Es)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var i;return!(null==(i=this.Es)||!i.tryAddCustomEvent(e,t))}}},{autocapture:class{constructor(e){this.js=!1,this.Hs=null,this.Us=!1,this.instance=e,this.rageclicks=new sR(e.config.rageclick),this.Bs=null}initialize(){this.startIfEnabled()}get qt(){var e,t,i=H(this.instance.config.autocapture)?this.instance.config.autocapture:{};return i.url_allowlist=null==(e=i.url_allowlist)?void 0:e.map(e=>new RegExp(e)),i.url_ignorelist=null==(t=i.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),i}zs(){if(this.isBrowserSupported()){if(r&&o){var e=e=>{e=e||(null==r?void 0:r.event);try{this.Vs(e)}catch(e){sI.error("Failed to capture event",e)}};if(iU(o,"submit",e,{capture:!0}),iU(o,"change",e,{capture:!0}),iU(o,"click",e,{capture:!0}),this.qt.capture_copied_text){var t=e=>{e=e||(null==r?void 0:r.event);try{this.Vs(e,sP)}catch(e){sI.error("Failed to capture copy/cut event",e)}};iU(o,"copy",t,{capture:!0}),iU(o,"cut",t,{capture:!0})}}}else sI.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.js&&(this.zs(),this.js=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Us=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[tW]:!!e.autocapture_opt_out}),this.Hs=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Bs=e}getElementSelectors(e){var t,i=[];return null==(t=this.Bs)||t.forEach(t=>{var r=null==o?void 0:o.querySelectorAll(t);null==r||r.forEach(r=>{e===r&&i.push(t)})}),i}get isEnabled(){var e,t,i=null==(e=this.instance.persistence)?void 0:e.props[tW];if(U(this.Hs)&&!K(i)&&!this.instance.$r())return!1;var r=null!==(t=this.Hs)&&void 0!==t?t:!!i;return!!this.instance.config.autocapture&&!r}Vs(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var i,n=su(e);sr(n)&&(n=n.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(i=this.rageclicks)&&i.isRageClick(e.clientX,e.clientY,e.timeStamp||(new Date).getTime())&&function(e,t){if(!r||sv(e)||(K(t)?(i=!!t&&sg,n=void 0):(i=null!==(s=null==t?void 0:t.css_selector_ignorelist)&&void 0!==s?s:sg,n=null==t?void 0:t.content_ignorelist),!1===i))return!1;var i,n,s,{targetElementList:o}=sm(e,!1);return!function(e,t){var i;if(!1===e||W(e))return!1;if(!0===e)i=sf;else{if(!q(e))return!1;if(e.length>10)return tO.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;i=e.map(e=>e.toLowerCase())}return t.some(e=>{var{safeText:t,ariaLabel:r}=e;return i.some(e=>t.includes(e)||r.includes(e))})}(n,o.map(e=>{var t;return{safeText:sc(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!sh(o,i)}(n,this.instance.config.rageclick)&&this.Vs(e,"$rageclick");var s=t===sP;if(n&&function(e,t,i,n,s){if(void 0===i&&(i=void 0),!r||sv(e)||null!=(o=i)&&o.url_allowlist&&!so(i.url_allowlist)||null!=(a=i)&&a.url_ignorelist&&so(i.url_ignorelist))return!1;if(null!=(l=i)&&l.dom_event_allowlist){var o,a,l,c,u=i.dom_event_allowlist;if(u&&!u.some(e=>t.type===e))return!1}var{parentIsUsefulElement:d,targetElementList:h}=sm(e,n);if(!function(e,t){var i=null==t?void 0:t.element_allowlist;if(W(i))return!0;var r,n=function(e){if(i.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var s of e)if(r=n(s))return r.v;return!1}(h,i)||!sh(h,null==(c=i)?void 0:c.css_selector_allowlist))return!1;var p=r.getComputedStyle(e);
1if(p&&"pointer"===p.getPropertyValue("cursor")&&"click"===t.type)return!0;var f=e.tagName.toLowerCase();switch(f){case"html":return!1;case"form":return(s||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(s||["change","click"]).indexOf(t.type)>=0;default:return d?(s||["click"]).indexOf(t.type)>=0:(s||["click"]).indexOf(t.type)>=0&&(sd.indexOf(f)>-1||"true"===e.getAttribute("contenteditable"))}}(n,e,this.qt,s,s?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:a}=function(e,t){var i,n,{e:s,maskAllElementAttributes:o,maskAllText:a,elementAttributeIgnoreList:l,elementsChainAsString:c}=t;if(!st(e))return{props:{}};for(var u=[e],d=e;d.parentNode&&!si(d,"body");)if(sn(d.parentNode))u.push(d.parentNode.host),d=d.parentNode.host;else{if(!st(d.parentNode))break;u.push(d.parentNode),d=d.parentNode}var h,p=[],f={},g=!1,v=!1;if(iq(u,e=>{var t=sb(e);if(si(e,"a")){var i=e.getAttribute("href");g=t&&!!i&&sk(i)&&i}A(sa(e),"ph-no-capture")&&(v=!0),p.push(function(e,t,i,r){var n=e.tagName.toLowerCase(),s={tag_name:n};sd.indexOf(n)>-1&&!i&&(s.$el_text="a"===n.toLowerCase()||"button"===n.toLowerCase()?sT(1024,sE(e)):sT(1024,sc(e)));var o=sa(e);o.length>0&&(s.classes=o.filter(function(e){return""!==e})),iq(e.attributes,function(i){var n;if((!sx(e)||-1!==["name","id","class","aria-label"].indexOf(i.name))&&(null==r||!r.includes(i.name))&&!t&&sk(i.value)&&(!B(n=i.name)||"_ngcontent"!==n.substring(0,10)&&"_nghost"!==n.substring(0,7))){var o=i.value;"class"===i.name&&(o=ss(o).join(" ")),s["attr__"+i.name]=sT(1024,o)}});for(var a=1,l=1,c=e;c=function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!st(t));return t}(c);)a++,c.tagName===e.tagName&&l++;return s.nth_child=a,s.nth_of_type=l,s}(e,o,a,l)),i$(f,function(e){if(!sb(e))return{};var t={};return iq(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var i=e.name.replace("data-ph-capture-attribute-",""),r=e.value;i&&r&&sk(r)&&(t[i]=r)}}),t}(e))}),v)return{props:{},explicitNoCapture:v};if(a||(p[0].$el_text=si(e,"a")||si(e,"button")?sE(e):sc(e)),g){p[0].attr__href=g;var m,x,_=null==(m=rp(g))?void 0:m.host,y=null==r||null==(x=r.location)?void 0:x.host;_&&y&&_!==y&&(h=g)}return{props:i$({$event_type:s.type,$ce_version:1},c?{}:{$elements:p},{$elements_chain:p.map(e=>{var t,i,r,n={text:null==(i=e.$el_text)?void 0:i.slice(0,400),tag_name:e.tag_name,href:null==(r=e.attr__href)?void 0:r.slice(0,2048),attr_class:(t=e.attr__class)?q(t)?t:ss(t):void 0,attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return iH(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,i]=e;return n.attributes[t]=i}),n}).map(e=>{var t,i,r="";if(e.tag_name&&(r+=e.tag_name),e.attr_class)for(var n of(e.attr_class.sort(),e.attr_class))r+="."+n.replace(/"/g,"");var s=b({},e.text?{text:e.text}:{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(i=e.nth_of_type)&&void 0!==i?i:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),o={};return iH(s).sort((e,t)=>{var[i]=e,[r]=t;return i.localeCompare(r)}).forEach(e=>{var[t,i]=e;return o[sC(t.toString())]=sC(i.toString())}),(r+=":")+iH(o).map(e=>{var[t,i]=e;return t+'="'+i+'"'}).join("")}).join(";")},null!=(i=p[0])&&i.$el_text?{$el_text:null==(n=p[0])?void 0:n.$el_text}:{},h&&"click"===s.type?{$external_click_url:h}:{},f)}}(n,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.qt.element_attribute_ignorelist,elementsChainAsString:this.Us});if(a)return!1;var l=this.getElementSelectors(n);if(l&&l.length>0&&(o.$element_selectors=l),t===sP){var c,u=sl(null==r||null==(c=r.getSelection())?void 0:c.toString()),d=e.type||"clipboard";if(!u)return!1;o.$selected_content=u,o.$copy_type=d}return this.instance.capture(t,o),!0}}}isBrowserSupported(){return $(null==o?void 0:o.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ws=(null==r||null==(t=r.location)?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(tO.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Zs&&this.Zs(),this.Zs=void 0,tO.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(r&&r.history){var i=this;null!=(e=r.history.pushState)&&e.__posthog_wrapped__||sM(r.history,"pushState",e=>function(t,r,n){e.call(this,t,r,n),i.Gs("pushState")}),null!=(t=r.history.replaceState)&&t.__posthog_wrapped__||sM(r.history,"replaceState",e=>function(t,r,n){e.call(this,t,r,n),i.Gs("replaceState")}),this.Qs()}}Gs(e){try{var t,i=null==r||null==(t=r.location)?void 0:t.pathname;if(!i)return;i!==this.Ws&&this.isEnabled&&this._instance.capture(iM,{navigation_type:e}),this.Ws=i}catch(t){tO.error("Error capturing "+e+" pageview",t)}}Qs(){if(!this.Zs){var e=()=>{this.Gs("popstate")};iU(r,"popstate",e),this.Zs=()=>{r&&r.removeEventListener("popstate",e)}}}},heatmaps:class{get qt(){return this.instance.config}constructor(e){var t;this.Js=!1,this.js=!1,this.Ks=null,this.instance=e,this.Js=!(null==(t=this.instance.persistence)||!t.props[tB]),this.rageclicks=new sR(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return H(this.qt.capture_heatmaps)&&this.qt.capture_heatmaps.flush_interval_milliseconds&&(e=this.qt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return G(this.qt.capture_heatmaps)?G(this.qt.enable_heatmaps)?this.Js:this.qt.enable_heatmaps:!1!==this.qt.capture_heatmaps}startIfEnabled(){if(this.isEnabled)this.js||(sW.info("starting..."),this.Ys(),this.At());else{var e;clearInterval(null!==(e=this.Ks)&&void 0!==e?e:void 0),this.Xs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[tB]:t}),this.Js=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.M;return this.M=void 0,e}eo(e){this.Mt(e.originalEvent,"deadclick")}At(){this.Ks&&clearInterval(this.Ks),this.Ks="visible"===(null==o?void 0:o.visibilityState)?setInterval(this.Kr.bind(this),this.flushIntervalMilliseconds):null}Ys(){r&&o&&(this.ro=this.Kr.bind(this),iU(r,iA,this.ro),this.io=e=>
1this.Mt(e||(null==r?void 0:r.event)),iU(o,"click",this.io,{capture:!0}),this.no=e=>this.so(e||(null==r?void 0:r.event)),iU(o,"mousemove",this.no,{capture:!0}),this.oo=new rs(this.instance,rr,this.eo.bind(this)),this.oo.startIfEnabledOrStop(),this.ao=this.At.bind(this),iU(o,iT,this.ao),this.js=!0)}Xs(){var e;r&&o&&(this.ro&&r.removeEventListener(iA,this.ro),this.io&&o.removeEventListener("click",this.io,{capture:!0}),this.no&&o.removeEventListener("mousemove",this.no,{capture:!0}),this.ao&&o.removeEventListener(iT,this.ao),clearTimeout(this.uo),null==(e=this.oo)||e.stop(),this.js=!1)}lo(e,t){var i=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),o=function(e,t,i){for(var n=e;n&&st(n)&&!si(n,"body")&&n!==i;){if(A(t,null==r?void 0:r.getComputedStyle(n).position))return!0;n=sp(n)}return!1}(su(e),["fixed","sticky"],s);return{x:e.clientX+(o?0:n),y:e.clientY+(o?0:i),target_fixed:o,type:t}}Mt(e,t){var i;if(void 0===t&&(t="click"),!se(e.target)&&sB(e)){var r=this.lo(e,t);null!=(i=this.rageclicks)&&i.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.ho(b({},r,{type:"rageclick"})),this.ho(r)}}so(e){!se(e.target)&&sB(e)&&(clearTimeout(this.uo),this.uo=setTimeout(()=>{this.ho(this.lo(e,"mousemove"))},500))}ho(e){if(r){var t=r.location.href,i=this.qt.custom_personal_data_properties,n=rg(t,this.qt.mask_personal_data_properties?[...rb,...i||[]]:[],r_);this.M=this.M||{},this.M[n]||(this.M[n]=[]),this.M[n].push(e)}}Kr(){this.M&&!N(this.M)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:rs,webVitalsAutocapture:class{constructor(e){var t;this.Js=!1,this.js=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.co=()=>{clearTimeout(this.do),0!==this.M.metrics.length&&(this._instance.capture("$web_vitals",this.M.metrics.reduce((e,t)=>b({},e,{["$web_vitals_"+t.name+"_event"]:b({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=e=>{this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var t,i=this.vo();if(!W(i)){if(G(null==e?void 0:e.name)||G(null==e?void 0:e.value))sz.error("Invalid metric received",e);else if(!this.fo||this.fo>e.value){this.M.url!==i&&(this.co(),this.do=setTimeout(this.co,this.flushToCaptureTimeoutMs)),W(this.M.url)&&(this.M.url=i),this.M.firstMetricTimestamp=W(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0);var r=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0),n=b({},e,{$current_url:i,timestamp:Date.now()});W(r)||(n.$session_id=r.sessionId,n.$window_id=r.windowId),this.M.metrics.push(n),this.M.metrics.length===this.allowedMetrics.length&&this.co()}else sz.error("Ignoring metric with value >= "+this.fo,e)}},this.po=()=>
1{if(!this.js){var e,t,i,r,n=p.__PosthogExtensions__;W(n)||W(n.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:i,onINP:r}=n.postHogWebVitalsCallbacks),e&&t&&i&&r?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&r(this.ht.bind(this)),this.js=!0):sz.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.Js=!(null==(t=this._instance.persistence)||!t.props[tQ]),this.startIfEnabled()}get mo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,i=H(this.mo)?null==(e=this.mo)?void 0:e.web_vitals_allowed_metrics:void 0;return G(i)?(null==(t=this._instance.persistence)?void 0:t.props[tY])||["CLS","FCP","INP","LCP"]:i}get flushToCaptureTimeoutMs(){return(H(this.mo)?this.mo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=H(this.mo)?this.mo.web_vitals_attribution:void 0;return null!=e&&e}get fo(){var e=H(this.mo)&&Q(this.mo.__web_vitals_max_value)?this.mo.__web_vitals_max_value:9e5;return e>0&&6e4>=e?9e5:e}get isEnabled(){var e=null==a?void 0:a.protocol;if("http:"!==e&&"https:"!==e)return sz.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=H(this.mo)?this.mo.web_vitals:K(this.mo)?this.mo:void 0;return K(t)?t:this.Js}startIfEnabled(){this.isEnabled&&!this.js&&(sz.info("enabled, starting..."),this.lr(this.po))}onRemoteConfig(e){if("capturePerformance"in e){var t=H(e.capturePerformance)&&!!e.capturePerformance.web_vitals,i=H(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[tQ]:t}),this._instance.persistence.register({[tY]:i})),this.Js=t,this.startIfEnabled()}}lr(e){var t,i;null!=(t=p.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks?e():null==(i=p.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",t=>{t?sz.error("failed to load script",t):e()})}vo(){var e=r?r.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties;return rg(e,this._instance.config.mask_personal_data_properties?[...rb,...t||[]]:[],r_)}sz.error("Could not determine current URL")}}},{exceptionObserver:class{constructor(e){var t,i,n;this.po=()=>{var e;if(r&&this.isEnabled&&null!=(e=p.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=p.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=p.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,n=p.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.yo&&this.qt.capture_unhandled_errors&&(this.yo=t(this.captureException.bind(this))),!this.bo&&this.qt.capture_unhandled_rejections&&(this.bo=i(this.captureException.bind(this))),!this._o&&this.qt.capture_console_errors&&(this._o=n(this.captureException.bind(this)))}catch(e){sA.error("failed to start",e),this.wo()}}},this._instance=e,this.xo=!(null==(t=this._instance.persistence)||!t.props[tV]),this.So=new eo({refillRate:null!==(i=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)&&void 0!==i?i:1,bucketSize:null!==(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)&&void 0!==n?n:10,refillInterval:1e4,Gt:sA}),this.qt=this.ko(),this.startIfEnabledOrStop()}ko(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return H(e)?t=b({},t,e):(W(e)?this.xo:e)&&(t=b({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.qt.capture_console_errors||this.qt.capture_unhandled_errors||this.qt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(sA.info("enabled"),this.wo(),this.lr(this.po)):this.wo()}lr(e){var t,i;null!=(t=p.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(i=p.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return sA.error("failed to load script",t);e()})}wo(){var e,t,i;null==(e=this.yo)||e.call(this),this.yo=void 0,null==(t=this.bo)||t.call(this),this.bo=void 0,null==(i=this._o)||i.call(this),this._o=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.xo=!!e.autocaptureExceptions,this._instance.persistence&&this._instance.persistence.register({[tV]:this.xo}),this.qt=this.ko(),this.startIfEnabledOrStop())}onConfigChange(){this.qt=this.ko()}captureException(e){var t,i,r,n=null!==(t=null==e||null==(i=e.$exception_list)||null==(i=i[0])?void 0:i.type)&&void 0!==t?t:"Exception";this.So.consumeRateLimit(n)?sA.info("Skipping exception capture because of client rate limiting.",{exception:n}):null==(r=this._instance.exceptions)||r.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,i;this.Co=[],this.Io=new to([new tm,new tE,new tx,new tb,new tS,new tj,new ty,new tk],function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;t>r;r++)i[r-1]=arguments[r];return function(t,r){void 0===r&&(r=0);for(var n=[],s=t.split("\n"),o=r;s.length>o;o++){var a=s[o];if(1024>=a.length){var l=tv.test(a)?a.replace(tv,"$1"):a;if(!l.match(/\S*Error: /)){for(var c of i){var u=c(l,e);if(u){n.push(u);break}}if(n.length>=50)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return t.reverse(),t.slice(0,50).map(e=>b({},e,{filename:e.filename||(t[t.length-1]||{}).filename,function:e.function||"?"}))}(n)}}("web:javascript",th,tg)),this._instance=e,this.Co=null!==(t=null==(i=this._instance.persistence)?void 0:i.get_property(tU))&&void 0!==t?t:[],this.To=tT(this.Eo()),this.Mo=new tA(this.To)}onConfigChange(){this.To=tT(this.Eo()),this.Mo.setConfig(this.To)}onRemoteConfig(e){var t,i,r;if("errorTracking"in e){var n=null!==(t=null==(i=e.errorTracking)?void 0:i.suppressionRules)&&void 0!==t?t:[],s=null==(r=e.errorTracking)?void 0:r.captureExtensionExceptions;this.Co=n,this._instance.persistence&&this._instance.persistence.register({[tU]:this.Co,[tG]:s})}}get Ro(){var e,t=!!this._instance.get_property(tG),i=this._instance.config.error_tracking.captureExtensionExceptions;return null!==(e=null!=i?i:t)&&void 0!==e&&e}buildProperties(e,t){return this.Io.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}addExceptionStep(e,t){if(this.To.enabled)try{if(!B(e)||0===e.trim().length)return void s9.warn("Ignoring exception step because message must be a non-empty string");var i=this.Po(t),{sanitizedProperties:r,droppedKeys:n}=function(e){if(!e)return{sanitizedProperties:{},droppedKeys:[]};var t=[];return{sanitizedProperties:Object.keys(e).reduce((i,r)=>(tP.has(r)?t.push(r):i[r]=e[r],i),{}),droppedKeys:t}}(i);n.length>0&&s9.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.Mo.add(b({[tC]:e,[tR]:(new Date).toISOString()},r))}catch(e){s9.error("Failed to add exception step. Ignoring breadcrumb.",e)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Oo(t)){if(this.Lo(t))return this.Fo("Exception dropped: matched a suppression rule"),void s9.info("Skipping exception capture because a suppression rule matched");if(!this.Ro&&this.Ao(t))return this.Fo("Exception dropped: thrown by a browser extension"),void s9.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.No(t))return this.Fo("Exception dropped: thrown by the PostHog SDK"),void s9.info("Skipping exception capture because it was thrown by the PostHog SDK")}var i=this.To.enabled&&G(e.$exception_steps)?this.$o(e):e;try{var r=this._instance.capture("$exception",i,{_noTruncate:!0,_batchKey:"exceptionEvent",cn:!0});return r&&this.Mo.clear(),r}catch(e){return s9.error("Failed to capture exception event. Dropping this exception.",e),void this.Mo.clear()}}catch(e){return void s9.error("Failed to process exception event. Ignoring this exception.",e)}}$o(e){try{var t=this.Mo.getAttachable();return 0===t.length?e:b({},e,{$exception_steps:t})}catch(t){return s9.error("Failed to read buffered exception steps. Capturing exception without steps.",t),e}}Fo(e){this.To.enabled&&this.Mo.add({[tC]:e,[tR]:(new Date).toISOString()})}Po(e){return H(e)?b({},e):{}}Eo(){var e,t;return null!==(e=null==(t=this._instance.config.error_tracking)?void 0:t.exception_steps)&&void 0!==e?e:{}}Lo(e){if(0===e.length)return!1;var t=e.reduce((e,t)=>
1{var{type:i,value:r}=t;return B(i)&&i.length>0&&e.$exception_types.push(i),B(r)&&r.length>0&&e.$exception_values.push(r),e},{$exception_types:[],$exception_values:[]});return this.Co.some(e=>{var i=e.values.map(e=>{var i,r=nM[e.operator],n=q(e.value)?e.value:[e.value],s=null!==(i=t[e.key])&&void 0!==i?i:[];return n.length>0&&r(n,s)});return"OR"===e.type?i.some(Boolean):i.every(Boolean)})}Ao(e){return e.flatMap(e=>{var t,i;return null!==(t=null==(i=e.stacktrace)?void 0:i.frames)&&void 0!==t?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}No(e){if(e.length>0){var t,i,r,n,s=null!==(t=null==(i=e[0].stacktrace)?void 0:i.frames)&&void 0!==t?t:[],o=s[s.length-1];return null!==(r=null==o||null==(n=o.filename)?void 0:n.includes("posthog.com/static"))&&void 0!==r&&r}return!1}Oo(e){return!G(e)&&q(e)}}},oo,{siteApps:class{constructor(e){this._instance=e,this.Ho=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Uo(e,t){if(t){var i=this.globalsForEvent(t);this.Ho.push(i),this.Ho.length>1e3&&(this.Ho=this.Ho.slice(10))}}get siteAppLoaders(){var e;return null==(e=p._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Uo.bind(this));this.Bo=()=>{e(),this.Ho=[],this.Bo=void 0}}}globalsForEvent(e){if(!e)throw Error("Event payload is required");var t,i,r,n,s,o,a,l={},c=this._instance.get_property("$groups")||[];for(var[u,d]of Object.entries(this._instance.get_property("$stored_group_properties")||{}))l[u]={id:c[u],type:u,properties:d};var{$set_once:h,$set:p}=e;return{event:b({},x(e,sU),{properties:b({},e.properties,p?{$set:b({},null!==(t=null==(i=e.properties)?void 0:i.$set)&&void 0!==t?t:{},p)}:{},h?{$set_once:b({},null!==(r=null==(n=e.properties)?void 0:n.$set_once)&&void 0!==r?r:{},h)}:{}),elements_chain:null!==(s=null==(o=e.properties)?void 0:o.$elements_chain)&&void 0!==s?s:"",distinct_id:null==(a=e.properties)?void 0:a.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}setupSiteApp(e){var t=this.apps[e.id],i=()=>{var i;!t.errored&&this.Ho.length&&(sG.info("Processing "+this.Ho.length+" events for site app with id "+e.id),this.Ho.forEac
1h(e=>null==t.processEvent?void 0:t.processEvent(e)),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(i=this.Bo)||i.call(this))},r=!1,n=n=>{t.errored=!n,t.loaded=!0,sG.info("Site app with id "+e.id+" "+(n?"loaded":"errored")),r&&i()};try{var{processEvent:s}=e.init({posthog:this._instance,callback(e){n(e)}});s&&(t.processEvent=s),r=!0}catch(t){sG.error(sQ+e.id,t),n(!1)}if(r&&t.loaded)try{i()}catch(i){sG.error("Error while processing buffered events PostHog app with config id "+e.id,i),t.errored=!0}}zo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var i of e)this.setupSiteApp(i)}Vo(e){if(0!==Object.keys(this.apps).length){var t=this.globalsForEvent(e);for(var i of Object.values(this.apps))try{null==i.processEvent||i.processEvent(t)}catch(t){sG.error("Error while processing event "+e.event+" for site app "+i.id,t)}}}onRemoteConfig(e){var t,i,r,n=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.zo(),void this._instance.on("eventCaptured",e=>this.Vo(e))):void sG.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(i=this.Bo)||i.call(this),null!=(r=e.siteApps)&&r.length){if(this.isEnabled){var s=function(e){var t;p["__$$ph_site_app_"+e]=n._instance,null==(t=p.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(n._instance,a,t=>{if(t)return sG.error(sQ+e,t)})};for(var{id:o,url:a}of e.siteApps)s(o)}else sG.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}},oa,{tracingHeaders:class{constructor(e){this.Wo=void 0,this.Zo=void 0,this.po=()=>{var e,t,i=this.Go()||[];W(this.Wo)&&(this.Wo=null==(e=p.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)?void 0:e._patchXHR(i,this._instance.get_distinct_id(),this._instance.sessionManager)),W(this.Zo)&&(this.Zo=null==(t=p.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)?void 0:t._patchFetch(i,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}lr(e){var t,i;null!=(t=p.__PosthogExtensions__)&&t.tracingHeadersPatchFns?e():null==(i=p.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return sO.error("failed to load script",t);e()})}Go(){var e;return null!==(e=this._instance.config.addTracingHeaders)&&void 0!==e?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Go()?this.lr(this.po):(null==(e=this.Wo)||e.call(this),null==(t=this.Zo)||t.call(this),this.Wo=void 0,this.Zo=void 0)}}},{toolbar:class{constructor(e){this.instance=e}na(e){p.ph_toolbar_state=e}sa(){var e;return null!==(e=p.ph_toolbar_state)&&void 0!==e?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,i){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===i&&(i=void 0),iG(this.instance.config)||!r||!o)return!1;e=null!=e?e:r.location,i=null!=i?i:r.history;try{if(!t){try{r.localStorage.setItem("test","test"),r.localStorage.removeItem("test")}catch(e){return!1}t=null==r?void 0:r.localStorage}var n,s=s1||rv(e.hash,"__posthog")||rv(e.hash,"state"),a=s?iN(()=>JSON.parse(atob(decodeURIComponent(s))))||iN(()=>JSON.parse(decodeURIComponent(s))):null;return a&&"ph_authorize"===a.action?((n=a).source="url",n&&Object.keys(n).length>0&&(a.desiredHash?e.hash=a.desiredHash:i?i.replaceState(i.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(s2)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch(e){return!1}}oa(e){var t=p.ph_load_toolbar||p.ph_load_editor;!G(t)&&$(t)?t(e,this.instance):s6.warn("No toolbar load function found")}loadToolbar(e){var t,i=!(null==o||!o.getElementById(iy));if(!r||i)return!1;var n="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,s=b({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});return(r.localStorage.setItem(s2,JSON.stringify(b({},s,{source:void 0}))),2===this.sa())?this.oa(s):0===this.sa()&&(this.na(1),null==(t=p.__PosthogExtensions__)||null==t.loadExternalDependency||t.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return s6.error("[Toolbar] Failed to load",e),void this.na(0);this.na(2),this.oa(s)}),iU(r,"turbolinks:load",()=>{this.na(0),this.loadToolbar(s)})),!0}aa(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,i){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===i&&(i=void 0),this.maybeLoadToolbar(e,t,i)}}},ol,{conversations:class{constructor(e){this.ua=void 0,this._conversationsManager=null,this.la=!1,this.ha=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;G(t)||(K(t)?this.ua=t:(this.ua=t.enabled,this.ha=t),this.loadIfEnabled())}}reset(){var e;null==(e=this._conversationsManager)||e.reset(),this._conversationsManager=null,this.ua=void 0,this.ha=null}loadIfEnabled(){if(!(this._conversationsManager||this.la||this._instance.config.disable_conversations||iG(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=null==p?void 0:p.__PosthogExtensions__;if(e&&!W(this.ua)&&this.ua){if(this.ha&&this.ha.token){this.la=!0;try{var t=e.initConversations;if(t)return this.ca(t),void(this.la=!1);var i=e.loadExternalDependency;if(!i)return void this.da(ik);i(this._instance,"conversations",t=>{t||!e.initConversations?this.da("Could not load conversations script",t):this.ca(e.initConversations),this.la=!1})}catch(e){this.da("Error initializing conversations",e),this.la=!1}}else or.error("Conversations enabled but missing token in remote config.")}}}ca(e){if(this.ha)try{this._conversationsManager=e(this.ha,this._instance),or.info("Conversations loaded successfully")}catch(e){this.da("Error completing conversations initialization",e)}else or.error("Cannot complete initialization: remote config is null")}da(e,t){or.error(e,t),this._conversationsManager=null,this.la=!1}show(){this._conversationsManager?this._conversationsManager.show():or.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.ua&&!U(this._conversationsManager)}isVisible(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.isVisible())&&void 0!==e&&e}
1sendMessage(e,t,i){var r=this;return m(function*(){return r._conversationsManager?r._conversationsManager.sendMessage(e,t,i):(or.warn(on),null)})()}getMessages(e,t){var i=this;return m(function*(){return i._conversationsManager?i._conversationsManager.getMessages(e,t):(or.warn(on),null)})()}markAsRead(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(or.warn(on),null)})()}getTickets(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(or.warn(on),null)})()}requestRestoreLink(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(or.warn(on),null)})()}restoreFromToken(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(or.warn(on),null)})()}restoreFromUrlToken(){var e=this;return m(function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(or.warn(on),null)})()}getCurrentTicketId(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.getCurrentTicketId())&&void 0!==e?e:null}getWidgetSessionId(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.getWidgetSessionId())&&void 0!==e?e:null}yn(){var e;null==(e=this._conversationsManager)||e.setIdentity()}bn(){var e;null==(e=this._conversationsManager)||e.clearIdentity()}}},{logs:class{constructor(e){var t;this.va=!1,this.fa=!1,this.Gt=tz("[logs]"),this.pa=[],this.ga=0,this.ma=0,this.ya=!1,this._instance=e,this._instance&&null!=(t=this._instance.config.logs)&&t.captureConsoleLogs&&(this.va=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,i=null==(t=e.logs)?void 0:t.captureConsoleLogs;!G(i)&&i&&(this.va=!0,this.loadIfEnabled())}reset(){this.pa=[],this.Br&&(clearTimeout(this.Br),this.Br=void 0),this.ga=0,this.ma=0,this.ya=!1}loadIfEnabled(){if(this.va&&!this.fa){var e=null==p?void 0:p.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",t=>{var i;t||null==(i=e.logs)||!i.initializeLogs?this.Gt.error("Could not load logs script",t):(e.logs.initializeLogs(this._instance),this.fa=!0)}):this.Gt.error(ik)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,i,r,n,s,o;if(this._instance.is_capturing()){if(e&&e.body){var a=null!==(t=null==(i=this._instance.config.logs)?void 0:i.flushIntervalMs)&&void 0!==t?t:3e3,l=null!==(r=null==(n=this._instance.config.logs)?void 0:n.maxLogsPerInterval)&&void 0!==r?r:1e3,c=Date.now();if(a>c-this.ma||(this.ma=c,this.ga=0,this.ya=!1),l>this.ga){this.ga++;var u=function(e,t){var{text:i,number:r}=tr[e.level||"info"]||tn,n=String(Date.now())+"000000",s={};t.distinctId&&(s.posthogDistinctId=t.distinctId),t.sessionId&&(s.sessionId=t.sessionId),t.currentUrl&&(s["url.full"]=t.currentUrl),t.screenName&&(s["screen.name"]=t.screenName),t.appState&&(s["app.state"]=t.appState),t.activeFeatureFlags&&t.activeFeatureFlags.length>0&&(s.feature_flags=t.activeFeatureFlags);var o=b({},s,e.attributes||{}),a={timeUnixNano:n,observedTimeUnixNano:n,severityNumber:r,severityText:i,body:{stringValue:e.body},attributes:ts(o)};return e.trace_id&&(a.traceId=e.trace_id),e.span_id&&(a.spanId=e.span_id),W(e.trace_flags)||(a.flags=e.trace_flags),a}(e,this.ba());this.pa.push({record:u}),(null!==(s=null==(o=this._instance.config.logs)?void 0:o.maxBufferSize)&&void 0!==s?s:100)>this.pa.length?this._a():this.flushLogs()}else this.ya||(this.Gt.warn("captureLog dropping logs: exceeded "+l+" logs per "+a+"ms"),this.ya=!0)}else this.Gt.warn("captureLog requires a body")}}get logger(){return this.wa||(this.wa={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.wa}flushLogs(e){if(this.Br&&(clearTimeout(this.Br),this.Br=void 0),0!==this.pa.length){var t,i,r,n=this.pa;this.pa=[];var s=this._instance.config.logs,o=b({"service.name":(null==s?void 0:s.serviceName)||"unknown_service"},(null==s?void 0:s.environment)&&{"deployment.environment":s.environment},(null==s?void 0:s.serviceVersion)&&{"service.version":s.serviceVersion},null==s?void 0:s.resourceAttributes),a=(t=n.map(e=>e.record),i=g.LIB_NAME,r=g.LIB_VERSION,{resourceLogs:[{resource:{attributes:ts(o)},scopeLogs:[{scope:{name:i,version:r},logRecords:t}]}]}),l=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Yi({method:"POST",url:l,data:a,compression:"best-available",batchKey:"logs",transport:e})}}_a(){var e,t;this.Br||(this.Br=setTimeout(()=>{this.Br=void 0,this.flushLogs()},null!==(e=null==(t=this._instance.config.logs)?void 0:t.flushIntervalMs)&&void 0!==e?e:3e3))}ba(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:i}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=i}if(null!=p&&null!=(e=p.location)&&e.href&&(t.currentUrl=p.location.href),this._instance.featureFlags){var r=this._instance.featureFlags.getFlags();r&&r.length>0&&(t.activeFeatureFlags=r)}return t}}});n9.__defaultExtensionClasses=b({},oc);
1var ou,od=(ou=nK[n6]=new n9,function(){function e(){e.done||(e.done=!0,n4=!1,iq(nK,function(e){e._dom_loaded()}))}null!=o&&o.addEventListener?"complete"===o.readyState?e():iU(o,"DOMContentLoaded",e,{capture:!1}):r&&tO.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),ou),oh=i(1282);let op="phc_R6HTN7LCdL9V4rs9cpd5POkcoEZixiavECacX3dMn8k",of=/(^localhost$|^127\.0\.0\.1$|\.pages\.dev$)/,og={cohabitate:"cohabitate",panicclean:"adhd",pacty:"pacty",quitvape:"vapeless",lastword:"clapback",loov:"dateai",plumbing:"plumbing"},ov=!1;function om(){!ov&&(!op||of.test(window.location.hostname)||(ov=!0,od.init(op,{api_host:"https://ph.apphaven.uk",capture_pageview:!1,capture_pageleave:!0,autocapture:!0,persistence:"localStorage+cookie",loaded:e=>{var t;e.register({appId:null!==(t=og[oh.siteConfig.id])&&void 0!==t?t:oh.siteConfig.id,site_name:oh.siteConfig.name,surface:"website",platform:"web"})}})))}function ob(e){ov&&od.capture("$pageview",{$current_url:window.location.href,path:null!=e?e:window.location.pathname})}function ox(e,t){ov&&od.capture(e,t)}},3659:function(){},8844:function(){},3434:function(){},7663:function(e){!function(){var t={229:function(e){var t,i,r,n=e.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(i){try{return t.call(null,e,0)}catch(i){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var l=[],c=!1,u=-1;function d(){c&&r&&(c=!1,r.length?l=r.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(r=l,l=[];++u<t;)r&&r[u].run();u=-1,t=l.length}r=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];l.push(new p(e,t)),1!==l.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(e){return[]},n.binding=function(e){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw Error("process.chdir is not supported")},n.umask=function(){return 0}}},i={};function r(e){var n=i[e];if(void 0!==n)return n.exports;var s=i[e]={exports:{}},o=!0;try{t[e](s,s.exports,r),o=!1}finally{o&&delete i[e]}return s.exports}r.ab="//";var n=r(229);e.exports=n}()},9008:function(e,t,i){e.exports=i(3867)},5675:function(e,t,i){e.exports=i(6210)},1664:function(e,t,i){e.exports=i(8342)},1163:function(e,t,i){e.exports=i(3079)},9852:function(e,t,i){"use strict";i.d(t,{j:function(){return o}});var r=i(5068),n=i(2943),s=i(2288),o=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!s.sk&&(null==(t=window)?void 0:t.addEventListener)){var i=function(){return e()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},t}(0,r.Z)(t,e);var i=t.prototype;return i.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},i.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},i.setEventListener=function(e){var t,i=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?i.setFocused(e):i.onFocus()})},i.setFocused=function(e){this.focused=e,e&&this.onFocus()}
1,i.onFocus=function(){this.listeners.forEach(function(e){e()})},i.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(n.l))},6747:function(e,t,i){"use strict";i.d(t,{QueryClient:function(){return r.S}});var r=i(1832),n=i(6755);i.o(n,"QueryClientProvider")&&i.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),i.o(n,"useQuery")&&i.d(t,{useQuery:function(){return n.useQuery}})},1909:function(e,t,i){"use strict";i.d(t,{E:function(){return s},j:function(){return n}});var r=console;function n(){return r}function s(e){r=e}},101:function(e,t,i){"use strict";i.d(t,{V:function(){return n}});var r=i(2288),n=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var i=arguments.length,r=Array(i),n=0;n<i;n++)r[n]=arguments[n];t.schedule(function(){e.apply(void 0,r)})}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)(function(){e.batchNotifyFn(function(){t.forEach(function(t){e.notifyFn(t)})})})},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},68:function(e,t,i){"use strict";i.d(t,{N:function(){return o}});var r=i(5068),n=i(2943),s=i(2288),o=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!s.sk&&(null==(t=window)?void 0:t.addEventListener)){var i=function(){return e()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},t}(0,r.Z)(t,e);var i=t.prototype;return i.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},i.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},i.setEventListener=function(e){var t,i=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?i.setOnline(e):i.onOnline()})},i.setOnline=function(e){this.online=e,e&&this.onOnline()},i.onOnline=function(){this.listeners.forEach(function(e){e()})},i.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(n.l))},1832:function(e,t,i){"use strict";i.d(t,{S:function(){return m}});var r=i(7462),n=i(2288),s=i(5068),o=i(101),a=i(1909),l=i(1216),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,n.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){e.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var i,r,s=this.state.data,o=(0,n.SE)(e,s);return(null==(i=(r=this.options).isDataEqual)?void 0:i.call(r,s,o))?o=s:!1!==this.options.structuralSharing&&(o=(0,n.Q$)(s,o)),this.dispatch({data:o,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),o},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,i=this.promise;return null==(t=this.retryer)||t.cancel(e),i?i.then(n.ZT).catch(n.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,n.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abort
1SignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var i,r,s,o,c,u,d=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var h=this.observers.find(function(e){return e.options.queryFn});h&&this.setOptions(h.options)}var p=(0,n.mc)(this.queryKey),f=(0,n.G9)(),g={queryKey:p,pageParam:void 0,meta:this.meta};Object.defineProperty(g,"signal",{enumerable:!0,get:function(){if(f)return d.abortSignalConsumed=!0,f.signal}});var v={fetchOptions:t,options:this.options,queryKey:p,state:this.state,fetchFn:function(){return d.options.queryFn?(d.abortSignalConsumed=!1,d.options.queryFn(g)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(o=this.options.behavior)?void 0:o.onFetch)&&(null==(r=this.options.behavior)||r.onFetch(v)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(c=v.fetchOptions)?void 0:c.meta)||this.dispatch({type:"fetch",meta:null==(s=v.fetchOptions)?void 0:s.meta}),this.retryer=new l.m4({fn:v.fetchFn,abort:null==f?void 0:null==(u=f.abort)?void 0:u.bind(f),onSuccess:function(e){d.setData(e),null==d.cache.config.onSuccess||d.cache.config.onSuccess(e,d),0===d.cacheTime&&d.optionalRemove()},onError:function(e){(0,l.DV)(e)&&e.silent||d.dispatch({type:"error",error:e}),(0,l.DV)(e)||(null==d.cache.config.onError||d.cache.config.onError(e,d),(0,a.j)().error(e)),0===d.cacheTime&&d.optionalRemove()},onFail:function(){d.dispatch({type:"failed"})},onPause:function(){d.dispatch({type:"pause"})},onContinue:function(){d.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),o.V.batch(function(){t.observers.forEach(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:"queryUpdated",action:e})})},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,i=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var i,n;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(i=t.meta)?i:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(n=t.dataUpdatedAt)?n:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=t.error;if((0,l.DV)(s)&&s.revert&&this.revertState)return(0,r.Z)({},this.revertState);return(0,r.Z)({},e,{error:s,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),u=i(2943),d=function(e){function t(t){var i;return(i=e.call(this)||this).config=t||{},i.queries=[],i.queriesMap={},i}(0,s.Z)(t,e);var i=t.prototype;return i.build=function(e,t,i){var r,s=t.queryKey,o=null!=(r=t.queryHash)?r:(0,n.Rm)(s,t),a=this.get(o);return a||(a=new c({cache:this,queryKey:s,queryHash:o,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(s),meta:t.meta}),this.add(a)),a},i.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},i.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},i.clear=function(){var e=this;
1o.V.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},i.get=function(e){return this.queriesMap[e]},i.getAll=function(){return this.queries},i.find=function(e,t){var i=(0,n.I6)(e,t)[0];return void 0===i.exact&&(i.exact=!0),this.queries.find(function(e){return(0,n._x)(i,e)})},i.findAll=function(e,t){var i=(0,n.I6)(e,t)[0];return Object.keys(i).length>0?this.queries.filter(function(e){return(0,n._x)(i,e)}):this.queries},i.notify=function(e){var t=this;o.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},i.onFocus=function(){var e=this;o.V.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},i.onOnline=function(){var e=this;o.V.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(u.l),h=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(n.ZT).catch(n.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,i="loading"===this.state.status,r=Promise.resolve();return i||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})})),r.then(function(){return t.executeMutation()}).then(function(i){e=i,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,a.j)().error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:e}),e})})},t.executeMutation=function(){var e,t=this;return this.retryer=new l.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),o.V.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},e}(),p=function(e){function t(t){var i;return(i=e.call(this)||this).config=t||{},i.mutations=[],i.mutationId=0,i}(0,s.Z)(t,e);var i=t.prototype;return i.build=function(e,t,i){var r=new h({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:i,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},i.add=function(e){this.mutations.push(e),this.notify(e)},i.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},i.clear=function(){var e=this;o.V.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},i.getAll=function(){return this.mutations},i.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return(0,n.X7)(e,t)})},i.findAll=function(e){return this.mutations.filter(function(t){return(0,n.X7)(e,t)})},i.notify=function(e){var t=this;
1o.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},i.onFocus=function(){this.resumePausedMutations()},i.onOnline=function(){this.resumePausedMutations()},i.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPaused});return o.V.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(n.ZT)})},Promise.resolve())})},t}(u.l),f=i(9852),g=i(68);function v(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var m=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new p,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=f.j.subscribe(function(){f.j.isFocused()&&g.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=g.N.subscribe(function(){f.j.isFocused()&&g.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var i=(0,n.I6)(e,t)[0];return i.fetching=!0,this.queryCache.findAll(i).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var i;return null==(i=this.queryCache.find(e,t))?void 0:i.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,i){var r=(0,n._v)(e),s=this.defaultQueryOptions(r);return this.queryCache.build(this,s).setData(t,i)},t.setQueriesData=function(e,t,i){var r=this;return o.V.batch(function(){return r.getQueryCache().findAll(e).map(function(e){var n=e.queryKey;return[n,r.setQueryData(n,t,i)]})})},t.getQueryState=function(e,t){var i;return null==(i=this.queryCache.find(e,t))?void 0:i.state},t.removeQueries=function(e,t){var i=(0,n.I6)(e,t)[0],r=this.queryCache;o.V.batch(function(){r.findAll(i).forEach(function(e){r.remove(e)})})},t.resetQueries=function(e,t,i){var s=this,a=(0,n.I6)(e,t,i),l=a[0],c=a[1],u=this.queryCache,d=(0,r.Z)({},l,{active:!0});return o.V.batch(function(){return u.findAll(l).forEach(function(e){e.reset()}),s.refetchQueries(d,c)})},t.cancelQueries=function(e,t,i){var r=this,s=(0,n.I6)(e,t,i),a=s[0],l=s[1],c=void 0===l?{}:l;return void 0===c.revert&&(c.revert=!0),Promise.all(o.V.batch(function(){return r.queryCache.findAll(a).map(function(e){return e.cancel(c)})})).then(n.ZT).catch(n.ZT)},t.invalidateQueries=function(e,t,i){var s,a,l,c=this,u=(0,n.I6)(e,t,i),d=u[0],h=u[1],p=(0,r.Z)({},d,{active:null==(s=null!=(a=d.refetchActive)?a:d.active)||s,inactive:null!=(l=d.refetchInactive)&&l});return o.V.batch(function(){return c.queryCache.findAll(d).forEach(function(e){e.invalidate()}),c.refetchQueries(p,h)})},t.refetchQueries=function(e,t,i){var s=this,a=(0,n.I6)(e,t,i),l=a[0],c=a[1],u=Promise.all(o.V.batch(function(){return s.queryCache.findAll(l).map(function(e){return e.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==l?void 0:l.refetchPage}}))})})).then(n.ZT);return(null==c?void 0:c.throwOnError)||(u=u.catch(n.ZT)),u},t.fetchQuery=function(e,t,i){var r=(0,n._v)(e,t,i),s=this.defaultQueryOptions(r);void 0===s.retry&&(s.retry=!1);var o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)},t.prefetchQuery=function(e,t,i){return this.fetchQuery(e,t,i).then(n.ZT).catch(n.ZT)},t.fetchInfiniteQuery=function(e,t,i){var r=(0,n._v)(e,t,i);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,i,r,s,o,a,c,u=null==(t=e.fetchOptions)?void 0:null==(i=t.meta)?void 0:i.refetchPage,d=null==(r=e.fetchOptions)?void 0:null==(s=r.meta)?void 0:s.fetchMore,h=null==d?void 0:d.pageParam,p=(null==d?void 0:d.direction)==="forward",f=(null==d?void 0:d.direction)==="backward",g=(null==(o=e.state.data)?void 0:o.pages)||[],m=(null==(a=e.state.data)?void 0:a.pageParams)||[],b=(0,n.G9)(),x=null==b?void 0:b.signal,_=m,y=!1,w=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},F=function(e,t,i,r){return _=r?[t].concat(_):[].concat(_,[t]),r?[i].concat(e):[].concat(e,[i])},j=function(t,i,r,n){if(y)return Promise.reject("Cancelled");if(void 0===r&&!i&&t.length)return Promise.resolve(t);var s=w({queryKey:e.queryKey,signal:x,pageParam:r,meta:e.meta}),o=Promise.resolve(s).then(function(e){return F(t,r,e,n)});return(0,l.LE)(s)&&(o.cancel=s.cancel),o};if(g.length){if(p){var S=void 0!==h,k=S?h:v(e.options,g);c=j(g,S,k)}else if(f){var E,C=void 0!==h,R=C?h:null==(E=e.options).getPreviousPageParam?void 0:E.getPreviousPageParam(g[0],g);c=j(g,C,R,!0)}else!function(){_=[];var t=void 0===e.options.getNextPageParam;c=!u||!g[0]||u(g[0],0,g)?j([],t,m[0]):Promise.resolve(F([],m[0],g[0]));for(var i=function(i){c=c.then(function(r){if(!u||!g[i]||u(g[i],i,g)){var n=t?m[i]:v(e.options,r);return j(r,t,n)}return Promise.resolve(F(r,m[i],g[i]))})},r=1;r<g.length;r++)i(r)}()}else c=j([]);var P=c.then(function(e){return{pages:e,pageParams:_}});return P.cancel=function(){y=!0,null==b||b.abort(),(0,l.LE)(c)&&c.cancel()},P}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,i){return this.fetchInfiniteQuery(e,t,i).then(n.ZT).catch(n.ZT)},t.cancelMutations=function(){var e=this;return Promise.all(o.V.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})})).then(n.ZT).catch(n.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var i=this.queryDefaults.find(function(t){return(0,n.yF)(e)===(0,n.yF)(t.queryKey)});i?i.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return(0,n.to)(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var i=this.mutationDefaults.find(function(t){return(0,n.yF)(e)===(0,n.yF)(t.mutationKey)});i?i.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return(0,n.to)(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,n.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},1216:function(e,t,i){"use strict";i.d(t,{DV:function(){return c},LE:function(){return a},m4:function(){return u}});var r=i(9852),n=i(68),s=i(2288);function o(e){return Math.min(1e3*Math.pow(2,e),3e4)}function a(e){return"function"==typeof(null==e?void 0:e.cancel)}var l=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof l}var u=function(e){var t,i,c,u,d=this,h=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){h=!0},this.continueRetry=function(){h=!1},this.continue=function(){return null==i?void 0:i()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(e,t){c=e,u=t});var p=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==i||i(),c(t))},f=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==i||i(),u(t))};!function c(){var u;if(!d.isResolved){try{u=e.fn()}catch(e){u=Promise.reject(e)}t=function(e){if(!d.isResolved&&(f(new l(e)),null==d.abort||d.abort(),a(u)))try{u.cancel()}catch(e){}},d.isTransportCancelable=a(u),Promise.resolve(u).then(p).catch(function(t){if(!d.isResolved){var a,l,u=null!=(a=e.retry)?a:3,p=null!=(l=e.retryDelay)?l:o,g="function"==typeof p?p(d.failureCount,t):p,v=!0===u||"number"==typeof u&&d.failureCount<u||"function"==typeof u&&u(d.failureCount,t);if(h||!v){f(t);return}d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,s.Gh)(g).then(function(){if(!r.j.isFocused()||!n.N.isOnline())return new Promise(function(t){i=t,d.isPaused=!0,null==e.onPause||e.onPause()}).then(function(){i=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()})}).then(function(){h?f(t):c()})}})}}()}},2943:function(e,t,i){"use strict";i.d(t,{l:function(){return r}});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,i=e||function(){};return this.listeners.push(i),this.onSubscribe(),function(){t.listeners=t.listeners.filter(function(e){return e!==i}),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},6755:function(){},2288:function(e,t,i){"use strict";i.d(t,{A4:function(){return w},G9:function(){return F},Gh:function(){return y},I6:function(){return d},Kp:function(){return c},PN:function(){return a},Q$:function(){return function e(t,i){if(t===i)return t;var r=Array.isArray(t)&&Array.isArray(i);if(r||b(t)&&b(i)){for(var n=r?t.length:Object.keys(t).length,s=r?i:Object.keys(i),o=s.length,a=r?[]:{},l=0,c=0;c<o;c++){var u=r?c:s[c];a[u]=e(t[u],i[u]),a[u]===t[u]&&l++}return n===o&&l===n?t:a}return i}},Rm:function(){return f},SE:function(){return o},VS:function(){return m},X7:function(){return p},ZT:function(){return s},_v:function(){return u},_x:function(){return h},mc:function(){return l},sk:function(){return n},to:function(){return v},yF:function(){return g}});var r=i(7462),n="undefined"==typeof window;function s(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function l(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,i){return _(e)?"function"==typeof t?(0,r.Z)({},i,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function d(e,t,i){return _(e)?[(0,r.Z)({},t,{queryKey:e}),i]:[e||{},t]}function h(e,t){var i=e.active,r=e.exact,n=e.fetching,s=e.inactive,o=e.predicate,a=e.queryKey,l=e.stale;if(_(a)){if(r){if(t.queryHash!==f(a,t.options))return!1}else if(!v(t.queryKey,a))return!1}var c=!0===i&&!0===s||null==i&&null==s?"all":!1===i&&!1===s?"none":(null!=i?i:!s)?"active":"inactive";if("none"===c)return!1;if("all"!==c){var u=t.isActive();if("active"===c&&!u||"inactive"===c&&u)return!1}return("boolean"!=typeof l||t.isStale()===l)&&("boolean"!=typeof n||t.isFetching()===n)&&(!o||!!o(t))}function p(e,t){var i=e.exact,r=e.fetching,n=e.predicate,s=e.mutationKey;if(_(s)){if(!t.options.mutationKey)return!1;if(i){if(g(t.options.mutationKey)!==g(s))return!1}else if(!v(t.options.mutationKey,s))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!n||!!n(t))}function f(e,t){return((null==t?void 0:t.queryKeyHashFn)||g)(e)}function g(e){return JSON.stringify(l(e),function(e,t){return b(t)?Object.keys(t).sort().reduce(function(e,i){return e[i]=t[i],e},{}):t})}function v(e,t){return function e(t,i){return t===i||typeof t==typeof i&&!!t&&!!i&&"object"==typeof t&&"object"==typeof i&&!Object.keys(i).some(function(r){return!e(t[r],i[r])})}(l(e),l(t))}function m(e,t){if(e&&!t||t&&!e)return!1;for(var i in e)if(e[i]!==t[i])return!1;return!0}function b(e){if(!x(e))return!1;var t=e.constructor;if(void 0===t)return!0;var i=t.prototype;return!!(x(i)&&i.hasOwnProperty("isPrototypeOf"))}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function _(e){return"string"==typeof e||Array.isArray(e)}function y(e){return new Promise(function(t){setTimeout(t,e)})}function w(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function F(){if("function"==typeof AbortController)return new AbortController}},8767:function(e,t,i){"use strict";i.d(t,{QueryClient:function(){return r.QueryClient},QueryClientProvider:function(){return n.QueryClientProvider},useQuery:function(){return n.useQuery}});var r=i(6747);i.o(r,"QueryClientProvider")&&i.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),i.o(r,"useQuery")&&i.d(t,{useQuery:function(){return r.useQuery}});var n=i(5931)},5931:function(e,t,i){"use strict";i.d(t,{QueryClientProvider:function(){return p},useQuery:function(){return k}});var r,n=i(101),s=i(3935).unstable_batchedUpdates;n.V.setBatchNotifyFunction(s);var o=i(1909),a=console;(0,o.E)(a);var l=i(7294),c=l.createContext(void 0),u=l.createContext(!1);function d(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=c),window.ReactQueryClientContext):c}var h=function(){var e=l.useContext(d(l.useContext(u)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},p=function(e){var t=e.client,i=e.contextSharing,r=void 0!==i&&i,n=e.children;l.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var s=d(r);return l.createElement(u.Provider,{value:r},l.createElement(s.Provider,{value:t},n))},f=i(7462),g=i(5068),v=i(2288),m=i(9852),b=i(2943),x=i(1216),_=function(e){function t(t,i){var r;return(r=e.call(this)||this).client=t,r.options=i,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(i),r}(0,g.Z)(t,e);var i=t.prototype;return i.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},i.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),y(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},i.onUnsubscribe=function(){this.listeners.length||this.destroy()},i.shouldFetchOnReconnect=function(){return w(this.currentQuery,this.options,this.options.refetchOnReconnect)},i.shouldFetchOnWindowFocus=function(){return w(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},i.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},i.setOptions=function(e,t){var i=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var n=this.hasListeners();n&&F(this.currentQuery,r,this.options,i)&&this.executeFetch(),this.updateResult(t),n&&(this.currentQuery!==r||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var s=this.computeRefetchInterval();n&&(this.currentQuery!==r||this.options.enabled!==i.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)},i.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),i=this.client.getQueryCache().build(this.client,t);return this.createResult(i,t)},i.getCurrentResult=function(){return this.currentResult},i.trackResult=function(e,t){var i=this,r={},n=function(e){i.trackedProps.includes(e)||i.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return n(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&n("error"),r},i.getNextResult=function(e){var t=this;return new Promise(function(i,r){var n=t.subscribe(function(t){t.isFetching||(n(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):i(t))})})},i.getCurrentQuery=function(){return this.currentQuery},i.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},i.refetch=function(e){return this.fetch((0,f.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},i.fetchOptimistic=function(e){var t=this,i=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().bu
1ild(this.client,i);return r.fetch().then(function(){return t.createResult(r,i)})},i.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},i.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(v.ZT)),t},i.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!v.sk&&!this.currentResult.isStale&&(0,v.PN)(this.options.staleTime)){var t=(0,v.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t+1)}},i.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},i.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!v.sk&&!1!==this.options.enabled&&(0,v.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackground||m.j.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},i.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},i.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},i.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},i.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},i.createResult=function(e,t){var i,r,n=this.currentQuery,s=this.options,a=this.currentResult,l=this.currentResultState,c=this.currentResultOptions,u=e!==n,d=u?e.state:this.currentQueryInitialState,h=u?this.currentResult:this.previousQueryResult,p=e.state,f=p.dataUpdatedAt,g=p.error,m=p.errorUpdatedAt,b=p.isFetching,x=p.status,_=!1,w=!1;if(t.optimisticResults){var S=this.hasListeners(),k=!S&&y(e,t),E=S&&F(e,n,t,s);(k||E)&&(b=!0,f||(x="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==x)i=h.data,f=h.dataUpdatedAt,x=h.status,_=!0;else if(t.select&&void 0!==p.data){if(a&&p.data===(null==l?void 0:l.data)&&t.select===this.selectFn)i=this.selectResult;else try{this.selectFn=t.select,i=t.select(p.data),!1!==t.structuralSharing&&(i=(0,v.Q$)(null==a?void 0:a.data,i)),this.selectResult=i,this.selectError=null}catch(e){(0,o.j)().error(e),this.selectError=e}}else i=p.data;if(void 0!==t.placeholderData&&void 0===i&&("loading"===x||"idle"===x)){if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==c?void 0:c.placeholderData))r=a.data;else if(r="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==r)try{r=t.select(r),!1!==t.structuralSharing&&(r=(0,v.Q$)(null==a?void 0:a.data,r)),this.selectError=null}catch(e){(0,o.j)().error(e),this.selectError=e}void 0!==r&&(x="success",i=r,w=!0)}return this.selectError&&(g=this.selectError,i=this.selectResult,m=Date.now(),x="error"),{status:x,isLoading:"loading"===x,isSuccess:"success"===x,isError:"error"===x,isIdle:"idle"===x,data:i,dataUpdatedAt:f,error:g,errorUpdatedAt:m,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:b,isRefetching:b&&"loading"!==x,isLoadingError:"error"===x&&0===p.dataUpdatedAt,isPlaceholderData:w,isPreviousData:_,isRefetchError:"error"===x&&0!==p.dataUpdatedAt,isStale:j(e,t),refetch:this.refetch,remove:this.remove}},i.shouldNotifyListeners=function(e,t){if(!t)return!0;var i=this.options,r=i.notifyOnChangeProps,n=i.notifyOnChangePropsExclusions;if(!r&&!n||"tracked"===r&&!this.trackedProps.length)return!0;var s="tracked"===r?this.trackedProps:r;return Object.keys(e).some(function(i){var r=e[i]!==t[i],o=null==s?void 0:s.some(function(e){return e===i}),a=null==n?void 0:n.some(function(e){return e===i});return r&&!a&&(!s||o)})},i.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,v.VS)(this.currentResult,t)){var i={cache:!0};(null==e?void 0:e.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,t)&&(i.listeners=!0),this.notify((0,f.Z)({},i,e))}},i.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},i.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,x.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},i.notify=function(e){var t=this;n.V.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEac
1h(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})})},t}(b.l);function y(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&w(e,t,t.refetchOnMount)}function w(e,t,i){if(!1!==t.enabled){var r="function"==typeof i?i(e):i;return"always"===r||!1!==r&&j(e,t)}return!1}function F(e,t,i,r){return!1!==i.enabled&&(e!==t||!1===r.enabled)&&(!i.suspense||"error"!==e.state.status)&&j(e,i)}function j(e,t){return e.isStaleByTime(t.staleTime)}var S=l.createContext((r=!1,{clearReset:function(){r=!1},reset:function(){r=!0},isReset:function(){return r}}));function k(e,t,i){return function(e,t){var i,r,s,o=l.useRef(!1),a=l.useState(0)[1],c=h(),u=l.useContext(S),d=c.defaultQueryObserverOptions(e);d.optimisticResults=!0,d.onError&&(d.onError=n.V.batchCalls(d.onError)),d.onSuccess&&(d.onSuccess=n.V.batchCalls(d.onSuccess)),d.onSettled&&(d.onSettled=n.V.batchCalls(d.onSettled)),d.suspense&&("number"!=typeof d.staleTime&&(d.staleTime=1e3),0===d.cacheTime&&(d.cacheTime=1)),(d.suspense||d.useErrorBoundary)&&!u.isReset()&&(d.retryOnMount=!1);var p=l.useState(function(){return new t(c,d)})[0],f=p.getOptimisticResult(d);if(l.useEffect(function(){o.current=!0,u.clearReset();var e=p.subscribe(n.V.batchCalls(function(){o.current&&a(function(e){return e+1})}));return p.updateResult(),function(){o.current=!1,e()}},[u,p]),l.useEffect(function(){p.setOptions(d,{listeners:!1})},[d,p]),d.suspense&&f.isLoading)throw p.fetchOptimistic(d).then(function(e){var t=e.data;null==d.onSuccess||d.onSuccess(t),null==d.onSettled||d.onSettled(t,null)}).catch(function(e){u.clearReset(),null==d.onError||d.onError(e),null==d.onSettled||d.onSettled(void 0,e)});if(f.isError&&!u.isReset()&&!f.isFetching&&(i=d.suspense,r=d.useErrorBoundary,s=[f.error,p.getCurrentQuery()],"function"==typeof r?r.apply(void 0,s):"boolean"==typeof r?r:!!i))throw f.error;return"tracked"===d.notifyOnChangeProps&&(f=p.trackResult(f,d)),f}((0,v._v)(e,t,i),_)}},7462:function(e,t,i){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(null,arguments)}i.d(t,{Z:function(){return r}})},5068:function(e,t,i){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}i.d(t,{Z:function(){return n}})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(3079)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.