@swan-admin/swan-web-component 1.0.79 → 1.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Header-BN3RqavS.js +2 -0
- package/dist/Header-BN3RqavS.js.map +1 -0
- package/dist/Header-BWD-iDc_.js +2 -0
- package/dist/Header-BWD-iDc_.js.map +1 -0
- package/dist/Header-C7g9y-3a.js +2 -0
- package/dist/Header-C7g9y-3a.js.map +1 -0
- package/dist/Header-Cq-yREky.js +2 -0
- package/dist/Header-Cq-yREky.js.map +1 -0
- package/dist/Header-CvHiY9J5.js +2 -0
- package/dist/Header-CvHiY9J5.js.map +1 -0
- package/dist/Header-D3TZLqdL.js +2 -0
- package/dist/Header-D3TZLqdL.js.map +1 -0
- package/dist/Header-DGXTNcua.js +2 -0
- package/dist/Header-DGXTNcua.js.map +1 -0
- package/dist/Header-ivyQHWhg.js +2 -0
- package/dist/Header-ivyQHWhg.js.map +1 -0
- package/dist/LoadingScreen-B1830Y9Y.js +2 -0
- package/dist/LoadingScreen-B1830Y9Y.js.map +1 -0
- package/dist/LoadingScreen-BY7P5qKu.js +2 -0
- package/dist/LoadingScreen-BY7P5qKu.js.map +1 -0
- package/dist/LoadingScreen-B_adCE1u.js +2 -0
- package/dist/LoadingScreen-B_adCE1u.js.map +1 -0
- package/dist/LoadingScreen-BwUpdDu-.js +2 -0
- package/dist/LoadingScreen-BwUpdDu-.js.map +1 -0
- package/dist/LoadingScreen-CIG9Mhat.js +2 -0
- package/dist/LoadingScreen-CIG9Mhat.js.map +1 -0
- package/dist/LoadingScreen-CRa8Dvjq.js +2 -0
- package/dist/LoadingScreen-CRa8Dvjq.js.map +1 -0
- package/dist/LoadingScreen-CTMMPzB7.js +2 -0
- package/dist/LoadingScreen-CTMMPzB7.js.map +1 -0
- package/dist/LoadingScreen-Cy9Vy7kX.js +2 -0
- package/dist/LoadingScreen-Cy9Vy7kX.js.map +1 -0
- package/dist/LoadingScreen-D1MAQtVF.js +2 -0
- package/dist/LoadingScreen-D1MAQtVF.js.map +1 -0
- package/dist/LoadingScreen-DEV-HMUN.js +2 -0
- package/dist/LoadingScreen-DEV-HMUN.js.map +1 -0
- package/dist/LoadingScreen-DfPQoZ4M.js +2 -0
- package/dist/LoadingScreen-DfPQoZ4M.js.map +1 -0
- package/dist/LoadingScreen-ygW5w9-T.js +2 -0
- package/dist/LoadingScreen-ygW5w9-T.js.map +1 -0
- package/dist/arrow-right-BehK5wY6.js +27 -0
- package/dist/arrow-right-BehK5wY6.js.map +1 -0
- package/dist/arrow-right-Dp5jFyu1.js +27 -0
- package/dist/arrow-right-Dp5jFyu1.js.map +1 -0
- package/dist/bodyScan.d.ts +2 -2
- package/dist/bodyScan.js +1 -19
- package/dist/bodyScan.js.map +1 -1
- package/dist/bodyScan.mjs +1 -19
- package/dist/bodyScan.mjs.map +1 -1
- package/dist/constants-B8ID6mz4.js +2 -0
- package/dist/constants-B8ID6mz4.js.map +1 -0
- package/dist/constants-CHVqX9xE.js +2 -0
- package/dist/constants-CHVqX9xE.js.map +1 -0
- package/dist/constants-Df5S1CyA.js +2 -0
- package/dist/constants-Df5S1CyA.js.map +1 -0
- package/dist/constants-Diz_EEN6.js +2 -0
- package/dist/constants-Diz_EEN6.js.map +1 -0
- package/dist/enums-Dc2vWGVM.js +32 -0
- package/dist/enums-Dc2vWGVM.js.map +1 -0
- package/dist/enums-DlS0sXbg.js +2 -0
- package/dist/enums-DlS0sXbg.js.map +1 -0
- package/dist/enums-VMt0tBVG.js +32 -0
- package/dist/enums-VMt0tBVG.js.map +1 -0
- package/dist/enums-scH6Mgqf.js +2 -0
- package/dist/enums-scH6Mgqf.js.map +1 -0
- package/dist/faceScan.d.ts +2 -2
- package/dist/faceScan.js +1 -1
- package/dist/faceScan.js.map +1 -1
- package/dist/faceScan.mjs +1 -1
- package/dist/faceScan.mjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -89
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -89
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces-82rEVk5I.d.ts +149 -0
- package/dist/interfaces-BCPQdKAJ.d.ts +149 -0
- package/dist/interfaces-DN0Cmtpk.d.ts +148 -0
- package/dist/pose-detection.esm-BehJiApJ.js +18 -0
- package/dist/pose-detection.esm-BehJiApJ.js.map +1 -0
- package/dist/pose-detection.esm-BqQhOaLq.js +18 -0
- package/dist/pose-detection.esm-BqQhOaLq.js.map +1 -0
- package/dist/pose-detection.esm-DGv0E7iH.js +18 -0
- package/dist/pose-detection.esm-DGv0E7iH.js.map +1 -0
- package/dist/pose-detection.esm-DouwBFG2.js +18 -0
- package/dist/pose-detection.esm-DouwBFG2.js.map +1 -0
- package/package.json +7 -13
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("react/jsx-runtime"),r=require("react-dom");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var i=n(e),o=n(r);function s(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=s(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function a(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=s(e))&&(n&&(n+=" "),n+=t);return n}var l="undefined"!=typeof window?window:void 0,c="undefined"!=typeof globalThis?globalThis:l;"undefined"==typeof self&&(c.self=c),"undefined"==typeof File&&(c.File=function(){});var u=Array.prototype,d=u.forEach,p=u.indexOf,h=null==c?void 0:c.navigator,f=null==c?void 0:c.document,g=null==c?void 0:c.location,v=null==c?void 0:c.fetch,m=null!=c&&c.XMLHttpRequest&&"withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:void 0,_=null==c?void 0:c.AbortController,y=null==h?void 0:h.userAgent,b=null!=l?l:{},w={DEBUG:!1,LIB_VERSION:"1.306.1"};function x(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}function S(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){x(o,n,i,s,a,"next",e)}function a(e){x(o,n,i,s,a,"throw",e)}s(void 0)})}}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(null,arguments)}function k(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var P=["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","hubspot","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"],O=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var r=e.toLowerCase();return P.concat(t).some(e=>{var t=e.toLowerCase();return-1!==r.indexOf(t)})},M=["$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"];function T(e,t){return-1!==e.indexOf(t)}var A=function(e){return e.trim()},C=function(e){return e.replace(/^\$/,"")},$=Array.isArray,F=Object.prototype,I=F.hasOwnProperty,N=F.toString,R=$||function(e){return"[object Array]"===N.call(e)},D=e=>"function"==typeof e,L=e=>e===Object(e)&&!R(e),j=e=>{if(L(e)){for(var t in e)if(I.call(e,t))return!1;return!0}return!1},B=e=>void 0===e,V=e=>"[object String]"==N.call(e),U=e=>V(e)&&0===e.trim().length,z=e=>null===e,q=e=>B(e)||z(e),W=e=>"[object Number]"==N.call(e),H=e=>"[object Boolean]"===N.call(e),G=e=>T(M,e);function Y(e){return null===e||"object"!=typeof e}function K(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function X(e){return!B(Event)&&function(e,t){try{return e instanceof t}catch(e){return!1}}(e,Event)}var J=[!0,"true",1,"1","yes"],Z=e=>T(J,e),Q=[!1,"false",0,"0","no"];function ee(e,t,r,n,i){return t>r&&(n.warn("min cannot be greater than max."),t=r),W(e)?e>r?(n.warn(" cannot be greater than max: "+r+". Using max value instead."),r):e<t?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+r+", fallback: "+i),ee(i||r,t,r,n))}class te{constructor(e){this.t={},this.i=e.i,this.o=ee(e.bucketSize,0,100,e.h),this.m=ee(e.refillRate,0,this.o,e.h),this.S=ee(e.refillInterval,0,864e5,e.h)}$(e,t){var r=t-e.lastAccess,n=Math.floor(r/this.S);if(n>0){var i=n*this.m;e.tokens=Math.min(e.tokens+i,this.o),e.lastAccess=e.lastAccess+n*this.S}}consumeRateLimit(e){var t,r=Date.now(),n=String(e),i=this.t[n];return i?this.$(i,r):(i={tokens:this.o,lastAccess:r},this.t[n]=i),0===i.tokens||(i.tokens--,0===i.tokens&&(null==(t=this.i)||t.call(this,e)),0===i.tokens)}stop(){this.t={}}}var re,ne,ie,oe=e=>e instanceof Error;function se(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return ie&&r.length===ne||(ne=r.length,ie=r.reduce((r,n)=>{re||(re={});var i=re[n];if(i)r[i[0]]=i[1];else for(var o=e(n),s=o.length-1;s>=0;s--){var a=o[s],l=null==a?void 0:a.filename,c=t[n];if(l&&c){r[l]=c,re[n]=[l,c];break}}return r},{})),ie}}class ae{constructor(e,t,r){void 0===r&&(r=[]),this.coercers=e,this.stackParser=t,this.modifiers=r}buildFromUnknown(e,t){void 0===t&&(t={});var r=t&&t.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(r,t,0).apply(e),i=this.buildParsingContext(),o=this.parseStacktrace(n,i);return{$exception_list:this.convertToExceptionList(o,r),$exception_level:"error"}}modifyFrames(e){var t=this;return S(function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&R(r.stacktrace.frames)&&(r.stacktrace.frames=yield t.applyModifiers(r.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 r,n;return null!=e.cause&&(r=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?1:0),t.chunkIdMap)),E({},e,{cause:r,stack:n})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var r of this.coercers)if(r.match(e))return r.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return S(function*(){var r=e;for(var n of t.modifiers)r=yield n(r);return r})()}convertToExceptionList(e,t){var r,n,i,o={type:e.type,value:e.value,mechanism:{type:null!==(r=t.type)&&void 0!==r?r:"generic",handled:null===(n=t.handled)||void 0===n||n,synthetic:null!==(i=e.synthetic)&&void 0!==i&&i}};e.stack&&(o.stacktrace={type:"raw",frames:e.stack});var s=[o];return null!=e.cause&&s.push(...this.convertToExceptionList(e.cause,E({},t,{handled:!0}))),s}buildParsingContext(){return{chunkIdMap:se(this.stackParser)}}buildCoercingContext(e,t,r){void 0===r&&(r=0);var n=(r,n)=>{if(n<=4){var i=this.buildCoercingContext(e,t,n);return this.applyCoercers(r,i)}};return E({},t,{syntheticException:0==r?t.syntheticException:void 0,mechanism:e,apply:e=>n(e,r),next:e=>n(e,r+1)})}}var le="?";function ce(e,t,r,n,i){var o={platform:e,filename:t,function:"<anonymous>"===r?le:r,in_app:!0};return B(n)||(o.lineno=n),B(i)||(o.colno=i),o}var ue=(e,t)=>{var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:le,r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},de=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,pe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,he=/\((\S*)(?::(\d+))(?::(\d+))\)/,fe=(e,t)=>{var r=de.exec(e);if(r){var[,n,i,o]=r;return ce(t,n,le,+i,+o)}var s=pe.exec(e);if(s){if(s[2]&&0===s[2].indexOf("eval")){var a=he.exec(s[2]);a&&(s[2]=a[1],s[3]=a[2],s[4]=a[3])}var[l,c]=ue(s[1]||le,s[2]);return ce(t,c,l,s[3]?+s[3]:void 0,s[4]?+s[4]:void 0)}},ge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ve=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,me=(e,t)=>{var r=ge.exec(e);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var n=ve.exec(r[3]);n&&(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]="")}var i=r[3],o=r[1]||le;return[o,i]=ue(o,i),ce(t,i,o,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},_e=/\(error: (.*)\)/;class ye{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var r=V(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?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 K(e,"DOMException")}isDOMError(e){return K(e,"DOMError")}}class be{match(e){return(e=>e instanceof Error)(e)}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 r=e.message;return r.error&&"string"==typeof r.error.message?String(r.error.message):String(r)}getStack(e){return e.stacktrace||e.stack||void 0}}class we{constructor(){}match(e){return K(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var r;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}var xe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Se{match(e){return"string"==typeof e}coerce(e,t){var r,[n,i]=this.getInfos(e);return{type:null!=n?n:"Error",value:null!=i?i:e,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}getInfos(e){var t="Error",r=e,n=e.match(xe);return n&&(t=n[1],r=n[2]),[t,r]}}var Ee=["fatal","error","warning","log","info","debug"];function ke(e,t){void 0===t&&(t=40);var r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length||i.length<=t?i:i.slice(0,t)+"..."}return""}class Pe{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var r,n=this.getErrorPropertyFromObject(e);return n?t.apply(n):{type:this.getType(e),value:this.getValue(e),stack:null==(r=t.syntheticException)?void 0:r.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return X(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 r=this.getObjectClassName(e);return(r&&"Object"!==r?"'"+r+"'":"Object")+" captured as exception with keys: "+ke(e)}isSeverityLevel(e){return V(e)&&!U(e)&&Ee.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t];if(oe(r))return r}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){return}}}class Oe{match(e){return X(e)}coerce(e,t){var r,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+ke(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class Me{match(e){return Y(e)}coerce(e,t){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class Te{match(e){return K(e,"PromiseRejectionEvent")}coerce(e,t){var r,n=this.getUnhandledRejectionReason(e);return Y(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}:t.apply(n)}getUnhandledRejectionReason(e){if(Y(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}}var Ae=function(e,t){var{debugEnabled:r}=void 0===t?{}:t,n={k:function(t){if(l&&(w.DEBUG||b.POSTHOG_DEBUG||r)&&!B(l.console)&&l.console){for(var n=("__rrweb_original__"in l.console[t]?l.console[t].__rrweb_original__:l.console[t]),i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];n(e,...o)}},info:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("log",...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("warn",...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.k("error",...t)},critical:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];console.error(e,...r)},uninitializedWarning:e=>{n.error("You must initialize PostHog before calling "+e)},createLogger:(t,r)=>Ae(e+" "+t,r)};return n},Ce=Ae("[PostHog.js]"),$e=Ce.createLogger,Fe=$e("[ExternalScriptsLoader]"),Ie=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return Fe.warn(t+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var n=null==f?void 0:f.querySelectorAll("script");if(n)for(var i,o=function(){if(n[s].src===t){var e=n[s];return e.__posthog_loading_callback_fired?{v:r()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,r(void 0,t)}),e.onerror=e=>r(e),{v:void 0})}},s=0;s<n.length;s++)if(i=o())return i.v;var a=()=>{if(!f)return r("document not found");var n=f.createElement("script");if(n.type="text/javascript",n.crossOrigin="anonymous",n.src=t,n.onload=e=>{n.__posthog_loading_callback_fired=!0,r(void 0,e)},n.onerror=e=>r(e),e.config.prepare_external_dependency_script&&(n=e.config.prepare_external_dependency_script(n)),!n)return r("prepare_external_dependency_script returned null");var i,o=f.querySelectorAll("body > script");o.length>0?null==(i=o[0].parentNode)||i.insertBefore(n,o[0]):f.body.appendChild(n)};null!=f&&f.body?a():null==f||f.addEventListener("DOMContentLoaded",a)};b.__PosthogExtensions__=b.__PosthogExtensions__||{},b.__PosthogExtensions__.loadExternalDependency=(e,t,r)=>{var n="/static/"+t+".js?v="+e.version;if("remote-config"===t&&(n="/array/"+e.config.token+"/config.js"),"toolbar"===t){var i=3e5;n=n+"&t="+Math.floor(Date.now()/i)*i}var o=e.requestRouter.endpointFor("assets",n);Ie(e,o,r)},b.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);Ie(e,n,r)};var Ne={};function Re(e,t,r){if(R(e))if(d&&e.forEach===d)e.forEach(t,r);else if("length"in e&&e.length===+e.length)for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n)===Ne)return}function De(e,t,r){if(!q(e)){if(R(e))return Re(e,t,r);if((e=>e instanceof FormData)(e)){for(var n of e.entries())if(t.call(r,n[1],n[0])===Ne)return}else for(var i in e)if(I.call(e,i)&&t.call(r,e[i],i)===Ne)return}}var Le=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Re(r,function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},je=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Re(r,function(t){Re(t,function(t){e.push(t)})}),e};function Be(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}var Ve=function(e){try{return e()}catch(e){return}},Ue=function(e){return function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}catch(e){Ce.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ce.critical(e)}}},ze=function(e){var t={};return De(e,function(e,r){(V(e)&&e.length>0||W(e))&&(t[r]=e)}),t};var qe=["herokuapp.com","vercel.app","netlify.app"];function We(e){var t=null==e?void 0:e.hostname;if(!V(t))return!1;var r=t.split(".").slice(-2).join(".");for(var n of qe)if(r===n)return!1;return!0}function He(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function Ge(e,t,r,n){var{capture:i=!1,passive:o=!0}=null!=n?n:{};null==e||e.addEventListener(t,r,{capture:i,passive:o})}var Ye="$people_distinct_id",Ke="__alias",Xe="__timers",Je="$autocapture_disabled_server_side",Ze="$heatmaps_enabled_server_side",Qe="$exception_capture_enabled_server_side",et="$error_tracking_suppression_rules",tt="$error_tracking_capture_extension_exceptions",rt="$web_vitals_enabled_server_side",nt="$dead_clicks_enabled_server_side",it="$web_vitals_allowed_metrics",ot="$session_recording_remote_config",st="$sesid",at="$session_is_sampled",lt="$enabled_feature_flags",ct="$early_access_features",ut="$feature_flag_details",dt="$stored_person_properties",pt="$stored_group_properties",ht="$surveys",ft="$surveys_activated",gt="$flag_call_reported",vt="$user_state",mt="$client_session_props",_t="$capture_rate_limit",yt="$initial_campaign_params",bt="$initial_referrer_info",wt="$initial_person_info",xt="$epp",St="__POSTHOG_TOOLBAR__",Et="$posthog_cookieless",kt=[Ye,Ke,"__cmpns",Xe,"$session_recording_enabled_server_side",Ze,st,lt,et,vt,ct,ut,pt,dt,ht,gt,mt,_t,yt,bt,xt,wt];function Pt(e){return e instanceof Element&&(e.id===St||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function Ot(e){return!!e&&1===e.nodeType}function Mt(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Tt(e){return!!e&&3===e.nodeType}function At(e){return!!e&&11===e.nodeType}function Ct(e){return e?A(e).split(/\s+/):[]}function $t(e){var t=null==l?void 0:l.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function Ft(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 Ct(t)}function It(e){return q(e)?null:A(e).split(/(\s+)/).filter(e=>Zt(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Nt(e){var t="";return qt(e)&&!Wt(e)&&e.childNodes&&e.childNodes.length&&De(e.childNodes,function(e){var r;Tt(e)&&e.textContent&&(t+=null!==(r=It(e.textContent))&&void 0!==r?r:"")}),A(t)}function Rt(e){return B(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var Dt=["a","button","form","input","select","textarea","label"];function Lt(e,t){if(B(t))return!0;var r,n=function(e){if(t.some(t=>e.matches(t)))return{v:!0}};for(var i of e)if(r=n(i))return r.v;return!1}function jt(e){var t=e.parentNode;return!(!t||!Ot(t))&&t}var Bt=["next","previous","prev",">","<"],Vt=[".ph-no-rageclick",".ph-no-capture"];var Ut=e=>!e||Mt(e,"html")||!Ot(e),zt=(e,t)=>{if(!l||Ut(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,n=[e],i=e;i.parentNode&&!Mt(i,"body");)if(At(i.parentNode))n.push(i.parentNode.host),i=i.parentNode.host;else{var o=jt(i);if(!o)break;if(t||Dt.indexOf(o.tagName.toLowerCase())>-1)r=!0;else{var s=l.getComputedStyle(o);s&&"pointer"===s.getPropertyValue("cursor")&&(r=!0)}n.push(o),i=o}return{parentIsUsefulElement:r,targetElementList:n}};function qt(e){for(var t=e;t.parentNode&&!Mt(t,"body");t=t.parentNode){var r=Ft(t);if(T(r,"ph-sensitive")||T(r,"ph-no-capture"))return!1}if(T(Ft(e),"ph-include"))return!0;var n=e.type||"";if(V(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!V(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function Wt(e){return!!(Mt(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Mt(e,"select")||Mt(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var Ht="(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})",Gt=new RegExp("^(?:"+Ht+")$"),Yt=new RegExp(Ht),Kt="\\d{3}-?\\d{2}-?\\d{4}",Xt=new RegExp("^("+Kt+")$"),Jt=new RegExp("("+Kt+")");function Zt(e,t){if(void 0===t&&(t=!0),q(e))return!1;if(V(e)){if(e=A(e),(t?Gt:Yt).test((e||"").replace(/[- ]/g,"")))return!1;if((t?Xt:Jt).test(e))return!1}return!0}function Qt(e){var t=Nt(e);return Zt(t=(t+" "+er(e)).trim())?t:""}function er(e){var t="";return e&&e.childNodes&&e.childNodes.length&&De(e.childNodes,function(e){var r;if(e&&"span"===(null==(r=e.tagName)?void 0:r.toLowerCase()))try{var n=Nt(e);t=(t+" "+n).trim(),e.childNodes&&e.childNodes.length&&(t=(t+" "+er(e)).trim())}catch(e){Ce.error("[AutoCapture]",e)}}),t}function tr(e){return function(e){var t=e.map(e=>{var t,r,n="";if(e.tag_name&&(n+=e.tag_name),e.attr_class)for(var i of(e.attr_class.sort(),e.attr_class))n+="."+i.replace(/"/g,"");var o=E({},e.text?{text:e.text}:{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(r=e.nth_of_type)&&void 0!==r?r:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),s={};return Be(o).sort((e,t)=>{var[r]=e,[n]=t;return r.localeCompare(n)}).forEach(e=>{var[t,r]=e;return s[rr(t.toString())]=rr(r.toString())}),(n+=":")+Be(s).map(e=>{var[t,r]=e;return t+'="'+r+'"'}).join("")});return t.join(";")}(function(e){return e.map(e=>{var t,r,n={text:null==(t=e.$el_text)?void 0:t.slice(0,400),tag_name:e.tag_name,href:null==(r=e.attr__href)?void 0:r.slice(0,2048),attr_class:nr(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return Be(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,r]=e;return n.attributes[t]=r}),n})}(e))}function rr(e){return e.replace(/"|\\"/g,'\\"')}function nr(e){var t=e.attr__class;return t?R(t)?t:Ct(t):void 0}class ir{constructor(e){this.disabled=!1===e;var t=L(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,r){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(t-n.y)<this.thresholdPx&&r-n.timestamp<this.timeoutMs){if(this.clicks.push({x:e,y:t,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}var or="$copy_autocapture",sr=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),ar=e=>{var t=null==f?void 0:f.createElement("a");return B(t)?null:(t.href=e,t)},lr=function(e,t){for(var r,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;i<n.length;i++){var o=n[i].split("=");if(o[0]===t){r=o;break}}if(!R(r)||r.length<2)return"";var s=r[1];try{s=decodeURIComponent(s)}catch(e){Ce.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},cr=function(e,t,r){if(!e||!t||!t.length)return e;for(var n=e.split("#"),i=n[0]||"",o=n[1],s=i.split("?"),a=s[1],l=s[0],c=(a||"").split("&"),u=[],d=0;d<c.length;d++){var p=c[d].split("=");R(p)&&(t.includes(p[0])?u.push(p[0]+"="+r):u.push(c[d]))}var h=l;return null!=a&&(h+="?"+u.join("&")),null!=o&&(h+="#"+o),h},ur=function(e,t){var r=e.match(new RegExp(t+"=([^&]*)"));return r?r[1]:null},dr=$e("[AutoCapture]");function pr(e,t){return t.length>e?t.slice(0,e)+"...":t}function hr(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!Ot(t));return t}function fr(e,t){for(var r,n,{e:i,maskAllElementAttributes:o,maskAllText:s,elementAttributeIgnoreList:a,elementsChainAsString:c}=t,u=[e],d=e;d.parentNode&&!Mt(d,"body");)At(d.parentNode)?(u.push(d.parentNode.host),d=d.parentNode.host):(u.push(d.parentNode),d=d.parentNode);var p,h=[],f={},g=!1,v=!1;if(De(u,e=>{var t=qt(e);"a"===e.tagName.toLowerCase()&&(g=e.getAttribute("href"),g=t&&g&&Zt(g)&&g),T(Ft(e),"ph-no-capture")&&(v=!0),h.push(function(e,t,r,n){var i=e.tagName.toLowerCase(),o={tag_name:i};Dt.indexOf(i)>-1&&!r&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?o.$el_text=pr(1024,Qt(e)):o.$el_text=pr(1024,Nt(e)));var s=Ft(e);s.length>0&&(o.classes=s.filter(function(e){return""!==e})),De(e.attributes,function(r){var i;if((!Wt(e)||-1!==["name","id","class","aria-label"].indexOf(r.name))&&(null==n||!n.includes(r.name))&&!t&&Zt(r.value)&&(i=r.name,!V(i)||"_ngcontent"!==i.substring(0,10)&&"_nghost"!==i.substring(0,7))){var s=r.value;"class"===r.name&&(s=Ct(s).join(" ")),o["attr__"+r.name]=pr(1024,s)}});for(var a=1,l=1,c=e;c=hr(c);)a++,c.tagName===e.tagName&&l++;return o.nth_child=a,o.nth_of_type=l,o}(e,o,s,a));var r=function(e){if(!qt(e))return{};var t={};return De(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var r=e.name.replace("data-ph-capture-attribute-",""),n=e.value;r&&n&&Zt(n)&&(t[r]=n)}}),t}(e);Le(f,r)}),v)return{props:{},explicitNoCapture:v};if(s||("a"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase()?h[0].$el_text=Qt(e):h[0].$el_text=Nt(e)),g){var m,_;h[0].attr__href=g;var y=null==(m=ar(g))?void 0:m.host,b=null==l||null==(_=l.location)?void 0:_.host;y&&b&&y!==b&&(p=g)}return{props:Le({$event_type:i.type,$ce_version:1},c?{}:{$elements:h},{$elements_chain:tr(h)},null!=(r=h[0])&&r.$el_text?{$el_text:null==(n=h[0])?void 0:n.$el_text}:{},p&&"click"===i.type?{$external_click_url:p}:{},f)}}class gr{constructor(e){this.P=!1,this.T=null,this.R=!1,this.instance=e,this.rageclicks=new ir(e.config.rageclick),this.C=null}get I(){var e,t,r=L(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=null==(e=r.url_allowlist)?void 0:e.map(e=>new RegExp(e)),r.url_ignorelist=null==(t=r.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),r}F(){if(this.isBrowserSupported()){if(l&&f){var e=e=>{e=e||(null==l?void 0:l.event);try{this.M(e)}catch(e){dr.error("Failed to capture event",e)}};if(Ge(f,"submit",e,{capture:!0}),Ge(f,"change",e,{capture:!0}),Ge(f,"click",e,{capture:!0}),this.I.capture_copied_text){var t=e=>{e=e||(null==l?void 0:l.event),this.M(e,or)};Ge(f,"copy",t,{capture:!0}),Ge(f,"cut",t,{capture:!0})}}}else dr.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.F(),this.P=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.R=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Je]:!!e.autocapture_opt_out}),this.T=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.C=e}getElementSelectors(e){var t,r=[];return null==(t=this.C)||t.forEach(t=>{var n=null==f?void 0:f.querySelectorAll(t);null==n||n.forEach(n=>{e===n&&r.push(t)})}),r}get isEnabled(){var e,t,r=null==(e=this.instance.persistence)?void 0:e.props[Je],n=this.T;if(z(n)&&!H(r)&&!this.instance.O())return!1;var i=null!==(t=this.T)&&void 0!==t?t:!!r;return!!this.instance.config.autocapture&&!i}M(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var r,n=Rt(e);Tt(n)&&(n=n.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,e.timeStamp||(new Date).getTime())&&function(e,t){if(!l||Ut(e))return!1;var r,n,i;if(H(t)?(r=!!t&&Vt,n=void 0):(r=null!==(i=null==t?void 0:t.css_selector_ignorelist)&&void 0!==i?i:Vt,n=null==t?void 0:t.content_ignorelist),!1===r)return!1;var{targetElementList:o}=zt(e,!1);return!function(e,t){if(!1===e||B(e))return!1;var r;if(!0===e)r=Bt;else{if(!R(e))return!1;if(e.length>10)return Ce.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;r=e.map(e=>e.toLowerCase())}return t.some(e=>{var{safeText:t,ariaLabel:n}=e;return r.some(e=>t.includes(e)||n.includes(e))})}(n,o.map(e=>{var t;return{safeText:Nt(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!Lt(o,r)}(n,this.instance.config.rageclick)&&this.M(e,"$rageclick");var i=t===or;if(n&&function(e,t,r,n,i){var o,s,a,c;if(void 0===r&&(r=void 0),!l||Ut(e))return!1;if(null!=(o=r)&&o.url_allowlist&&!$t(r.url_allowlist))return!1;if(null!=(s=r)&&s.url_ignorelist&&$t(r.url_ignorelist))return!1;if(null!=(a=r)&&a.dom_event_allowlist){var u=r.dom_event_allowlist;if(u&&!u.some(e=>t.type===e))return!1}var{parentIsUsefulElement:d,targetElementList:p}=zt(e,n);if(!function(e,t){var r=null==t?void 0:t.element_allowlist;if(B(r))return!0;var n,i=function(e){if(r.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var o of e)if(n=i(o))return n.v;return!1}(p,r))return!1;if(!Lt(p,null==(c=r)?void 0:c.css_selector_allowlist))return!1;var h=l.getComputedStyle(e);if(h&&"pointer"===h.getPropertyValue("cursor")&&"click"===t.type)return!0;var f=e.tagName.toLowerCase();switch(f){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return d?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(Dt.indexOf(f)>-1||"true"===e.getAttribute("contenteditable"))}}(n,e,this.I,i,i?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:s}=fr(n,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.I.element_attribute_ignorelist,elementsChainAsString:this.R});if(s)return!1;var a=this.getElementSelectors(n);if(a&&a.length>0&&(o.$element_selectors=a),t===or){var c,u=It(null==l||null==(c=l.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 D(null==f?void 0:f.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return W(e)&&isFinite(e)&&Math.floor(e)===e});var vr="0123456789abcdef";class mr{constructor(e){if(this.bytes=e,16!==e.length)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,t,r,n){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||e<0||t<0||r<0||n<0||e>0xffffffffffff||t>4095||r>1073741823||n>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/Math.pow(2,40),i[1]=e/Math.pow(2,32),i[2]=e/Math.pow(2,24),i[3]=e/Math.pow(2,16),i[4]=e/Math.pow(2,8),i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|r>>>24,i[9]=r>>>16,i[10]=r>>>8,i[11]=r,i[12]=n>>>24,i[13]=n>>>16,i[14]=n>>>8,i[15]=n,new mr(i)}toString(){for(var e="",t=0;t<this.bytes.length;t++)e=e+vr.charAt(this.bytes[t]>>>4)+vr.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new mr(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;t<16;t++){var r=this.bytes[t]-e.bytes[t];if(0!==r)return Math.sign(r)}return 0}}class _r{constructor(){this.A=0,this.D=0,this.j=new wr}generate(){var e=this.generateOrAbort();if(B(e)){this.A=0;var t=this.generateOrAbort();if(B(t))throw new Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.A)this.A=e,this.L();else{if(!(e+1e4>this.A))return;this.D++,this.D>4398046511103&&(this.A++,this.L())}return mr.fromFieldsV7(this.A,Math.trunc(this.D/Math.pow(2,30)),this.D&Math.pow(2,30)-1,this.j.nextUint32())}L(){this.D=1024*this.j.nextUint32()+(1023&this.j.nextUint32())}}var yr,br=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};l&&!B(l.crypto)&&crypto.getRandomValues&&(br=e=>crypto.getRandomValues(e));class wr{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(br(this.N),this.U=0),this.N[this.U++]}}var xr=()=>Sr().toString(),Sr=()=>(yr||(yr=new _r)).generate(),Er="",kr=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;var Pr={H:()=>!!f,B:function(e){Ce.error("cookieStore error: "+e)},q:function(e){if(f){try{for(var t=e+"=",r=f.cookie.split(";").filter(e=>e.length),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(e){}return null}},W:function(e){var t;try{t=JSON.parse(Pr.q(e))||{}}catch(e){}return t},G:function(e,t,r,n,i){if(f)try{var o="",s="",a=function(e,t){if(t){var r=function(e,t){if(void 0===t&&(t=f),Er)return Er;if(!t)return"";if(["localhost","127.0.0.1"].includes(e))return"";for(var r=e.split("."),n=Math.min(r.length,8),i="dmn_chk_"+xr();!Er&&n--;){var o=r.slice(n).join("."),s=i+"=1;domain=."+o+";path=/";t.cookie=s+";max-age=3",t.cookie.includes(i)&&(t.cookie=s+";max-age=0",Er=o)}return Er}(e);if(!r){var n=(e=>{var t=e.match(kr);return t?t[0]:""})(e);n!==r&&Ce.info("Warning: cookie subdomain discovery mismatch",n,r),r=n}return r?"; domain=."+r:""}return""}(f.location.hostname,n);if(r){var l=new Date;l.setTime(l.getTime()+24*r*60*60*1e3),o="; expires="+l.toUTCString()}i&&(s="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+o+"; SameSite=Lax; path=/"+a+s;return c.length>3686.4&&Ce.warn("cookieStore warning: large cookie, len="+c.length),f.cookie=c,c}catch(e){return}},V:function(e,t){if(null!=f&&f.cookie)try{Pr.G(e,"",-1,t)}catch(e){return}}},Or=null,Mr={H:function(){if(!z(Or))return Or;var e=!0;if(B(l))e=!1;else try{var t="__mplssupport__";Mr.G(t,"xyz"),'"xyz"'!==Mr.q(t)&&(e=!1),Mr.V(t)}catch(t){e=!1}return e||Ce.error("localStorage unsupported; falling back to cookie store"),Or=e,e},B:function(e){Ce.error("localStorage error: "+e)},q:function(e){try{return null==l?void 0:l.localStorage.getItem(e)}catch(e){Mr.B(e)}return null},W:function(e){try{return JSON.parse(Mr.q(e))||{}}catch(e){}return null},G:function(e,t){try{null==l||l.localStorage.setItem(e,JSON.stringify(t))}catch(e){Mr.B(e)}},V:function(e){try{null==l||l.localStorage.removeItem(e)}catch(e){Mr.B(e)}}},Tr=["distinct_id",st,at,xt,wt],Ar=E({},Mr,{W:function(e){try{var t={};try{t=Pr.W(e)||{}}catch(e){}var r=Le(t,JSON.parse(Mr.q(e)||"{}"));return Mr.G(e,r),r}catch(e){}return null},G:function(e,t,r,n,i,o){try{Mr.G(e,t,void 0,void 0,o);var s={};Tr.forEach(e=>{t[e]&&(s[e]=t[e])}),Object.keys(s).length&&Pr.G(e,s,r,n,i,o)}catch(e){Mr.B(e)}},V:function(e,t){try{null==l||l.localStorage.removeItem(e),Pr.V(e,t)}catch(e){Mr.B(e)}}}),Cr={},$r={H:function(){return!0},B:function(e){Ce.error("memoryStorage error: "+e)},q:function(e){return Cr[e]||null},W:function(e){return Cr[e]||null},G:function(e,t){Cr[e]=t},V:function(e){delete Cr[e]}},Fr=null,Ir={H:function(){if(!z(Fr))return Fr;if(Fr=!0,B(l))Fr=!1;else try{var e="__support__";Ir.G(e,"xyz"),'"xyz"'!==Ir.q(e)&&(Fr=!1),Ir.V(e)}catch(e){Fr=!1}return Fr},B:function(e){Ce.error("sessionStorage error: ",e)},q:function(e){try{return null==l?void 0:l.sessionStorage.getItem(e)}catch(e){Ir.B(e)}return null},W:function(e){try{return JSON.parse(Ir.q(e))||null}catch(e){}return null},G:function(e,t){try{null==l||l.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){Ir.B(e)}},V:function(e){try{null==l||l.sessionStorage.removeItem(e)}catch(e){Ir.B(e)}}},Nr=function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e}({});class Rr{constructor(e){this._instance=e}get I(){return this._instance.config}get consent(){return this.J()?Nr.DENIED:this.K}isOptedOut(){return"always"===this.I.cookieless_mode||this.consent===Nr.DENIED||this.consent===Nr.PENDING&&(this.I.opt_out_capturing_by_default||"on_reject"===this.I.cookieless_mode)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===Nr.DENIED}optInOut(e){this.Y.G(this.X,e?1:0,this.I.cookie_expiration,this.I.cross_subdomain_cookie,this.I.secure_cookie)}reset(){this.Y.V(this.X,this.I.cross_subdomain_cookie)}get X(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:r}=this._instance.config;return r||(t?t+e:"__ph_opt_in_out_"+e)}get K(){var e=this.Y.q(this.X);return Z(e)?Nr.GRANTED:T(Q,e)?Nr.DENIED:Nr.PENDING}get Y(){if(!this.Z){var e=this.I.opt_out_capturing_persistence_type;this.Z="localStorage"===e?Mr:Pr;var t="localStorage"===e?Pr:Mr;t.q(this.X)&&(this.Z.q(this.X)||this.optInOut(Z(t.q(this.X))),t.V(this.X,this.I.cross_subdomain_cookie))}return this.Z}J(){return!!this.I.respect_dnt&&!!He([null==h?void 0:h.doNotTrack,null==h?void 0:h.msDoNotTrack,b.doNotTrack],e=>Z(e))}}var Dr=$e("[Dead Clicks]"),Lr=()=>!0,jr=e=>{var t,r=!(null==(t=e.instance.persistence)||!t.get_property(nt)),n=e.instance.config.capture_dead_clicks;return H(n)?n:!!L(n)||r};class Br{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(e,t,r){this.instance=e,this.isEnabled=t,this.onCapture=r,this.startIfEnabled()}onRemoteConfig(e){this.instance.persistence&&this.instance.persistence.register({[nt]:null==e?void 0:e.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it(()=>{this.et()})}it(e){var t,r;null!=(t=b.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(r=b.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?Dr.error("failed to load script",t):e()})}et(){var e;if(f){if(!this.tt&&null!=(e=b.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=L(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.tt=b.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.tt.start(f),Dr.info("starting...")}}else Dr.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,Dr.info("stopping..."))}}var Vr=$e("[ExceptionAutocapture]");class Ur{constructor(e){var t,r,n;this.rt=()=>{var e;if(l&&this.isEnabled&&null!=(e=b.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=b.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,r=b.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,n=b.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.I.capture_unhandled_errors&&(this.st=t(this.captureException.bind(this))),!this.nt&&this.I.capture_unhandled_rejections&&(this.nt=r(this.captureException.bind(this))),!this.ot&&this.I.capture_console_errors&&(this.ot=n(this.captureException.bind(this)))}catch(e){Vr.error("failed to start",e),this.lt()}}},this._instance=e,this.ut=!(null==(t=this._instance.persistence)||!t.props[Qe]),this.I=this.ht(),this.dt=new te({refillRate:null!==(r=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)&&void 0!==r?r:1,bucketSize:null!==(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)&&void 0!==n?n:10,refillInterval:1e4,h:Vr}),this.startIfEnabled()}ht(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return L(e)?t=E({},t,e):(B(e)?this.ut:e)&&(t=E({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.I.capture_console_errors||this.I.capture_unhandled_errors||this.I.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(Vr.info("enabled"),this.it(this.rt))}it(e){var t,r;null!=(t=b.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(r=b.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return Vr.error("failed to load script",t);e()})}lt(){var e,t,r;null==(e=this.st)||e.call(this),this.st=void 0,null==(t=this.nt)||t.call(this),this.nt=void 0,null==(r=this.ot)||r.call(this),this.ot=void 0}onRemoteConfig(e){var t=e.autocaptureExceptions;this.ut=!!t||!1,this.I=this.ht(),this._instance.persistence&&this._instance.persistence.register({[Qe]:this.ut}),this.startIfEnabled()}captureException(e){var t,r,n=null!==(t=null==e||null==(r=e.$exception_list)||null==(r=r[0])?void 0:r.type)&&void 0!==t?t:"Exception";this.dt.consumeRateLimit(n)?Vr.info("Skipping exception capture because of client rate limiting.",{exception:n}):this._instance.exceptions.sendExceptionEvent(e)}}function zr(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i=r(n);return D(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}class qr{constructor(e){var t;this._instance=e,this.vt=(null==l||null==(t=l.location)?void 0:t.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(Ce.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ct&&this.ct(),this.ct=void 0,Ce.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(l&&l.history){var r=this;null!=(e=l.history.pushState)&&e.__posthog_wrapped__||zr(l.history,"pushState",e=>function(t,n,i){e.call(this,t,n,i),r.ft("pushState")}),null!=(t=l.history.replaceState)&&t.__posthog_wrapped__||zr(l.history,"replaceState",e=>function(t,n,i){e.call(this,t,n,i),r.ft("replaceState")}),this.gt()}}ft(e){try{var t,r=null==l||null==(t=l.location)?void 0:t.pathname;if(!r)return;r!==this.vt&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:e}),this.vt=r}catch(t){Ce.error("Error capturing "+e+" pageview",t)}}gt(){if(!this.ct){var e=()=>{this.ft("popstate")};Ge(l,"popstate",e),this.ct=()=>{l&&l.removeEventListener("popstate",e)}}}}var Wr=$e("[SegmentIntegration]");var Hr="posthog-js";function Gr(e,t){var{organization:r,projectId:n,prefix:i,severityAllowList:o=["error"],sendExceptionsToPostHog:s=!0}=void 0===t?{}:t;return t=>{var a,l,c,u,d;if("*"!==o&&!o.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var p=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=p,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var h=(null==(a=t.exception)?void 0:a.values)||[],f=h.map(e=>E({},e,{stacktrace:e.stacktrace?E({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>E({},e,{platform:"web:javascript"}))}):void 0})),g={$exception_message:(null==(l=h[0])?void 0:l.value)||t.message,$exception_type:null==(c=h[0])?void 0:c.type,$exception_level:t.level,$exception_list:f,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(u=h[0])?void 0:u.value)||t.message,$sentry_exception_type:null==(d=h[0])?void 0:d.type,$sentry_tags:t.tags};return r&&n&&(g.$sentry_url=(i||"https://sentry.io/organizations/")+r+"/issues/?project="+n+"&query="+t.event_id),s&&e.exceptions.sendExceptionEvent(g),t}}class Yr{constructor(e,t,r,n,i,o){this.name=Hr,this.setupOnce=function(s){s(Gr(e,{organization:t,projectId:r,prefix:n,severityAllowList:i,sendExceptionsToPostHog:null==o||o}))}}}var Kr=null!=l&&l.location?ur(l.location.hash,"__posthog")||ur(location.hash,"state"):null,Xr="_postHogToolbarParams",Jr=$e("[Toolbar]"),Zr=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(Zr||{});class Qr{constructor(e){this.instance=e}_t(e){b.ph_toolbar_state=e}yt(){var e;return null!==(e=b.ph_toolbar_state)&&void 0!==e?e:Zr.UNINITIALIZED}maybeLoadToolbar(e,t,r){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),!l||!f)return!1;e=null!=e?e:l.location,r=null!=r?r:l.history;try{if(!t){try{l.localStorage.setItem("test","test"),l.localStorage.removeItem("test")}catch(e){return!1}t=null==l?void 0:l.localStorage}var n,i=Kr||ur(e.hash,"__posthog")||ur(e.hash,"state"),o=i?Ve(()=>JSON.parse(atob(decodeURIComponent(i))))||Ve(()=>JSON.parse(decodeURIComponent(i))):null;return o&&"ph_authorize"===o.action?((n=o).source="url",n&&Object.keys(n).length>0&&(o.desiredHash?e.hash=o.desiredHash:r?r.replaceState(r.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(Xr)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch(e){return!1}}bt(e){var t=b.ph_load_toolbar||b.ph_load_editor;!q(t)&&D(t)?t(e,this.instance):Jr.warn("No toolbar load function found")}loadToolbar(e){var t=!(null==f||!f.getElementById(St));if(!l||t)return!1;var r="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,n=E({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(l.localStorage.setItem(Xr,JSON.stringify(E({},n,{source:void 0}))),this.yt()===Zr.LOADED)this.bt(n);else if(this.yt()===Zr.UNINITIALIZED){var i;this._t(Zr.LOADING),null==(i=b.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return Jr.error("[Toolbar] Failed to load",e),void this._t(Zr.UNINITIALIZED);this._t(Zr.LOADED),this.bt(n)}),Ge(l,"turbolinks:load",()=>{this._t(Zr.UNINITIALIZED),this.loadToolbar(n)})}return!0}wt(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,r){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),this.maybeLoadToolbar(e,t,r)}}var en=$e("[TracingHeaders]");class tn{constructor(e){this.xt=void 0,this.Et=void 0,this.rt=()=>{var e,t;B(this.xt)&&(null==(e=b.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),B(this.Et)&&(null==(t=b.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)||t._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}it(e){var t,r;null!=(t=b.__PosthogExtensions__)&&t.tracingHeadersPatchFns&&e(),null==(r=b.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return en.error("failed to load script",t);e()})}startIfEnabledOrStop(){var e,t;this._instance.config.__add_tracing_headers?this.it(this.rt):(null==(e=this.xt)||e.call(this),null==(t=this.Et)||t.call(this),this.xt=void 0,this.Et=void 0)}}var rn="Mobile",nn="iOS",on="Android",sn="Tablet",an=on+" "+sn,ln="iPad",cn="Apple",un=cn+" Watch",dn="Safari",pn="BlackBerry",hn="Samsung",fn=hn+"Browser",gn=hn+" Internet",vn="Chrome",mn=vn+" OS",_n=vn+" "+nn,yn="Internet Explorer",bn=yn+" "+rn,wn="Opera",xn=wn+" Mini",Sn="Edge",En="Microsoft "+Sn,kn="Firefox",Pn=kn+" "+nn,On="Nintendo",Mn="PlayStation",Tn="Xbox",An=on+" "+rn,Cn=rn+" "+dn,$n="Windows",Fn=$n+" Phone",In="Nokia",Nn="Ouya",Rn="Generic",Dn=Rn+" "+rn.toLowerCase(),Ln=Rn+" "+sn.toLowerCase(),jn="Konqueror",Bn="(\\d+(\\.\\d+)?)",Vn=new RegExp("Version/"+Bn),Un=new RegExp(Tn,"i"),zn=new RegExp(Mn+" \\w+","i"),qn=new RegExp(On+" \\w+","i"),Wn=new RegExp(pn+"|PlayBook|BB10","i"),Hn={"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"},Gn=function(e,t){return t=t||"",T(e," OPR/")&&T(e,"Mini")?xn:T(e," OPR/")?wn:Wn.test(e)?pn:T(e,"IE"+rn)||T(e,"WPDesktop")?bn:T(e,fn)?gn:T(e,Sn)||T(e,"Edg/")?En:T(e,"FBIOS")?"Facebook "+rn:T(e,"UCWEB")||T(e,"UCBrowser")?"UC Browser":T(e,"CriOS")?_n:T(e,"CrMo")||T(e,vn)?vn:T(e,on)&&T(e,dn)?An:T(e,"FxiOS")?Pn:T(e.toLowerCase(),jn.toLowerCase())?jn:((e,t)=>t&&T(t,cn)||function(e){return T(e,dn)&&!T(e,vn)&&!T(e,on)}(e))(e,t)?T(e,rn)?Cn:dn:T(e,kn)?kn:T(e,"MSIE")||T(e,"Trident/")?yn:T(e,"Gecko")?kn:""},Yn={[bn]:[new RegExp("rv:"+Bn)],[En]:[new RegExp(Sn+"?\\/"+Bn)],[vn]:[new RegExp("("+vn+"|CrMo)\\/"+Bn)],[_n]:[new RegExp("CriOS\\/"+Bn)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Bn)],[dn]:[Vn],[Cn]:[Vn],[wn]:[new RegExp("(Opera|OPR)\\/"+Bn)],[kn]:[new RegExp(kn+"\\/"+Bn)],[Pn]:[new RegExp("FxiOS\\/"+Bn)],[jn]:[new RegExp("Konqueror[:/]?"+Bn,"i")],[pn]:[new RegExp(pn+" "+Bn),Vn],[An]:[new RegExp("android\\s"+Bn,"i")],[gn]:[new RegExp(fn+"\\/"+Bn)],[yn]:[new RegExp("(rv:|MSIE )"+Bn)],Mozilla:[new RegExp("rv:"+Bn)]},Kn=function(e,t){var r=Gn(e,t),n=Yn[r];if(B(n))return null;for(var i=0;i<n.length;i++){var o=n[i],s=e.match(o);if(s)return parseFloat(s[s.length-2])}return null},Xn=[[new RegExp(Tn+"; "+Tn+" (.*?)[);]","i"),e=>[Tn,e&&e[1]||""]],[new RegExp(On,"i"),[On,""]],[new RegExp(Mn,"i"),[Mn,""]],[Wn,[pn,""]],[new RegExp($n,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Fn,""];if(new RegExp(rn).test(t)&&!/IEMobile\b/.test(t))return[$n+" "+rn,""];var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=r[1],i=Hn[n]||"";return/arm/i.test(t)&&(i="RT"),[$n,i]}return[$n,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[nn,t.join(".")]}return[nn,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=B(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+on+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+on+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[on,t.join(".")]}return[on,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var r=[e[1],e[2],e[3]||"0"];t[1]=r.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[mn,""]],[/Linux|debian/i,["Linux",""]]],Jn=function(e){return qn.test(e)?On:zn.test(e)?Mn:Un.test(e)?Tn:new RegExp(Nn,"i").test(e)?Nn:new RegExp("("+Fn+"|WPDesktop)","i").test(e)?Fn:/iPad/.test(e)?ln:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?un:Wn.test(e)?pn:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(In,"i").test(e)?In:/(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(rn).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)?on:an:on:new RegExp("(pda|"+rn+")","i").test(e)?Dn:new RegExp(sn,"i").test(e)&&!new RegExp(sn+" pc","i").test(e)?Ln:""},Zn="https?://(.*)",Qn=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],ei=je(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],Qn),ti="<masked>",ri=["li_fat_id"];function ni(e,t,r){if(!f)return{};var n,i=t?je([],Qn,r||[]):[],o=ii(cr(f.URL,i,ti),e),s=(n={},De(ri,function(e){var t=Pr.q(e);n[e]=t||null}),n);return Le(s,o)}function ii(e,t){var r=ei.concat(t||[]),n={};return De(r,function(t){var r=lr(e,t);n[t]=r||null}),n}function oi(e){var t=function(e){return e?0===e.search(Zn+"google.([^/?]*)")?"google":0===e.search(Zn+"bing.com")?"bing":0===e.search(Zn+"yahoo.com")?"yahoo":0===e.search(Zn+"duckduckgo.com")?"duckduckgo":null:null}(e),r="yahoo"!=t?"q":"p",n={};if(!z(t)){n.$search_engine=t;var i=f?lr(f.referrer,r):"";i.length&&(n.ph_keyword=i)}return n}function si(){return navigator.language||navigator.userLanguage}function ai(){return(null==f?void 0:f.referrer)||"$direct"}function li(e,t){var r=e?je([],Qn,t||[]):[],n=null==g?void 0:g.href.substring(0,1e3);return{r:ai().substring(0,1e3),u:n?cr(n,r,ti):void 0}}function ci(e){var t,{r:r,u:n}=e,i={$referrer:r,$referring_domain:null==r?void 0:"$direct"==r?"$direct":null==(t=ar(r))?void 0:t.host};if(n){i.$current_url=n;var o=ar(n);i.$host=null==o?void 0:o.host,i.$pathname=null==o?void 0:o.pathname;var s=ii(n);Le(i,s)}if(r){var a=oi(r);Le(i,a)}return i}function ui(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}function di(){try{return(new Date).getTimezoneOffset()}catch(e){return}}function pi(e,t){if(!y)return{};var r,n,i,o=e?je([],Qn,t||[]):[],[s,a]=function(e){for(var t=0;t<Xn.length;t++){var[r,n]=Xn[t],i=r.exec(e),o=i&&(D(n)?n(i,e):n);if(o)return o}return["",""]}(y);return Le(ze({$os:s,$os_version:a,$browser:Gn(y,navigator.vendor),$device:Jn(y),$device_type:(n=y,i=Jn(n),i===ln||i===an||"Kobo"===i||"Kindle Fire"===i||i===Ln?sn:i===On||i===Tn||i===Mn||i===Nn?"Console":i===un?"Wearable":i?rn:"Desktop"),$timezone:ui(),$timezone_offset:di()}),{$current_url:cr(null==g?void 0:g.href,o,ti),$host:null==g?void 0:g.host,$pathname:null==g?void 0:g.pathname,$raw_user_agent:y.length>1e3?y.substring(0,997)+"...":y,$browser_version:Kn(y,navigator.vendor),$browser_language:si(),$browser_language_prefix:(r=si(),"string"==typeof r?r.split("-")[0]:void 0),$screen_height:null==l?void 0:l.screen.height,$screen_width:null==l?void 0:l.screen.width,$viewport_height:null==l?void 0:l.innerHeight,$viewport_width:null==l?void 0:l.innerWidth,$lib:"web",$lib_version:w.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var hi=$e("[Web Vitals]"),fi=9e5;class gi{constructor(e){var t;this.St=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.$t=()=>{clearTimeout(this.kt),0!==this.N.metrics.length&&(this._instance.capture("$web_vitals",this.N.metrics.reduce((e,t)=>E({},e,{["$web_vitals_"+t.name+"_event"]:E({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Pt=e=>{var t,r=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0);if(B(r))hi.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var n=this.Tt();B(n)||(q(null==e?void 0:e.name)||q(null==e?void 0:e.value)?hi.error("Invalid metric received",e):this.Rt&&e.value>=this.Rt?hi.error("Ignoring metric with value >= "+this.Rt,e):(this.N.url!==n&&(this.$t(),this.kt=setTimeout(this.$t,this.flushToCaptureTimeoutMs)),B(this.N.url)&&(this.N.url=n),this.N.firstMetricTimestamp=B(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.N.metrics.push(E({},e,{$current_url:n,$session_id:r.sessionId,$window_id:r.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.$t()))}},this.rt=()=>{var e,t,r,n,i=b.__PosthogExtensions__;B(i)||B(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:r,onINP:n}=i.postHogWebVitalsCallbacks),e&&t&&r&&n?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.Pt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.Pt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.Pt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&n(this.Pt.bind(this)),this.P=!0):hi.error("web vitals callbacks not loaded - not starting")},this._instance=e,this.St=!(null==(t=this._instance.persistence)||!t.props[rt]),this.startIfEnabled()}get allowedMetrics(){var e,t,r=L(this._instance.config.capture_performance)?null==(e=this._instance.config.capture_performance)?void 0:e.web_vitals_allowed_metrics:void 0;return B(r)?(null==(t=this._instance.persistence)?void 0:t.props[it])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(L(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Rt(){var e=L(this._instance.config.capture_performance)&&W(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:fi;return 0<e&&e<=6e4?fi:e}get isEnabled(){var e=null==g?void 0:g.protocol;if("http:"!==e&&"https:"!==e)return hi.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=L(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:H(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return H(t)?t:this.St}startIfEnabled(){this.isEnabled&&!this.P&&(hi.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(e){var t=L(e.capturePerformance)&&!!e.capturePerformance.web_vitals,r=L(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[rt]:t}),this._instance.persistence.register({[it]:r})),this.St=t,this.startIfEnabled()}it(e){var t,r;null!=(t=b.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks&&e(),null==(r=b.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"web-vitals",t=>{t?hi.error("failed to load script",t):e()})}Tt(){var e=l?l.location.href:void 0;if(e){var t=this._instance.config.mask_personal_data_properties,r=this._instance.config.custom_personal_data_properties,n=t?je([],Qn,r||[]):[];return cr(e,n,ti)}hi.error("Could not determine current URL")}}var vi=$e("[Heatmaps]");function mi(e){return L(e)&&"clientX"in e&&"clientY"in e&&W(e.clientX)&&W(e.clientY)}class _i{constructor(e){var t;this.St=!1,this.P=!1,this.Ct=null,this.instance=e,this.St=!(null==(t=this.instance.persistence)||!t.props[Ze]),this.rageclicks=new ir(e.config.rageclick)}get flushIntervalMilliseconds(){var e=5e3;return L(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return B(this.instance.config.capture_heatmaps)?B(this.instance.config.enable_heatmaps)?this.St:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.P)return;vi.info("starting..."),this.It(),this.Ft()}else{var e;clearInterval(null!==(e=this.Ct)&&void 0!==e?e:void 0),this.Mt(),this.getAndClearBuffer()}}onRemoteConfig(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Ze]:t}),this.St=t,this.startIfEnabled()}getAndClearBuffer(){var e=this.N;return this.N=void 0,e}Ot(e){this.At(e.originalEvent,"deadclick")}Ft(){this.Ct&&clearInterval(this.Ct),this.Ct="visible"===(null==f?void 0:f.visibilityState)?setInterval(this.Dt.bind(this),this.flushIntervalMilliseconds):null}It(){l&&f&&(this.jt=this.Dt.bind(this),Ge(l,"beforeunload",this.jt),this.Lt=e=>this.At(e||(null==l?void 0:l.event)),Ge(f,"click",this.Lt,{capture:!0}),this.Nt=e=>this.Ut(e||(null==l?void 0:l.event)),Ge(f,"mousemove",this.Nt,{capture:!0}),this.zt=new Br(this.instance,Lr,this.Ot.bind(this)),this.zt.startIfEnabled(),this.Ht=this.Ft.bind(this),Ge(f,"visibilitychange",this.Ht),this.P=!0)}Mt(){var e;l&&f&&(this.jt&&l.removeEventListener("beforeunload",this.jt),this.Lt&&f.removeEventListener("click",this.Lt,{capture:!0}),this.Nt&&f.removeEventListener("mousemove",this.Nt,{capture:!0}),this.Ht&&f.removeEventListener("visibilitychange",this.Ht),clearTimeout(this.Bt),null==(e=this.zt)||e.stop(),this.P=!1)}qt(e,t){var r=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),o=function(e,t,r){for(var n=e;n&&Ot(n)&&!Mt(n,"body");){if(n===r)return!1;if(T(t,null==l?void 0:l.getComputedStyle(n).position))return!0;n=jt(n)}return!1}(Rt(e),["fixed","sticky"],i);return{x:e.clientX+(o?0:n),y:e.clientY+(o?0:r),target_fixed:o,type:t}}At(e,t){var r;if(void 0===t&&(t="click"),!Pt(e.target)&&mi(e)){var n=this.qt(e,t);null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.Wt(E({},n,{type:"rageclick"})),this.Wt(n)}}Ut(e){!Pt(e.target)&&mi(e)&&(clearTimeout(this.Bt),this.Bt=setTimeout(()=>{this.Wt(this.qt(e,"mousemove"))},500))}Wt(e){if(l){var t=l.location.href,r=this.instance.config.mask_personal_data_properties,n=this.instance.config.custom_personal_data_properties,i=r?je([],Qn,n||[]):[],o=cr(t,i,ti);this.N=this.N||{},this.N[o]||(this.N[o]=[]),this.N[o].push(e)}}Dt(){this.N&&!j(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class yi{constructor(e){this._instance=e}doPageView(e,t){var r,n=this.Gt(e,t);return this.Vt={pathname:null!==(r=null==l?void 0:l.location.pathname)&&void 0!==r?r:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var t;return this.Gt(e,null==(t=this.Vt)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.Vt)?void 0:e.pageViewId}}Gt(e,t){var r=this.Vt;if(!r)return{$pageview_id:t};var n={$pageview_id:t,$prev_pageview_id:r.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:s,maxScrollY:a,maxContentHeight:l,lastContentY:c,maxContentY:u}=i;if(!(B(o)||B(s)||B(a)||B(l)||B(c)||B(u))){o=Math.ceil(o),s=Math.ceil(s),a=Math.ceil(a),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u);var d=o<=1?1:ee(s/o,0,1,Ce),p=o<=1?1:ee(a/o,0,1,Ce),h=l<=1?1:ee(c/l,0,1,Ce),f=l<=1?1:ee(u/l,0,1,Ce);n=Le(n,{$prev_pageview_last_scroll:s,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:a,$prev_pageview_max_scroll_percentage:p,$prev_pageview_last_content:c,$prev_pageview_last_content_percentage:h,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:f})}}return r.pathname&&(n.$prev_pageview_pathname=r.pathname),r.timestamp&&(n.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),n}}var bi=Uint8Array,wi=Uint16Array,xi=Uint32Array,Si=new bi([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]),Ei=new bi([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]),ki=new bi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Pi=function(e,t){for(var r=new wi(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new xi(r[30]);for(n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return[r,i]},Oi=Pi(Si,2),Mi=Oi[0],Ti=Oi[1];Mi[28]=258,Ti[258]=28;for(var Ai=Pi(Ei,0)[1],Ci=new wi(32768),$i=0;$i<32768;++$i){var Fi=(43690&$i)>>>1|(21845&$i)<<1;Fi=(61680&(Fi=(52428&Fi)>>>2|(13107&Fi)<<2))>>>4|(3855&Fi)<<4,Ci[$i]=((65280&Fi)>>>8|(255&Fi)<<8)>>>1}var Ii=function(e,t,r){for(var n=e.length,i=0,o=new wi(t);i<n;++i)++o[e[i]-1];var s,a=new wi(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;for(s=new wi(n),i=0;i<n;++i)s[i]=Ci[a[e[i]-1]++]>>>15-e[i];return s},Ni=new bi(288);for($i=0;$i<144;++$i)Ni[$i]=8;for($i=144;$i<256;++$i)Ni[$i]=9;for($i=256;$i<280;++$i)Ni[$i]=7;for($i=280;$i<288;++$i)Ni[$i]=8;var Ri=new bi(32);for($i=0;$i<32;++$i)Ri[$i]=5;var Di=Ii(Ni,9),Li=Ii(Ri,5),ji=function(e){return(e/8|0)+(7&e&&1)},Bi=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof wi?wi:e instanceof xi?xi:bi)(r-t);return n.set(e.subarray(t,r)),n},Vi=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8},Ui=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},zi=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,o=r.slice();if(!i)return[new bi(0),0];if(1==i){var s=new bi(r[0].s+1);return s[r[0].s]=1,[s,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],c=0,u=1,d=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};u!=i-1;)a=r[r[c].f<r[d].f?c++:d++],l=r[c!=u&&r[c].f<r[d].f?c++:d++],r[u++]={s:-1,f:a.f+l.f,l:a,r:l};var p=o[0].s;for(n=1;n<i;++n)o[n].s>p&&(p=o[n].s);var h=new wi(p+1),f=qi(r[u-1],h,0);if(f>t){n=0;var g=0,v=f-t,m=1<<v;for(o.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});n<i;++n){var _=o[n].s;if(!(h[_]>t))break;g+=m-(1<<f-h[_]),h[_]=t}for(g>>>=v;g>0;){var y=o[n].s;h[y]<t?g-=1<<t-h[y]++-1:++n}for(;n>=0&&g;--n){var b=o[n].s;h[b]==t&&(--h[b],++g)}f=t}return[new bi(h),f]},qi=function(e,t,r){return-1==e.s?Math.max(qi(e.l,t,r+1),qi(e.r,t,r+1)):t[e.s]=r},Wi=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new wi(++t),n=0,i=e[0],o=1,s=function(e){r[n++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[r.subarray(0,n),t]},Hi=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},Gi=function(e,t,r){var n=r.length,i=ji(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<n;++o)e[i+o+4]=r[o];return 8*(i+4+n)},Yi=function(e,t,r,n,i,o,s,a,l,c,u){Vi(t,u++,r),++i[256];for(var d=zi(i,15),p=d[0],h=d[1],f=zi(o,15),g=f[0],v=f[1],m=Wi(p),_=m[0],y=m[1],b=Wi(g),w=b[0],x=b[1],S=new wi(19),E=0;E<_.length;++E)S[31&_[E]]++;for(E=0;E<w.length;++E)S[31&w[E]]++;for(var k=zi(S,7),P=k[0],O=k[1],M=19;M>4&&!P[ki[M-1]];--M);var T,A,C,$,F=c+5<<3,I=Hi(i,Ni)+Hi(o,Ri)+s,N=Hi(i,p)+Hi(o,g)+s+14+3*M+Hi(S,P)+(2*S[16]+3*S[17]+7*S[18]);if(F<=I&&F<=N)return Gi(t,u,e.subarray(l,l+c));if(Vi(t,u,1+(N<I)),u+=2,N<I){T=Ii(p,h),A=p,C=Ii(g,v),$=g;var R=Ii(P,O);for(Vi(t,u,y-257),Vi(t,u+5,x-1),Vi(t,u+10,M-4),u+=14,E=0;E<M;++E)Vi(t,u+3*E,P[ki[E]]);u+=3*M;for(var D=[_,w],L=0;L<2;++L){var j=D[L];for(E=0;E<j.length;++E){var B=31&j[E];Vi(t,u,R[B]),u+=P[B],B>15&&(Vi(t,u,j[E]>>>5&127),u+=j[E]>>>12)}}}else T=Di,A=Ni,C=Li,$=Ri;for(E=0;E<a;++E)if(n[E]>255){B=n[E]>>>18&31,Ui(t,u,T[B+257]),u+=A[B+257],B>7&&(Vi(t,u,n[E]>>>23&31),u+=Si[B]);var V=31&n[E];Ui(t,u,C[V]),u+=$[V],V>3&&(Ui(t,u,n[E]>>>5&8191),u+=Ei[V])}else Ui(t,u,T[n[E]]),u+=A[n[E]];return Ui(t,u,T[256]),u+A[256]},Ki=new xi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Xi=function(){for(var e=new xi(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),Ji=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function Zi(e,t){void 0===t&&(t={});var r=function(){var e=4294967295;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=Xi[255&r^t[n]]^r>>>8;e=r},d:function(){return 4294967295^e}}}(),n=e.length;r.p(e);var i,o=function(e,t,r,n){return function(e,t,r,n,i){var o=e.length,s=new bi(n+o+5*(1+Math.floor(o/7e3))+i),a=s.subarray(n,s.length-i),l=0;if(!t||o<8)for(var c=0;c<=o;c+=65535){var u=c+65535;u<o?l=Gi(a,l,e.subarray(c,u)):(a[c]=!0,l=Gi(a,l,e.subarray(c,o)))}else{for(var d=Ki[t-1],p=d>>>13,h=8191&d,f=(1<<r)-1,g=new wi(32768),v=new wi(f+1),m=Math.ceil(r/3),_=2*m,y=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<_)&f},b=new xi(25e3),w=new wi(288),x=new wi(32),S=0,E=0,k=(c=0,0),P=0,O=0;c<o;++c){var M=y(c),T=32767&c,A=v[M];if(g[T]=A,v[M]=T,P<=c){var C=o-c;if((S>7e3||k>24576)&&C>423){l=Yi(e,a,0,b,w,x,E,k,O,c-O,l),k=S=E=0,O=c;for(var $=0;$<286;++$)w[$]=0;for($=0;$<30;++$)x[$]=0}var F=2,I=0,N=h,R=T-A&32767;if(C>2&&M==y(c-R))for(var D=Math.min(p,C)-1,L=Math.min(32767,c),j=Math.min(258,C);R<=L&&--N&&T!=A;){if(e[c+F]==e[c+F-R]){for(var B=0;B<j&&e[c+B]==e[c+B-R];++B);if(B>F){if(F=B,I=R,B>D)break;var V=Math.min(R,B-2),U=0;for($=0;$<V;++$){var z=c-R+$+32768&32767,q=z-g[z]+32768&32767;q>U&&(U=q,A=z)}}}R+=(T=A)-(A=g[T])+32768&32767}if(I){b[k++]=268435456|Ti[F]<<18|Ai[I];var W=31&Ti[F],H=31&Ai[I];E+=Si[W]+Ei[H],++w[257+W],++x[H],P=c+F,++S}else b[k++]=e[c],++w[e[c]]}}l=Yi(e,a,!0,b,w,x,E,k,O,c-O,l)}return Bi(s,0,n+ji(l)+i)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r,n)}(e,t,10+((i=t).filename&&i.filename.length+1||0),8),s=o.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Ji(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}}(o,t),Ji(o,s-8,r.d()),Ji(o,s-4,n),o}var Qi=!!m||!!v,eo="text/plain",to=function(e,t,r){var n;void 0===r&&(r=!0);var[i,o]=e.split("?"),s=E({},t),a=null!==(n=null==o?void 0:o.split("&").map(e=>{var t,[n,i]=e.split("="),o=r&&null!==(t=s[n])&&void 0!==t?t:i;return delete s[n],n+"="+o}))&&void 0!==n?n:[],l=function(e,t){var r,n;void 0===t&&(t="&");var i=[];return De(e,function(e,t){B(e)||B(t)||"undefined"===t||(r=encodeURIComponent((e=>e instanceof File)(e)?e.name:e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r)}),i.join(t)}(s);return l&&a.push(l),i+"?"+a.join("&")},ro=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),no=e=>{var{data:t,compression:r}=e;if(t){if(r===sr.GZipJS){var n=Zi(function(e){var t=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new bi(e.length+(e.length>>>1)),n=0,i=function(e){r[n++]=e},o=0;o<t;++o){if(n+5>r.length){var s=new bi(n+8+(t-o<<1));s.set(r),r=s}var a=e.charCodeAt(o);a<128?i(a):a<2048?(i(192|a>>>6),i(128|63&a)):a>55295&&a<57344?(i(240|(a=65536+(1047552&a)|1023&e.charCodeAt(++o))>>>18),i(128|a>>>12&63),i(128|a>>>6&63),i(128|63&a)):(i(224|a>>>12),i(128|a>>>6&63),i(128|63&a))}return Bi(r,0,n)}(ro(t)),{mtime:0}),i=new Blob([n],{type:eo});return{contentType:eo,body:i,estimatedSize:i.size}}if(r===sr.Base64){var o=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,c="",u=[];if(!e)return e;e=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),z(a)||(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o}(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,u[l++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c}(ro(t)),s=(e=>"data="+encodeURIComponent("string"==typeof e?e:ro(e)))(o);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var a=ro(t);return{contentType:"application/json",body:a,estimatedSize:new Blob([a]).size}}},io=[];v&&io.push({transport:"fetch",method:e=>{var t,r,{contentType:n,body:i,estimatedSize:o}=null!==(t=no(e))&&void 0!==t?t:{},s=new Headers;De(e.headers,function(e,t){s.append(t,e)}),n&&s.append("Content-Type",n);var a=e.url,l=null;if(_){var c=new _;l={signal:c.signal,timeout:setTimeout(()=>c.abort(),e.timeout)}}v(a,E({method:(null==e?void 0:e.method)||"GET",headers:s,keepalive:"POST"===e.method&&(o||0)<52428.8,body:i,signal:null==(r=l)?void 0:r.signal},e.fetchOptions)).then(t=>t.text().then(r=>{var n={statusCode:t.status,text:r};if(200===t.status)try{n.json=JSON.parse(r)}catch(e){Ce.error(e)}null==e.callback||e.callback(n)})).catch(t=>{Ce.error(t),null==e.callback||e.callback({statusCode:0,text:t})}).finally(()=>l?clearTimeout(l.timeout):null)}}),m&&io.push({transport:"XHR",method:e=>{var t,r=new m;r.open(e.method||"GET",e.url,!0);var{contentType:n,body:i}=null!==(t=no(e))&&void 0!==t?t:{};De(e.headers,function(e,t){r.setRequestHeader(t,e)}),n&&r.setRequestHeader("Content-Type",n),e.timeout&&(r.timeout=e.timeout),e.disableXHRCredentials||(r.withCredentials=!0),r.onreadystatechange=()=>{if(4===r.readyState){var t={statusCode:r.status,text:r.responseText};if(200===r.status)try{t.json=JSON.parse(r.responseText)}catch(e){}null==e.callback||e.callback(t)}},r.send(i)}}),null!=h&&h.sendBeacon&&io.push({transport:"sendBeacon",method:e=>{var t=to(e.url,{beacon:"1"});try{var r,{contentType:n,body:i}=null!==(r=no(e))&&void 0!==r?r:{},o="string"==typeof i?new Blob([i],{type:n}):i;h.sendBeacon(t,o)}catch(e){}}});var oo=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 so(e,t,r){return ro({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var ao={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=>oo(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!oo(t,e))),icontains:(e,t)=>t.map(lo).some(t=>e.map(lo).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(lo).every(t=>e.map(lo).every(e=>!t.includes(e)))},lo=e=>e.toLowerCase();function co(e,t){return!e||Object.entries(e).every(e=>{var[r,n]=e,i=null==t?void 0:t[r];if(B(i)||z(i))return!1;var o=[String(i)],s=ao[n.operator];return!!s&&s(n.values,o)})}var uo=$e("[Error tracking]");class po{constructor(e){var t,r;this.Jt=[],this.Kt=new ae([new ye,new Te,new we,new be,new Oe,new Pe,new Se,new Me],function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(t,n){void 0===n&&(n=0);for(var i=[],o=t.split("\n"),s=n;s<o.length;s++){var a=o[s];if(!(a.length>1024)){var l=_e.test(a)?a.replace(_e,"$1"):a;if(!l.match(/\S*Error: /)){for(var c of r){var u=c(l,e);if(u){i.push(u);break}}if(i.length>=50)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return t.reverse(),t.slice(0,50).map(e=>{return E({},e,{filename:e.filename||(r=t,r[r.length-1]||{}).filename,function:e.function||le});var r})}(i)}}("web:javascript",fe,me)),this._instance=e,this.Jt=null!==(t=null==(r=this._instance.persistence)?void 0:r.get_property(et))&&void 0!==t?t:[]}onRemoteConfig(e){var t,r,n,i=null!==(t=null==(r=e.errorTracking)?void 0:r.suppressionRules)&&void 0!==t?t:[],o=null==(n=e.errorTracking)?void 0:n.captureExtensionExceptions;this.Jt=i,this._instance.persistence&&this._instance.persistence.register({[et]:this.Jt,[tt]:o})}get Yt(){var e,t=!!this._instance.get_property(tt),r=this._instance.config.error_tracking.captureExtensionExceptions;return null!==(e=null!=r?r:t)&&void 0!==e&&e}buildProperties(e,t){return this.Kt.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}sendExceptionEvent(e){var t=e.$exception_list;if(this.Xt(t)){if(this.Qt(t))return void uo.info("Skipping exception capture because a suppression rule matched");if(!this.Yt&&this.Zt(t))return void uo.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ti(t))return void uo.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent"})}Qt(e){if(0===e.length)return!1;var t=e.reduce((e,t)=>{var{type:r,value:n}=t;return V(r)&&r.length>0&&e.$exception_types.push(r),V(n)&&n.length>0&&e.$exception_values.push(n),e},{$exception_types:[],$exception_values:[]});return this.Jt.some(e=>{var r=e.values.map(e=>{var r,n=ao[e.operator],i=R(e.value)?e.value:[e.value],o=null!==(r=t[e.key])&&void 0!==r?r:[];return i.length>0&&n(i,o)});return"OR"===e.type?r.some(Boolean):r.every(Boolean)})}Zt(e){return e.flatMap(e=>{var t,r;return null!==(t=null==(r=e.stacktrace)?void 0:r.frames)&&void 0!==t?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}ti(e){if(e.length>0){var t,r,n,i,o=null!==(t=null==(r=e[0].stacktrace)?void 0:r.frames)&&void 0!==t?t:[],s=o[o.length-1];return null!==(n=null==s||null==(i=s.filename)?void 0:i.includes("posthog.com/static"))&&void 0!==n&&n}return!1}Xt(e){return!q(e)&&R(e)}}var ho=$e("[FeatureFlags]"),fo=$e("[FeatureFlags]",{debugEnabled:!0}),go="$active_feature_flags",vo="$override_feature_flags",mo="$feature_flag_payloads",_o="$override_feature_flag_payloads",yo="$feature_flag_request_id",bo="$feature_flag_evaluated_at",wo=e=>{var t={};for(var[r,n]of Be(e||{}))n&&(t[r]=n);return t},xo=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class So{constructor(e){this.ii=!1,this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this._instance=e,this.featureFlagEventHandlers=[]}li(){var e=this._instance.config.evaluation_environments;return null!=e&&e.length?e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||ho.error("Invalid evaluation environment found:",e,"Expected non-empty string"),t}):[]}ui(){return this.li().length>0}flags(){if(this._instance.config.__preview_remote_config)this.oi=!0;else{var e=!this.hi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.di({disableFlags:e})}}get hasLoadedFlags(){return this.ei}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(ut),t=this._instance.get_property(vo),r=this._instance.get_property(_o);if(!r&&!t)return e||{};var n=Le({},e||{}),i=[...new Set([...Object.keys(r||{}),...Object.keys(t||{})])];for(var o of i){var s,a,l=n[o],c=null==t?void 0:t[o],u=B(c)?null!==(s=null==l?void 0:l.enabled)&&void 0!==s&&s:!!c,d=B(c)?l.variant:"string"==typeof c?c:void 0,p=null==r?void 0:r[o],h=E({},l,{enabled:u,variant:u?null!=d?d:null==l?void 0:l.variant:void 0});u!==(null==l?void 0:l.enabled)&&(h.original_enabled=null==l?void 0:l.enabled),d!==(null==l?void 0:l.variant)&&(h.original_variant=null==l?void 0:l.variant),p&&(h.metadata=E({},null==l?void 0:l.metadata,{payload:p,original_payload:null==l||null==(a=l.metadata)?void 0:a.payload})),n[o]=h}return this.ii||(ho.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:n}),this.ii=!0),n}getFlagVariants(){var e=this._instance.get_property(lt),t=this._instance.get_property(vo);if(!t)return e||{};for(var r=Le({},e),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.ii||(ho.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this.ii=!0),r}getFlagPayloads(){var e=this._instance.get_property(mo),t=this._instance.get_property(_o);if(!t)return e||{};for(var r=Le({},e||{}),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.ii||(ho.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:r}),this.ii=!0),r}reloadFeatureFlags(){this.si||this._instance.config.advanced_disable_feature_flags||this.hi||(this.hi=setTimeout(()=>{this.di()},5))}vi(){clearTimeout(this.hi),this.hi=void 0}ensureFlagsLoaded(){this.ei||this.ri||this.hi||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.si=e}di(e){var t;if(this.vi(),!this._instance.O())if(this.ri)this.ni=!0;else{var r={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:E({},(null==(t=this._instance.persistence)?void 0:t.get_initial_props())||{},this._instance.get_property(dt)||{}),group_properties:this._instance.get_property(pt)};(null!=e&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.ui()&&(r.evaluation_environments=this.li());var n=this._instance.config.__preview_remote_config,i=n?"/flags/?v=2":"/flags/?v=2&config=true",o=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",s=this._instance.requestRouter.endpointFor("flags",i+o);n&&(r.timezone=ui()),this.ri=!0,this._instance.ci({method:"POST",url:s,data:r,compression:this._instance.config.disable_compression?void 0:sr.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:e=>{var t,n,i=!0;if(200===e.statusCode&&(this.ni||(this.$anon_distinct_id=void 0),i=!1),this.ri=!1,this.oi||(this.oi=!0,this._instance.fi(null!==(n=e.json)&&void 0!==n?n:{})),!r.disable_flags||this.ni)if(this.ai=!i,e.json&&null!=(t=e.json.quotaLimited)&&t.includes(xo.FeatureFlags))ho.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.");else{var o;r.disable_flags||this.receivedFeatureFlags(null!==(o=e.json)&&void 0!==o?o:{},i),this.ni&&(this.ni=!1,this.di())}}})}}getFeatureFlag(e,t){if(void 0===t&&(t={}),this.ei||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[e],n=""+r,i=this._instance.get_property(yo)||void 0,o=this._instance.get_property(bo)||void 0,s=this._instance.get_property(gt)||{};if((t.send_event||!("send_event"in t))&&(!(e in s)||!s[e].includes(n))){var a,l,c,u,d,p,h,f,g;R(s[e])?s[e].push(n):s[e]=[n],null==(a=this._instance.persistence)||a.register({[gt]:s});var v=this.getFeatureFlagDetails(e),m={$feature_flag:e,$feature_flag_response:r,$feature_flag_payload:this.getFeatureFlagPayload(e)||null,$feature_flag_request_id:i,$feature_flag_evaluated_at:o,$feature_flag_bootstrapped_response:(null==(l=this._instance.config.bootstrap)||null==(l=l.featureFlags)?void 0:l[e])||null,$feature_flag_bootstrapped_payload:(null==(c=this._instance.config.bootstrap)||null==(c=c.featureFlagPayloads)?void 0:c[e])||null,$used_bootstrap_value:!this.ai};B(null==v||null==(u=v.metadata)?void 0:u.version)||(m.$feature_flag_version=v.metadata.version);var _,y=null!==(d=null==v||null==(p=v.reason)?void 0:p.description)&&void 0!==d?d:null==v||null==(h=v.reason)?void 0:h.code;y&&(m.$feature_flag_reason=y),null!=v&&null!=(f=v.metadata)&&f.id&&(m.$feature_flag_id=v.metadata.id),B(null==v?void 0:v.original_variant)&&B(null==v?void 0:v.original_enabled)||(m.$feature_flag_original_response=B(v.original_variant)?v.original_enabled:v.original_variant),null!=v&&null!=(g=v.metadata)&&g.original_payload&&(m.$feature_flag_original_payload=null==v||null==(_=v.metadata)?void 0:_.original_payload),this._instance.capture("$feature_flag_called",m)}return r}ho.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){return this.getFlagPayloads()[e]}getRemoteConfigPayload(e,t){var r=this._instance.config.token,n={distinct_id:this._instance.get_distinct_id(),token:r};this.ui()&&(n.evaluation_environments=this.li()),this._instance.ci({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2&config=true"),data:n,compression:this._instance.config.disable_compression?void 0:sr.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:r=>{var n,i=null==(n=r.json)?void 0:n.featureFlagPayloads;t((null==i?void 0:i[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),this.ei||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(e,t);return B(r)?void 0:!!r}ho.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t){if(this._instance.persistence){this.ei=!0;var r=this.getFlagVariants(),n=this.getFlagPayloads(),i=this.getFlagsWithDetails();!function(e,t,r,n,i){void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i={});var o=(e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map(e=>{var r;return[e,null!==(r=t[e].variant)&&void 0!==r?r:t[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter(e=>t[e].enabled).filter(e=>{var r;return null==(r=t[e].metadata)?void 0:r.payload}).map(e=>{var r;return[e,null==(r=t[e].metadata)?void 0:r.payload]}))):ho.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e})(e),s=o.flags,a=o.featureFlags,l=o.featureFlagPayloads;if(a){var c=e.requestId,u=e.evaluatedAt;if(R(a)){ho.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var d={};if(a)for(var p=0;p<a.length;p++)d[a[p]]=!0;t&&t.register({[go]:a,[lt]:d})}else{var h=a,f=l,g=s;e.errorsWhileComputingFlags&&(h=E({},r,h),f=E({},n,f),g=E({},i,g)),t&&t.register(E({[go]:Object.keys(wo(h)),[lt]:h||{},[mo]:f||{},[ut]:g||{}},c?{[yo]:c}:{},u?{[bo]:u}:{}))}}}(e,this._instance.persistence,r,n,i),this.pi(t)}}override(e,t){void 0===t&&(t=!1),ho.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return ho.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this._instance.persistence.unregister(vo),this._instance.persistence.unregister(_o),this.pi(),fo.info("All overrides cleared");if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){var t,r=e;if(this.ii=Boolean(null!==(t=r.suppressWarning)&&void 0!==t&&t),"flags"in r)if(!1===r.flags)this._instance.persistence.unregister(vo),fo.info("Flag overrides cleared");else if(r.flags){if(R(r.flags)){for(var n={},i=0;i<r.flags.length;i++)n[r.flags[i]]=!0;this._instance.persistence.register({[vo]:n})}else this._instance.persistence.register({[vo]:r.flags});fo.info("Flag overrides set",{flags:r.flags})}return"payloads"in r&&(!1===r.payloads?(this._instance.persistence.unregister(_o),fo.info("Payload overrides cleared")):r.payloads&&(this._instance.persistence.register({[_o]:r.payloads}),fo.info("Payload overrides set",{payloads:r.payloads}))),void this.pi()}this.pi()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ei){var{flags:t,flagVariants:r}=this.gi();e(t,r)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,r){var n,i=(this._instance.get_property(ct)||[]).find(t=>t.flagKey===e),o={["$feature_enrollment/"+e]:t},s={$feature_flag:e,$feature_enrollment:t,$set:o};i&&(s.$early_access_feature_name=i.name),r&&(s.$feature_enrollment_stage=r),this._instance.capture("$feature_enrollment_update",s),this.setPersonPropertiesForFlags(o,!1);var a=E({},this.getFlagVariants(),{[e]:t});null==(n=this._instance.persistence)||n.register({[go]:Object.keys(wo(a)),[lt]:a}),this.pi()}getEarlyAccessFeatures(e,t,r){void 0===t&&(t=!1);var n=this._instance.get_property(ct),i=r?"&"+r.map(e=>"stage="+e).join("&"):"";if(n&&!t)return e(n);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+i),method:"GET",callback:t=>{var r,n;if(t.json){var i=t.json.earlyAccessFeatures;return null==(r=this._instance.persistence)||r.unregister(ct),null==(n=this._instance.persistence)||n.register({[ct]:i}),e(i)}}})}gi(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,r)=>(e[r]=t[r],e),{})}}pi(e){var{flags:t,flagVariants:r}=this.gi();this.featureFlagEventHandlers.forEach(n=>n(t,r,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(dt)||{};this._instance.register({[dt]:E({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(dt)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(pt)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(t=>{r[t]=E({},r[t],e[t]),delete e[t]}),this._instance.register({[pt]:E({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(pt)||{};this._instance.register({[pt]:E({},t,{[e]:{}})})}else this._instance.unregister(pt)}reset(){this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this.$anon_distinct_id=void 0,this.vi(),this.ii=!1}}var Eo=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class ko{constructor(e,t){this.I=e,this.props={},this.mi=!1,this.yi=(e=>{var t="";return e.token&&(t=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),e.persistence_name?"ph_"+e.persistence_name:"ph_"+t+"_posthog"})(e),this.Y=this.bi(e),this.load(),e.debug&&Ce.info("Persistence loaded",e.persistence,E({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.wi}bi(e){-1===Eo.indexOf(e.persistence.toLowerCase())&&(Ce.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&Mr.H()?Mr:"localstorage+cookie"===t&&Ar.H()?Ar:"sessionstorage"===t&&Ir.H()?Ir:"memory"===t?$r:"cookie"===t?Pr:Ar.H()?Ar:Pr}properties(){var e={};return De(this.props,function(t,r){if(r===lt&&L(t))for(var n=Object.keys(t),i=0;i<n.length;i++)e["$feature/"+n[i]]=t[n[i]];else s=r,a=!1,(z(o=kt)?a:p&&o.indexOf===p?-1!=o.indexOf(s):(De(o,function(e){if(a||(a=e===s))return Ne}),a))||(e[r]=t);var o,s,a}),e}load(){if(!this.wi){var e=this.Y.W(this.yi);e&&(this.props=Le({},e))}}save(){this.wi||this.Y.G(this.yi,this.props,this.xi,this.Ei,this.Si,this.I.debug)}remove(){this.Y.V(this.yi,!1),this.Y.V(this.yi,!0)}clear(){this.remove(),this.props={}}register_once(e,t,r){if(L(e)){B(t)&&(t="None"),this.xi=B(r)?this.$i:r;var n=!1;if(De(e,(e,r)=>{this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e,n=!0)}),n)return this.save(),!0}return!1}register(e,t){if(L(e)){this.xi=B(t)?this.$i:t;var r=!1;if(De(e,(t,n)=>{e.hasOwnProperty(n)&&this.props[n]!==t&&(this.props[n]=t,r=!0)}),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.mi){var e=ni(this.I.custom_campaign_params,this.I.mask_personal_data_properties,this.I.custom_personal_data_properties);j(ze(e))||this.register(e),this.mi=!0}}update_search_keyword(){var e;this.register((e=null==f?void 0:f.referrer)?oi(e):{})}update_referrer_info(){var e;this.register_once({$referrer:ai(),$referring_domain:null!=f&&f.referrer&&(null==(e=ar(f.referrer))?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[yt]||this.props[bt]||this.register_once({[wt]:li(this.I.mask_personal_data_properties,this.I.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};De([bt,yt],t=>{var r=this.props[t];r&&De(r,function(t,r){e["$initial_"+C(r)]=t})});var t,r,n=this.props[wt];if(n){var i=(t=ci(n),r={},De(t,function(e,t){r["$initial_"+C(t)]=e}),r);Le(e,i)}return e}safe_merge(e){return De(this.props,function(t,r){r in e||(e[r]=t)}),e}update_config(e,t,r){if(this.$i=this.xi=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence){var n=this.bi(e),i=this.props;this.clear(),this.Y=n,this.props=i,this.save()}}set_disabled(e){this.wi=e,this.wi?this.remove():this.save()}set_cross_subdomain(e){e!==this.Ei&&(this.Ei=e,this.remove(),this.save())}set_secure(e){e!==this.Si&&(this.Si=e,this.remove(),this.save())}set_event_timer(e,t){var r=this.props[Xe]||{};r[e]=t,this.props[Xe]=r,this.save()}remove_event_timer(e){var t=(this.props[Xe]||{})[e];return B(t)||(delete this.props[Xe][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}var Po=$e("[Product Tours]"),Oo="ph_product_tours";class Mo{constructor(e){this.ki=null,this.Pi=null,this.Ti=void 0,this.Ri=!1,this._instance=e}onRemoteConfig(e){if(this._instance.config.disable_product_tours)Po.info("Product tours disabled via config");else{var t=e.productTours;q(t)?Po.info("Product tours not enabled in remote config"):(this.Ti=t,Po.info("Remote config received, isProductToursEnabled: "+this.Ti),this.loadIfEnabled())}}loadIfEnabled(){var e;if(!this.Pi)if(this.Ri)Po.info("Already initializing product tours, skipping...");else if(this._instance.config.disable_product_tours)Po.info("Product tours disabled via config");else{var t=null==b?void 0:b.__PosthogExtensions__;if(t){var r=null==(e=this._instance.featureFlags)?void 0:e.isFeatureEnabled("product-tours-2025");if(!B(this.Ti)||r){var n=this.Ti||r;if(n){this.Ri=!0;try{var i=t.generateProductTours;if(i)return void this.Ci(i,n);var o=t.loadExternalDependency;if(!o)return Po.error("PostHog loadExternalDependency extension not found."),void(this.Ri=!1);o(this._instance,"product-tours",e=>{e||!t.generateProductTours?Po.error("Could not load product tours script",e):this.Ci(t.generateProductTours,n),this.Ri=!1})}catch(e){Po.error("Error initializing product tours",e),this.Ri=!1}}else Po.info("Product tours not enabled")}else Po.info("Waiting for remote config or feature flag to enable product tours")}else Po.error("PostHog Extensions not found.")}}Ci(e,t){this.Pi=e(this._instance,t)||null,Po.info("Product tours loaded successfully")}getProductTours(e,t){if(void 0===t&&(t=!1),!R(this.ki)||t){var r=this._instance.persistence;if(r){var n=r.props[Oo];if(R(n)&&!t)return this.ki=n,void e(n,{isLoaded:!0})}this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:t=>{var n=t.statusCode;if(200!==n||!t.json){var i="Product Tours API could not be loaded, status: "+n;return Po.error(i),void e([],{isLoaded:!1,error:i})}var o=R(t.json.product_tours)?t.json.product_tours:[];this.ki=o,r&&r.register({[Oo]:o}),e(o,{isLoaded:!0})}})}else e(this.ki,{isLoaded:!0})}getActiveProductTours(e){if(q(this.Pi))return Po.warn("Product tours not loaded yet"),void e([],{isLoaded:!1,error:"Product tours not loaded"});this.Pi.getActiveProductTours(e)}showProductTour(e){var t;Po.info("showProductTour("+e+")"),null==(t=this.Pi)||t.showTourById(e)}dismissProductTour(){var e;null==(e=this.Pi)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.Pi)||e.nextStep()}previousStep(){var e;null==(e=this.Pi)||e.previousStep()}clearCache(){this.ki=null;var e=this._instance.persistence;e&&e.unregister(Oo)}resetTour(e){var t;null==(t=this.Pi)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.Pi)||e.resetAllTours()}}var To=function(e){return e.Activation="events",e.Cancellation="cancelEvents",e}({});!function(e){e.Button="button",e.Tab="tab",e.Selector="selector"}({}),function(e){e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger"}({}),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}({});var Ao=function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e.ExternalSurvey="external_survey",e}({});!function(e){e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link"}({}),function(e){e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question"}({}),function(e){e.Once="once",e.Recurring="recurring",e.Always="always"}({});var Co=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e}({}),$o=function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e}({}),Fo=function(e){return e.Popover="popover",e.Inline="inline",e}({});class Io{constructor(){this.Ii={},this.Ii={}}on(e,t){return this.Ii[e]||(this.Ii[e]=[]),this.Ii[e].push(t),()=>{this.Ii[e]=this.Ii[e].filter(e=>e!==t)}}emit(e,t){for(var r of this.Ii[e]||[])r(t);for(var n of this.Ii["*"]||[])n(e,t)}}function No(e,t,r){if(q(e))return!1;switch(r){case"exact":return e===t;case"contains":var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(e){return!1}default:return!1}}class Ro{constructor(e){this.Fi=new Io,this.Mi=(e,t)=>this.Oi(e,t)&&this.Ai(e,t)&&this.Di(e,t)&&this.ji(e,t),this.Oi=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.Li=new Set,this.Ni=new Set}init(){var e,t;B(null==(e=this._instance)?void 0:e.Ui)||(null==(t=this._instance)||t.Ui((e,t)=>{this.on(e,t)}))}register(e){var t,r;if(!B(null==(t=this._instance)?void 0:t.Ui)&&(e.forEach(e=>{var t,r;null==(t=this.Ni)||t.add(e),null==(r=e.steps)||r.forEach(e=>{var t;null==(t=this.Li)||t.add((null==e?void 0:e.event)||"")})}),null!=(r=this._instance)&&r.autocapture)){var n,i=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&i.add(null==e?void 0:e.selector)})}),null==(n=this._instance)||n.autocapture.setElementSelectors(i)}}on(e,t){var r;null!=t&&0!=e.length&&(this.Li.has(e)||this.Li.has(null==t?void 0:t.event))&&this.Ni&&(null==(r=this.Ni)?void 0:r.size)>0&&this.Ni.forEach(e=>{this.zi(t,e)&&this.Fi.emit("actionCaptured",e.name)})}Hi(e){this.onAction("actionCaptured",t=>e(t))}zi(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var r of t.steps)if(this.Mi(e,r))return!0;return!1}onAction(e,t){return this.Fi.on(e,t)}Ai(e,t){if(null!=t&&t.url){var r,n=null==e||null==(r=e.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n)return!1;if(!No(n,t.url,t.url_matching||"contains"))return!1}return!0}Di(e,t){return!!this.Bi(e,t)&&!!this.qi(e,t)&&!!this.Wi(e,t)}Bi(e,t){var r;if(null==t||!t.href)return!0;var n=this.Gi(e);if(n.length>0)return n.some(e=>No(e.href,t.href,t.href_matching||"exact"));var i,o=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!o&&No((i=o.match(/(?::|")href="(.*?)"/))?i[1]:"",t.href,t.href_matching||"exact")}qi(e,t){var r;if(null==t||!t.text)return!0;var n=this.Gi(e);if(n.length>0)return n.some(e=>No(e.text,t.text,t.text_matching||"exact")||No(e.$el_text,t.text,t.text_matching||"exact"));var i,o,s,a=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!a&&(i=function(e){for(var t,r=[],n=/(?::|")text="(.*?)"/g;!q(t=n.exec(e));)r.includes(t[1])||r.push(t[1]);return r}(a),o=t.text,s=t.text_matching||"exact",i.some(e=>No(e,o,s)))}Wi(e,t){var r,n;if(null==t||!t.selector)return!0;var i=null==e||null==(r=e.properties)?void 0:r.$element_selectors;if(null!=i&&i.includes(t.selector))return!0;var o=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";if(t.selector_regex&&o)try{return new RegExp(t.selector_regex).test(o)}catch(e){return!1}return!1}Gi(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}ji(e,t){return null==t||!t.properties||0===t.properties.length||co(t.properties.reduce((e,t)=>{var r=R(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:r,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}var Do=$e("[Surveys]"),Lo="seenSurvey_",jo=(e,t)=>{var r="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(r="$survey_"+t+"/"+e.id+"/"+e.current_iteration),r},Bo=e=>{var t=""+Lo+e.id;return e.current_iteration&&e.current_iteration>0&&(t=""+Lo+e.id+"_"+e.current_iteration),t},Vo=[Ao.Popover,Ao.Widget,Ao.API],Uo={ignoreConditions:!1,ignoreDelay:!1,displayType:Fo.Popover};class zo{constructor(e){this._instance=e,this.Vi=new Map,this.Ji=new Map,this.Ki=new Map}Yi(e,t){return!!e&&co(e.propertyFilters,null==t?void 0:t.properties)}Xi(e,t){var r=new Map;return e.forEach(e=>{var n;null==(n=e.conditions)||null==(n=n[t])||null==(n=n.values)||n.forEach(t=>{if(null!=t&&t.name){var n=r.get(t.name)||[];n.push(e.id),r.set(t.name,n)}})}),r}Qi(e,t,r){var n,i=(r===To.Activation?this.Vi:this.Ji).get(e),o=[];return null==(n=this._instance)||n.getSurveys(e=>{o=e.filter(e=>null==i?void 0:i.includes(e.id))}),o.filter(n=>{var i,o=null==(i=n.conditions)||null==(i=i[r])||null==(i=i.values)?void 0:i.find(t=>t.name===e);return this.Yi(o,t)})}register(e){var t;B(null==(t=this._instance)?void 0:t.Ui)||(this.Zi(e),this.te(e))}te(e){var t=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0});0!==t.length&&(null==this.ie&&(this.ie=new Ro(this._instance),this.ie.init(),this.ie.Hi(e=>{this.onAction(e)})),t.forEach(e=>{var t,r,n,i,o;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(r=e.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(i=this.ie)||i.register(e.conditions.actions.values),null==(o=e.conditions)||null==(o=o.actions)||null==(o=o.values)||o.forEach(t=>{if(t&&t.name){var r=this.Ki.get(t.name);r&&r.push(e.id),this.Ki.set(t.name,r||[e.id])}}))}))}Zi(e){var t,r=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.events)&&(null==(r=e.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0}),n=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(r=e.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0});0===r.length&&0===n.length||(null==(t=this._instance)||t.Ui((e,t)=>{this.onEvent(e,t)}),this.Vi=this.Xi(e,To.Activation),this.Ji=this.Xi(e,To.Cancellation))}onEvent(e,t){var r,n=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[ft])||[];if(Co.SHOWN===e&&t&&n.length>0){var i;Do.info("survey event matched, removing survey from activated surveys",{event:e,eventPayload:t,existingActivatedSurveys:n});var o=null==t||null==(i=t.properties)?void 0:i.$survey_id;if(o){var s=n.indexOf(o);s>=0&&(n.splice(s,1),this.ee(n))}}else{if(this.Ji.has(e)){var a=this.Qi(e,t,To.Cancellation);a.length>0&&(Do.info("cancel event matched, cancelling surveys",{event:e,surveysToCancel:a.map(e=>e.id)}),a.forEach(e=>{var t,r=n.indexOf(e.id);r>=0&&n.splice(r,1),null==(t=this._instance)||t.cancelPendingSurvey(e.id)}),this.ee(n))}if(this.Vi.has(e)){Do.info("survey event name matched",{event:e,eventPayload:t,surveys:this.Vi.get(e)});var l=this.Qi(e,t,To.Activation);this.ee(n.concat(l.map(e=>e.id)||[]))}}}onAction(e){var t,r=(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[ft])||[];this.Ki.has(e)&&this.ee(r.concat(this.Ki.get(e)||[]))}ee(e){var t;Do.info("updating activated surveys",{activatedSurveys:e}),null==(t=this._instance)||null==(t=t.persistence)||t.register({[ft]:[...new Set(e)]})}getSurveys(){var e;return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[ft])||[]}getEventToSurveys(){return this.Vi}re(){return this.ie}}class qo{constructor(e){this.se=void 0,this._surveyManager=null,this.ne=!1,this.oe=!1,this.ae=[],this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var t=e.surveys;if(q(t))return Do.warn("Flags not loaded yet. Not loading surveys.");var r=R(t);this.se=r?t.length>0:t,Do.info("flags response received, isSurveysEnabled: "+this.se),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);(null!=r&&r.startsWith(Lo)||null!=r&&r.startsWith("inProgressSurvey_"))&&e.push(r)}e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager)if(this.oe)Do.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Do.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())Do.info("Not loading surveys in cookieless mode without consent.");else{var e=null==b?void 0:b.__PosthogExtensions__;if(e){if(!B(this.se)||this._instance.config.advanced_enable_surveys){var t=this.se||this._instance.config.advanced_enable_surveys;this.oe=!0;try{var r=e.generateSurveys;if(r)return void this.le(r,t);var n=e.loadExternalDependency;if(!n)return void this.ue("PostHog loadExternalDependency extension not found.");n(this._instance,"surveys",r=>{r||!e.generateSurveys?this.ue("Could not load surveys script",r):this.le(e.generateSurveys,t)})}catch(e){throw this.ue("Error initializing surveys",e),e}finally{this.oe=!1}}}else Do.error("PostHog Extensions not found.")}}le(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new zo(this._instance),Do.info("Surveys loaded successfully"),this.he({isLoaded:!0})}ue(e,t){Do.error(e,t),this.he({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.ae.push(e),this._surveyManager&&this.he({isLoaded:!0}),()=>{this.ae=this.ae.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this._instance.config.disable_surveys)return Do.info("Disabled. Not loading surveys."),e([]);var r=this._instance.get_property(ht);if(r&&!t)return e(r,{isLoaded:!0});if(this.ne)return e([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.ne=!0,this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:t=>{var r;this.ne=!1;var n=t.statusCode;if(200!==n||!t.json){var i="Surveys API could not be loaded, status: "+n;return Do.error(i),e([],{isLoaded:!1,error:i})}var o,s=t.json.surveys||[],a=s.filter(e=>function(e){return!(!e.start_date||e.end_date)}(e)&&(function(e){var t;return!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)}(e)||function(e){var t;return!(null==(t=e.conditions)||null==(t=t.actions)||null==(t=t.values)||!t.length)}(e)));return a.length>0&&(null==(o=this._surveyEventReceiver)||o.register(a)),null==(r=this._instance.persistence)||r.register({[ht]:s}),e(s,{isLoaded:!0})}})}catch(e){throw this.ne=!1,e}}he(e){for(var t of this.ae)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){Do.error("Error in survey callback",e)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!q(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Do.warn("init was not called")}de(e){var t=null;return this.getSurveys(r=>{var n;t=null!==(n=r.find(t=>t.id===e))&&void 0!==n?n:null}),t}ve(e){if(q(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var t="string"==typeof e?this.de(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(q(this._surveyManager))return Do.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var t=this.ve(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return q(this._surveyManager)?(Do.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(r=>{this.getSurveys(t=>{var n,i=null!==(n=t.find(t=>t.id===e))&&void 0!==n?n:null;if(i){var o=this.ve(i);r({visible:o.eligible,disabledReason:o.reason})}else r({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t){var r;if(q(this._surveyManager))Do.warn("init was not called");else{var n="string"==typeof e?this.de(e):e;if(null!=n&&n.id)if(Vo.includes(n.type)){var i=null==f?void 0:f.querySelector(t);if(i)return null!=(r=n.appearance)&&r.surveyPopupDelaySeconds?(Do.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;Do.info("Rendering survey "+n.id+" with delay of "+(null==(e=n.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(n,i),Do.info("Survey "+n.id+" rendered")},1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i);Do.warn("Survey element not found")}else Do.warn("Surveys of type "+n.type+" cannot be rendered in the app");else Do.warn("Survey not found")}}displaySurvey(e,t){var r;if(q(this._surveyManager))Do.warn("init was not called");else{var n=this.de(e);if(n){var i=n;if(null!=(r=n.appearance)&&r.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=E({},n,{appearance:E({},n.appearance,{surveyPopupDelaySeconds:0})})),!1===t.ignoreConditions){var o=this.canRenderSurvey(n);if(!o.visible)return void Do.warn("Survey is not eligible to be displayed: ",o.disabledReason)}t.displayType!==Fo.Inline?this._surveyManager.handlePopoverSurvey(i):this.renderSurvey(i,t.selector)}else Do.warn("Survey not found")}}cancelPendingSurvey(e){q(this._surveyManager)?Do.warn("init was not called"):this._surveyManager.cancelSurvey(e)}}var Wo=$e("[RateLimiter]");class Ho{constructor(e){var t,r;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{Wo.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void Wo.warn('could not rate limit - continuing. Error: "'+(null==e?void 0:e.message)+'"',{text:t})}},this.instance=e,this.captureEventsPerSecond=(null==(t=e.config.rate_limiting)?void 0:t.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null==(r=e.config.rate_limiting)?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(e){var t,r,n;void 0===e&&(e=!1);var i=(new Date).getTime(),o=null!==(t=null==(r=this.instance.persistence)?void 0:r.get_property(_t))&&void 0!==t?t:{tokens:this.captureEventsBurstLimit,last:i};o.tokens+=(i-o.last)/1e3*this.captureEventsPerSecond,o.last=i,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var s=o.tokens<1;return s||e||(o.tokens=Math.max(0,o.tokens-1)),!s||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=s,null==(n=this.instance.persistence)||n.set_property(_t,o),{isRateLimited:s,remainingTokens:o.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var Go=$e("[RemoteConfig]");class Yo{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=b._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}ce(e){var t,r;null!=(t=b.__PosthogExtensions__)&&t.loadExternalDependency?null==(r=b.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):(Go.error("PostHog Extensions not found. Cannot load remote config."),e())}fe(e){this._instance.ci({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 Go.info("Using preloaded remote config",this.remoteConfig),void this.fi(this.remoteConfig);if(this._instance.O())return void Go.warn("Remote config is disabled. Falling back to local config.");this.ce(e=>{if(!e)return Go.info("No config found after loading remote JS config. Falling back to JSON."),void this.fe(e=>{this.fi(e)});this.fi(e)})}catch(e){Go.error("Error loading remote config",e)}}fi(e){e?this._instance.config.__preview_remote_config?(this._instance.fi(e),!1!==e.hasFeatureFlags&&this._instance.featureFlags.ensureFlagsLoaded()):Go.info("__preview_remote_config is disabled. Logging config instead",e):Go.error("Failed to fetch remote config from PostHog.")}}var Ko=3e3;class Xo{constructor(e,t){this.pe=!0,this.ge=[],this._e=ee((null==t?void 0:t.flush_interval_ms)||Ko,250,5e3,Ce.createLogger("flush interval"),Ko),this.me=e}enqueue(e){this.ge.push(e),this.ye||this.be()}unload(){this.we();var e=this.ge.length>0?this.xe():{},t=Object.values(e);[...t.filter(e=>0===e.url.indexOf("/e")),...t.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.me(E({},e,{transport:"sendBeacon"}))})}enable(){this.pe=!1,this.be()}be(){var e=this;this.pe||(this.ye=setTimeout(()=>{if(this.we(),this.ge.length>0){var t=this.xe(),r=function(){var r=t[n],i=(new Date).getTime();r.data&&R(r.data)&&De(r.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.me(r)};for(var n in t)r()}},this._e))}we(){clearTimeout(this.ye),this.ye=void 0}xe(){var e={};return De(this.ge,t=>{var r,n=t,i=(n?n.batchKey:null)||n.url;B(e[i])&&(e[i]=E({},n,{data:[]})),null==(r=e[i].data)||r.push(n.data)}),this.ge=[],e}}var Jo=["retriesPerformedSoFar"];class Zo{constructor(e){this.Ee=!1,this.Se=3e3,this.ge=[],this._instance=e,this.ge=[],this.$e=!0,!B(l)&&"onLine"in l.navigator&&(this.$e=l.navigator.onLine,this.ke=()=>{this.$e=!0,this.Dt()},this.Pe=()=>{this.$e=!1},Ge(l,"online",this.ke),Ge(l,"offline",this.Pe))}get length(){return this.ge.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,r=k(e,Jo);W(t)&&t>0&&(r.url=to(r.url,{retry_count:t})),this._instance.ci(E({},r,{callback:e=>{200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this.Te(E({retriesPerformedSoFar:t},r)):null==r.callback||r.callback(e)}}))}Te(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var r=function(e){var t=3e3*Math.pow(2,e),r=t/2,n=Math.min(18e5,t),i=(Math.random()-.5)*(n-r);return Math.ceil(n+i)}(t),n=Date.now()+r;this.ge.push({retryAt:n,requestOptions:e});var i="Enqueued failed request for retry in "+r;navigator.onLine||(i+=" (Browser is offline)"),Ce.warn(i),this.Ee||(this.Ee=!0,this.Re())}Re(){if(this.Ce&&clearTimeout(this.Ce),0===this.ge.length)return this.Ee=!1,void(this.Ce=void 0);this.Ce=setTimeout(()=>{this.$e&&this.ge.length>0&&this.Dt(),this.Re()},this.Se)}Dt(){var e=Date.now(),t=[],r=this.ge.filter(r=>r.retryAt<e||(t.push(r),!1));if(this.ge=t,r.length>0)for(var{requestOptions:n}of r)this.retriableRequest(n)}unload(){for(var{requestOptions:e}of(this.Ce&&(clearTimeout(this.Ce),this.Ce=void 0),this.Ee=!1,B(l)||(this.ke&&(l.removeEventListener("online",this.ke),this.ke=void 0),this.Pe&&(l.removeEventListener("offline",this.Pe),this.Pe=void 0)),this.ge))try{this._instance.ci(E({},e,{transport:"sendBeacon"}))}catch(e){Ce.error(e)}this.ge=[]}}class Qo{constructor(e){this.Ie=()=>{var e,t,r,n;this.Fe||(this.Fe={});var i=this.scrollElement(),o=this.scrollY(),s=i?Math.max(0,i.scrollHeight-i.clientHeight):0,a=o+((null==i?void 0:i.clientHeight)||0),l=(null==i?void 0:i.scrollHeight)||0;this.Fe.lastScrollY=Math.ceil(o),this.Fe.maxScrollY=Math.max(o,null!==(e=this.Fe.maxScrollY)&&void 0!==e?e:0),this.Fe.maxScrollHeight=Math.max(s,null!==(t=this.Fe.maxScrollHeight)&&void 0!==t?t:0),this.Fe.lastContentY=a,this.Fe.maxContentY=Math.max(a,null!==(r=this.Fe.maxContentY)&&void 0!==r?r:0),this.Fe.maxContentHeight=Math.max(l,null!==(n=this.Fe.maxContentHeight)&&void 0!==n?n:0)},this._instance=e}getContext(){return this.Fe}resetContext(){var e=this.Fe;return setTimeout(this.Ie,0),e}startMeasuringScrollPosition(){Ge(l,"scroll",this.Ie,{capture:!0}),Ge(l,"scrollend",this.Ie,{capture:!0}),Ge(l,"resize",this.Ie)}scrollElement(){if(!this._instance.config.scroll_root_selector)return null==l?void 0:l.document.documentElement;var e=R(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var t of e){var r=null==l?void 0:l.document.querySelector(t);if(r)return r}}scrollY(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return l&&(l.scrollY||l.pageYOffset||l.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return l&&(l.scrollX||l.pageXOffset||l.document.documentElement.scrollLeft)||0}}var es=e=>li(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);class ts{constructor(e,t,r,n){this.Me=e=>{var t=this.Oe();if(!t||t.sessionId!==e){var r={sessionId:e,props:this.Ae(this._instance)};this.De.register({[mt]:r})}},this._instance=e,this.je=t,this.De=r,this.Ae=n||es,this.je.onSessionId(this.Me)}Oe(){return this.De.props[mt]}getSetOnceProps(){var e,t=null==(e=this.Oe())?void 0:e.props;return t?"r"in t?ci(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 De(ze(this.getSetOnceProps()),(t,r)=>{"$current_url"===r&&(r="url"),e["$session_entry_"+C(r)]=t}),e}}var rs=$e("[SessionId]");class ns{on(e,t){return this.Le.on(e,t)}constructor(e,t,r){var n;if(this.Ne=[],this.Ue=void 0,this.Le=new Io,this.ze=(e,t)=>Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if("always"===e.config.cookieless_mode)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.I=e.config,this.De=e.persistence,this.He=void 0,this.Be=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.qe=t||xr,this.We=r||xr;var i=this.I.persistence_name||this.I.token,o=this.I.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*ee(o,60,36e3,rs.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ge(),this.Ve="ph_"+i+"_window_id",this.Je="ph_"+i+"_primary_window_exists",this.Ke()){var s=Ir.W(this.Ve),a=Ir.W(this.Je);s&&!a?this.He=s:Ir.V(this.Ve),Ir.G(this.Je,!0)}if(null!=(n=this.I.bootstrap)&&n.sessionID)try{var l=(()=>{var e=this.I.bootstrap.sessionID.replace(/-/g,"");if(32!==e.length)throw new Error("Not a valid UUID");if("7"!==e[12])throw new Error("Not a UUIDv7");return parseInt(e.substring(0,12),16)})();this.Ye(this.I.bootstrap.sessionID,(new Date).getTime(),l)}catch(e){rs.error("Invalid sessionID in bootstrap",e)}this.Xe()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return B(this.Ne)&&(this.Ne=[]),this.Ne.push(e),this.Be&&e(this.Be,this.He),()=>{this.Ne=this.Ne.filter(t=>t!==e)}}Ke(){return"memory"!==this.I.persistence&&!this.De.wi&&Ir.H()}Qe(e){e!==this.He&&(this.He=e,this.Ke()&&Ir.G(this.Ve,e))}Ze(){return this.He?this.He:this.Ke()?Ir.W(this.Ve):null}Ye(e,t,r){e===this.Be&&t===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this.Be=e,this.De.register({[st]:[t,e,r]}))}tr(){var e=this.De.props[st];return R(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Ye(null,null,null)}destroy(){clearTimeout(this.ir),this.ir=void 0,this.Ue&&l&&(l.removeEventListener("beforeunload",this.Ue,{capture:!1}),this.Ue=void 0),this.Ne=[]}Xe(){this.Ue=()=>{this.Ke()&&Ir.V(this.Je)},Ge(l,"beforeunload",this.Ue,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),"always"===this.I.cookieless_mode)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=t||(new Date).getTime(),[n,i,o]=this.tr(),s=this.Ze(),a=W(o)&&o>0&&Math.abs(r-o)>864e5,l=!1,c=!i,u=!c&&!e&&this.ze(r,n);c||u||a?(i=this.qe(),s=this.We(),rs.info("new session ID generated",{sessionId:i,windowId:s,changeReason:{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:a}}),o=r,l=!0):s||(s=this.We(),l=!0);var d=0===n||!e||a?r:n,p=0===o?(new Date).getTime():o;return this.Qe(s),this.Ye(i,d,p),e||this.Ge(),l&&this.Ne.forEach(e=>e(i,s,l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:a}:void 0)),{sessionId:i,windowId:s,sessionStartTimestamp:p,changeReason:l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:a}:void 0,lastActivityTimestamp:n}}Ge(){clearTimeout(this.ir),this.ir=setTimeout(()=>{var[e]=this.tr();if(this.ze((new Date).getTime(),e)){var t=this.Be;this.resetSessionId(),this.Le.emit("forcedIdleReset",{idleSessionId:t})}},1.1*this.sessionTimeoutMs)}}var is=["$set_once","$set"],os=$e("[SiteApps]");class ss{constructor(e){this._instance=e,this.er=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}rr(e,t){if(t){var r=this.globalsForEvent(t);this.er.push(r),this.er.length>1e3&&(this.er=this.er.slice(10))}}get siteAppLoaders(){var e;return null==(e=b._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance.Ui(this.rr.bind(this));this.sr=()=>{e(),this.er=[],this.sr=void 0}}}globalsForEvent(e){var t,r,n,i,o,s,a;if(!e)throw new Error("Event payload is required");var l={},c=this._instance.get_property("$groups")||[],u=this._instance.get_property("$stored_group_properties")||{};for(var[d,p]of Object.entries(u))l[d]={id:c[d],type:d,properties:p};var{$set_once:h,$set:f}=e;return{event:E({},k(e,is),{properties:E({},e.properties,f?{$set:E({},null!==(t=null==(r=e.properties)?void 0:r.$set)&&void 0!==t?t:{},f)}:{},h?{$set_once:E({},null!==(n=null==(i=e.properties)?void 0:i.$set_once)&&void 0!==n?n:{},h)}:{}),elements_chain:null!==(o=null==(s=e.properties)?void 0:s.$elements_chain)&&void 0!==o?o:"",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],r=()=>{var r;!t.errored&&this.er.length&&(os.info("Processing "+this.er.length+" events for site app with id "+e.id),this.er.forEach(e=>null==t.processEvent?void 0:t.processEvent(e)),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(r=this.sr)||r.call(this))},n=!1,i=i=>{t.errored=!i,t.loaded=!0,os.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),n&&r()};try{var{processEvent:o}=e.init({posthog:this._instance,callback:e=>{i(e)}});o&&(t.processEvent=o),n=!0}catch(t){os.error("Error while initializing PostHog app with config id "+e.id,t),i(!1)}if(n&&t.loaded)try{r()}catch(r){os.error("Error while processing buffered events PostHog app with config id "+e.id,r),t.errored=!0}}nr(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of e)this.setupSiteApp(r)}ar(e){if(0!==Object.keys(this.apps).length){var t=this.globalsForEvent(e);for(var r of Object.values(this.apps))try{null==r.processEvent||r.processEvent(t)}catch(t){os.error("Error while processing event "+e.event+" for site app "+r.id,t)}}}onRemoteConfig(e){var t,r,n,i=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.nr(),void this._instance.on("eventCaptured",e=>this.ar(e))):void os.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(r=this.sr)||r.call(this),null!=(n=e.siteApps)&&n.length)if(this.isEnabled){var o=function(e){var t;b["__$$ph_site_app_"+e]=i._instance,null==(t=b.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,a,t=>{if(t)return os.error("Error while initializing PostHog app with config id "+e,t)})};for(var{id:s,url:a}of e.siteApps)o(s)}else os.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var as=function(e,t){if(!e)return!1;var r=e.userAgent;if(r&&O(r,t))return!0;try{var n=null==e?void 0:e.userAgentData;if(null!=n&&n.brands&&n.brands.some(e=>O(null==e?void 0:e.brand,t)))return!0}catch(e){}return!!e.webdriver},ls=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),cs="i.posthog.com";class us{constructor(e){this.lr={},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("."+cs,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.lr[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.lr[this.apiHost]=ls.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.lr[this.apiHost]=ls.EU:this.lr[this.apiHost]=ls.CUSTOM),this.lr[this.apiHost]}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(this.region===ls.CUSTOM)return this.apiHost+t;var r=cs+t;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var ds={icontains:(e,t)=>!!l&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!l&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!l&&oo(t.href,e),not_regex:(e,t)=>!!l&&!oo(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class ps{constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{ps.ur("retrieved web experiments from the server"),t.hr=new Map,e.forEach(e=>{if(e.feature_flag_key){var r;t.hr&&(ps.ur("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(r=t.hr)||r.set(e.feature_flag_key,e));var n=t._instance.getFeatureFlag(e.feature_flag_key);V(n)&&e.variants[n]&&t.dr(e.name,n,e.variants[n].transforms)}else if(e.variants)for(var i in e.variants){var o=e.variants[i];ps.vr(o)&&t.dr(e.name,i,o.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}onFeatureFlags(e){if(this._is_bot())ps.ur("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(q(this.hr))return this.hr=new Map,this.loadIfEnabled(),void this.previewWebExperiment();ps.ur("applying feature flags",e),e.forEach(e=>{var t;if(this.hr&&null!=(t=this.hr)&&t.has(e)){var r,n=this._instance.getFeatureFlag(e),i=null==(r=this.hr)?void 0:r.get(e);n&&null!=i&&i.variants[n]&&this.dr(i.name,n,i.variants[n].transforms)}})}}previewWebExperiment(){var e=ps.getWindowLocation();if(null!=e&&e.search){var t=lr(null==e?void 0:e.search,"__experiment_id"),r=lr(null==e?void 0:e.search,"__experiment_variant");t&&r&&(ps.ur("previewing web experiments "+t+" && "+r),this.getWebExperiments(e=>{this.cr(parseInt(t),r,e)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,r){if(this._instance.config.disable_web_experiments&&!r)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!t)return e(n);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:t=>{if(200!==t.statusCode||!t.json)return e([]);var r=t.json.experiments||[];return e(r)}})}cr(e,t,r){var n=r.filter(t=>t.id===e);n&&n.length>0&&(ps.ur("Previewing web experiment ["+n[0].name+"] with variant ["+t+"]"),this.dr(n[0].name,t,n[0].variants[t].transforms))}static vr(e){return!q(e.conditions)&&ps.pr(e)&&ps.gr(e)}static pr(e){var t;if(q(e.conditions)||q(null==(t=e.conditions)?void 0:t.url))return!0;var r,n,i,o=ps.getWindowLocation();return!!o&&(null==(r=e.conditions)||!r.url||ds[null!==(n=null==(i=e.conditions)?void 0:i.urlMatchType)&&void 0!==n?n:"icontains"](e.conditions.url,o))}static getWindowLocation(){return null==l?void 0:l.location}static gr(e){var t;if(q(e.conditions)||q(null==(t=e.conditions)?void 0:t.utm))return!0;var r=ni();if(r.utm_source){var n,i,o,s,a,l,c,u,d=null==(n=e.conditions)||null==(n=n.utm)||!n.utm_campaign||(null==(i=e.conditions)||null==(i=i.utm)?void 0:i.utm_campaign)==r.utm_campaign,p=null==(o=e.conditions)||null==(o=o.utm)||!o.utm_source||(null==(s=e.conditions)||null==(s=s.utm)?void 0:s.utm_source)==r.utm_source,h=null==(a=e.conditions)||null==(a=a.utm)||!a.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==r.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)==r.utm_term;return d&&h&&f&&p}return!1}static ur(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Ce.info("[WebExperiments] "+e,r)}dr(e,t,r){this._is_bot()?ps.ur("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?r.forEach(r=>{if(r.selector){var n;ps.ur("applying transform of variant "+t+" for experiment "+e+" ",r);var i=null==(n=document)?void 0:n.querySelectorAll(r.selector);null==i||i.forEach(e=>{var t=e;r.html&&(t.innerHTML=r.html),r.css&&t.setAttribute("style",r.css)})}}):ps.ur("Control variants leave the page unmodified.")}_is_bot(){return h&&this._instance?as(h,this._instance.config.custom_blocked_useragents):void 0}}var hs=$e("[PostHog ExternalIntegrations]"),fs={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class gs{constructor(e){this._instance=e}it(e,t){var r;null==(r=b.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,e,e=>{if(e)return hs.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e=this,t=function(t){var r,i,o;!n||null!=(r=b.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[t]||e.it(fs[t],()=>{var r;null==(r=b.__PosthogExtensions__)||null==(r=r.integrations)||null==(r=r[t])||r.start(e._instance)}),!n&&null!=(i=b.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[t]&&(null==(o=b.__PosthogExtensions__)||null==(o=o.integrations)||null==(o=o[t])||o.stop())};for(var[r,n]of Object.entries(null!==(i=this._instance.config.integrations)&&void 0!==i?i:{})){var i;t(r)}}}var vs="[SessionRecording]",ms=$e(vs);class _s{get started(){var e;return!(null==(e=this._r)||!e.isStarted)}get status(){return this._r?this._r.status:this.mr&&!this.yr?"disabled":"lazy_loading"}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.mr=!1,this.br=void 0,this._instance=e,!this._instance.sessionManager)throw ms.error("started without valid sessionManager"),new Error(vs+" started without valid sessionManager. This is a bug.");if("always"===this._instance.config.cookieless_mode)throw new Error(vs+' cannot be used with cookieless_mode="always"')}get yr(){var e,t=!(null==(e=this._instance.get_property(ot))||!e.enabled),r=!this._instance.config.disable_session_recording,n=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return l&&t&&r&&!n}startIfEnabledOrStop(e){var t;if(!this.yr||null==(t=this._r)||!t.isStarted){var r=!B(Object.assign)&&!B(Array.from);this.yr&&r?(this.wr(e),ms.info("starting")):this.stopRecording()}}wr(e){var t,r,n;this.yr&&(null!=b&&null!=(t=b.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(r=b.__PosthogExtensions__)&&r.initSessionRecording?this.Er(e):null==(n=b.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,this.Sr,t=>{if(t)return ms.error("could not load recorder",t);this.Er(e)}))}stopRecording(){var e,t;null==(e=this.br)||e.call(this),this.br=void 0,null==(t=this._r)||t.stop()}$r(){var e;null==(e=this._instance.persistence)||e.unregister(at)}kr(e){if(this._instance.persistence){var t,r,n=this._instance.persistence,i=()=>{var t=!1===e.sessionRecording?void 0:e.sessionRecording,r=null==t?void 0:t.sampleRate,i=q(r)?null:parseFloat(r);q(i)&&this.$r();var o=null==t?void 0:t.minimumDurationMilliseconds;n.register({[ot]:E({enabled:!!t},t,{networkPayloadCapture:E({capturePerformance:e.capturePerformance},null==t?void 0:t.networkPayloadCapture),canvasRecording:{enabled:null==t?void 0:t.recordCanvas,fps:null==t?void 0:t.canvasFps,quality:null==t?void 0:t.canvasQuality},sampleRate:i,minimumDurationMilliseconds:B(o)?null:o,endpoint:null==t?void 0:t.endpoint,triggerMatchType:null==t?void 0:t.triggerMatchType,masking:null==t?void 0:t.masking,urlTriggers:null==t?void 0:t.urlTriggers})})};i(),null==(t=this.br)||t.call(this),this.br=null==(r=this._instance.sessionManager)?void 0:r.onSessionId(i)}}onRemoteConfig(e){"sessionRecording"in e?!1!==e.sessionRecording?(this.kr(e),this.mr=!0,this.startIfEnabledOrStop()):this.mr=!0:ms.info("skipping remote config with no sessionRecording",e)}log(e,t){var r;void 0===t&&(t="log"),null!=(r=this._r)&&r.log?this._r.log(e,t):ms.warn("log called before recorder was ready")}get Sr(){var e,t,r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(ot);return(null==r||null==(t=r.scriptConfig)?void 0:t.script)||"lazy-recorder"}Er(e){var t,r;if(null==(t=b.__PosthogExtensions__)||!t.initSessionRecording)throw Error("Called on script loaded before session recording is available");this._r||(this._r=null==(r=b.__PosthogExtensions__)?void 0:r.initSessionRecording(this._instance),this._r._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this._r.start(e)}onRRwebEmit(e){var t;null==(t=this._r)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this._r||null==(t=this._instance.persistence)||t.register({$replay_override_linked_flag:!0}),null==(e=this._r)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this._r||null==(t=this._instance.persistence)||t.register({$replay_override_sampling:!0}),null==(e=this._r)||e.overrideSampling()}overrideTrigger(e){var t,r;this._r||null==(r=this._instance.persistence)||r.register({["url"===e?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}),null==(t=this._r)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this._r)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var r;return!(null==(r=this._r)||!r.tryAddCustomEvent(e,t))}}var ys={},bs=()=>{},ws="posthog",xs=!Qi&&-1===(null==y?void 0:y.indexOf("MSIE"))&&-1===(null==y?void 0:y.indexOf("Mozilla")),Ss=e=>{var t;return E({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:We(null==f?void 0:f.location),persistence:"localStorage+cookie",persistence_name:"",loaded:bs,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,debug:g&&V(null==g?void 0:g.search)&&-1!==g.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_product_tours:!0,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==l||null==(t=l.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_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:e=>{var t="Bad HTTP status: "+e.statusCode+" "+e.text;Ce.error(t)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:Ko},error_tracking:{},_onCapture:bs,__preview_eager_load_replay:!1},(e=>({rageclick:!(e&&e>="2025-11-30")||{content_ignorelist:!0},capture_pageview:!(e&&e>="2025-05-24")||"history_change",session_recording:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{}}))(e))},Es=e=>{var t={};B(e.process_person)||(t.person_profiles=e.process_person),B(e.xhr_headers)||(t.request_headers=e.xhr_headers),B(e.cookie_name)||(t.persistence_name=e.cookie_name),B(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),B(e.store_google)||(t.save_campaign_params=e.store_google),B(e.verbose)||(t.debug=e.verbose);var r=Le({},t,e);return R(e.property_blacklist)&&(B(e.property_denylist)?r.property_denylist=e.property_blacklist:R(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:Ce.error("Invalid value for property_denylist config: "+e.property_denylist)),r};class ks{constructor(){this.__forceAllowLocalhost=!1}get Pr(){return this.__forceAllowLocalhost}set Pr(e){Ce.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Ps{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 ks,this.Tr=!1,this.version=w.LIB_VERSION,this.Rr=new Io,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=Ss(),this.SentryIntegration=Yr,this.sentryIntegration=e=>function(e,t){var r=Gr(e,t);return{name:Hr,processEvent:e=>r(e)}}(this,e),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Cr=!1,this.Ir=null,this.Fr=null,this.Mr=null,this.featureFlags=new So(this),this.toolbar=new Qr(this),this.scrollManager=new Qo(this),this.pageViewManager=new yi(this),this.surveys=new qo(this),this.productTours=new Mo(this),this.experiments=new ps(this),this.exceptions=new po(this),this.rateLimiter=new Ho(this),this.requestRouter=new us(this),this.consent=new Rr(this),this.externalIntegrations=new gs(this),this.people={set:(e,t,r)=>{var n=V(e)?{[e]:t}:e;this.setPersonProperties(n),null==r||r({})},set_once:(e,t,r)=>{var n=V(e)?{[e]:t}:e;this.setPersonProperties(void 0,n),null==r||r({})}},this.on("eventCaptured",e=>Ce.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,r){if(r&&r!==ws){var n,i=null!==(n=ys[r])&&void 0!==n?n:new Ps;return i._init(e,t,r),ys[r]=i,ys[ws][r]=i,i}return this._init(e,t,r)}_init(e,t,r){var n;if(void 0===t&&(t={}),B(e)||U(e))return Ce.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.Or(t.debug),this.Ar=t,this.Dr=[],t.person_profiles&&(this.Fr=t.person_profiles),this.set_config(Le({},Ss(t.defaults),Es(t),{name:r,token:e})),this.config.on_xhr_error&&Ce.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:sr.GZipJS;var i=this.jr();this.persistence=new ko(this.config,i),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new ko(E({},this.config,{persistence:"sessionStorage"}),i);var o=E({},this.persistence.props),s=E({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Lr=new Xo(e=>this.Nr(e),this.config.request_queue_config),this.Ur=new Zo(this),this.__request_queue=[];var a="always"===this.config.cookieless_mode||"on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut();if(a||(this.sessionManager=new ns(this),this.sessionPropsManager=new ts(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ce.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.zr(a)},0)):(Ce.info("Initializing extensions synchronously"),this.zr(a)),w.DEBUG=w.DEBUG||this.config.debug,w.DEBUG&&Ce.info("Starting in debug mode",{this:this,config:t,thisC:E({},this.config),p:o,s:s}),void 0!==(null==(n=t.bootstrap)?void 0:n.distinctID)){var c,u,d=this.config.get_device_id(xr()),p=null!=(c=t.bootstrap)&&c.isIdentifiedID?d:t.bootstrap.distinctID;this.persistence.set_property(vt,null!=(u=t.bootstrap)&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:t.bootstrap.distinctID,$device_id:p})}if(this.Hr()){var h,f,g=Object.keys((null==(h=t.bootstrap)?void 0:h.featureFlags)||{}).filter(e=>{var r;return!(null==(r=t.bootstrap)||null==(r=r.featureFlags)||!r[e])}).reduce((e,r)=>{var n;return e[r]=(null==(n=t.bootstrap)||null==(n=n.featureFlags)?void 0:n[r])||!1,e},{}),v=Object.keys((null==(f=t.bootstrap)?void 0:f.featureFlagPayloads)||{}).filter(e=>g[e]).reduce((e,r)=>{var n,i;return null!=(n=t.bootstrap)&&null!=(n=n.featureFlagPayloads)&&n[r]&&(e[r]=null==(i=t.bootstrap)||null==(i=i.featureFlagPayloads)?void 0:i[r]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:g,featureFlagPayloads:v})}if(a)this.register_once({distinct_id:Et,$device_id:null},"");else if(!this.get_distinct_id()){var m=this.config.get_device_id(xr());this.register_once({distinct_id:m,$device_id:m},""),this.persistence.set_property(vt,"anonymous")}return Ge(l,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),t.segment?function(e,t){var r=e.config.segment;if(!r)return t();!function(e,t){var r=e.config.segment;if(!r)return t();var n=r=>{var n=()=>r.anonymousId()||xr();e.config.get_device_id=n,r.id()&&(e.register({distinct_id:r.id(),$device_id:n()}),e.persistence.set_property(vt,"identified")),t()},i=r.user();"then"in i&&D(i.then)?i.then(e=>n(e)):n(i)}(e,()=>{r.register((e=>{Promise&&Promise.resolve||Wr.warn("This browser does not have Promise support, and can not use the segment integration");var t=(t,r)=>{if(!r)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(Wr.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(Wr.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var n=e.calculateEventProperties(r,t.event.properties);return t.event.properties=Object.assign({},n,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>t(e,e.event.event),page:e=>t(e,"$pageview"),identify:e=>t(e,"$identify"),screen:e=>t(e,"$screen")}})(e)).then(()=>{t()})})}(this,()=>this.Br()):this.Br(),D(this.config._onCapture)&&this.config._onCapture!==bs&&(Ce.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&Ce.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}zr(e){var t=performance.now();this.historyAutocapture=new qr(this),this.historyAutocapture.startIfEnabled();var r=[];r.push(()=>{new tn(this).startIfEnabledOrStop()}),r.push(()=>{var e;this.siteApps=new ss(this),null==(e=this.siteApps)||e.init()}),e||r.push(()=>{this.sessionRecording=new _s(this),this.sessionRecording.startIfEnabledOrStop()}),this.config.disable_scroll_properties||r.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),r.push(()=>{this.autocapture=new gr(this),this.autocapture.startIfEnabled()}),r.push(()=>{this.surveys.loadIfEnabled()}),r.push(()=>{this.productTours.loadIfEnabled()}),r.push(()=>{this.heatmaps=new _i(this),this.heatmaps.startIfEnabled()}),r.push(()=>{this.webVitalsAutocapture=new gi(this)}),r.push(()=>{this.exceptionObserver=new Ur(this),this.exceptionObserver.startIfEnabled()}),r.push(()=>{this.deadClicksAutocapture=new Br(this,jr),this.deadClicksAutocapture.startIfEnabled()}),r.push(()=>{if(this.qr){var e=this.qr;this.qr=void 0,this.fi(e)}}),this.Wr(r,t)}Wr(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.Wr(e,t)},0);var r=e.shift();if(r)try{r()}catch(e){Ce.error("Error initializing extension:",e)}}var n=Math.round(performance.now()-t);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:n}),this.config.__preview_deferred_init_extensions&&Ce.info("PostHog extensions initialized ("+n+"ms)")}fi(e){var t,r,n,i,o,s,a,l;if(!f||!f.body)return Ce.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.fi(e)},500);this.config.__preview_deferred_init_extensions&&(this.qr=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=T(e.supportedCompression,sr.GZipJS)?sr.GZipJS:T(e.supportedCompression,sr.Base64)?sr.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Fr?this.Fr:"identified_only"}),null==(r=this.siteApps)||r.onRemoteConfig(e),null==(n=this.sessionRecording)||n.onRemoteConfig(e),null==(i=this.autocapture)||i.onRemoteConfig(e),null==(o=this.heatmaps)||o.onRemoteConfig(e),this.surveys.onRemoteConfig(e),this.productTours.onRemoteConfig(e),null==(s=this.webVitalsAutocapture)||s.onRemoteConfig(e),null==(a=this.exceptionObserver)||a.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),null==(l=this.deadClicksAutocapture)||l.onRemoteConfig(e)}Br(){try{this.config.loaded(this)}catch(e){Ce.critical("`loaded` function failed",e)}this.Gr(),this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||"always"===this.config.cookieless_mode)&&this.Vr()},1),new Yo(this).load(),this.featureFlags.flags()}Gr(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Lr)||e.enable())}_dom_loaded(){this.is_capturing()&&Re(this.__request_queue,e=>this.Nr(e)),this.__request_queue=[],this.Gr()}_handle_unload(){var e,t;this.config.request_batching?(this.Jr()&&this.capture("$pageleave"),null==(e=this.Lr)||e.unload(),null==(t=this.Ur)||t.unload()):this.Jr()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}ci(e){this.__loaded&&(xs?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=to(e.url,{ip:this.config.ip?1:0}),e.headers=E({},this.config.request_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,r,n,i=E({},e);i.timeout=i.timeout||6e4,i.url=to(i.url,{_:(new Date).getTime().toString(),ver:w.LIB_VERSION,compression:i.compression});var o=null!==(t=i.transport)&&void 0!==t?t:"fetch",s=io.filter(e=>!i.disableTransport||!e.transport||!i.disableTransport.includes(e.transport)),a=null!==(r=null==(n=He(s,e=>e.transport===o))?void 0:n.method)&&void 0!==r?r:s[0].method;if(!a)throw new Error("No available transport method");a(i)})(E({},e,{callback:t=>{var r,n;this.rateLimiter.checkForLimiting(t),t.statusCode>=400&&(null==(r=(n=this.config).on_request_error)||r.call(n,t)),null==e.callback||e.callback(t)}}))))}Nr(e){this.Ur?this.Ur.retriableRequest(e):this.ci(e)}_execute_array(e){var t,r=[],n=[],i=[];Re(e,e=>{e&&(t=e[0],R(t)?i.push(e):D(e)?e.call(this):R(e)&&"alias"===t?r.push(e):R(e)&&-1!==t.indexOf("capture")&&D(this[t])?i.push(e):n.push(e))});var o=function(e,t){Re(e,function(e){if(R(e[0])){var r=t;De(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)}Hr(){var e,t;return(null==(e=this.config.bootstrap)?void 0:e.featureFlags)&&Object.keys(null==(t=this.config.bootstrap)?void 0:t.featureFlags).length>0||!1}push(e){this._execute_array([e])}capture(e,t,r){var n;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Lr){if(this.is_capturing())if(!B(e)&&V(e)){var i=!this.config.opt_out_useragent_filter&&this._is_bot();if(!i||this.config.__preview_capture_bot_pageviews){var o=null!=r&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==o||!o.isRateLimited){null!=t&&t.$current_url&&!V(null==t?void 0:t.$current_url)&&(Ce.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),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 s=new Date,a=(null==r?void 0:r.timestamp)||s,l=xr(),c={uuid:l,event:e,properties:this.calculateEventProperties(e,t||{},a,l)};"$pageview"===e&&this.config.__preview_capture_bot_pageviews&&i&&(c.event="$bot_pageview",c.properties.$browser_type="bot"),o&&(c.properties.$lib_rate_limit_remaining_tokens=o.remainingTokens),(null==r?void 0:r.$set)&&(c.$set=null==r?void 0:r.$set);var u,d="$groupidentify"!==e,p=this.Kr(null==r?void 0:r.$set_once,d);if(p&&(c.$set_once=p),(c=function(e,t){return r=e,n=e=>V(e)&&!z(t)?e.slice(0,t):e,i=new Set,function e(t,r){return t!==Object(t)?n?n(t):t:i.has(t)?void 0:(i.add(t),R(t)?(o=[],Re(t,t=>{o.push(e(t))})):(o={},De(t,(t,r)=>{i.has(t)||(o[r]=e(t,r))})),o);var o}(r);var r,n,i}(c,null!=r&&r._noTruncate?null:this.config.properties_string_max_length)).timestamp=a,B(null==r?void 0:r.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=s),e===Co.DISMISSED||e===Co.SENT){var h=null==t?void 0:t[$o.SURVEY_ID],f=null==t?void 0:t[$o.SURVEY_ITERATION];u={id:h,current_iteration:f},localStorage.getItem(Bo(u))||localStorage.setItem(Bo(u),"true"),c.$set=E({},c.$set,{[jo({id:h,current_iteration:f},e===Co.SENT?"responded":"dismissed")]:!0})}var g=E({},c.properties.$set,c.$set);if(j(g)||this.setPersonPropertiesForFlags(g),!q(this.config.before_send)){var v=this.Yr(c);if(!v)return;c=v}this.Rr.emit("eventCaptured",c);var m={method:"POST",url:null!==(n=null==r?void 0:r._url)&&void 0!==n?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:c,compression:"best-available",batchKey:null==r?void 0:r._batchKey};return!this.config.request_batching||r&&(null==r||!r._batchKey)||null!=r&&r.send_instantly?this.Nr(m):this.Lr.enqueue(m),c}Ce.critical("This capture call is ignored due to client rate limiting.")}}else Ce.error("No event name provided to posthog.capture")}else Ce.uninitializedWarning("posthog.capture")}Ui(e){return this.on("eventCaptured",t=>e(t.event,t))}calculateEventProperties(e,t,r,n,i){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return t;var o=i?void 0:this.persistence.remove_event_timer(e),s=E({},t);if(s.token=this.config.token,s.$config_defaults=this.config.defaults,("always"==this.config.cookieless_mode||"on_reject"==this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut())&&(s.$cookieless_mode=!0),"$snapshot"===e){var a=E({},this.persistence.properties(),this.sessionPersistence.properties());return s.distinct_id=a.distinct_id,(!V(s.distinct_id)&&!W(s.distinct_id)||U(s.distinct_id))&&Ce.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),s}var l,c=pi(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:u,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId(i,r.getTime());s.$session_id=u,s.$window_id=d}this.sessionPropsManager&&Le(s,this.sessionPropsManager.getSessionProps());try{var p;this.sessionRecording&&Le(s,this.sessionRecording.sdkDebugProperties),s.$sdk_debug_retry_queue_size=null==(p=this.Ur)?void 0:p.length}catch(e){s.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===ls.CUSTOM&&(s.$lib_custom_api_host=this.config.api_host),l="$pageview"!==e||i?"$pageleave"!==e||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,n),s=Le(s,l),"$pageview"===e&&f&&(s.title=f.title),!B(o)){var h=r.getTime()-o;s.$duration=parseFloat((h/1e3).toFixed(3))}y&&this.config.opt_out_useragent_filter&&(s.$browser_type=this._is_bot()?"bot":"browser"),(s=Le({},c,this.persistence.properties(),this.sessionPersistence.properties(),s)).$is_identified=this._isIdentified(),R(this.config.property_denylist)?De(this.config.property_denylist,function(e){delete s[e]}):Ce.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var g=this.config.sanitize_properties;g&&(Ce.error("sanitize_properties is deprecated. Use before_send instead"),s=g(s,e));var v=this.Xr();return s.$process_person_profile=v,v&&!i&&this.Qr("_calculate_event_properties"),s}Kr(e,t){var r;if(void 0===t&&(t=!0),!this.persistence||!this.Xr())return e;if(this.Tr)return e;var n=this.persistence.get_initial_props(),i=null==(r=this.sessionPropsManager)?void 0:r.getSetOnceProps(),o=Le({},n,i||{},e||{}),s=this.config.sanitize_properties;return s&&(Ce.error("sanitize_properties is deprecated. Use before_send instead"),o=s(o,"$set_once")),t&&(this.Tr=!0),j(o)?void 0:o}register(e,t){var r;null==(r=this.persistence)||r.register(e,t)}register_once(e,t,r){var n;null==(n=this.persistence)||n.register_once(e,t,r)}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)}Zr(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(e){return t}}isFeatureEnabled(e,t){return this.featureFlags.isFeatureEnabled(e,t)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(e,t,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t,r)}getEarlyAccessFeatures(e,t,r){return void 0===t&&(t=!1),this.featureFlags.getEarlyAccessFeatures(e,t,r)}on(e,t){return this.Rr.on(e,t)}onFeatureFlags(e){return this.featureFlags.onFeatureFlags(e)}onSurveysLoaded(e){return this.surveys.onSurveysLoaded(e)}onSessionId(e){var t,r;return null!==(t=null==(r=this.sessionManager)?void 0:r.onSessionId(e))&&void 0!==t?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys.getSurveys(e,t)}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys.getActiveMatchingSurveys(e,t)}renderSurvey(e,t){this.surveys.renderSurvey(e,t)}displaySurvey(e,t){void 0===t&&(t=Uo),this.surveys.displaySurvey(e,t)}cancelPendingSurvey(e){this.surveys.cancelPendingSurvey(e)}canRenderSurvey(e){return this.surveys.canRenderSurvey(e)}canRenderSurveyAsync(e,t){return void 0===t&&(t=!1),this.surveys.canRenderSurveyAsync(e,t)}identify(e,t,r){if(!this.__loaded||!this.persistence)return Ce.uninitializedWarning("posthog.identify");if(W(e)&&(e=e.toString(),Ce.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))Ce.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(e!==Et){if(this.Qr("posthog.identify")){var n=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var i=n;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}e!==n&&e!==this.get_property(Ke)&&(this.unregister(Ke),this.register({distinct_id:e}));var o="anonymous"===(this.persistence.get_property(vt)||"anonymous");e!==n&&o?(this.persistence.set_property(vt,"identified"),this.setPersonPropertiesForFlags(E({},r||{},t||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.Mr=so(e,t,r),this.featureFlags.setAnonymousDistinctId(n)):(t||r)&&this.setPersonProperties(t,r),e!==n&&(this.reloadFeatureFlags(),this.unregister(gt))}}else Ce.critical('The string "'+Et+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else Ce.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,t){if((e||t)&&this.Qr("posthog.setPersonProperties")){var r=so(this.get_distinct_id(),e,t);this.Mr!==r?(this.setPersonPropertiesForFlags(E({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Mr=r):Ce.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,r){if(e&&t){var n=this.getGroups();n[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:E({},n,{[e]:t})}),r&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:r}),this.setGroupPropertiesForFlags({[e]:r})),n[e]===t||r||this.reloadFeatureFlags()}else Ce.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0),this.featureFlags.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0),this.Qr("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){var t,r,n,i;if(Ce.info("reset"),!this.__loaded)return Ce.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(r=this.sessionPersistence)||r.clear(),this.surveys.reset(),this.featureFlags.reset(),null==(n=this.persistence)||n.set_property(vt,"anonymous"),null==(i=this.sessionManager)||i.resetSessionId(),this.Mr=null,"always"===this.config.cookieless_mode)this.register_once({distinct_id:Et,$device_id:null},"");else{var s=this.config.get_device_id(xr());this.register_once({distinct_id:s,$device_id:e?s:o},"")}this.register({$last_posthog_reset:(new Date).toISOString()},1)}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:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(null!=e&&e.withTimestamp&&r){var i,o=null!==(i=e.timestampLookBack)&&void 0!==i?i:10;if(!r)return n;n+="?t="+Math.max(Math.floor(((new Date).getTime()-r)/1e3)-o,0)}return n}alias(e,t){return e===this.get_property(Ye)?(Ce.critical("Attempting to create alias for existing People user - aborting."),-2):this.Qr("posthog.alias")?(B(t)&&(t=this.get_distinct_id()),e!==t?(this.Zr(Ke,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(Ce.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=E({},this.config);if(L(e)){var r,n,i,o,s;Le(this.config,Es(e));var a=this.jr();null==(r=this.persistence)||r.update_config(this.config,t,a),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new ko(E({},this.config,{persistence:"sessionStorage"}),a);var l=this.Or(this.config.debug);H(l)&&(this.config.debug=l),H(this.config.debug)&&(this.config.debug?(w.DEBUG=!0,Mr.H()&&Mr.G("ph_debug","true"),Ce.info("set_config",{config:e,oldConfig:t,newConfig:E({},this.config)})):(w.DEBUG=!1,Mr.H()&&Mr.V("ph_debug"))),null==(n=this.sessionRecording)||n.startIfEnabledOrStop(),null==(i=this.autocapture)||i.startIfEnabled(),null==(o=this.heatmaps)||o.startIfEnabled(),this.surveys.loadIfEnabled(),this.ts(),null==(s=this.externalIntegrations)||s.startIfEnabledOrStop()}}startSessionRecording(e){var t,r,n,i,o,s=!0===e,a={sampling:s||!(null==e||!e.sampling),linked_flag:s||!(null==e||!e.linked_flag),url_trigger:s||!(null==e||!e.url_trigger),event_trigger:s||!(null==e||!e.event_trigger)};Object.values(a).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),a.sampling&&(null==(r=this.sessionRecording)||r.overrideSampling()),a.linked_flag&&(null==(n=this.sessionRecording)||n.overrideLinkedFlag()),a.url_trigger&&(null==(i=this.sessionRecording)||i.overrideTrigger("url")),a.event_trigger&&(null==(o=this.sessionRecording)||o.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){var r=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(E({},n,t))}loadToolbar(e){return this.toolbar.loadToolbar(e)}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:ws;return t!==ws&&(t=ws+"."+t),t}_isIdentified(){var e,t;return"identified"===(null==(e=this.persistence)?void 0:e.get_property(vt))||"identified"===(null==(t=this.sessionPersistence)?void 0:t.get_property(vt))}Xr(){var e,t;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&j(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[Ke])&&(null==(t=this.persistence)||null==(t=t.props)||!t[xt]))}Jr(){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.Xr()||this.Qr("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Qr(e){return"never"===this.config.person_profiles?(Ce.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Zr(xt,!0),!0)}jr(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut(),t=this.config.opt_out_persistence_by_default||"on_reject"===this.config.cookieless_mode;return this.config.disable_persistence||e&&!!t}ts(){var e,t,r,n,i=this.jr();return(null==(e=this.persistence)?void 0:e.wi)!==i&&(null==(r=this.persistence)||r.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.wi)!==i&&(null==(n=this.sessionPersistence)||n.set_disabled(i)),i}opt_in_capturing(e){var t,r,n;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),null==(r=this.sessionManager)||r.destroy(),this.sessionManager=new ns(this),this.persistence&&(this.sessionPropsManager=new ts(this,this.sessionManager,this.persistence)),this.sessionRecording=new _s(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this.ts(),this.Gr(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),"on_reject"==this.config.cookieless_mode&&this.surveys.loadIfEnabled(),(B(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(n=null==e?void 0:e.captureEventName)&&void 0!==n?n:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Vr()):Ce.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,t;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.ts(),"on_reject"===this.config.cookieless_mode&&(this.register({distinct_id:Et,$device_id:null}),null==(e=this.sessionManager)||e.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,null==(t=this.sessionRecording)||t.stopRecording(),this.sessionRecording=void 0,this.Vr())):Ce.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}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 e===Nr.GRANTED?"granted":e===Nr.DENIED?"denied":"pending"}is_capturing(){return"always"===this.config.cookieless_mode||("on_reject"===this.config.cookieless_mode?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.ts()}_is_bot(){return h?as(h,this.config.custom_blocked_useragents):void 0}Vr(){f&&("visible"===f.visibilityState?this.Cr||(this.Cr=!0,this.capture("$pageview",{title:f.title},{send_instantly:!0}),this.Ir&&(f.removeEventListener("visibilitychange",this.Ir),this.Ir=null)):this.Ir||(this.Ir=this.Vr.bind(this),Ge(f,"visibilitychange",this.Ir)))}debug(e){!1===e?(null==l||l.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==l||l.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}))}O(){var e,t,r,n,i,o,s=this.Ar||{};return"advanced_disable_flags"in s?!!s.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(Ce.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):(r="advanced_disable_decide",n=Ce,i=(t="advanced_disable_flags")in(e=s)&&!B(e[t]),o=r in e&&!B(e[r]),i?e[t]:!!o&&(n&&n.warn("Config field '"+r+"' is deprecated. Please use '"+t+"' instead. The old field will be removed in a future major version."),e[r]))}Yr(e){if(q(this.config.before_send))return e;var t=R(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var n of t){if(r=n(r),q(r)){var i="Event '"+e.event+"' was rejected in beforeSend function";return G(e.event)?Ce.warn(i+". This can cause unexpected behavior."):Ce.info(i),null}r.properties&&!j(r.properties)||Ce.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var e;return null==(e=this.pageViewManager.Vt)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(r)})}Or(e){var t=H(e)&&!e,r=Mr.H()&&"true"===Mr.q("ph_debug");return!t&&(!!r||e)}}!function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=Ue(e.prototype[t[r]])}(Ps,["identify"]);var Os,Ms=(Os=ys[ws]=new Ps,function(){function e(){e.done||(e.done=!0,xs=!1,De(ys,function(e){e._dom_loaded()}))}null!=f&&f.addEventListener?"complete"===f.readyState?e():Ge(f,"DOMContentLoaded",e,{capture:!1}):l&&Ce.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),Os),Ts="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function As(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cs,$s,Fs,Is={},Ns={},Rs={exports:{}};function Ds(){return Cs||(Cs=1,Rs.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});t.push(0);var r=t[0],n=t[1];if(10===r)switch(n){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(r){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),s=Math.max(i,o),a=0,l=e.map([t,r],function(t){var r=s-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(n&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===a)return 0;s-=1}else if(l[0][s]<l[1][s])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var a=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){n[t]=e[t]})};for(t=0,r=o.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},t.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},t.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},t.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},t.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(r=null)&&s(t.prototype,r),n&&s(t,n),e}();t.default=a,e.exports=t.default},91:function(e,t,r){t.__esModule=!0,t.default=void 0;var n=l(r(92)),i=l(r(93)),o=l(r(94)),s=l(r(95)),a=l(r(17));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach(function(t){var s=e[t];"string"==typeof s?(i[t]=s,o+=1):"object"==typeof s&&(r[t]=s,n+=1)}),n>0){var s=Object.keys(r),l=a.default.find(s,function(e){return t.isOS(e)});if(l){var c=this.satisfies(r[l]);if(void 0!==c)return c}var u=a.default.find(s,function(e){return t.isPlatform(e)});if(u){var d=this.satisfies(r[u]);if(void 0!==d)return d}}if(o>0){var p=Object.keys(i),h=a.default.find(p,function(e){return t.isBrowser(e,!0)});if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=a.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=c,e.exports=t.default},92:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/gptbot/i],describe:function(e){var t={name:"GPTBot"},r=i.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chatgpt-user/i],describe:function(e){var t={name:"ChatGPT-User"},r=i.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/oai-searchbot/i],describe:function(e){var t={name:"OAI-SearchBot"},r=i.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(e){var t={name:"ClaudeBot"},r=i.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(e){var t={name:"Omgilibot"},r=i.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/diffbot/i],describe:function(e){var t={name:"Diffbot"},r=i.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/perplexitybot/i],describe:function(e){var t={name:"PerplexityBot"},r=i.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/perplexity-user/i],describe:function(e){var t={name:"Perplexity-User"},r=i.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/youbot/i],describe:function(e){var t={name:"YouBot"},r=i.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/meta-webindexer/i],describe:function(e){var t={name:"Meta-WebIndexer"},r=i.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/meta-externalads/i],describe:function(e){var t={name:"Meta-ExternalAds"},r=i.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/meta-externalagent/i],describe:function(e){var t={name:"Meta-ExternalAgent"},r=i.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/meta-externalfetcher/i],describe:function(e){var t={name:"Meta-ExternalFetcher"},r=i.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/amazonbot/i],describe:function(e){var t={name:"AmazonBot"},r=i.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/bingbot/i],describe:function(e){var t={name:"BingCrawler"},r=i.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/baiduspider/i],describe:function(e){var t={name:"BaiduSpider"},r=i.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/duckduckbot/i],describe:function(e){var t={name:"DuckDuckBot"},r=i.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ia_archiver/i],describe:function(e){var t={name:"InternetArchiveCrawler"},r=i.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/PaleMoon/i],describe:function(e){var t={name:"Pale Moon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/librewolf/i],describe:function(e){var t={name:"LibreWolf"},r=i.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(e){var t={name:"Sogou Browser"},r=i.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,e),n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),o=i.default.getFirstMatch(/se ([\d.]+)x/i,e),s=r||n||o;return s&&(t.version=s),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:[/OpenHarmony/i],describe:function(e){var t=i.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.HarmonyOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/amazonbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/yahoo/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(e){var t=i.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),r={type:o.PLATFORMS_MAP.mobile,vendor:"Nokia"};return t&&(r.model=t),r}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})),Rs.exports}function Ls(){return $s||($s=1,function(e){var t=Ns&&Ns.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.requestVideoPermissions=e.requestAudioPermissions=e.requestMediaPermissions=e.MediaPermissionsErrorType=void 0;const r=t(Ds());var n;!function(e){e.SystemPermissionDenied="SystemPermissionDenied",e.UserPermissionDenied="UserPermissionDenied",e.CouldNotStartVideoSource="CouldNotStartVideoSource",e.Generic="Generic"}(n=e.MediaPermissionsErrorType||(e.MediaPermissionsErrorType={}));e.requestMediaPermissions=e=>new Promise((t,i)=>{navigator.mediaDevices.getUserMedia(null!=e?e:{audio:!0,video:!0}).then(e=>{e.getTracks().forEach(e=>{e.stop()}),t(!0)}).catch(e=>{const t=r.default.getParser(window.navigator.userAgent).getBrowserName(),o=e.name,s=e.message;let a=n.Generic;"Chrome"===t?"NotAllowedError"===o?"Permission denied by system"===s?a=n.SystemPermissionDenied:"Permission denied"===s&&(a=n.UserPermissionDenied):"NotReadableError"===o&&(a=n.CouldNotStartVideoSource):"Safari"===t?"NotAllowedError"===o&&(a=n.UserPermissionDenied):"Microsoft Edge"===t?"NotAllowedError"===o?a=n.UserPermissionDenied:"NotReadableError"===o&&(a=n.CouldNotStartVideoSource):"Firefox"===t&&("NotFoundError"===o||"NotReadableError"===o?a=n.SystemPermissionDenied:"NotAllowedError"===o?a=n.UserPermissionDenied:"AbortError"===o&&(a=n.CouldNotStartVideoSource)),i({type:a,name:e.name,message:e.message})})});e.requestAudioPermissions=()=>(0,e.requestMediaPermissions)({audio:!0,video:!1});e.requestVideoPermissions=()=>(0,e.requestMediaPermissions)({audio:!1,video:!0})}(Ns)),Ns}var js=(Fs||(Fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.requestMediaPermissions=e.MediaPermissionsErrorType=void 0;var t=Ls();Object.defineProperty(e,"MediaPermissionsErrorType",{enumerable:!0,get:function(){return t.MediaPermissionsErrorType}}),Object.defineProperty(e,"requestMediaPermissions",{enumerable:!0,get:function(){return t.requestMediaPermissions}})}(Is)),Is),Bs=Ls();const Vs=[];for(let e=0;e<256;++e)Vs.push((e+256).toString(16).slice(1));let Us;const zs=new Uint8Array(16);var qs={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ws(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!Us){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Us=crypto.getRandomValues.bind(crypto)}return Us(zs)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(Vs[e[t+0]]+Vs[e[t+1]]+Vs[e[t+2]]+Vs[e[t+3]]+"-"+Vs[e[t+4]]+Vs[e[t+5]]+"-"+Vs[e[t+6]]+Vs[e[t+7]]+"-"+Vs[e[t+8]]+Vs[e[t+9]]+"-"+Vs[e[t+10]]+Vs[e[t+11]]+Vs[e[t+12]]+Vs[e[t+13]]+Vs[e[t+14]]+Vs[e[t+15]]).toLowerCase()}(n)}const Hs={black:"#000",white:"#fff"},Gs="#e57373",Ys="#ef5350",Ks="#f44336",Xs="#d32f2f",Js="#c62828",Zs="#f3e5f5",Qs="#ce93d8",ea="#ba68c8",ta="#ab47bc",ra="#9c27b0",na="#7b1fa2",ia="#e3f2fd",oa="#90caf9",sa="#42a5f5",aa="#1976d2",la="#1565c0",ca="#4fc3f7",ua="#29b6f6",da="#03a9f4",pa="#0288d1",ha="#01579b",fa="#81c784",ga="#66bb6a",va="#4caf50",ma="#388e3c",_a="#2e7d32",ya="#1b5e20",ba="#ffb74d",wa="#ffa726",xa="#ff9800",Sa="#f57c00",Ea="#e65100",ka={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Pa(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}var Oa="$$material";function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ma.apply(null,arguments)}var Ta=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0!==e.speedy&&e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r,this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),Aa="-ms-",Ca="-moz-",$a="-webkit-",Fa="comm",Ia="rule",Na="decl",Ra="@keyframes",Da=Math.abs,La=String.fromCharCode,ja=Object.assign;function Ba(e){return e.trim()}function Va(e,t,r){return e.replace(t,r)}function Ua(e,t){return e.indexOf(t)}function za(e,t){return 0|e.charCodeAt(t)}function qa(e,t,r){return e.slice(t,r)}function Wa(e){return e.length}function Ha(e){return e.length}function Ga(e,t){return t.push(e),e}var Ya=1,Ka=1,Xa=0,Ja=0,Za=0,Qa="";function el(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ya,column:Ka,length:s,return:""}}function tl(e,t){return ja(el("",null,null,"",null,null,0),e,{length:-e.length},t)}function rl(){return Za=Ja>0?za(Qa,--Ja):0,Ka--,10===Za&&(Ka=1,Ya--),Za}function nl(){return Za=Ja<Xa?za(Qa,Ja++):0,Ka++,10===Za&&(Ka=1,Ya++),Za}function il(){return za(Qa,Ja)}function ol(){return Ja}function sl(e,t){return qa(Qa,e,t)}function al(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ll(e){return Ya=Ka=1,Xa=Wa(Qa=e),Ja=0,[]}function cl(e){return Qa="",e}function ul(e){return Ba(sl(Ja-1,hl(91===e?e+2:40===e?e+1:e)))}function dl(e){for(;(Za=il())&&Za<33;)nl();return al(e)>2||al(Za)>3?"":" "}function pl(e,t){for(;--t&&nl()&&!(Za<48||Za>102||Za>57&&Za<65||Za>70&&Za<97););return sl(e,ol()+(t<6&&32==il()&&32==nl()))}function hl(e){for(;nl();)switch(Za){case e:return Ja;case 34:case 39:34!==e&&39!==e&&hl(Za);break;case 40:41===e&&hl(e);break;case 92:nl()}return Ja}function fl(e,t){for(;nl()&&e+Za!==57&&(e+Za!==84||47!==il()););return"/*"+sl(t,Ja-1)+"*"+La(47===e?e:nl())}function gl(e){for(;!al(il());)nl();return sl(e,Ja)}function vl(e){return cl(ml("",null,null,null,[""],e=ll(e),0,[0],e))}function ml(e,t,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,p=0,h=0,f=0,g=1,v=1,m=1,_=0,y="",b=i,w=o,x=n,S=y;v;)switch(f=_,_=nl()){case 40:if(108!=f&&58==za(S,d-1)){-1!=Ua(S+=Va(ul(_),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:S+=ul(_);break;case 9:case 10:case 13:case 32:S+=dl(f);break;case 92:S+=pl(ol()-1,7);continue;case 47:switch(il()){case 42:case 47:Ga(yl(fl(nl(),ol()),t,r),l);break;default:S+="/"}break;case 123*g:a[c++]=Wa(S)*m;case 125*g:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+u:-1==m&&(S=Va(S,/\f/g,"")),h>0&&Wa(S)-d&&Ga(h>32?bl(S+";",n,r,d-1):bl(Va(S," ","")+";",n,r,d-2),l);break;case 59:S+=";";default:if(Ga(x=_l(S,t,r,c,u,i,a,y,b=[],w=[],d),o),123===_)if(0===u)ml(S,t,x,x,b,o,d,a,w);else switch(99===p&&110===za(S,3)?100:p){case 100:case 108:case 109:case 115:ml(e,x,x,n&&Ga(_l(e,x,x,0,0,i,a,y,i,b=[],d),w),i,w,d,a,n?b:w);break;default:ml(S,x,x,x,[""],w,0,a,w)}}c=u=h=0,g=m=1,y=S="",d=s;break;case 58:d=1+Wa(S),h=f;default:if(g<1)if(123==_)--g;else if(125==_&&0==g++&&125==rl())continue;switch(S+=La(_),_*g){case 38:m=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(Wa(S)-1)*m,m=1;break;case 64:45===il()&&(S+=ul(nl())),p=il(),u=d=Wa(y=S+=gl(ol())),_++;break;case 45:45===f&&2==Wa(S)&&(g=0)}}return o}function _l(e,t,r,n,i,o,s,a,l,c,u){for(var d=i-1,p=0===i?o:[""],h=Ha(p),f=0,g=0,v=0;f<n;++f)for(var m=0,_=qa(e,d+1,d=Da(g=s[f])),y=e;m<h;++m)(y=Ba(g>0?p[m]+" "+_:Va(_,/&\f/g,p[m])))&&(l[v++]=y);return el(e,t,r,0===i?Ia:a,l,c,u)}function yl(e,t,r){return el(e,t,r,Fa,La(Za),qa(e,2,-2),0)}function bl(e,t,r,n){return el(e,t,r,Na,qa(e,0,n),qa(e,n+1,-1),n)}function wl(e,t){for(var r="",n=Ha(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function xl(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Na:return e.return=e.return||e.value;case Fa:return"";case Ra:return e.return=e.value+"{"+wl(e.children,n)+"}";case Ia:e.value=e.props.join(",")}return Wa(r=wl(e.children,n))?e.return=e.value+"{"+r+"}":""}function Sl(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var El=function(e,t,r){for(var n=0,i=0;n=i,i=il(),38===n&&12===i&&(t[r]=1),!al(i);)nl();return sl(e,Ja)},kl=function(e,t){return cl(function(e,t){var r=-1,n=44;do{switch(al(n)){case 0:38===n&&12===il()&&(t[r]=1),e[r]+=El(Ja-1,t,r);break;case 2:e[r]+=ul(n);break;case 4:if(44===n){e[++r]=58===il()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=La(n)}}while(n=nl());return e}(ll(e),t))},Pl=new WeakMap,Ol=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Pl.get(r))&&!n){Pl.set(e,!0);for(var i=[],o=kl(t,i),s=r.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},Ml=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Tl=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Al=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Cl=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},$l=function(e,t,r){Al(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Cl(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!Al(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Cl(e)))};function Fl(e,t){switch(function(e,t){return 45^za(e,0)?(((t<<2^za(e,0))<<2^za(e,1))<<2^za(e,2))<<2^za(e,3):0}(e,t)){case 5103:return $a+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $a+e+Ca+e+Aa+e+e;case 6828:case 4268:return $a+e+Aa+e+e;case 6165:return $a+e+Aa+"flex-"+e+e;case 5187:return $a+e+Va(e,/(\w+).+(:[^]+)/,$a+"box-$1$2"+Aa+"flex-$1$2")+e;case 5443:return $a+e+Aa+"flex-item-"+Va(e,/flex-|-self/,"")+e;case 4675:return $a+e+Aa+"flex-line-pack"+Va(e,/align-content|flex-|-self/,"")+e;case 5548:return $a+e+Aa+Va(e,"shrink","negative")+e;case 5292:return $a+e+Aa+Va(e,"basis","preferred-size")+e;case 6060:return $a+"box-"+Va(e,"-grow","")+$a+e+Aa+Va(e,"grow","positive")+e;case 4554:return $a+Va(e,/([^-])(transform)/g,"$1"+$a+"$2")+e;case 6187:return Va(Va(Va(e,/(zoom-|grab)/,$a+"$1"),/(image-set)/,$a+"$1"),e,"")+e;case 5495:case 3959:return Va(e,/(image-set\([^]*)/,$a+"$1$`$1");case 4968:return Va(Va(e,/(.+:)(flex-)?(.*)/,$a+"box-pack:$3"+Aa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$a+e+e;case 4095:case 3583:case 4068:case 2532:return Va(e,/(.+)-inline(.+)/,$a+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wa(e)-1-t>6)switch(za(e,t+1)){case 109:if(45!==za(e,t+4))break;case 102:return Va(e,/(.+:)(.+)-([^]+)/,"$1"+$a+"$2-$3$1"+Ca+(108==za(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ua(e,"stretch")?Fl(Va(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==za(e,t+1))break;case 6444:switch(za(e,Wa(e)-3-(~Ua(e,"!important")&&10))){case 107:return Va(e,":",":"+$a)+e;case 101:return Va(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$a+(45===za(e,14)?"inline-":"")+"box$3$1"+$a+"$2$3$1"+Aa+"$2box$3")+e}break;case 5936:switch(za(e,t+11)){case 114:return $a+e+Aa+Va(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $a+e+Aa+Va(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $a+e+Aa+Va(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $a+e+Aa+e+e}return e}var Il,Nl=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Na:e.return=Fl(e.value,e.length);break;case Ra:return wl([tl(e,{value:Va(e.value,"@","@"+$a)})],n);case Ia:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wl([tl(e,{props:[Va(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return wl([tl(e,{props:[Va(t,/:(plac\w+)/,":"+$a+"input-$1")]}),tl(e,{props:[Va(t,/:(plac\w+)/,":-moz-$1")]}),tl(e,{props:[Va(t,/:(plac\w+)/,Aa+"input-$1")]})],n)}return""})}}],Rl=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;Il=function(e){var t=e.match(Rl);if(t)return t[t.length-1]};var Dl=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n=e.stylisPlugins||Nl;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i,o,s={},a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;a.push(e)});var l=[Ol,Ml];l.push(function(e){return function(t,r,n){if("rule"===t.type&&!e.compat){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent?t.parent.children:n,s=o.length-1;s>=0;s--){var a=o[s];if(a.line<t.line)break;if(a.column<t.column){if(Tl(a))return;break}}i.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}}({get compat(){return p.compat}}),$l);var c,u=[xl,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==Fa&&c.insert(e.value+"{}"))}],d=function(e){var t=Ha(e);return function(r,n,i,o){for(var s="",a=0;a<t;a++)s+=e[a](r,n,i,o)||"";return s}}(l.concat(n,u));o=function(e,t,r,n){if(c=r,Il){var i=Il(t.styles);i&&(c={insert:function(e){r.insert(e+i)}})}!function(e){wl(vl(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Ta({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return p.sheet.hydrate(a),p};function Ll(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var jl=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Bl=function(e,t,r){jl(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var Vl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ul="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",zl="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ql=/[A-Z]|^ms/g,Wl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hl=function(e){return 45===e.charCodeAt(1)},Gl=function(e){return null!=e&&"boolean"!=typeof e},Yl=Sl(function(e){return Hl(e)?e:e.replace(ql,"-$&").toLowerCase()}),Kl=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Wl,function(e,t,r){return ic={name:t,styles:r,next:ic},t})}return 1===Vl[e]||Hl(e)||"number"!=typeof t||0===t?t:t+"px"},Xl=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Jl=["normal","none","initial","inherit","unset"],Zl=Kl,Ql=/^-ms-/,ec=/-(.)/g,tc={};Kl=function(e,t){if("content"===e&&("string"!=typeof t||-1===Jl.indexOf(t)&&!Xl.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=Zl(e,t);return""===r||Hl(e)||-1===e.indexOf("-")||void 0!==tc[e]||(tc[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ql,"ms-").replace(ec,function(e,t){return t.toUpperCase()})+"?")),r};var rc="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function nc(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(n))throw new Error(rc);return n}switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return ic={name:i.name,styles:i.styles,next:ic},i.name;var o=r;if(void 0!==o.styles){var s=o.next;if(void 0!==s)for(;void 0!==s;)ic={name:s.name,styles:s.styles,next:ic},s=s.next;return o.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=nc(e,t,r[i])+";";else for(var o in r){var s=r[o];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":Gl(a)&&(n+=Yl(o)+":"+Kl(o,a)+";")}else{if("NO_COMPONENT_SELECTOR"===o)throw new Error(rc);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=nc(e,t,s);switch(o){case"animation":case"animationName":n+=Yl(o)+":"+l+";";break;default:"undefined"===o&&console.error(zl),n+=o+"{"+l+"}"}}else for(var c=0;c<s.length;c++)Gl(s[c])&&(n+=Yl(o)+":"+Kl(o,s[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var a=ic,l=r(e);return ic=a,nc(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var c=[],u=r.replace(Wl,function(e,t,r){var n="animation"+c.length;return c.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+u+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+u+"`")}var d=r;if(null==t)return d;var p=t[d];return void 0!==p?p:d}var ic,oc=/label:\s*([^\s;{]+)\s*(;|$)/g;function sc(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";ic=void 0;var o=e[0];if(null==o||void 0===o.raw)n=!1,i+=nc(r,t,o);else{var s=o;void 0===s[0]&&console.error(Ul),i+=s[0]}for(var a=1;a<e.length;a++)if(i+=nc(r,t,e[a]),n){var l=o;void 0===l[a]&&console.error(Ul),i+=l[a]}oc.lastIndex=0;for(var c,u="";null!==(c=oc.exec(i));)u+="-"+c[1];var d=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+u;return{name:d,styles:i,next:ic,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var ac=!!i.useInsertionEffect&&i.useInsertionEffect,lc=ac||function(e){return e()},cc=ac||i.useLayoutEffect,uc=i.createContext("undefined"!=typeof HTMLElement?Dl({key:"css"}):null);uc.displayName="EmotionCacheContext",uc.Provider;var dc=function(t){return e.forwardRef(function(r,n){var i=e.useContext(uc);return t(r,i,n)})},pc=i.createContext({});pc.displayName="EmotionThemeContext";var hc={}.hasOwnProperty,fc=function(e){var t=e.split(".");return t[t.length-1]},gc=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?fc(t[1]):void 0},vc=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),mc=function(e){return e.replace(/\$/g,"-")},_c="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yc="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",bc=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return jl(t,r,n),lc(function(){return Bl(t,r,n)}),null},wc=dc(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[_c],s=[n],a="";"string"==typeof e.className?a=Ll(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var l=sc(s,void 0,i.useContext(pc));if(-1===l.name.indexOf("-")){var c=e[yc];c&&(l=sc([l,"label:"+c+";"]))}a+=t.key+"-"+l.name;var u={};for(var d in e)hc.call(e,d)&&"css"!==d&&d!==_c&&d!==yc&&(u[d]=e[d]);return u.className=a,r&&(u.ref=r),i.createElement(i.Fragment,null,i.createElement(bc,{cache:t,serialized:l,isStringTag:"string"==typeof o}),i.createElement(o,u))});wc.displayName="EmotionCssPropInternal";var xc=wc,Sc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ec=Sl(function(e){return Sc.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),kc=function(e){return"theme"!==e},Pc=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ec:kc},Oc=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Mc="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Tc=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return jl(t,r,n),lc(function(){return Bl(t,r,n)}),null},Ac=function e(t,r){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var n,o,s=t.__emotion_real===t,a=s&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var l=Oc(t,r,s),c=l||Pc(a),u=!c("as");return function(){var d=arguments,p=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&p.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{var h=d[0];void 0===h[0]&&console.error(Mc),p.push(h[0]);for(var f=d.length,g=1;g<f;g++)void 0===h[g]&&console.error(Mc),p.push(d[g],h[g])}var v=dc(function(e,t,r){var n=u&&e.as||a,s="",d=[],h=e;if(null==e.theme){for(var f in h={},e)h[f]=e[f];h.theme=i.useContext(pc)}"string"==typeof e.className?s=Ll(t.registered,d,e.className):null!=e.className&&(s=e.className+" ");var g=sc(p.concat(d),t.registered,h);s+=t.key+"-"+g.name,void 0!==o&&(s+=" "+o);var v=u&&void 0===l?Pc(n):c,m={};for(var _ in e)u&&"as"===_||v(_)&&(m[_]=e[_]);return m.className=s,r&&(m.ref=r),i.createElement(i.Fragment,null,i.createElement(Tc,{cache:t,serialized:g,isStringTag:"string"==typeof n}),i.createElement(n,m))});return v.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=p,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),v.withComponent=function(t,n){return e(t,Ma({},r,n,{shouldForwardProp:Oc(v,n,!0)})).apply(void 0,p)},v}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Ac[e]=Ac(e)});var Cc,$c={exports:{}},Fc={exports:{}},Ic={};var Nc,Rc,Dc,Lc,jc,Bc,Vc,Uc,zc,qc,Wc,Hc,Gc,Yc,Kc,Xc={};
|
|
2
|
+
/** @license React v16.13.1
|
|
3
|
+
* react-is.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/function Jc(){return Rc||(Rc=1,"production"===process.env.NODE_ENV?Fc.exports=function(){if(Cc)return Ic;Cc=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case n:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case a:case u:case f:case h:case s:return e;default:return p}}case r:return p}}}function b(e){return y(e)===c}return Ic.AsyncMode=l,Ic.ConcurrentMode=c,Ic.ContextConsumer=a,Ic.ContextProvider=s,Ic.Element=t,Ic.ForwardRef=u,Ic.Fragment=n,Ic.Lazy=f,Ic.Memo=h,Ic.Portal=r,Ic.Profiler=o,Ic.StrictMode=i,Ic.Suspense=d,Ic.isAsyncMode=function(e){return b(e)||y(e)===l},Ic.isConcurrentMode=b,Ic.isContextConsumer=function(e){return y(e)===a},Ic.isContextProvider=function(e){return y(e)===s},Ic.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ic.isForwardRef=function(e){return y(e)===u},Ic.isFragment=function(e){return y(e)===n},Ic.isLazy=function(e){return y(e)===f},Ic.isMemo=function(e){return y(e)===h},Ic.isPortal=function(e){return y(e)===r},Ic.isProfiler=function(e){return y(e)===o},Ic.isStrictMode=function(e){return y(e)===i},Ic.isSuspense=function(e){return y(e)===d},Ic.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===o||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===v||e.$$typeof===m||e.$$typeof===_||e.$$typeof===g)},Ic.typeOf=y,Ic}():Fc.exports=(Nc||(Nc=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case l:case c:case n:case o:case i:case d:return g;default:var v=g&&g.$$typeof;switch(v){case a:case u:case f:case h:case s:return v;default:return p}}case r:return p}}}var b=l,w=c,x=a,S=s,E=t,k=u,P=n,O=f,M=h,T=r,A=o,C=i,$=d,F=!1;function I(e){return y(e)===c}Xc.AsyncMode=b,Xc.ConcurrentMode=w,Xc.ContextConsumer=x,Xc.ContextProvider=S,Xc.Element=E,Xc.ForwardRef=k,Xc.Fragment=P,Xc.Lazy=O,Xc.Memo=M,Xc.Portal=T,Xc.Profiler=A,Xc.StrictMode=C,Xc.Suspense=$,Xc.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(e)||y(e)===l},Xc.isConcurrentMode=I,Xc.isContextConsumer=function(e){return y(e)===a},Xc.isContextProvider=function(e){return y(e)===s},Xc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Xc.isForwardRef=function(e){return y(e)===u},Xc.isFragment=function(e){return y(e)===n},Xc.isLazy=function(e){return y(e)===f},Xc.isMemo=function(e){return y(e)===h},Xc.isPortal=function(e){return y(e)===r},Xc.isProfiler=function(e){return y(e)===o},Xc.isStrictMode=function(e){return y(e)===i},Xc.isSuspense=function(e){return y(e)===d},Xc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===o||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===v||e.$$typeof===m||e.$$typeof===_||e.$$typeof===g)},Xc.typeOf=y}()),Xc)),Fc.exports}
|
|
10
|
+
/*
|
|
11
|
+
object-assign
|
|
12
|
+
(c) Sindre Sorhus
|
|
13
|
+
@license MIT
|
|
14
|
+
*/function Zc(){if(Lc)return Dc;Lc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return Dc=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(n,i){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))t.call(o,c)&&(a[c]=o[c]);if(e){s=e(o);for(var u=0;u<s.length;u++)r.call(o,s[u])&&(a[s[u]]=o[s[u]])}}return a},Dc}function Qc(){if(Bc)return jc;Bc=1;return jc="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function eu(){return Uc?Vc:(Uc=1,Vc=Function.call.bind(Object.prototype.hasOwnProperty))}function tu(){if(qc)return zc;qc=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Qc(),r={},n=eu();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in i)if(n(i,c)){var u;try{if("function"!=typeof i[c]){var d=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=i[c](o,c,a,s,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in r)){r[u.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+u.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},zc=i}function ru(){if(Hc)return Wc;Hc=1;var e=Jc(),t=Zc(),r=Qc(),n=eu(),i=tu(),o=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Wc=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var u="<<anonymous>>",d={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:f(s),arrayOf:function(e){return f(function(t,n,i,o,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+o+" `"+s+"` of type `"+_(a)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,i,o,s+"["+l+"]",r);if(c instanceof Error)return c}return null})},element:f(function(e,t,r,n,i){var o=e[t];return a(o)?null:new h("Invalid "+n+" `"+i+"` of type `"+_(o)+"` supplied to `"+r+"`, expected a single ReactElement.")}),elementType:f(function(t,r,n,i,o){var s=t[r];return e.isValidElementType(s)?null:new h("Invalid "+i+" `"+o+"` of type `"+_(s)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return f(function(t,r,n,i,o){if(!(t[r]instanceof e)){var s=e.name||u;return new h("Invalid "+i+" `"+o+"` of type `"+(((a=t[r]).constructor&&a.constructor.name?a.constructor.name:u)+"` supplied to `")+n+"`, expected instance of `"+s+"`.")}var a;return null})},node:f(function(e,t,r,n,i){return m(e[t])?null:new h("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")}),objectOf:function(e){return f(function(t,i,o,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=t[i],c=_(l);if("object"!==c)return new h("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var u in l)if(n(l,u)){var d=e(l,u,o,s,a+"."+u,r);if(d instanceof Error)return d}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;return f(function(t,r,n,i,o){for(var s=t[r],a=0;a<e.length;a++)if(p(s,e[a]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===y(t)?String(t):t});return new h("Invalid "+i+" `"+o+"` of value `"+String(s)+"` supplied to `"+n+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+b(i)+" at index "+t+"."),s}return f(function(t,i,o,s,a){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,i,o,s,a,r);if(null==u)return null;u.data&&n(u.data,"expectedType")&&l.push(u.data.expectedType)}return new h("Invalid "+s+" `"+a+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return f(function(t,n,i,o,s){var a=t[n],l=_(a);if("object"!==l)return new h("Invalid "+o+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return v(i,o,s,c,y(u));var d=u(a,c,i,o,s+"."+c,r);if(d)return d}return null})},exact:function(e){return f(function(i,o,s,a,l){var c=i[o],u=_(c);if("object"!==u)return new h("Invalid "+a+" `"+l+"` of type `"+u+"` supplied to `"+s+"`, expected `object`.");var d=t({},i[o],e);for(var p in d){var f=e[p];if(n(e,p)&&"function"!=typeof f)return v(s,a,l,p,y(f));if(!f)return new h("Invalid "+a+" `"+l+"` key `"+p+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,s,a,l+"."+p,r);if(g)return g}return null})}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function i(i,s,a,c,d,p,f){if(c=c||u,p=p||a,f!==r){if(l){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+a;!t[v]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,n++)}}return null==s[a]?i?null===s[a]?new h("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,d,p)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function g(e){return f(function(t,r,n,i,o,s){var a=t[r];return _(a)!==e?new h("Invalid "+i+" `"+o+"` of type `"+y(a)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null})}function v(e,t,r,n,i){return new h((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!m(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function _(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=_(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Wc}function nu(){if(Yc)return Gc;Yc=1;var e=Qc();function t(){}function r(){}return r.resetWarningCache=t,Gc=function(){function n(t,r,n,i,o,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o}}function iu(){if(Kc)return $c.exports;if(Kc=1,"production"!==process.env.NODE_ENV){var e=Jc();$c.exports=ru()(e.isElement,true)}else $c.exports=nu()();return $c.exports}var ou=As(iu());
|
|
15
|
+
/**
|
|
16
|
+
* @mui/styled-engine v7.3.6
|
|
17
|
+
*
|
|
18
|
+
* @license MIT
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
function su(e,t){const r=Ac(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const n="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some(e=>void 0===e)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...t)}:r}const au=[];function lu(e){return au[0]=e,sc(au)}var cu,uu={exports:{}},du={};function pu(){if(cu)return du;cu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case r:case i:case n:case l:case c:case p:return h;default:switch(h=h&&h.$$typeof){case s:case a:case d:case u:case o:return h;default:return f}}case t:return f}}}return du.ContextConsumer=o,du.ContextProvider=s,du.Element=e,du.ForwardRef=a,du.Fragment=r,du.Lazy=d,du.Memo=u,du.Portal=t,du.Profiler=i,du.StrictMode=n,du.Suspense=l,du.SuspenseList=c,du.isContextConsumer=function(e){return f(e)===o},du.isContextProvider=function(e){return f(e)===s},du.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},du.isForwardRef=function(e){return f(e)===a},du.isFragment=function(e){return f(e)===r},du.isLazy=function(e){return f(e)===d},du.isMemo=function(e){return f(e)===u},du.isPortal=function(e){return f(e)===t},du.isProfiler=function(e){return f(e)===i},du.isStrictMode=function(e){return f(e)===n},du.isSuspense=function(e){return f(e)===l},du.isSuspenseList=function(e){return f(e)===c},du.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===n||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===s||e.$$typeof===o||e.$$typeof===a||e.$$typeof===h||void 0!==e.getModuleId)},du.typeOf=f,du}var hu,fu,gu={};
|
|
23
|
+
/**
|
|
24
|
+
* @license React
|
|
25
|
+
* react-is.development.js
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/function vu(){return hu||(hu=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case n:case o:case i:case c:case u:case h:return e;default:switch(e=e&&e.$$typeof){case a:case l:case p:case d:case s:return e;default:return f}}case r:return f}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");gu.ContextConsumer=s,gu.ContextProvider=a,gu.Element=t,gu.ForwardRef=l,gu.Fragment=n,gu.Lazy=p,gu.Memo=d,gu.Portal=r,gu.Profiler=o,gu.StrictMode=i,gu.Suspense=c,gu.SuspenseList=u,gu.isContextConsumer=function(t){return e(t)===s},gu.isContextProvider=function(t){return e(t)===a},gu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},gu.isForwardRef=function(t){return e(t)===l},gu.isFragment=function(t){return e(t)===n},gu.isLazy=function(t){return e(t)===p},gu.isMemo=function(t){return e(t)===d},gu.isPortal=function(t){return e(t)===r},gu.isProfiler=function(t){return e(t)===o},gu.isStrictMode=function(t){return e(t)===i},gu.isSuspense=function(t){return e(t)===c},gu.isSuspenseList=function(t){return e(t)===u},gu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===i||e===c||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===a||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||void 0!==e.getModuleId)},gu.typeOf=e}()),gu}function mu(){return fu||(fu=1,"production"===process.env.NODE_ENV?uu.exports=pu():uu.exports=vu()),uu.exports}var _u=mu();function yu(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function bu(e){if(i.isValidElement(e)||_u.isValidElementType(e)||!yu(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=bu(e[r])}),t}function wu(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return yu(e)&&yu(t)&&Object.keys(t).forEach(o=>{i.isValidElement(t[o])||_u.isValidElementType(t[o])?n[o]=t[o]:yu(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&yu(e[o])?n[o]=wu(e[o],t[o],r):r.clone?n[o]=yu(t[o])?bu(t[o]):t[o]:n[o]=t[o]}),n}function xu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,o=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),s=Object.keys(o);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,i){const o=s.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[s[o]]?t[s[o]]:i)-n/100}${r})`}return{keys:s,values:o,up:a,down:l,between:c,only:function(e){return s.indexOf(e)+1<s.length?c(e,s[s.indexOf(e)+1]):a(e)},not:function(e){const t=s.indexOf(e);return 0===t?a(s[1]):t===s.length-1?l(s[t]):c(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:r,...i}}function Su(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const r=/min-width:\s*([0-9.]+)/;return+(e.match(r)?.[1]||0)-+(t.match(r)?.[1]||0)});return r.length?r.reduce((e,r)=>{const n=t[r];return delete e[r],e[r]=n,e},{...t}):t}const Eu={borderRadius:4},ku="production"!==process.env.NODE_ENV?ou.oneOfType([ou.number,ou.string,ou.object,ou.array]):{};function Pu(e,t){return t?wu(e,t,{clone:!1}):e}const Ou={xs:0,sm:600,md:900,lg:1200,xl:1536},Mu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ou[e]}px)`},Tu={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:Ou[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Au(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Mu;return t.reduce((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n),{})}if("object"==typeof t){const e=n.breakpoints||Mu;return Object.keys(t).reduce((i,o)=>{if(s=e.keys,"@"===(a=o)||a.startsWith("@")&&(s.some(e=>a.startsWith(`@${e}`))||a.match(/^@\d/))){const e=function(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${t}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Pa(18,`(${t})`));return null}const[,n,i]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(o)}(n.containerQueries?n:Tu,o);e&&(i[e]=r(t[o],o))}else if(Object.keys(e.values||Ou).includes(o)){i[e.up(o)]=r(t[o],o)}else{const e=o;i[e]=t[e]}var s,a;return i},{})}return r(t)}function Cu(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function $u(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Pa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fu(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Iu(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Fu(e,r)||n,t&&(i=t(i,n,e)),i}function Nu(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],s=Fu(e.theme,n)||{};return Au(e,o,e=>{let n=Iu(s,i,e);return e===n&&"string"==typeof e&&(n=Iu(s,i,`${t}${"default"===e?"":$u(e)}`,e)),!1===r?n:{[r]:n}})};return o.propTypes="production"!==process.env.NODE_ENV?{[t]:ku}:{},o.filterProps=[t],o}const Ru={m:"margin",p:"padding"},Du={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ju=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!Lu[e])return[e];e=Lu[e]}const[t,r]=e.split(""),n=Ru[t],i=Du[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]}),Bu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Uu=[...Bu,...Vu];function zu(e,t,r,n){const i=Fu(e,t,!0)??r;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${e}.`),"string"==typeof i?i.startsWith("var(")&&0===e?0:i.startsWith("var(")&&1===e?i:`calc(${e} * ${i})`:i*e):Array.isArray(i)?e=>{if("string"==typeof e)return e;const r=Math.abs(e);"production"!==process.env.NODE_ENV&&(Number.isInteger(r)?r>i.length-1&&console.error([`MUI: The value provided (${r}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${r} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")));const n=i[r];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function qu(e){return zu(e,"spacing",8,"spacing")}function Wu(e,t){return"string"==typeof t||null==t?t:e(t)}function Hu(e,t,r,n){if(!t.includes(r))return null;const i=function(e,t){return r=>e.reduce((e,n)=>(e[n]=Wu(t,r),e),{})}(ju(r),n);return Au(e,e[r],i)}function Gu(e,t){const r=qu(e.theme);return Object.keys(e).map(n=>Hu(e,t,n,r)).reduce(Pu,{})}function Yu(e){return Gu(e,Bu)}function Ku(e){return Gu(e,Vu)}function Xu(e=8,t=qu({spacing:e})){if(e.mui)return e;const r=(...e)=>{"production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`));return(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ")};return r.mui=!0,r}function Ju(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?Pu(r,t[n](e)):r,{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce((e,t)=>Object.assign(e,t.propTypes),{}):{},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function Zu(e){return"number"!=typeof e?e:`${e}px solid`}function Qu(e,t){return Nu({prop:e,themeKey:"borders",transform:t})}Yu.propTypes="production"!==process.env.NODE_ENV?Bu.reduce((e,t)=>(e[t]=ku,e),{}):{},Yu.filterProps=Bu,Ku.propTypes="production"!==process.env.NODE_ENV?Vu.reduce((e,t)=>(e[t]=ku,e),{}):{},Ku.filterProps=Vu,"production"===process.env.NODE_ENV||Uu.reduce((e,t)=>(e[t]=ku,e),{});const ed=Qu("border",Zu),td=Qu("borderTop",Zu),rd=Qu("borderRight",Zu),nd=Qu("borderBottom",Zu),id=Qu("borderLeft",Zu),od=Qu("borderColor"),sd=Qu("borderTopColor"),ad=Qu("borderRightColor"),ld=Qu("borderBottomColor"),cd=Qu("borderLeftColor"),ud=Qu("outline",Zu),dd=Qu("outlineColor"),pd=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=zu(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:Wu(t,e)});return Au(e,e.borderRadius,r)}return null};pd.propTypes="production"!==process.env.NODE_ENV?{borderRadius:ku}:{},pd.filterProps=["borderRadius"],Ju(ed,td,rd,nd,id,od,sd,ad,ld,cd,pd,ud,dd);const hd=e=>{if(void 0!==e.gap&&null!==e.gap){const t=zu(e.theme,"spacing",8,"gap"),r=e=>({gap:Wu(t,e)});return Au(e,e.gap,r)}return null};hd.propTypes="production"!==process.env.NODE_ENV?{gap:ku}:{},hd.filterProps=["gap"];const fd=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=zu(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:Wu(t,e)});return Au(e,e.columnGap,r)}return null};fd.propTypes="production"!==process.env.NODE_ENV?{columnGap:ku}:{},fd.filterProps=["columnGap"];const gd=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=zu(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:Wu(t,e)});return Au(e,e.rowGap,r)}return null};gd.propTypes="production"!==process.env.NODE_ENV?{rowGap:ku}:{},gd.filterProps=["rowGap"];function vd(e,t){return"grey"===t?t:e}Ju(hd,fd,gd,Nu({prop:"gridColumn"}),Nu({prop:"gridRow"}),Nu({prop:"gridAutoFlow"}),Nu({prop:"gridAutoColumns"}),Nu({prop:"gridAutoRows"}),Nu({prop:"gridTemplateColumns"}),Nu({prop:"gridTemplateRows"}),Nu({prop:"gridTemplateAreas"}),Nu({prop:"gridArea"}));function md(e){return e<=1&&0!==e?100*e+"%":e}Ju(Nu({prop:"color",themeKey:"palette",transform:vd}),Nu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vd}),Nu({prop:"backgroundColor",themeKey:"palette",transform:vd}));const _d=Nu({prop:"width",transform:md}),yd=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const r=e.theme?.breakpoints?.values?.[t]||Ou[t];return r?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:md(t)}};return Au(e,e.maxWidth,t)}return null};yd.filterProps=["maxWidth"];const bd=Nu({prop:"minWidth",transform:md}),wd=Nu({prop:"height",transform:md}),xd=Nu({prop:"maxHeight",transform:md}),Sd=Nu({prop:"minHeight",transform:md});Nu({prop:"size",cssProperty:"width",transform:md}),Nu({prop:"size",cssProperty:"height",transform:md});Ju(_d,yd,bd,wd,xd,Sd,Nu({prop:"boxSizing"}));const Ed={border:{themeKey:"borders",transform:Zu},borderTop:{themeKey:"borders",transform:Zu},borderRight:{themeKey:"borders",transform:Zu},borderBottom:{themeKey:"borders",transform:Zu},borderLeft:{themeKey:"borders",transform:Zu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pd},color:{themeKey:"palette",transform:vd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vd},backgroundColor:{themeKey:"palette",transform:vd},p:{style:Ku},pt:{style:Ku},pr:{style:Ku},pb:{style:Ku},pl:{style:Ku},px:{style:Ku},py:{style:Ku},padding:{style:Ku},paddingTop:{style:Ku},paddingRight:{style:Ku},paddingBottom:{style:Ku},paddingLeft:{style:Ku},paddingX:{style:Ku},paddingY:{style:Ku},paddingInline:{style:Ku},paddingInlineStart:{style:Ku},paddingInlineEnd:{style:Ku},paddingBlock:{style:Ku},paddingBlockStart:{style:Ku},paddingBlockEnd:{style:Ku},m:{style:Yu},mt:{style:Yu},mr:{style:Yu},mb:{style:Yu},ml:{style:Yu},mx:{style:Yu},my:{style:Yu},margin:{style:Yu},marginTop:{style:Yu},marginRight:{style:Yu},marginBottom:{style:Yu},marginLeft:{style:Yu},marginX:{style:Yu},marginY:{style:Yu},marginInline:{style:Yu},marginInlineStart:{style:Yu},marginInlineEnd:{style:Yu},marginBlock:{style:Yu},marginBlockStart:{style:Yu},marginBlockEnd:{style:Yu},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:hd},rowGap:{style:gd},columnGap:{style:fd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:md},maxWidth:{style:yd},minWidth:{transform:md},height:{transform:md},maxHeight:{transform:md},minHeight:{transform:md},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const kd=function(){function e(e,t,r,n){const i={[e]:t,theme:r},o=n[e];if(!o)return{[e]:t};const{cssProperty:s=e,themeKey:a,transform:l,style:c}=o;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const u=Fu(r,a)||{};if(c)return c(i);return Au(i,t,t=>{let r=Iu(u,l,t);return t===r&&"string"==typeof t&&(r=Iu(u,l,`${e}${"default"===t?"":$u(t)}`,t)),!1===s?r:{[s]:r}})}return function t(r){const{sx:n,theme:i={},nested:o}=r||{};if(!n)return null;const s=i.unstable_sxConfig??Ed;function a(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const a=function(e={}){const t=e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{});return t||{}}(i.breakpoints),l=Object.keys(a);let c=a;return Object.keys(n).forEach(r=>{const o=function(e,t){return"function"==typeof e?e(t):e}(n[r],i);if(null!=o)if("object"==typeof o)if(s[r])c=Pu(c,e(r,o,i,s));else{const e=Au({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?c=Pu(c,e):c[r]=t({sx:o,theme:i,nested:!0})}else c=Pu(c,e(r,o,i,s))}),!o&&i.modularCssLayers?{"@layer sx":Su(i,Cu(l,c))}:Su(i,Cu(l,c))}return Array.isArray(n)?n.map(a):a(n)}}();function Pd(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||"function"!=typeof r.getColorSchemeSelector)return{};let n=r.getColorSchemeSelector(e);return"&"===n?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Od(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={},...s}=e;let a=wu({breakpoints:xu(r),direction:"ltr",components:{},palette:{mode:"light",...n},spacing:Xu(i),shape:{...Eu,...o}},s);return a=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function r(r,n){r.up=(...r)=>t(e.breakpoints.up(...r),n),r.down=(...r)=>t(e.breakpoints.down(...r),n),r.between=(...r)=>t(e.breakpoints.between(...r),n),r.only=(...r)=>t(e.breakpoints.only(...r),n),r.not=(...r)=>{const i=t(e.breakpoints.not(...r),n);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const n={},i=e=>(r(n,e),n);return r(i),{...e,containerQueries:i}}(a),a.applyStyles=Pd,a=t.reduce((e,t)=>wu(e,t),a),a.unstable_sxConfig={...Ed,...s?.unstable_sxConfig},a.unstable_sx=function(e){return kd({sx:e,theme:this})},a}function Md(e=null){const t=i.useContext(pc);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}kd.filterProps=["sx"];const Td=Od();function Ad(e=Td){return Md(e)}const Cd=e=>e,$d=(()=>{let e=Cd;return{configure(t){e=t},generate:t=>e(t),reset(){e=Cd}}})(),Fd={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Id(e,t,r="Mui"){const n=Fd[t];return n?`${r}-${n}`:`${$d.generate(e)}-${t}`}function Nd(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=Id(e,t,r)}),n}function Rd(e,t=""){return e.displayName||e.name||t}function Dd(e,t,r){const n=Rd(t);return e.displayName||(""!==n?`${r}(${n})`:r)}function Ld(e){const{variants:t,...r}=e,n={variants:t,style:lu(r),isProcessed:!0};return n.style===r||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=lu(e.style))}),n}const jd=Od();function Bd(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Vd(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ud(e){return e?(t,r)=>r[e]:null}function zd(e,t,r){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap(t=>zd(e,t,r));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=r?Vd(n.style,r):n.style;else{const{variants:e,...i}=n;t=r?Vd(lu(i),r):i}return qd(e,n.variants,[t],r)}return n?.isProcessed?r?Vd(lu(n.style),r):n.style:r?Vd(lu(n),r):n}function qd(e,t,r=[],n=void 0){let i;e:for(let o=0;o<t.length;o+=1){const s=t[o];if("function"==typeof s.props){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(i))continue}else for(const t in s.props)if(e[t]!==s.props[t]&&e.ownerState?.[t]!==s.props[t])continue e;"function"==typeof s.style?(i??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?Vd(lu(s.style(i)),n):s.style(i))):r.push(n?Vd(lu(s.style),n):s.style)}return r}function Wd(e,t){let r;return"production"!==process.env.NODE_ENV&&e&&(r=`${e}-${Hd(t||"Root")}`),r}function Hd(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function Gd(e,t,r=!1){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if("components"===o||"slots"===o)n[o]={...e[o],...n[o]};else if("componentsProps"===o||"slotProps"===o){const i=e[o],s=t[o];if(s)if(i){n[o]={...s};for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const t=e;n[o][t]=Gd(i[t],s[t],r)}}else n[o]=s;else n[o]=i||{}}else"className"===o&&r&&t.className?n.className=a(e?.className,t?.className):"style"===o&&r&&t.style?n.style={...e?.style,...t?.style}:void 0===n[o]&&(n[o]=e[o])}return n}const Yd="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function Kd(e,t=0,r=1){return"production"!==process.env.NODE_ENV&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function Xd(e){if(e.type)return e;if("#"===e.charAt(0))return Xd(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),"production"!==process.env.NODE_ENV&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Pa(9,e));let n,i=e.substring(t+1,e.length-1);if("color"===r){if(i=i.split(" "),n=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${n}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Pa(10,n))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:r,values:i,colorSpace:n}}const Jd=(e,t)=>{try{return(e=>{const t=Xd(e);return t.values.slice(0,3).map((e,r)=>t.type.includes("hsl")&&0!==r?`${e}%`:e).join(" ")})(e)}catch(r){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};function Zd(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=t.includes("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Qd(e){e=Xd(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),s=(e,t=(e+r/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const l=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(a+="a",l.push(t[3])),Zd({type:a,values:l})}function ep(e){let t="hsl"===(e=Xd(e)).type||"hsla"===e.type?Xd(Qd(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function tp(e,t){const r=ep(e),n=ep(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function rp(e,t){return e=Xd(e),t=Kd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Zd(e)}function np(e,t,r){try{return rp(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}}function ip(e,t){if(e=Xd(e),t=Kd(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Zd(e)}function op(e,t,r){try{return ip(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}}function sp(e,t){if(e=Xd(e),t=Kd(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Zd(e)}function ap(e,t,r){try{return sp(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}}function lp(e,t,r){try{return function(e,t=.15){return ep(e)>.5?ip(e,t):sp(e,t)}(e,t)}catch(t){return e}}const cp="exact-prop: ";function up(e){return"production"===process.env.NODE_ENV?e:{...e,[cp]:t=>{const r=Object.keys(t).filter(t=>!e.hasOwnProperty(t));return r.length>0?new Error(`The following props are not supported: ${r.map(e=>`\`${e}\``).join(", ")}. Please remove them.`):null}}}const dp=i.createContext();"production"!==process.env.NODE_ENV&&(ou.node,ou.bool);const pp=i.createContext(void 0);function hp({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Gd(i.defaultProps,n,t.components.mergeClassNameAndStyle):i.styleOverrides||i.variants?n:Gd(i,n,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:i.useContext(pp)}})}"production"!==process.env.NODE_ENV&&(ou.node,ou.object);let fp=0;const gp={...i}.useId;const vp={theme:void 0};function mp(e=""){function t(...r){if(!r.length)return"";const n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}return(r,...n)=>`var(--${e?`${e}-`:""}${r}${t(...n)})`}const _p=(e,t,r,n=[])=>{let i=e;t.forEach((e,o)=>{o===t.length-1?Array.isArray(i)?i[Number(e)]=r:i&&"object"==typeof i&&(i[e]=r):i&&"object"==typeof i&&(i[e]||(i[e]=n.includes(e)?[]:{}),i=i[e])})};function yp(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},o={},s={};var a,l;return a=(e,t,a)=>{if(!("string"!=typeof t&&"number"!=typeof t||n&&n(e,t))){const n=`--${r?`${r}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(i,{[n]:l}),_p(o,e,`var(${n})`,a),_p(s,e,`var(${n}, ${l})`,a)}},l=e=>"vars"===e[0],function e(t,r=[],n=[]){Object.entries(t).forEach(([t,i])=>{(!l||l&&!l([...r,t]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...r,t],Array.isArray(i)?[...n,t]:n):a([...r,t],i,n))})}(e),{css:i,vars:o,varsWithDefaults:s}}function bp(e,t,r=void 0){const n={};for(const i in e){const o=e[i];let s="",a=!0;for(let e=0;e<o.length;e+=1){const n=o[e];n&&(s+=(!0===a?"":" ")+t(n),a=!1,r&&r[n]&&(s+=" "+r[n]))}n[i]=s}return n}function wp(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Hs.white,default:Hs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const xp=wp();function Sp(){return{text:{primary:Hs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Hs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ep=Sp();function kp(e,t,r,n){const i=n.light||n,o=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=sp(e.main,i):"dark"===t&&(e.dark=ip(e.main,o)))}function Pp(e,t,r,n,i){const o=i.light||i,s=i.dark||1.5*i;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:"light"===r?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*o).toFixed(0)}%)`:"dark"===r&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*s).toFixed(0)}%)`))}function Op(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:i,...o}=e,s=e.primary||function(e="light"){return"dark"===e?{main:oa,light:ia,dark:sa}:{main:aa,light:sa,dark:la}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Qs,light:Zs,dark:ta}:{main:ra,light:ea,dark:na}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ks,light:Gs,dark:Xs}:{main:Xs,light:Ys,dark:Js}}(t),c=e.info||function(e="light"){return"dark"===e?{main:ua,light:ca,dark:pa}:{main:pa,light:da,dark:ha}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ga,light:fa,dark:ma}:{main:_a,light:va,dark:ya}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:wa,light:ba,dark:Sa}:{main:"#ed6c02",light:xa,dark:Ea}}(t);function p(e){if(i)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=tp(e,Ep.text.primary)>=r?Ep.text.primary:xp.text.primary;if("production"!==process.env.NODE_ENV){const r=tp(e,t);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const h=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:s=700})=>{if(!(e={...e}).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:Pa(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:Pa(12,t?` (${t})`:"",JSON.stringify(e.main)));return i?(Pp(i,e,"light",o,n),Pp(i,e,"dark",s,n)):(kp(e,"light",o,n),kp(e,"dark",s,n)),e.contrastText||(e.contrastText=p(e.main)),e};let f;"light"===t?f=wp():"dark"===t&&(f=Sp()),"production"!==process.env.NODE_ENV&&(f||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return wu({common:{...Hs},mode:t,primary:h({color:s,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:ka,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n,...f},o)}function Mp(e){const t={};return Object.entries(e).forEach(e=>{const[r,n]=e;"object"==typeof n&&(t[r]=`${n.fontStyle?`${n.fontStyle} `:""}${n.fontVariant?`${n.fontVariant} `:""}${n.fontWeight?`${n.fontWeight} `:""}${n.fontStretch?`${n.fontStretch} `:""}${n.fontSize||""}${n.lineHeight?`/${n.lineHeight} `:""}${n.fontFamily||""}`)}),t}const Tp={textTransform:"uppercase"},Ap='"Roboto", "Helvetica", "Arial", sans-serif';function Cp(e,t){const{fontFamily:r=Ap,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t;"production"!==process.env.NODE_ENV&&("number"!=typeof n&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,h=u||(e=>e/l*p+"rem"),f=(e,t,n,i,o)=>{return{fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n,...r===Ap?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5)+"em"}:{},...o,...c};var s},g={h1:f(i,96,1.167,-1.5),h2:f(i,60,1.2,-.5),h3:f(o,48,1.167,0),h4:f(o,34,1.235,.25),h5:f(o,24,1.334,0),h6:f(s,20,1.6,.15),subtitle1:f(o,16,1.75,.15),subtitle2:f(s,14,1.57,.1),body1:f(o,16,1.5,.15),body2:f(o,14,1.43,.15),button:f(s,14,1.75,.4,Tp),caption:f(o,12,1.66,.4),overline:f(o,12,2.66,1,Tp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wu({htmlFontSize:l,pxToRem:h,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:a,...g},d,{clone:!1})}function $p(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Fp=["none",$p(0,2,1,-1,0,1,1,0,0,1,3,0),$p(0,3,1,-2,0,2,2,0,0,1,5,0),$p(0,3,3,-2,0,3,4,0,0,1,8,0),$p(0,2,4,-1,0,4,5,0,0,1,10,0),$p(0,3,5,-1,0,5,8,0,0,1,14,0),$p(0,3,5,-1,0,6,10,0,0,1,18,0),$p(0,4,5,-2,0,7,10,1,0,2,16,1),$p(0,5,5,-3,0,8,10,1,0,3,14,2),$p(0,5,6,-3,0,9,12,1,0,3,16,2),$p(0,6,6,-3,0,10,14,1,0,4,18,3),$p(0,6,7,-4,0,11,15,1,0,4,20,3),$p(0,7,8,-4,0,12,17,2,0,5,22,4),$p(0,7,8,-4,0,13,19,2,0,5,24,4),$p(0,7,9,-4,0,14,21,2,0,5,26,4),$p(0,8,9,-5,0,15,22,2,0,6,28,5),$p(0,8,10,-5,0,16,24,2,0,6,30,5),$p(0,8,11,-5,0,17,26,2,0,6,32,5),$p(0,9,11,-5,0,18,28,2,0,7,34,6),$p(0,9,12,-6,0,19,29,2,0,7,36,6),$p(0,10,13,-6,0,20,31,3,0,8,38,7),$p(0,10,13,-6,0,21,33,3,0,8,40,7),$p(0,10,14,-6,0,22,35,3,0,8,42,7),$p(0,11,14,-7,0,23,36,3,0,9,44,8),$p(0,11,15,-7,0,24,38,3,0,9,46,8)],Ip={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Np={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rp(e){return`${Math.round(e)}ms`}function Dp(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Lp(e){const t={...Ip,...e.easing},r={...Np,...e.duration};return{getAutoHeightDuration:Dp,create:(e=["all"],n={})=>{const{duration:i=r.standard,easing:o=t.easeInOut,delay:s=0,...a}=n;if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,r=e=>!Number.isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(i)||t(i)||console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),t(o)||console.error('MUI: Argument "easing" must be a string.'),r(s)||t(s)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof n&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(a).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(a).join(",")}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:Rp(i)} ${o} ${"string"==typeof s?s:Rp(s)}`).join(",")},...e,easing:t,duration:r}}const jp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Bp(e){return yu(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function Vp(e={}){const t={...e};return function e(t){const r=Object.entries(t);for(let n=0;n<r.length;n++){const[i,o]=r[n];!Bp(o)||i.startsWith("unstable_")?delete t[i]:yu(o)&&(t[i]={...o},e(t[i]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function Up(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function zp(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof r?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof r?`calc(${r})`:r})`:rp(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let e=0;e<t.length;e+=1)r+=+t[e];return r})(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${Up(r)})`:sp(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${Up(r)})`:ip(t,r)}})}function qp(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:o={},transitions:s={},typography:a={},shape:l,colorSpace:c,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Pa(20));const d=Op({...o,colorSpace:c}),p=Od(e);let h=wu(p,{mixins:(f=p.breakpoints,g=n,{toolbar:{minHeight:56,[f.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[f.up("sm")]:{minHeight:64}},...g}),palette:d,shadows:Fp.slice(),typography:Cp(d,a),transitions:Lp(s),zIndex:{...jp}});var f,g;if(h=wu(h,u),h=t.reduce((e,t)=>wu(e,t),h),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,r)=>{let n;for(n in t){const i=t[n];if(e.includes(n)&&Object.keys(i).length>0){if("production"!==process.env.NODE_ENV){const e=Id("",n);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${n}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[n]={}}}};Object.keys(h.components).forEach(e=>{const r=h.components[e].styleOverrides;r&&e.startsWith("Mui")&&t(r,e)})}return h.unstable_sxConfig={...Ed,...u?.unstable_sxConfig},h.unstable_sx=function(e){return kd({sx:e,theme:this})},h.toRuntimeSource=Vp,zp(h),h}function Wp(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const Hp=[...Array(25)].map((e,t)=>{if(0===t)return"none";const r=Wp(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Gp(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Yp(e){return"dark"===e?Hp:[]}function Kp(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Xp=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const i={};return(s=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${s?`${s}-`:""}overlays-${t}`),`--${s?`${s}-`:""}palette-AppBar-darkBg`,`--${s?`${s}-`:""}palette-AppBar-darkColor`]).forEach(e=>{i[e]=r[e],delete r[e]}),"media"===o?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:o?{[o.replace("%s",t)]:i,[`${n}, ${o.replace("%s",t)}`]:r}:{[n]:{...r,...i}}}if(o&&"media"!==o)return`${n}, ${o.replace("%s",String(t))}`}else if(t){if("media"===o)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(o)return o.replace("%s",String(t))}var s;return n};function Jp(e,t,r){!e[t]&&r&&(e[t]=r)}function Zp(e){return"string"==typeof e&&e.startsWith("hsl")?Qd(e):e}function Qp(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Jd(Zp(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}const eh=e=>{try{return e()}catch(e){}};function th(e,t,r,n,i){if(!r)return;r=!0===r?{}:r;const o="dark"===i?"dark":"light";if(!n)return void(t[i]=function(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:i,...o}=e,s=Op({...t,colorSpace:i});return{palette:s,opacity:{...Gp(s.mode),...r},overlays:n||Yp(s.mode),...o}}({...r,palette:{mode:o,...r?.palette},colorSpace:e}));const{palette:s,...a}=qp({...n,palette:{mode:o,...r?.palette},colorSpace:e});return t[i]={...r,palette:s,opacity:{...Gp(o),...r?.opacity},overlays:r?.overlays||Yp(o)},a}function rh(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:s=!1,shouldSkipGeneratingVar:a=Kp,colorSchemeSelector:l=(r.light&&r.dark?"media":void 0),rootSelector:c=":root",...u}=e,d=Object.keys(r)[0],p=n||(r.light&&"light"!==d?"light":d),h=((e="mui")=>mp(e))(o),{[p]:f,light:g,dark:v,...m}=r,_={...m};let y,b=f;if(("dark"===p&&!("dark"in r)||"light"===p&&!("light"in r))&&(b=!0),!b)throw new Error("production"!==process.env.NODE_ENV?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Pa(21,p));s&&(y="oklch");const w=th(y,_,b,u,p);g&&!_.light&&th(y,_,g,void 0,"light"),v&&!_.dark&&th(y,_,v,void 0,"dark");let x={defaultColorScheme:p,...w,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:_,font:{...Mp(w.typography),...w.font},spacing:(S=u.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(x.colorSchemes).forEach(e=>{const t=x.colorSchemes[e].palette,r=e=>{const r=e.split("-"),n=r[1],i=r[2];return h(e,t[n][i])};function n(e,t,r){if(y){let n;return e===np&&(n=`transparent ${(100*(1-r)).toFixed(0)}%`),e===op&&(n=`#000 ${(100*r).toFixed(0)}%`),e===ap&&(n=`#fff ${(100*r).toFixed(0)}%`),`color-mix(in ${y}, ${t}, ${n})`}return e(t,r)}var i;if("light"===t.mode&&(Jp(t.common,"background","#fff"),Jp(t.common,"onBackground","#000")),"dark"===t.mode&&(Jp(t.common,"background","#000"),Jp(t.common,"onBackground","#fff")),i=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{i[e]||(i[e]={})}),"light"===t.mode){Jp(t.Alert,"errorColor",n(op,t.error.light,.6)),Jp(t.Alert,"infoColor",n(op,t.info.light,.6)),Jp(t.Alert,"successColor",n(op,t.success.light,.6)),Jp(t.Alert,"warningColor",n(op,t.warning.light,.6)),Jp(t.Alert,"errorFilledBg",r("palette-error-main")),Jp(t.Alert,"infoFilledBg",r("palette-info-main")),Jp(t.Alert,"successFilledBg",r("palette-success-main")),Jp(t.Alert,"warningFilledBg",r("palette-warning-main")),Jp(t.Alert,"errorFilledColor",eh(()=>t.getContrastText(t.error.main))),Jp(t.Alert,"infoFilledColor",eh(()=>t.getContrastText(t.info.main))),Jp(t.Alert,"successFilledColor",eh(()=>t.getContrastText(t.success.main))),Jp(t.Alert,"warningFilledColor",eh(()=>t.getContrastText(t.warning.main))),Jp(t.Alert,"errorStandardBg",n(ap,t.error.light,.9)),Jp(t.Alert,"infoStandardBg",n(ap,t.info.light,.9)),Jp(t.Alert,"successStandardBg",n(ap,t.success.light,.9)),Jp(t.Alert,"warningStandardBg",n(ap,t.warning.light,.9)),Jp(t.Alert,"errorIconColor",r("palette-error-main")),Jp(t.Alert,"infoIconColor",r("palette-info-main")),Jp(t.Alert,"successIconColor",r("palette-success-main")),Jp(t.Alert,"warningIconColor",r("palette-warning-main")),Jp(t.AppBar,"defaultBg",r("palette-grey-100")),Jp(t.Avatar,"defaultBg",r("palette-grey-400")),Jp(t.Button,"inheritContainedBg",r("palette-grey-300")),Jp(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),Jp(t.Chip,"defaultBorder",r("palette-grey-400")),Jp(t.Chip,"defaultAvatarColor",r("palette-grey-700")),Jp(t.Chip,"defaultIconColor",r("palette-grey-700")),Jp(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Jp(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Jp(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Jp(t.LinearProgress,"primaryBg",n(ap,t.primary.main,.62)),Jp(t.LinearProgress,"secondaryBg",n(ap,t.secondary.main,.62)),Jp(t.LinearProgress,"errorBg",n(ap,t.error.main,.62)),Jp(t.LinearProgress,"infoBg",n(ap,t.info.main,.62)),Jp(t.LinearProgress,"successBg",n(ap,t.success.main,.62)),Jp(t.LinearProgress,"warningBg",n(ap,t.warning.main,.62)),Jp(t.Skeleton,"bg",y?n(np,t.text.primary,.11):`rgba(${r("palette-text-primaryChannel")} / 0.11)`),Jp(t.Slider,"primaryTrack",n(ap,t.primary.main,.62)),Jp(t.Slider,"secondaryTrack",n(ap,t.secondary.main,.62)),Jp(t.Slider,"errorTrack",n(ap,t.error.main,.62)),Jp(t.Slider,"infoTrack",n(ap,t.info.main,.62)),Jp(t.Slider,"successTrack",n(ap,t.success.main,.62)),Jp(t.Slider,"warningTrack",n(ap,t.warning.main,.62));const e=y?n(op,t.background.default,.6825):lp(t.background.default,.8);Jp(t.SnackbarContent,"bg",e),Jp(t.SnackbarContent,"color",eh(()=>y?Ep.text.primary:t.getContrastText(e))),Jp(t.SpeedDialAction,"fabHoverBg",lp(t.background.paper,.15)),Jp(t.StepConnector,"border",r("palette-grey-400")),Jp(t.StepContent,"border",r("palette-grey-400")),Jp(t.Switch,"defaultColor",r("palette-common-white")),Jp(t.Switch,"defaultDisabledColor",r("palette-grey-100")),Jp(t.Switch,"primaryDisabledColor",n(ap,t.primary.main,.62)),Jp(t.Switch,"secondaryDisabledColor",n(ap,t.secondary.main,.62)),Jp(t.Switch,"errorDisabledColor",n(ap,t.error.main,.62)),Jp(t.Switch,"infoDisabledColor",n(ap,t.info.main,.62)),Jp(t.Switch,"successDisabledColor",n(ap,t.success.main,.62)),Jp(t.Switch,"warningDisabledColor",n(ap,t.warning.main,.62)),Jp(t.TableCell,"border",n(ap,n(np,t.divider,1),.88)),Jp(t.Tooltip,"bg",n(np,t.grey[700],.92))}if("dark"===t.mode){Jp(t.Alert,"errorColor",n(ap,t.error.light,.6)),Jp(t.Alert,"infoColor",n(ap,t.info.light,.6)),Jp(t.Alert,"successColor",n(ap,t.success.light,.6)),Jp(t.Alert,"warningColor",n(ap,t.warning.light,.6)),Jp(t.Alert,"errorFilledBg",r("palette-error-dark")),Jp(t.Alert,"infoFilledBg",r("palette-info-dark")),Jp(t.Alert,"successFilledBg",r("palette-success-dark")),Jp(t.Alert,"warningFilledBg",r("palette-warning-dark")),Jp(t.Alert,"errorFilledColor",eh(()=>t.getContrastText(t.error.dark))),Jp(t.Alert,"infoFilledColor",eh(()=>t.getContrastText(t.info.dark))),Jp(t.Alert,"successFilledColor",eh(()=>t.getContrastText(t.success.dark))),Jp(t.Alert,"warningFilledColor",eh(()=>t.getContrastText(t.warning.dark))),Jp(t.Alert,"errorStandardBg",n(op,t.error.light,.9)),Jp(t.Alert,"infoStandardBg",n(op,t.info.light,.9)),Jp(t.Alert,"successStandardBg",n(op,t.success.light,.9)),Jp(t.Alert,"warningStandardBg",n(op,t.warning.light,.9)),Jp(t.Alert,"errorIconColor",r("palette-error-main")),Jp(t.Alert,"infoIconColor",r("palette-info-main")),Jp(t.Alert,"successIconColor",r("palette-success-main")),Jp(t.Alert,"warningIconColor",r("palette-warning-main")),Jp(t.AppBar,"defaultBg",r("palette-grey-900")),Jp(t.AppBar,"darkBg",r("palette-background-paper")),Jp(t.AppBar,"darkColor",r("palette-text-primary")),Jp(t.Avatar,"defaultBg",r("palette-grey-600")),Jp(t.Button,"inheritContainedBg",r("palette-grey-800")),Jp(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),Jp(t.Chip,"defaultBorder",r("palette-grey-700")),Jp(t.Chip,"defaultAvatarColor",r("palette-grey-300")),Jp(t.Chip,"defaultIconColor",r("palette-grey-300")),Jp(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Jp(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Jp(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Jp(t.LinearProgress,"primaryBg",n(op,t.primary.main,.5)),Jp(t.LinearProgress,"secondaryBg",n(op,t.secondary.main,.5)),Jp(t.LinearProgress,"errorBg",n(op,t.error.main,.5)),Jp(t.LinearProgress,"infoBg",n(op,t.info.main,.5)),Jp(t.LinearProgress,"successBg",n(op,t.success.main,.5)),Jp(t.LinearProgress,"warningBg",n(op,t.warning.main,.5)),Jp(t.Skeleton,"bg",y?n(np,t.text.primary,.13):`rgba(${r("palette-text-primaryChannel")} / 0.13)`),Jp(t.Slider,"primaryTrack",n(op,t.primary.main,.5)),Jp(t.Slider,"secondaryTrack",n(op,t.secondary.main,.5)),Jp(t.Slider,"errorTrack",n(op,t.error.main,.5)),Jp(t.Slider,"infoTrack",n(op,t.info.main,.5)),Jp(t.Slider,"successTrack",n(op,t.success.main,.5)),Jp(t.Slider,"warningTrack",n(op,t.warning.main,.5));const e=y?n(ap,t.background.default,.985):lp(t.background.default,.98);Jp(t.SnackbarContent,"bg",e),Jp(t.SnackbarContent,"color",eh(()=>y?xp.text.primary:t.getContrastText(e))),Jp(t.SpeedDialAction,"fabHoverBg",lp(t.background.paper,.15)),Jp(t.StepConnector,"border",r("palette-grey-600")),Jp(t.StepContent,"border",r("palette-grey-600")),Jp(t.Switch,"defaultColor",r("palette-grey-300")),Jp(t.Switch,"defaultDisabledColor",r("palette-grey-600")),Jp(t.Switch,"primaryDisabledColor",n(op,t.primary.main,.55)),Jp(t.Switch,"secondaryDisabledColor",n(op,t.secondary.main,.55)),Jp(t.Switch,"errorDisabledColor",n(op,t.error.main,.55)),Jp(t.Switch,"infoDisabledColor",n(op,t.info.main,.55)),Jp(t.Switch,"successDisabledColor",n(op,t.success.main,.55)),Jp(t.Switch,"warningDisabledColor",n(op,t.warning.main,.55)),Jp(t.TableCell,"border",n(op,n(np,t.divider,1),.68)),Jp(t.Tooltip,"bg",n(np,t.grey[700],.92))}Qp(t.background,"default"),Qp(t.background,"paper"),Qp(t.common,"background"),Qp(t.common,"onBackground"),Qp(t,"divider"),Object.keys(t).forEach(e=>{const r=t[e];"tonalOffset"!==e&&r&&"object"==typeof r&&(r.main&&Jp(t[e],"mainChannel",Jd(Zp(r.main))),r.light&&Jp(t[e],"lightChannel",Jd(Zp(r.light))),r.dark&&Jp(t[e],"darkChannel",Jd(Zp(r.dark))),r.contrastText&&Jp(t[e],"contrastTextChannel",Jd(Zp(r.contrastText))),"text"===e&&(Qp(t[e],"primary"),Qp(t[e],"secondary")),"action"===e&&(r.active&&Qp(t[e],"active"),r.selected&&Qp(t[e],"selected")))})}),x=t.reduce((e,t)=>wu(e,t),x);const E={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:Xp(x),enableContrastVars:s},{vars:k,generateThemeVars:P,generateStyleSheets:O}=function(e,t={}){const{getSelector:r=m,disableCssColorScheme:n,colorSchemeSelector:i,enableContrastVars:o}=t,{colorSchemes:s={},components:a,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:p}=yp(c,t);let h=p;const f={},{[l]:g,...v}=s;if(Object.entries(v||{}).forEach(([e,r])=>{const{vars:n,css:i,varsWithDefaults:o}=yp(r,t);h=wu(h,o),f[e]={css:i,vars:n}}),g){const{css:e,vars:r,varsWithDefaults:n}=yp(g,t);h=wu(h,n),f[l]={css:e,vars:r}}function m(t,r){let n=i;if("class"===i&&(n=".%s"),"data"===i&&(n="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(n=`[${i}="%s"]`),t){if("media"===n){if(e.defaultColorScheme===t)return":root";const n=s[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${n})`]:{":root":r}}}if(n)return e.defaultColorScheme===t?`:root, ${n.replace("%s",String(t))}`:n.replace("%s",String(t))}return":root"}return{vars:h,generateThemeVars:()=>{let e={...u};return Object.entries(f).forEach(([,{vars:t}])=>{e=wu(e,t)}),e},generateStyleSheets:()=>{const t=[],i=e.defaultColorScheme||"light";function a(e,r){Object.keys(r).length&&t.push("string"==typeof e?{[e]:{...r}}:e)}a(r(void 0,{...d}),d);const{[i]:l,...c}=f;if(l){const{css:e}=l,t=s[i]?.palette?.mode,o=!n&&t?{colorScheme:t,...e}:{...e};a(r(i,{...o}),o)}return Object.entries(c).forEach(([e,{css:t}])=>{const i=s[e]?.palette?.mode,o=!n&&i?{colorScheme:i,...t}:{...t};a(r(e,{...o}),o)}),o&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(x,E);return x.vars=k,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([e,t])=>{x[e]=t}),x.generateThemeVars=P,x.generateStyleSheets=O,x.generateSpacing=function(){return Xu(u.spacing,qu(this))},x.getColorSchemeSelector=function(e){return function(t){return"media"===e?("production"!==process.env.NODE_ENV&&"light"!==t&&"dark"!==t&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=a,x.unstable_sxConfig={...Ed,...u?.unstable_sxConfig},x.unstable_sx=function(e){return kd({sx:e,theme:this})},x.toRuntimeSource=Vp,x}function nh(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...!0!==r&&r,palette:Op({...!0===r?{}:r.palette,mode:t})})}function ih(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=(r?void 0:{light:!0}),defaultColorScheme:o=r?.mode,...s}=e,a=o||"light",l=i?.[a],c={...i,...r?{[a]:{..."boolean"!=typeof l&&l,palette:r}}:void 0};if(!1===n){if(!("colorSchemes"in e))return qp(e,...t);let n=r;"palette"in e||c[a]&&(!0!==c[a]?n=c[a].palette:"dark"===a&&(n={mode:"dark"}));const i=qp({...e,palette:n},...t);return i.defaultColorScheme=a,i.colorSchemes=c,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==c.light&&c.light,palette:i.palette},nh(i,"dark",c.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:i.palette},nh(i,"light",c.light)),i}return r||"light"in c||"light"!==a||(c.light=!0),rh({...s,colorSchemes:c,defaultColorScheme:a,..."boolean"!=typeof n&&n},...t)}const oh=ih();function sh(){const e=Ad(oh);return"production"!==process.env.NODE_ENV&&i.useDebugValue(e),e[Oa]||e}function ah(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const lh=e=>ah(e)&&"classes"!==e,ch=function(e={}){const{themeId:t,defaultTheme:r=jd,rootShouldForwardProp:n=Bd,slotShouldForwardProp:i=Bd}=e;function o(e){!function(e,t,r){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?r:e.theme[t]||e.theme}(e,t,r)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==kd));const{name:r,slot:s,skipVariantsResolver:a,skipSx:l,overridesResolver:c=Ud(Hd(s)),...u}=t,d=r&&r.startsWith("Mui")||s?"components":"custom",p=void 0!==a?a:s&&"Root"!==s&&"root"!==s||!1,h=l||!1;let f=Bd;"Root"===s||"root"===s?f=n:s?f=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(f=void 0);const g=su(e,{shouldForwardProp:f,label:Wd(r,s),...u}),v=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return zd(t,e,t.theme.modularCssLayers?d:void 0)};if(yu(e)){const t=Ld(e);return function(e){return t.variants?zd(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Vd(t.style,d):t.style}}return e},m=(...t)=>{const n=[],i=t.map(v),a=[];if(n.push(o),r&&c&&a.push(function(e){const t=e.theme,n=t.components?.[r]?.styleOverrides;if(!n)return null;const i={};for(const t in n)i[t]=zd(e,n[t],e.theme.modularCssLayers?"theme":void 0);return c(e,i)}),r&&!p&&a.push(function(e){const t=e.theme,n=t?.components?.[r]?.variants;return n?qd(e,n,[],e.theme.modularCssLayers?"theme":void 0):null}),h||a.push(kd),Array.isArray(i[0])){const e=i.shift(),t=new Array(n.length).fill(""),r=new Array(a.length).fill("");let o;o=[...t,...e,...r],o.raw=[...t,...e.raw,...r],n.unshift(o)}const l=[...n,...i,...a],u=g(...l);return e.muiName&&(u.muiName=e.muiName),"production"!==process.env.NODE_ENV&&(u.displayName=function(e,t,r){if(e)return`${e}${$u(t||"")}`;return`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Rd(e,"Component");if("object"==typeof e)switch(e.$$typeof){case _u.ForwardRef:return Dd(e,e.render,"ForwardRef");case _u.Memo:return Dd(e,e.type,"memo");default:return}}}(r)})`}(r,s,e)),u};return g.withConfig&&(m.withConfig=g.withConfig),m}}({themeId:Oa,defaultTheme:oh,rootShouldForwardProp:lh});function uh(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}const dh=function(e){let t,r;return function(n){let i=t;return void 0!==i&&n.theme===r||(vp.theme=n.theme,i=Ld(e(vp)),t=i,r=n.theme),i}};function ph(e){return hp(e)}function hh(e){return Id("MuiSvgIcon",e)}"production"!==process.env.NODE_ENV&&(ou.node,ou.object.isRequired),Nd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fh=ch("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${$u(r.color)}`],t[`fontSize${$u(r.fontSize)}`]]}})(dh(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),gh=i.forwardRef(function(e,r){const n=ph({props:e,name:"MuiSvgIcon"}),{children:o,className:s,color:l="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:f="0 0 24 24",...g}=n,v=i.isValidElement(o)&&"svg"===o.type,m={...n,color:l,component:c,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:p,viewBox:f,hasSvgAsChild:v},_={};p||(_.viewBox=f);const y=(e=>{const{color:t,fontSize:r,classes:n}=e;return bp({root:["root","inherit"!==t&&`color${$u(t)}`,`fontSize${$u(r)}`]},hh,n)})(m);return t.jsxs(fh,{as:c,className:a(y.root,s),focusable:"false",color:d,"aria-hidden":!h||void 0,role:h?"img":void 0,ref:r,..._,...g,...v&&o.props,ownerState:m,children:[v?o.props.children:o,h?t.jsx("title",{children:h}):null]})});function vh(e){return e&&e.ownerDocument||document}function mh(e){return vh(e).defaultView||window}function _h(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function yh(e){const t=i.useRef(e);return Yd(()=>{t.current=e}),i.useRef((...e)=>(0,t.current)(...e)).current}function bh(...e){const t=i.useRef(void 0),r=i.useCallback(t=>{const r=e.map(e=>{if(null==e)return null;if("function"==typeof e){const r=e,n=r(t);return"function"==typeof n?n:()=>{r(null)}}return e.current=t,()=>{e.current=null}});return()=>{r.forEach(e=>e?.())}},e);return i.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=r(e))},e)}function wh(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...r){return e(...r)||t(...r)}}function xh(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function Sh(e,t){return Sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sh(e,t)}function Eh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sh(e,t)}"production"!==process.env.NODE_ENV&&(gh.propTypes={children:ou.node,classes:ou.object,className:ou.string,color:ou.oneOfType([ou.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ou.string]),component:ou.elementType,fontSize:ou.oneOfType([ou.oneOf(["inherit","large","medium","small"]),ou.string]),htmlColor:ou.string,inheritViewBox:ou.bool,shapeRendering:ou.string,sx:ou.oneOfType([ou.arrayOf(ou.oneOfType([ou.func,ou.object,ou.bool])),ou.func,ou.object]),titleAccess:ou.string,viewBox:ou.string}),gh.muiName="SvgIcon";var kh=!1,Ph="production"!==process.env.NODE_ENV?ou.oneOfType([ou.number,ou.shape({enter:ou.number,exit:ou.number,appear:ou.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&ou.oneOfType([ou.string,ou.shape({enter:ou.string,exit:ou.string,active:ou.string}),ou.shape({enter:ou.string,enterDone:ou.string,enterActive:ou.string,exit:ou.string,exitDone:ou.string,exitActive:ou.string})]);var Oh=e.createContext(null),Mh="unmounted",Th="exited",Ah="entering",Ch="entered",$h="exiting",Fh=function(t){function n(e,r){var n;n=t.call(this,e,r)||this;var i,o=r&&!r.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?o?(i=Th,n.appearStatus=Ah):i=Ch:i=e.unmountOnExit||e.mountOnEnter?Mh:Th,n.state={status:i},n.nextCallback=null,n}Eh(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Mh?{status:Th}:null};var i=n.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Ah&&r!==Ch&&(t=Ah):r!==Ah&&r!==Ch||(t=$h)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ah){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Th&&this.setState({status:Mh})},i.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,o=this.props.nodeRef?[i]:[r.findDOMNode(this),i],s=o[0],a=o[1],l=this.getTimeouts(),c=i?l.appear:l.enter;!e&&!n||kh?this.safeSetState({status:Ch},function(){t.props.onEntered(s)}):(this.props.onEnter(s,a),this.safeSetState({status:Ah},function(){t.props.onEntering(s,a),t.onTransitionEnd(c,function(){t.safeSetState({status:Ch},function(){t.props.onEntered(s,a)})})}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:r.findDOMNode(this);t&&!kh?(this.props.onExit(i),this.safeSetState({status:$h},function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Th},function(){e.props.onExited(i)})})})):this.safeSetState({status:Th},function(){e.props.onExited(i)})},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],s=o[0],a=o[1];this.props.addEndListener(s,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Mh)return null;var r=this.props,n=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var i=xh(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return e.createElement(Oh.Provider,{value:null},"function"==typeof n?n(t,i):e.cloneElement(e.Children.only(n),i))},n}(e.Component);function Ih(){}Fh.contextType=Oh,Fh.propTypes="production"!==process.env.NODE_ENV?{nodeRef:ou.shape({current:"undefined"==typeof Element?ou.any:function(e,t,r,n,i,o){var s=e[t];return ou.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,o)}}),children:ou.oneOfType([ou.func.isRequired,ou.element.isRequired]).isRequired,in:ou.bool,mountOnEnter:ou.bool,unmountOnExit:ou.bool,appear:ou.bool,enter:ou.bool,exit:ou.bool,timeout:function(e){var t=Ph;e.addEndListener||(t=t.isRequired);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.apply(void 0,[e].concat(n))},addEndListener:ou.func,onEnter:ou.func,onEntering:ou.func,onEntered:ou.func,onExit:ou.func,onExiting:ou.func,onExited:ou.func}:{},Fh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ih,onEntering:Ih,onEntered:Ih,onExit:Ih,onExiting:Ih,onExited:Ih},Fh.UNMOUNTED=Mh,Fh.EXITED=Th,Fh.ENTERING=Ah,Fh.ENTERED=Ch,Fh.EXITING=$h;const Nh=e=>e.scrollTop;function Rh(e,t){const{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof r?r:r[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof n?n[t.mode]:n),delay:i.transitionDelay}}function Dh(e){return"string"==typeof e}function Lh(e,t,r){return void 0===e||Dh(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function jh(e,t,r){return"function"==typeof e?e(t,r):e}function Bh(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function Vh(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function Uh(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const e=a(r?.className,o,i?.className,n?.className),t={...r?.style,...i?.style,...n?.style},s={...r,...i,...n};return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=Bh({...i,...n}),l=Vh(n),c=Vh(i),u=t(s),d=a(u?.className,r?.className,o,i?.className,n?.className),p={...u?.style,...r?.style,...i?.style,...n?.style},h={...u,...r,...c,...l};return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:u.ref}}function zh(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:o,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=o,h=u[e]||n,f=jh(d[e],i),{props:{component:g,...v},internalRef:m}=Uh({className:r,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:f}),_=bh(m,f?.ref,t.ref),y="root"===e?g||c:g;return[h,Lh(h,{..."root"===e&&!c&&!u[e]&&s,..."root"!==e&&!u[e]&&s,...v,...y&&!a&&{as:y},...y&&a&&{component:y},ref:_},i)]}function qh(e,t,r,n){const i=e[t];if(null==i||!Number.isInteger(i)){const e=function(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return t}}(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${e}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Wh(e,t,r,n){return void 0===e[t]?null:qh(e,t,r,n)}function Hh(){return null}Wh.isRequired=qh,Hh.isRequired=Hh;const Gh="production"===process.env.NODE_ENV?Hh:Wh;function Yh(e){return Id("MuiPaper",e)}Nd("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Kh=ch("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(dh(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Xh=i.forwardRef(function(e,r){const n=ph({props:e,name:"MuiPaper"}),i=sh(),{className:o,component:s="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=n,p={...n,component:s,elevation:l,square:c,variant:u},h=(e=>{const{square:t,elevation:r,variant:n,classes:i}=e;return bp({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Yh,i)})(p);return"production"!==process.env.NODE_ENV&&void 0===i.shadows[l]&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join("\n")),t.jsx(Kh,{as:s,ownerState:p,className:a(h.root,o),ref:r,...d,style:{..."elevation"===u&&{"--Paper-shadow":(i.vars||i).shadows[l],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[l]},...!i.vars&&"dark"===i.palette.mode&&{"--Paper-overlay":`linear-gradient(${rp("#fff",Wp(l))}, ${rp("#fff",Wp(l))})`}},...d.style}})});function Jh(e,t,r,n,i){if("production"===process.env.NODE_ENV)return null;const o=e[t],s=i||t;return null==o?null:o&&1!==o.nodeType?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Zh(e){return parseInt(i.version,10)>=19?e?.props?.ref||null:e?.ref||null}"production"!==process.env.NODE_ENV&&(Xh.propTypes={children:ou.node,classes:ou.object,className:ou.string,component:ou.elementType,elevation:wh(Gh,e=>{const{elevation:t,variant:r}=e;return t>0&&"outlined"===r?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:ou.bool,style:ou.object,sx:ou.oneOfType([ou.arrayOf(ou.oneOfType([ou.func,ou.object,ou.bool])),ou.func,ou.object]),variant:ou.oneOfType([ou.oneOf(["elevation","outlined"]),ou.string])});const Qh=i.forwardRef(function(e,t){const{children:r,container:n,disablePortal:s=!1}=e,[a,l]=i.useState(null),c=bh(i.isValidElement(r)?Zh(r):null,t);if(Yd(()=>{s||l(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,s]),Yd(()=>{if(a&&!s)return _h(t,a),()=>{_h(t,null)}},[t,a,s]),s){if(i.isValidElement(r)){const e={ref:c};return i.cloneElement(r,e)}return r}return a?o.createPortal(r,a):a});function ef(e,t,r,n,i){const o=e[t],s=i||t;if(null==o||"undefined"==typeof window)return null;let a;const l=o.type;return"function"!=typeof l||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(l)||(a="Did you accidentally use a plain function component for an element instead?"),void 0!==a?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}"production"!==process.env.NODE_ENV&&(Qh.propTypes={children:ou.node,container:ou.oneOfType([Jh,ou.func]),disablePortal:ou.bool}),"production"!==process.env.NODE_ENV&&(Qh.propTypes=up(Qh.propTypes));const tf=wh(ou.element,ef);tf.isRequired=wh(ou.element.isRequired,ef);const rf={entering:{opacity:1},entered:{opacity:1}},nf=i.forwardRef(function(e,r){const n=sh(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:g,onExiting:v,style:m,timeout:_=o,TransitionComponent:y=Fh,...b}=e,w=i.useRef(null),x=bh(w,Zh(l),r),S=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},E=S(h),k=S((e,t)=>{Nh(e);const r=Rh({style:m,timeout:_,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),d&&d(e,t)}),P=S(p),O=S(v),M=S(e=>{const t=Rh({style:m,timeout:_,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),T=S(g);return t.jsx(y,{appear:a,in:u,nodeRef:w,onEnter:k,onEntered:P,onEntering:E,onExit:M,onExited:T,onExiting:O,addEndListener:e=>{s&&s(w.current,e)},timeout:_,...b,children:(e,{ownerState:t,...r})=>i.cloneElement(l,{style:{opacity:0,visibility:"exited"!==e||u?void 0:"hidden",...rf[e],...m,...l.props.style},ref:x,...r})})});function of(e){return Id("MuiBackdrop",e)}"production"!==process.env.NODE_ENV&&(nf.propTypes={addEndListener:ou.func,appear:ou.bool,children:tf.isRequired,easing:ou.oneOfType([ou.shape({enter:ou.string,exit:ou.string}),ou.string]),in:ou.bool,onEnter:ou.func,onEntered:ou.func,onEntering:ou.func,onExit:ou.func,onExited:ou.func,onExiting:ou.func,style:ou.object,timeout:ou.oneOfType([ou.number,ou.shape({appear:ou.number,enter:ou.number,exit:ou.number})])}),Nd("MuiBackdrop",["root","invisible"]);const sf=ch("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),af=i.forwardRef(function(e,r){const n=ph({props:e,name:"MuiBackdrop"}),{children:i,className:o,component:s="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:f,transitionDuration:g,...v}=n,m={...n,component:s,invisible:l},_=(e=>{const{classes:t,invisible:r}=e;return bp({root:["root",r&&"invisible"]},of,t)})(m),y={component:s,slots:{transition:f,root:u.Root,...h},slotProps:{...d,...p}},[b,w]=zh("root",{elementType:sf,externalForwardedProps:y,className:a(_.root,o),ownerState:m}),[x,S]=zh("transition",{elementType:nf,externalForwardedProps:y,ownerState:m});return t.jsx(x,{in:c,timeout:g,...v,...S,children:t.jsx(b,{"aria-hidden":!0,...w,classes:_,ref:r,children:i})})});function lf(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function cf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function uf(e){return parseInt(mh(e).getComputedStyle(e).paddingRight,10)||0}function df(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,e=>{const t=!o.includes(e),r=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&cf(e,i)})}function pf(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function hf(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=vh(e);return t.body===e?mh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=lf(mh(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${uf(n)+e}px`;const t=vh(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${uf(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=vh(n).body;else{const t=n.parentElement,r=mh(n);e="HTML"===t?.nodeName&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}"production"!==process.env.NODE_ENV&&(af.propTypes={children:ou.node,classes:ou.object,className:ou.string,component:ou.elementType,components:ou.shape({Root:ou.elementType}),componentsProps:ou.shape({root:ou.object}),invisible:ou.bool,open:ou.bool.isRequired,slotProps:ou.shape({root:ou.oneOfType([ou.func,ou.object]),transition:ou.oneOfType([ou.func,ou.object])}),slots:ou.shape({root:ou.elementType,transition:ou.elementType}),sx:ou.oneOfType([ou.arrayOf(ou.oneOfType([ou.func,ou.object,ou.bool])),ou.func,ou.object]),TransitionComponent:ou.elementType,transitionDuration:ou.oneOfType([ou.number,ou.shape({appear:ou.number,enter:ou.number,exit:ou.number})])});function ff(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}const gf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vf(e){const t=[],r=[];return Array.from(e.querySelectorAll(gf)).forEach((e,n)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===i?t.push(e):r.push({documentOrder:n,tabIndex:i,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function mf(){return!0}function _f(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:a=vf,isEnabled:l=mf,open:c}=e,u=i.useRef(!1),d=i.useRef(null),p=i.useRef(null),h=i.useRef(null),f=i.useRef(null),g=i.useRef(!1),v=i.useRef(null),m=bh(Zh(r),v),_=i.useRef(null);i.useEffect(()=>{c&&v.current&&(g.current=!n)},[n,c]),i.useEffect(()=>{if(!c||!v.current)return;const e=ff(vh(v.current));return v.current.contains(e)||(v.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n")),v.current.setAttribute("tabIndex","-1")),g.current&&v.current.focus()),()=>{s||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[c]),i.useEffect(()=>{if(!c||!v.current)return;const e=vh(v.current),t=ff(e),r=e=>{_.current=e,!o&&l()&&"Tab"===e.key&&t===v.current&&e.shiftKey&&(u.current=!0,p.current&&p.current.focus())},n=()=>{const t=v.current;if(null===t)return;const r=ff(e);if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(r))return;if(o&&r!==d.current&&r!==p.current)return;if(r!==f.current)f.current=null;else if(null!==f.current)return;if(!g.current)return;let n=[];if(r!==d.current&&r!==p.current||(n=a(v.current)),n.length>0){const e=Boolean(_.current?.shiftKey&&"Tab"===_.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",r,!0);const i=setInterval(()=>{const t=ff(e);t&&"BODY"===t.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",r,!0)}},[n,o,s,l,c,a]);const y=e=>{null===h.current&&(h.current=e.relatedTarget),g.current=!0};return t.jsxs(i.Fragment,{children:[t.jsx("div",{tabIndex:c?0:-1,onFocus:y,ref:d,"data-testid":"sentinelStart"}),i.cloneElement(r,{ref:m,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),g.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),t.jsx("div",{tabIndex:c?0:-1,onFocus:y,ref:p,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(_f.propTypes={children:tf,disableAutoFocus:ou.bool,disableEnforceFocus:ou.bool,disableRestoreFocus:ou.bool,getTabbable:ou.func,isEnabled:ou.func,open:ou.bool.isRequired}),"production"!==process.env.NODE_ENV&&(_f.propTypes=up(_f.propTypes));const yf=()=>{},bf=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&cf(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);df(t,e.mount,e.modalRef,n,!0);const i=pf(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=pf(this.containers,t=>t.modals.includes(e)),n=this.containers[r];n.restore||(n.restore=hf(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=pf(this.containers,t=>t.modals.includes(e)),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&cf(e.modalRef,t),df(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&cf(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function wf(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=i.useRef({}),h=i.useRef(null),f=i.useRef(null),g=bh(f,d),[v,m]=i.useState(!u),_=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const b=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),w=()=>{bf.mount(b(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},x=yh(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||vh(h.current).body;bf.add(b(),e),f.current&&w()}),S=()=>bf.isTopModal(b()),E=yh(e=>{h.current=e,e&&(u&&S()?w():f.current&&cf(f.current,y))}),k=i.useCallback(()=>{bf.remove(b(),y)},[y]);i.useEffect(()=>()=>{k()},[k]),i.useEffect(()=>{u?x():_&&o||k()},[u,k,_,o,x]);const P=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&S()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},O=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Bh(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n={...r,...t};return{role:"presentation",...n,onKeyDown:P(n),ref:g}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:O(t),open:u}},getTransitionProps:()=>({onEnter:uh(()=>{m(!1),s&&s()},l?.props.onEnter??yf),onExited:uh(()=>{m(!0),a&&a(),o&&k()},l?.props.onExited??yf)}),rootRef:g,portalRef:E,isTopModal:S,exited:v,hasTransition:_}}function xf(e){return Id("MuiModal",e)}Nd("MuiModal",["root","hidden","backdrop"]);const Sf=ch("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(dh(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),Ef=ch(af,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),kf=i.forwardRef(function(e,r){const n=ph({name:"MuiModal",props:e}),{BackdropComponent:o=Ef,BackdropProps:s,classes:l,className:c,closeAfterTransition:u=!1,children:d,container:p,component:h,components:f={},componentsProps:g={},disableAutoFocus:v=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:_=!1,disablePortal:y=!1,disableRestoreFocus:b=!1,disableScrollLock:w=!1,hideBackdrop:x=!1,keepMounted:S=!1,onClose:E,onTransitionEnter:k,onTransitionExited:P,open:O,slotProps:M={},slots:T={},theme:A,...C}=n,$={...n,closeAfterTransition:u,disableAutoFocus:v,disableEnforceFocus:m,disableEscapeKeyDown:_,disablePortal:y,disableRestoreFocus:b,disableScrollLock:w,hideBackdrop:x,keepMounted:S},{getRootProps:F,getBackdropProps:I,getTransitionProps:N,portalRef:R,isTopModal:D,exited:L,hasTransition:j}=wf({...$,rootRef:r}),B={...$,exited:L},V=(e=>{const{open:t,exited:r,classes:n}=e;return bp({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},xf,n)})(B),U={};if(void 0===d.props.tabIndex&&(U.tabIndex="-1"),j){const{onEnter:e,onExited:t}=N();U.onEnter=e,U.onExited=t}const z={slots:{root:f.Root,backdrop:f.Backdrop,...T},slotProps:{...g,...M}},[q,W]=zh("root",{ref:r,elementType:Sf,externalForwardedProps:{...z,...C,component:h},getSlotProps:F,ownerState:B,className:a(c,V?.root,!B.open&&B.exited&&V?.hidden)}),[H,G]=zh("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:e=>I({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:a(s?.className,V?.backdrop),ownerState:B});return S||O||j&&!L?t.jsx(Qh,{ref:R,container:p,disablePortal:y,children:t.jsxs(q,{...W,children:[!x&&o?t.jsx(H,{...G}):null,t.jsx(_f,{disableEnforceFocus:m,disableAutoFocus:v,disableRestoreFocus:b,isEnabled:D,open:O,children:i.cloneElement(d,U)})]})}):null});var Pf,Of,Mf,Tf,Af,Cf;"production"!==process.env.NODE_ENV&&(kf.propTypes={BackdropComponent:ou.elementType,BackdropProps:ou.object,children:tf.isRequired,classes:ou.object,className:ou.string,closeAfterTransition:ou.bool,component:ou.elementType,components:ou.shape({Backdrop:ou.elementType,Root:ou.elementType}),componentsProps:ou.shape({backdrop:ou.oneOfType([ou.func,ou.object]),root:ou.oneOfType([ou.func,ou.object])}),container:ou.oneOfType([Jh,ou.func]),disableAutoFocus:ou.bool,disableEnforceFocus:ou.bool,disableEscapeKeyDown:ou.bool,disablePortal:ou.bool,disableRestoreFocus:ou.bool,disableScrollLock:ou.bool,hideBackdrop:ou.bool,keepMounted:ou.bool,onClose:ou.func,onTransitionEnter:ou.func,onTransitionExited:ou.func,open:ou.bool.isRequired,slotProps:ou.shape({backdrop:ou.oneOfType([ou.func,ou.object]),root:ou.oneOfType([ou.func,ou.object])}),slots:ou.shape({backdrop:ou.elementType,root:ou.elementType}),sx:ou.oneOfType([ou.arrayOf(ou.oneOfType([ou.func,ou.object,ou.bool])),ou.func,ou.object])}),exports.GenderType=void 0,(Pf=exports.GenderType||(exports.GenderType={})).Male="male",Pf.Female="female",exports.OnboardingStep=void 0,(Of=exports.OnboardingStep||(exports.OnboardingStep={})).Name="name",Of.Email="email",Of.Height="height",Of.Gender="gender",exports.MuseScreenStep=void 0,(Mf=exports.MuseScreenStep||(exports.MuseScreenStep={})).Body="body",Mf.Face="face",Mf.SizeFit="sizeFit",Mf.Ready="ready",function(e){e.BodyScan="bodyScan",e.FaceScan="faceScan",e.SizeFit="sizeFit"}(Tf||(Tf={})),exports.SectionType=void 0,(Af=exports.SectionType||(exports.SectionType={})).Full="full",Af.Body="body",Af.Face="face",exports.PreferredLanguage=void 0,(Cf=exports.PreferredLanguage||(exports.PreferredLanguage={})).English="English",Cf.Hindi="Hindi",Cf.German="German",Cf.French="French",Cf.Spanish="Spanish",Cf.Arabic="Arabic",Cf.Italian="Italian",exports.Backdrop=af,exports.ClassNameGenerator=$d,exports.Emotion$1=xc,exports.Fade=nf,exports.HTMLElementType=Jh,exports.Modal=kf,exports.Paper=Xh,exports.PropTypes=ou,exports.THEME_ID=Oa,exports.ThemeContext=pc,exports.Transition=Fh,exports.TransitionGroupContext=Oh,exports._extends=Ma,exports._inheritsLoose=Eh,exports._objectWithoutPropertiesLoose=xh,exports.activeElement=ff,exports.appendOwnerState=Lh,exports.capitalize=$u,exports.chainPropTypes=wh,exports.checkCameraPermission=async()=>{try{return await Bs.requestVideoPermissions(),{disabled:!1,message:""}}catch(e){if("object"==typeof e&&null!==e&&"type"in e){const{type:t}=e;if(t===js.MediaPermissionsErrorType.Generic||t===js.MediaPermissionsErrorType.CouldNotStartVideoSource)return{disabled:!0,message:"Could not start video source"};if(t===js.MediaPermissionsErrorType.SystemPermissionDenied||t===js.MediaPermissionsErrorType.UserPermissionDenied)return{disabled:!0,message:"Permission denied"}}return{disabled:!0,message:"An unknown error occurred"}}},exports.clsx=a,exports.commonjsGlobal=Ts,exports.composeClasses=bp,exports.convertToCentimeters=function(e,t){return((e&&30.48*+e)??0)+((t&&2.54*+t)??0)},exports.createEmotionProps=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var r={};for(var n in t)hc.call(t,n)&&(r[n]=t[n]);if(r[_c]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var i=function(e){if(e)for(var t=e.split("\n"),r=0;r<t.length;r++){var n=gc(t[r]);if(n){if(vc.has(n))break;if(/^[A-Z]/.test(n))return mc(n)}}}((new Error).stack);i&&(r[yc]=i)}return r},exports.createObjectMetadataArray=({clothes_fit:e,gender:t,email:r,focal_length:n,scan_type:i,customer_store_url:o,height:s,callback_url:a})=>{const l=[{clothes_fit:e}];return r&&l.push({email:r}),n&&l.push({focal_length:`${n}`}),s&&l.push({height:`${s}`}),o&&l.push({customer_store_url:o}),t&&l.push({gender:t.toLowerCase()}),i&&l.push({scan_type:i}),l.push({callback_url:a}),l},exports.createSvgIcon=function(e,r){function n(n,i){return t.jsx(gh,{"data-testid":"production"!==process.env.NODE_ENV?`${r}Icon`:void 0,ref:i,...n,children:e})}return"production"!==process.env.NODE_ENV&&(n.displayName=`${r}Icon`),n.muiName=gh.muiName,i.memo(i.forwardRef(n))},exports.createTheme=ih,exports.debounce=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n},exports.deepmerge=wu,exports.defaultSxConfig=Ed,exports.defaultTheme=oh,exports.elementAcceptingRef=tf,exports.formatMuiErrorMessage=Pa,exports.generateUtilityClass=Id,exports.generateUtilityClasses=Nd,exports.generateUuid=()=>{return qs.randomUUID&&!e?qs.randomUUID():Ws(e);var e},exports.getBrowserName=()=>{const e=navigator.userAgent;let t;return t=e.includes("Opera")||e.includes("Opr")?"Opera":e.includes("Edg")?"Edge":e.includes("Chrome")||navigator.vendor.toLowerCase().includes("google")?"Chrome":e.includes("Safari")?"Safari":e.includes("Firefox")?"Firefox":"Browser",t},exports.getCurrentTimeInSeconds=()=>Math.round(Date.now()/1e3),exports.getDefaultExportFromCjs=As,exports.getReactElementRef=Zh,exports.getRegisteredStyles=Ll,exports.getScrollbarSize=lf,exports.getTransitionProps=Rh,exports.handleErrorMessage=e=>e?.response?.data?.error??e?.response?.data?.message??e?.response?.data?.details?.[0]?.message??e?.message??e?.error??"Something went wrong",exports.handleScanTimeCapture=({eventName:e,scanID:t,status:r,email:n,completionTime:i=0,message:o="",data:s,faceScanId:a,startTime:l,uploadDuration:c})=>{const u=(new Date).toISOString(),d=Object.fromEntries(Object.entries({timestamp:u,status:r,scanID:t,faceScanId:a,email:n,completionTime:i,message:o,data:s,startTime:l,uploadDuration:c}).filter(([,e])=>void 0!==e&&""!==e&&0!==e));Ms.capture(e,d)},exports.handleWebSocketCapture=({eventName:e,scanID:t,connection:r,type:n,email:i,faceScanID:o})=>{const s={connection:r,...t?{scanID:t}:{},timestamp:(new Date).toISOString(),type:n,...o?{faceScanID:o}:{}};i&&(s.email=i),Ms.capture(e,s)},exports.hasOwn=hc,exports.insertStyles=Bl,exports.integerPropType=Gh,exports.internal_serializeStyles=lu,exports.isHostComponent=Dh,exports.isPlainObject=yu,exports.isValidEmail=e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),exports.memoTheme=dh,exports.mergeSlotProps=Uh,exports.mergeSlotProps$1=function(e,t){if(!e)return t;function r(e,t){const r={};return Object.keys(t).forEach(n=>{(function(e,t){const r=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&r>=65&&r<=90&&"function"==typeof t})(n,t[n])&&"function"==typeof e[n]&&(r[n]=(...r)=>{e[n](...r),t[n](...r)})}),r}if("function"==typeof e||"function"==typeof t)return n=>{const i="function"==typeof t?t(n):t,o="function"==typeof e?e({...n,...i}):e,s=a(n?.className,i?.className,o?.className),l=r(o,i);return{...i,...o,...l,...!!s&&{className:s},...i?.style&&o?.style&&{style:{...i.style,...o.style}},...i?.sx&&o?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const n=t,i=r(e,n),o=a(n?.className,e?.className);return{...t,...e,...i,...!!o&&{className:o},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}},exports.ownerDocument=vh,exports.ownerWindow=mh,exports.qo=Ms,exports.reactIsExports=_u,exports.reflow=Nh,exports.registerStyles=jl,exports.rescanSupportCaptureEvent=({eventName:e,scanID:t,status:r=!1,gender:n,email:i,height:o})=>{const s={scanID:t,timestamp:(new Date).toISOString(),email:i,height:o,gender:n,status:r};Ms.capture(e,s)},exports.resolveComponentProps=jh,exports.resolveSteps=e=>{if(!e.length)throw new Error("❌ Onboarding requires at least one step.");const t=["email","name","gender","height"].filter(t=>!e.some(e=>e.type===t));if(t.length>0)throw new Error(`❌ Missing required steps: ${t.join(", ")}`);const r=e.filter(e=>!1!==e.isVisible),n=r.filter(e=>"number"==typeof e.order);r.filter(e=>"number"!=typeof e.order);const i=[...n].sort((e,t)=>e.order-t.order),o=e.filter(e=>!1!==e.isVisible&&"number"!=typeof e.order);return[...i,...o]},exports.rootShouldForwardProp=lh,exports.serializeStyles=sc,exports.slotShouldForwardProp=ah,exports.styleFunctionSx=kd,exports.styled=ch,exports.styled$1=su,exports.useDefaultProps=ph,exports.useEnhancedEffect=Yd,exports.useEventCallback=yh,exports.useForkRef=bh,exports.useId=function(e){if(void 0!==gp){const t=gp();return e??t}return function(e){const[t,r]=i.useState(e),n=e||t;return i.useEffect(()=>{null==t&&(fp+=1,r(`mui-${fp}`))},[t]),n}(e)},exports.useInsertionEffectAlwaysWithSyncFallback=lc,exports.useInsertionEffectWithLayoutFallback=cc,exports.useRtl=()=>i.useContext(dp)??!1,exports.useSlot=zh,exports.useTheme=Ad,exports.useTheme$1=sh,exports.withEmotionCache=dc;
|
|
32
|
+
//# sourceMappingURL=enums-Dc2vWGVM.js.map
|