@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.
Files changed (88) hide show
  1. package/dist/Header-BN3RqavS.js +2 -0
  2. package/dist/Header-BN3RqavS.js.map +1 -0
  3. package/dist/Header-BWD-iDc_.js +2 -0
  4. package/dist/Header-BWD-iDc_.js.map +1 -0
  5. package/dist/Header-C7g9y-3a.js +2 -0
  6. package/dist/Header-C7g9y-3a.js.map +1 -0
  7. package/dist/Header-Cq-yREky.js +2 -0
  8. package/dist/Header-Cq-yREky.js.map +1 -0
  9. package/dist/Header-CvHiY9J5.js +2 -0
  10. package/dist/Header-CvHiY9J5.js.map +1 -0
  11. package/dist/Header-D3TZLqdL.js +2 -0
  12. package/dist/Header-D3TZLqdL.js.map +1 -0
  13. package/dist/Header-DGXTNcua.js +2 -0
  14. package/dist/Header-DGXTNcua.js.map +1 -0
  15. package/dist/Header-ivyQHWhg.js +2 -0
  16. package/dist/Header-ivyQHWhg.js.map +1 -0
  17. package/dist/LoadingScreen-B1830Y9Y.js +2 -0
  18. package/dist/LoadingScreen-B1830Y9Y.js.map +1 -0
  19. package/dist/LoadingScreen-BY7P5qKu.js +2 -0
  20. package/dist/LoadingScreen-BY7P5qKu.js.map +1 -0
  21. package/dist/LoadingScreen-B_adCE1u.js +2 -0
  22. package/dist/LoadingScreen-B_adCE1u.js.map +1 -0
  23. package/dist/LoadingScreen-BwUpdDu-.js +2 -0
  24. package/dist/LoadingScreen-BwUpdDu-.js.map +1 -0
  25. package/dist/LoadingScreen-CIG9Mhat.js +2 -0
  26. package/dist/LoadingScreen-CIG9Mhat.js.map +1 -0
  27. package/dist/LoadingScreen-CRa8Dvjq.js +2 -0
  28. package/dist/LoadingScreen-CRa8Dvjq.js.map +1 -0
  29. package/dist/LoadingScreen-CTMMPzB7.js +2 -0
  30. package/dist/LoadingScreen-CTMMPzB7.js.map +1 -0
  31. package/dist/LoadingScreen-Cy9Vy7kX.js +2 -0
  32. package/dist/LoadingScreen-Cy9Vy7kX.js.map +1 -0
  33. package/dist/LoadingScreen-D1MAQtVF.js +2 -0
  34. package/dist/LoadingScreen-D1MAQtVF.js.map +1 -0
  35. package/dist/LoadingScreen-DEV-HMUN.js +2 -0
  36. package/dist/LoadingScreen-DEV-HMUN.js.map +1 -0
  37. package/dist/LoadingScreen-DfPQoZ4M.js +2 -0
  38. package/dist/LoadingScreen-DfPQoZ4M.js.map +1 -0
  39. package/dist/LoadingScreen-ygW5w9-T.js +2 -0
  40. package/dist/LoadingScreen-ygW5w9-T.js.map +1 -0
  41. package/dist/arrow-right-BehK5wY6.js +27 -0
  42. package/dist/arrow-right-BehK5wY6.js.map +1 -0
  43. package/dist/arrow-right-Dp5jFyu1.js +27 -0
  44. package/dist/arrow-right-Dp5jFyu1.js.map +1 -0
  45. package/dist/bodyScan.d.ts +2 -2
  46. package/dist/bodyScan.js +1 -19
  47. package/dist/bodyScan.js.map +1 -1
  48. package/dist/bodyScan.mjs +1 -19
  49. package/dist/bodyScan.mjs.map +1 -1
  50. package/dist/constants-B8ID6mz4.js +2 -0
  51. package/dist/constants-B8ID6mz4.js.map +1 -0
  52. package/dist/constants-CHVqX9xE.js +2 -0
  53. package/dist/constants-CHVqX9xE.js.map +1 -0
  54. package/dist/constants-Df5S1CyA.js +2 -0
  55. package/dist/constants-Df5S1CyA.js.map +1 -0
  56. package/dist/constants-Diz_EEN6.js +2 -0
  57. package/dist/constants-Diz_EEN6.js.map +1 -0
  58. package/dist/enums-Dc2vWGVM.js +32 -0
  59. package/dist/enums-Dc2vWGVM.js.map +1 -0
  60. package/dist/enums-DlS0sXbg.js +2 -0
  61. package/dist/enums-DlS0sXbg.js.map +1 -0
  62. package/dist/enums-VMt0tBVG.js +32 -0
  63. package/dist/enums-VMt0tBVG.js.map +1 -0
  64. package/dist/enums-scH6Mgqf.js +2 -0
  65. package/dist/enums-scH6Mgqf.js.map +1 -0
  66. package/dist/faceScan.d.ts +2 -2
  67. package/dist/faceScan.js +1 -1
  68. package/dist/faceScan.js.map +1 -1
  69. package/dist/faceScan.mjs +1 -1
  70. package/dist/faceScan.mjs.map +1 -1
  71. package/dist/index.css +1 -1
  72. package/dist/index.d.ts +2 -2
  73. package/dist/index.js +1 -89
  74. package/dist/index.js.map +1 -1
  75. package/dist/index.mjs +1 -89
  76. package/dist/index.mjs.map +1 -1
  77. package/dist/interfaces-82rEVk5I.d.ts +149 -0
  78. package/dist/interfaces-BCPQdKAJ.d.ts +149 -0
  79. package/dist/interfaces-DN0Cmtpk.d.ts +148 -0
  80. package/dist/pose-detection.esm-BehJiApJ.js +18 -0
  81. package/dist/pose-detection.esm-BehJiApJ.js.map +1 -0
  82. package/dist/pose-detection.esm-BqQhOaLq.js +18 -0
  83. package/dist/pose-detection.esm-BqQhOaLq.js.map +1 -0
  84. package/dist/pose-detection.esm-DGv0E7iH.js +18 -0
  85. package/dist/pose-detection.esm-DGv0E7iH.js.map +1 -0
  86. package/dist/pose-detection.esm-DouwBFG2.js +18 -0
  87. package/dist/pose-detection.esm-DouwBFG2.js.map +1 -0
  88. package/package.json +7 -13
@@ -0,0 +1,32 @@
1
+ import*as e from"react";import t,{forwardRef as r,useContext as n}from"react";import{jsxs as i,jsx as o}from"react/jsx-runtime";import*as s from"react-dom";import a from"react-dom";function l(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=l(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function c(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=l(e))&&(n&&(n+=" "),n+=t);return n}var u="undefined"!=typeof window?window:void 0,d="undefined"!=typeof globalThis?globalThis:u;"undefined"==typeof self&&(d.self=d),"undefined"==typeof File&&(d.File=function(){});var p=Array.prototype,h=p.forEach,f=p.indexOf,g=null==d?void 0:d.navigator,v=null==d?void 0:d.document,m=null==d?void 0:d.location,_=null==d?void 0:d.fetch,y=null!=d&&d.XMLHttpRequest&&"withCredentials"in new d.XMLHttpRequest?d.XMLHttpRequest:void 0,b=null==d?void 0:d.AbortController,w=null==g?void 0:g.userAgent,S=null!=u?u:{},E={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 k(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 P(){return P=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},P.apply(null,arguments)}function O(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 M=["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"],A=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var r=e.toLowerCase();return M.concat(t).some(e=>{var t=e.toLowerCase();return-1!==r.indexOf(t)})},T=["$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 $(e,t){return-1!==e.indexOf(t)}var C=function(e){return e.trim()},F=function(e){return e.replace(/^\$/,"")},I=Array.isArray,N=Object.prototype,R=N.hasOwnProperty,D=N.toString,L=I||function(e){return"[object Array]"===D.call(e)},j=e=>"function"==typeof e,B=e=>e===Object(e)&&!L(e),V=e=>{if(B(e)){for(var t in e)if(R.call(e,t))return!1;return!0}return!1},U=e=>void 0===e,z=e=>"[object String]"==D.call(e),q=e=>z(e)&&0===e.trim().length,W=e=>null===e,H=e=>U(e)||W(e),G=e=>"[object Number]"==D.call(e),Y=e=>"[object Boolean]"===D.call(e),K=e=>$(T,e);function X(e){return null===e||"object"!=typeof e}function J(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function Z(e){return!U(Event)&&function(e,t){try{return e instanceof t}catch(e){return!1}}(e,Event)}var Q=[!0,"true",1,"1","yes"],ee=e=>$(Q,e),te=[!1,"false",0,"0","no"];function re(e,t,r,n,i){return t>r&&(n.warn("min cannot be greater than max."),t=r),G(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),re(i||r,t,r,n))}class ne{constructor(e){this.t={},this.i=e.i,this.o=re(e.bucketSize,0,100,e.h),this.m=re(e.refillRate,0,this.o,e.h),this.S=re(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 ie,oe,se,ae=e=>e instanceof Error;function le(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return se&&r.length===oe||(oe=r.length,se=r.reduce((r,n)=>{ie||(ie={});var i=ie[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,ie[n]=[l,c];break}}return r},{})),se}}class ce{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 k(function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&L(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)),P({},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 k(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,P({},t,{handled:!0}))),s}buildParsingContext(){return{chunkIdMap:le(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 P({},t,{syntheticException:0==r?t.syntheticException:void 0,mechanism:e,apply:e=>n(e,r),next:e=>n(e,r+1)})}}var ue="?";function de(e,t,r,n,i){var o={platform:e,filename:t,function:"<anonymous>"===r?ue:r,in_app:!0};return U(n)||(o.lineno=n),U(i)||(o.colno=i),o}var pe=(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]:ue,r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},he=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,fe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ge=/\((\S*)(?::(\d+))(?::(\d+))\)/,ve=(e,t)=>{var r=he.exec(e);if(r){var[,n,i,o]=r;return de(t,n,ue,+i,+o)}var s=fe.exec(e);if(s){if(s[2]&&0===s[2].indexOf("eval")){var a=ge.exec(s[2]);a&&(s[2]=a[1],s[3]=a[2],s[4]=a[3])}var[l,c]=pe(s[1]||ue,s[2]);return de(t,c,l,s[3]?+s[3]:void 0,s[4]?+s[4]:void 0)}},me=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,_e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ye=(e,t)=>{var r=me.exec(e);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var n=_e.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]||ue;return[o,i]=pe(o,i),de(t,i,o,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},be=/\(error: (.*)\)/;class we{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var r=z(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 J(e,"DOMException")}isDOMError(e){return J(e,"DOMError")}}class Se{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 Ee{constructor(){}match(e){return J(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 ke{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 Pe=["fatal","error","warning","log","info","debug"];function Oe(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 Me{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 Z(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: "+Oe(e)}isSeverityLevel(e){return z(e)&&!q(e)&&Pe.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t];if(ae(r))return r}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){return}}}class Ae{match(e){return Z(e)}coerce(e,t){var r,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+Oe(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class Te{match(e){return X(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 $e{match(e){return J(e,"PromiseRejectionEvent")}coerce(e,t){var r,n=this.getUnhandledRejectionReason(e);return X(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(X(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 Ce=function(e,t){var{debugEnabled:r}=void 0===t?{}:t,n={k:function(t){if(u&&(E.DEBUG||S.POSTHOG_DEBUG||r)&&!U(u.console)&&u.console){for(var n=("__rrweb_original__"in u.console[t]?u.console[t].__rrweb_original__:u.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)=>Ce(e+" "+t,r)};return n},Fe=Ce("[PostHog.js]"),Ie=Fe.createLogger,Ne=Ie("[ExternalScriptsLoader]"),Re=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return Ne.warn(t+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var n=null==v?void 0:v.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(!v)return r("document not found");var n=v.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=v.querySelectorAll("body > script");o.length>0?null==(i=o[0].parentNode)||i.insertBefore(n,o[0]):v.body.appendChild(n)};null!=v&&v.body?a():null==v||v.addEventListener("DOMContentLoaded",a)};S.__PosthogExtensions__=S.__PosthogExtensions__||{},S.__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);Re(e,o,r)},S.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);Re(e,n,r)};var De={};function Le(e,t,r){if(L(e))if(h&&e.forEach===h)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)===De)return}function je(e,t,r){if(!H(e)){if(L(e))return Le(e,t,r);if((e=>e instanceof FormData)(e)){for(var n of e.entries())if(t.call(r,n[1],n[0])===De)return}else for(var i in e)if(R.call(e,i)&&t.call(r,e[i],i)===De)return}}var Be=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 Le(r,function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},Ve=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 Le(r,function(t){Le(t,function(t){e.push(t)})}),e};function Ue(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 ze=function(e){try{return e()}catch(e){return}},qe=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){Fe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Fe.critical(e)}}},We=function(e){var t={};return je(e,function(e,r){(z(e)&&e.length>0||G(e))&&(t[r]=e)}),t};var He=["herokuapp.com","vercel.app","netlify.app"];function Ge(e){var t=null==e?void 0:e.hostname;if(!z(t))return!1;var r=t.split(".").slice(-2).join(".");for(var n of He)if(r===n)return!1;return!0}function Ye(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function Ke(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 Xe="$people_distinct_id",Je="__alias",Ze="__timers",Qe="$autocapture_disabled_server_side",et="$heatmaps_enabled_server_side",tt="$exception_capture_enabled_server_side",rt="$error_tracking_suppression_rules",nt="$error_tracking_capture_extension_exceptions",it="$web_vitals_enabled_server_side",ot="$dead_clicks_enabled_server_side",st="$web_vitals_allowed_metrics",at="$session_recording_remote_config",lt="$sesid",ct="$session_is_sampled",ut="$enabled_feature_flags",dt="$early_access_features",pt="$feature_flag_details",ht="$stored_person_properties",ft="$stored_group_properties",gt="$surveys",vt="$surveys_activated",mt="$flag_call_reported",_t="$user_state",yt="$client_session_props",bt="$capture_rate_limit",wt="$initial_campaign_params",St="$initial_referrer_info",Et="$initial_person_info",xt="$epp",kt="__POSTHOG_TOOLBAR__",Pt="$posthog_cookieless",Ot=[Xe,Je,"__cmpns",Ze,"$session_recording_enabled_server_side",et,lt,ut,rt,_t,dt,pt,ft,ht,gt,mt,yt,bt,wt,St,xt,Et];function Mt(e){return e instanceof Element&&(e.id===kt||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function At(e){return!!e&&1===e.nodeType}function Tt(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $t(e){return!!e&&3===e.nodeType}function Ct(e){return!!e&&11===e.nodeType}function Ft(e){return e?C(e).split(/\s+/):[]}function It(e){var t=null==u?void 0:u.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function Nt(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 Ft(t)}function Rt(e){return H(e)?null:C(e).split(/(\s+)/).filter(e=>er(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Dt(e){var t="";return Ht(e)&&!Gt(e)&&e.childNodes&&e.childNodes.length&&je(e.childNodes,function(e){var r;$t(e)&&e.textContent&&(t+=null!==(r=Rt(e.textContent))&&void 0!==r?r:"")}),C(t)}function Lt(e){return U(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var jt=["a","button","form","input","select","textarea","label"];function Bt(e,t){if(U(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 Vt(e){var t=e.parentNode;return!(!t||!At(t))&&t}var Ut=["next","previous","prev",">","<"],zt=[".ph-no-rageclick",".ph-no-capture"];var qt=e=>!e||Tt(e,"html")||!At(e),Wt=(e,t)=>{if(!u||qt(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,n=[e],i=e;i.parentNode&&!Tt(i,"body");)if(Ct(i.parentNode))n.push(i.parentNode.host),i=i.parentNode.host;else{var o=Vt(i);if(!o)break;if(t||jt.indexOf(o.tagName.toLowerCase())>-1)r=!0;else{var s=u.getComputedStyle(o);s&&"pointer"===s.getPropertyValue("cursor")&&(r=!0)}n.push(o),i=o}return{parentIsUsefulElement:r,targetElementList:n}};function Ht(e){for(var t=e;t.parentNode&&!Tt(t,"body");t=t.parentNode){var r=Nt(t);if($(r,"ph-sensitive")||$(r,"ph-no-capture"))return!1}if($(Nt(e),"ph-include"))return!0;var n=e.type||"";if(z(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!z(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 Gt(e){return!!(Tt(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Tt(e,"select")||Tt(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var Yt="(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})",Kt=new RegExp("^(?:"+Yt+")$"),Xt=new RegExp(Yt),Jt="\\d{3}-?\\d{2}-?\\d{4}",Zt=new RegExp("^("+Jt+")$"),Qt=new RegExp("("+Jt+")");function er(e,t){if(void 0===t&&(t=!0),H(e))return!1;if(z(e)){if(e=C(e),(t?Kt:Xt).test((e||"").replace(/[- ]/g,"")))return!1;if((t?Zt:Qt).test(e))return!1}return!0}function tr(e){var t=Dt(e);return er(t=(t+" "+rr(e)).trim())?t:""}function rr(e){var t="";return e&&e.childNodes&&e.childNodes.length&&je(e.childNodes,function(e){var r;if(e&&"span"===(null==(r=e.tagName)?void 0:r.toLowerCase()))try{var n=Dt(e);t=(t+" "+n).trim(),e.childNodes&&e.childNodes.length&&(t=(t+" "+rr(e)).trim())}catch(e){Fe.error("[AutoCapture]",e)}}),t}function nr(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=P({},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 Ue(o).sort((e,t)=>{var[r]=e,[n]=t;return r.localeCompare(n)}).forEach(e=>{var[t,r]=e;return s[ir(t.toString())]=ir(r.toString())}),(n+=":")+Ue(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:or(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return Ue(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 ir(e){return e.replace(/"|\\"/g,'\\"')}function or(e){var t=e.attr__class;return t?L(t)?t:Ft(t):void 0}class sr{constructor(e){this.disabled=!1===e;var t=B(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 ar="$copy_autocapture",lr=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),cr=e=>{var t=null==v?void 0:v.createElement("a");return U(t)?null:(t.href=e,t)},ur=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(!L(r)||r.length<2)return"";var s=r[1];try{s=decodeURIComponent(s)}catch(e){Fe.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},dr=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("=");L(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},pr=function(e,t){var r=e.match(new RegExp(t+"=([^&]*)"));return r?r[1]:null},hr=Ie("[AutoCapture]");function fr(e,t){return t.length>e?t.slice(0,e)+"...":t}function gr(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!At(t));return t}function vr(e,t){for(var r,n,{e:i,maskAllElementAttributes:o,maskAllText:s,elementAttributeIgnoreList:a,elementsChainAsString:l}=t,c=[e],d=e;d.parentNode&&!Tt(d,"body");)Ct(d.parentNode)?(c.push(d.parentNode.host),d=d.parentNode.host):(c.push(d.parentNode),d=d.parentNode);var p,h=[],f={},g=!1,v=!1;if(je(c,e=>{var t=Ht(e);"a"===e.tagName.toLowerCase()&&(g=e.getAttribute("href"),g=t&&g&&er(g)&&g),$(Nt(e),"ph-no-capture")&&(v=!0),h.push(function(e,t,r,n){var i=e.tagName.toLowerCase(),o={tag_name:i};jt.indexOf(i)>-1&&!r&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?o.$el_text=fr(1024,tr(e)):o.$el_text=fr(1024,Dt(e)));var s=Nt(e);s.length>0&&(o.classes=s.filter(function(e){return""!==e})),je(e.attributes,function(r){var i;if((!Gt(e)||-1!==["name","id","class","aria-label"].indexOf(r.name))&&(null==n||!n.includes(r.name))&&!t&&er(r.value)&&(i=r.name,!z(i)||"_ngcontent"!==i.substring(0,10)&&"_nghost"!==i.substring(0,7))){var s=r.value;"class"===r.name&&(s=Ft(s).join(" ")),o["attr__"+r.name]=fr(1024,s)}});for(var a=1,l=1,c=e;c=gr(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(!Ht(e))return{};var t={};return je(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&&er(n)&&(t[r]=n)}}),t}(e);Be(f,r)}),v)return{props:{},explicitNoCapture:v};if(s||("a"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase()?h[0].$el_text=tr(e):h[0].$el_text=Dt(e)),g){var m,_;h[0].attr__href=g;var y=null==(m=cr(g))?void 0:m.host,b=null==u||null==(_=u.location)?void 0:_.host;y&&b&&y!==b&&(p=g)}return{props:Be({$event_type:i.type,$ce_version:1},l?{}:{$elements:h},{$elements_chain:nr(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 mr{constructor(e){this.P=!1,this.T=null,this.R=!1,this.instance=e,this.rageclicks=new sr(e.config.rageclick),this.C=null}get I(){var e,t,r=B(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(u&&v){var e=e=>{e=e||(null==u?void 0:u.event);try{this.M(e)}catch(e){hr.error("Failed to capture event",e)}};if(Ke(v,"submit",e,{capture:!0}),Ke(v,"change",e,{capture:!0}),Ke(v,"click",e,{capture:!0}),this.I.capture_copied_text){var t=e=>{e=e||(null==u?void 0:u.event),this.M(e,ar)};Ke(v,"copy",t,{capture:!0}),Ke(v,"cut",t,{capture:!0})}}}else hr.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({[Qe]:!!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==v?void 0:v.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[Qe],n=this.T;if(W(n)&&!Y(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=Lt(e);$t(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(!u||qt(e))return!1;var r,n,i;if(Y(t)?(r=!!t&&zt,n=void 0):(r=null!==(i=null==t?void 0:t.css_selector_ignorelist)&&void 0!==i?i:zt,n=null==t?void 0:t.content_ignorelist),!1===r)return!1;var{targetElementList:o}=Wt(e,!1);return!function(e,t){if(!1===e||U(e))return!1;var r;if(!0===e)r=Ut;else{if(!L(e))return!1;if(e.length>10)return Fe.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:Dt(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!Bt(o,r)}(n,this.instance.config.rageclick)&&this.M(e,"$rageclick");var i=t===ar;if(n&&function(e,t,r,n,i){var o,s,a,l;if(void 0===r&&(r=void 0),!u||qt(e))return!1;if(null!=(o=r)&&o.url_allowlist&&!It(r.url_allowlist))return!1;if(null!=(s=r)&&s.url_ignorelist&&It(r.url_ignorelist))return!1;if(null!=(a=r)&&a.dom_event_allowlist){var c=r.dom_event_allowlist;if(c&&!c.some(e=>t.type===e))return!1}var{parentIsUsefulElement:d,targetElementList:p}=Wt(e,n);if(!function(e,t){var r=null==t?void 0:t.element_allowlist;if(U(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(!Bt(p,null==(l=r)?void 0:l.css_selector_allowlist))return!1;var h=u.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&&(jt.indexOf(f)>-1||"true"===e.getAttribute("contenteditable"))}}(n,e,this.I,i,i?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:s}=vr(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===ar){var l,c=Rt(null==u||null==(l=u.getSelection())?void 0:l.toString()),d=e.type||"clipboard";if(!c)return!1;o.$selected_content=c,o.$copy_type=d}return this.instance.capture(t,o),!0}}}isBrowserSupported(){return j(null==v?void 0:v.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return G(e)&&isFinite(e)&&Math.floor(e)===e});var _r="0123456789abcdef";class yr{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 yr(i)}toString(){for(var e="",t=0;t<this.bytes.length;t++)e=e+_r.charAt(this.bytes[t]>>>4)+_r.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 yr(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 br{constructor(){this.A=0,this.D=0,this.j=new Er}generate(){var e=this.generateOrAbort();if(U(e)){this.A=0;var t=this.generateOrAbort();if(U(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 yr.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 wr,Sr=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};u&&!U(u.crypto)&&crypto.getRandomValues&&(Sr=e=>crypto.getRandomValues(e));class Er{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(Sr(this.N),this.U=0),this.N[this.U++]}}var xr=()=>kr().toString(),kr=()=>(wr||(wr=new br)).generate(),Pr="",Or=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;var Mr={H:()=>!!v,B:function(e){Fe.error("cookieStore error: "+e)},q:function(e){if(v){try{for(var t=e+"=",r=v.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(Mr.q(e))||{}}catch(e){}return t},G:function(e,t,r,n,i){if(v)try{var o="",s="",a=function(e,t){if(t){var r=function(e,t){if(void 0===t&&(t=v),Pr)return Pr;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();!Pr&&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",Pr=o)}return Pr}(e);if(!r){var n=(e=>{var t=e.match(Or);return t?t[0]:""})(e);n!==r&&Fe.info("Warning: cookie subdomain discovery mismatch",n,r),r=n}return r?"; domain=."+r:""}return""}(v.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&&Fe.warn("cookieStore warning: large cookie, len="+c.length),v.cookie=c,c}catch(e){return}},V:function(e,t){if(null!=v&&v.cookie)try{Mr.G(e,"",-1,t)}catch(e){return}}},Ar=null,Tr={H:function(){if(!W(Ar))return Ar;var e=!0;if(U(u))e=!1;else try{var t="__mplssupport__";Tr.G(t,"xyz"),'"xyz"'!==Tr.q(t)&&(e=!1),Tr.V(t)}catch(t){e=!1}return e||Fe.error("localStorage unsupported; falling back to cookie store"),Ar=e,e},B:function(e){Fe.error("localStorage error: "+e)},q:function(e){try{return null==u?void 0:u.localStorage.getItem(e)}catch(e){Tr.B(e)}return null},W:function(e){try{return JSON.parse(Tr.q(e))||{}}catch(e){}return null},G:function(e,t){try{null==u||u.localStorage.setItem(e,JSON.stringify(t))}catch(e){Tr.B(e)}},V:function(e){try{null==u||u.localStorage.removeItem(e)}catch(e){Tr.B(e)}}},$r=["distinct_id",lt,ct,xt,Et],Cr=P({},Tr,{W:function(e){try{var t={};try{t=Mr.W(e)||{}}catch(e){}var r=Be(t,JSON.parse(Tr.q(e)||"{}"));return Tr.G(e,r),r}catch(e){}return null},G:function(e,t,r,n,i,o){try{Tr.G(e,t,void 0,void 0,o);var s={};$r.forEach(e=>{t[e]&&(s[e]=t[e])}),Object.keys(s).length&&Mr.G(e,s,r,n,i,o)}catch(e){Tr.B(e)}},V:function(e,t){try{null==u||u.localStorage.removeItem(e),Mr.V(e,t)}catch(e){Tr.B(e)}}}),Fr={},Ir={H:function(){return!0},B:function(e){Fe.error("memoryStorage error: "+e)},q:function(e){return Fr[e]||null},W:function(e){return Fr[e]||null},G:function(e,t){Fr[e]=t},V:function(e){delete Fr[e]}},Nr=null,Rr={H:function(){if(!W(Nr))return Nr;if(Nr=!0,U(u))Nr=!1;else try{var e="__support__";Rr.G(e,"xyz"),'"xyz"'!==Rr.q(e)&&(Nr=!1),Rr.V(e)}catch(e){Nr=!1}return Nr},B:function(e){Fe.error("sessionStorage error: ",e)},q:function(e){try{return null==u?void 0:u.sessionStorage.getItem(e)}catch(e){Rr.B(e)}return null},W:function(e){try{return JSON.parse(Rr.q(e))||null}catch(e){}return null},G:function(e,t){try{null==u||u.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){Rr.B(e)}},V:function(e){try{null==u||u.sessionStorage.removeItem(e)}catch(e){Rr.B(e)}}},Dr=function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e}({});class Lr{constructor(e){this._instance=e}get I(){return this._instance.config}get consent(){return this.J()?Dr.DENIED:this.K}isOptedOut(){return"always"===this.I.cookieless_mode||this.consent===Dr.DENIED||this.consent===Dr.PENDING&&(this.I.opt_out_capturing_by_default||"on_reject"===this.I.cookieless_mode)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===Dr.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 ee(e)?Dr.GRANTED:$(te,e)?Dr.DENIED:Dr.PENDING}get Y(){if(!this.Z){var e=this.I.opt_out_capturing_persistence_type;this.Z="localStorage"===e?Tr:Mr;var t="localStorage"===e?Mr:Tr;t.q(this.X)&&(this.Z.q(this.X)||this.optInOut(ee(t.q(this.X))),t.V(this.X,this.I.cross_subdomain_cookie))}return this.Z}J(){return!!this.I.respect_dnt&&!!Ye([null==g?void 0:g.doNotTrack,null==g?void 0:g.msDoNotTrack,S.doNotTrack],e=>ee(e))}}var jr=Ie("[Dead Clicks]"),Br=()=>!0,Vr=e=>{var t,r=!(null==(t=e.instance.persistence)||!t.get_property(ot)),n=e.instance.config.capture_dead_clicks;return Y(n)?n:!!B(n)||r};class Ur{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({[ot]:null==e?void 0:e.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it(()=>{this.et()})}it(e){var t,r;null!=(t=S.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(r=S.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?jr.error("failed to load script",t):e()})}et(){var e;if(v){if(!this.tt&&null!=(e=S.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=B(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.tt=S.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.tt.start(v),jr.info("starting...")}}else jr.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,jr.info("stopping..."))}}var zr=Ie("[ExceptionAutocapture]");class qr{constructor(e){var t,r,n;this.rt=()=>{var e;if(u&&this.isEnabled&&null!=(e=S.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=S.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,r=S.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,n=S.__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){zr.error("failed to start",e),this.lt()}}},this._instance=e,this.ut=!(null==(t=this._instance.persistence)||!t.props[tt]),this.I=this.ht(),this.dt=new ne({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:zr}),this.startIfEnabled()}ht(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return B(e)?t=P({},t,e):(U(e)?this.ut:e)&&(t=P({},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&&(zr.info("enabled"),this.it(this.rt))}it(e){var t,r;null!=(t=S.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(r=S.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return zr.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({[tt]: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)?zr.info("Skipping exception capture because of client rate limiting.",{exception:n}):this._instance.exceptions.sendExceptionEvent(e)}}function Wr(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i=r(n);return j(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}class Hr{constructor(e){var t;this._instance=e,this.vt=(null==u||null==(t=u.location)?void 0:t.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(Fe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ct&&this.ct(),this.ct=void 0,Fe.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(u&&u.history){var r=this;null!=(e=u.history.pushState)&&e.__posthog_wrapped__||Wr(u.history,"pushState",e=>function(t,n,i){e.call(this,t,n,i),r.ft("pushState")}),null!=(t=u.history.replaceState)&&t.__posthog_wrapped__||Wr(u.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==u||null==(t=u.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){Fe.error("Error capturing "+e+" pageview",t)}}gt(){if(!this.ct){var e=()=>{this.ft("popstate")};Ke(u,"popstate",e),this.ct=()=>{u&&u.removeEventListener("popstate",e)}}}}var Gr=Ie("[SegmentIntegration]");var Yr="posthog-js";function Kr(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=>P({},e,{stacktrace:e.stacktrace?P({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>P({},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 Xr{constructor(e,t,r,n,i,o){this.name=Yr,this.setupOnce=function(s){s(Kr(e,{organization:t,projectId:r,prefix:n,severityAllowList:i,sendExceptionsToPostHog:null==o||o}))}}}var Jr=null!=u&&u.location?pr(u.location.hash,"__posthog")||pr(location.hash,"state"):null,Zr="_postHogToolbarParams",Qr=Ie("[Toolbar]"),en=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(en||{});class tn{constructor(e){this.instance=e}_t(e){S.ph_toolbar_state=e}yt(){var e;return null!==(e=S.ph_toolbar_state)&&void 0!==e?e:en.UNINITIALIZED}maybeLoadToolbar(e,t,r){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),!u||!v)return!1;e=null!=e?e:u.location,r=null!=r?r:u.history;try{if(!t){try{u.localStorage.setItem("test","test"),u.localStorage.removeItem("test")}catch(e){return!1}t=null==u?void 0:u.localStorage}var n,i=Jr||pr(e.hash,"__posthog")||pr(e.hash,"state"),o=i?ze(()=>JSON.parse(atob(decodeURIComponent(i))))||ze(()=>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(Zr)||"{}")).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=S.ph_load_toolbar||S.ph_load_editor;!H(t)&&j(t)?t(e,this.instance):Qr.warn("No toolbar load function found")}loadToolbar(e){var t=!(null==v||!v.getElementById(kt));if(!u||t)return!1;var r="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,n=P({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(u.localStorage.setItem(Zr,JSON.stringify(P({},n,{source:void 0}))),this.yt()===en.LOADED)this.bt(n);else if(this.yt()===en.UNINITIALIZED){var i;this._t(en.LOADING),null==(i=S.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return Qr.error("[Toolbar] Failed to load",e),void this._t(en.UNINITIALIZED);this._t(en.LOADED),this.bt(n)}),Ke(u,"turbolinks:load",()=>{this._t(en.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 rn=Ie("[TracingHeaders]");class nn{constructor(e){this.xt=void 0,this.Et=void 0,this.rt=()=>{var e,t;U(this.xt)&&(null==(e=S.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),U(this.Et)&&(null==(t=S.__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=S.__PosthogExtensions__)&&t.tracingHeadersPatchFns&&e(),null==(r=S.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return rn.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 on="Mobile",sn="iOS",an="Android",ln="Tablet",cn=an+" "+ln,un="iPad",dn="Apple",pn=dn+" Watch",hn="Safari",fn="BlackBerry",gn="Samsung",vn=gn+"Browser",mn=gn+" Internet",_n="Chrome",yn=_n+" OS",bn=_n+" "+sn,wn="Internet Explorer",Sn=wn+" "+on,En="Opera",xn=En+" Mini",kn="Edge",Pn="Microsoft "+kn,On="Firefox",Mn=On+" "+sn,An="Nintendo",Tn="PlayStation",$n="Xbox",Cn=an+" "+on,Fn=on+" "+hn,In="Windows",Nn=In+" Phone",Rn="Nokia",Dn="Ouya",Ln="Generic",jn=Ln+" "+on.toLowerCase(),Bn=Ln+" "+ln.toLowerCase(),Vn="Konqueror",Un="(\\d+(\\.\\d+)?)",zn=new RegExp("Version/"+Un),qn=new RegExp($n,"i"),Wn=new RegExp(Tn+" \\w+","i"),Hn=new RegExp(An+" \\w+","i"),Gn=new RegExp(fn+"|PlayBook|BB10","i"),Yn={"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"},Kn=function(e,t){return t=t||"",$(e," OPR/")&&$(e,"Mini")?xn:$(e," OPR/")?En:Gn.test(e)?fn:$(e,"IE"+on)||$(e,"WPDesktop")?Sn:$(e,vn)?mn:$(e,kn)||$(e,"Edg/")?Pn:$(e,"FBIOS")?"Facebook "+on:$(e,"UCWEB")||$(e,"UCBrowser")?"UC Browser":$(e,"CriOS")?bn:$(e,"CrMo")||$(e,_n)?_n:$(e,an)&&$(e,hn)?Cn:$(e,"FxiOS")?Mn:$(e.toLowerCase(),Vn.toLowerCase())?Vn:((e,t)=>t&&$(t,dn)||function(e){return $(e,hn)&&!$(e,_n)&&!$(e,an)}(e))(e,t)?$(e,on)?Fn:hn:$(e,On)?On:$(e,"MSIE")||$(e,"Trident/")?wn:$(e,"Gecko")?On:""},Xn={[Sn]:[new RegExp("rv:"+Un)],[Pn]:[new RegExp(kn+"?\\/"+Un)],[_n]:[new RegExp("("+_n+"|CrMo)\\/"+Un)],[bn]:[new RegExp("CriOS\\/"+Un)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Un)],[hn]:[zn],[Fn]:[zn],[En]:[new RegExp("(Opera|OPR)\\/"+Un)],[On]:[new RegExp(On+"\\/"+Un)],[Mn]:[new RegExp("FxiOS\\/"+Un)],[Vn]:[new RegExp("Konqueror[:/]?"+Un,"i")],[fn]:[new RegExp(fn+" "+Un),zn],[Cn]:[new RegExp("android\\s"+Un,"i")],[mn]:[new RegExp(vn+"\\/"+Un)],[wn]:[new RegExp("(rv:|MSIE )"+Un)],Mozilla:[new RegExp("rv:"+Un)]},Jn=function(e,t){var r=Kn(e,t),n=Xn[r];if(U(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},Zn=[[new RegExp($n+"; "+$n+" (.*?)[);]","i"),e=>[$n,e&&e[1]||""]],[new RegExp(An,"i"),[An,""]],[new RegExp(Tn,"i"),[Tn,""]],[Gn,[fn,""]],[new RegExp(In,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Nn,""];if(new RegExp(on).test(t)&&!/IEMobile\b/.test(t))return[In+" "+on,""];var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=r[1],i=Yn[n]||"";return/arm/i.test(t)&&(i="RT"),[In,i]}return[In,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[sn,t.join(".")]}return[sn,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=U(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+an+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+an+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[an,t.join(".")]}return[an,""]}],[/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/,[yn,""]],[/Linux|debian/i,["Linux",""]]],Qn=function(e){return Hn.test(e)?An:Wn.test(e)?Tn:qn.test(e)?$n:new RegExp(Dn,"i").test(e)?Dn:new RegExp("("+Nn+"|WPDesktop)","i").test(e)?Nn:/iPad/.test(e)?un:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?pn:Gn.test(e)?fn:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(Rn,"i").test(e)?Rn:/(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(on).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)?an:cn:an:new RegExp("(pda|"+on+")","i").test(e)?jn:new RegExp(ln,"i").test(e)&&!new RegExp(ln+" pc","i").test(e)?Bn:""},ei="https?://(.*)",ti=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],ri=Ve(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],ti),ni="<masked>",ii=["li_fat_id"];function oi(e,t,r){if(!v)return{};var n,i=t?Ve([],ti,r||[]):[],o=si(dr(v.URL,i,ni),e),s=(n={},je(ii,function(e){var t=Mr.q(e);n[e]=t||null}),n);return Be(s,o)}function si(e,t){var r=ri.concat(t||[]),n={};return je(r,function(t){var r=ur(e,t);n[t]=r||null}),n}function ai(e){var t=function(e){return e?0===e.search(ei+"google.([^/?]*)")?"google":0===e.search(ei+"bing.com")?"bing":0===e.search(ei+"yahoo.com")?"yahoo":0===e.search(ei+"duckduckgo.com")?"duckduckgo":null:null}(e),r="yahoo"!=t?"q":"p",n={};if(!W(t)){n.$search_engine=t;var i=v?ur(v.referrer,r):"";i.length&&(n.ph_keyword=i)}return n}function li(){return navigator.language||navigator.userLanguage}function ci(){return(null==v?void 0:v.referrer)||"$direct"}function ui(e,t){var r=e?Ve([],ti,t||[]):[],n=null==m?void 0:m.href.substring(0,1e3);return{r:ci().substring(0,1e3),u:n?dr(n,r,ni):void 0}}function di(e){var t,{r:r,u:n}=e,i={$referrer:r,$referring_domain:null==r?void 0:"$direct"==r?"$direct":null==(t=cr(r))?void 0:t.host};if(n){i.$current_url=n;var o=cr(n);i.$host=null==o?void 0:o.host,i.$pathname=null==o?void 0:o.pathname;var s=si(n);Be(i,s)}if(r){var a=ai(r);Be(i,a)}return i}function pi(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}function hi(){try{return(new Date).getTimezoneOffset()}catch(e){return}}function fi(e,t){if(!w)return{};var r,n,i,o=e?Ve([],ti,t||[]):[],[s,a]=function(e){for(var t=0;t<Zn.length;t++){var[r,n]=Zn[t],i=r.exec(e),o=i&&(j(n)?n(i,e):n);if(o)return o}return["",""]}(w);return Be(We({$os:s,$os_version:a,$browser:Kn(w,navigator.vendor),$device:Qn(w),$device_type:(n=w,i=Qn(n),i===un||i===cn||"Kobo"===i||"Kindle Fire"===i||i===Bn?ln:i===An||i===$n||i===Tn||i===Dn?"Console":i===pn?"Wearable":i?on:"Desktop"),$timezone:pi(),$timezone_offset:hi()}),{$current_url:dr(null==m?void 0:m.href,o,ni),$host:null==m?void 0:m.host,$pathname:null==m?void 0:m.pathname,$raw_user_agent:w.length>1e3?w.substring(0,997)+"...":w,$browser_version:Jn(w,navigator.vendor),$browser_language:li(),$browser_language_prefix:(r=li(),"string"==typeof r?r.split("-")[0]:void 0),$screen_height:null==u?void 0:u.screen.height,$screen_width:null==u?void 0:u.screen.width,$viewport_height:null==u?void 0:u.innerHeight,$viewport_width:null==u?void 0:u.innerWidth,$lib:"web",$lib_version:E.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var gi=Ie("[Web Vitals]"),vi=9e5;class mi{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)=>P({},e,{["$web_vitals_"+t.name+"_event"]:P({},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(U(r))gi.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var n=this.Tt();U(n)||(H(null==e?void 0:e.name)||H(null==e?void 0:e.value)?gi.error("Invalid metric received",e):this.Rt&&e.value>=this.Rt?gi.error("Ignoring metric with value >= "+this.Rt,e):(this.N.url!==n&&(this.$t(),this.kt=setTimeout(this.$t,this.flushToCaptureTimeoutMs)),U(this.N.url)&&(this.N.url=n),this.N.firstMetricTimestamp=U(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.N.metrics.push(P({},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=S.__PosthogExtensions__;U(i)||U(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):gi.error("web vitals callbacks not loaded - not starting")},this._instance=e,this.St=!(null==(t=this._instance.persistence)||!t.props[it]),this.startIfEnabled()}get allowedMetrics(){var e,t,r=B(this._instance.config.capture_performance)?null==(e=this._instance.config.capture_performance)?void 0:e.web_vitals_allowed_metrics:void 0;return U(r)?(null==(t=this._instance.persistence)?void 0:t.props[st])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(B(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Rt(){var e=B(this._instance.config.capture_performance)&&G(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:vi;return 0<e&&e<=6e4?vi:e}get isEnabled(){var e=null==m?void 0:m.protocol;if("http:"!==e&&"https:"!==e)return gi.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=B(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:Y(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return Y(t)?t:this.St}startIfEnabled(){this.isEnabled&&!this.P&&(gi.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(e){var t=B(e.capturePerformance)&&!!e.capturePerformance.web_vitals,r=B(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[it]:t}),this._instance.persistence.register({[st]:r})),this.St=t,this.startIfEnabled()}it(e){var t,r;null!=(t=S.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks&&e(),null==(r=S.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"web-vitals",t=>{t?gi.error("failed to load script",t):e()})}Tt(){var e=u?u.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?Ve([],ti,r||[]):[];return dr(e,n,ni)}gi.error("Could not determine current URL")}}var _i=Ie("[Heatmaps]");function yi(e){return B(e)&&"clientX"in e&&"clientY"in e&&G(e.clientX)&&G(e.clientY)}class bi{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[et]),this.rageclicks=new sr(e.config.rageclick)}get flushIntervalMilliseconds(){var e=5e3;return B(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 U(this.instance.config.capture_heatmaps)?U(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;_i.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({[et]: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==v?void 0:v.visibilityState)?setInterval(this.Dt.bind(this),this.flushIntervalMilliseconds):null}It(){u&&v&&(this.jt=this.Dt.bind(this),Ke(u,"beforeunload",this.jt),this.Lt=e=>this.At(e||(null==u?void 0:u.event)),Ke(v,"click",this.Lt,{capture:!0}),this.Nt=e=>this.Ut(e||(null==u?void 0:u.event)),Ke(v,"mousemove",this.Nt,{capture:!0}),this.zt=new Ur(this.instance,Br,this.Ot.bind(this)),this.zt.startIfEnabled(),this.Ht=this.Ft.bind(this),Ke(v,"visibilitychange",this.Ht),this.P=!0)}Mt(){var e;u&&v&&(this.jt&&u.removeEventListener("beforeunload",this.jt),this.Lt&&v.removeEventListener("click",this.Lt,{capture:!0}),this.Nt&&v.removeEventListener("mousemove",this.Nt,{capture:!0}),this.Ht&&v.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&&At(n)&&!Tt(n,"body");){if(n===r)return!1;if($(t,null==u?void 0:u.getComputedStyle(n).position))return!0;n=Vt(n)}return!1}(Lt(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"),!Mt(e.target)&&yi(e)){var n=this.qt(e,t);null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.Wt(P({},n,{type:"rageclick"})),this.Wt(n)}}Ut(e){!Mt(e.target)&&yi(e)&&(clearTimeout(this.Bt),this.Bt=setTimeout(()=>{this.Wt(this.qt(e,"mousemove"))},500))}Wt(e){if(u){var t=u.location.href,r=this.instance.config.mask_personal_data_properties,n=this.instance.config.custom_personal_data_properties,i=r?Ve([],ti,n||[]):[],o=dr(t,i,ni);this.N=this.N||{},this.N[o]||(this.N[o]=[]),this.N[o].push(e)}}Dt(){this.N&&!V(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class wi{constructor(e){this._instance=e}doPageView(e,t){var r,n=this.Gt(e,t);return this.Vt={pathname:null!==(r=null==u?void 0:u.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(!(U(o)||U(s)||U(a)||U(l)||U(c)||U(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:re(s/o,0,1,Fe),p=o<=1?1:re(a/o,0,1,Fe),h=l<=1?1:re(c/l,0,1,Fe),f=l<=1?1:re(u/l,0,1,Fe);n=Be(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 Si=Uint8Array,Ei=Uint16Array,xi=Uint32Array,ki=new Si([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]),Pi=new Si([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]),Oi=new Si([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Mi=function(e,t){for(var r=new Ei(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]},Ai=Mi(ki,2),Ti=Ai[0],$i=Ai[1];Ti[28]=258,$i[258]=28;for(var Ci=Mi(Pi,0)[1],Fi=new Ei(32768),Ii=0;Ii<32768;++Ii){var Ni=(43690&Ii)>>>1|(21845&Ii)<<1;Ni=(61680&(Ni=(52428&Ni)>>>2|(13107&Ni)<<2))>>>4|(3855&Ni)<<4,Fi[Ii]=((65280&Ni)>>>8|(255&Ni)<<8)>>>1}var Ri=function(e,t,r){for(var n=e.length,i=0,o=new Ei(t);i<n;++i)++o[e[i]-1];var s,a=new Ei(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;for(s=new Ei(n),i=0;i<n;++i)s[i]=Fi[a[e[i]-1]++]>>>15-e[i];return s},Di=new Si(288);for(Ii=0;Ii<144;++Ii)Di[Ii]=8;for(Ii=144;Ii<256;++Ii)Di[Ii]=9;for(Ii=256;Ii<280;++Ii)Di[Ii]=7;for(Ii=280;Ii<288;++Ii)Di[Ii]=8;var Li=new Si(32);for(Ii=0;Ii<32;++Ii)Li[Ii]=5;var ji=Ri(Di,9),Bi=Ri(Li,5),Vi=function(e){return(e/8|0)+(7&e&&1)},Ui=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof Ei?Ei:e instanceof xi?xi:Si)(r-t);return n.set(e.subarray(t,r)),n},zi=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8},qi=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},Wi=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 Si(0),0];if(1==i){var s=new Si(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 Ei(p+1),f=Hi(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 Si(h),f]},Hi=function(e,t,r){return-1==e.s?Math.max(Hi(e.l,t,r+1),Hi(e.r,t,r+1)):t[e.s]=r},Gi=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Ei(++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]},Yi=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},Ki=function(e,t,r){var n=r.length,i=Vi(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)},Xi=function(e,t,r,n,i,o,s,a,l,c,u){zi(t,u++,r),++i[256];for(var d=Wi(i,15),p=d[0],h=d[1],f=Wi(o,15),g=f[0],v=f[1],m=Gi(p),_=m[0],y=m[1],b=Gi(g),w=b[0],S=b[1],E=new Ei(19),x=0;x<_.length;++x)E[31&_[x]]++;for(x=0;x<w.length;++x)E[31&w[x]]++;for(var k=Wi(E,7),P=k[0],O=k[1],M=19;M>4&&!P[Oi[M-1]];--M);var A,T,$,C,F=c+5<<3,I=Yi(i,Di)+Yi(o,Li)+s,N=Yi(i,p)+Yi(o,g)+s+14+3*M+Yi(E,P)+(2*E[16]+3*E[17]+7*E[18]);if(F<=I&&F<=N)return Ki(t,u,e.subarray(l,l+c));if(zi(t,u,1+(N<I)),u+=2,N<I){A=Ri(p,h),T=p,$=Ri(g,v),C=g;var R=Ri(P,O);for(zi(t,u,y-257),zi(t,u+5,S-1),zi(t,u+10,M-4),u+=14,x=0;x<M;++x)zi(t,u+3*x,P[Oi[x]]);u+=3*M;for(var D=[_,w],L=0;L<2;++L){var j=D[L];for(x=0;x<j.length;++x){var B=31&j[x];zi(t,u,R[B]),u+=P[B],B>15&&(zi(t,u,j[x]>>>5&127),u+=j[x]>>>12)}}}else A=ji,T=Di,$=Bi,C=Li;for(x=0;x<a;++x)if(n[x]>255){B=n[x]>>>18&31,qi(t,u,A[B+257]),u+=T[B+257],B>7&&(zi(t,u,n[x]>>>23&31),u+=ki[B]);var V=31&n[x];qi(t,u,$[V]),u+=C[V],V>3&&(qi(t,u,n[x]>>>5&8191),u+=Pi[V])}else qi(t,u,A[n[x]]),u+=T[n[x]];return qi(t,u,A[256]),u+T[256]},Ji=new xi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Zi=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}(),Qi=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function eo(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=Zi[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 Si(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=Ki(a,l,e.subarray(c,u)):(a[c]=!0,l=Ki(a,l,e.subarray(c,o)))}else{for(var d=Ji[t-1],p=d>>>13,h=8191&d,f=(1<<r)-1,g=new Ei(32768),v=new Ei(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 Ei(288),S=new Ei(32),E=0,x=0,k=(c=0,0),P=0,O=0;c<o;++c){var M=y(c),A=32767&c,T=v[M];if(g[A]=T,v[M]=A,P<=c){var $=o-c;if((E>7e3||k>24576)&&$>423){l=Xi(e,a,0,b,w,S,x,k,O,c-O,l),k=E=x=0,O=c;for(var C=0;C<286;++C)w[C]=0;for(C=0;C<30;++C)S[C]=0}var F=2,I=0,N=h,R=A-T&32767;if($>2&&M==y(c-R))for(var D=Math.min(p,$)-1,L=Math.min(32767,c),j=Math.min(258,$);R<=L&&--N&&A!=T;){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(C=0;C<V;++C){var z=c-R+C+32768&32767,q=z-g[z]+32768&32767;q>U&&(U=q,T=z)}}}R+=(A=T)-(T=g[A])+32768&32767}if(I){b[k++]=268435456|$i[F]<<18|Ci[I];var W=31&$i[F],H=31&Ci[I];x+=ki[W]+Pi[H],++w[257+W],++S[H],P=c+F,++E}else b[k++]=e[c],++w[e[c]]}}l=Xi(e,a,!0,b,w,S,x,k,O,c-O,l)}return Ui(s,0,n+Vi(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&&Qi(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),Qi(o,s-8,r.d()),Qi(o,s-4,n),o}var to=!!y||!!_,ro="text/plain",no=function(e,t,r){var n;void 0===r&&(r=!0);var[i,o]=e.split("?"),s=P({},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 je(e,function(e,t){U(e)||U(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("&")},io=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),oo=e=>{var{data:t,compression:r}=e;if(t){if(r===lr.GZipJS){var n=eo(function(e){var t=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new Si(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 Si(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 Ui(r,0,n)}(io(t)),{mtime:0}),i=new Blob([n],{type:ro});return{contentType:ro,body:i,estimatedSize:i.size}}if(r===lr.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),W(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}(io(t)),s=(e=>"data="+encodeURIComponent("string"==typeof e?e:io(e)))(o);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var a=io(t);return{contentType:"application/json",body:a,estimatedSize:new Blob([a]).size}}},so=[];_&&so.push({transport:"fetch",method:e=>{var t,r,{contentType:n,body:i,estimatedSize:o}=null!==(t=oo(e))&&void 0!==t?t:{},s=new Headers;je(e.headers,function(e,t){s.append(t,e)}),n&&s.append("Content-Type",n);var a=e.url,l=null;if(b){var c=new b;l={signal:c.signal,timeout:setTimeout(()=>c.abort(),e.timeout)}}_(a,P({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){Fe.error(e)}null==e.callback||e.callback(n)})).catch(t=>{Fe.error(t),null==e.callback||e.callback({statusCode:0,text:t})}).finally(()=>l?clearTimeout(l.timeout):null)}}),y&&so.push({transport:"XHR",method:e=>{var t,r=new y;r.open(e.method||"GET",e.url,!0);var{contentType:n,body:i}=null!==(t=oo(e))&&void 0!==t?t:{};je(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!=g&&g.sendBeacon&&so.push({transport:"sendBeacon",method:e=>{var t=no(e.url,{beacon:"1"});try{var r,{contentType:n,body:i}=null!==(r=oo(e))&&void 0!==r?r:{},o="string"==typeof i?new Blob([i],{type:n}):i;g.sendBeacon(t,o)}catch(e){}}});var ao=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 lo(e,t,r){return io({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var co={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=>ao(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!ao(t,e))),icontains:(e,t)=>t.map(uo).some(t=>e.map(uo).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(uo).every(t=>e.map(uo).every(e=>!t.includes(e)))},uo=e=>e.toLowerCase();function po(e,t){return!e||Object.entries(e).every(e=>{var[r,n]=e,i=null==t?void 0:t[r];if(U(i)||W(i))return!1;var o=[String(i)],s=co[n.operator];return!!s&&s(n.values,o)})}var ho=Ie("[Error tracking]");class fo{constructor(e){var t,r;this.Jt=[],this.Kt=new ce([new we,new $e,new Ee,new Se,new Ae,new Me,new ke,new Te],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=be.test(a)?a.replace(be,"$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 P({},e,{filename:e.filename||(r=t,r[r.length-1]||{}).filename,function:e.function||ue});var r})}(i)}}("web:javascript",ve,ye)),this._instance=e,this.Jt=null!==(t=null==(r=this._instance.persistence)?void 0:r.get_property(rt))&&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({[rt]:this.Jt,[nt]:o})}get Yt(){var e,t=!!this._instance.get_property(nt),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 ho.info("Skipping exception capture because a suppression rule matched");if(!this.Yt&&this.Zt(t))return void ho.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ti(t))return void ho.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 z(r)&&r.length>0&&e.$exception_types.push(r),z(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=co[e.operator],i=L(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!H(e)&&L(e)}}var go=Ie("[FeatureFlags]"),vo=Ie("[FeatureFlags]",{debugEnabled:!0}),mo="$active_feature_flags",_o="$override_feature_flags",yo="$feature_flag_payloads",bo="$override_feature_flag_payloads",wo="$feature_flag_request_id",So="$feature_flag_evaluated_at",Eo=e=>{var t={};for(var[r,n]of Ue(e||{}))n&&(t[r]=n);return t},xo=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class ko{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||go.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(pt),t=this._instance.get_property(_o),r=this._instance.get_property(bo);if(!r&&!t)return e||{};var n=Be({},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=U(c)?null!==(s=null==l?void 0:l.enabled)&&void 0!==s&&s:!!c,d=U(c)?l.variant:"string"==typeof c?c:void 0,p=null==r?void 0:r[o],h=P({},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=P({},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||(go.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:n}),this.ii=!0),n}getFlagVariants(){var e=this._instance.get_property(ut),t=this._instance.get_property(_o);if(!t)return e||{};for(var r=Be({},e),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.ii||(go.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this.ii=!0),r}getFlagPayloads(){var e=this._instance.get_property(yo),t=this._instance.get_property(bo);if(!t)return e||{};for(var r=Be({},e||{}),n=Object.keys(t),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return this.ii||(go.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:P({},(null==(t=this._instance.persistence)?void 0:t.get_initial_props())||{},this._instance.get_property(ht)||{}),group_properties:this._instance.get_property(ft)};(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=pi()),this.ri=!0,this._instance.ci({method:"POST",url:s,data:r,compression:this._instance.config.disable_compression?void 0:lr.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))go.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(wo)||void 0,o=this._instance.get_property(So)||void 0,s=this._instance.get_property(mt)||{};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;L(s[e])?s[e].push(n):s[e]=[n],null==(a=this._instance.persistence)||a.register({[mt]: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};U(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),U(null==v?void 0:v.original_variant)&&U(null==v?void 0:v.original_enabled)||(m.$feature_flag_original_response=U(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}go.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:lr.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 U(r)?void 0:!!r}go.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]}))):go.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(L(a)){go.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({[mo]:a,[ut]:d})}else{var h=a,f=l,g=s;e.errorsWhileComputingFlags&&(h=P({},r,h),f=P({},n,f),g=P({},i,g)),t&&t.register(P({[mo]:Object.keys(Eo(h)),[ut]:h||{},[yo]:f||{},[pt]:g||{}},c?{[wo]:c}:{},u?{[So]:u}:{}))}}}(e,this._instance.persistence,r,n,i),this.pi(t)}}override(e,t){void 0===t&&(t=!1),go.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return go.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this._instance.persistence.unregister(_o),this._instance.persistence.unregister(bo),this.pi(),vo.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(_o),vo.info("Flag overrides cleared");else if(r.flags){if(L(r.flags)){for(var n={},i=0;i<r.flags.length;i++)n[r.flags[i]]=!0;this._instance.persistence.register({[_o]:n})}else this._instance.persistence.register({[_o]:r.flags});vo.info("Flag overrides set",{flags:r.flags})}return"payloads"in r&&(!1===r.payloads?(this._instance.persistence.unregister(bo),vo.info("Payload overrides cleared")):r.payloads&&(this._instance.persistence.register({[bo]:r.payloads}),vo.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(dt)||[]).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=P({},this.getFlagVariants(),{[e]:t});null==(n=this._instance.persistence)||n.register({[mo]:Object.keys(Eo(a)),[ut]:a}),this.pi()}getEarlyAccessFeatures(e,t,r){void 0===t&&(t=!1);var n=this._instance.get_property(dt),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(dt),null==(n=this._instance.persistence)||n.register({[dt]: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(ht)||{};this._instance.register({[ht]:P({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(ht)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this._instance.get_property(ft)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(t=>{r[t]=P({},r[t],e[t]),delete e[t]}),this._instance.register({[ft]:P({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(ft)||{};this._instance.register({[ft]:P({},t,{[e]:{}})})}else this._instance.unregister(ft)}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 Po=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Oo{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&&Fe.info("Persistence loaded",e.persistence,P({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.wi}bi(e){-1===Po.indexOf(e.persistence.toLowerCase())&&(Fe.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&Tr.H()?Tr:"localstorage+cookie"===t&&Cr.H()?Cr:"sessionstorage"===t&&Rr.H()?Rr:"memory"===t?Ir:"cookie"===t?Mr:Cr.H()?Cr:Mr}properties(){var e={};return je(this.props,function(t,r){if(r===ut&&B(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,(W(o=Ot)?a:f&&o.indexOf===f?-1!=o.indexOf(s):(je(o,function(e){if(a||(a=e===s))return De}),a))||(e[r]=t);var o,s,a}),e}load(){if(!this.wi){var e=this.Y.W(this.yi);e&&(this.props=Be({},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(B(e)){U(t)&&(t="None"),this.xi=U(r)?this.$i:r;var n=!1;if(je(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(B(e)){this.xi=U(t)?this.$i:t;var r=!1;if(je(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=oi(this.I.custom_campaign_params,this.I.mask_personal_data_properties,this.I.custom_personal_data_properties);V(We(e))||this.register(e),this.mi=!0}}update_search_keyword(){var e;this.register((e=null==v?void 0:v.referrer)?ai(e):{})}update_referrer_info(){var e;this.register_once({$referrer:ci(),$referring_domain:null!=v&&v.referrer&&(null==(e=cr(v.referrer))?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[wt]||this.props[St]||this.register_once({[Et]:ui(this.I.mask_personal_data_properties,this.I.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};je([St,wt],t=>{var r=this.props[t];r&&je(r,function(t,r){e["$initial_"+F(r)]=t})});var t,r,n=this.props[Et];if(n){var i=(t=di(n),r={},je(t,function(e,t){r["$initial_"+F(t)]=e}),r);Be(e,i)}return e}safe_merge(e){return je(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[Ze]||{};r[e]=t,this.props[Ze]=r,this.save()}remove_event_timer(e){var t=(this.props[Ze]||{})[e];return U(t)||(delete this.props[Ze][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}var Mo=Ie("[Product Tours]"),Ao="ph_product_tours";class To{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)Mo.info("Product tours disabled via config");else{var t=e.productTours;H(t)?Mo.info("Product tours not enabled in remote config"):(this.Ti=t,Mo.info("Remote config received, isProductToursEnabled: "+this.Ti),this.loadIfEnabled())}}loadIfEnabled(){var e;if(!this.Pi)if(this.Ri)Mo.info("Already initializing product tours, skipping...");else if(this._instance.config.disable_product_tours)Mo.info("Product tours disabled via config");else{var t=null==S?void 0:S.__PosthogExtensions__;if(t){var r=null==(e=this._instance.featureFlags)?void 0:e.isFeatureEnabled("product-tours-2025");if(!U(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 Mo.error("PostHog loadExternalDependency extension not found."),void(this.Ri=!1);o(this._instance,"product-tours",e=>{e||!t.generateProductTours?Mo.error("Could not load product tours script",e):this.Ci(t.generateProductTours,n),this.Ri=!1})}catch(e){Mo.error("Error initializing product tours",e),this.Ri=!1}}else Mo.info("Product tours not enabled")}else Mo.info("Waiting for remote config or feature flag to enable product tours")}else Mo.error("PostHog Extensions not found.")}}Ci(e,t){this.Pi=e(this._instance,t)||null,Mo.info("Product tours loaded successfully")}getProductTours(e,t){if(void 0===t&&(t=!1),!L(this.ki)||t){var r=this._instance.persistence;if(r){var n=r.props[Ao];if(L(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 Mo.error(i),void e([],{isLoaded:!1,error:i})}var o=L(t.json.product_tours)?t.json.product_tours:[];this.ki=o,r&&r.register({[Ao]:o}),e(o,{isLoaded:!0})}})}else e(this.ki,{isLoaded:!0})}getActiveProductTours(e){if(H(this.Pi))return Mo.warn("Product tours not loaded yet"),void e([],{isLoaded:!1,error:"Product tours not loaded"});this.Pi.getActiveProductTours(e)}showProductTour(e){var t;Mo.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(Ao)}resetTour(e){var t;null==(t=this.Pi)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.Pi)||e.resetAllTours()}}var $o=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 Co=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 Fo=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e}({}),Io=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}({}),No=function(e){return e.Popover="popover",e.Inline="inline",e}({});class Ro{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 Do(e,t,r){if(H(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 Lo{constructor(e){this.Fi=new Ro,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;U(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(!U(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(!Do(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=>Do(e.href,t.href,t.href_matching||"exact"));var i,o=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!o&&Do((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=>Do(e.text,t.text,t.text_matching||"exact")||Do(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;!H(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=>Do(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||po(t.properties.reduce((e,t)=>{var r=L(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 jo=Ie("[Surveys]"),Bo="seenSurvey_",Vo=(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},Uo=e=>{var t=""+Bo+e.id;return e.current_iteration&&e.current_iteration>0&&(t=""+Bo+e.id+"_"+e.current_iteration),t},zo=[Co.Popover,Co.Widget,Co.API],qo={ignoreConditions:!1,ignoreDelay:!1,displayType:No.Popover};class Wo{constructor(e){this._instance=e,this.Vi=new Map,this.Ji=new Map,this.Ki=new Map}Yi(e,t){return!!e&&po(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===$o.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;U(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 Lo(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,$o.Activation),this.Ji=this.Xi(e,$o.Cancellation))}onEvent(e,t){var r,n=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[vt])||[];if(Fo.SHOWN===e&&t&&n.length>0){var i;jo.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,$o.Cancellation);a.length>0&&(jo.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)){jo.info("survey event name matched",{event:e,eventPayload:t,surveys:this.Vi.get(e)});var l=this.Qi(e,t,$o.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[vt])||[];this.Ki.has(e)&&this.ee(r.concat(this.Ki.get(e)||[]))}ee(e){var t;jo.info("updating activated surveys",{activatedSurveys:e}),null==(t=this._instance)||null==(t=t.persistence)||t.register({[vt]:[...new Set(e)]})}getSurveys(){var e;return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[vt])||[]}getEventToSurveys(){return this.Vi}re(){return this.ie}}class Ho{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(H(t))return jo.warn("Flags not loaded yet. Not loading surveys.");var r=L(t);this.se=r?t.length>0:t,jo.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(Bo)||null!=r&&r.startsWith("inProgressSurvey_"))&&e.push(r)}e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager)if(this.oe)jo.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)jo.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())jo.info("Not loading surveys in cookieless mode without consent.");else{var e=null==S?void 0:S.__PosthogExtensions__;if(e){if(!U(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 jo.error("PostHog Extensions not found.")}}le(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Wo(this._instance),jo.info("Surveys loaded successfully"),this.he({isLoaded:!0})}ue(e,t){jo.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 jo.info("Disabled. Not loading surveys."),e([]);var r=this._instance.get_property(gt);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 jo.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({[gt]: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){jo.error("Error in survey callback",e)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!H(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);jo.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(H(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(H(this._surveyManager))return jo.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 H(this._surveyManager)?(jo.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(H(this._surveyManager))jo.warn("init was not called");else{var n="string"==typeof e?this.de(e):e;if(null!=n&&n.id)if(zo.includes(n.type)){var i=null==v?void 0:v.querySelector(t);if(i)return null!=(r=n.appearance)&&r.surveyPopupDelaySeconds?(jo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;jo.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),jo.info("Survey "+n.id+" rendered")},1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i);jo.warn("Survey element not found")}else jo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else jo.warn("Survey not found")}}displaySurvey(e,t){var r;if(H(this._surveyManager))jo.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=P({},n,{appearance:P({},n.appearance,{surveyPopupDelaySeconds:0})})),!1===t.ignoreConditions){var o=this.canRenderSurvey(n);if(!o.visible)return void jo.warn("Survey is not eligible to be displayed: ",o.disabledReason)}t.displayType!==No.Inline?this._surveyManager.handlePopoverSurvey(i):this.renderSurvey(i,t.selector)}else jo.warn("Survey not found")}}cancelPendingSurvey(e){H(this._surveyManager)?jo.warn("init was not called"):this._surveyManager.cancelSurvey(e)}}var Go=Ie("[RateLimiter]");class Yo{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=>{Go.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void Go.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(bt))&&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(bt,o),{isRateLimited:s,remainingTokens:o.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var Ko=Ie("[RemoteConfig]");class Xo{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=S._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}ce(e){var t,r;null!=(t=S.__PosthogExtensions__)&&t.loadExternalDependency?null==(r=S.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):(Ko.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 Ko.info("Using preloaded remote config",this.remoteConfig),void this.fi(this.remoteConfig);if(this._instance.O())return void Ko.warn("Remote config is disabled. Falling back to local config.");this.ce(e=>{if(!e)return Ko.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){Ko.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()):Ko.info("__preview_remote_config is disabled. Logging config instead",e):Ko.error("Failed to fetch remote config from PostHog.")}}var Jo=3e3;class Zo{constructor(e,t){this.pe=!0,this.ge=[],this._e=re((null==t?void 0:t.flush_interval_ms)||Jo,250,5e3,Fe.createLogger("flush interval"),Jo),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(P({},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&&L(r.data)&&je(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 je(this.ge,t=>{var r,n=t,i=(n?n.batchKey:null)||n.url;U(e[i])&&(e[i]=P({},n,{data:[]})),null==(r=e[i].data)||r.push(n.data)}),this.ge=[],e}}var Qo=["retriesPerformedSoFar"];class es{constructor(e){this.Ee=!1,this.Se=3e3,this.ge=[],this._instance=e,this.ge=[],this.$e=!0,!U(u)&&"onLine"in u.navigator&&(this.$e=u.navigator.onLine,this.ke=()=>{this.$e=!0,this.Dt()},this.Pe=()=>{this.$e=!1},Ke(u,"online",this.ke),Ke(u,"offline",this.Pe))}get length(){return this.ge.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,r=O(e,Qo);G(t)&&t>0&&(r.url=no(r.url,{retry_count:t})),this._instance.ci(P({},r,{callback:e=>{200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this.Te(P({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)"),Fe.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,U(u)||(this.ke&&(u.removeEventListener("online",this.ke),this.ke=void 0),this.Pe&&(u.removeEventListener("offline",this.Pe),this.Pe=void 0)),this.ge))try{this._instance.ci(P({},e,{transport:"sendBeacon"}))}catch(e){Fe.error(e)}this.ge=[]}}class ts{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(){Ke(u,"scroll",this.Ie,{capture:!0}),Ke(u,"scrollend",this.Ie,{capture:!0}),Ke(u,"resize",this.Ie)}scrollElement(){if(!this._instance.config.scroll_root_selector)return null==u?void 0:u.document.documentElement;var e=L(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==u?void 0:u.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 u&&(u.scrollY||u.pageYOffset||u.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return u&&(u.scrollX||u.pageXOffset||u.document.documentElement.scrollLeft)||0}}var rs=e=>ui(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);class ns{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({[yt]:r})}},this._instance=e,this.je=t,this.De=r,this.Ae=n||rs,this.je.onSessionId(this.Me)}Oe(){return this.De.props[yt]}getSetOnceProps(){var e,t=null==(e=this.Oe())?void 0:e.props;return t?"r"in t?di(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 je(We(this.getSetOnceProps()),(t,r)=>{"$current_url"===r&&(r="url"),e["$session_entry_"+F(r)]=t}),e}}var is=Ie("[SessionId]");class os{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 Ro,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*re(o,60,36e3,is.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=Rr.W(this.Ve),a=Rr.W(this.Je);s&&!a?this.He=s:Rr.V(this.Ve),Rr.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){is.error("Invalid sessionID in bootstrap",e)}this.Xe()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return U(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&&Rr.H()}Qe(e){e!==this.He&&(this.He=e,this.Ke()&&Rr.G(this.Ve,e))}Ze(){return this.He?this.He:this.Ke()?Rr.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({[lt]:[t,e,r]}))}tr(){var e=this.De.props[lt];return L(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&&u&&(u.removeEventListener("beforeunload",this.Ue,{capture:!1}),this.Ue=void 0),this.Ne=[]}Xe(){this.Ue=()=>{this.Ke()&&Rr.V(this.Je)},Ke(u,"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=G(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(),is.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 ss=["$set_once","$set"],as=Ie("[SiteApps]");class ls{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=S._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:P({},O(e,ss),{properties:P({},e.properties,f?{$set:P({},null!==(t=null==(r=e.properties)?void 0:r.$set)&&void 0!==t?t:{},f)}:{},h?{$set_once:P({},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&&(as.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,as.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){as.error("Error while initializing PostHog app with config id "+e.id,t),i(!1)}if(n&&t.loaded)try{r()}catch(r){as.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){as.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 as.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;S["__$$ph_site_app_"+e]=i._instance,null==(t=S.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,a,t=>{if(t)return as.error("Error while initializing PostHog app with config id "+e,t)})};for(var{id:s,url:a}of e.siteApps)o(s)}else as.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var cs=function(e,t){if(!e)return!1;var r=e.userAgent;if(r&&A(r,t))return!0;try{var n=null==e?void 0:e.userAgentData;if(null!=n&&n.brands&&n.brands.some(e=>A(null==e?void 0:e.brand,t)))return!0}catch(e){}return!!e.webdriver},us=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),ds="i.posthog.com";class ps{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("."+ds,".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]=us.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.lr[this.apiHost]=us.EU:this.lr[this.apiHost]=us.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===us.CUSTOM)return this.apiHost+t;var r=ds+t;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var hs={icontains:(e,t)=>!!u&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!u&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!u&&ao(t.href,e),not_regex:(e,t)=>!!u&&!ao(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class fs{constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{fs.ur("retrieved web experiments from the server"),t.hr=new Map,e.forEach(e=>{if(e.feature_flag_key){var r;t.hr&&(fs.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);z(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];fs.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())fs.ur("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(H(this.hr))return this.hr=new Map,this.loadIfEnabled(),void this.previewWebExperiment();fs.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=fs.getWindowLocation();if(null!=e&&e.search){var t=ur(null==e?void 0:e.search,"__experiment_id"),r=ur(null==e?void 0:e.search,"__experiment_variant");t&&r&&(fs.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&&(fs.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!H(e.conditions)&&fs.pr(e)&&fs.gr(e)}static pr(e){var t;if(H(e.conditions)||H(null==(t=e.conditions)?void 0:t.url))return!0;var r,n,i,o=fs.getWindowLocation();return!!o&&(null==(r=e.conditions)||!r.url||hs[null!==(n=null==(i=e.conditions)?void 0:i.urlMatchType)&&void 0!==n?n:"icontains"](e.conditions.url,o))}static getWindowLocation(){return null==u?void 0:u.location}static gr(e){var t;if(H(e.conditions)||H(null==(t=e.conditions)?void 0:t.utm))return!0;var r=oi();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];Fe.info("[WebExperiments] "+e,r)}dr(e,t,r){this._is_bot()?fs.ur("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?r.forEach(r=>{if(r.selector){var n;fs.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)})}}):fs.ur("Control variants leave the page unmodified.")}_is_bot(){return g&&this._instance?cs(g,this._instance.config.custom_blocked_useragents):void 0}}var gs=Ie("[PostHog ExternalIntegrations]"),vs={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class ms{constructor(e){this._instance=e}it(e,t){var r;null==(r=S.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,e,e=>{if(e)return gs.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e=this,t=function(t){var r,i,o;!n||null!=(r=S.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[t]||e.it(vs[t],()=>{var r;null==(r=S.__PosthogExtensions__)||null==(r=r.integrations)||null==(r=r[t])||r.start(e._instance)}),!n&&null!=(i=S.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[t]&&(null==(o=S.__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 _s="[SessionRecording]",ys=Ie(_s);class bs{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 ys.error("started without valid sessionManager"),new Error(_s+" started without valid sessionManager. This is a bug.");if("always"===this._instance.config.cookieless_mode)throw new Error(_s+' cannot be used with cookieless_mode="always"')}get yr(){var e,t=!(null==(e=this._instance.get_property(at))||!e.enabled),r=!this._instance.config.disable_session_recording,n=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return u&&t&&r&&!n}startIfEnabledOrStop(e){var t;if(!this.yr||null==(t=this._r)||!t.isStarted){var r=!U(Object.assign)&&!U(Array.from);this.yr&&r?(this.wr(e),ys.info("starting")):this.stopRecording()}}wr(e){var t,r,n;this.yr&&(null!=S&&null!=(t=S.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(r=S.__PosthogExtensions__)&&r.initSessionRecording?this.Er(e):null==(n=S.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,this.Sr,t=>{if(t)return ys.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(ct)}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=H(r)?null:parseFloat(r);H(i)&&this.$r();var o=null==t?void 0:t.minimumDurationMilliseconds;n.register({[at]:P({enabled:!!t},t,{networkPayloadCapture:P({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:U(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:ys.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):ys.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(at);return(null==r||null==(t=r.scriptConfig)?void 0:t.script)||"lazy-recorder"}Er(e){var t,r;if(null==(t=S.__PosthogExtensions__)||!t.initSessionRecording)throw Error("Called on script loaded before session recording is available");this._r||(this._r=null==(r=S.__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 ws={},Ss=()=>{},Es="posthog",xs=!to&&-1===(null==w?void 0:w.indexOf("MSIE"))&&-1===(null==w?void 0:w.indexOf("Mozilla")),ks=e=>{var t;return P({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:Ge(null==v?void 0:v.location),persistence:"localStorage+cookie",persistence_name:"",loaded:Ss,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:m&&z(null==m?void 0:m.search)&&-1!==m.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==u||null==(t=u.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;Fe.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:Jo},error_tracking:{},_onCapture:Ss,__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))},Ps=e=>{var t={};U(e.process_person)||(t.person_profiles=e.process_person),U(e.xhr_headers)||(t.request_headers=e.xhr_headers),U(e.cookie_name)||(t.persistence_name=e.cookie_name),U(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),U(e.store_google)||(t.save_campaign_params=e.store_google),U(e.verbose)||(t.debug=e.verbose);var r=Be({},t,e);return L(e.property_blacklist)&&(U(e.property_denylist)?r.property_denylist=e.property_blacklist:L(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:Fe.error("Invalid value for property_denylist config: "+e.property_denylist)),r};class Os{constructor(){this.__forceAllowLocalhost=!1}get Pr(){return this.__forceAllowLocalhost}set Pr(e){Fe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Ms{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 Os,this.Tr=!1,this.version=E.LIB_VERSION,this.Rr=new Ro,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=ks(),this.SentryIntegration=Xr,this.sentryIntegration=e=>function(e,t){var r=Kr(e,t);return{name:Yr,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 ko(this),this.toolbar=new tn(this),this.scrollManager=new ts(this),this.pageViewManager=new wi(this),this.surveys=new Ho(this),this.productTours=new To(this),this.experiments=new fs(this),this.exceptions=new fo(this),this.rateLimiter=new Yo(this),this.requestRouter=new ps(this),this.consent=new Lr(this),this.externalIntegrations=new ms(this),this.people={set:(e,t,r)=>{var n=z(e)?{[e]:t}:e;this.setPersonProperties(n),null==r||r({})},set_once:(e,t,r)=>{var n=z(e)?{[e]:t}:e;this.setPersonProperties(void 0,n),null==r||r({})}},this.on("eventCaptured",e=>Fe.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,r){if(r&&r!==Es){var n,i=null!==(n=ws[r])&&void 0!==n?n:new Ms;return i._init(e,t,r),ws[r]=i,ws[Es][r]=i,i}return this._init(e,t,r)}_init(e,t,r){var n;if(void 0===t&&(t={}),U(e)||q(e))return Fe.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(Be({},ks(t.defaults),Ps(t),{name:r,token:e})),this.config.on_xhr_error&&Fe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:lr.GZipJS;var i=this.jr();this.persistence=new Oo(this.config,i),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Oo(P({},this.config,{persistence:"sessionStorage"}),i);var o=P({},this.persistence.props),s=P({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Lr=new Zo(e=>this.Nr(e),this.config.request_queue_config),this.Ur=new es(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 os(this),this.sessionPropsManager=new ns(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Fe.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.zr(a)},0)):(Fe.info("Initializing extensions synchronously"),this.zr(a)),E.DEBUG=E.DEBUG||this.config.debug,E.DEBUG&&Fe.info("Starting in debug mode",{this:this,config:t,thisC:P({},this.config),p:o,s:s}),void 0!==(null==(n=t.bootstrap)?void 0:n.distinctID)){var l,c,d=this.config.get_device_id(xr()),p=null!=(l=t.bootstrap)&&l.isIdentifiedID?d:t.bootstrap.distinctID;this.persistence.set_property(_t,null!=(c=t.bootstrap)&&c.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:Pt,$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(_t,"anonymous")}return Ke(u,"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(_t,"identified")),t()},i=r.user();"then"in i&&j(i.then)?i.then(e=>n(e)):n(i)}(e,()=>{r.register((e=>{Promise&&Promise.resolve||Gr.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()||(Gr.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(Gr.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(),j(this.config._onCapture)&&this.config._onCapture!==Ss&&(Fe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&Fe.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 Hr(this),this.historyAutocapture.startIfEnabled();var r=[];r.push(()=>{new nn(this).startIfEnabledOrStop()}),r.push(()=>{var e;this.siteApps=new ls(this),null==(e=this.siteApps)||e.init()}),e||r.push(()=>{this.sessionRecording=new bs(this),this.sessionRecording.startIfEnabledOrStop()}),this.config.disable_scroll_properties||r.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),r.push(()=>{this.autocapture=new mr(this),this.autocapture.startIfEnabled()}),r.push(()=>{this.surveys.loadIfEnabled()}),r.push(()=>{this.productTours.loadIfEnabled()}),r.push(()=>{this.heatmaps=new bi(this),this.heatmaps.startIfEnabled()}),r.push(()=>{this.webVitalsAutocapture=new mi(this)}),r.push(()=>{this.exceptionObserver=new qr(this),this.exceptionObserver.startIfEnabled()}),r.push(()=>{this.deadClicksAutocapture=new Ur(this,Vr),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){Fe.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&&Fe.info("PostHog extensions initialized ("+n+"ms)")}fi(e){var t,r,n,i,o,s,a,l;if(!v||!v.body)return Fe.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=$(e.supportedCompression,lr.GZipJS)?lr.GZipJS:$(e.supportedCompression,lr.Base64)?lr.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){Fe.critical("`loaded` function failed",e)}this.Gr(),this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||"always"===this.config.cookieless_mode)&&this.Vr()},1),new Xo(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()&&Le(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=no(e.url,{ip:this.config.ip?1:0}),e.headers=P({},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=P({},e);i.timeout=i.timeout||6e4,i.url=no(i.url,{_:(new Date).getTime().toString(),ver:E.LIB_VERSION,compression:i.compression});var o=null!==(t=i.transport)&&void 0!==t?t:"fetch",s=so.filter(e=>!i.disableTransport||!e.transport||!i.disableTransport.includes(e.transport)),a=null!==(r=null==(n=Ye(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)})(P({},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=[];Le(e,e=>{e&&(t=e[0],L(t)?i.push(e):j(e)?e.call(this):L(e)&&"alias"===t?r.push(e):L(e)&&-1!==t.indexOf("capture")&&j(this[t])?i.push(e):n.push(e))});var o=function(e,t){Le(e,function(e){if(L(e[0])){var r=t;je(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(!U(e)&&z(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&&!z(null==t?void 0:t.$current_url)&&(Fe.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=>z(e)&&!W(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),L(t)?(o=[],Le(t,t=>{o.push(e(t))})):(o={},je(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,U(null==r?void 0:r.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=s),e===Fo.DISMISSED||e===Fo.SENT){var h=null==t?void 0:t[Io.SURVEY_ID],f=null==t?void 0:t[Io.SURVEY_ITERATION];u={id:h,current_iteration:f},localStorage.getItem(Uo(u))||localStorage.setItem(Uo(u),"true"),c.$set=P({},c.$set,{[Vo({id:h,current_iteration:f},e===Fo.SENT?"responded":"dismissed")]:!0})}var g=P({},c.properties.$set,c.$set);if(V(g)||this.setPersonPropertiesForFlags(g),!H(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}Fe.critical("This capture call is ignored due to client rate limiting.")}}else Fe.error("No event name provided to posthog.capture")}else Fe.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=P({},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=P({},this.persistence.properties(),this.sessionPersistence.properties());return s.distinct_id=a.distinct_id,(!z(s.distinct_id)&&!G(s.distinct_id)||q(s.distinct_id))&&Fe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),s}var l,c=fi(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&&Be(s,this.sessionPropsManager.getSessionProps());try{var p;this.sessionRecording&&Be(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===us.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=Be(s,l),"$pageview"===e&&v&&(s.title=v.title),!U(o)){var h=r.getTime()-o;s.$duration=parseFloat((h/1e3).toFixed(3))}w&&this.config.opt_out_useragent_filter&&(s.$browser_type=this._is_bot()?"bot":"browser"),(s=Be({},c,this.persistence.properties(),this.sessionPersistence.properties(),s)).$is_identified=this._isIdentified(),L(this.config.property_denylist)?je(this.config.property_denylist,function(e){delete s[e]}):Fe.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var f=this.config.sanitize_properties;f&&(Fe.error("sanitize_properties is deprecated. Use before_send instead"),s=f(s,e));var g=this.Xr();return s.$process_person_profile=g,g&&!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=Be({},n,i||{},e||{}),s=this.config.sanitize_properties;return s&&(Fe.error("sanitize_properties is deprecated. Use before_send instead"),o=s(o,"$set_once")),t&&(this.Tr=!0),V(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=qo),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 Fe.uninitializedWarning("posthog.identify");if(G(e)&&(e=e.toString(),Fe.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()))Fe.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!==Pt){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(Je)&&(this.unregister(Je),this.register({distinct_id:e}));var o="anonymous"===(this.persistence.get_property(_t)||"anonymous");e!==n&&o?(this.persistence.set_property(_t,"identified"),this.setPersonPropertiesForFlags(P({},r||{},t||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.Mr=lo(e,t,r),this.featureFlags.setAnonymousDistinctId(n)):(t||r)&&this.setPersonProperties(t,r),e!==n&&(this.reloadFeatureFlags(),this.unregister(mt))}}else Fe.critical('The string "'+Pt+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else Fe.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,t){if((e||t)&&this.Qr("posthog.setPersonProperties")){var r=lo(this.get_distinct_id(),e,t);this.Mr!==r?(this.setPersonPropertiesForFlags(P({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Mr=r):Fe.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:P({},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 Fe.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(Fe.info("reset"),!this.__loaded)return Fe.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(_t,"anonymous"),null==(i=this.sessionManager)||i.resetSessionId(),this.Mr=null,"always"===this.config.cookieless_mode)this.register_once({distinct_id:Pt,$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(Xe)?(Fe.critical("Attempting to create alias for existing People user - aborting."),-2):this.Qr("posthog.alias")?(U(t)&&(t=this.get_distinct_id()),e!==t?(this.Zr(Je,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(Fe.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=P({},this.config);if(B(e)){var r,n,i,o,s;Be(this.config,Ps(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 Oo(P({},this.config,{persistence:"sessionStorage"}),a);var l=this.Or(this.config.debug);Y(l)&&(this.config.debug=l),Y(this.config.debug)&&(this.config.debug?(E.DEBUG=!0,Tr.H()&&Tr.G("ph_debug","true"),Fe.info("set_config",{config:e,oldConfig:t,newConfig:P({},this.config)})):(E.DEBUG=!1,Tr.H()&&Tr.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(P({},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:Es;return t!==Es&&(t=Es+"."+t),t}_isIdentified(){var e,t;return"identified"===(null==(e=this.persistence)?void 0:e.get_property(_t))||"identified"===(null==(t=this.sessionPersistence)?void 0:t.get_property(_t))}Xr(){var e,t;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&V(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[Je])&&(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?(Fe.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 os(this),this.persistence&&(this.sessionPropsManager=new ns(this,this.sessionManager,this.persistence)),this.sessionRecording=new bs(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(),(U(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()):Fe.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:Pt,$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())):Fe.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===Dr.GRANTED?"granted":e===Dr.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 g?cs(g,this.config.custom_blocked_useragents):void 0}Vr(){v&&("visible"===v.visibilityState?this.Cr||(this.Cr=!0,this.capture("$pageview",{title:v.title},{send_instantly:!0}),this.Ir&&(v.removeEventListener("visibilitychange",this.Ir),this.Ir=null)):this.Ir||(this.Ir=this.Vr.bind(this),Ke(v,"visibilitychange",this.Ir)))}debug(e){!1===e?(null==u||u.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==u||u.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?(Fe.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=Fe,i=(t="advanced_disable_flags")in(e=s)&&!U(e[t]),o=r in e&&!U(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(H(this.config.before_send))return e;var t=L(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var n of t){if(r=n(r),H(r)){var i="Event '"+e.event+"' was rejected in beforeSend function";return K(e.event)?Fe.warn(i+". This can cause unexpected behavior."):Fe.info(i),null}r.properties&&!V(r.properties)||Fe.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=Y(e)&&!e,r=Tr.H()&&"true"===Tr.q("ph_debug");return!t&&(!!r||e)}}!function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=qe(e.prototype[t[r]])}(Ms,["identify"]);var As,Ts=(As=ws[Es]=new Ms,function(){function e(){e.done||(e.done=!0,xs=!1,je(ws,function(e){e._dom_loaded()}))}null!=v&&v.addEventListener?"complete"===v.readyState?e():Ke(v,"DOMContentLoaded",e,{capture:!1}):u&&Fe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),As),$s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fs,Is,Ns,Rs={},Ds={},Ls={exports:{}};function js(){return Fs||(Fs=1,Ls.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}})),Ls.exports}function Bs(){return Is||(Is=1,function(e){var t=Ds&&Ds.__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(js());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})}(Ds)),Ds}var Vs=(Ns||(Ns=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.requestMediaPermissions=e.MediaPermissionsErrorType=void 0;var t=Bs();Object.defineProperty(e,"MediaPermissionsErrorType",{enumerable:!0,get:function(){return t.MediaPermissionsErrorType}}),Object.defineProperty(e,"requestMediaPermissions",{enumerable:!0,get:function(){return t.requestMediaPermissions}})}(Rs)),Rs),Us=Bs();const zs=[];for(let e=0;e<256;++e)zs.push((e+256).toString(16).slice(1));let qs;const Ws=new Uint8Array(16);var Hs={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Gs(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!qs){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qs=crypto.getRandomValues.bind(crypto)}return qs(Ws)}();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(zs[e[t+0]]+zs[e[t+1]]+zs[e[t+2]]+zs[e[t+3]]+"-"+zs[e[t+4]]+zs[e[t+5]]+"-"+zs[e[t+6]]+zs[e[t+7]]+"-"+zs[e[t+8]]+zs[e[t+9]]+"-"+zs[e[t+10]]+zs[e[t+11]]+zs[e[t+12]]+zs[e[t+13]]+zs[e[t+14]]+zs[e[t+15]]).toLowerCase()}(n)}const Ys=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]},Ks=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);function Xs(e,t){return((e&&30.48*+e)??0)+((t&&2.54*+t)??0)}const Js=e=>e?.response?.data?.error??e?.response?.data?.message??e?.response?.data?.details?.[0]?.message??e?.message??e?.error??"Something went wrong",Zs=()=>{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},Qs=({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),Ts.capture(e,s)},ea=({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));Ts.capture(e,d)},ta=async()=>{try{return await Us.requestVideoPermissions(),{disabled:!1,message:""}}catch(e){if("object"==typeof e&&null!==e&&"type"in e){const{type:t}=e;if(t===Vs.MediaPermissionsErrorType.Generic||t===Vs.MediaPermissionsErrorType.CouldNotStartVideoSource)return{disabled:!0,message:"Could not start video source"};if(t===Vs.MediaPermissionsErrorType.SystemPermissionDenied||t===Vs.MediaPermissionsErrorType.UserPermissionDenied)return{disabled:!0,message:"Permission denied"}}return{disabled:!0,message:"An unknown error occurred"}}},ra=()=>{return Hs.randomUUID&&!e?Hs.randomUUID():Gs(e);var e},na=()=>Math.round(Date.now()/1e3),ia=({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},oa=({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};Ts.capture(e,s)},sa={black:"#000",white:"#fff"},aa="#e57373",la="#ef5350",ca="#f44336",ua="#d32f2f",da="#c62828",pa="#f3e5f5",ha="#ce93d8",fa="#ba68c8",ga="#ab47bc",va="#9c27b0",ma="#7b1fa2",_a="#e3f2fd",ya="#90caf9",ba="#42a5f5",wa="#1976d2",Sa="#1565c0",Ea="#4fc3f7",xa="#29b6f6",ka="#03a9f4",Pa="#0288d1",Oa="#01579b",Ma="#81c784",Aa="#66bb6a",Ta="#4caf50",$a="#388e3c",Ca="#2e7d32",Fa="#1b5e20",Ia="#ffb74d",Na="#ffa726",Ra="#ff9800",Da="#f57c00",La="#e65100",ja={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 Ba(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 Va="$$material";function Ua(){return Ua=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},Ua.apply(null,arguments)}var za=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}(),qa="-ms-",Wa="-moz-",Ha="-webkit-",Ga="comm",Ya="rule",Ka="decl",Xa="@keyframes",Ja=Math.abs,Za=String.fromCharCode,Qa=Object.assign;function el(e){return e.trim()}function tl(e,t,r){return e.replace(t,r)}function rl(e,t){return e.indexOf(t)}function nl(e,t){return 0|e.charCodeAt(t)}function il(e,t,r){return e.slice(t,r)}function ol(e){return e.length}function sl(e){return e.length}function al(e,t){return t.push(e),e}var ll=1,cl=1,ul=0,dl=0,pl=0,hl="";function fl(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ll,column:cl,length:s,return:""}}function gl(e,t){return Qa(fl("",null,null,"",null,null,0),e,{length:-e.length},t)}function vl(){return pl=dl>0?nl(hl,--dl):0,cl--,10===pl&&(cl=1,ll--),pl}function ml(){return pl=dl<ul?nl(hl,dl++):0,cl++,10===pl&&(cl=1,ll++),pl}function _l(){return nl(hl,dl)}function yl(){return dl}function bl(e,t){return il(hl,e,t)}function wl(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 Sl(e){return ll=cl=1,ul=ol(hl=e),dl=0,[]}function El(e){return hl="",e}function xl(e){return el(bl(dl-1,Ol(91===e?e+2:40===e?e+1:e)))}function kl(e){for(;(pl=_l())&&pl<33;)ml();return wl(e)>2||wl(pl)>3?"":" "}function Pl(e,t){for(;--t&&ml()&&!(pl<48||pl>102||pl>57&&pl<65||pl>70&&pl<97););return bl(e,yl()+(t<6&&32==_l()&&32==ml()))}function Ol(e){for(;ml();)switch(pl){case e:return dl;case 34:case 39:34!==e&&39!==e&&Ol(pl);break;case 40:41===e&&Ol(e);break;case 92:ml()}return dl}function Ml(e,t){for(;ml()&&e+pl!==57&&(e+pl!==84||47!==_l()););return"/*"+bl(t,dl-1)+"*"+Za(47===e?e:ml())}function Al(e){for(;!wl(_l());)ml();return bl(e,dl)}function Tl(e){return El($l("",null,null,null,[""],e=Sl(e),0,[0],e))}function $l(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,S=n,E=y;v;)switch(f=_,_=ml()){case 40:if(108!=f&&58==nl(E,d-1)){-1!=rl(E+=tl(xl(_),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:E+=xl(_);break;case 9:case 10:case 13:case 32:E+=kl(f);break;case 92:E+=Pl(yl()-1,7);continue;case 47:switch(_l()){case 42:case 47:al(Fl(Ml(ml(),yl()),t,r),l);break;default:E+="/"}break;case 123*g:a[c++]=ol(E)*m;case 125*g:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+u:-1==m&&(E=tl(E,/\f/g,"")),h>0&&ol(E)-d&&al(h>32?Il(E+";",n,r,d-1):Il(tl(E," ","")+";",n,r,d-2),l);break;case 59:E+=";";default:if(al(S=Cl(E,t,r,c,u,i,a,y,b=[],w=[],d),o),123===_)if(0===u)$l(E,t,S,S,b,o,d,a,w);else switch(99===p&&110===nl(E,3)?100:p){case 100:case 108:case 109:case 115:$l(e,S,S,n&&al(Cl(e,S,S,0,0,i,a,y,i,b=[],d),w),i,w,d,a,n?b:w);break;default:$l(E,S,S,S,[""],w,0,a,w)}}c=u=h=0,g=m=1,y=E="",d=s;break;case 58:d=1+ol(E),h=f;default:if(g<1)if(123==_)--g;else if(125==_&&0==g++&&125==vl())continue;switch(E+=Za(_),_*g){case 38:m=u>0?1:(E+="\f",-1);break;case 44:a[c++]=(ol(E)-1)*m,m=1;break;case 64:45===_l()&&(E+=xl(ml())),p=_l(),u=d=ol(y=E+=Al(yl())),_++;break;case 45:45===f&&2==ol(E)&&(g=0)}}return o}function Cl(e,t,r,n,i,o,s,a,l,c,u){for(var d=i-1,p=0===i?o:[""],h=sl(p),f=0,g=0,v=0;f<n;++f)for(var m=0,_=il(e,d+1,d=Ja(g=s[f])),y=e;m<h;++m)(y=el(g>0?p[m]+" "+_:tl(_,/&\f/g,p[m])))&&(l[v++]=y);return fl(e,t,r,0===i?Ya:a,l,c,u)}function Fl(e,t,r){return fl(e,t,r,Ga,Za(pl),il(e,2,-2),0)}function Il(e,t,r,n){return fl(e,t,r,Ka,il(e,0,n),il(e,n+1,-1),n)}function Nl(e,t){for(var r="",n=sl(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Rl(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ka:return e.return=e.return||e.value;case Ga:return"";case Xa:return e.return=e.value+"{"+Nl(e.children,n)+"}";case Ya:e.value=e.props.join(",")}return ol(r=Nl(e.children,n))?e.return=e.value+"{"+r+"}":""}function Dl(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Ll=function(e,t,r){for(var n=0,i=0;n=i,i=_l(),38===n&&12===i&&(t[r]=1),!wl(i);)ml();return bl(e,dl)},jl=function(e,t){return El(function(e,t){var r=-1,n=44;do{switch(wl(n)){case 0:38===n&&12===_l()&&(t[r]=1),e[r]+=Ll(dl-1,t,r);break;case 2:e[r]+=xl(n);break;case 4:if(44===n){e[++r]=58===_l()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Za(n)}}while(n=ml());return e}(Sl(e),t))},Bl=new WeakMap,Vl=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)||Bl.get(r))&&!n){Bl.set(e,!0);for(var i=[],o=jl(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]}}},Ul=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},zl=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},ql=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Wl=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Hl=function(e,t,r){ql(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."),Wl(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!ql(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."),Wl(e)))};function Gl(e,t){switch(function(e,t){return 45^nl(e,0)?(((t<<2^nl(e,0))<<2^nl(e,1))<<2^nl(e,2))<<2^nl(e,3):0}(e,t)){case 5103:return Ha+"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 Ha+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ha+e+Wa+e+qa+e+e;case 6828:case 4268:return Ha+e+qa+e+e;case 6165:return Ha+e+qa+"flex-"+e+e;case 5187:return Ha+e+tl(e,/(\w+).+(:[^]+)/,Ha+"box-$1$2"+qa+"flex-$1$2")+e;case 5443:return Ha+e+qa+"flex-item-"+tl(e,/flex-|-self/,"")+e;case 4675:return Ha+e+qa+"flex-line-pack"+tl(e,/align-content|flex-|-self/,"")+e;case 5548:return Ha+e+qa+tl(e,"shrink","negative")+e;case 5292:return Ha+e+qa+tl(e,"basis","preferred-size")+e;case 6060:return Ha+"box-"+tl(e,"-grow","")+Ha+e+qa+tl(e,"grow","positive")+e;case 4554:return Ha+tl(e,/([^-])(transform)/g,"$1"+Ha+"$2")+e;case 6187:return tl(tl(tl(e,/(zoom-|grab)/,Ha+"$1"),/(image-set)/,Ha+"$1"),e,"")+e;case 5495:case 3959:return tl(e,/(image-set\([^]*)/,Ha+"$1$`$1");case 4968:return tl(tl(e,/(.+:)(flex-)?(.*)/,Ha+"box-pack:$3"+qa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ha+e+e;case 4095:case 3583:case 4068:case 2532:return tl(e,/(.+)-inline(.+)/,Ha+"$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(ol(e)-1-t>6)switch(nl(e,t+1)){case 109:if(45!==nl(e,t+4))break;case 102:return tl(e,/(.+:)(.+)-([^]+)/,"$1"+Ha+"$2-$3$1"+Wa+(108==nl(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rl(e,"stretch")?Gl(tl(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==nl(e,t+1))break;case 6444:switch(nl(e,ol(e)-3-(~rl(e,"!important")&&10))){case 107:return tl(e,":",":"+Ha)+e;case 101:return tl(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ha+(45===nl(e,14)?"inline-":"")+"box$3$1"+Ha+"$2$3$1"+qa+"$2box$3")+e}break;case 5936:switch(nl(e,t+11)){case 114:return Ha+e+qa+tl(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ha+e+qa+tl(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ha+e+qa+tl(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ha+e+qa+e+e}return e}var Yl,Kl=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ka:e.return=Gl(e.value,e.length);break;case Xa:return Nl([gl(e,{value:tl(e.value,"@","@"+Ha)})],n);case Ya: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 Nl([gl(e,{props:[tl(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Nl([gl(e,{props:[tl(t,/:(plac\w+)/,":"+Ha+"input-$1")]}),gl(e,{props:[tl(t,/:(plac\w+)/,":-moz-$1")]}),gl(e,{props:[tl(t,/:(plac\w+)/,qa+"input-$1")]})],n)}return""})}}],Xl=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;Yl=function(e){var t=e.match(Xl);if(t)return t[t.length-1]};var Jl=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||Kl;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=[Vl,Ul];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(zl(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}}),Hl);var c,u=[Rl,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==Ga&&c.insert(e.value+"{}"))}],d=function(e){var t=sl(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,Yl){var i=Yl(t.styles);i&&(c={insert:function(e){r.insert(e+i)}})}!function(e){Nl(Tl(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new za({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 Zl(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var Ql=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},ec=function(e,t,r){Ql(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 tc={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},rc="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",nc="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ic=/[A-Z]|^ms/g,oc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sc=function(e){return 45===e.charCodeAt(1)},ac=function(e){return null!=e&&"boolean"!=typeof e},lc=Dl(function(e){return sc(e)?e:e.replace(ic,"-$&").toLowerCase()}),cc=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(oc,function(e,t,r){return _c={name:t,styles:r,next:_c},t})}return 1===tc[e]||sc(e)||"number"!=typeof t||0===t?t:t+"px"},uc=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,dc=["normal","none","initial","inherit","unset"],pc=cc,hc=/^-ms-/,fc=/-(.)/g,gc={};cc=function(e,t){if("content"===e&&("string"!=typeof t||-1===dc.indexOf(t)&&!uc.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=pc(e,t);return""===r||sc(e)||-1===e.indexOf("-")||void 0!==gc[e]||(gc[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(hc,"ms-").replace(fc,function(e,t){return t.toUpperCase()})+"?")),r};var vc="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function mc(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(vc);return n}switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return _c={name:i.name,styles:i.styles,next:_c},i.name;var o=r;if(void 0!==o.styles){var s=o.next;if(void 0!==s)for(;void 0!==s;)_c={name:s.name,styles:s.styles,next:_c},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+=mc(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]+"}":ac(a)&&(n+=lc(o)+":"+cc(o,a)+";")}else{if("NO_COMPONENT_SELECTOR"===o)throw new Error(vc);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=mc(e,t,s);switch(o){case"animation":case"animationName":n+=lc(o)+":"+l+";";break;default:"undefined"===o&&console.error(nc),n+=o+"{"+l+"}"}}else for(var c=0;c<s.length;c++)ac(s[c])&&(n+=lc(o)+":"+cc(o,s[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var a=_c,l=r(e);return _c=a,mc(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(oc,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 _c,yc=/label:\s*([^\s;{]+)\s*(;|$)/g;function bc(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="";_c=void 0;var o=e[0];if(null==o||void 0===o.raw)n=!1,i+=mc(r,t,o);else{var s=o;void 0===s[0]&&console.error(rc),i+=s[0]}for(var a=1;a<e.length;a++)if(i+=mc(r,t,e[a]),n){var l=o;void 0===l[a]&&console.error(rc),i+=l[a]}yc.lastIndex=0;for(var c,u="";null!==(c=yc.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:_c,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 wc=!!e.useInsertionEffect&&e.useInsertionEffect,Sc=wc||function(e){return e()},Ec=wc||e.useLayoutEffect,xc=e.createContext("undefined"!=typeof HTMLElement?Jl({key:"css"}):null);xc.displayName="EmotionCacheContext",xc.Provider;var kc=function(e){return r(function(t,r){var i=n(xc);return e(t,i,r)})},Pc=e.createContext({});Pc.displayName="EmotionThemeContext";var Oc={}.hasOwnProperty,Mc=function(e){var t=e.split(".");return t[t.length-1]},Ac=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Mc(t[1]):void 0},Tc=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),$c=function(e){return e.replace(/\$/g,"-")},Cc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fc="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ic=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)Oc.call(t,n)&&(r[n]=t[n]);if(r[Cc]=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=Ac(t[r]);if(n){if(Tc.has(n))break;if(/^[A-Z]/.test(n))return $c(n)}}}((new Error).stack);i&&(r[Fc]=i)}return r},Nc=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ql(t,r,n),Sc(function(){return ec(t,r,n)}),null},Rc=kc(function(t,r,n){var i=t.css;"string"==typeof i&&void 0!==r.registered[i]&&(i=r.registered[i]);var o=t[Cc],s=[i],a="";"string"==typeof t.className?a=Zl(r.registered,s,t.className):null!=t.className&&(a=t.className+" ");var l=bc(s,void 0,e.useContext(Pc));if(-1===l.name.indexOf("-")){var c=t[Fc];c&&(l=bc([l,"label:"+c+";"]))}a+=r.key+"-"+l.name;var u={};for(var d in t)Oc.call(t,d)&&"css"!==d&&d!==Cc&&d!==Fc&&(u[d]=t[d]);return u.className=a,n&&(u.ref=n),e.createElement(e.Fragment,null,e.createElement(Nc,{cache:r,serialized:l,isStringTag:"string"==typeof o}),e.createElement(o,u))});Rc.displayName="EmotionCssPropInternal";var Dc=Rc,Lc=/^((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)-.*))$/,jc=Dl(function(e){return Lc.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Bc=function(e){return"theme"!==e},Vc=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?jc:Bc},Uc=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},zc="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",qc=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ql(t,r,n),Sc(function(){return ec(t,r,n)}),null},Wc=function t(r,n){if(void 0===r)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var i,o,s=r.__emotion_real===r,a=s&&r.__emotion_base||r;void 0!==n&&(i=n.label,o=n.target);var l=Uc(r,n,s),c=l||Vc(a),u=!c("as");return function(){var d=arguments,p=s&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==i&&p.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{var h=d[0];void 0===h[0]&&console.error(zc),p.push(h[0]);for(var f=d.length,g=1;g<f;g++)void 0===h[g]&&console.error(zc),p.push(d[g],h[g])}var v=kc(function(t,r,n){var i=u&&t.as||a,s="",d=[],h=t;if(null==t.theme){for(var f in h={},t)h[f]=t[f];h.theme=e.useContext(Pc)}"string"==typeof t.className?s=Zl(r.registered,d,t.className):null!=t.className&&(s=t.className+" ");var g=bc(p.concat(d),r.registered,h);s+=r.key+"-"+g.name,void 0!==o&&(s+=" "+o);var v=u&&void 0===l?Vc(i):c,m={};for(var _ in t)u&&"as"===_||v(_)&&(m[_]=t[_]);return m.className=s,n&&(m.ref=n),e.createElement(e.Fragment,null,e.createElement(qc,{cache:r,serialized:g,isStringTag:"string"==typeof i}),e.createElement(i,m))});return v.displayName=void 0!==i?i:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",v.defaultProps=r.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(e,r){return t(e,Ua({},n,r,{shouldForwardProp:Uc(v,r,!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){Wc[e]=Wc(e)});var Hc,Gc={exports:{}},Yc={exports:{}},Kc={};var Xc,Jc,Zc,Qc,eu,tu,ru,nu,iu,ou,su,au,lu,cu,uu,du={};
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 pu(){return Jc||(Jc=1,"production"===process.env.NODE_ENV?Yc.exports=function(){if(Hc)return Kc;Hc=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 Kc.AsyncMode=l,Kc.ConcurrentMode=c,Kc.ContextConsumer=a,Kc.ContextProvider=s,Kc.Element=t,Kc.ForwardRef=u,Kc.Fragment=n,Kc.Lazy=f,Kc.Memo=h,Kc.Portal=r,Kc.Profiler=o,Kc.StrictMode=i,Kc.Suspense=d,Kc.isAsyncMode=function(e){return b(e)||y(e)===l},Kc.isConcurrentMode=b,Kc.isContextConsumer=function(e){return y(e)===a},Kc.isContextProvider=function(e){return y(e)===s},Kc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Kc.isForwardRef=function(e){return y(e)===u},Kc.isFragment=function(e){return y(e)===n},Kc.isLazy=function(e){return y(e)===f},Kc.isMemo=function(e){return y(e)===h},Kc.isPortal=function(e){return y(e)===r},Kc.isProfiler=function(e){return y(e)===o},Kc.isStrictMode=function(e){return y(e)===i},Kc.isSuspense=function(e){return y(e)===d},Kc.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)},Kc.typeOf=y,Kc}():Yc.exports=(Xc||(Xc=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,S=a,E=s,x=t,k=u,P=n,O=f,M=h,A=r,T=o,$=i,C=d,F=!1;function I(e){return y(e)===c}du.AsyncMode=b,du.ConcurrentMode=w,du.ContextConsumer=S,du.ContextProvider=E,du.Element=x,du.ForwardRef=k,du.Fragment=P,du.Lazy=O,du.Memo=M,du.Portal=A,du.Profiler=T,du.StrictMode=$,du.Suspense=C,du.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},du.isConcurrentMode=I,du.isContextConsumer=function(e){return y(e)===a},du.isContextProvider=function(e){return y(e)===s},du.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},du.isForwardRef=function(e){return y(e)===u},du.isFragment=function(e){return y(e)===n},du.isLazy=function(e){return y(e)===f},du.isMemo=function(e){return y(e)===h},du.isPortal=function(e){return y(e)===r},du.isProfiler=function(e){return y(e)===o},du.isStrictMode=function(e){return y(e)===i},du.isSuspense=function(e){return y(e)===d},du.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)},du.typeOf=y}()),du)),Yc.exports}
10
+ /*
11
+ object-assign
12
+ (c) Sindre Sorhus
13
+ @license MIT
14
+ */function hu(){if(Qc)return Zc;Qc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return Zc=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},Zc}function fu(){if(tu)return eu;tu=1;return eu="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function gu(){return nu?ru:(nu=1,ru=Function.call.bind(Object.prototype.hasOwnProperty))}function vu(){if(ou)return iu;ou=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=fu(),r={},n=gu();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={})},iu=i}function mu(){if(au)return su;au=1;var e=pu(),t=hu(),r=fu(),n=gu(),i=vu(),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){}}),su=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},su}function _u(){if(cu)return lu;cu=1;var e=fu();function t(){}function r(){}return r.resetWarningCache=t,lu=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 yu(){if(uu)return Gc.exports;if(uu=1,"production"!==process.env.NODE_ENV){var e=pu();Gc.exports=mu()(e.isElement,true)}else Gc.exports=_u()();return Gc.exports}var bu=Cs(yu());
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 wu(e,t){const r=Wc(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 Su=[];function Eu(e){return Su[0]=e,bc(Su)}var xu,ku={exports:{}},Pu={};function Ou(){if(xu)return Pu;xu=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 Pu.ContextConsumer=o,Pu.ContextProvider=s,Pu.Element=e,Pu.ForwardRef=a,Pu.Fragment=r,Pu.Lazy=d,Pu.Memo=u,Pu.Portal=t,Pu.Profiler=i,Pu.StrictMode=n,Pu.Suspense=l,Pu.SuspenseList=c,Pu.isContextConsumer=function(e){return f(e)===o},Pu.isContextProvider=function(e){return f(e)===s},Pu.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Pu.isForwardRef=function(e){return f(e)===a},Pu.isFragment=function(e){return f(e)===r},Pu.isLazy=function(e){return f(e)===d},Pu.isMemo=function(e){return f(e)===u},Pu.isPortal=function(e){return f(e)===t},Pu.isProfiler=function(e){return f(e)===i},Pu.isStrictMode=function(e){return f(e)===n},Pu.isSuspense=function(e){return f(e)===l},Pu.isSuspenseList=function(e){return f(e)===c},Pu.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)},Pu.typeOf=f,Pu}var Mu,Au,Tu={};
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 $u(){return Mu||(Mu=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");Tu.ContextConsumer=s,Tu.ContextProvider=a,Tu.Element=t,Tu.ForwardRef=l,Tu.Fragment=n,Tu.Lazy=p,Tu.Memo=d,Tu.Portal=r,Tu.Profiler=o,Tu.StrictMode=i,Tu.Suspense=c,Tu.SuspenseList=u,Tu.isContextConsumer=function(t){return e(t)===s},Tu.isContextProvider=function(t){return e(t)===a},Tu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Tu.isForwardRef=function(t){return e(t)===l},Tu.isFragment=function(t){return e(t)===n},Tu.isLazy=function(t){return e(t)===p},Tu.isMemo=function(t){return e(t)===d},Tu.isPortal=function(t){return e(t)===r},Tu.isProfiler=function(t){return e(t)===o},Tu.isStrictMode=function(t){return e(t)===i},Tu.isSuspense=function(t){return e(t)===c},Tu.isSuspenseList=function(t){return e(t)===u},Tu.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)},Tu.typeOf=e}()),Tu}function Cu(){return Au||(Au=1,"production"===process.env.NODE_ENV?ku.exports=Ou():ku.exports=$u()),ku.exports}var Fu=Cu();function Iu(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 Nu(t){if(e.isValidElement(t)||Fu.isValidElementType(t)||!Iu(t))return t;const r={};return Object.keys(t).forEach(e=>{r[e]=Nu(t[e])}),r}function Ru(t,r,n={clone:!0}){const i=n.clone?{...t}:t;return Iu(t)&&Iu(r)&&Object.keys(r).forEach(o=>{e.isValidElement(r[o])||Fu.isValidElementType(r[o])?i[o]=r[o]:Iu(r[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Iu(t[o])?i[o]=Ru(t[o],r[o],n):n.clone?i[o]=Iu(r[o])?Nu(r[o]):r[o]:i[o]=r[o]}),i}function Du(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 Lu(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 ju={borderRadius:4},Bu="production"!==process.env.NODE_ENV?bu.oneOfType([bu.number,bu.string,bu.object,bu.array]):{};function Vu(e,t){return t?Ru(e,t,{clone:!1}):e}const Uu={xs:0,sm:600,md:900,lg:1200,xl:1536},zu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Uu[e]}px)`},qu={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:Uu[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Wu(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||zu;return t.reduce((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n),{})}if("object"==typeof t){const e=n.breakpoints||zu;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\`.`:Ba(18,`(${t})`));return null}const[,n,i]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(o)}(n.containerQueries?n:qu,o);e&&(i[e]=r(t[o],o))}else if(Object.keys(e.values||Uu).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 Hu(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function Gu(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Ba(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Yu(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 Ku(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Yu(e,r)||n,t&&(i=t(i,n,e)),i}function Xu(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=Yu(e.theme,n)||{};return Wu(e,o,e=>{let n=Ku(s,i,e);return e===n&&"string"==typeof e&&(n=Ku(s,i,`${t}${"default"===e?"":Gu(e)}`,e)),!1===r?n:{[r]:n}})};return o.propTypes="production"!==process.env.NODE_ENV?{[t]:Bu}:{},o.filterProps=[t],o}const Ju={m:"margin",p:"padding"},Zu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Qu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ed=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!Qu[e])return[e];e=Qu[e]}const[t,r]=e.split(""),n=Ju[t],i=Zu[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]}),td=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],nd=[...td,...rd];function id(e,t,r,n){const i=Yu(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 od(e){return id(e,"spacing",8,"spacing")}function sd(e,t){return"string"==typeof t||null==t?t:e(t)}function ad(e,t,r,n){if(!t.includes(r))return null;const i=function(e,t){return r=>e.reduce((e,n)=>(e[n]=sd(t,r),e),{})}(ed(r),n);return Wu(e,e[r],i)}function ld(e,t){const r=od(e.theme);return Object.keys(e).map(n=>ad(e,t,n,r)).reduce(Vu,{})}function cd(e){return ld(e,td)}function ud(e){return ld(e,rd)}function dd(e=8,t=od({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 pd(...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]?Vu(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 hd(e){return"number"!=typeof e?e:`${e}px solid`}function fd(e,t){return Xu({prop:e,themeKey:"borders",transform:t})}cd.propTypes="production"!==process.env.NODE_ENV?td.reduce((e,t)=>(e[t]=Bu,e),{}):{},cd.filterProps=td,ud.propTypes="production"!==process.env.NODE_ENV?rd.reduce((e,t)=>(e[t]=Bu,e),{}):{},ud.filterProps=rd,"production"===process.env.NODE_ENV||nd.reduce((e,t)=>(e[t]=Bu,e),{});const gd=fd("border",hd),vd=fd("borderTop",hd),md=fd("borderRight",hd),_d=fd("borderBottom",hd),yd=fd("borderLeft",hd),bd=fd("borderColor"),wd=fd("borderTopColor"),Sd=fd("borderRightColor"),Ed=fd("borderBottomColor"),xd=fd("borderLeftColor"),kd=fd("outline",hd),Pd=fd("outlineColor"),Od=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=id(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:sd(t,e)});return Wu(e,e.borderRadius,r)}return null};Od.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Bu}:{},Od.filterProps=["borderRadius"],pd(gd,vd,md,_d,yd,bd,wd,Sd,Ed,xd,Od,kd,Pd);const Md=e=>{if(void 0!==e.gap&&null!==e.gap){const t=id(e.theme,"spacing",8,"gap"),r=e=>({gap:sd(t,e)});return Wu(e,e.gap,r)}return null};Md.propTypes="production"!==process.env.NODE_ENV?{gap:Bu}:{},Md.filterProps=["gap"];const Ad=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=id(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:sd(t,e)});return Wu(e,e.columnGap,r)}return null};Ad.propTypes="production"!==process.env.NODE_ENV?{columnGap:Bu}:{},Ad.filterProps=["columnGap"];const Td=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=id(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:sd(t,e)});return Wu(e,e.rowGap,r)}return null};Td.propTypes="production"!==process.env.NODE_ENV?{rowGap:Bu}:{},Td.filterProps=["rowGap"];function $d(e,t){return"grey"===t?t:e}pd(Md,Ad,Td,Xu({prop:"gridColumn"}),Xu({prop:"gridRow"}),Xu({prop:"gridAutoFlow"}),Xu({prop:"gridAutoColumns"}),Xu({prop:"gridAutoRows"}),Xu({prop:"gridTemplateColumns"}),Xu({prop:"gridTemplateRows"}),Xu({prop:"gridTemplateAreas"}),Xu({prop:"gridArea"}));function Cd(e){return e<=1&&0!==e?100*e+"%":e}pd(Xu({prop:"color",themeKey:"palette",transform:$d}),Xu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$d}),Xu({prop:"backgroundColor",themeKey:"palette",transform:$d}));const Fd=Xu({prop:"width",transform:Cd}),Id=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const r=e.theme?.breakpoints?.values?.[t]||Uu[t];return r?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Cd(t)}};return Wu(e,e.maxWidth,t)}return null};Id.filterProps=["maxWidth"];const Nd=Xu({prop:"minWidth",transform:Cd}),Rd=Xu({prop:"height",transform:Cd}),Dd=Xu({prop:"maxHeight",transform:Cd}),Ld=Xu({prop:"minHeight",transform:Cd});Xu({prop:"size",cssProperty:"width",transform:Cd}),Xu({prop:"size",cssProperty:"height",transform:Cd});pd(Fd,Id,Nd,Rd,Dd,Ld,Xu({prop:"boxSizing"}));const jd={border:{themeKey:"borders",transform:hd},borderTop:{themeKey:"borders",transform:hd},borderRight:{themeKey:"borders",transform:hd},borderBottom:{themeKey:"borders",transform:hd},borderLeft:{themeKey:"borders",transform:hd},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:hd},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Od},color:{themeKey:"palette",transform:$d},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$d},backgroundColor:{themeKey:"palette",transform:$d},p:{style:ud},pt:{style:ud},pr:{style:ud},pb:{style:ud},pl:{style:ud},px:{style:ud},py:{style:ud},padding:{style:ud},paddingTop:{style:ud},paddingRight:{style:ud},paddingBottom:{style:ud},paddingLeft:{style:ud},paddingX:{style:ud},paddingY:{style:ud},paddingInline:{style:ud},paddingInlineStart:{style:ud},paddingInlineEnd:{style:ud},paddingBlock:{style:ud},paddingBlockStart:{style:ud},paddingBlockEnd:{style:ud},m:{style:cd},mt:{style:cd},mr:{style:cd},mb:{style:cd},ml:{style:cd},mx:{style:cd},my:{style:cd},margin:{style:cd},marginTop:{style:cd},marginRight:{style:cd},marginBottom:{style:cd},marginLeft:{style:cd},marginX:{style:cd},marginY:{style:cd},marginInline:{style:cd},marginInlineStart:{style:cd},marginInlineEnd:{style:cd},marginBlock:{style:cd},marginBlockStart:{style:cd},marginBlockEnd:{style:cd},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:Md},rowGap:{style:Td},columnGap:{style:Ad},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Cd},maxWidth:{style:Id},minWidth:{transform:Cd},height:{transform:Cd},maxHeight:{transform:Cd},minHeight:{transform:Cd},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 Bd=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=Yu(r,a)||{};if(c)return c(i);return Wu(i,t,t=>{let r=Ku(u,l,t);return t===r&&"string"==typeof t&&(r=Ku(u,l,`${e}${"default"===t?"":Gu(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??jd;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=Vu(c,e(r,o,i,s));else{const e=Wu({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=Vu(c,e):c[r]=t({sx:o,theme:i,nested:!0})}else c=Vu(c,e(r,o,i,s))}),!o&&i.modularCssLayers?{"@layer sx":Lu(i,Hu(l,c))}:Lu(i,Hu(l,c))}return Array.isArray(n)?n.map(a):a(n)}}();function Vd(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 Ud(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={},...s}=e;let a=Ru({breakpoints:Du(r),direction:"ltr",components:{},palette:{mode:"light",...n},spacing:dd(i),shape:{...ju,...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=Vd,a=t.reduce((e,t)=>Ru(e,t),a),a.unstable_sxConfig={...jd,...s?.unstable_sxConfig},a.unstable_sx=function(e){return Bd({sx:e,theme:this})},a}function zd(t=null){const r=e.useContext(Pc);return r&&(n=r,0!==Object.keys(n).length)?r:t;var n}Bd.filterProps=["sx"];const qd=Ud();function Wd(e=qd){return zd(e)}const Hd=e=>e,Gd=(()=>{let e=Hd;return{configure(t){e=t},generate:t=>e(t),reset(){e=Hd}}})(),Yd={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 Kd(e,t,r="Mui"){const n=Yd[t];return n?`${r}-${n}`:`${Gd.generate(e)}-${t}`}function Xd(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=Kd(e,t,r)}),n}function Jd(e,t=""){return e.displayName||e.name||t}function Zd(e,t,r){const n=Jd(t);return e.displayName||(""!==n?`${r}(${n})`:r)}function Qd(e){const{variants:t,...r}=e,n={variants:t,style:Eu(r),isProcessed:!0};return n.style===r||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Eu(e.style))}),n}const ep=Ud();function tp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function rp(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function np(e){return e?(t,r)=>r[e]:null}function ip(e,t,r){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap(t=>ip(e,t,r));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=r?rp(n.style,r):n.style;else{const{variants:e,...i}=n;t=r?rp(Eu(i),r):i}return op(e,n.variants,[t],r)}return n?.isProcessed?r?rp(Eu(n.style),r):n.style:r?rp(Eu(n),r):n}function op(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?rp(Eu(s.style(i)),n):s.style(i))):r.push(n?rp(Eu(s.style),n):s.style)}return r}function sp(e,t){let r;return"production"!==process.env.NODE_ENV&&e&&(r=`${e}-${ap(t||"Root")}`),r}function ap(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function lp(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]=lp(i[t],s[t],r)}}else n[o]=s;else n[o]=i||{}}else"className"===o&&r&&t.className?n.className=c(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 cp="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function up(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 dp(e){if(e.type)return e;if("#"===e.charAt(0))return dp(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().`:Ba(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.`:Ba(10,n))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:r,values:i,colorSpace:n}}const pp=(e,t)=>{try{return(e=>{const t=dp(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 hp(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 fp(e){e=dp(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])),hp({type:a,values:l})}function gp(e){let t="hsl"===(e=dp(e)).type||"hsla"===e.type?dp(fp(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 vp(e,t){const r=gp(e),n=gp(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function mp(e,t){return e=dp(e),t=up(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,hp(e)}function _p(e,t,r){try{return mp(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}}function yp(e,t){if(e=dp(e),t=up(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 hp(e)}function bp(e,t,r){try{return yp(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}}function wp(e,t){if(e=dp(e),t=up(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 hp(e)}function Sp(e,t,r){try{return wp(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}}function Ep(e,t,r){try{return function(e,t=.15){return gp(e)>.5?yp(e,t):wp(e,t)}(e,t)}catch(t){return e}}const xp="exact-prop: ​";function kp(e){return"production"===process.env.NODE_ENV?e:{...e,[xp]: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 Pp=e.createContext();"production"!==process.env.NODE_ENV&&(bu.node,bu.bool);const Op=()=>e.useContext(Pp)??!1,Mp=e.createContext(void 0);function Ap({props:t,name:r}){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?lp(i.defaultProps,n,t.components.mergeClassNameAndStyle):i.styleOverrides||i.variants?n:lp(i,n,t.components.mergeClassNameAndStyle)}({props:t,name:r,theme:{components:e.useContext(Mp)}})}"production"!==process.env.NODE_ENV&&(bu.node,bu.object);let Tp=0;const $p={...e}.useId;function Cp(t){if(void 0!==$p){const e=$p();return t??e}return function(t){const[r,n]=e.useState(t),i=t||r;return e.useEffect(()=>{null==r&&(Tp+=1,n(`mui-${Tp}`))},[r]),i}(t)}const Fp={theme:void 0};function Ip(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 Np=(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 Rp(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}),Np(o,e,`var(${n})`,a),Np(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 Dp(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 Lp(){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:sa.white,default:sa.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 jp=Lp();function Bp(){return{text:{primary:sa.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:sa.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 Vp=Bp();function Up(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=wp(e.main,i):"dark"===t&&(e.dark=yp(e.main,o)))}function zp(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 qp(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:ya,light:_a,dark:ba}:{main:wa,light:ba,dark:Sa}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ha,light:pa,dark:ga}:{main:va,light:fa,dark:ma}}(t),l=e.error||function(e="light"){return"dark"===e?{main:ca,light:aa,dark:ua}:{main:ua,light:la,dark:da}}(t),c=e.info||function(e="light"){return"dark"===e?{main:xa,light:Ea,dark:Pa}:{main:Pa,light:ka,dark:Oa}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Aa,light:Ma,dark:$a}:{main:Ca,light:Ta,dark:Fa}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Na,light:Ia,dark:Da}:{main:"#ed6c02",light:Ra,dark:La}}(t);function p(e){if(i)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=vp(e,Vp.text.primary)>=r?Vp.text.primary:jp.text.primary;if("production"!==process.env.NODE_ENV){const r=vp(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.`:Ba(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} });`:Ba(12,t?` (${t})`:"",JSON.stringify(e.main)));return i?(zp(i,e,"light",o,n),zp(i,e,"dark",s,n)):(Up(e,"light",o,n),Up(e,"dark",s,n)),e.contrastText||(e.contrastText=p(e.main)),e};let f;"light"===t?f=Lp():"dark"===t&&(f=Bp()),"production"!==process.env.NODE_ENV&&(f||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return Ru({common:{...sa},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:ja,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n,...f},o)}function Wp(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 Hp={textTransform:"uppercase"},Gp='"Roboto", "Helvetica", "Arial", sans-serif';function Yp(e,t){const{fontFamily:r=Gp,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===Gp?{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,Hp),caption:f(o,12,1.66,.4),overline:f(o,12,2.66,1,Hp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ru({htmlFontSize:l,pxToRem:h,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:a,...g},d,{clone:!1})}function Kp(...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 Xp=["none",Kp(0,2,1,-1,0,1,1,0,0,1,3,0),Kp(0,3,1,-2,0,2,2,0,0,1,5,0),Kp(0,3,3,-2,0,3,4,0,0,1,8,0),Kp(0,2,4,-1,0,4,5,0,0,1,10,0),Kp(0,3,5,-1,0,5,8,0,0,1,14,0),Kp(0,3,5,-1,0,6,10,0,0,1,18,0),Kp(0,4,5,-2,0,7,10,1,0,2,16,1),Kp(0,5,5,-3,0,8,10,1,0,3,14,2),Kp(0,5,6,-3,0,9,12,1,0,3,16,2),Kp(0,6,6,-3,0,10,14,1,0,4,18,3),Kp(0,6,7,-4,0,11,15,1,0,4,20,3),Kp(0,7,8,-4,0,12,17,2,0,5,22,4),Kp(0,7,8,-4,0,13,19,2,0,5,24,4),Kp(0,7,9,-4,0,14,21,2,0,5,26,4),Kp(0,8,9,-5,0,15,22,2,0,6,28,5),Kp(0,8,10,-5,0,16,24,2,0,6,30,5),Kp(0,8,11,-5,0,17,26,2,0,6,32,5),Kp(0,9,11,-5,0,18,28,2,0,7,34,6),Kp(0,9,12,-6,0,19,29,2,0,7,36,6),Kp(0,10,13,-6,0,20,31,3,0,8,38,7),Kp(0,10,13,-6,0,21,33,3,0,8,40,7),Kp(0,10,14,-6,0,22,35,3,0,8,42,7),Kp(0,11,14,-7,0,23,36,3,0,9,44,8),Kp(0,11,15,-7,0,24,38,3,0,9,46,8)],Jp={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)"},Zp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Qp(e){return`${Math.round(e)}ms`}function eh(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function th(e){const t={...Jp,...e.easing},r={...Zp,...e.duration};return{getAutoHeightDuration:eh,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:Qp(i)} ${o} ${"string"==typeof s?s:Qp(s)}`).join(",")},...e,easing:t,duration:r}}const rh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function nh(e){return Iu(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function ih(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];!nh(o)||i.startsWith("unstable_")?delete t[i]:Iu(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 oh(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function sh(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})`:mp(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 ${oh(r)})`:wp(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${oh(r)})`:yp(t,r)}})}function ah(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.":Ba(20));const d=qp({...o,colorSpace:c}),p=Ud(e);let h=Ru(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:Xp.slice(),typography:Yp(d,a),transitions:th(s),zIndex:{...rh}});var f,g;if(h=Ru(h,u),h=t.reduce((e,t)=>Ru(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=Kd("",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={...jd,...u?.unstable_sxConfig},h.unstable_sx=function(e){return Bd({sx:e,theme:this})},h.toRuntimeSource=ih,sh(h),h}function lh(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const ch=[...Array(25)].map((e,t)=>{if(0===t)return"none";const r=lh(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function uh(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function dh(e){return"dark"===e?ch:[]}function ph(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 hh=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 fh(e,t,r){!e[t]&&r&&(e[t]=r)}function gh(e){return"string"==typeof e&&e.startsWith("hsl")?fp(e):e}function vh(e,t){`${t}Channel`in e||(e[`${t}Channel`]=pp(gh(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 mh=e=>{try{return e()}catch(e){}};function _h(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=qp({...t,colorSpace:i});return{palette:s,opacity:{...uh(s.mode),...r},overlays:n||dh(s.mode),...o}}({...r,palette:{mode:o,...r?.palette},colorSpace:e}));const{palette:s,...a}=ah({...n,palette:{mode:o,...r?.palette},colorSpace:e});return t[i]={...r,palette:s,opacity:{...uh(o),...r?.opacity},overlays:r?.overlays||dh(o)},a}function yh(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:s=!1,shouldSkipGeneratingVar:a=ph,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")=>Ip(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.`:Ba(21,p));s&&(y="oklch");const w=_h(y,_,b,u,p);g&&!_.light&&_h(y,_,g,void 0,"light"),v&&!_.dark&&_h(y,_,v,void 0,"dark");let S={defaultColorScheme:p,...w,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:_,font:{...Wp(w.typography),...w.font},spacing:(E=u.spacing,"number"==typeof E?`${E}px`:"string"==typeof E||"function"==typeof E||Array.isArray(E)?E:"8px")};var E;Object.keys(S.colorSchemes).forEach(e=>{const t=S.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===_p&&(n=`transparent ${(100*(1-r)).toFixed(0)}%`),e===bp&&(n=`#000 ${(100*r).toFixed(0)}%`),e===Sp&&(n=`#fff ${(100*r).toFixed(0)}%`),`color-mix(in ${y}, ${t}, ${n})`}return e(t,r)}var i;if("light"===t.mode&&(fh(t.common,"background","#fff"),fh(t.common,"onBackground","#000")),"dark"===t.mode&&(fh(t.common,"background","#000"),fh(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){fh(t.Alert,"errorColor",n(bp,t.error.light,.6)),fh(t.Alert,"infoColor",n(bp,t.info.light,.6)),fh(t.Alert,"successColor",n(bp,t.success.light,.6)),fh(t.Alert,"warningColor",n(bp,t.warning.light,.6)),fh(t.Alert,"errorFilledBg",r("palette-error-main")),fh(t.Alert,"infoFilledBg",r("palette-info-main")),fh(t.Alert,"successFilledBg",r("palette-success-main")),fh(t.Alert,"warningFilledBg",r("palette-warning-main")),fh(t.Alert,"errorFilledColor",mh(()=>t.getContrastText(t.error.main))),fh(t.Alert,"infoFilledColor",mh(()=>t.getContrastText(t.info.main))),fh(t.Alert,"successFilledColor",mh(()=>t.getContrastText(t.success.main))),fh(t.Alert,"warningFilledColor",mh(()=>t.getContrastText(t.warning.main))),fh(t.Alert,"errorStandardBg",n(Sp,t.error.light,.9)),fh(t.Alert,"infoStandardBg",n(Sp,t.info.light,.9)),fh(t.Alert,"successStandardBg",n(Sp,t.success.light,.9)),fh(t.Alert,"warningStandardBg",n(Sp,t.warning.light,.9)),fh(t.Alert,"errorIconColor",r("palette-error-main")),fh(t.Alert,"infoIconColor",r("palette-info-main")),fh(t.Alert,"successIconColor",r("palette-success-main")),fh(t.Alert,"warningIconColor",r("palette-warning-main")),fh(t.AppBar,"defaultBg",r("palette-grey-100")),fh(t.Avatar,"defaultBg",r("palette-grey-400")),fh(t.Button,"inheritContainedBg",r("palette-grey-300")),fh(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),fh(t.Chip,"defaultBorder",r("palette-grey-400")),fh(t.Chip,"defaultAvatarColor",r("palette-grey-700")),fh(t.Chip,"defaultIconColor",r("palette-grey-700")),fh(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),fh(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),fh(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),fh(t.LinearProgress,"primaryBg",n(Sp,t.primary.main,.62)),fh(t.LinearProgress,"secondaryBg",n(Sp,t.secondary.main,.62)),fh(t.LinearProgress,"errorBg",n(Sp,t.error.main,.62)),fh(t.LinearProgress,"infoBg",n(Sp,t.info.main,.62)),fh(t.LinearProgress,"successBg",n(Sp,t.success.main,.62)),fh(t.LinearProgress,"warningBg",n(Sp,t.warning.main,.62)),fh(t.Skeleton,"bg",y?n(_p,t.text.primary,.11):`rgba(${r("palette-text-primaryChannel")} / 0.11)`),fh(t.Slider,"primaryTrack",n(Sp,t.primary.main,.62)),fh(t.Slider,"secondaryTrack",n(Sp,t.secondary.main,.62)),fh(t.Slider,"errorTrack",n(Sp,t.error.main,.62)),fh(t.Slider,"infoTrack",n(Sp,t.info.main,.62)),fh(t.Slider,"successTrack",n(Sp,t.success.main,.62)),fh(t.Slider,"warningTrack",n(Sp,t.warning.main,.62));const e=y?n(bp,t.background.default,.6825):Ep(t.background.default,.8);fh(t.SnackbarContent,"bg",e),fh(t.SnackbarContent,"color",mh(()=>y?Vp.text.primary:t.getContrastText(e))),fh(t.SpeedDialAction,"fabHoverBg",Ep(t.background.paper,.15)),fh(t.StepConnector,"border",r("palette-grey-400")),fh(t.StepContent,"border",r("palette-grey-400")),fh(t.Switch,"defaultColor",r("palette-common-white")),fh(t.Switch,"defaultDisabledColor",r("palette-grey-100")),fh(t.Switch,"primaryDisabledColor",n(Sp,t.primary.main,.62)),fh(t.Switch,"secondaryDisabledColor",n(Sp,t.secondary.main,.62)),fh(t.Switch,"errorDisabledColor",n(Sp,t.error.main,.62)),fh(t.Switch,"infoDisabledColor",n(Sp,t.info.main,.62)),fh(t.Switch,"successDisabledColor",n(Sp,t.success.main,.62)),fh(t.Switch,"warningDisabledColor",n(Sp,t.warning.main,.62)),fh(t.TableCell,"border",n(Sp,n(_p,t.divider,1),.88)),fh(t.Tooltip,"bg",n(_p,t.grey[700],.92))}if("dark"===t.mode){fh(t.Alert,"errorColor",n(Sp,t.error.light,.6)),fh(t.Alert,"infoColor",n(Sp,t.info.light,.6)),fh(t.Alert,"successColor",n(Sp,t.success.light,.6)),fh(t.Alert,"warningColor",n(Sp,t.warning.light,.6)),fh(t.Alert,"errorFilledBg",r("palette-error-dark")),fh(t.Alert,"infoFilledBg",r("palette-info-dark")),fh(t.Alert,"successFilledBg",r("palette-success-dark")),fh(t.Alert,"warningFilledBg",r("palette-warning-dark")),fh(t.Alert,"errorFilledColor",mh(()=>t.getContrastText(t.error.dark))),fh(t.Alert,"infoFilledColor",mh(()=>t.getContrastText(t.info.dark))),fh(t.Alert,"successFilledColor",mh(()=>t.getContrastText(t.success.dark))),fh(t.Alert,"warningFilledColor",mh(()=>t.getContrastText(t.warning.dark))),fh(t.Alert,"errorStandardBg",n(bp,t.error.light,.9)),fh(t.Alert,"infoStandardBg",n(bp,t.info.light,.9)),fh(t.Alert,"successStandardBg",n(bp,t.success.light,.9)),fh(t.Alert,"warningStandardBg",n(bp,t.warning.light,.9)),fh(t.Alert,"errorIconColor",r("palette-error-main")),fh(t.Alert,"infoIconColor",r("palette-info-main")),fh(t.Alert,"successIconColor",r("palette-success-main")),fh(t.Alert,"warningIconColor",r("palette-warning-main")),fh(t.AppBar,"defaultBg",r("palette-grey-900")),fh(t.AppBar,"darkBg",r("palette-background-paper")),fh(t.AppBar,"darkColor",r("palette-text-primary")),fh(t.Avatar,"defaultBg",r("palette-grey-600")),fh(t.Button,"inheritContainedBg",r("palette-grey-800")),fh(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),fh(t.Chip,"defaultBorder",r("palette-grey-700")),fh(t.Chip,"defaultAvatarColor",r("palette-grey-300")),fh(t.Chip,"defaultIconColor",r("palette-grey-300")),fh(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),fh(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),fh(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),fh(t.LinearProgress,"primaryBg",n(bp,t.primary.main,.5)),fh(t.LinearProgress,"secondaryBg",n(bp,t.secondary.main,.5)),fh(t.LinearProgress,"errorBg",n(bp,t.error.main,.5)),fh(t.LinearProgress,"infoBg",n(bp,t.info.main,.5)),fh(t.LinearProgress,"successBg",n(bp,t.success.main,.5)),fh(t.LinearProgress,"warningBg",n(bp,t.warning.main,.5)),fh(t.Skeleton,"bg",y?n(_p,t.text.primary,.13):`rgba(${r("palette-text-primaryChannel")} / 0.13)`),fh(t.Slider,"primaryTrack",n(bp,t.primary.main,.5)),fh(t.Slider,"secondaryTrack",n(bp,t.secondary.main,.5)),fh(t.Slider,"errorTrack",n(bp,t.error.main,.5)),fh(t.Slider,"infoTrack",n(bp,t.info.main,.5)),fh(t.Slider,"successTrack",n(bp,t.success.main,.5)),fh(t.Slider,"warningTrack",n(bp,t.warning.main,.5));const e=y?n(Sp,t.background.default,.985):Ep(t.background.default,.98);fh(t.SnackbarContent,"bg",e),fh(t.SnackbarContent,"color",mh(()=>y?jp.text.primary:t.getContrastText(e))),fh(t.SpeedDialAction,"fabHoverBg",Ep(t.background.paper,.15)),fh(t.StepConnector,"border",r("palette-grey-600")),fh(t.StepContent,"border",r("palette-grey-600")),fh(t.Switch,"defaultColor",r("palette-grey-300")),fh(t.Switch,"defaultDisabledColor",r("palette-grey-600")),fh(t.Switch,"primaryDisabledColor",n(bp,t.primary.main,.55)),fh(t.Switch,"secondaryDisabledColor",n(bp,t.secondary.main,.55)),fh(t.Switch,"errorDisabledColor",n(bp,t.error.main,.55)),fh(t.Switch,"infoDisabledColor",n(bp,t.info.main,.55)),fh(t.Switch,"successDisabledColor",n(bp,t.success.main,.55)),fh(t.Switch,"warningDisabledColor",n(bp,t.warning.main,.55)),fh(t.TableCell,"border",n(bp,n(_p,t.divider,1),.68)),fh(t.Tooltip,"bg",n(_p,t.grey[700],.92))}vh(t.background,"default"),vh(t.background,"paper"),vh(t.common,"background"),vh(t.common,"onBackground"),vh(t,"divider"),Object.keys(t).forEach(e=>{const r=t[e];"tonalOffset"!==e&&r&&"object"==typeof r&&(r.main&&fh(t[e],"mainChannel",pp(gh(r.main))),r.light&&fh(t[e],"lightChannel",pp(gh(r.light))),r.dark&&fh(t[e],"darkChannel",pp(gh(r.dark))),r.contrastText&&fh(t[e],"contrastTextChannel",pp(gh(r.contrastText))),"text"===e&&(vh(t[e],"primary"),vh(t[e],"secondary")),"action"===e&&(r.active&&vh(t[e],"active"),r.selected&&vh(t[e],"selected")))})}),S=t.reduce((e,t)=>Ru(e,t),S);const x={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:hh(S),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}=Rp(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}=Rp(r,t);h=Ru(h,o),f[e]={css:i,vars:n}}),g){const{css:e,vars:r,varsWithDefaults:n}=Rp(g,t);h=Ru(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=Ru(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}}}(S,x);return S.vars=k,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=P,S.generateStyleSheets=O,S.generateSpacing=function(){return dd(u.spacing,od(this))},S.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),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...jd,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Bd({sx:e,theme:this})},S.toRuntimeSource=ih,S}function bh(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...!0!==r&&r,palette:qp({...!0===r?{}:r.palette,mode:t})})}function wh(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 ah(e,...t);let n=r;"palette"in e||c[a]&&(!0!==c[a]?n=c[a].palette:"dark"===a&&(n={mode:"dark"}));const i=ah({...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},bh(i,"dark",c.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:i.palette},bh(i,"light",c.light)),i}return r||"light"in c||"light"!==a||(c.light=!0),yh({...s,colorSchemes:c,defaultColorScheme:a,..."boolean"!=typeof n&&n},...t)}const Sh=wh();function Eh(){const t=Wd(Sh);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t[Va]||t}function xh(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const kh=e=>xh(e)&&"classes"!==e,Ph=function(e={}){const{themeId:t,defaultTheme:r=ep,rootShouldForwardProp:n=tp,slotShouldForwardProp:i=tp}=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!==Bd));const{name:r,slot:s,skipVariantsResolver:a,skipSx:l,overridesResolver:c=np(ap(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=tp;"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=wu(e,{shouldForwardProp:f,label:sp(r,s),...u}),v=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return ip(t,e,t.theme.modularCssLayers?d:void 0)};if(Iu(e)){const t=Qd(e);return function(e){return t.variants?ip(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?rp(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]=ip(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?op(e,n,[],e.theme.modularCssLayers?"theme":void 0):null}),h||a.push(Bd),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}${Gu(t||"")}`;return`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Jd(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Fu.ForwardRef:return Zd(e,e.render,"ForwardRef");case Fu.Memo:return Zd(e,e.type,"memo");default:return}}}(r)})`}(r,s,e)),u};return g.withConfig&&(m.withConfig=g.withConfig),m}}({themeId:Va,defaultTheme:Sh,rootShouldForwardProp:kh});function Oh(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}const Mh=function(e){let t,r;return function(n){let i=t;return void 0!==i&&n.theme===r||(Fp.theme=n.theme,i=Qd(e(Fp)),t=i,r=n.theme),i}};function Ah(e){return Ap(e)}function Th(e){return Kd("MuiSvgIcon",e)}"production"!==process.env.NODE_ENV&&(bu.node,bu.object.isRequired),Xd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $h=Ph("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Gu(r.color)}`],t[`fontSize${Gu(r.fontSize)}`]]}})(Mh(({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}}]}))),Ch=e.forwardRef(function(t,r){const n=Ah({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:l="inherit",component:u="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:f,viewBox:g="0 0 24 24",...v}=n,m=e.isValidElement(s)&&"svg"===s.type,_={...n,color:l,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:g,hasSvgAsChild:m},y={};h||(y.viewBox=g);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return Dp({root:["root","inherit"!==t&&`color${Gu(t)}`,`fontSize${Gu(r)}`]},Th,n)})(_);return i($h,{as:u,className:c(b.root,a),focusable:"false",color:p,"aria-hidden":!f||void 0,role:f?"img":void 0,ref:r,...y,...v,...m&&s.props,ownerState:_,children:[m?s.props.children:s,f?o("title",{children:f}):null]})});function Fh(t,r){function n(e,n){return o(Ch,{"data-testid":"production"!==process.env.NODE_ENV?`${r}Icon`:void 0,ref:n,...e,children:t})}return"production"!==process.env.NODE_ENV&&(n.displayName=`${r}Icon`),n.muiName=Ch.muiName,e.memo(e.forwardRef(n))}function Ih(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function Nh(e){return e&&e.ownerDocument||document}function Rh(e){return Nh(e).defaultView||window}function Dh(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Lh(t){const r=e.useRef(t);return cp(()=>{r.current=t}),e.useRef((...e)=>(0,r.current)(...e)).current}function jh(...t){const r=e.useRef(void 0),n=e.useCallback(e=>{const r=t.map(t=>{if(null==t)return null;if("function"==typeof t){const r=t,n=r(e);return"function"==typeof n?n:()=>{r(null)}}return t.current=e,()=>{t.current=null}});return()=>{r.forEach(e=>e?.())}},t);return e.useMemo(()=>t.every(e=>null==e)?null:e=>{r.current&&(r.current(),r.current=void 0),null!=e&&(r.current=n(e))},t)}function Bh(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=c(n?.className,i?.className,o?.className),a=r(o,i);return{...i,...o,...a,...!!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=c(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]]}}}function Vh(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...r){return e(...r)||t(...r)}}function Uh(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 zh(e,t){return zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zh(e,t)}function qh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zh(e,t)}"production"!==process.env.NODE_ENV&&(Ch.propTypes={children:bu.node,classes:bu.object,className:bu.string,color:bu.oneOfType([bu.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),bu.string]),component:bu.elementType,fontSize:bu.oneOfType([bu.oneOf(["inherit","large","medium","small"]),bu.string]),htmlColor:bu.string,inheritViewBox:bu.bool,shapeRendering:bu.string,sx:bu.oneOfType([bu.arrayOf(bu.oneOfType([bu.func,bu.object,bu.bool])),bu.func,bu.object]),titleAccess:bu.string,viewBox:bu.string}),Ch.muiName="SvgIcon";var Wh=!1,Hh="production"!==process.env.NODE_ENV?bu.oneOfType([bu.number,bu.shape({enter:bu.number,exit:bu.number,appear:bu.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&bu.oneOfType([bu.string,bu.shape({enter:bu.string,exit:bu.string,active:bu.string}),bu.shape({enter:bu.string,enterDone:bu.string,enterActive:bu.string,exit:bu.string,exitDone:bu.string,exitActive:bu.string})]);var Gh=t.createContext(null),Yh="unmounted",Kh="exited",Xh="entering",Jh="entered",Zh="exiting",Qh=function(e){function r(t,r){var n;n=e.call(this,t,r)||this;var i,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(i=Kh,n.appearStatus=Xh):i=Jh:i=t.unmountOnExit||t.mountOnEnter?Yh:Kh,n.state={status:i},n.nextCallback=null,n}qh(r,e),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Yh?{status:Kh}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Xh&&r!==Jh&&(t=Xh):r!==Xh&&r!==Jh||(t=Zh)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Xh){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kh&&this.setState({status:Yh})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[a.findDOMNode(this),n],o=i[0],s=i[1],l=this.getTimeouts(),c=n?l.appear:l.enter;!e&&!r||Wh?this.safeSetState({status:Jh},function(){t.props.onEntered(o)}):(this.props.onEnter(o,s),this.safeSetState({status:Xh},function(){t.props.onEntering(o,s),t.onTransitionEnd(c,function(){t.safeSetState({status:Jh},function(){t.props.onEntered(o,s)})})}))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!Wh?(this.props.onExit(n),this.safeSetState({status:Zh},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:Kh},function(){e.props.onExited(n)})})})):this.safeSetState({status:Kh},function(){e.props.onExited(n)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.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},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Yh)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=Uh(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(Gh.Provider,{value:null},"function"==typeof n?n(e,i):t.cloneElement(t.Children.only(n),i))},r}(t.Component);function ef(){}Qh.contextType=Gh,Qh.propTypes="production"!==process.env.NODE_ENV?{nodeRef:bu.shape({current:"undefined"==typeof Element?bu.any:function(e,t,r,n,i,o){var s=e[t];return bu.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,o)}}),children:bu.oneOfType([bu.func.isRequired,bu.element.isRequired]).isRequired,in:bu.bool,mountOnEnter:bu.bool,unmountOnExit:bu.bool,appear:bu.bool,enter:bu.bool,exit:bu.bool,timeout:function(e){var t=Hh;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:bu.func,onEnter:bu.func,onEntering:bu.func,onEntered:bu.func,onExit:bu.func,onExiting:bu.func,onExited:bu.func}:{},Qh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ef,onEntering:ef,onEntered:ef,onExit:ef,onExiting:ef,onExited:ef},Qh.UNMOUNTED=Yh,Qh.EXITED=Kh,Qh.ENTERING=Xh,Qh.ENTERED=Jh,Qh.EXITING=Zh;const tf=e=>e.scrollTop;function rf(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 nf(e){return"string"==typeof e}function of(e,t,r){return void 0===e||nf(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function sf(e,t,r){return"function"==typeof e?e(t,r):e}function af(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 lf(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 cf(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const e=c(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=af({...i,...n}),a=lf(n),l=lf(i),u=t(s),d=c(u?.className,r?.className,o,i?.className,n?.className),p={...u?.style,...r?.style,...i?.style,...n?.style},h={...u,...r,...l,...a};return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:u.ref}}function uf(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=sf(d[e],i),{props:{component:g,...v},internalRef:m}=cf({className:r,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:f}),_=jh(m,f?.ref,t.ref),y="root"===e?g||c:g;return[h,of(h,{..."root"===e&&!c&&!u[e]&&s,..."root"!==e&&!u[e]&&s,...v,...y&&!a&&{as:y},...y&&a&&{component:y},ref:_},i)]}function df(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 pf(e,t,r,n){return void 0===e[t]?null:df(e,t,r,n)}function hf(){return null}pf.isRequired=df,hf.isRequired=hf;const ff="production"===process.env.NODE_ENV?hf:pf;function gf(e){return Kd("MuiPaper",e)}Xd("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 vf=Ph("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}`]]}})(Mh(({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)"}}]}))),mf=e.forwardRef(function(e,t){const r=Ah({props:e,name:"MuiPaper"}),n=Eh(),{className:i,component:s="div",elevation:a=1,square:l=!1,variant:u="elevation",...d}=r,p={...r,component:s,elevation:a,square:l,variant:u},h=(e=>{const{square:t,elevation:r,variant:n,classes:i}=e;return Dp({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},gf,i)})(p);return"production"!==process.env.NODE_ENV&&void 0===n.shadows[a]&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join("\n")),o(vf,{as:s,ownerState:p,className:c(h.root,i),ref:t,...d,style:{..."elevation"===u&&{"--Paper-shadow":(n.vars||n).shadows[a],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[a]},...!n.vars&&"dark"===n.palette.mode&&{"--Paper-overlay":`linear-gradient(${mp("#fff",lh(a))}, ${mp("#fff",lh(a))})`}},...d.style}})});function _f(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 yf(t){return parseInt(e.version,10)>=19?t?.props?.ref||null:t?.ref||null}"production"!==process.env.NODE_ENV&&(mf.propTypes={children:bu.node,classes:bu.object,className:bu.string,component:bu.elementType,elevation:Vh(ff,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:bu.bool,style:bu.object,sx:bu.oneOfType([bu.arrayOf(bu.oneOfType([bu.func,bu.object,bu.bool])),bu.func,bu.object]),variant:bu.oneOfType([bu.oneOf(["elevation","outlined"]),bu.string])});const bf=e.forwardRef(function(t,r){const{children:n,container:i,disablePortal:o=!1}=t,[a,l]=e.useState(null),c=jh(e.isValidElement(n)?yf(n):null,r);if(cp(()=>{o||l(function(e){return"function"==typeof e?e():e}(i)||document.body)},[i,o]),cp(()=>{if(a&&!o)return Dh(r,a),()=>{Dh(r,null)}},[r,a,o]),o){if(e.isValidElement(n)){const t={ref:c};return e.cloneElement(n,t)}return n}return a?s.createPortal(n,a):a});function wf(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&&(bf.propTypes={children:bu.node,container:bu.oneOfType([_f,bu.func]),disablePortal:bu.bool}),"production"!==process.env.NODE_ENV&&(bf.propTypes=kp(bf.propTypes));const Sf=Vh(bu.element,wf);Sf.isRequired=Vh(bu.element.isRequired,wf);const Ef={entering:{opacity:1},entered:{opacity:1}},xf=e.forwardRef(function(t,r){const n=Eh(),i={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:_=i,TransitionComponent:y=Qh,...b}=t,w=e.useRef(null),S=jh(w,yf(l),r),E=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},x=E(h),k=E((e,t)=>{tf(e);const r=rf({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=E(p),O=E(v),M=E(e=>{const t=rf({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)}),A=E(g);return o(y,{appear:a,in:u,nodeRef:w,onEnter:k,onEntered:P,onEntering:x,onExit:M,onExited:A,onExiting:O,addEndListener:e=>{s&&s(w.current,e)},timeout:_,...b,children:(t,{ownerState:r,...n})=>e.cloneElement(l,{style:{opacity:0,visibility:"exited"!==t||u?void 0:"hidden",...Ef[t],...m,...l.props.style},ref:S,...n})})});function kf(e){return Kd("MuiBackdrop",e)}"production"!==process.env.NODE_ENV&&(xf.propTypes={addEndListener:bu.func,appear:bu.bool,children:Sf.isRequired,easing:bu.oneOfType([bu.shape({enter:bu.string,exit:bu.string}),bu.string]),in:bu.bool,onEnter:bu.func,onEntered:bu.func,onEntering:bu.func,onExit:bu.func,onExited:bu.func,onExiting:bu.func,style:bu.object,timeout:bu.oneOfType([bu.number,bu.shape({appear:bu.number,enter:bu.number,exit:bu.number})])}),Xd("MuiBackdrop",["root","invisible"]);const Pf=Ph("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"}}]}),Of=e.forwardRef(function(e,t){const r=Ah({props:e,name:"MuiBackdrop"}),{children:n,className:i,component:s="div",invisible:a=!1,open:l,components:u={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:f,transitionDuration:g,...v}=r,m={...r,component:s,invisible:a},_=(e=>{const{classes:t,invisible:r}=e;return Dp({root:["root",r&&"invisible"]},kf,t)})(m),y={component:s,slots:{transition:f,root:u.Root,...h},slotProps:{...d,...p}},[b,w]=uf("root",{elementType:Pf,externalForwardedProps:y,className:c(_.root,i),ownerState:m}),[S,E]=uf("transition",{elementType:xf,externalForwardedProps:y,ownerState:m});return o(S,{in:l,timeout:g,...v,...E,children:o(b,{"aria-hidden":!0,...w,classes:_,ref:t,children:n})})});function Mf(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Af(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Tf(e){return parseInt(Rh(e).getComputedStyle(e).paddingRight,10)||0}function $f(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&&Af(e,i)})}function Cf(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function Ff(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Nh(e);return t.body===e?Rh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Mf(Rh(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Tf(n)+e}px`;const t=Nh(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Tf(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=Nh(n).body;else{const t=n.parentElement,r=Rh(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&&(Of.propTypes={children:bu.node,classes:bu.object,className:bu.string,component:bu.elementType,components:bu.shape({Root:bu.elementType}),componentsProps:bu.shape({root:bu.object}),invisible:bu.bool,open:bu.bool.isRequired,slotProps:bu.shape({root:bu.oneOfType([bu.func,bu.object]),transition:bu.oneOfType([bu.func,bu.object])}),slots:bu.shape({root:bu.elementType,transition:bu.elementType}),sx:bu.oneOfType([bu.arrayOf(bu.oneOfType([bu.func,bu.object,bu.bool])),bu.func,bu.object]),TransitionComponent:bu.elementType,transitionDuration:bu.oneOfType([bu.number,bu.shape({appear:bu.number,enter:bu.number,exit:bu.number})])});function If(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}const Nf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rf(e){const t=[],r=[];return Array.from(e.querySelectorAll(Nf)).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 Df(){return!0}function Lf(t){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:a=!1,getTabbable:l=Rf,isEnabled:c=Df,open:u}=t,d=e.useRef(!1),p=e.useRef(null),h=e.useRef(null),f=e.useRef(null),g=e.useRef(null),v=e.useRef(!1),m=e.useRef(null),_=jh(yf(r),m),y=e.useRef(null);e.useEffect(()=>{u&&m.current&&(v.current=!n)},[n,u]),e.useEffect(()=>{if(!u||!m.current)return;const e=If(Nh(m.current));return m.current.contains(e)||(m.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")),m.current.setAttribute("tabIndex","-1")),v.current&&m.current.focus()),()=>{a||(f.current&&f.current.focus&&(d.current=!0,f.current.focus()),f.current=null)}},[u]),e.useEffect(()=>{if(!u||!m.current)return;const e=Nh(m.current),t=If(e),r=e=>{y.current=e,!s&&c()&&"Tab"===e.key&&t===m.current&&e.shiftKey&&(d.current=!0,h.current&&h.current.focus())},n=()=>{const t=m.current;if(null===t)return;const r=If(e);if(!e.hasFocus()||!c()||d.current)return void(d.current=!1);if(t.contains(r))return;if(s&&r!==p.current&&r!==h.current)return;if(r!==g.current)g.current=null;else if(null!==g.current)return;if(!v.current)return;let n=[];if(r!==p.current&&r!==h.current||(n=l(m.current)),n.length>0){const e=Boolean(y.current?.shiftKey&&"Tab"===y.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=If(e);t&&"BODY"===t.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",r,!0)}},[n,s,a,c,u,l]);const b=e=>{null===f.current&&(f.current=e.relatedTarget),v.current=!0};return i(e.Fragment,{children:[o("div",{tabIndex:u?0:-1,onFocus:b,ref:p,"data-testid":"sentinelStart"}),e.cloneElement(r,{ref:_,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),v.current=!0,g.current=e.target;const t=r.props.onFocus;t&&t(e)}}),o("div",{tabIndex:u?0:-1,onFocus:b,ref:h,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(Lf.propTypes={children:Sf,disableAutoFocus:bu.bool,disableEnforceFocus:bu.bool,disableRestoreFocus:bu.bool,getTabbable:bu.func,isEnabled:bu.func,open:bu.bool.isRequired}),"production"!==process.env.NODE_ENV&&(Lf.propTypes=kp(Lf.propTypes));const jf=()=>{},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&&Af(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);$f(t,e.mount,e.modalRef,n,!0);const i=Cf(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=Cf(this.containers,t=>t.modals.includes(e)),n=this.containers[r];n.restore||(n.restore=Ff(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Cf(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&&Af(e.modalRef,t),$f(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&&Af(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Vf(t){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=t,p=e.useRef({}),h=e.useRef(null),f=e.useRef(null),g=jh(f,d),[v,m]=e.useState(!u),_=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(y=!1);const b=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),w=()=>{Bf.mount(b(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},S=Lh(()=>{const e=function(e){return"function"==typeof e?e():e}(r)||Nh(h.current).body;Bf.add(b(),e),f.current&&w()}),E=()=>Bf.isTopModal(b()),x=Lh(e=>{h.current=e,e&&(u&&E()?w():f.current&&Af(f.current,y))}),k=e.useCallback(()=>{Bf.remove(b(),y)},[y]);e.useEffect(()=>()=>{k()},[k]),e.useEffect(()=>{u?S():_&&o||k()},[u,k,_,o,S]);const P=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},O=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(e={})=>{const r=af(t);delete r.onTransitionEnter,delete r.onTransitionExited;const n={...r,...e};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:Oh(()=>{m(!1),s&&s()},l?.props.onEnter??jf),onExited:Oh(()=>{m(!0),a&&a(),o&&k()},l?.props.onExited??jf)}),rootRef:g,portalRef:x,isTopModal:E,exited:v,hasTransition:_}}function Uf(e){return Kd("MuiModal",e)}Xd("MuiModal",["root","hidden","backdrop"]);const zf=Ph("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Mh(({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"}}]}))),qf=Ph(Of,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Wf=e.forwardRef(function(t,r){const n=Ah({name:"MuiModal",props:t}),{BackdropComponent:s=qf,BackdropProps:a,classes:l,className:u,closeAfterTransition:d=!1,children:p,container:h,component:f,components:g={},componentsProps:v={},disableAutoFocus:m=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:y=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:E=!1,keepMounted:x=!1,onClose:k,onTransitionEnter:P,onTransitionExited:O,open:M,slotProps:A={},slots:T={},theme:$,...C}=n,F={...n,closeAfterTransition:d,disableAutoFocus:m,disableEnforceFocus:_,disableEscapeKeyDown:y,disablePortal:b,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:E,keepMounted:x},{getRootProps:I,getBackdropProps:N,getTransitionProps:R,portalRef:D,isTopModal:L,exited:j,hasTransition:B}=Vf({...F,rootRef:r}),V={...F,exited:j},U=(e=>{const{open:t,exited:r,classes:n}=e;return Dp({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Uf,n)})(V),z={};if(void 0===p.props.tabIndex&&(z.tabIndex="-1"),B){const{onEnter:e,onExited:t}=R();z.onEnter=e,z.onExited=t}const q={slots:{root:g.Root,backdrop:g.Backdrop,...T},slotProps:{...v,...A}},[W,H]=uf("root",{ref:r,elementType:zf,externalForwardedProps:{...q,...C,component:f},getSlotProps:I,ownerState:V,className:c(u,U?.root,!V.open&&V.exited&&U?.hidden)}),[G,Y]=uf("backdrop",{ref:a?.ref,elementType:s,externalForwardedProps:q,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:e=>N({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:c(a?.className,U?.backdrop),ownerState:V});return x||M||B&&!j?o(bf,{ref:D,container:h,disablePortal:b,children:i(W,{...H,children:[!E&&s?o(G,{...Y}):null,o(Lf,{disableEnforceFocus:_,disableAutoFocus:m,disableRestoreFocus:w,isEnabled:L,open:M,children:e.cloneElement(p,z)})]})}):null});var Hf,Gf,Yf,Kf,Xf,Jf;"production"!==process.env.NODE_ENV&&(Wf.propTypes={BackdropComponent:bu.elementType,BackdropProps:bu.object,children:Sf.isRequired,classes:bu.object,className:bu.string,closeAfterTransition:bu.bool,component:bu.elementType,components:bu.shape({Backdrop:bu.elementType,Root:bu.elementType}),componentsProps:bu.shape({backdrop:bu.oneOfType([bu.func,bu.object]),root:bu.oneOfType([bu.func,bu.object])}),container:bu.oneOfType([_f,bu.func]),disableAutoFocus:bu.bool,disableEnforceFocus:bu.bool,disableEscapeKeyDown:bu.bool,disablePortal:bu.bool,disableRestoreFocus:bu.bool,disableScrollLock:bu.bool,hideBackdrop:bu.bool,keepMounted:bu.bool,onClose:bu.func,onTransitionEnter:bu.func,onTransitionExited:bu.func,open:bu.bool.isRequired,slotProps:bu.shape({backdrop:bu.oneOfType([bu.func,bu.object]),root:bu.oneOfType([bu.func,bu.object])}),slots:bu.shape({backdrop:bu.elementType,root:bu.elementType}),sx:bu.oneOfType([bu.arrayOf(bu.oneOfType([bu.func,bu.object,bu.bool])),bu.func,bu.object])}),function(e){e.Male="male",e.Female="female"}(Hf||(Hf={})),function(e){e.Name="name",e.Email="email",e.Height="height",e.Gender="gender"}(Gf||(Gf={})),function(e){e.Body="body",e.Face="face",e.SizeFit="sizeFit",e.Ready="ready"}(Yf||(Yf={})),function(e){e.BodyScan="bodyScan",e.FaceScan="faceScan",e.SizeFit="sizeFit"}(Kf||(Kf={})),function(e){e.Full="full",e.Body="body",e.Face="face"}(Xf||(Xf={})),function(e){e.English="English",e.Hindi="Hindi",e.German="German",e.French="French",e.Spanish="Spanish",e.Arabic="Arabic",e.Italian="Italian"}(Jf||(Jf={}));export{Nh as $,Dp as A,sf as B,cf as C,of as D,Dc as E,Rh as F,cp as G,Ih as H,nf as I,Mh as J,Gu as K,Ba as L,Fh as M,Ru as N,kh as O,bu as P,Qh as Q,Eh as R,yf as S,Pc as T,rf as U,tf as V,Sf as W,Mf as X,Fu as Y,If as Z,qh as _,ec as a,mf as a0,uf as a1,Bh as a2,Wf as a3,ff as a4,_f as a5,Op as a6,Cp as a7,xh as a8,Xs as a9,Hf as aa,Ys as ab,Gf as ac,Yf as ad,Xf as ae,Jf as af,Iu as ag,jd as ah,wu as ai,Bd as aj,Gd as ak,wh as al,xf as am,Of as an,Cs as ao,$s as ap,oa as aq,Ts as ar,ea as as,na as at,ra as au,Zs as av,ta as aw,ia as ax,Qs as ay,Oc as b,Ic as c,Sc as d,Wd as e,Eu as f,Zl as g,Js as h,Ks as i,Va as j,Sh as k,Ua as l,Uh as m,Gh as n,Vh as o,c as p,Xd as q,Ql as r,bc as s,Ah as t,Ec as u,Ph as v,kc as w,Kd as x,jh as y,Lh as z};
32
+ //# sourceMappingURL=enums-VMt0tBVG.js.map