PageSourceSearch

https://inheritly.ai/assets/index-DAGNfcS3.js

js inheritly.ai collected 2026-10-05 13:52:13 UTC 608,989 bytes, 15 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/terms-YwRh7nBM.js","assets/Footer-DxkNCJM_.js","assets/referral-CTsmCnZj.js","assets/Button-F2QNtZet.js","assets/privacy-CYhLSggP.js","assets/cookies-BSeaHLIH.js","assets/index-oqzXtx7A.js"])))=>i.map(i=>d[i]);
2function tC(e,t){for(var i=0;i<t.length;i++){const s=t[i];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const u=Object.getOwnPropertyDescriptor(s,o);u&&Object.defineProperty(e,o,u.get?u:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(o){if(o.ep)return;o.ep=!0;const u=i(o);fetch(o.href,u)}})();function y1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jh={exports:{}},Io={};var K0;function nC(){if(K0)return Io;K0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(s,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var f in o)f!=="key"&&(u[f]=o[f])}else u=o;return o=u.ref,{$$typeof:e,type:s,key:c,ref:o!==void 0?o:null,props:u}}return Io.Fragment=t,Io.jsx=i,Io.jsxs=i,Io}var X0;function iC(){return X0||(X0=1,Jh.exports=nC()),Jh.exports}var ee=iC(),G=typeof window<"u"?window:void 0,zt=typeof globalThis<"u"?globalThis:G;typeof self>"u"&&(zt.self=zt),typeof File>"u"&&(zt.File=function(){});var Mn=zt?.navigator,he=zt?.document,Gt=zt?.location,nv=zt?.fetch,iv=zt!=null&&zt.XMLHttpRequest&&"withCredentials"in new zt.XMLHttpRequest?zt.XMLHttpRequest:void 0,Q0=zt?.AbortController,rC=zt?.CompressionStream,fn=Mn?.userAgent,Ee=G??{},Z0="1.391.9",Et={DEBUG:!1,LIB_VERSION:Z0,LIB_NAME:"web",JS_SDK_VERSION:Z0};function J0(e,t,i,s,o,u,c){try{var f=e[u](c),h=f.value}catch(p){return void i(p)}f.done?t(h):Promise.resolve(h).then(s,o)}function Pt(e){return function(){var t=this,i=arguments;return new Promise((function(s,o){var u=e.apply(t,i);function c(h){J0(u,s,o,c,f,"next",h)}function f(h){J0(u,s,o,c,f,"throw",h)}c(void 0)}))}}function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ae.apply(null,arguments)}function _1(e,t){if(e==null)return{};var i={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;i[s]=e[s]}return i}var sC=e=>{if(typeof e!="string")return e;try{return JSON.parse(e)}catch{return e}};function aC(e){return typeof e=="string"||e}function oC(e){return typeof e=="string"?e:void 0}var Go,Ii=(function(e){return e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.EnablePersonProcessing="enable_person_processing",e.PersonMode="person_mode",e.FeatureFlagDetails="feature_flag_details",e.FeatureFlags="feature_flags",e.FeatureFlagPayloads="feature_flag_payloads",e.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",e.BootstrapFeatureFlags="bootstrap_feature_flags",e.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.LogsQueue="logs_queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionStartTimestamp="session_start_timestamp",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties",e.InstalledAppBuild="installed_app_build",e.InstalledAppVersion="installed_app_version",e.SessionReplay="session_replay",e.SurveyLastSeenDate="survey_last_seen_date",e.SurveysSeen="surveys_seen",e.Surveys="surveys",e.RemoteConfig="remote_config",e.FlagsEndpointWasHit="flags_endpoint_was_hit",e.DeviceId="device_id",e})({}),W0=(function(e){return e.GZipJS="gzip-js",e.Base64="base64",e})({}),lC=["$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"],uC=["token"],b1="NativeGzipValidationError",rv=e=>e.length>=2&&e[0]===31&&e[1]===139,eb=e=>!(!e||typeof e!="object")&&("name"in e?String(e.name):"")==="NotReadableError",fc=e=>
2{var t=new Error("Native gzip produced invalid output: "+e);throw t.name=b1,t},cC=(function(){var e=Pt((function*(t,i){18>t.size&&fc("too-short");var s=new Uint8Array(yield t.slice(0,10).arrayBuffer());rv(s)&&s[2]===8||fc("invalid-header");var o=new DataView(yield t.slice(t.size-8).arrayBuffer());o.getUint32(0,!0)!==(c=>{for(var f=(()=>{if(Go)return Go;Go=[];for(var g=0;256>g;g++){for(var m=g,y=0;8>y;y++)m=1&m?3988292384^m>>>1:m>>>1;Go[g]=m>>>0}return Go})(),h=4294967295,p=0;c.length>p;p++)h=f[255&(h^c[p])]^h>>>8;return(4294967295^h)>>>0})(i)&&fc("invalid-crc");var u=i.length>>>0;o.getUint32(4,!0)!==u&&fc("invalid-size")}));return function(t,i){return e.apply(this,arguments)}})();function sv(){return sv=Pt((function*(e,t,i){t===void 0&&(t=!0);try{var s=new TextEncoder().encode(e),o=new CompressionStream("gzip"),u=o.writable.getWriter(),c=u.write(s).then((()=>u.close())).catch((function(){var p=Pt((function*(g){try{yield u.abort(g)}catch{}throw g}));return function(g){return p.apply(this,arguments)}})()),f=new Response(o.readable).blob(),[h]=yield Promise.all([f,c]);return yield cC(h,s),h}catch(p){if(i!=null&&i.rethrow)throw p;return t&&console.error("Failed to gzip compress data",p),null}})),sv.apply(this,arguments)}var fC=["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"],tb=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var i=e.toLowerCase();return fC.concat(t).some((s=>{var o=s.toLowerCase();return i.indexOf(o)!==-1}))};function Me(e,t){return e.indexOf(t)!==-1}var wf=function(e){return e.trim()},av=function(e){return e.replace(/^\$/,"")},S1=Object.prototype,x1=S1.hasOwnProperty,Ef=S1.toString,ze=Array.isArray||function(e){return Ef.call(e)==="[object Array]"},Gi=e=>typeof e=="function",dt=e=>e===Object(e)&&!ze(e),Dr=e=>{if(dt(e)){for(var t in e)if(x1.call(e,t))return!1;return!0}return!1},fe=e=>e===void 0,ut=e=>Ef.call(e)=="[object String]",ov=e=>ut(e)&&e.trim().length===0,en=e=>e===null,Ne=e=>fe(e)||en(e),tn=e=>Ef.call(e)=="[object Number]"&&e==e,Fi=e=>tn(e)&&e>0,pi=e=>Ef.call(e)==="[object Boolean]",dC=e=>e instanceof FormData,hC=e=>Me(lC,e),pC=e=>Me(uC,e);function w1(e){return e===null||typeof e!="object"}function Uc(e,t){return{}.toString.call(e)==="[object "+t+"]"}function og(e){return typeof Event<"u"&&(function(t,i){try{return t instanceof i}catch{return!1}})(e,Event)}var vC=[!0,"true",1,"1","yes"],Wh=e=>Me(vC,e),gC=[!1,"false",0,"0","no"];function hi(e,t,i,s,o){return t>i&&(s.warn("min cannot be greater than max."),t=i),tn(e)?e>i?(s.warn(" cannot be  greater than max: "+i+". Using max value instead."),i):t>e?(s.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(s.warn(" must be a number. using max or fallback. max: "+i+", fallback: "+o),hi(o||i,t,i,s))}class mC{constructor(t){this.$t={},this.Gt=t.Gt,this.Zt=hi(t.bucketSize,0,100,t.Qt),this.Jt=hi(t.refillRate,0,this.Zt,t.Qt),this.Kt=hi(t.refillInterval,0,864e5,t.Qt)}Yt(t,i){var s=Math.floor((i-t.lastAccess)/this.Kt);s>0&&(t.tokens=Math.min(t.tokens+s*this.Jt,this.Zt),t.lastAccess=t.lastAccess+s*this.Kt)}consumeRateLimit(t){var i,s=Date.now(),o=String(t),u=this.$t[o];return u?this.Yt(u,s):this.$t[o]=u={tokens:this.Zt,lastAccess:s},u.tokens===0||(u.tokens--,u.tokens===0&&((i=this.Gt)==null||i.call(this,t)),u.tokens===0)}
2stop(){this.$t={}}}var On="Mobile",Hc="iOS",Zi="Android",Ha="Tablet",E1=Zi+" "+Ha,T1="iPad",R1="Apple",C1=R1+" Watch",gl="Safari",Fa="BlackBerry",M1="Samsung",A1=M1+"Browser",O1=M1+" Internet",Ms="Chrome",yC=Ms+" OS",k1=Ms+" "+Hc,lg="Internet Explorer",D1=lg+" "+On,ug="Opera",_C=ug+" Mini",cg="Edge",L1="Microsoft "+cg,ja="Firefox",z1=ja+" "+Hc,Ml="Nintendo",Al="PlayStation",Pa="Xbox",N1=Zi+" "+On,$1=On+" "+gl,ol="Windows",lv=ol+" Phone",nb="Nokia",uv="Ouya",j1="Generic",bC=j1+" "+On.toLowerCase(),P1=j1+" "+Ha.toLowerCase(),cv="Konqueror",B1="Oculus Browser",Fc="Vivaldi",U1="Yandex",qc="Whale",fv="DuckDuckGo",H1="Pale Moon",Ic="Waterfox",ml="Brave",F1="Google Search App",mt="(\\d+(\\.\\d+)?)",ep=new RegExp("Version/"+mt),SC=new RegExp(Pa,"i"),xC=new RegExp(Al+" \\w+","i"),wC=new RegExp(Ml+" \\w+","i"),fg=new RegExp(Fa+"|PlayBook|BB10","i"),EC={"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"},q1=function(e,t,i,s){t=t||"";var o=(function(u){return u!=null&&u.brave?ml:null})(i);return o||(s!=null&&s.detectGoogleSearchApp&&Me(e,"GSA/")?F1:Me(e," OPR/")&&Me(e,"Mini")?_C:Me(e," OPR/")?ug:fg.test(e)?Fa:Me(e,"IE"+On)||Me(e,"WPDesktop")?D1:Me(e,"OculusBrowser")?B1:Me(e,A1)?O1:Me(e,cg)||Me(e,"Edg/")?L1:Me(e,Fc+"/")?Fc:Me(e,"YaBrowser/")?U1:Me(e,qc+"/")?qc:Me(e,fv+"/")||Me(e,"Ddg/")?fv:Me(e,"FBIOS")?"Facebook "+On:Me(e,"UCWEB")||Me(e,"UCBrowser")?"UC Browser":Me(e,"CriOS")?k1:Me(e,"CrMo")||Me(e,Ms)?Ms:Me(e,Zi)&&Me(e,gl)?N1:Me(e,"FxiOS")?z1:Me(e.toLowerCase(),cv.toLowerCase())?cv:Me(e,ml+"/")?ml:((u,c)=>c&&Me(c,R1)||(function(f){return Me(f,gl)&&!Me(f,Ms)&&!Me(f,Zi)})(u))(e,t)?Me(e,On)?$1:gl:Me(e,"PaleMoon/")?H1:Me(e,Ic+"/")?Ic:Me(e,ja)?ja:Me(e,"MSIE")||Me(e,"Trident/")?lg:Me(e,"Gecko")?ja:"")},TC={[D1]:[new RegExp("rv:"+mt)],[L1]:[new RegExp(cg+"?\\/"+mt)],[Ms]:[new RegExp("("+Ms+"|CrMo)\\/"+mt)],[k1]:[new RegExp("CriOS\\/"+mt)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+mt)],[gl]:[ep],[$1]:[ep],[ug]:[new RegExp("(Opera|OPR)\\/"+mt)],[ja]:[new RegExp(ja+"\\/"+mt)],[z1]:[new RegExp("FxiOS\\/"+mt)],[cv]:[new RegExp("Konqueror[:/]?"+mt,"i")],[Fa]:[new RegExp(Fa+" "+mt),ep],[N1]:[new RegExp("android\\s"+mt,"i")],[O1]:[new RegExp(A1+"\\/"+mt)],[B1]:[new RegExp("OculusBrowser\\/"+mt)],[Fc]:[new RegExp(Fc+"\\/"+mt)],[U1]:[new RegExp("YaBrowser\\/"+mt)],[qc]:[new RegExp(qc+"\\/"+mt)],[ml]:[new RegExp(ml+"\\/"+mt)],[fv]:[new RegExp("(DuckDuckGo|Ddg)\\/"+mt)],[H1]:[new RegExp("PaleMoon\\/"+mt)],[Ic]:[new RegExp(Ic+"\\/"+mt)],[F1]:[new RegExp("GSA\\/"+mt)],[lg]:[new RegExp("(rv:|MSIE )"+mt)],Mozilla:[new RegExp("rv:"+mt)]},RC=function(e,t,i,s){var o=q1(e,t,i,s),u=TC[o];if(fe(u))return null;for(var c=0;u.length>c;c++){var f=e.match(u[c]);if(f)return parseFloat(f[f.length-2])}return null},ib=[[new RegExp(Pa+"; "+Pa+" (.*?)[);]","i"),e=>[Pa,e&&e[1]||""]],[new RegExp(Ml,"i"),[Ml,""]],[new RegExp(Al,"i"),[Al,""]],[fg,[Fa,""]],[new RegExp(ol,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[lv,""];if(new RegExp(On).test(t)&&!/IEMobile\b/.test(t))return[ol+" "+On,""];var i=/Windows NT ([0-9.]+)/i.exec(t);if(i&&i[1]){var s=EC[i[1]]||"";return/arm/i.test(t)&&(s="RT"),[ol,s]}return[ol,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[Hc,[e[3],e[4],e[5]||"0"].join(".")]:[Hc,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=fe(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Zi+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Zi+")","i"),e=>e&&e[2]?[Zi,[e[2],e[3],e[4]||"0"].join(".")]:[Zi,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[yC,""]],[/Linux|debian/i,["Linux",""]]],rb=function(e){return wC.test(e)?Ml:xC.test(e)?Al:SC.test(e)?Pa:new RegExp(uv,"i").test(e)?uv:new RegExp("("+lv+"|WPDesktop)","i").test(e)?lv:/iPad/.test(e)?T1:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?C1:fg.test(e)?Fa:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(nb,"i").test(e)?nb:/(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)?Zi:E1:new RegExp("(pda|"+On+")","i").test(e)?bC:new RegExp(Ha,"i").test(e)&&!new RegExp(Ha+" pc","i").test(e)?P1:""},CC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
2function sb(e,t){return typeof(i=e)=="string"&&CC.test(i)?e:t();var i}function tp(e,t){var i=setTimeout(e,t);return i?.unref&&i?.unref(),i}var MC=e=>e instanceof Error,I1={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},AC=I1.info;function G1(e){if(pi(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(ze(e))return{arrayValue:{values:e.map((t=>G1(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function V1(e){var t=[];for(var i in e){var s=e[i];en(s)||fe(s)||t.push({key:i,value:G1(s)})}return t}function OC(e,t){var i=e.level||"info",{text:s,number:o}=I1[i]||AC,u=String(Date.now())+"000000",c={};t.distinctId&&(c.posthogDistinctId=t.distinctId),t.sessionId&&(c.sessionId=t.sessionId),t.currentUrl&&(c["url.full"]=t.currentUrl),t.screenName&&(c["screen.name"]=t.screenName),t.appState&&(c["app.state"]=t.appState),t.activeFeatureFlags&&t.activeFeatureFlags.length>0&&(c.feature_flags=t.activeFeatureFlags);var f=ae({},c,e.attributes||{}),h={timeUnixNano:u,observedTimeUnixNano:u,severityNumber:o,severityText:s,body:{stringValue:e.body},attributes:V1(f)};return e.trace_id&&(h.traceId=e.trace_id),e.span_id&&(h.spanId=e.span_id),fe(e.trace_flags)||(h.flags=e.trace_flags),h}function Y1(e,t,i){return ae({},e.resourceAttributes,{"service.name":e.serviceName||"unknown_service"},e.environment&&{"deployment.environment":e.environment},e.serviceVersion&&{"service.version":e.serviceVersion},{"telemetry.sdk.name":t,"telemetry.sdk.version":i})}function K1(e,t,i,s){return{resourceLogs:[{resource:{attributes:V1(t)},scopeLogs:[{scope:{name:i,version:s},logRecords:e}]}]}}let kC=class{constructor(t,i,s,o,u,c){var f;c===void 0&&(c=()=>Promise.resolve()),this._instance=t,this.Dt=i,this.Qt=s,this.Xt=o,this.er=u,this.tr=c,this.rr=null,this.ir=0,this.nr=0,this.sr=0,this.ar=0,this.lr=!1,this.ur=i.maxBufferSize,this.ot=Math.max((f=i.maxQueueSize)!==null&&f!==void 0?f:i.maxBufferSize,i.maxBufferSize),this.hr=i.flushIntervalMs,this.cr=i.maxBatchRecordsPerPost,this.dr=i.rateCapWindowMs,this.vr=i.maxLogsPerInterval}reset(){this.pr(),this.rr=null,this.sr=0,this.ar=0,this.lr=!1,this.ir=0,this.nr=0,this.cr=this.Dt.maxBatchRecordsPerPost}onReconnect(){this.nr=0,this.gr()}captureLog(t){if(!this._instance.isDisabled&&!this._instance.optedOut&&t!=null&&t.body){var i=this.mr(t);if(i!==null)if(i.body){if(this.yr()){var s={record:OC(i,this.Xt())};this.er((()=>this.br(s)))}}else this.Qt.info("Log was rejected in beforeSend function")}}mr(t){var i=this.Dt.beforeSend;if(!i)return t;var s=ze(i)?i:[i],o=t;for(var u of s)try{var c=u(o);if(!c)return this.Qt.info("Log was rejected in beforeSend function"),null;o=c}catch(f){return this.Qt.error("Error in beforeSend function for log:",f),null}return o}yr(){if(this.vr===void 0)return!0;var t=Date.now(),i=t-this.sr;return this.dr>i&&i>=0||(this.sr=t,this.ar=0,this.lr=!1),this.vr>this.ar?(this.ar++,!0):(this.lr||(this.Qt.warn("captureLog dropping logs: exceeded "+this.vr+" logs per "+this.dr+"ms"),this.lr=!0),!1)}flush(){var t=this;return Pt((function*(){if(!t._instance.isDisabled)return t.rr||(t.rr=t._r().finally((()=>{t.rr=null}))),t.rr}))()}_r(){var t=this;return Pt((function*(){var i;t.pr();var s=(i=t._instance.getPersistedProperty(Ii.LogsQueue))!==null&&i!==void 0?i:[];if(s.length!==0)for(var o=s.length,u=0;s.length>0&&o>u;){var c;t.ir=0;var f=Math.min(s.length,t.cr),h=s.slice(0,f),p=K1(h.map((m=>m.record)),t.wr(),t._instance.getLibraryId(),t._instance.getLibraryVersion()),g=yield t._instance.kr(p);if(g.kind==="too-large"&&h.length>1)t.cr=Math.max(1,Math.floor(h.length/2)),t.Qt.warn("Received 413 when sending logs batch of size "+h.length+", reducing batch size to "+t.cr);else if(g.kind==="retry-later"||(g.kind==="too-large"?t.Qt.warn("Dropping a single log record after 413 with batch size 1 — the record is larger than the server cap and cannot be split further."):g.kind==="ok"&&t.Dt.maxBatchRecordsPerPost>t.cr&&(t.cr=Math.min(t.Dt.maxBatchRecordsPerPost,t.cr+1)),yield t.Sr(h.length),s=(c=t._instance.getPersistedProperty(Ii.LogsQueue))!==null&&c!==void 0?c:[],u+=h.length,g.kind==="fatal"))throw g.error}}))()}Sr(t){var i=this;return Pt((function*(){var s,o=Math.max(0,t-i.ir),u=(s=i._instance.getPersistedProperty(Ii.LogsQueue))!==null&&s!==void 0?s:[];i._instance.setPersistedProperty(Ii.LogsQueue,u.slice(o)),yield i.tr()}))()}wr(){return Y1(this.Dt,this._instance.getLibraryId(),this._instance.getLibraryVersion())}br(t){var i;if(!this._instance.optedOut){var s=(i=this._instance.getPersistedProperty(Ii.LogsQueue))!==null&&i!==void 0?i:[];this.ot>s.length||(s.shift(),this.ir++,this.Qt.info("Logs queue is full, dropping oldest record.")),s.push(t),this._instance.setPersistedProperty(Ii.LogsQueue,s),this.ur>s.length?this.Cr():this.gr()}}Cr(t){t===void 0&&(t=this.hr),this.Ir||(this.Ir=tp((()=>{this.Ir=void 0,this.gr()}),t))}Tr(){var t=Math.min(Math.max(0,this.nr-1),6);return this.hr*Math.pow(2,t)}Er(){var t=this._instance.getPersistedProperty(Ii.LogsQueue);return!!t&&t.length>0}shutdown(t){var i=this;return Pt((function*(){i.pr();var s=i.flush().catch((()=>{}));t!==void 0?yield Promise.race([s,new Promise((o=>tp(o,t)))]):yield s}))()}flushWithTimeout(t){var i=this;return Pt((function*(){var s=!1,o=i.flush(),u=new Promise((c=>tp((()=>{s=!0,c()}),t)));try{yield Promise.race([o,u])}finally{s&&o.catch((()=>{}))}}))()}gr(){this.flush().then((()=>{this.nr=0}),(t=>{this.nr++,this.Qt.error("PostHog logs flush failed:",t)})).finally((()=>{!this._instance.isDisabled&&this.Er()&&this.Cr(this.Tr())}))}pr(){this.Ir&&(clearTimeout(this.Ir),this.Ir=void 0)}};var dc,ab,np;function DC(e){var t=globalThis._posthogChunkIds;if(t){var i=Object.keys(t);return np&&i.length===ab||(ab=i.length,np=i.reduce(((s,o)=>{dc||(dc={});var u=dc[o];if(u)s[u[0]]=u[1];else for(var c=e(o),f=c.length-1;f>=0;f--){var h=c[f],p=h?.filename,g=t[o];if(p&&g){s[p]=g,dc[o]=[p,g];break}}return s}),{})),np}}class LC{constructor(t,i,s){s===void 0&&(s=[]),this.coercers=t,this.stackParser=i,this.modifiers=s}buildFromUnknown(t,i){i===void 0&&(i={});var s=i&&i.mechanism||{handled:!0,type:"generic"},o=this.buildCoercingContext(s,i,0).apply(t),u=this.buildParsingContext(i),c=this.parseStacktrace(o,u);return{$exception_list:this.convertToExceptionList(c,s),$exception_level:"error"}}modifyFrames(t){var i=this;return Pt((function*(){for(var s of t)s.stacktrace&&s.stacktrace.frames&&ze(s.stacktrace.frames)&&(s.stacktrace.frames=yield i.applyModifiers(s.stacktrace.frames));return t}))()}coerceFallback(t){var i;return{type:"Error",value:"Unknown error",stack:(i=t.syntheticException)==null?void 0:i.stack,synthetic:!0}}parseStacktrace(t,i){var s,o;return t.cause!=null&&(s=this.parseStacktrace(t.cause,i)),t.stack!=""&&t.stack!=null&&(o=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?i.skipFirstLines:0),i.chunkIdMap)),ae({},t,{cause:s,stack:o})}applyChunkIds(t,i){return t.map((s=>
2(s.filename&&i&&(s.chunk_id=i[s.filename]),s)))}applyCoercers(t,i){for(var s of this.coercers)if(s.match(t))return s.coerce(t,i);return this.coerceFallback(i)}applyModifiers(t){var i=this;return Pt((function*(){var s=t;for(var o of i.modifiers)s=yield o(s);return s}))()}convertToExceptionList(t,i){var s,o,u,c={type:t.type,value:t.value,mechanism:{type:(s=i.type)!==null&&s!==void 0?s:"generic",handled:(o=i.handled)===null||o===void 0||o,synthetic:(u=t.synthetic)!==null&&u!==void 0&&u}};t.stack&&(c.stacktrace={type:"raw",frames:t.stack});var f=[c];return t.cause!=null&&f.push(...this.convertToExceptionList(t.cause,ae({},i,{handled:!0}))),f}buildParsingContext(t){var i;return{chunkIdMap:DC(this.stackParser),skipFirstLines:(i=t.skipFirstLines)!==null&&i!==void 0?i:1}}buildCoercingContext(t,i,s){s===void 0&&(s=0);var o=(u,c)=>{if(4>=c){var f=this.buildCoercingContext(t,i,c);return this.applyCoercers(u,f)}};return ae({},i,{syntheticException:s==0?i.syntheticException:void 0,mechanism:t,apply:u=>o(u,s),next:u=>o(u,s+1)})}}var qa="?";function dv(e,t,i,s,o){var u={platform:e,filename:t,function:i==="<anonymous>"?qa:i,in_app:!0};return fe(s)||(u.lineno=s),fe(o)||(u.colno=o),u}var X1=(e,t)=>{var i=e.indexOf("safari-extension")!==-1,s=e.indexOf("safari-web-extension")!==-1;return i||s?[e.indexOf("@")!==-1?e.split("@")[0]:qa,i?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},zC=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,NC=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$C=/\((\S*)(?::(\d+))(?::(\d+))\)/,jC=(e,t)=>{var i=zC.exec(e);if(i){var[,s,o,u]=i;return dv(t,s,qa,+o,+u)}var c=NC.exec(e);if(c){if(c[2]&&c[2].indexOf("eval")===0){var f=$C.exec(c[2]);f&&(c[2]=f[1],c[3]=f[2],c[4]=f[3])}var[h,p]=X1(c[1]||qa,c[2]);return dv(t,p,h,c[3]?+c[3]:void 0,c[4]?+c[4]:void 0)}},PC=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,BC=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,UC=(e,t)=>{var i=PC.exec(e);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var s=BC.exec(i[3]);s&&(i[1]=i[1]||"eval",i[3]=s[1],i[4]=s[2],i[5]="")}var o=i[3],u=i[1]||qa;return[u,o]=X1(u,o),dv(t,o,u,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}},ob=/\(error: (.*)\)/;let HC=class{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,i){var s=ut(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:s?t.stack:void 0,cause:t.cause?i.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var i=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?i+": "+t.message:i}isDOMException(t){return Uc(t,"DOMException")}isDOMError(t){return Uc(t,"DOMError")}},FC=class{match(t){return(i=>i instanceof Error)(t)}coerce(t,i){return{type:this.getType(t),value:this.getMessage(t,i),stack:this.getStack(t),cause:t.cause?i.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,i){var s=t.message;return String(s.error&&typeof s.error.message=="string"?s.error.message:s)}getStack(t){return t.stacktrace||t.stack||void 0}},qC=class{constructor(){}match(t){return Uc(t,"ErrorEvent")&&t.error!=null}coerce(t,i){var s;return i.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(s=i.syntheticException)==null?void 0:s.stack,synthetic:!0}}};var IC=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let GC=class{match(t){return typeof t=="string"}coerce(t,i){var s,[o,u]=this.getInfos(t);return{type:o??"Error",value:u??t,stack:(s=i.syntheticException)==null?void 0:s.stack,synthetic:!0}}getInfos(t){var i="Error",s=t,o=t.match(IC);return o&&(i=o[1],s=o[2]),[i,s]}};var VC=["fatal","error","warning","log","info","debug"];function Q1(e,t){t===void 0&&(t=40);var i=Object.keys(e);if(i.sort(),!i.length)return"[object has no keys]";for(var s=i.length;s>0;s--){var o=i.slice(0,s).join(", ");if(t>=o.length)return s===i.length?o:o.length>t?o.slice(0,t)+"...":o}return""}let YC=class{match(t){return typeof t=="object"&&t!==null}coerce(t,i){var s,o=this.getErrorPropertyFromObject(t);return o?i.apply(o):{type:this.getType(t),value:this.getValue(t),stack:(s=i.syntheticException)==null?void 0:s.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return og(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var i="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(i+=" with message: '"+t.message+"'"),i}if("message"in t&&typeof t.message=="string")return t.message;var s=this.getObjectClassName(t);return(s&&s!=="Object"?"'"+s+"'":"Object")+" captured as exception with keys: "+Q1(t)}isSeverityLevel(t){return ut(t)&&!ov(t)&&VC.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var i in t)if({}.hasOwnProperty.call(t,i)){var s=t[i];if(MC(s))return s}}getObjectClassName(t){try{var i=Object.getPrototypeOf(t);return i?i.constructor.name:void 0}catch{return}}},KC=class{match(t){return og(t)}coerce(t,i){var s,o=t.constructor.name;return{type:o,value:o+" captured as exception with keys: "+Q1(t),stack:(s=i.syntheticException)==null?void 0:s.stack,synthetic:!0}}},XC=class{match(t){return w1(t)}coerce(t,i){var s;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(s=i.syntheticException)==null?void 0:s.stack,synthetic:!0}}},QC=class{match(t){return Uc(t,"PromiseRejectionEvent")||this.isCu
2stomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!og(t))return!1;try{var i=t.detail;return i!=null&&typeof i=="object"&&"reason"in i}catch{return!1}}coerce(t,i){var s,o=this.getUnhandledRejectionReason(t);return w1(o)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o),stack:(s=i.syntheticException)==null?void 0:s.stack,synthetic:!0}:i.apply(o)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}};var Gc="$message",Vc="$timestamp",ZC=new Set([Gc,Vc]),ip={enabled:!0,max_bytes:32768};function Yc(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:ip.enabled,max_bytes:WC(e.max_bytes,ip.max_bytes)}:ae({},ip)}class JC{constructor(t){this.Mr=[],this.Rr=0,this.Dt=Yc(t)}setConfig(t){this.Dt=Yc(t),this.Pr()}add(t){var i=(function(o){var u=(function(g){var m=new WeakSet;try{return JSON.stringify(g,((y,b)=>{if(typeof b=="bigint")return b.toString();if(typeof b!="function"&&typeof b!="symbol"){if(b instanceof Date)return b.toISOString();if(b instanceof Error)return{name:b.name,message:b.message,stack:b.stack};if(b&&typeof b=="object"){if(m.has(b))return"[Circular]";m.add(b)}return b}}))}catch{return}})(o);if(u)try{var c=JSON.parse(u);if(!dt(c))return;var f=c,h=f[Gc],p=f[Vc];return!ut(h)||h.trim().length===0||!ut(p)&&!tn(p)?void 0:{step:f,json:u}}catch{return}})(t);if(i){var s=(function(o){if(typeof TextEncoder<"u")return new TextEncoder().encode(o).length;for(var u=encodeURIComponent(o),c=0,f=0;u.length>f;f++)u[f]==="%"?(c+=1,f+=2):c+=1;return c})(i.json);s>this.Dt.max_bytes||(this.Mr.push({step:i.step,bytes:s}),this.Rr+=s,this.Pr())}}getAttachable(){return this.Mr.map((t=>t.step))}clear(){this.Mr=[],this.Rr=0}size(){return this.Mr.length}Pr(){for(;this.Rr>this.Dt.max_bytes&&this.Mr.length>0;){var t=this.Mr.shift();t&&(this.Rr-=t.bytes)}}}function WC(e,t){if(!tn(e)||e===1/0||e===-1/0)return t;var i=Math.floor(e);return 0>i?t:i}var Z1=function(e,t){var{debugEnabled:i}=t===void 0?{}:t,s={k(o){if(G&&(Et.DEBUG||Ee.POSTHOG_DEBUG||i)&&!fe(G.console)&&G.console){for(var u=("__rrweb_original__"in G.console[o])?G.console[o].__rrweb_original__:G.console[o],c=arguments.length,f=new Array(c>1?c-1:0),h=1;c>h;h++)f[h-1]=arguments[h];u(e,...f)}},debug(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];s.k("debug",...u)},info(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];s.k("log",...u)},warn(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];s.k("warn",...u)},error(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];s.k("error",...u)},critical(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];console.error(e,...u)},uninitializedWarning(o){s.error("You must initialize PostHog before calling "+o)},createLogger:(o,u)=>Z1(e+" "+o,u)};return s},de=Z1("[PostHog.js]"),_t=de.createLogger,eM=_t("[ExternalScriptsLoader]"),rp=(e,t,i)=>{if(e.config.disable_external_dependency_loading)return eM.warn(t+" was requested but loading of external scripts is disabled."),i("Loading of external scripts is disabled");var s=he?.querySelectorAll("script");if(s){for(var o,u=function(){if(s[c].src===t){var h=s[c];return h.__posthog_loading_callback_fired?{v:i()}:(h.addEventListener("load",(p=>{h.__posthog_loading_callback_fired=!0,i(void 0,p)})),h.onerror=p=>i(p),{v:void 0})}},c=0;s.length>c;c++)if(o=u())return o.v}var f=()=>{if(!he)return i("document not found");var h=he.createElement("script");if(h.type="text/javascript",h.crossOrigin="anonymous",h.src=t,h.onload=m=>{h.__posthog_loading_callback_fired=!0,i(void 0,m)},h.onerror=m=>i(m),e.config.prepare_external_dependency_script&&(h=e.config.prepare_external_dependency_script(h)),!h)return i("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")he.head.appendChild(h);else{var p,g=he.querySelectorAll("body > script");g.length>0?(p=g[0].parentNode)==null||p.insertBefore(h,g[0]):he.body.appendChild(h)}};he!=null&&he.body?f():he?.addEventListener("DOMContentLoaded",f)};Ee.__PosthogExtensions__=Ee.__PosthogExtensions__||{},Ee.__PosthogExtensions__.loadExternalDependency=(e,t,i)=>{if(t!=="remote-config"){var s;if(e.config.strict_script_versioning)s=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var o="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var u=3e5;o=o+"&t="+Math.floor(Date.now()/u)*u}s=e.requestRouter.endpointFor("assets",o)}rp(e,s,i)}else{var c=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");rp(e,c,i)}},Ee.__PosthogExtensions__.loadSiteApp=(e,t,i)=>{var s=e.requestRouter.endpointFor("api",t);rp(e,s,i)};var J1="$people_distinct_id",Kc="$device_id",ll="__alias",ul="__timers",hv="$autocapture_disabled_server_side",pv="$heatmaps_enabled_server_side",vv="$exception_capture_enabled_server_side",gv="$error_tracking_suppression_rules",mv="$error_tracking_capture_extension_exceptions",yv="$web_vitals_enabled_server_side",dg="$dead_clicks_enabled_server_side",hg="$product_tours_enabled_server_side",_v="$web_vitals_allowed_metrics",Es="$session_recording_remote_config",W1="$replay_sample_rate",ex="$replay_override_sampling",tx="$replay_override_linked_flag",nx="$replay_override_url_trigger",ix="$replay_override_event_trigger",za="$sesid",pg="$session_is_sampled",xs="$enabled_feature_flags",Ac="$active_feature_flags",cl="$early_access_features",bv="$feature_flag_details",Oc="$feature_flag_payloads",Sv="$feature_flag_request_id",qi="$override_feature_flags",Oa="$override_feature_flag_payloads",ys="$stored_person_properties",_s="$stored_group_properties",xv="$surveys",vg="$surveys_loaded_at",wv="$surveys_activated",fl="ph_product_tours",yl="$flag_call_reported",Ev="$flag_call_reported_session_id",Tv="$feature_flag_errors",Ol="$feature_flag_evaluated_at",Zn="$user_state",Rv="$client_session_props",Cv="$capture_rate_limit",Mv="$initial_campaign_params",Av="$initial_referrer_info",Xc="$initial_person_info",Qc="$epp",rx="__POSTHOG_TOOLBAR__",hc="$posthog_cookieless",sx="$sdk_debug_extensions_init_method",ax="$sdk_debug_extensions_init_time_ms",ox="$sdk_debug_recording_script_not_loaded",Ov="PostHog loadExternalDependency extension not found.",bs="on_reject",Yi="always",wa="anonymous",Ea="identified",kv="identified_only",Zc="visibilitychange",Jc="beforeunload",ka="$pageview",sp="$pageleave",ap="$identify",lb="$groupidentify";function pc(e,t){ze(e)&&e.forEach(t)}function nt(e,t){if(!Ne(e))if(ze(e))e.forEach(t);else if(dC(e))e.forEach(((s,o)=>t(s,o)));else for(var i in e)x1.call(e,i)&&t(e[i],i)}var lt=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;t>s;s++)i[s-1]=arguments[s];for(var o of i)for(var u in o)o[u]!==void 0&&(e[u]=o[u]);return e};function kc(e){for(var t=Object.keys(e),i=t.length,s=new Array(i);i--;)s[i]=[t[i],e[t[i]]];return s}var ub=function(e){try{return e()}catch{return}},tM=function(e){return function(){try{for(var t=arguments.length,i=new Array(t),s=0;t>s;s++)i[s]=arguments[s];return e.apply(this,i)}catch(o){de.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),de.critical(o)}}},gg=function(e){var t={};return nt(e,(function(i,s){(ut(i)&&i.length>0||tn(i))&&(t[s]=i)})),t},nM=["herokuapp.com","vercel.app","netlify.app"];function iM(e){var t=e?.hostname;if(!ut(t))return!1;var i=t.split(".").slice(-2).join(".");for(var s of nM)if(i===s)return!1;return!0}function bt(e,t,i,s){var{capture:o=!1,passive:u=!0}=s??{};e?.addEventListener(t,i,{capture:o,passive:u})}
2function lx(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return tn(e)&&isFinite(e)&&Math.floor(e)===e});class Wc{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,i,s,o){if(!Number.isInteger(t)||!Number.isInteger(i)||!Number.isInteger(s)||!Number.isInteger(o)||0>t||0>i||0>s||0>o||t>0xffffffffffff||i>4095||s>1073741823||o>4294967295)throw new RangeError("invalid field value");var u=new Uint8Array(16);return u[0]=t/Math.pow(2,40),u[1]=t/Math.pow(2,32),u[2]=t/Math.pow(2,24),u[3]=t/Math.pow(2,16),u[4]=t/Math.pow(2,8),u[5]=t,u[6]=112|i>>>8,u[7]=i,u[8]=128|s>>>24,u[9]=s>>>16,u[10]=s>>>8,u[11]=s,u[12]=o>>>24,u[13]=o>>>16,u[14]=o>>>8,u[15]=o,new Wc(u)}toString(){for(var t="",i=0;this.bytes.length>i;i++)t=t+(this.bytes[i]>>>4).toString(16)+(15&this.bytes[i]).toString(16),i!==3&&i!==5&&i!==7&&i!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new Wc(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var i=0;16>i;i++){var s=this.bytes[i]-t.bytes[i];if(s!==0)return Math.sign(s)}return 0}}class rM{constructor(){this.S=0,this.C=0,this.I=new sM}generate(){var t=this.generateOrAbort();if(fe(t)){this.S=0;var i=this.generateOrAbort();if(fe(i))throw new Error("Could not generate UUID after timestamp reset");return i}return t}generateOrAbort(){var t=Date.now();if(t>this.S)this.S=t,this.M();else{if(this.S>=t+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.M())}return Wc.fromFieldsV7(this.S,Math.trunc(this.C/Math.pow(2,30)),this.C&Math.pow(2,30)-1,this.I.nextUint32())}M(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var cb,ux=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};G&&!fe(G.crypto)&&crypto.getRandomValues&&(ux=e=>crypto.getRandomValues(e));class sM{constructor(){this.R=new Uint32Array(8),this.O=1/0}nextUint32(){return this.R.length>this.O||(ux(this.R),this.O=0),this.R[this.O++]}}var Vi=()=>aM().toString(),aM=()=>(cb||(cb=new rM)).generate(),Vo="",oM=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,di={N:()=>!!he,D(e){de.error("cookieStore error: "+e)},P(e){if(he){try{for(var t=e+"=",i=he.cookie.split(";").filter((u=>u.length)),s=0;i.length>s;s++){for(var o=i[s];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return decodeURIComponent(o.substring(t.length,o.length))}}catch{}return null}},F(e){var t;try{t=JSON.parse(di.P(e))||{}}catch{}return t},A(e,t,i,s,o){if(!he)return!1;try{var u="",c="",f=(function(g,m){if(m){var y=(function(S,x){if(x===void 0&&(x=he),Vo)return Vo;if(!x||["localhost","127.0.0.1"].includes(S))return"";for(var T=S.split("."),E=Math.min(T.length,8),A="dmn_chk_"+Vi();!Vo&&E--;){var C=T.slice(E).join("."),M=A+"=1;domain=."+C+";path=/";x.cookie=M+";max-age=3",x.cookie.includes(A)&&(x.cookie=M+";max-age=0",Vo=C)}return Vo})(g);if(!y){var b=(S=>{var x=S.match(oM);return x?x[0]:""})(g);b!==y&&de.info("Warning: cookie subdomain discovery mismatch",b,y),y=b}return y?"; domain=."+y:""}return""})(he.location.hostname,s);if(i){var h=new Date;h.setTime(h.getTime()+864e5*i),u="; expires="+h.toUTCString()}o&&(c="; secure");var p=e+"="+encodeURIComponent(JSON.stringify(t))+u+"; SameSite=Lax; path=/"+f+c;return p.length>3686.4&&de.warn("cookieStore warning: large cookie, len="+p.length),he.cookie=p,!0}catch{return!1}},q(e,t){if(he!=null&&he.cookie)try{di.A(e,"",-1,t)}catch{return}}},op=null,tt={N(){if(!en(op))return op;var e=!0;if(fe(G))e=!1;else try{var t="__mplssupport__";tt.A(t,"xyz"),tt.P(t)!=='"xyz"'&&(e=!1),tt.q(t)}catch{e=!1}return e||de.error("localStorage unsupported; falling back to cookie store"),op=e,e},D(e){de.error("localStorage error: "+e)},P(e){try{return G?.localStorage.getItem(e)}catch(t){tt.D(t)}return null},F(e){try{return JSON.parse(tt.P(e))||{}}catch{}return null},A(e,t){try{return G?.localStorage.setItem(e,JSON.stringify(t)),!0}catch(i){tt.D(i)}return!1},q(e){try{G?.localStorage.removeItem(e)}catch(t){tt.D(t)}}},lM=[Kc,"distinct_id",za,pg,Qc,Xc,Zn],vc={},uM={N:()=>!0,D(e){de.error("memoryStorage error: "+e)},P:e=>vc[e]||null,F:e=>vc[e]||null,A:(e,t)=>
2(vc[e]=t,!0),q(e){delete vc[e]}},cs=null,Vt={N(){if(!en(cs))return cs;if(cs=!0,fe(G))cs=!1;else try{var e="__support__";Vt.A(e,"xyz"),Vt.P(e)!=='"xyz"'&&(cs=!1),Vt.q(e)}catch{cs=!1}return cs},D(e){de.error("sessionStorage error: ",e)},P(e){try{return G?.sessionStorage.getItem(e)}catch(t){Vt.D(t)}return null},F(e){try{return JSON.parse(Vt.P(e))||null}catch{}return null},A(e,t){try{return G?.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(i){Vt.D(i)}return!1},q(e){try{G?.sessionStorage.removeItem(e)}catch(t){Vt.D(t)}}};class cM{constructor(t){this._instance=t}get Dt(){return this._instance.config}get consent(){return this.Lr()?0:this.Ar}isOptedOut(){return this.Dt.cookieless_mode===Yi||this.isRejected()||this.consent===-1&&this.Dt.cookieless_mode===bs}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Dt.opt_out_capturing_by_default}optInOut(t){this.Fr.A(this.Nr,t?1:0,this.Dt.cookie_expiration,this.Dt.cross_subdomain_cookie,this.Dt.secure_cookie)}reset(){this.Fr.q(this.Nr,this.Dt.cross_subdomain_cookie)}get Nr(){var{token:t,opt_out_capturing_cookie_prefix:i,consent_persistence_name:s}=this._instance.config;return s||(i?i+t:"__ph_opt_in_out_"+t)}get Ar(){var t=this.Fr.P(this.Nr);return Wh(t)?1:Me(gC,t)?0:-1}get Fr(){var t=this.Dt.opt_out_capturing_persistence_type,i=t==="localStorage"?tt:di;if(!this.Dr||this.Dr!==i){this.Dr=i;var s=t==="localStorage"?di:tt;s.P(this.Nr)&&(this.Dr.P(this.Nr)||this.optInOut(Wh(s.P(this.Nr))),s.q(this.Nr,this.Dt.cross_subdomain_cookie))}return this.Dr}Lr(){return!!this.Dt.respect_dnt&&[Mn?.doNotTrack,Mn?.msDoNotTrack,Ee.doNotTrack].some((t=>Wh(t)))}}var fM=1,dM=3,hM=11;function fb(e){return e instanceof Element&&(e.id===rx||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function qr(e){return!!e&&e.nodeType===fM}function An(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function cx(e){return!!e&&e.nodeType===dM}function fx(e){return!!e&&e.nodeType===hM&&qr(e.host)}function mg(e){return e?wf(e).split(/\s+/):[]}function db(e){var t=G?.location.href;return!!(t&&e&&e.some((i=>t.match(i))))}function ef(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 mg(t)}function dx(e){return Ne(e)?null:wf(e).split(/(\s+)/).filter((t=>_l(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function kl(e){var t="";return Lv(e)&&!gx(e)&&e.childNodes&&e.childNodes.length&&nt(e.childNodes,(function(i){var s;cx(i)&&i.textContent&&(t+=(s=dx(i.textContent))!==null&&s!==void 0?s:"")})),wf(t)}function lp(e){return fe(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var yg=["a","button","form","input","select","textarea","label"];function Dv(e,t){if(fe(t))return!0;var i,s=function(u){if(t.some((c=>(function(f,h){var p=f.matches||f.matchesSelector||f.msMatchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector;try{return!!p&&p.call(f,h)}catch{return!1}})(u,c))))return{v:!0}};for(var o of e)if(i=s(o))return i.v;return!1}function hx(e){var t=e.parentNode;return!(!t||!qr(t))&&t}var pM=[".ph-no-autocapture","[data-ph-no-autocapture]"],px=["next","previous","prev",">","<"],vM=[...px,"+","-","−","–"],hb=(e,t)=>
2/[a-z0-9]/i.test(t)?e.includes(t):e===t,pb=[".ph-no-rageclick",".ph-no-capture"],gM=["","text","search","email","password","url","tel","number"];function vb(e,t){if(!G||_g(e))return!1;var i,s,o,u,c;if(pi(t)?(i=!!t&&pb,s=void 0,o=!1):(i=(u=t?.css_selector_ignorelist)!==null&&u!==void 0?u:pb,s=t?.content_ignorelist,o=(c=t?.ignore_text_selection)!==null&&c!==void 0&&c),i===!1||o&&(function(h){return!(!h||!qr(h))&&(!!An(h,"textarea")||(An(h,"input")?Me(gM,(h.getAttribute("type")||"").toLowerCase()):(function(p){if(p.isContentEditable)return!0;var g=p.getAttribute==null?void 0:p.getAttribute("contenteditable");return g==="true"||g===""})(h)))})(e))return!1;var{targetElementList:f}=vx(e,!1);return!(function(h,p){if(h===!1||fe(h))return!1;var g;if(h===!0)g=px;else{if(!ze(h))return!1;if(h.length>10)return de.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;g=h.map((m=>m.toLowerCase()))}return p.some((m=>{var{safeText:y,ariaLabel:b}=m;return g.some((S=>hb(y,S)||hb(b,S)))}))})(s,f.map((h=>{var p;return{safeText:kl(h).toLowerCase(),ariaLabel:((p=h.getAttribute("aria-label"))==null?void 0:p.toLowerCase().trim())||""}})))&&!Dv(f,i)}var _g=e=>!e||An(e,"html")||!qr(e),vx=(e,t)=>{if(!G||_g(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var i=!1,s=[e],o=e;o.parentNode&&!An(o,"body");)if(fx(o.parentNode))s.push(o.parentNode.host),o=o.parentNode.host;else{var u=hx(o);if(!u)break;if(t||yg.indexOf(u.tagName.toLowerCase())>-1)i=!0;else{var c=G.getComputedStyle(u);c&&c.getPropertyValue("cursor")==="pointer"&&(i=!0)}s.push(u),o=u}return{parentIsUsefulElement:i,targetElementList:s}};function Lv(e){for(var t=e;t.parentNode&&!An(t,"body");t=t.parentNode){var i=ef(t);if(Me(i,"ph-sensitive")||Me(i,"ph-no-capture"))return!1}if(Me(ef(e),"ph-include"))return!0;var s=e.type||"";if(ut(s))switch(s.toLowerCase()){case"hidden":case"password":return!1}var o=e.name||e.id||"";return!ut(o)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(o.replace(/[^a-zA-Z0-9]/g,""))}function gx(e){return!!(An(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||An(e,"select")||An(e,"textarea")||e.getAttribute("contenteditable")==="true")}var mx="(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})",mM=new RegExp("^(?:"+mx+")$"),yM=new RegExp(mx),yx="\\d{3}-?\\d{2}-?\\d{4}",_M=new RegExp("^("+yx+")$"),bM=new RegExp("("+yx+")");function _l(e,t){return t===void 0&&(t=!0),!(Ne(e)||ut(e)&&(e=wf(e),(t?mM:yM).test((e||"").replace(/[- ]/g,""))||(t?_M:bM).test(e)))}function gb(e){var t=kl(e);return _l(t=(t+" "+_x(e)).trim())?t:""}function _x(e){var t="";return e&&e.childNodes&&e.childNodes.length&&nt(e.childNodes,(function(i){var s;if(i&&((s=i.tagName)==null?void 0:s.toLowerCase())==="span")try{var o=kl(i);t=(t+" "+o).trim(),i.childNodes&&i.childNodes.length&&(t=(t+" "+_x(i)).trim())}catch(u){de.error("[AutoCapture]",u)}})),t}function mb(e){return e.replace(/"|\\"/g,'\\"')}function SM(e){var t=e.attr__class;return t?ze(t)?t:mg(t):void 0}var gc=_t("[Dead Clicks]"),xM=()=>!0,wM=e=>{var t,i=!((t=e.instance.persistence)==null||!t.get_property(dg)),s=e.instance.config.capture_dead_clicks;return pi(s)?s:!!dt(s)||i};class yb{get lazyLoadedDeadClicksAutocapture(){return this.$r}constructor(t,i,s){this.instance=t,this.isEnabled=i,this.onCapture=s,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[dg]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.qr((()=>{this.jr()})):this.stop()}qr(t){var i,s;(i=Ee.__PosthogExtensions__)!=null&&i.initDeadClicksAutocapture?t():(s=Ee.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this.instance,"dead-clicks-autocapture",(o=>{o?gc.error("failed to load script",o):t()}))}jr(){var t;if(he){if(!this.$r&&(t=Ee.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var i=dt(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};i.__onCapture=this.onCapture,this.$r=Ee.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,i),this.$r.start(he),gc.info("starting...")}}else gc.error("`document` not found. Cannot start.")}stop(){this.$r&&(this.$r.stop(),this.$r=void 0,gc.info("stopping..."))}}var up=_t("[SegmentIntegration]"),bx="posthog-js";function Sx(e,t){var{organization:i,projectId:s,prefix:o,severityAllowList:u=["error"],sendExceptionsToPostHog:c=!0}=t===void 0?{}:t;return f=>{var h,p,g,m,y;if(u!=="*"&&!u.includes(f.level)||!e.__loaded)return f;f.tags||(f.tags={});var b=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/pers
2on/"+e.get_distinct_id());f.tags["PostHog Person URL"]=b,e.sessionRecordingStarted()&&(f.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var S,x=((h=f.exception)==null?void 0:h.values)||[],T=x.map((A=>ae({},A,{stacktrace:A.stacktrace?ae({},A.stacktrace,{type:"raw",frames:(A.stacktrace.frames||[]).map((C=>ae({},C,{platform:"web:javascript"})))}):void 0}))),E={$exception_message:((p=x[0])==null?void 0:p.value)||f.message,$exception_type:(g=x[0])==null?void 0:g.type,$exception_level:f.level,$exception_list:T,$sentry_event_id:f.event_id,$sentry_exception:f.exception,$sentry_exception_message:((m=x[0])==null?void 0:m.value)||f.message,$sentry_exception_type:(y=x[0])==null?void 0:y.type,$sentry_tags:f.tags};return i&&s&&(E.$sentry_url=(o||"https://sentry.io/organizations/")+i+"/issues/?project="+s+"&query="+f.event_id),c&&((S=e.exceptions)==null||S.sendExceptionEvent(E)),f}}class EM{constructor(t,i,s,o,u,c){this.name=bx,this.setupOnce=function(f){f(Sx(t,{organization:i,projectId:s,prefix:o,severityAllowList:u,sendExceptionsToPostHog:c==null||c}))}}}class _b{constructor(t){this.Br=(i,s,o)=>{o&&(o.noSessionId||o.activityTimeout||o.sessionPastMaximumLength||o.crossTabAdoption)&&(de.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:i,changeReason:o}),this.Hr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.Ur()}Ur(){var t;this.zr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.Br)}destroy(){var t;(t=this.zr)==null||t.call(this),this.zr=void 0}doPageView(t,i){var s,o=this.Vr(t,i);return this.Hr={pathname:(s=G?.location.pathname)!==null&&s!==void 0?s:"",pageViewId:i,timestamp:t},this._instance.scrollManager.resetContext(),o}doPageLeave(t){var i;return this.Vr(t,(i=this.Hr)==null?void 0:i.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.Hr)==null?void 0:t.pageViewId}}Vr(t,i){var s=this.Hr;if(!s)return{$pageview_id:i};var o={$pageview_id:i,$prev_pageview_id:s.pageViewId},u=this._instance.scrollManager.getContext();if(u&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:c,lastScrollY:f,maxScrollY:h,maxContentHeight:p,lastContentY:g,maxContentY:m}=u;if(!(fe(c)||fe(f)||fe(h)||fe(p)||fe(g)||fe(m))){c=Math.ceil(c),f=Math.ceil(f),h=Math.ceil(h),p=Math.ceil(p),g=Math.ceil(g),m=Math.ceil(m);var y=c>1?hi(f/c,0,1,de):1,b=c>1?hi(h/c,0,1,de):1,S=p>1?hi(g/p,0,1,de):1,x=p>1?hi(m/p,0,1,de):1;o=lt(o,{$prev_pageview_last_scroll:f,$prev_pageview_last_scroll_percentage:y,$prev_pageview_max_scroll:h,$prev_pageview_max_scroll_percentage:b,$prev_pageview_last_content:g,$prev_pageview_last_content_percentage:S,$prev_pageview_max_content:m,$prev_pageview_max_content_percentage:x})}}return s.pathname&&(o.$prev_pageview_pathname=s.pathname),s.timestamp&&(o.$prev_pageview_duration=(t.getTime()-s.timestamp.getTime())/1e3),o}}var mc=["flags","surveys"],TM={[J1]:{exposure:"hidden"},[ll]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[ul]:{exposure:"hidden"},[hv]:{exposure:"event"},[pv]:{exposure:"hidden"},[vv]:{exposure:"event"},[gv]:{exposure:"hidden"},[mv]:{exposure:"event"},[yv]:{exposure:"event"},[dg]:{exposure:"event"},[hg]:{exposure:"hidden"},[_v]:{exposure:"event"},[Es]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[za]:{exposure:"hidden"},[pg]:{exposure:"event"},[W1]:{exposure:"event",shouldSkipFromEventProperties:e=>en(e)},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},$sess_rec_flush_size:{exposure:"hidden"},[xs]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!dt(e))return{};for(var t={},i=Object.keys(e),s=0;i.length>s;s++)t["$feature/"+i[s]]=e[i[s]];return t}},[Ac]:{exposure:"event",storageGroup:"flags"},[cl]:{exposure:"hidden"},[bv]:{exposure:"hidden",storageGroup:"flags"},[Oc]:{exposure:"event",storageGroup:"flags"},[Sv]:{exposure:"event",storageGroup:"flags",volatile:!0}
2,[qi]:{exposure:"event"},[Oa]:{exposure:"hidden"},[ys]:{exposure:"hidden"},[_s]:{exposure:"hidden"},[xv]:{exposure:"hidden",storageGroup:"surveys"},[vg]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[wv]:{exposure:"event"},[fl]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[yl]:{exposure:"hidden"},[Ev]:{exposure:"hidden"},[Tv]:{exposure:"hidden"},[Ol]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[Zn]:{exposure:"hidden"},[Rv]:{exposure:"hidden"},[Cv]:{exposure:"hidden"},[Mv]:{exposure:"hidden"},[Av]:{exposure:"hidden"},[Xc]:{exposure:"hidden"},[Qc]:{exposure:"hidden"},[ex]:{exposure:"event"},[tx]:{exposure:"event"},[nx]:{exposure:"event"},[ix]:{exposure:"event"},[sx]:{exposure:"event"},[ax]:{exposure:"event"},[ox]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},RM=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],fs=e=>{var t=TM[e];if(t)return t;for(var[i,s]of RM)if(e.indexOf(i)===0)return s},tf=e=>{var t=he?.createElement("a");return fe(t)?null:(t.href=e,t)},Dl=function(e,t){for(var i,s=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),o=0;s.length>o;o++){var u=s[o].split("=");if(u[0]===t){i=u;break}}if(!ze(i)||2>i.length)return"";var c=i[1];try{c=decodeURIComponent(c)}catch{de.error("Skipping decoding for malformed query param: "+c)}return c.replace(/\+/g," ")},Ll=function(e,t,i){if(!e||!t||!t.length)return e;for(var s=e.split("#"),o=s[1],u=(s[0]||"").split("?"),c=u[1],f=u[0],h=(c||"").split("&"),p=[],g=0;h.length>g;g++){var m=h[g].split("=");ze(m)&&(t.includes(m[0])?p.push(m[0]+"="+i):p.push(h[g]))}var y=f;return c!=null&&(y+="?"+p.join("&")),o!=null&&(y+="#"+o),y},nf=function(e,t){var i=e.match(new RegExp(t+"=([^&]*)"));return i?i[1]:null},yc="https?://(.*)",Ia=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],CM=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Ia],zl="<masked>",MM=["li_fat_id"];function xx(e,t,i){if(!he)return{};var s,o=t?[...Ia,...i||[]]:[],u=wx(Ll(he.URL,o,zl),e),c=(s={},nt(MM,(function(f){var h=di.P(f);s[f]=h||null})),s);return lt(c,u)}function wx(e,t){var i=CM.concat(t||[]),s={};return nt(i,(function(o){var u=Dl(e,o);s[o]=u||null})),s}function Ex(e){var t=(function(u){return u?u.search(yc+"google.([^/?]*)")===0?"google":u.search(yc+"bing.com")===0?"bing":u.search(yc+"yahoo.com")===0?"yahoo":u.search(yc+"duckduckgo.com")===0?"duckduckgo":null:null})(e),i=t!="yahoo"?"q":"p",s={};if(!en(t)){s.$search_engine=t;var o=he?Dl(he.referrer,i):"";o.length&&(s.ph_keyword=o)}return s}function bb(){return navigator.language||navigator.userLanguage}var rf="$direct";function Tx(){return he?.referrer||rf}function Rx(e,t){var i=e?[...Ia,...t||[]]:[],s=Gt?.href.substring(0,1e3);return{r:Tx().substring(0,1e3),u:s?Ll(s,i,zl):void 0}}function Cx(e){var t,{r:i,u:s}=e,o={$referrer:i,$referring_domain:i==null?void 0:i==rf?rf:(t=tf(i))==null?void 0:t.host};if(s){o.$current_url=s;var u=tf(s);o.$host=u?.host,o.$pathname=u?.pathname;var c=wx(s);lt(o,c)}if(i){var f=Ex(i);lt(o,f)}return o}function Mx(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function AM(){try{return new Date().getTimezoneOffset()}catch{return}}var OM={flags:Ol,surveys:vg},kM=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],Ta="main";class cp{constructor(t,i,s){if(s===void 0&&(s=!0),this.Wr={},this.Gr=!1,this.Zr=!1,this.Dt=t,this.Qr=s,this.props={},this.Jr=!1,this.Kr=(u=>{var c="";return u.token&&(c=u.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),u.persistence_name?"ph_"+u.persistence_name:"ph_"+c+"_posthog"}
2)(t),this.Fr=this.Yr(t),this.Zr=this.Xr(t),this.load(),t.debug&&de.info("Persistence loaded",t.persistence,ae({},this.props)),this.update_config(t,t,i),this.save(),G){var o=()=>this.flush();bt(G,"beforeunload",o,{capture:!1}),bt(G,"pagehide",o,{capture:!1})}}ei(){var t,i=(t=this.Dt)==null?void 0:t.persistence_save_debounce_ms;return tn(i)&&i>0?i:0}isDisabled(){return!!this.ti}Yr(t){kM.indexOf(t.persistence.toLowerCase())===-1&&(de.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var i,s=(function(c,f){c===void 0&&(c=[]),f===void 0&&(f=!1);var h=[...lM,...c];return ae({},tt,{F(p){try{var g={};try{g=di.F(p)||{}}catch{}var m,y=JSON.parse(tt.P(p)||"{}");if(f){var b={};for(var S in g){var x=g[S];en(x)||x===""||(b[S]=x)}m=lt(y,b)}else m=lt(g,y);return tt.A(p,m),m}catch{}return null},A(p,g,m,y,b,S){var x=tt.A(p,g,void 0,void 0,S);try{var T={};h.forEach((E=>{g[E]&&(T[E]=g[E])})),Object.keys(T).length&&di.A(p,T,m,y,b,S)}catch(E){tt.D(E)}return x},q(p,g){try{G?.localStorage.removeItem(p),di.q(p,g)}catch(m){tt.D(m)}}})})(t.cookie_persisted_properties||[],t.__preview_cookie_wins_on_conflict||!1),o=!1,u=t.persistence.toLowerCase();return u==="localstorage"&&tt.N()?(i=tt,o=!0):u==="localstorage+cookie"&&s.N()?(i=s,o=!0):u==="sessionstorage"&&Vt.N()?i=Vt:u==="memory"?i=uM:u==="cookie"?i=di:s.N()?(i=s,o=!0):i=di,this.Gr=o,i}ri(t){return this.Kr+"__"+t}Xr(t){return this.Gr&&!!t.split_storage}ii(t){var i=t??this.Dt.feature_flag_cache_ttl_ms;if(!i||0>=i)return!1;var s=this.props[Ol];return!s||typeof s!="number"||Date.now()-s>i}properties(){var t={};return nt(this.props,((i,s)=>{var o=fs(s);if(o?.exposure==="derived"){if(o.shouldSkipFromEventProperties!=null&&o.shouldSkipFromEventProperties(i,s===xs?()=>this.ii():()=>!1))return;o.transformToEventProperties&&lt(t,o.transformToEventProperties(i))}else if(!o||o.exposure==="event"){if(o!=null&&o.shouldSkipFromEventProperties!=null&&o.shouldSkipFromEventProperties(i,(()=>!1)))return;t[s]=i}})),t}load(){if(!this.ti){var t=this.Fr.F(this.Kr);t&&(this.props=lt({},t)),this.Zr&&this.ni()}}ni(){for(var t of mc){var i=tt.F(this.ri(t));if(i&&!Dr(i)){var s=this.si(t);s.persisted=!0,this.oi(t)||(s.fingerprint=this.ai(i,t)),this.li(t,i)||lt(this.props,i)}}}oi(t){return Object.keys(this.props).some((i=>{var s;return((s=fs(i))==null?void 0:s.storageGroup)===t}))}li(t,i){var s=OM[t];if(!s)return!1;var o=i[s],u=this.props[s];return tn(o)&&tn(u)&&u>o}refreshKey(t){var i;if(!this.ti){var s=this.Zr?(i=fs(t))==null?void 0:i.storageGroup:void 0,o=s?tt.F(this.ri(s)):this.Fr.F(this.Kr);if(o&&t in o)this.ui(t,o[t]);else{if(s){var u=this.Fr.F(this.Kr);if(u&&t in u)return void this.ui(t,u[t])}this.hi(t)}}}save(){if(!this.ti){var t=this.ei();t>0?fe(this.ci)&&(this.ci=setTimeout((()=>{this.ci=void 0,this.di()}),t)):this.di()}}flush(){fe(this.ci)||(clearTimeout(this.ci),this.ci=void 0,this.di())}di(){this.ti||(this.Zr?this.vi():this.fi(this.Fr,this.Kr,this.props,Ta))}vi(){var{main:t,groups:i}=this.pi();for(var s of(this.fi(this.Fr,this.Kr,t,Ta),mc)){var o,u=i[s];(!Dr(u)||(o=this.Wr[s])!=null&&o.persisted)&&this.fi(tt,this.ri(s),u,s)}}pi(){var t={},i={};for(var s of mc)i[s]={};return nt(this.props,((o,u)=>{var c,f=(c=fs(u))==null?void 0:c.storageGroup;f?i[f][u]=o:t[u]=o})),{main:t,groups:i}}ai(t,i){if(i===Ta)return JSON.stringify(t)+"|"+this.gi+"|"+this.mi+"|"+this.yi;var s={};return nt(t,((o,u)=>{var c;s[u]=(c=fs(u))!=null&&c.volatile?"__volatile__":o})),JSON.stringify(s)}fi(t,i,s,o){var u=this.si(o);if(o===Ta||u.dirty||fe(u.fingerprint)){var c;try{if((c=this.ai(s,o))===u.fingerprint)return void(u.dirty=!1)}catch{c=void 0}t.A(i,s,this.gi,this.mi,this.yi,this.Dt.debug)?(u.dirty=!1,o!==Ta&&(u.persisted=!0),fe(c)||(u.fingerprint=c)):this.Dt.debug&&de.warn('failed to persist storage entry "'+i+'"; will retry on next save')}}remove(t){var{keepGroupEntries:i=!1}=t===void 0?{}:t;if(fe(this.ci)||(clearTimeout(this.ci),this.ci=void 0),this.Fr.q(this.Kr,!1),this.Fr.q(this.Kr,!0),!i&&this.Qr)for(var s of mc)tt.q(this.ri(s));i?delete this.Wr[Ta]:this.Wr={}}clear(){this.remove(),this.props={}}register_once(t,i,s){if(dt(t)){fe(i)&&(i="None"),this.gi=fe(s)?this.bi:s;var o=!1;if(nt(t,((u,c)=>{this.props.hasOwnProperty(c)&&this.props[c]!==i||(this.ui(c,u),o=!0)})),o)return this.save(),!0}return!1}register(t,i){if(dt(t)){this.gi=fe(i)?this.bi:i;var s=!1;if(nt(t,((o,u)=>{t.hasOwnProperty(u)&&this.props[u]!==o&&(this.ui(u,o),s=!0)})),s)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.hi(t),this.save())}update_campaign_params(){if(!this.Jr){var t=xx(this.Dt.custom_campaign_params,this.Dt.mask_personal_data_properties,this.Dt.custom_personal_data_properties);Dr(gg(t))||this.register(t),this.Jr=!0}}update_search_keyword(){var t;this.register((t=he?.referrer)?Ex(t):{})}update_referrer_info(){var t;this.register_once({$referrer:Tx(),$referring_domain:he!=null&&he.referrer&&((t=tf(he.referrer))==null?void 0:t.host)||rf},void 0)}set_initial_person_info(){this.props[Mv]||this.props[Av]||this.register_once({[Xc]:Rx(this.Dt.mask_personal_data_properties,this.Dt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};nt([Av,Mv],(c=>{var f=this.props[c];f&&nt(f,(function(h,p){t["$initial_"+av(p)]=h}))}));var i,s,o=this.props[Xc];if(o){var u=(i=Cx(o),s={},nt(i,(function(c,f){s["$initial_"+av(f)]=c})),s);lt(t,u)}return t}safe_merge(t){return nt(this.props,(function(i,s){s in t||(t[s]=i)})),t}update_config(t,i,s){this.bi=this.gi=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!s),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie);var o=t.persistence!==i.persistence||!((h,p)=>{if(h.length!==p.length)return!1;var g=[...h].sort(),m=[...p].sort();return g.every(((y,b)=>y===m[b]))})(t.cookie_persisted_properties||[],i.cookie_persisted_properties||[]),u=o?this.Yr(t):this.Fr,c=this.Xr(t);if(o||c!==this.Zr){var f=this.props;this.clear(),this.Fr=u,this.Zr=c,this.props=f,this.save()}}set_disabled(t){this.ti=t,this.ti?this.remove():this.save()}set_cross_subdomain(t){t!==this.mi&&(this.mi=t,this.remove({keepGroupEntries:!0}),this.save())}set_secure(t){t!==this.yi&&(this.yi=t,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(t,i){var s=this.props[ul]||{};s[t]=i,this.ui(ul,s),this.save()}remove_event_timer(t){var i=this.props[ul]||{},s=i[t];return fe(s)||(delete i[t],this.ui(ul,i),this.save()),s}get_property(t){return this.props[t]}set_property(t,i){this.ui(t,i),this.save()}ui(t,i){var s;this.props[t]=i,(s=fs(t))!=null&&s.volatile||this.wi(t)}hi(t){delete this.props[t],this.wi(t)}wi(t){var i,s=(i=fs(t))==null?void 0:i.storageGroup;s&&(this.si(s).dirty=!0)}si(t){return this.Wr[t]||(this.Wr[t]={})}}var Yo={Activation:"events",Cancellation:"cancelEvents"},fp={Popover:"popover",API:"api",Widget:"widget"},DM={Always:"always"},Ki={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},dp={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},zv={Popover:"popover",Inline:"inline"},LM={SHOWN:"product tour shown"},Sb={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},xb=_t("[RateLimiter]");class zM{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=i=>{var s=i.text;
2if(s&&s.length)try{(JSON.parse(s).quota_limited||[]).forEach((o=>{xb.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4}))}catch(o){return void xb.warn('could not rate limit - continuing. Error: "'+o?.message+'"',{text:s})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var i,s,o;t===void 0&&(t=!1);var{captureEventsBurstLimit:u,captureEventsPerSecond:c}=this,f=new Date().getTime(),h=(i=(s=this.instance.persistence)==null?void 0:s.get_property(Cv))!==null&&i!==void 0?i:{tokens:u,last:f};h.tokens+=(f-h.last)/1e3*c,h.last=f,h.tokens>u&&(h.tokens=u);var p=1>h.tokens;return p||t||(h.tokens=Math.max(0,h.tokens-1)),!p||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+c+" events per second and "+u+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=p,(o=this.instance.persistence)==null||o.set_property(Cv,h),{isRateLimited:p,remainingTokens:h.tokens}}isServerRateLimited(t){var i=this.serverLimits[t||"events"]||!1;return i!==!1&&new Date().getTime()<i}}var Ko=_t("[RemoteConfig]");class Ax{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=Ee._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}xi(t){var i,s;(i=Ee.__PosthogExtensions__)!=null&&i.loadExternalDependency?(s=Ee.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}ki(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(i){t(i.json)}})}load(){try{if(this.remoteConfig)return Ko.info("Using preloaded remote config",this.remoteConfig),this.Si(this.remoteConfig),void this.Ci();if(this._instance.Ii())return void Ko.warn("Remote config is disabled. Falling back to local config.");this.xi((t=>{if(!t)return Ko.info("No config found after loading remote JS config. Falling back to JSON."),void this.ki((i=>{this.Si(i),this.Ci()}));this.Si(t),this.Ci()}))}catch(t){Ko.error("Error loading remote config",t)}}stop(){this.Ti&&(clearInterval(this.Ti),this.Ti=void 0)}refresh(){!this._instance.Ii()&&he&&he.visibilityState!=="hidden"&&this._instance.reloadFeatureFlags()}Ci(){var t;if(!this.Ti){var i=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;i!==0&&(this.Ti=setInterval((()=>{this.refresh()}),i))}}Si(t){var i;t||Ko.error("Failed to fetch remote config from PostHog."),this._instance.Si(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(i=this._instance.featureFlags)==null||i.ensureFlagsLoaded())}}var ci={GZipJS:"gzip-js",Base64:"base64"},In=Uint8Array,dn=Uint16Array,Ga=Uint32Array,bg=new In([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]),Sg=new In([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]),wb=new In([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ox=function(e,t){for(var i=new dn(31),s=0;31>s;++s)i[s]=t+=1<<e[s-1];var o=new Ga(i[30]);for(s=1;30>s;++s)for(var u=i[s];i[s+1]>u;++u)o[u]=u-i[s]<<5|s;return[i,o]},kx=Ox(bg,2),Nv=kx[1];kx[0][28]=258,Nv[258]=28;for(var Eb=Ox(Sg,0)[1],Dx=new dn(32768),ht=0;32768>ht;++ht){var Ra=(43690&ht)>>>1|(21845&ht)<<1;Dx[ht]=((65280&(Ra=(61680&(Ra=(52428&Ra)>>>2|(13107&Ra)<<2))>>>4|(3855&Ra)<<4))>>>8|(255&Ra)<<8)>>>1}var bl=function(e,t,i){for(var s=e.length,o=0,u=new dn(t);s>o;++o)++u[e[o]-1];var c,f=new dn(t);for(o=0;t>o;++o)f[o]=f[o-1]+u[o-1]<<1;for(c=new dn(s),o=0;s>o;++o)c[o]=Dx[f[e[o]-1]++]>>>15-e[o];return c},Ls=new In(288);for(ht=0;144>ht;++ht)Ls[ht]=8;for(ht=144;256>ht;++ht)Ls[ht]=9;for(ht=256;280>ht;++ht)Ls[ht]=7;for(ht=280;288>ht;++ht)Ls[ht]=8;var sf=new In(32);for(ht=0;32>ht;++ht)sf[ht]=5;var NM=bl(Ls,9),$M=bl(sf,5),Lx=function(e){return(e/8>>0)+(7&e&&1)},zx=function(e,t,i){(i==null||i>e.length)&&(i=e.length);var s=new(e instanceof dn?dn:e instanceof Ga?Ga:In)(i-t);return s.set(e.subarray(t,i)),s},Pi=function(e,t,i){var s=t/8>>0;e[s]|=i<<=7&t,e[s+1]|=i>>>8},Xo=function(e,t,i){var s=t/8>>0;e[s]|=i<<=7&t,e[s+1]|=i>>>8,e[s+2]|=i>>>16},hp=function(e,t){for(var i=[],s=0;e.length>s;++s)e[s]&&i.push({s,f:e[s]});var o=i.length,u=i.slice();if(!o)return[new In(0),0];if(o==1){var c=new In(i[0].s+1);return c[i[0].s]=1,[c,1]}i.sort((function(N,B){return N.f-B.f})),i.push({s:-1,f:25001});var f=i[0],h=i[1],p=0,g=1,m=2;for(i[0]={s:-1,f:f.f+h.f,l:f,r:h};g!=o-1;)f=i[i[m].f>i[p].f?p++:m++],h=i[p!=g&&i[m].f>i[p].f?p++:m++],i[g++]={s:-1,f:f.f+h.f,l:f,r:h};var y=u[0].s;for(s=1;o>s;++s)u[s].s>y&&(y=u[s].s);var b=new dn(y+1),S=$v(i[g-1],b,0);if(S>t){s=0;var x=0,T=S-t,E=1<<T;for(u.sort((function(N,B){return b[B.s]-b[N.s]||N.f-B.f}));o>s;++s){var A=u[s].s;if(t>=b[A])break;x+=E-(1<<S-b[A]),b[A]=t}for(x>>>=T;x>0;
2){var C=u[s].s;t>b[C]?x-=1<<t-b[C]++-1:++s}for(;s>=0&&x;--s){var M=u[s].s;b[M]==t&&(--b[M],++x)}S=t}return[new In(b),S]},$v=function(e,t,i){return e.s==-1?Math.max($v(e.l,t,i+1),$v(e.r,t,i+1)):t[e.s]=i},Tb=function(e){for(var t=e.length;t&&!e[--t];);for(var i=new dn(++t),s=0,o=e[0],u=1,c=function(h){i[s++]=h},f=1;t>=f;++f)if(e[f]==o&&f!=t)++u;else{if(!o&&u>2){for(;u>138;u-=138)c(32754);u>2&&(c(u>10?u-11<<5|28690:u-3<<5|12305),u=0)}else if(u>3){for(c(o),--u;u>6;u-=6)c(8304);u>2&&(c(u-3<<5|8208),u=0)}for(;u--;)c(o);u=1,o=e[f]}return[i.subarray(0,s),t]},Qo=function(e,t){for(var i=0,s=0;t.length>s;++s)i+=e[s]*t[s];return i},jv=function(e,t,i){var s=i.length,o=Lx(t+2);e[o]=255&s,e[o+1]=s>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var u=0;s>u;++u)e[o+u+4]=i[u];return 8*(o+4+s)},Rb=function(e,t,i,s,o,u,c,f,h,p,g){Pi(t,g++,i),++o[256];for(var m=hp(o,15),y=m[0],b=m[1],S=hp(u,15),x=S[0],T=S[1],E=Tb(y),A=E[0],C=E[1],M=Tb(x),N=M[0],B=M[1],k=new dn(19),D=0;A.length>D;++D)k[31&A[D]]++;for(D=0;N.length>D;++D)k[31&N[D]]++;for(var $=hp(k,7),X=$[0],F=$[1],re=19;re>4&&!X[wb[re-1]];--re);var ie,oe,ue,j,Y=p+5<<3,se=Qo(o,Ls)+Qo(u,sf)+c,pe=Qo(o,y)+Qo(u,x)+c+14+3*re+Qo(k,X)+(2*k[16]+3*k[17]+7*k[18]);if(se>=Y&&pe>=Y)return jv(t,g,e.subarray(h,h+p));if(Pi(t,g,1+(se>pe)),g+=2,se>pe){ie=bl(y,b),oe=y,ue=bl(x,T),j=x;var W=bl(X,F);for(Pi(t,g,C-257),Pi(t,g+5,B-1),Pi(t,g+10,re-4),g+=14,D=0;re>D;++D)Pi(t,g+3*D,X[wb[D]]);g+=3*re;for(var R=[A,N],I=0;2>I;++I){var K=R[I];for(D=0;K.length>D;++D)Pi(t,g,W[ne=31&K[D]]),g+=X[ne],ne>15&&(Pi(t,g,K[D]>>>5&127),g+=K[D]>>>12)}}else ie=NM,oe=Ls,ue=$M,j=sf;for(D=0;f>D;++D)if(s[D]>255){var ne;Xo(t,g,ie[257+(ne=s[D]>>>18&31)]),g+=oe[ne+257],ne>7&&(Pi(t,g,s[D]>>>23&31),g+=bg[ne]);var ce=31&s[D];Xo(t,g,ue[ce]),g+=j[ce],ce>3&&(Xo(t,g,s[D]>>>5&8191),g+=Sg[ce])}else Xo(t,g,ie[s[D]]),g+=oe[s[D]];return Xo(t,g,ie[256]),g+oe[256]},jM=new Ga([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),PM=(function(){for(var e=new Ga(256),t=0;256>t;++t){for(var i=t,s=9;--s;)i=(1&i&&3988292384)^i>>>1;e[t]=i}return e})(),pp=function(e,t,i){for(;i;++t)e[t]=i,i>>>=8};function BM(e,t){t===void 0&&(t={});var i=(function(){var m=4294967295;return{p(y){for(var b=m,S=0;y.length>S;++S)b=PM[255&b^y[S]]^b>>>8;m=b},d(){return 4294967295^m}}})(),s=e.length;i.p(e);var o,u,c,f,h,p=(f=10+((o=t).filename&&o.filename.length+1||0),h=8,(function(m,y,b,S,x,T){var E=m.length,A=new In(S+E+5*(1+Math.floor(E/7e3))+x),C=A.subarray(S,A.length-x),M=0;if(!y||8>E)for(var N=0;E>=N;N+=65535){var B=N+65535;E>B?M=jv(C,M,m.subarray(N,B)):(C[N]=!0,M=jv(C,M,m.subarray(N,E)))}else{for(var k=jM[y-1],D=k>>>13,$=8191&k,X=(1<<b)-1,F=new dn(32768),re=new dn(X+1),ie=Math.ceil(b/3),oe=2*ie,ue=function(ir){return(m[ir]^m[ir+1]<<ie^m[ir+2]<<oe)&X},j=new Ga(25e3),Y=new dn(288),se=new dn(32),pe=0,W=0,R=(N=0,0),I=0,K=0;E>N;++N){var ne=ue(N),ce=32767&N,le=re[ne];if(F[ce]=le,re[ne]=ce,N>=I){var ge=E-N;if((pe>7e3||R>24576)&&ge>423){M=Rb(m,C,0,j,Y,se,W,R,K,N-K,M),R=pe=W=0,K=N;for(var _e=0;286>_e;++_e)Y[_e]=0;for(_e=0;30>_e;++_e)se[_e]=0}var ve=2,st=0,pt=$,at=ce-le&32767;if(ge>2&&ne==ue(N-at))for(var Nt=Math.min(D,ge)-1,ot=Math.min(32767,N),Zt=Math.min(258,ge);ot>=at&&--pt&&ce!=le;){if(m[N+ve]==m[N+ve-at]){for(var vt=0;Zt>vt&&m[N+vt]==m[N+vt-at];++vt);if(vt>ve){if(ve=vt,st=at,vt>Nt)break;var yn=Math.min(at,vt-2),Vn=0;for(_e=0;yn>_e;++_e){var Tt=N-at+_e+32768&32767,Yn=Tt-F[Tt]+32768&32767;Yn>Vn&&(Vn=Yn,le=Tt)}}}at+=(ce=le)-(le=F[ce])+32768&32767}if(st){j[R++]=268435456|Nv[ve]<<18|Eb[st];var _i=31&Nv[ve],Ps=31&Eb[st];W+=bg[_i]+Sg[Ps],++Y[257+_i],++se[Ps],I=N+ve,++pe}else j[R++]=m[N],++Y[m[N]]}}M=Rb(m,C,!0,j,Y,se,W,R,K,N-K,M)}return zx(A,0,S+Lx(M)+x)})(u=e,(c=t).level==null?6:c.level,c.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(u.length)))):12+c.mem,f,h)),g=p.length;return(function(m,y){var b=y.filename;if(m[0]=31,m[1]=139,m[2]=8,m[8]=2>y.level?4:y.level==9?2:0,m[9]=3,y.mtime!=0&&pp(m,4,Math.floor(new Date(y.mtime||Date.now())/1e3)),b){m[3]=8;for(var S=0;b.length>=S;++S)m[S+10]=b.charCodeAt(S)}})(p,t),pp(p,g-8,i.d()),pp(p,g-4,s),p}var UM=!!iv||!!nv,Nx="text/plain",Dc=!1,HM=(e,t)=>{var[i,s]=e.split("#"),[o,u]=i.split("?");if(!u)return e;var c=u.split("&").filter((f=>f.split("=")[0]!==t)).join("&");return o+(c?"?"+c:"")+(s?"#"+s:"")},$x=function(e,t,i){var s;i===void 0&&(i=!0);var[o,u]=e.split("?"),c=ae({},t),f=(s=u?.split("&").map((p=>{var g,[m,y]=p.split("="),b=i&&(g=c[m])!==null&&g!==void 0?g:y;return delete c[m],m+"="+b})))!==null&&s!==void 0?s:[],h=(function(p,g){var m,y;g===void 0&&(g="&");var b=[];return nt(p,(function(S,x){fe(S)||fe(x)||x==="undefined"||(m=encodeURIComponent((T=>
2T instanceof File)(S)?S.name:S.toString()),y=encodeURIComponent(x),b[b.length]=y+"="+m)})),b.join(g)})(c);return h&&f.push(h),o+"?"+f.join("&")},Na=(e,t)=>JSON.stringify(e,((i,s)=>typeof s=="bigint"?s.toString():s),t),Cb=e=>{if(e.Or)return e.Or;var{data:t,compression:i}=e;if(t){if(i===ci.GZipJS){var s=BM((function(f,h){var p=f.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(f);for(var g=new In(f.length+(f.length>>>1)),m=0,y=function(T){g[m++]=T},b=0;p>b;++b){if(m+5>g.length){var S=new In(m+8+(p-b<<1));S.set(g),g=S}var x=f.charCodeAt(b);128>x?y(x):2048>x?(y(192|x>>>6),y(128|63&x)):x>55295&&57344>x?(y(240|(x=65536+(1047552&x)|1023&f.charCodeAt(++b))>>>18),y(128|x>>>12&63),y(128|x>>>6&63),y(128|63&x)):(y(224|x>>>12),y(128|x>>>6&63),y(128|63&x))}return zx(g,0,m)})(Na(t)),{mtime:0});return{contentType:Nx,body:s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength),estimatedSize:s.byteLength}}if(i===ci.Base64){var o=(function(f){return f&&btoa(encodeURIComponent(f).replace(/%([0-9A-F]{2})/g,((h,p)=>String.fromCharCode(parseInt(p,16)))))})(Na(t)),u=(f=>"data="+encodeURIComponent(typeof f=="string"?f:Na(f)))(o);return{contentType:"application/x-www-form-urlencoded",body:u,estimatedSize:new Blob([u]).size}}var c=Na(t);return{contentType:"application/json",body:c,estimatedSize:new Blob([c]).size}}},vp=e=>{var t,i,s,o=Cb(e);return!o||(i=e.compression,s=Dl(e.url,"compression"),i!==W0.GZipJS&&s!==W0.GZipJS&&s!=="gzip")||((t=o.body)instanceof ArrayBuffer?rv(new Uint8Array(t)):ArrayBuffer.isView(t)&&rv(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)))?{url:e.url,encodedBody:o}:(Dc=!0,{url:HM(e.url,"compression"),encodedBody:Cb(ae({},e,{compression:void 0,Or:void 0}))})},FM=(function(){var e=Pt((function*(t){var i=Na(t.data),s=yield(function(u,c,f){return sv.apply(this,arguments)})(i,Et.DEBUG,{rethrow:!0});if(!s)return t;var o=yield s.arrayBuffer();return ae({},t,{Or:{contentType:Nx,body:o,estimatedSize:o.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),Mb=(e,t)=>$x(e,{_:new Date().getTime().toString(),ver:Et.JS_SDK_VERSION,compression:t}),Lc=[];nv&&Lc.push({transport:"fetch",method(e){var t,{url:i,encodedBody:s}=vp(e),{contentType:o,body:u,estimatedSize:c}=s??{},f=new Headers;nt(e.headers,(function(m,y){f.append(y,m)})),o&&f.append("Content-Type",o);var h=null,p=null;if(Q0){var g=new Q0;h={signal:g.signal,timeout:setTimeout((()=>{var m,y;m=e.timeout,(y=new Error("PostHog request timed out"+(m?" after "+m+"ms":""))).name="AbortError",g.abort(p=y)}),e.timeout)}}nv(i,ae({method:e?.method||"GET",headers:f,keepalive:e.method==="POST"&&52428.8>(c||0),body:u,signal:(t=h)==null?void 0:t.signal},e.fetchOptions)).then((m=>m.text().then((y=>{var b={statusCode:m.status,text:y};if(m.status===200)try{b.json=JSON.parse(y)}catch(S){de.error(S)}e.callback==null||e.callback(b)})))).catch((m=>{m===p?de.warn(m):de.error(m),e.callback==null||e.callback({statusCode:0,error:m})})).finally((()=>h?clearTimeout(h.timeout):null))}}),iv&&Lc.push({transport:"XHR",method(e){var t=new iv,{url:i,encodedBody:s}=vp(e);t.open(e.method||"GET",i,!0);var{contentType:o,body:u}=s??{};nt(e.headers,(function(c,f){t.setRequestHeader(f,c)})),o&&t.setRequestHeader("Content-Type",o),e.timeout&&(t.timeout=e.timeout),t.onreadystatechange=()=>{if(t.readyState===4){var c={statusCode:t.status,text:t.responseText};if(t.status===200)try{c.json=JSON.parse(t.responseText)}catch{}e.callback==null||e.callback(c)}},t.send(u)}}),Mn!=null&&Mn.sendBeacon&&Lc.push({transport:"sendBeacon",method(e){try{var{url:t,encodedBody:i}=vp(e),{contentType:s,body:o}=i??{};if(!o)return;var u=o instanceof Blob?o:new Blob([o],{type:s});Mn.sendBeacon(t,u)}catch{}}});var Pv=3e3;class qM{constructor(t,i){this.Ei=!0,this.Mi=[],this.Ri=hi(i?.flush_interval_ms||Pv,250,5e3,de.createLogger("flush interval"),Pv),this.Pi=t}enqueue(t){this.Mi.push(t),this.Oi||this.Li()}unload(){this.Ai();var t=this.Mi.length>0?this.Fi():{},i=Object.values(t);[...i.filter((s=>s.url.indexOf("/e")===0)),...i.filter((s=>s.url.indexOf("/e")!==0))].map((s=>{this.Pi(ae({},s,{transport:"sendBeacon"}))}))}enable(){this.Ei=!1,this.Li()}Li(){var t=this;this.Ei||(this.Oi=setTimeout((()=>
2{if(this.Ai(),this.Mi.length>0){var i=this.Fi(),s=function(){var u=i[o],c=new Date().getTime();u.data&&ze(u.data)&&nt(u.data,(f=>{f.offset=Math.abs(f.timestamp-c),delete f.timestamp})),t.Pi(u)};for(var o in i)s()}}),this.Ri))}Ai(){clearTimeout(this.Oi),this.Oi=void 0}Fi(){var t={};return nt(this.Mi,(i=>{var s,o=i,u=(o?o.batchKey:null)||o.url;fe(t[u])&&(t[u]=ae({},o,{data:[]})),(s=t[u].data)==null||s.push(o.data)})),this.Mi=[],t}}var IM=["retriesPerformedSoFar"];class GM{constructor(t){this.Ni=!1,this.Di=3e3,this.Mi=[],this._instance=t,this.Mi=[],this.$i=!0,!fe(G)&&"onLine"in G.navigator&&(this.$i=G.navigator.onLine,this.qi=()=>{this.$i=!0,this.ji()},this.Bi=()=>{this.$i=!1},bt(G,"online",this.qi),bt(G,"offline",this.Bi))}get length(){return this.Mi.length}retriableRequest(t){var{retriesPerformedSoFar:i}=t,s=_1(t,IM);Fi(i)&&(s.url=$x(s.url,{retry_count:i})),this._instance._send_request(ae({},s,{callback:o=>{if(o.statusCode!==200&&(400>o.statusCode||o.statusCode>=500)){if((o.statusCode===0?3:10)>(i??0))return void this.br(ae({retriesPerformedSoFar:i},s));o.statusCode===0&&de.warn("Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after "+(i??0)+" retries.")}s.callback==null||s.callback(o)}}))}br(t){var i=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=i+1;var s=(function(c){var f=3e3*Math.pow(2,c),h=f/2,p=Math.min(18e5,f),g=Math.random()-.5;return Math.ceil(p+g*(p-h))})(i),o=Date.now()+s;this.Mi.push({retryAt:o,requestOptions:t});var u="Enqueued failed request for retry in "+s;navigator.onLine||(u+=" (Browser is offline)"),de.warn(u),this.Ni||(this.Ni=!0,this.Hi())}Hi(){if(this.Ui&&clearTimeout(this.Ui),this.Mi.length===0)return this.Ni=!1,void(this.Ui=void 0);this.Ui=setTimeout((()=>{this.$i&&this.Mi.length>0&&this.ji(),this.Hi()}),this.Di)}ji(){var t=Date.now(),i=[],s=this.Mi.filter((u=>t>u.retryAt||(i.push(u),!1)));if(this.Mi=i,s.length>0)for(var{requestOptions:o}of s)this.retriableRequest(o)}unload(){for(var{requestOptions:t}of(this.Ui&&(clearTimeout(this.Ui),this.Ui=void 0),this.Ni=!1,fe(G)||(this.qi&&(G.removeEventListener("online",this.qi),this.qi=void 0),this.Bi&&(G.removeEventListener("offline",this.Bi),this.Bi=void 0)),this.Mi))try{this._instance._send_request(ae({},t,{transport:"sendBeacon"}))}catch(i){de.error(i)}this.Mi=[]}}class VM{constructor(t){this.zi=()=>{var i,s,o,u;this.Vi||(this.Vi={});var c=this.scrollElement(),f=this.scrollY(),h=c?Math.max(0,c.scrollHeight-c.clientHeight):0,p=f+(c?.clientHeight||0),g=c?.scrollHeight||0;this.Vi.lastScrollY=Math.ceil(f),this.Vi.maxScrollY=Math.max(f,(i=this.Vi.maxScrollY)!==null&&i!==void 0?i:0),this.Vi.maxScrollHeight=Math.max(h,(s=this.Vi.maxScrollHeight)!==null&&s!==void 0?s:0),this.Vi.lastContentY=p,this.Vi.maxContentY=Math.max(p,(o=this.Vi.maxContentY)!==null&&o!==void 0?o:0),this.Vi.maxContentHeight=Math.max(g,(u=this.Vi.maxContentHeight)!==null&&u!==void 0?u:0)},this._instance=t}get Wi(){return this._instance.config.scroll_root_selector}getContext(){return this.Vi}resetContext(){var t=this.Vi;return setTimeout(this.zi,0),t}startMeasuringScrollPosition(){bt(G,"scroll",this.zi,{capture:!0}),bt(G,"scrollend",this.zi,{capture:!0}),bt(G,"resize",this.zi)}scrollElement(){if(!this.Wi)return G?.document.documentElement;var t=ze(this.Wi)?this.Wi:[this.Wi];for(var i of t){var s=G?.document.querySelector(i);if(s)return s}}Gi(t){var i=t==="y"?"scrollTop":"scrollLeft";if(this.Wi){var s=this.scrollElement();return s&&s[i]||0}return G?t==="y"?G.scrollY||G.pageYOffset||G.document.documentElement.scrollTop||0:G.scrollX||G.pageXOffset||G.document.documentElement.scrollLeft||0:0}scrollY(){return this.Gi("y")}scrollX(){return this.Gi("x")}}var YM=e=>Rx(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);
2class Ab{constructor(t,i,s,o){this.Zi=u=>{var c=this.Qi();if(!c||c.sessionId!==u){var f={sessionId:u,props:this.Ji(this._instance)};this.Ki.register({[Rv]:f})}},this._instance=t,this.Yi=i,this.Ki=s,this.Ji=o||YM,this.Yi.onSessionId(this.Zi)}Qi(){return this.Ki.props[Rv]}getSetOnceProps(){var t,i=(t=this.Qi())==null?void 0:t.props;return i?"r"in i?Cx(i):{$referring_domain:i.referringDomain,$pathname:i.initialPathName,utm_source:i.utm_source,utm_campaign:i.utm_campaign,utm_medium:i.utm_medium,utm_content:i.utm_content,utm_term:i.utm_term}:{}}getSessionProps(){var t={};return nt(gg(this.getSetOnceProps()),((i,s)=>{s==="$current_url"&&(s="url"),t["$session_entry_"+av(s)]=i})),t}}class xg{constructor(){this.Xi={}}on(t,i){return this.Xi[t]||(this.Xi[t]=[]),this.Xi[t].push(i),()=>{this.Xi[t]=this.Xi[t].filter((s=>s!==i))}}emit(t,i){for(var s of this.Xi[t]||[])s(i);for(var o of this.Xi["*"]||[])o(t,i)}}var Zo=_t("[SessionId]");class Ob{on(t,i){return this.en.on(t,i)}constructor(t,i,s){var o;if(this.tn=null,this.rn=[],this.nn=void 0,this.sn=!1,this.en=new xg,this.an=(p,g)=>!(!Fi(p)||!Fi(g))&&Math.abs(p-g)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===Yi)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Dt=t.config,this.Ki=t.persistence,this.ln=void 0,this.un=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.hn=i||Vi,this.cn=s||Vi;var u=this.Dt.persistence_name||this.Dt.token;if(this._sessionTimeoutMs=1e3*hi(this.Dt.session_idle_timeout_seconds||1800,60,36e3,Zo.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.dn(),this.vn="ph_"+u+"_window_id",this.fn="ph_"+u+"_primary_window_exists",this.pn()){var c=Vt.F(this.vn),f=Vt.F(this.fn);c&&!f?this.ln=c:Vt.q(this.vn),Vt.A(this.fn,!0)}if((o=this.Dt.bootstrap)!=null&&o.sessionID)try{var h=(p=>{var g=this.Dt.bootstrap.sessionID.replace(/-/g,"");if(g.length!==32)throw new Error("Not a valid UUID");if(g[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(g.substring(0,12),16)})();this.gn(this.Dt.bootstrap.sessionID,new Date().getTime(),h)}catch(p){Zo.error("Invalid sessionID in bootstrap",p)}this.mn()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return fe(this.rn)&&(this.rn=[]),this.rn.push(t),this.un&&t(this.un,this.ln),()=>{this.rn=this.rn.filter((i=>i!==t))}}pn(){return this.Dt.persistence!=="memory"&&!this.Ki.ti&&Vt.N()}yn(t){t!==this.ln&&(this.ln=t,this.pn()&&Vt.A(this.vn,t))}bn(){return this.ln?this.ln:this.pn()?Vt.F(this.vn):null}_n(t){var i=this.tn;return!en(i)&&!en(t)&&5e3>Math.abs(t-i)}gn(t,i,s){var o=i!==this._sessionActivityTimestamp,u=!(t!==this.un||s!==this._sessionStartTimestamp);this._sessionStartTimestamp=s,this._sessionActivityTimestamp=i,this.un=t,u&&!o||u&&this._n(i)||(this.tn=i,this.Ki.register({[za]:[i,t,s]}))}wn(){var t,i=(t=this.Dt)==null?void 0:t.persistence_save_debounce_ms;return Fi(i)&&i>0}xn(){this.wn()?this.Ki.refreshKey(za):(this.Ki.flush(),this.Ki.load())}kn(){var t;if(!en(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.tn){this.xn();var[,i,s]=this.Sn();i===this.un&&s===this._sessionStartTimestamp&&(this.tn=this._sessionActivityTimestamp,this.Ki.register({[za]:[this._sessionActivityTimestamp,(t=this.un)!==null&&t!==void 0?t:null,this._sessionStartTimestamp]}),this.Ki.flush())}}Cn(){var[t]=this.Sn(),i=Fi(t)?t:0,s=Fi(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(i,s)}In(t){return this.xn(),this.an(t,this.Cn())}Sn(){var t=this.Ki.props[za];return ze(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.tn=null,clearTimeout(this.Tn),this.Tn=void 0,this.gn(null,null,null)}destroy(){this.sn=!0,this.kn(),clearTimeout(this.Tn),this.Tn=void 0,this.nn&&G&&(G.removeEventListener(Jc,this.nn,{capture:!1}),this.nn=void 0),this.rn=[]}mn(){this.nn=()=>{this.kn(),this.pn()&&Vt.q(this.fn)},bt(G,Jc,this.nn,{capture:!1})}checkAndGetSessionAndWindowId(t,i){if(t===void 0&&(t=!1),i===void 0&&(i=null),this.Dt.cookieless_mode===Yi)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var s=i||new Date().getTime(),[,o,u]=this.Sn(),c=this.Cn(),f=this.bn(),h=Fi(u)&&Math.abs(s-u)>864e5,p=!1,g=!1,m=!o,y=o,b=!m&&!t&&this.an(s,c);b&&((b=this.In(s))||Zo.info("cross-tab refresh kept the session alive",{sessionId:o}),[,o,u]=this.Sn()),m||b||h?(o=this.hn(),f=this.cn(),Zo.info("new session ID generated",{sessionId:o,windowId:f,changeReason:{noSessionId:m,activityTimeout:b,sessionPastMaximumLength:h}}),u=s,p=!0):(f||(f=this.cn(),p=!0),(g=o!==y)&&(Zo.info("adopted cross-tab session id",{sessionId:o,windowId:f}),p=!0));var S=Fi(c)&&t&&!h?c:s,x=Fi(u)?u:new Date().getTime();this.yn(f),this.gn(o,S,x),t||this.dn();var T={noSessionId:m,activityTimeout:b,sessionPastMaximumLength:h,crossTabAdoption:g};
2return p&&this.rn.forEach((E=>E(o,f,T))),{sessionId:o,windowId:f,sessionStartTimestamp:x,changeReason:p?T:void 0,lastActivityTimestamp:c}}dn(){this.sn||(clearTimeout(this.Tn),this.Tn=setTimeout((()=>{if(!this.sn)if(this.In(new Date().getTime())){var t=this.un;this.resetSessionId(),this.en.emit("forcedIdleReset",{idleSessionId:t})}else this.dn()}),1.1*this.sessionTimeoutMs))}}var jx=function(e,t){if(!e)return!1;var i=e.userAgent;if(i&&tb(i,t))return!0;try{var s=e?.userAgentData;if(s!=null&&s.brands&&s.brands.some((o=>tb(o?.brand,t))))return!0}catch{}return!!e.webdriver},af=function(e,t){if(!(function(i){try{new RegExp(i)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function kb(e,t,i){return Na({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:i})}var Px={exact:(e,t)=>t.some((i=>e.some((s=>i===s)))),is_not:(e,t)=>t.every((i=>e.every((s=>i!==s)))),regex:(e,t)=>t.some((i=>e.some((s=>af(i,s))))),not_regex:(e,t)=>t.every((i=>e.every((s=>!af(i,s))))),icontains:(e,t)=>t.map(_c).some((i=>e.map(_c).some((s=>i.includes(s))))),not_icontains:(e,t)=>t.map(_c).every((i=>e.map(_c).every((s=>!i.includes(s))))),gt:(e,t)=>t.some((i=>{var s=parseFloat(i);return!isNaN(s)&&e.some((o=>s>parseFloat(o)))})),lt:(e,t)=>t.some((i=>{var s=parseFloat(i);return!isNaN(s)&&e.some((o=>s<parseFloat(o)))}))},_c=e=>e.toLowerCase();function Bx(e,t){return!e||Object.entries(e).every((i=>{var[s,o]=i,u=t?.[s];if(fe(u)||en(u))return!1;var c=[String(u)],f=Px[o.operator];return!!f&&f(o.values,c)}))}var Bv="custom",Db="i.posthog.com",KM=/^\/static\//;class XM{constructor(t){this.En={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,i=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return i||(i=this.apiHost.replace("."+Db,".posthog.com")),i==="https://app.posthog.com"?"https://us.posthog.com":i}get region(){return this.En[this.apiHost]||(this.En[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":Bv),this.En[this.apiHost]}Mn(t){if(KM.test(t)){var i=this.instance.config.asset_host;if(typeof i=="string")return i.trim().replace(/\/$/,"")||void 0}}endpointFor(t,i){if(i===void 0&&(i=""),i&&(i=i[0]==="/"?i:"/"+i),t==="ui")return this.uiHost+i;if(t==="flags")return this.flagsApiHost+i;if(t==="assets"){var s=this.Mn(i);if(s)return""+s+i}if(this.region===Bv)return this.apiHost+i;var o=Db+i;switch(t){case"assets":return"https://"+this.region+"-assets."+o;case"api":return"https://"+this.region+"."+o}}}var Je=_t("[Surveys]"),Uv="seenSurvey_",QM=[fp.Popover,fp.Widget,fp.API],ZM={ignoreConditions:!1,ignoreDelay:!1,displayType:zv.Popover},JM=_t("[PostHog ExternalIntegrations]"),WM={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class eA{constructor(t){this._instance=t}qr(t,i){var s;(s=Ee.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this._instance,t,(o=>{if(o)return JM.error("failed to load script",o);i()}))}startIfEnabledOrStop(){var t=this,i=function(c){var f,h,p;!o||(f=Ee.__PosthogExtensions__)!=null&&(f=f.integrations)!=null&&f[c]||t.qr(WM[c],(()=>{var g;(g=Ee.__PosthogExtensions__)==null||(g=g.integrations)==null||(g=g[c])==null||g.start(t._instance)})),!o&&(h=Ee.__PosthogExtensions__)!=null&&(h=h.integrations)!=null&&h[c]&&((p=Ee.__PosthogExtensions__)==null||(p=p.integrations)==null||(p=p[c])==null||p.stop())};for(var[s,o]of Object.entries((u=this._instance.config.integrations)!==null&&u!==void 0?u:{})){var u;i(s)}}}var Ca,Sl={},gp=0,Hv=()=>{},Lb='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Jo="Surveys module not available",zb="sanitize_properties is deprecated. Use before_send instead",Ux="Invalid value for property_denylist config: ",Da="posthog",Hx=!UM&&fn?.indexOf("MSIE")===-1&&fn?.indexOf("Mozilla")===-1,Nb=e=>{var t;return ae({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:iM(he?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:Hv,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:Gt&&ut(Gt?.search)&&Gt.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,strict_script_versioning:!1,enable_recording_console_log:void 0,secure_cookie:(G==null||(t=G.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(i){de.error("Bad HTTP status: "+i.statusCode+" "+i.text)},get_device_id:i=>i,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:kv,before_send:void 0,request_queue_config:{flush_interval_ms:Pv},error_tracking:{},_onCapture:Hv},(i=>({rageclick:i&&i>="2026-05-30"?{content_ignorelist:vM,ignore_text_selection:!0}
2:!i||"2025-11-30">i||{content_ignorelist:!0},capture_pageview:!i||"2025-05-24">i||"history_change",session_recording:i&&i>="2026-05-30"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6}}:i&&i>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:i&&i>="2026-01-30"?"head":"body",internal_or_test_user_hostname:i&&i>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:i&&i>="2026-05-30"?250:0,split_storage:!(!i||"2026-05-30">i),detect_google_search_app:!(!i||"2026-05-30">i)}))(e))},tA=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"]],$b=e=>{var t={};for(var[i,s]of tA)fe(e[i])||(t[s]=e[i]);var o=lt({},t,e),u=e.__preview_external_dependency_versioned_paths;return fe(u)||(fe(e.strict_script_versioning)&&(o.strict_script_versioning=!!u),ut(u)&&fe(e.asset_host)&&(o.asset_host=u)),ze(e.property_blacklist)&&(fe(e.property_denylist)?o.property_denylist=e.property_blacklist:ze(e.property_denylist)?o.property_denylist=[...e.property_blacklist,...e.property_denylist]:de.error(Ux+e.property_denylist)),o};class nA{constructor(){this.__forceAllowLocalhost=!1}get Rn(){return this.__forceAllowLocalhost}set Rn(t){de.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class qn{Pn(t,i){if(t){var s=this.On.indexOf(t);s!==-1&&this.On.splice(s,1)}return this.On.push(i),i.initialize==null||i.initialize(),i}Ln(){return this.config.cookieless_mode===Yi||this.config.cookieless_mode===bs&&this.consent.isRejected()}get decideEndpointWasHit(){var t,i;return(t=(i=this.featureFlags)==null?void 0:i.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,i;return(t=(i=this.featureFlags)==null?void 0:i.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new nA,this.An=!1,this.version=Et.LIB_VERSION,this.Fn=new xg,this.On=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=Nb(),this.SentryIntegration=EM,this.sentryIntegration=s=>(function(o,u){var c=Sx(o,u);return{name:bx,processEvent:f=>c(f)}})(this,s),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Nn=!1,this.Dn=null,this.$n=null,this.qn=null,this.scrollManager=new VM(this),this.pageViewManager=new _b(this),this.rateLimiter=new zM(this),this.requestRouter=new XM(this),this.consent=new cM(this),this.externalIntegrations=new eA(this);var i=(t=qn.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=i.featureFlags&&new i.featureFlags(this),this.toolbar=i.toolbar&&new i.toolbar(this),this.surveys=i.surveys&&new i.surveys(this),this.conversations=i.conversations&&new i.conversations(this),this.logs=i.logs&&new i.logs(this),this.experiments=i.experiments&&new i.experiments(this),this.exceptions=i.exceptions&&new i.exceptions(this),this.people={set:(s,o,u)=>{var c=ut(s)?{[s]:o}:s;this.setPersonProperties(c),u?.({})},set_once:(s,o,u)=>{var c=ut(s)?{[s]:o}:s;this.setPersonProperties(void 0,c),u?.({})}},this.on("eventCaptured",(s=>de.info('send "'+s?.event+'"',s)))}init(t,i,s){if(s&&s!==Da){var o,u=(o=Sl[s])!==null&&o!==void 0?o:new qn;return u._init(t,i,s),Sl[s]=u,Sl[Da][s]=u,u}return this._init(t,i,s)}_init(t,i,s){var o,u;i===void 0&&(i={});var c=ut(t)?t.trim():"";if(!c)return de.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={},i.debug=this.jn(i.debug),this.Bn=i,this.Hn=[],i.person_profiles?this.$n=i.person_profiles:i.process_person&&(this.$n=i.process_person);var f=Nb(i.defaults),h=$b(i),p=lt({},f,h,{name:s,token:c});dt(f.rageclick)&&dt(h.rageclick)&&(p.rageclick=lt({},f.rageclick,h.rageclick)),dt(f.session_recording)&&dt(h.session_recording)&&(p.session_recording=lt({},f.session_recording,h.session_recording)),this.set_config(p),this.config.on_xhr_error&&de.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=i.disable_compression?void 0:ci.GZipJS;var g=this.Un();this.persistence=new cp(this.config,g),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new cp(ae({},this.config,{persistence:"sessionStorage"}),g,!1);var m=ae({},this.persistence.props),y=ae({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.zn=new qM((M=>this.Vn(M)),this.config.request_queue_config),this.Wn=new GM(this),this.__request_queue=[];var b=this.Ln();if(b||(this.sessionManager=new Ob(this),this.sessionPropsManager=new Ab(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(de.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.Gn(b)}),0)):(de.info("Initializing extensions synchronously"),this.Gn(b)),Et.DEBUG=Et.DEBUG||this.config.debug,Et.DEBUG&&de.info("Starting in debug mode",{this:this,config:i,thisC:ae({},this.config),p:m,s:y}),!this.config.identity_distinct_id||(o=i.bootstrap)!=null&&o.distinctID||(i.bootstrap=ae({},i.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((u=i.bootstrap)==null?void 0:u.distinctID)!==void 0){var S=i.bootstrap.distinctID,x=this.get_distinct_id(),T=this.persistence.get_property(Zn);if(i.bootstrap.isIdentifiedID&&x!=null&&x!==S&&T===wa)this.identify(S);else if(i.bootstrap.isIdentifiedID&&x!=null&&x!==S&&T===Ea)de.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var E=this.config.get_device_id(Vi()),A=i.bootstrap.isIdentifiedID?E:S;this.persistence.set_property(Zn,i.bootstrap.isIdentifiedID?Ea:wa),this.register({distinct_id:S,$device_id:A})}}if(b)this.register_once({distinct_id:hc,$device_id:null},"");else if(!this.get_distinct_id()){var C=this.config.get_device_id(Vi());this.register_once({distinct_id:C,$device_id:C},""),this.persistence.set_property(Zn,wa)}return bt(G,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),i.segment?(function(M,N){var B=M.config.segment;if(!B)return N();(function(k,D){var $=k.config.segment;if(!$)return D();var X=re=>{var ie=()=>re.anonymousId()||Vi();k.config.get_device_id=ie,re.id()&&(k.register({distinct_id:re.id(),$device_id:ie()}),k.persistence.set_property(Zn,Ea)),D()},F=$.user();"then"in F&&Gi(F.then)?F.then(X):X(F)})(M,(()=>{B.register((k=>{Promise&&Promise.resolve||up.warn("This browser does not have Promise support, and can not use the segment integration");var D=($,X)=>{if(!X)return $;$.event.userId||$.event.anonymousId===k.get_distinct_id()||(up.info("No userId set, resetting PostHog"),k.reset()),$.event.userId&&$.event.userId!==k.get_distinct_id()&&(up.info("UserId set, identifying with PostHog"),k.identify($.event.userId)
2);var F=k.calculateEventProperties(X,$.event.properties);return $.event.properties=Object.assign({},F,$.event.properties),$};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:$=>D($,$.event.event),page:$=>D($,ka),identify:$=>D($,ap),screen:$=>D($,"$screen")}})(M)).then((()=>{N()}))}))})(this,(()=>this.Zn())):this.Zn(),Gi(this.config._onCapture)&&this.config._onCapture!==Hv&&(de.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(M=>this.config._onCapture(M.event,M)))),this.config.ip&&de.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}Gn(t){var i,s,o,u,c,f,h,p=performance.now(),g=ae({},qn.__defaultExtensionClasses,this.config.__extensionClasses),m=[];g.featureFlags&&this.On.push(this.featureFlags=(i=this.featureFlags)!==null&&i!==void 0?i:new g.featureFlags(this)),g.exceptions&&this.On.push(this.exceptions=(s=this.exceptions)!==null&&s!==void 0?s:new g.exceptions(this)),g.historyAutocapture&&this.On.push(this.historyAutocapture=new g.historyAutocapture(this)),g.tracingHeaders&&this.On.push(this.tracingHeaders=new g.tracingHeaders(this)),g.siteApps&&this.On.push(this.siteApps=new g.siteApps(this)),g.sessionRecording&&!t&&this.On.push(this.sessionRecording=new g.sessionRecording(this)),this.config.disable_scroll_properties||m.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),g.autocapture&&this.On.push(this.autocapture=new g.autocapture(this)),g.surveys&&this.On.push(this.surveys=(o=this.surveys)!==null&&o!==void 0?o:new g.surveys(this)),g.logs&&this.On.push(this.logs=(u=this.logs)!==null&&u!==void 0?u:new g.logs(this)),g.conversations&&this.On.push(this.conversations=(c=this.conversations)!==null&&c!==void 0?c:new g.conversations(this)),g.productTours&&this.On.push(this.productTours=new g.productTours(this)),g.heatmaps&&this.On.push(this.heatmaps=new g.heatmaps(this)),g.webVitalsAutocapture&&this.On.push(this.webVitalsAutocapture=new g.webVitalsAutocapture(this)),g.exceptionObserver&&this.On.push(this.exceptionObserver=new g.exceptionObserver(this)),g.deadClicksAutocapture&&this.On.push(this.deadClicksAutocapture=new g.deadClicksAutocapture(this,wM)),g.toolbar&&this.On.push(this.toolbar=(f=this.toolbar)!==null&&f!==void 0?f:new g.toolbar(this)),g.experiments&&this.On.push(this.experiments=(h=this.experiments)!==null&&h!==void 0?h:new g.experiments(this)),this.On.forEach((y=>{y.initialize&&m.push((()=>{y.initialize==null||y.initialize()}))})),m.push((()=>{if(this.Qn){var y=this.Qn;this.Qn=void 0,this.Si(y)}})),this.Jn(m,p)}Jn(t,i){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-i>=30&&t.length>0)return void setTimeout((()=>{this.Jn(t,i)}),0);var s=t.shift();if(s)try{s()}catch(u){de.error("Error initializing extension:",u)}}var o=Math.round(performance.now()-i);this.register_for_session({[sx]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[ax]:o}),this.config.__preview_deferred_init_extensions&&de.info("PostHog extensions initialized ("+o+"ms)")}Si(t){var i;if(!he||!he.body)return de.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Si(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Qn=t),this.Kn=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=Me(t.supportedCompression,ci.GZipJS)?ci.GZipJS:Me(t.supportedCompression,ci.Base64)?ci.Base64:void 0),(i=t.analytics)!=null&&i.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.$n?this.$n:kv}),this.On.forEach((s=>s.onRemoteConfig==null?void 0:s.onRemoteConfig(t)))}Zn(){try{this.config.loaded(this)}catch(s){de.critical("`loaded` function failed",s)}if(this.Yn(),this.config.internal_or_test_user_hostname&&Gt!=null&&Gt.hostname){var t=Gt.hostname,i=this.config.internal_or_test_user_hostname;(typeof i=="string"?t===i:i.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ln())&&this.Xn()}),1),this.es=new Ax(this),this.es.load()}Yn(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.zn)==null||t.enable())}_dom_loaded(){this.is_capturing()&&pc(this.__request_queue,(t=>this.Vn(t))),this.__request_queue=[],this.Yn()}_handle_unload(){var t,i,s,o;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.ts()&&this.capture(sp),(i=this.logs)==null||i.flushLogs("sendBeacon"),(s=this.zn)==null||s.unload(),(o=this.Wn)==null||o.unload()):this.ts()&&this.capture(sp,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded?Hx?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)?t.fireCallbackOnDrop&&(t.callback==null||t.callback({statusCode:429})):(t.transport=t.transport||this.config.api_transport,t.headers=ae({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,(fe(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,
2(i=>{var s,o,u,c=ae({},i);c.timeout=c.timeout||6e4,c.url=Mb(c.url,c.compression);var f=(s=c.transport)!==null&&s!==void 0?s:"fetch",h=Lc.filter((g=>!c.disableTransport||!g.transport||!c.disableTransport.includes(g.transport))),p=(o=(u=(function(g,m){for(var y=0;g.length>y;y++)if(g[y].transport===f)return g[y]})(h))==null?void 0:u.method)!==null&&o!==void 0?o:h[0].method;if(!p)throw new Error("No available transport method");f!=="sendBeacon"&&c.data&&c.compression===ci.GZipJS&&rC&&!Dc?FM(c).then((g=>{p(g)})).catch((g=>{if(eb(g))return Dc=!0,void p(ae({},c,{compression:void 0,url:Mb(i.url,void 0)}));(m=>{if(!m||typeof m!="object")return!1;var y="name"in m?String(m.name):"";return eb(m)||y===b1})(g)&&(Dc=!0),p(c)})):p(c)})(ae({},t,{callback:i=>{var s,o;this.rateLimiter.checkForLimiting(i),400>i.statusCode||(s=(o=this.config).on_request_error)==null||s.call(o,i),t.callback==null||t.callback(i)}}))):t.fireCallbackOnDrop&&(t.callback==null||t.callback({statusCode:0}))}Vn(t){this.Wn?this.Wn.retriableRequest(t):this._send_request(t)}_execute_array(t){gp++;try{var i,s=[],o=[],u=[];pc(t,(f=>{if(f)if(ze(i=f[0]))u.push(f);else if(Gi(f))try{f.call(this)}catch(h){de.error("Error executing queued PostHog call",f,h)}else ze(f)&&i==="alias"?s.push(f):ze(f)&&i.indexOf("capture")!==-1&&Gi(this[i])?u.push(f):o.push(f)}));var c=function(f,h){pc(f,(function(p){try{if(ze(p[0])){var g=h;nt(p,(function(m){g=g[m[0]].apply(g,m.slice(1))}))}else h[p[0]].apply(h,p.slice(1))}catch(m){de.error("Error executing queued PostHog call",p,m)}}))};c(s,this),c(o,this),c(u,this)}finally{gp--}}push(t){if(gp>0&&ze(t)&&ut(t[0])){var i=qn.prototype[t[0]];Gi(i)&&i.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,i,s){var o,u,c,f,h;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.zn){if(this.is_capturing())if(!fe(t)&&ut(t)){var p=!this.config.opt_out_useragent_filter&&this._is_bot();if(!p||this.config.__preview_capture_bot_pageviews){var g=s!=null&&s.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(g==null||!g.isRateLimited){i!=null&&i.$current_url&&!ut(i?.$current_url)&&(de.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),i==null||delete i.$current_url),t!=="$exception"||s!=null&&s.rs||de.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var m=new Date,y=s?.timestamp||m,b=sb(s?.uuid,Vi),S={uuid:b,event:t,properties:this.calculateEventProperties(t,i||{},y,b)};t===ka&&this.config.__preview_capture_bot_pageviews&&p&&(S.event="$bot_pageview",S.properties.$browser_type="bot"),g&&(S.properties.$lib_rate_limit_remaining_tokens=g.remainingTokens),s?.$set&&(S.$set=s?.$set);var x=s?.$unset;x&&(S.$unset=x);var T,E,A,C=this.ns(s?.$set_once,t!==lb,t===ap);if(C&&(S.$set_once=C),s!=null&&s._noTruncate||(u=this.config.properties_string_max_length,c=S,f=X=>ut(X)?X.slice(0,u):X,h=new Set,S=(function X(F,re){return F!==Object(F)?f?f(F):F:h.has(F)?void 0:(h.add(F),ze(F)?(ie=[],pc(F,(oe=>{ie.push(X(oe))}))):(ie={},nt(F,((oe,ue)=>{h.has(oe)||(ie[ue]=X(oe))}))),ie);var ie})(c)),S.timestamp=y,fe(s?.timestamp)||(S.properties.$event_time_override_provided=!0,S.properties.$event_time_override_system_time=m),t===Ki.DISMISSED||t===Ki.SENT){var M=i?.[dp.SURVEY_ID],N=i?.[dp.SURVEY_ITERATION];(X=>{try{var F=(re=>((ie,oe)=>{var ue=""+Uv+oe.id;return oe.current_iteration&&oe.current_iteration>0&&(ue=""+Uv+oe.id+"_"+oe.current_iteration),ue})(0,re))(X);if(localStorage.getItem(F))return;localStorage.setItem(F,"true")}catch(re){Je.error("Failed to persist survey seen state",re)}})({id:M,current_iteration:N}),S.$set=ae({},S.$set,{[(T={id:M,current_iteration:N},E=t===Ki.SENT?"responded":"dismissed",A="$survey_"+E+"/"+T.id,T.current_iteration&&T.current_iteration>0&&(A="$survey_"+E+"/"+T.id+"/"+T.current_iteration),A)]:!0})}else t===Ki.SHOWN&&(S.$set=ae({},S.$set,{[dp.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===LM.SHOWN){var B=i?.[Sb.TOUR_TYPE];B&&(S.$set=ae({},S.$set,{[Sb.TOUR_LAST_SEEN_DATE+"/"+B]:new Date().toISOString()}))}var k=ae({},S.properties.$set,S.$set);if(Dr(k)||this.setPersonPropertiesForFlags(k),!Ne(this.config.before_send)){var D=this.mr(S);if(!D)return;(S=D).uuid=sb(S.uuid,Vi)}
2this.Fn.emit("eventCaptured",S);var $={method:"POST",url:(o=s?._url)!==null&&o!==void 0?o:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:S,compression:"best-available",batchKey:s?._batchKey,transport:s?.transport};return!this.config.request_batching||s&&(s==null||!s._batchKey)||s!=null&&s.send_instantly?this.Vn($):this.zn.enqueue($),S}de.critical("This capture call is ignored due to client rate limiting.")}}else de.error("No event name provided to posthog.capture")}else de.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(i=>t(i.event,i)))}calculateEventProperties(t,i,s,o,u){if(s=s||new Date,!this.persistence||!this.sessionPersistence)return i;var c=u?void 0:this.persistence.remove_event_timer(t),f=ae({},i);if(f.token=this.config.token,f.$config_defaults=this.config.defaults,this.Ln()&&(f.$cookieless_mode=!0),t==="$snapshot"){var h=ae({},this.persistence.properties(),this.sessionPersistence.properties());return f.distinct_id=h.distinct_id,(!ut(f.distinct_id)&&!tn(f.distinct_id)||ov(f.distinct_id))&&de.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),f}var p,g=(function(E,A,C){var M,N,B,k;if(!fn)return{};var D,$,X,F,re,ie,oe,ue,j,Y=E?[...Ia,...A||[]]:[],[se,pe]=(function(K){for(var ne=0;ib.length>ne;ne++){var[ce,le]=ib[ne],ge=ce.exec(K),_e=ge&&(Gi(le)?le(ge,K):le);if(_e)return _e}return["",""]})(fn),W=(D=typeof navigator<"u"?navigator:void 0)!=null&&D.brave?{brave:!0}:{},R={detectGoogleSearchApp:C},I=lt(gg({$os:se,$os_version:pe,$browser:q1(fn,navigator.vendor,W,R),$device:rb(fn),$device_type:(X=fn,F={userAgentDataPlatform:(M=navigator)==null||(M=M.userAgentData)==null?void 0:M.platform,maxTouchPoints:(N=navigator)==null?void 0:N.maxTouchPoints,screenWidth:G==null||(B=G.screen)==null?void 0:B.width,screenHeight:G==null||(k=G.screen)==null?void 0:k.height,devicePixelRatio:G?.devicePixelRatio},j=rb(X),j===T1||j===E1||j==="Kobo"||j==="Kindle Fire"||j===P1?Ha:j===Ml||j===Pa||j===Al||j===uv?"Console":j===C1?"Wearable":j?On:F?.userAgentDataPlatform==="Android"&&((re=F?.maxTouchPoints)!==null&&re!==void 0?re:0)>0?600>Math.min((ie=F?.screenWidth)!==null&&ie!==void 0?ie:0,(oe=F?.screenHeight)!==null&&oe!==void 0?oe:0)/((ue=F?.devicePixelRatio)!==null&&ue!==void 0?ue:1)?On:Ha:"Desktop"),$timezone:Mx(),$timezone_offset:AM()}),{$current_url:Ll(Gt?.href,Y,zl),$host:Gt?.host,$pathname:Gt?.pathname,$raw_user_agent:fn.length>1e3?fn.substring(0,997)+"...":fn,$browser_version:RC(fn,navigator.vendor,W,R),$browser_language:bb(),$browser_language_prefix:($=bb(),typeof $=="string"?$.split("-")[0]:void 0),$screen_height:G?.screen.height,$screen_width:G?.screen.width,$viewport_height:G?.innerHeight,$viewport_width:G?.innerWidth,$lib:Et.LIB_NAME,$lib_version:Et.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return Et.SDK_DIST_CHANNEL&&(I.$sdk_dist_channel=Et.SDK_DIST_CHANNEL),I})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app);if(this.sessionManager){var{sessionId:m,windowId:y}=this.sessionManager.checkAndGetSessionAndWindowId(u,s.getTime());f.$session_id=m,f.$window_id=y}this.sessionPropsManager&&lt(f,this.sessionPropsManager.getSessionProps());try{var b;this.sessionRecording&&lt(f,this.sessionRecording.sdkDebugProperties),f.$sdk_debug_retry_queue_size=(b=this.Wn)==null?void 0:b.length}catch(E){f.$sdk_debug_error_capturing_properties=String(E)}if(this.requestRouter.region===Bv&&(f.$lib_custom_api_host=this.config.api_host),p=t!==ka||u?t!==sp||u?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(s):this.pageViewManager.doPageView(s,o),f=lt(f,p),t===ka&&he&&(f.title=he.title),!fe(c)){var S=s.getTime()-c;f.$duration=parseFloat((S/1e3).toFixed(3))}fn&&this.config.opt_out_useragent_filter&&(f.$browser_type=this._is_bot()?"bot":"browser"),(f=lt({},g,this.persistence.properties(),this.sessionPersistence.properties(),f)).$is_identified=this._isIdentified(),ze(this.config.property_denylist)?nt(this.config.property_denylist,(function(E){delete f[E]})):de.error(Ux+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var x=this.config.sanitize_properties;x&&(de.error(zb),f=x(f,t));var T=this.ss();return f.$process_person_profile=T,T&&!u&&this.os("_calculate_event_properties"),f}ns(t,i,s){var o;if(i===void 0&&(i=!0),s===void 0&&(s=!1),!this.persistence||!this.ss()||this.An&&!s)return t;var u=this.persistence.get_initial_props(),c=(o=this.sessionPropsManager)==null?void 0:o.getSetOnceProps(),f=lt({},u,c||{},t||{}),h=this.config.sanitize_properties;
2return h&&(de.error(zb),f=h(f,"$set_once")),i&&(this.An=!0),Dr(f)?void 0:f}register(t,i){var s;(s=this.persistence)==null||s.register(t,i)}register_once(t,i,s){var o;(o=this.persistence)==null||o.register_once(t,i,s)}register_for_session(t){var i;(i=this.sessionPersistence)==null||i.register(t)}unregister(t){var i;(i=this.persistence)==null||i.unregister(t)}unregister_for_session(t){var i;(i=this.sessionPersistence)==null||i.unregister(t)}ls(t,i){this.register({[t]:i})}getFeatureFlag(t,i){var s;return(s=this.featureFlags)==null?void 0:s.getFeatureFlag(t,i)}getFeatureFlagPayload(t){var i;return(i=this.featureFlags)==null?void 0:i.getFeatureFlagPayload(t)}getFeatureFlagResult(t,i){var s;return(s=this.featureFlags)==null?void 0:s.getFeatureFlagResult(t,i)}isFeatureEnabled(t,i){var s;return(s=this.featureFlags)==null?void 0:s.isFeatureEnabled(t,i)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,i,s){var o;(o=this.featureFlags)==null||o.updateFlags(t,i,s)}updateEarlyAccessFeatureEnrollment(t,i,s){var o;(o=this.featureFlags)==null||o.updateEarlyAccessFeatureEnrollment(t,i,s)}getEarlyAccessFeatures(t,i,s){var o;return i===void 0&&(i=!1),(o=this.featureFlags)==null?void 0:o.getEarlyAccessFeatures(t,i,s)}on(t,i){return this.Fn.on(t,i)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:Jo}),()=>{})}onSessionId(t){var i,s;return(i=(s=this.sessionManager)==null?void 0:s.onSessionId(t))!==null&&i!==void 0?i:()=>{}}getSurveys(t,i){i===void 0&&(i=!1),this.surveys?this.surveys.getSurveys(t,i):t([],{isLoaded:!1,error:Jo})}getActiveMatchingSurveys(t,i){i===void 0&&(i=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,i):t([],{isLoaded:!1,error:Jo})}renderSurvey(t,i){var s;(s=this.surveys)==null||s.renderSurvey(t,i)}displaySurvey(t,i){var s;i===void 0&&(i=ZM),(s=this.surveys)==null||s.displaySurvey(t,i)}cancelPendingSurvey(t){var i;(i=this.surveys)==null||i.cancelPendingSurvey(t)}canRenderSurvey(t){var i,s;return(i=(s=this.surveys)==null?void 0:s.canRenderSurvey(t))!==null&&i!==void 0?i:{visible:!1,disabledReason:Jo}}canRenderSurveyAsync(t,i){var s,o;return i===void 0&&(i=!1),(s=(o=this.surveys)==null?void 0:o.canRenderSurveyAsync(t,i))!==null&&s!==void 0?s:Promise.resolve({visible:!1,disabledReason:Jo})}us(t){return!t||ov(t)?(de.critical("Unique user id has not been set in posthog.identify"),!1):t===hc?(de.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(de.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,i,s){if(!this.__loaded||!this.persistence)return de.uninitializedWarning("posthog.identify");if(tn(t)&&(t=t.toString(),de.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.us(t)&&this.os("posthog.identify")){var o=this.get_distinct_id();this.register({$user_id:t}),this.get_property(Kc)||this.register_once({$had_persisted_distinct_id:!0,$device_id:o},""),t!==o&&t!==this.get_property(ll)&&(this.unregister(ll),this.register({distinct_id:t}));var u,c=(this.persistence.get_property(Zn)||wa)===wa;t!==o&&c?(this.persistence.set_property(Zn,Ea),this.setPersonPropertiesForFlags({$set:i||{},$set_once:s||{}},!1),this.capture(ap,{distinct_id:t,$anon_distinct_id:o},{$set:i||{},$set_once:s||{}}),this.qn=kb(t,i,s),(u=this.featureFlags)==null||u.setAnonymousDistinctId(o)):(i||s)&&this.setPersonProperties(i,s),t!==o&&(this.reloadFeatureFlags(),this.unregister(yl))}}setPersonProperties(t,i){if((t||i)&&this.os("posthog.setPersonProperties")){var s=kb(this.get_distinct_id(),t,i);this.qn!==s?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:i||{}},!0),this.capture("$set",{$set:t||{},$set_once:i||{}}),this.qn=s):de.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}unsetPersonProperties(t){var i,s=(ze(t)?t:[t]).filter((o=>ut(o)&&o.length>0));s.length!==0&&this.os("posthog.unsetPersonProperties")&&((i=this.featureFlags)==null||i.unsetPersonPropertiesForFlags(s,!0),this.capture("$set",{$unset:s}),this.qn=null)}group(t,i,s){if(t&&i){var o=this.getGroups(),u=o[t]!==i;if(u&&this.resetGroupPropertiesForFlags(t),this.register({$groups:ae({},o,{[t]:i})}),u||s){var c={$group_type:t,$group_key:i};s&&(c.$group_set=s),this.capture(lb,c)}s&&this.setGroupPropertiesForFlags({[t]:s}),u&&!s&&this.reloadFeatureFlags()}else de.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,i){var s;i===void 0&&(i=!0),(s=this.featureFlags)==null||s.setPersonPropertiesForFlags(t,i)}resetPersonPropertiesForFlags(t){var i;t===void 0&&(t=!0),(i=this.featureFlags)==null||i.resetPersonPropertiesForFlags(t)}setGroupPropertiesForFlags(t,i){var s;i===void 0&&(i=!0),this.os("posthog.setGroupPropertiesForFlags")&&((s=this.featureFlags)==null||s.setGroupPropertiesForFlags(t,i))}resetGroupPropertiesForFlags(t){var i;(i=this.featureFlags)==null||i.resetGroupPropertiesForFlags(t)}reset(t){var i,s,o,u,c,f,h,p,g;
2if(de.info("reset"),!this.__loaded)return de.uninitializedWarning("posthog.reset");var m,y=this.get_property(Kc),b=this.get_property(Es);if(this.consent.reset(),(i=this.persistence)==null||i.clear(),(s=this.sessionPersistence)==null||s.clear(),fe(b)||(m=this.persistence)==null||m.register({[Es]:b}),(o=this.surveys)==null||o.reset(),(u=this.es)==null||u.stop(),(c=this.featureFlags)==null||c.reset(),(f=this.conversations)==null||f.reset(),(h=this.logs)==null||h.reset(),(p=this.persistence)==null||p.set_property(Zn,wa),(g=this.sessionManager)==null||g.resetSessionId(),this.qn=null,this.config.cookieless_mode===Yi)this.register_once({distinct_id:hc,$device_id:null},"");else{var S=this.config.get_device_id(Vi());this.register_once({distinct_id:S,$device_id:t?S:y},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,i){var s;this.config.identity_distinct_id=t,this.config.identity_hash=i,this.alias(t),(s=this.conversations)==null||s.hs()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.cs()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,i;return(t=(i=this.sessionManager)==null?void 0:i.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:i,sessionStartTimestamp:s}=this.sessionManager.checkAndGetSessionAndWindowId(!0),o=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+i);if(t!=null&&t.withTimestamp&&s){var u,c=(u=t.timestampLookBack)!==null&&u!==void 0?u:10;if(!s)return o;o+="?t="+Math.max(Math.floor((new Date().getTime()-s)/1e3)-c,0)}return o}alias(t,i){return t===this.get_property(J1)?(de.critical("Attempting to create alias for existing People user - aborting."),-2):this.os("posthog.alias")?(fe(i)&&(i=this.get_distinct_id()),t!==i?(this.ls(ll,t),this.capture("$create_alias",{alias:t,distinct_id:i})):(de.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var i=ae({},this.config);if(dt(t)){var s,o,u,c,f,h,p,g,m,y,b;lt(this.config,$b(t));var S=this.Un();(s=this.persistence)==null||s.update_config(this.config,i,S),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new cp(ae({},this.config,{persistence:"sessionStorage"}),S,!1);var x=this.jn(this.config.debug);pi(x)&&(this.config.debug=x),pi(this.config.debug)&&(this.config.debug?(Et.DEBUG=!0,tt.N()&&tt.A("ph_debug",!0),de.info("set_config",{config:t,oldConfig:i,newConfig:ae({},this.config)})):(Et.DEBUG=!1,tt.N()&&tt.q("ph_debug"))),(o=this.exceptionObserver)==null||o.onConfigChange(),(u=this.exceptions)==null||u.onConfigChange(),(c=this.sessionRecording)==null||c.startIfEnabledOrStop(),(f=this.tracingHeaders)==null||f.startIfEnabledOrStop(),(h=this.autocapture)==null||h.startIfEnabled(),(p=this.heatmaps)==null||p.startIfEnabled(),(g=this.exceptionObserver)==null||g.startIfEnabledOrStop(),(m=this.deadClicksAutocapture)==null||m.startIfEnabledOrStop(),(y=this.surveys)==null||y.loadIfEnabled(),this.ds(),(b=this.externalIntegrations)==null||b.startIfEnabledOrStop()}}_overrideSDKInfo(t,i){Et.LIB_NAME=t,Et.LIB_VERSION=i}startSessionRecording(t){var i,s,o,u,c,f=t===!0,h={sampling:f||!(t==null||!t.sampling),linked_flag:f||!(t==null||!t.linked_flag),url_trigger:f||!(t==null||!t.url_trigger),event_trigger:f||!(t==null||!t.event_trigger)};Object.values(h).some(Boolean)&&((i=this.sessionManager)==null||i.checkAndGetSessionAndWindowId(),h.sampling&&((s=this.sessionRecording)==null||s.overrideSampling()),h.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),h.url_trigger&&((u=this.sessionRecording)==null||u.overrideTrigger("url")),h.event_trigger&&((c=this.sessionRecording)==null||c.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,i){if(this.exceptions){var s=new Error("PostHog syntheticException"),o=this.exceptions.buildProperties(t,{handled:!0,syntheticException:s});return this.exceptions.sendExceptionEvent(ae({},o,i))}}addExceptionStep(t,i){var s;(s=this.exceptions)==null||s.addExceptionStep(t,i)}captureLog(t){var i;(i=this.logs)==null||i.captureLog(t)}get logger(){var t,i;return(t=(i=this.logs)==null?void 0:i.logger)!==null&&t!==void 0?t:qn.vs}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var i,s;return(i=(s=this.toolbar)==null?void 0:s.loadToolbar(t))!==null&&i!==void 0&&i}get_property(t){var i;return(i=this.persistence)==null?void 0:i.props[t]}getSessionProperty(t){var i;return(i=this.sessionPersistence)==null?void 0:i.props[t]}toString(){var t,i=(t=this.config.name)!==null&&t!==void 0?t:Da;return i!==Da&&(i=Da+"."+i),i}_isIdentified(){var t,i;return((t=this.persistence)==null?void 0:t.get_property(Zn))===Ea||((i=this.sessionPersistence)==null?void 0:i.get_property(Zn))===Ea}ss(){var t,i;return!(this.config.person_profiles==="never"||this.config.person_profiles===kv&&!this._isIdentified()&&Dr(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[ll])&&((i=this.persistence)==null||(i=i.props)==null||!i[Qc]))}ts(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.ss()||this.os("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.os("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}os(t){return this.config.person_profiles==="never"?(de.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.ls(Qc,!0),!0)}Un(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==bs)}ds(){var t,i,s,o,u=this.Un();
2return((t=this.persistence)==null?void 0:t.ti)!==u&&((s=this.persistence)==null||s.set_disabled(u)),((i=this.sessionPersistence)==null?void 0:i.ti)!==u&&((o=this.sessionPersistence)==null||o.set_disabled(u)),u}opt_in_capturing(t){var i;if(this.config.cookieless_mode!==Yi){if(this.Ln()){var s,o,u,c,f;this.reset(!0),(s=this.sessionManager)==null||s.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=new Ob(this),this.pageViewManager=new _b(this),this.persistence&&(this.sessionPropsManager=new Ab(this,this.sessionManager,this.persistence));var h,p=(u=(c=this.config.__extensionClasses)==null?void 0:c.sessionRecording)!==null&&u!==void 0?u:(f=qn.__defaultExtensionClasses)==null?void 0:f.sessionRecording;p&&(this.sessionRecording=this.Pn(this.sessionRecording,new p(this)),this.Kn&&((h=this.sessionRecording)==null||h.onRemoteConfig==null||h.onRemoteConfig(this.Kn)))}var g,m;this.consent.optInOut(!0),this.ds(),this.Yn(),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),this.config.cookieless_mode==bs&&((g=this.surveys)==null||g.loadIfEnabled()),(fe(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((m=t?.captureEventName)!==null&&m!==void 0?m:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Xn()}else de.warn(Lb)}opt_out_capturing(){var t,i,s;this.config.cookieless_mode!==Yi?(this.config.cookieless_mode===bs&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.ds(),this.config.cookieless_mode===bs&&(this.register({distinct_id:hc,$device_id:null}),(t=this.sessionRecording)==null||t.stopRecording(),this.sessionRecording=void 0,(i=this.sessionManager)==null||i.destroy(),(s=this.pageViewManager)==null||s.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.Xn(),this.Yn())):de.warn(Lb)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Yi||(this.config.cookieless_mode===bs?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.ds()}_is_bot(){return Mn?jx(Mn,this.config.custom_blocked_useragents):void 0}Xn(){he&&(he.visibilityState==="visible"?this.Nn||(this.Nn=!0,this.capture(ka,{title:he.title},{send_instantly:!0}),this.Dn&&(he.removeEventListener(Zc,this.Dn),this.Dn=null)):this.Dn||(this.Dn=this.Xn.bind(this),bt(he,Zc,this.Dn)))}debug(t){t===!1?(G?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(G?.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}))}Ii(){var t,i,s,o,u,c,f=this.Bn||{};return"advanced_disable_flags"in f?!!f.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(de.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):(s="advanced_disable_decide",o=de,u=(i="advanced_disable_flags")in(t=f)&&!Ne(t[i]),c=s in t&&!Ne(t[s]),u?t[i]:!!c&&(o&&o.warn("Config field '"+s+"' is deprecated. Please use '"+i+"' instead. The old field will be removed in a future major version."),t[s]))}mr(t){var i;if(Ne(this.config.before_send))return t;var s=Object.keys((i=t.properties)!==null&&i!==void 0?i:{}).filter(pC),o=ze(this.config.before_send)?this.config.before_send:[this.config.before_send],u=t;for(var c of o){if(u=c(u),Ne(u)){var f="Event '"+t.event+"' was rejected in beforeSend function";return hC(t.event)?de.warn(f+". This can cause unexpected behavior."):de.info(f),null}u.properties&&!Dr(u.properties)||de.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}for(var h of s)if(u.properties&&Ne(u.properties[h]))return de.warn("Event '"+t.event+"' had its '"+h+"' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped."),null;return u}getPageViewId(){var t;
2return(t=this.pageViewManager.Hr)==null?void 0:t.pageViewId}captureTraceFeedback(t,i){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:i})}captureTraceMetric(t,i,s){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:i,$ai_metric_value:String(s)})}jn(t){var i=pi(t)&&!t,s=tt.N()&&tt.P("ph_debug")==="true";return!i&&(!!s||t)}}qn.__defaultExtensionClasses={},qn.vs={trace:Ca=()=>{},debug:Ca,info:Ca,warn:Ca,error:Ca,fatal:Ca},(function(e,t){for(var i=0;t.length>i;i++)e.prototype[t[i]]=tM(e.prototype[t[i]])})(qn,["identify"]);class jb{constructor(t){this.disabled=t===!1;var i=dt(t)?t:{};this.thresholdPx=i.threshold_px||30,this.timeoutMs=i.timeout_ms||1e3,this.clickCount=i.click_count||3,this.clicks=[]}isRageClick(t,i,s){if(this.disabled)return!1;var o=this.clicks[this.clicks.length-1];if(o&&Math.abs(t-o.x)+Math.abs(i-o.y)<this.thresholdPx&&this.timeoutMs>s-o.timestamp){if(this.clicks.push({x:t,y:i,timestamp:s}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:i,timestamp:s}];return!1}}var mp="$copy_autocapture",yp=_t("[AutoCapture]");function _p(e,t){return t.length>e?t.slice(0,e)+"...":t}function iA(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!qr(t));return t}function rA(e,t){var i,s,{e:o,maskAllElementAttributes:u,maskAllText:c,elementAttributeIgnoreList:f,elementsChainAsString:h}=t;if(!qr(e))return{props:{}};for(var p=[e],g=e;g.parentNode&&!An(g,"body");)if(fx(g.parentNode))p.push(g.parentNode.host),g=g.parentNode.host;else{if(!qr(g.parentNode))break;p.push(g.parentNode),g=g.parentNode}var m,y,b=[],S={},x=!1,T=!1;if(nt(p,(N=>{var B=Lv(N);if(An(N,"a")){var k=N.getAttribute("href");x=B&&!!k&&_l(k)&&k}Me(ef(N),"ph-no-capture")&&(T=!0),b.push((function($,X,F,re){var ie=$.tagName.toLowerCase(),oe={tag_name:ie};yg.indexOf(ie)>-1&&!F&&(oe.$el_text=ie.toLowerCase()==="a"||ie.toLowerCase()==="button"?_p(1024,gb($)):_p(1024,kl($)));var ue=ef($);ue.length>0&&(oe.classes=ue.filter((function(pe){return pe!==""}))),nt($.attributes,(function(pe){var W;if((!gx($)||["name","id","class","aria-label"].indexOf(pe.name)!==-1)&&(re==null||!re.includes(pe.name))&&
2!X&&_l(pe.value)&&(!ut(W=pe.name)||W.substring(0,10)!=="_ngcontent"&&W.substring(0,7)!=="_nghost")){var R=pe.value;pe.name==="class"&&(R=mg(R).join(" ")),oe["attr__"+pe.name]=_p(1024,R)}}));for(var j=1,Y=1,se=$;se=iA(se);)j++,se.tagName===$.tagName&&Y++;return oe.nth_child=j,oe.nth_of_type=Y,oe})(N,u,c,f));var D=(function($){if(!Lv($))return{};var X={};return nt($.attributes,(function(F){if(F.name&&F.name.indexOf("data-ph-capture-attribute")===0){var re=F.name.replace("data-ph-capture-attribute-",""),ie=F.value;re&&ie&&_l(ie)&&(X[re]=ie)}})),X})(N);lt(S,D)})),T)return{props:{},explicitNoCapture:T};if(c||(b[0].$el_text=An(e,"a")||An(e,"button")?gb(e):kl(e)),x){var E,A;b[0].attr__href=x;var C=(E=tf(x))==null?void 0:E.host,M=G==null||(A=G.location)==null?void 0:A.host;C&&M&&C!==M&&(m=x)}return{props:lt({$event_type:o.type,$ce_version:1},h?{}:{$elements:b},{$elements_chain:(y=b,(function(N){return N.map((B=>{var k,D,$="";if(B.tag_name&&($+=B.tag_name),B.attr_class)for(var X of(B.attr_class.sort(),B.attr_class))$+="."+X.replace(/"/g,"");var F=ae({},B.text?{text:B.text}:{},{"nth-child":(k=B.nth_child)!==null&&k!==void 0?k:0,"nth-of-type":(D=B.nth_of_type)!==null&&D!==void 0?D:0},B.href?{href:B.href}:{},B.attr_id?{attr_id:B.attr_id}:{},B.attributes),re={};return kc(F).sort(((ie,oe)=>{var[ue]=ie,[j]=oe;return ue.localeCompare(j)})).forEach((ie=>{var[oe,ue]=ie;return re[mb(oe.toString())]=mb(ue.toString())})),($+=":")+kc(re).map((ie=>{var[oe,ue]=ie;return oe+'="'+ue+'"'})).join("")})).join(";")})((function(N){return N.map((B=>{var k,D,$={text:(k=B.$el_text)==null?void 0:k.slice(0,400),tag_name:B.tag_name,href:(D=B.attr__href)==null?void 0:D.slice(0,2048),attr_class:SM(B),attr_id:B.attr__id,nth_child:B.nth_child,nth_of_type:B.nth_of_type,attributes:{}};return kc(B).filter((X=>{var[F]=X;return F.indexOf("attr__")===0})).forEach((X=>{var[F,re]=X;return $.attributes[F]=re})),$}))})(y)))},(i=b[0])!=null&&i.$el_text?{$el_text:(s=b[0])==null?void 0:s.$el_text}:{},m&&o.type==="click"?{$external_click_url:m}:{},S)}}var Wo=_t("[ExceptionAutocapture]"),sA=_t("[TracingHeaders]"),ds=_t("[Web Vitals]"),Pb=9e5,Bb="disabled",Ub="lazy_loading",el="awaiting_config",bc="missing_config";_t("[SessionRecording]"),_t("[SessionRecording]");var Fv="[SessionRecording]",Bi=_t(Fv),aA=_t("[Heatmaps]");function Hb(e){return dt(e)&&"clientX"in e&&"clientY"in e&&tn(e.clientX)&&tn(e.clientY)}var bp=_t("[Product Tours]"),Sp=e=>{var t;return!e.config.disable_product_tours&&!((t=e.persistence)==null||!t.get_property(hg))},oA=["$set_once","$set"],ai=_t("[SiteApps]"),Fb="Error while initializing PostHog app with config id ";function Ma(e,t,i){if(Ne(e))return!1;switch(i){case"exact":return e===t;case"contains":var s=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(s,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class lA{constructor(t){this.fs=new xg,this.ps=(i,s)=>this.gs(i,s)&&this.ys(i,s)&&this.bs(i,s)&&this._s(i,s),this.gs=(i,s)=>s==null||!s.event||i?.event===s?.event,this._instance=t,this.ws=new Set,this.xs=new Set}init(){var t,i;fe((t=this._instance)==null?void 0:t._addCaptureHook)||(i=this._instance)==null||i._addCaptureHook(((s,o)=>{this.on(s,o)}))}register(t){var i,s;if(!fe((i=this._instance)==null?void 0:i._addCaptureHook)&&(t.forEach((c=>{var f,h;(f=this.xs)==null||f.add(c),(h=c.steps)==null||h.forEach((p=>{var g;(g=this.ws)==null||g.add(p?.event||"")}))})),(s=this._instance)!=null&&s.autocapture)){var o,u=new Set;t.forEach((c=>{var f;(f=c.steps)==null||f.forEach((h=>{h!=null&&h.selector&&u.add(h?.selector)}))})),(o=this._instance)==null||o.autocapture.setElementSelectors(u)}}on(t,i){var s;i!=null&&t.length!=0&&(this.ws.has(t)||this.ws.has(i?.event))&&this.xs&&((s=this.xs)==null?void 0:s.size)>0&&this.xs.forEach((o=>{this.ks(i,o)&&this.fs.emit("actionCaptured",o.name)}))}Ss(t){this.onAction("actionCaptured",(i=>t(i)))}ks(t,i){if(i?.steps==null)return!1;for(var s of i.steps)if(this.ps(t,s))return!0;return!1}onAction(t,i){return this.fs.on(t,i)}ys(t,i){if(i!=null&&i.url){var s,o=t==null||(s=t.properties)==null?void 0:s.$current_url;if(!o||typeof o!="string"||!Ma(o,i.url,i.url_matching||"contains"))return!1}return!0}bs(t,i){return!!this.Cs(t,i)&&!!this.Is(t,i)&&!!this.Ts(t,i)}Cs(t,i){var s;if(i==null||!i.href)return!0;var o=this.Es(t);if(o.length>0)return o.some((f=>Ma(f.href,i.href,i.href_matching||"exact")));var u,c=(t==null||(s=t.properties)==null?void 0:s.$elements_chain)||"";return!!c&&Ma((u=c.match(/(?::|")href="(.*?)"/))?u[1]:"",i.href,i.href_matching||"exact")}Is(t,i){var s;if(i==null||!i.text)return!0;var o=this.Es(t);if(o.length>0)return o.some((p=>
2Ma(p.text,i.text,i.text_matching||"exact")||Ma(p.$el_text,i.text,i.text_matching||"exact")));var u,c,f,h=(t==null||(s=t.properties)==null?void 0:s.$elements_chain)||"";return!!h&&(u=(function(p){for(var g,m=[],y=/(?::|")text="(.*?)"/g;!Ne(g=y.exec(p));)m.includes(g[1])||m.push(g[1]);return m})(h),c=i.text,f=i.text_matching||"exact",u.some((p=>Ma(p,c,f))))}Ts(t,i){var s,o;if(i==null||!i.selector)return!0;var u=t==null||(s=t.properties)==null?void 0:s.$element_selectors;if(u!=null&&u.includes(i.selector))return!0;var c=(t==null||(o=t.properties)==null?void 0:o.$elements_chain)||"";if(i.selector_regex&&c)try{return new RegExp(i.selector_regex).test(c)}catch{return!1}return!1}Es(t){var i;return(t==null||(i=t.properties)==null?void 0:i.$elements)==null?[]:t?.properties.$elements}_s(t,i){return i==null||!i.properties||i.properties.length===0||Bx(i.properties.reduce(((s,o)=>{var u=ze(o.value)?o.value.map(String):o.value!=null?[String(o.value)]:[];return s[o.key]={values:u,operator:o.operator||"exact"},s}),{}),t?.properties)}}class uA{constructor(t){this.Ms=[],this._instance=t,this.Rs=new Map,this.Ps=new Map,this.Os=new Map}Ls(t,i){return!!t&&Bx(t.propertyFilters,i?.properties)}As(t,i){var s=new Map;return t.forEach((o=>{var u;(u=o.conditions)==null||(u=u[i])==null||(u=u.values)==null||u.forEach((c=>{if(c!=null&&c.name){var f=s.get(c.name)||[];f.push(o.id),s.set(c.name,f)}}))})),s}Fs(t,i,s){var o=(s===Yo.Activation?this.Rs:this.Ps).get(t),u=[];return this.Ns((c=>{u=c.filter((f=>o?.includes(f.id)))})),u.filter((c=>{var f,h=(f=c.conditions)==null||(f=f[s])==null||(f=f.values)==null?void 0:f.find((p=>p.name===t));return this.Ls(h,i)}))}register(t){var i;fe((i=this._instance)==null?void 0:i._addCaptureHook)||(this.Ds(t),this.$s(t))}$s(t){var i=t.filter((s=>{var o,u;return((o=s.conditions)==null?void 0:o.actions)&&((u=s.conditions)==null||(u=u.actions)==null||(u=u.values)==null?void 0:u.length)>0}));i.length!==0&&(this.qs==null&&(this.qs=new lA(this._instance),this.qs.init(),this.qs.Ss((s=>{this.onAction(s)}))),i.forEach((s=>{var o,u,c,f,h;s.conditions&&(o=s.conditions)!=null&&o.actions&&(u=s.conditions)!=null&&(u=u.actions)!=null&&u.values&&((c=s.conditions)==null||(c=c.actions)==null||(c=c.values)==null?void 0:c.length)>0&&((f=this.qs)==null||f.register(s.conditions.actions.values),(h=s.conditions)==null||(h=h.actions)==null||(h=h.values)==null||h.forEach((p=>{if(p&&p.name){var g=this.Os.get(p.name);g&&g.push(s.id),this.Os.set(p.name,g||[s.id])}})))})))}Ds(t){var i,s=t.filter((u=>{var c,f;return((c=u.conditions)==null?void 0:c.events)&&((f=u.conditions)==null||(f=f.events)==null||(f=f.values)==null?void 0:f.length)>0})),o=t.filter((u=>{var c,f;return((c=u.conditions)==null?void 0:c.cancelEvents)&&((f=u.conditions)==null||(f=f.cancelEvents)==null||(f=f.values)==null?void 0:f.length)>0}));s.length===0&&o.length===0||((i=this._instance)==null||i._addCaptureHook(((u,c)=>{this.onEvent(u,c)})),this.Rs=this.As(t,Yo.Activation),this.Ps=this.As(t,Yo.Cancellation))}onEvent(t,i){var s,o,u=this.ce(),c=(i==null||(s=i.properties)==null?void 0:s.$survey_id)||(i==null||(o=i.properties)==null?void 0:o.$product_tour_id);if(c&&this.getActivatedIds().includes(c)){var f=this.js(t,c);if(f==="consume")return u.info("event consumed activated item, removing it",{event:t,itemId:c}),void this.Bs([c]);if(f==="persist")return u.info("shown item promoted to persisted activation",{event:t,itemId:c}),void this.Hs(c)}if(this.Ps.has(t)){var h=this.Fs(t,i,Yo.Cancellation);h.length>0&&(u.info("cancel event matched, cancelling items",{event:t,itemsToCancel:h.map((g=>g.id))}),this.Bs(h.map((g=>g.id))),h.forEach((g=>this.Us(g.id))))}if(this.Rs.has(t)){u.info("event name matched",{event:t,eventPayload:i,items:this.Rs.get(t)});var p=this.Fs(t,i,Yo.Activation);this.zs(p.map((g=>g.id)))}}onAction(t){this.Os.has(t)&&this.zs(this.Os.get(t)||[])}zs(t){t.length!==0&&(this.Ms=[...new Set([...this.Ms,...t])],this.ce().info("updating activated items",{activatedItems:this.getActivatedIds()}))}Hs(t){this.Ms=this.Ms.filter((s=>s!==t));var i=this.Vs();i.includes(t)||this.Ws([...i,t])}Bs(t){var i=new Set(t);this.Ms=this.Ms.filter((u=>!i.has(u)));var s=this.Vs(),o=s.filter((u=>!i.has(u)));o.length!==s.length&&this.Ws(o)}Vs(){var t,i=this.Gs();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[i])||[]}getActivatedIds(){return[...new Set([...this.Vs(),...this.Ms])].filter((t=>!this.Zs(t)))}reset(){this.Ms=[],this.Vs().length>0&&this.Ws([])}
2getEventToItemsMap(){return this.Rs}Qs(){return this.qs}}class cA extends uA{constructor(t){super(t)}Gs(){return wv}Js(){return Ki.SHOWN}Ns(t){var i;(i=this._instance)==null||i.getSurveys(t)}Us(t){var i;(i=this._instance)==null||i.cancelPendingSurvey(t)}ce(){return Je}Ws(t){var i;(i=this._instance)==null||(i=i.persistence)==null||i.register({[wv]:t})}Zs(){return!1}js(t,i){var s;this.Ns((u=>{s=u.find((c=>c.id===i))}));var o=!s||(function(u){var c,f,h,p=((c=(f=u.conditions)==null||(f=f.events)==null||(f=f.values)==null?void 0:f.length)!==null&&c!==void 0?c:0)>0;return u.schedule===DM.Always||!((h=u.conditions)==null||(h=h.events)==null||!h.repeatedActivation||!p)})(s);return o?t===Ki.SHOWN?"consume":"ignore":t===Ki.SHOWN?"persist":t===Ki.DISMISSED||t===Ki.SENT?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var xp="SDK is not enabled or survey functionality is not yet loaded",qb="Disabled. Not loading surveys.",fA=G!=null&&G.location?nf(G.location.hash,"__posthog")||nf(location.hash,"state"):null,Ib="_postHogToolbarParams",Gb=_t("[Toolbar]"),It=_t("[FeatureFlags]"),hs=_t("[FeatureFlags]",{debugEnabled:!0}),wp=`" failed. Feature flags didn't load in time.`,Vb=e=>{for(var t={},i=0;e.length>i;i++)t[e[i]]=!0;return t},Yb=e=>{var t={};for(var[i,s]of kc(e||{}))s&&(t[i]=s);return t},Ui=_t("[Error tracking]"),Kb="Refusing to render web experiment since the viewer is a likely bot",dA={icontains:(e,t)=>!!G&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!G&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!G&&af(t.href,e),not_regex:(e,t)=>!!G&&!af(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Xt{get Dt(){return this._instance.config}constructor(t){var i=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(s){s===void 0&&(s=!1),i.getWebExperiments((o=>{Xt.Ks("retrieved web experiments from the server"),i.Ys=new Map,o.forEach((u=>{if(u.feature_flag_key){var c;i.Ys&&(Xt.Ks("setting flag key ",u.feature_flag_key," to web experiment ",u),(c=i.Ys)==null||c.set(u.feature_flag_key,u));var f=i._instance.getFeatureFlag(u.feature_flag_key);ut(f)&&u.variants[f]&&i.Xs(u.name,f,u.variants[f].transforms)}else if(u.variants)for(var h in u.variants){var p=u.variants[h];Xt.eo(p)&&i.Xs(u.name,h,p.transforms)}}))}),s)},this._instance=t,this._instance.onFeatureFlags((s=>{this.onFeatureFlags(s)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Xt.Ks(Kb);else if(!this.Dt.disable_web_experiments){if(Ne(this.Ys))return this.Ys=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Xt.Ks("applying feature flags",t),t.forEach((i=>{var s;if(this.Ys&&(s=this.Ys)!=null&&s.has(i)){var o,u=this._instance.getFeatureFlag(i),c=(o=this.Ys)==null?void 0:o.get(i);u&&c!=null&&c.variants[u]&&this.Xs(c.name,u,c.variants[u].transforms)}}))}}previewWebExperiment(){var t=Xt.getWindowLocation();if(t!=null&&t.search){var i=Dl(t?.search,"__experiment_id"),s=Dl(t?.search,"__experiment_variant");i&&s&&(Xt.Ks("previewing web experiments "+i+" && "+s),this.getWebExperiments((o=>{this.ro(parseInt(i),s,o)}),!1,!0))}}loadIfEnabled(){this.Dt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,i,s){if(this.Dt.disable_web_experiments&&!s)return t([]);var o=this._instance.get_property("$web_experiments");if(o&&!i)return t(o);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Dt.token),method:"GET",callback:u=>t(u.statusCode===200&&u.json&&u.json.experiments||[])})}ro(t,i,s){var o=s.filter((u=>u.id===t));o&&o.length>0&&(Xt.Ks("Previewing web experiment ["+o[0].name+"] with variant ["+i+"]"),this.Xs(o[0].name,i,o[0].variants[i].transforms))}static eo(t){return!Ne(t.conditions)&&Xt.io(t)&&Xt.no(t)}static io(t){var i;if(Ne(t.conditions)||Ne((i=t.conditions)==null?void 0:i.url))return!0;var s,o,u,c=Xt.getWindowLocation();return!!c&&((s=t.conditions)==null||!s.url||dA[(o=(u=t.conditions)==null?void 0:u.urlMatchType)!==null&&o!==void 0?o:"icontains"](t.conditions.url,c))}
2static getWindowLocation(){return G?.location}static no(t){var i;if(Ne(t.conditions)||Ne((i=t.conditions)==null?void 0:i.utm))return!0;var s=xx();if(s.utm_source){var o,u,c,f,h,p,g,m,y=(o=t.conditions)==null||(o=o.utm)==null||!o.utm_campaign||((u=t.conditions)==null||(u=u.utm)==null?void 0:u.utm_campaign)==s.utm_campaign,b=(c=t.conditions)==null||(c=c.utm)==null||!c.utm_source||((f=t.conditions)==null||(f=f.utm)==null?void 0:f.utm_source)==s.utm_source,S=(h=t.conditions)==null||(h=h.utm)==null||!h.utm_medium||((p=t.conditions)==null||(p=p.utm)==null?void 0:p.utm_medium)==s.utm_medium,x=(g=t.conditions)==null||(g=g.utm)==null||!g.utm_term||((m=t.conditions)==null||(m=m.utm)==null?void 0:m.utm_term)==s.utm_term;return y&&S&&x&&b}return!1}static Ks(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;i>o;o++)s[o-1]=arguments[o];de.info("[WebExperiments] "+t,s)}Xs(t,i,s){this._is_bot()?Xt.Ks(Kb):i!=="control"?s.forEach((o=>{if(o.selector){var u;Xt.Ks("applying transform of variant "+i+" for experiment "+t+" ",o);var c=(u=document)==null?void 0:u.querySelectorAll(o.selector);c?.forEach((f=>{var h=f;o.html&&(h.innerHTML=o.html),o.css&&h.setAttribute("style",o.css)}))}})):Xt.Ks("Control variants leave the page unmodified.")}_is_bot(){return Mn&&this._instance?jx(Mn,this.Dt.custom_blocked_useragents):void 0}}var Hn=_t("[Conversations]"),ps="Conversations not available yet.",Tf={featureFlags:class{constructor(e){this.so=!1,this.oo=!1,this.ao=!1,this.lo=!1,this.uo=!1,this.ho=!1,this.co=!1,this.do=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Dt(){return this._instance.config}get Ki(){return this._instance.persistence}vo(e){return this._instance.get_property(e)}fo(){var e,t;return(e=(t=this.Ki)==null?void 0:t.ii(this.Dt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}po(){return!!this.fo()&&(this.do||this.ao||(this.do=!0,It.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}mo(){var e,t=(e=this.Dt.evaluation_contexts)!==null&&e!==void 0?e:this.Dt.evaluation_environments;return!this.Dt.evaluation_environments||this.Dt.evaluation_contexts||this.co||(It.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.co=!0),t!=null&&t.length?t.filter((i=>{var s=i&&typeof i=="string"&&i.trim().length>0;return s||It.error("Invalid evaluation context found:",i,"Expected non-empty string"),s})):[]}yo(){return this.mo().length>0}bo(){var e=this.Dt.flag_keys;if(!fe(e)){if(ze(e))return e.filter((t=>{var i=t&&typeof t=="string"&&t.trim().length>0;return i||It.error("Invalid flag key found:",t,"Expected non-empty string"),i}));It.error("Invalid flag_keys found:",e,"Expected array of non-empty strings")}}initialize(){var e,t,{config:i}=this._instance,s=(e=(t=i.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(s).length){var o,u,c=(o=(u=i.bootstrap)==null?void 0:u.featureFlagPayloads)!==null&&o!==void 0?o:{},f=Object.keys(s).filter((p=>!!s[p])).reduce(((p,g)=>(p[g]=s[g]||!1,p)),{}),h=Object.keys(c).filter((p=>f[p])).reduce(((p,g)=>(c[g]&&(p[g]=c[g]),p)),{});this.receivedFeatureFlags({featureFlags:f,featureFlagPayloads:h})}}updateFlags(e,t,i){var s,o,u=i!=null&&i.merge&&(s=this.vo(xs))!==null&&s!==void 0?s:{},c=i!=null&&i.merge&&(o=this.vo(Oc))!==null&&o!==void 0?o:{},f=ae({},u,e),h=ae({},c,t),p={};for(var[g,m]of Object.entries(f))p[g]={key:g,enabled:aC(m),variant:oC(m),reason:void 0,metadata:fe(h?.[g])?void 0:{id:0,version:void 0,description:void 0,payload:h[g]}};this.receivedFeatureFlags({flags:p})}get hasLoadedFlags(){return this.oo}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.vo(bv),t=this.vo(qi),i=this.vo(Oa);if(!i&&!t)return e||{};var s=lt({},e||{}),o=[...new Set([...Object.keys(i||{}),...Object.keys(t||{})])];for(var u of o){var c,f,h=s[u],p=t?.[u],g=fe(p)?(c=h?.enabled)!==null&&c!==void 0&&c:!!p,m=fe(p)?h.variant:typeof p=="string"?p:void 0,y=i?.[u],b=ae({},h,{enabled:g,variant:g?m??h?.variant:void 0});g!==h?.enabled&&(b.original_enabled=h?.enabled),m!==h?.variant&&(b.original_variant=h?.variant),y&&(b.metadata=ae({},h?.metadata,{payload:y,original_payload:h==null||(f=h.metadata)==null?void 0:f.payload})),s[u]=b}return this.so||(It.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:i,finalDetails:s}),this.so=!0),s}getFlagVariants(){var e=this.vo(xs),t=this.vo(qi);if(!t)return e||{};for(var i=lt({},e),s=Object.keys(t),o=0;s.length>o;o++)i[s[o]]=t[s[o]];return this.so||(It.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:i}),this.so=!0),i}getFlagPayloads(){var e=this.vo(Oc),t=this.vo(Oa);if(!t)return e||{};for(var i=lt({},e||{}),s=Object.keys(t),o=0;s.length>o;o++)i[s[o]]=t[s[o]];return this.so||(It.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:i}),this.so=!0),i}reloadFeatureFlags(){this.lo||this.Dt.advanced_disable_feature_flags||this._o||(this._instance.Fn.emit("featureFlagsReloading",!0),this._o=setTimeout((()=>{this.wo()}),5))}xo(){clearTimeout(this._o),this._o=void 0}ensureFlagsLoaded(){this.oo||this.ao||this._o||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.lo=e}wo(e){var t;if(this.xo(),!this._instance.Ii())if(this.ao)this.uo=!0;else{var i=this.Dt.token,s=this.vo(Kc),o={token:i,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:ae({},((t=this.Ki)==null?void 0:t.get_initial_props())||{},this.vo(ys)||{}),group_properties:this.vo(_s),timezone:Mx()};en(s)||fe(s)||(o.$device_id=s),(e!=null&&e.disableFlags||this.Dt.advanced_disable_feature_flags)&&(o.disable_flags=!0),this.yo()&&(o.evaluation_contexts=this.mo());var u=this.bo();fe(u)||(o.flag_keys=u);var c=!!this.Dt.advanced_only_evaluate_survey_feature_flags,f=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Dt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.ao=!0,this._instance._send_request({method:"POST",url:f,data:o,compression:this.Dt.disable_compression?void 0:ci.Base64,timeout:this.Dt.feature_flag_request_timeout_ms,callback:h=>{var p,g,m,y=!0;if(h.statusCode===200&&(this.uo||(this.$anon_distinct_id=void 0),y=!1),this.ao=!1,!o.disable_flags||this.uo){this.ho=!y;var b=[];
2h.error?h.error instanceof Error?b.push(h.error.name==="AbortError"?"timeout":"connection_error"):b.push("unknown_error"):h.statusCode!==200&&b.push("api_error_"+h.statusCode),(p=h.json)!=null&&p.errorsWhileComputingFlags&&b.push("errors_while_computing_flags");var S,x=!((g=h.json)==null||(g=g.quotaLimited)==null||!g.includes("feature_flags"));x&&b.push("quota_limited"),(m=this.Ki)==null||m.register({[Tv]:b}),x?It.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."):(o.disable_flags||this.receivedFeatureFlags((S=h.json)!==null&&S!==void 0?S:{},y,{partialResponse:c}),this.uo&&(this.uo=!1,this.wo()))}}})}}getFeatureFlag(e,t){var i;if(t===void 0&&(t={}),!t.fresh||this.ho)if(this.oo||this.getFlags()&&this.getFlags().length>0){if(!this.po()){var s=this.getFeatureFlagResult(e,t);return(i=s?.variant)!==null&&i!==void 0?i:s?.enabled}}else It.warn('getFeatureFlag for key "'+e+wp)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.ho)if(this.oo||this.getFlags()&&this.getFlags().length>0){if(!this.po()){var i=this.getFlagVariants(),s=e in i,o=i[e],u=this.getFlagPayloads()[e],c=String(o),f=this.vo(Sv)||void 0,h=this.vo(Ol)||void 0,p=this.vo(yl)||{};if(this.Dt.advanced_feature_flags_dedup_per_session){var g,m=this._instance.get_session_id(),y=this.vo(Ev);m&&m!==y&&(p={},(g=this.Ki)==null||g.register({[yl]:p,[Ev]:m}))}if((t.send_event||!("send_event"in t))&&(!(e in p)||!p[e].includes(c))){var b,S,x,T,E,A,C,M,N,B;ze(p[e])?p[e].push(c):p[e]=[c],(b=this.Ki)==null||b.register({[yl]:p});var k=this.getFeatureFlagDetails(e),D=[...(S=this.vo(Tv))!==null&&S!==void 0?S:[]];fe(o)&&D.push("flag_missing");var $={$feature_flag:e,$feature_flag_response:o,$feature_flag_payload:u||null,$feature_flag_request_id:f,$feature_flag_evaluated_at:h,$feature_flag_bootstrapped_response:((x=this.Dt.bootstrap)==null||(x=x.featureFlags)==null?void 0:x[e])||null,$feature_flag_bootstrapped_payload:((T=this.Dt.bootstrap)==null||(T=T.featureFlagPayloads)==null?void 0:T[e])||null,$used_bootstrap_value:!this.ho};fe(k==null||(E=k.metadata)==null?void 0:E.version)||($.$feature_flag_version=k.metadata.version);var X,F=(A=k==null||(C=k.reason)==null?void 0:C.description)!==null&&A!==void 0?A:k==null||(M=k.reason)==null?void 0:M.code;F&&($.$feature_flag_reason=F),k!=null&&(N=k.metadata)!=null&&N.id&&($.$feature_flag_id=k.metadata.id),fe(k?.original_variant)&&fe(k?.original_enabled)||($.$feature_flag_original_response=fe(k.original_variant)?k.original_enabled:k.original_variant),k!=null&&(B=k.metadata)!=null&&B.original_payload&&($.$feature_flag_original_payload=k==null||(X=k.metadata)==null?void 0:X.original_payload),D.length&&($.$feature_flag_error=D.join(",")),this._instance.capture("$feature_flag_called",$)}if(s)return{key:e,enabled:!!o,variant:typeof o=="string"?o:void 0,payload:sC(u)}}}else It.warn('getFeatureFlagResult for key "'+e+wp)}getRemoteConfigPayload(e,t){var i=this.Dt.token,s={distinct_id:this._instance.get_distinct_id(),token:i};this.yo()&&(s.evaluation_contexts=this.mo());var o=this.bo();fe(o)||(s.flag_keys=o),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:s,compression:this.Dt.disable_compression?void 0:ci.Base64,timeout:this.Dt.feature_flag_request_timeout_ms,callback(u){var c,f=(c=u.json)==null?void 0:c.featureFlagPayloads;t(f?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.ho){if(this.oo||this.getFlags()&&this.getFlags().length>0){var i=this.getFeatureFlag(e,t);return fe(i)?void 0:!!i}It.warn('isFeatureEnabled for key "'+e+wp)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,i){if(this.Ki){this.oo=!0;var s=this.getFlagVariants(),o=this.getFlagPayloads(),u=this.getFlagsWithDetails();(function(c,f,h,p,g,m){h===void 0&&(h={}),p===void 0&&(p={}),g===void 0&&(g={});var y=(D=>{var $=D.flags;return $?(D.featureFlags=Object.fromEntries(Object.keys($).map((X=>{var F;
2return[X,(F=$[X].variant)!==null&&F!==void 0?F:$[X].enabled]}))),D.featureFlagPayloads=Object.fromEntries(Object.keys($).filter((X=>$[X].enabled)).filter((X=>{var F;return(F=$[X].metadata)==null?void 0:F.payload})).map((X=>{var F;return[X,(F=$[X].metadata)==null?void 0:F.payload]})))):It.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),D})(c),b=y.flags,S=y.featureFlags,x=y.featureFlagPayloads;if(S){var T=c.requestId,E=c.evaluatedAt;if(ze(S)){It.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var A={};if(S)for(var C=0;S.length>C;C++)A[S[C]]=!0;f&&f.register({[Ac]:S,[xs]:A})}else{var M=S,N=x,B=b;if(m!=null&&m.partialResponse)M=ae({},h,M),N=ae({},p,N),B=ae({},g,B);else if(c.errorsWhileComputingFlags)if(b){var k=new Set(Object.keys(b).filter((D=>{var $;return!(($=b[D])!=null&&$.failed)})));M=ae({},h,Object.fromEntries(Object.entries(M).filter((D=>{var[$]=D;return k.has($)})))),N=ae({},p,Object.fromEntries(Object.entries(N||{}).filter((D=>{var[$]=D;return k.has($)})))),B=ae({},g,Object.fromEntries(Object.entries(B||{}).filter((D=>{var[$]=D;return k.has($)}))))}else M=ae({},h,M),N=ae({},p,N),B=ae({},g,B);f&&f.register(ae({[Ac]:Object.keys(Yb(M)),[xs]:M||{},[Oc]:N||{},[bv]:B||{}},T?{[Sv]:T}:{},E?{[Ol]:E}:{}))}}})(e,this.Ki,s,o,u,i),t||(this.do=!1),this.ko(t)}}override(e,t){t===void 0&&(t=!1),It.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.Ki)return It.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.Ki.unregister(qi),this.Ki.unregister(Oa),this.ko(),hs.info("All overrides cleared");if(ze(e)){var t=Vb(e);return this.Ki.register({[qi]:t}),this.ko(),hs.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var i,s=e;if(this.so=!!((i=s.suppressWarning)!==null&&i!==void 0&&i),"flags"in s){if(s.flags===!1)this.Ki.unregister(qi),hs.info("Flag overrides cleared");else if(s.flags){if(ze(s.flags)){var o=Vb(s.flags);this.Ki.register({[qi]:o})}else this.Ki.register({[qi]:s.flags});hs.info("Flag overrides set",{flags:s.flags})}}return"payloads"in s&&(s.payloads===!1?(this.Ki.unregister(Oa),hs.info("Payload overrides cleared")):s.payloads&&(this.Ki.register({[Oa]:s.payloads}),hs.info("Payload overrides set",{payloads:s.payloads}))),void this.ko()}if(e&&typeof e=="object")return this.Ki.register({[qi]:e}),this.ko(),hs.info("Flag overrides set",{flags:e});It.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.oo){var{flags:t,flagVariants:i}=this.So();e(t,i)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,i){var s,o=(this.vo(cl)||[]).find((h=>h.flagKey===e)),u={["$feature_enrollment/"+e]:t},c={$feature_flag:e,$feature_enrollment:t,$set:u};o&&(c.$early_access_feature_name=o.name),i&&(c.$feature_enrollment_stage=i),this._instance.capture("$feature_enrollment_update",c),this.setPersonPropertiesForFlags(u,!1);var f=ae({},this.getFlagVariants(),{[e]:t});(s=this.Ki)==null||s.register({[Ac]:Object.keys(Yb(f)),[xs]:f}),this.ko()}getEarlyAccessFeatures(e,t,i){t===void 0&&(t=!1);var s=this.vo(cl),o=i?"&"+i.map((u=>"stage="+u)).join("&"):"";if(s&&!t)return e(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Dt.token+o),method:"GET",callback:u=>{var c,f;if(u.json){var h=u.json.earlyAccessFeatures;return(c=this.Ki)==null||c.unregister(cl),(f=this.Ki)==null||f.register({[cl]:h}),e(h)}}})}So(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((i=>t[i])),flagVariants:Object.keys(t).filter((i=>t[i])).reduce(((i,s)=>(i[s]=t[s],i)),{})}}ko(e){var{flags:t,flagVariants:i}=this.So();this.featureFlagEventHandlers.forEach((s=>s(t,i,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var i=this.vo(ys)||{},s=e?.$set||(e!=null&&e.$set_once?{}:e),o=e?.$set_once,u={};if(o)for(var c in o)({}).hasOwnProperty.call(o,c)&&(c in i||(u[c]=o[c]));this._instance.register({[ys]:ae({},i,u,s)}),t&&this._instance.reloadFeatureFlags()}
2unsetPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var i=ae({},this.vo(ys)||{});e.forEach((s=>{delete i[s]})),this._instance.register({[ys]:i}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(e){e===void 0&&(e=!0),this._instance.unregister(ys),e&&this._instance.reloadFeatureFlags()}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var i=this.vo(_s)||{};Object.keys(i).length!==0&&Object.keys(i).forEach((s=>{i[s]=ae({},i[s],e[s]),delete e[s]})),this._instance.register({[_s]:ae({},i,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.vo(_s)||{};this._instance.register({[_s]:ae({},t,{[e]:{}})})}else this._instance.unregister(_s)}reset(){this.oo=!1,this.ao=!1,this.lo=!1,this.uo=!1,this.ho=!1,this.$anon_distinct_id=void 0,this.xo(),this.so=!1}}},hA={sessionRecording:class{get Dt(){return this._instance.config}get Ki(){return this._instance.persistence}get started(){var e;return!((e=this.Co)==null||!e.isStarted)}get status(){var e,t;return this.Io===el||this.Io===bc?this.Io:(e=(t=this.Co)==null?void 0:t.status)!==null&&e!==void 0?e:this.Io}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.Io=Bb,this.To=void 0,this._instance=e,!this._instance.sessionManager)throw Bi.error("started without valid sessionManager"),new Error(Fv+" started without valid sessionManager. This is a bug.");if(this.Dt.cookieless_mode===Yi)throw new Error(Fv+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get Eo(){var e,t=!((e=this._instance.get_property(Es))==null||!e.enabled),i=!this.Dt.disable_session_recording,s=this.Dt.disable_session_recording||this._instance.consent.isOptedOut();return G&&t&&i&&!s}startIfEnabledOrStop(e){var t;if(!this.Eo||(t=this.Co)==null||!t.isStarted){var i=!fe(Object.assign)&&!fe(Array.from);this.Eo&&i?(this.Mo(e),Bi.info("starting")):(this.Io=Bb,this.stopRecording())}}Mo(e){var t,i,s;this.Eo&&(this.Io!==el&&this.Io!==bc&&(this.Io=Ub),Ee!=null&&(t=Ee.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(i=Ee.__PosthogExtensions__)!=null&&i.initSessionRecording?this.Ro(e):(s=Ee.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this._instance,this.Po,(o=>{if(o)return Bi.error("could not load recorder",o);this.Ro(e)})))}stopRecording(){var e,t;(e=this.To)==null||e.call(this),this.To=void 0,(t=this.Co)==null||t.stop()}Oo(){var e,t;(e=this.To)==null||e.call(this),this.To=void 0,(t=this.Co)==null||t.discard()}Lo(){var e,t;(e=this.Ki)==null||e.unregister(pg),(t=this.Ki)==null||t.unregister(W1)}Ao(e,t){if(Ne(e))return null;var i,s=tn(e)?e:parseFloat(e);return typeof(i=s)!="number"||!Number.isFinite(i)||0>i||i>1?(Bi.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):s}Fo(e){if(this.Ki){var t,i,s=this.Ki,o=()=>{var u,c=e.sessionRecording===!1?void 0:e.sessionRecording,f=this.Ao((u=this.Dt.session_recording)==null?void 0:u.sampleRate,"session_recording.sampleRate"),h=this.Ao(c?.sampleRate,"remote config sampleRate"),p=f??h;Ne(p)&&this.Lo();var g=c?.minimumDurationMilliseconds;s.register({[Es]:ae({cache_timestamp:Date.now(),enabled:!!c},c,{networkPayloadCapture:ae({capturePerformance:e.capturePerformance},c?.networkPayloadCapture),canvasRecording:{enabled:c?.recordCanvas,fps:c?.canvasFps,quality:c?.canvasQuality},sampleRate:p,minimumDurationMilliseconds:fe(g)?null:g,endpoint:c?.endpoint,triggerMatchType:c?.triggerMatchType,masking:c?.masking,urlTriggers:c?.urlTriggers,version:c?.version,triggerGroups:c?.triggerGroups})})};o(),(t=this.To)==null||t.call(this),this.To=(i=this._instance.sessionManager)==null?void 0:i.onSessionId(o)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.Fo(e),void this.Oo()):(this.Fo(e),void this.startIfEnabledOrStop()):(this.Io===el&&(this.Io=bc,Bi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var i;t===void 0&&(t="log"),(i=this.Co)!=null&&i.log?this.Co.log(e,t):Bi.warn("log called before recorder was ready")}get Po(){var e,t,i=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Es);return(i==null||(t=i.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}No(){var e,t,i=this._instance.get_property(Es);if(!i)return!1;try{t=typeof i=="object"?i:JSON.parse(i)}catch(o){return Bi.warn("persisted remote config for session recording is invali
2d and will be ignored",o),!1}var s=(e=t.cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-s}Ro(e){var t,i;if((t=Ee.__PosthogExtensions__)==null||!t.initSessionRecording)return Bi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[ox]:!0});if(this.Co||(this.Co=(i=Ee.__PosthogExtensions__)==null?void 0:i.initSessionRecording(this._instance),this.Co._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.No())return this.Io===bc||this.Io===el?void 0:(this.Io=el,Bi.info("persisted remote config is stale, requesting fresh config before starting"),void new Ax(this._instance).load());this.Io=Ub,this.Co.start(e)}onRRwebEmit(e){var t;(t=this.Co)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Co||(t=this.Ki)==null||t.register({[tx]:!0}),(e=this.Co)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Co||(t=this.Ki)==null||t.register({[ex]:!0}),(e=this.Co)==null||e.overrideSampling()}overrideTrigger(e){var t,i;this.Co||(i=this.Ki)==null||i.register({[e==="url"?nx:ix]:!0}),(t=this.Co)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.Co)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var i;return!((i=this.Co)==null||!i.tryAddCustomEvent(e,t))}}},pA={autocapture:class{constructor(e){this.Do=!1,this.$o=null,this.qo=!1,this.instance=e,this.rageclicks=new jb(e.config.rageclick),this.jo=null}initialize(){this.startIfEnabled()}get Dt(){var e,t,i=dt(this.instance.config.autocapture)?this.instance.config.autocapture:{};return i.url_allowlist=(e=i.url_allowlist)==null?void 0:e.map((s=>new RegExp(s))),i.url_ignorelist=(t=i.url_ignorelist)==null?void 0:t.map((s=>new RegExp(s))),i}Bo(){if(this.isBrowserSupported()){if(G&&he){var e=i=>{i=i||G?.event;try{this.Ho(i)}catch(s){yp.error("Failed to capture event",s)}};if(bt(he,"submit",e,{capture:!0}),bt(he,"change",e,{capture:!0}),bt(he,"click",e,{capture:!0}),this.Dt.capture_copied_text){var t=i=>{i=i||G?.event;try{this.Ho(i,mp)}catch(s){yp.error("Failed to capture copy/cut event",s)}};bt(he,"copy",t,{capture:!0}),bt(he,"cut",t,{capture:!0})}}}else yp.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Do&&(this.Bo(),this.Do=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.qo=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[hv]:!!e.autocapture_opt_out}),this.$o=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.jo=e}getElementSelectors(e){var t,i=[];return(t=this.jo)==null||t.forEach((s=>{var o=he?.querySelectorAll(s);o?.forEach((u=>{e===u&&i.push(s)}))})),i}get isEnabled(){var e,t,i=(e=this.instance.persistence)==null?void 0:e.props[hv];if(en(this.$o)&&!pi(i)&&!this.instance.Ii())return!1;var s=(t=this.$o)!==null&&t!==void 0?t:!!i;return!!this.instance.config.autocapture&&!s}Ho(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var i,s=lp(e);cx(s)&&(s=s.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(i=this.rageclicks)!=null&&i.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&vb(s,this.instance.config.rageclick)&&this.Ho(e,"$rageclick");var o=t===mp;if(s&&(function(m,y,b,S,x){var T,E,A,C,M,N;if(b===void 0&&(b=void 0),!G||_g(m)||(T=b)!=null&&T.url_allowlist&&!db(b.url_allowlist)||(E=b)!=null&&E.url_ignorelist&&db(b.url_ignorelist))return!1;if((A=b)!=null&&A.dom_event_allowlist){var B=b.dom_event_allowlist;if(B&&!B.some((F=>y.type===F)))return!1}var{parentIsUsefulElement:k,targetElementList:D}=vx(m,S);if(!(function(F,re){var ie=re?.element_allowlist;if(fe(ie))return!0;var oe,ue=function(Y){if(ie.some((se=>Y.tagName.toLowerCase()===se)))return{v:!0}};for(var j of F)if(oe=ue(j))return oe.v;return!1})(D,b)||!Dv(D,(C=b)==null?void 0:C.css_selector_allowlist)||Dv(D,(M=(N=b)==null?void 0:N.css_selector_ignorelist)!==null&&M!==void 0?M:pM))return!1;var $=G.getComputedStyle(m);if($&&$.getPropertyValue("cursor")==="pointer"&&y.type==="click")return!0;var X=m.tagName.toLowerCase();switch(X){case"html":return!1;case"form":return(x||["submit"]).indexOf(y.type)>=0;case"input":case"select":case"textarea":return(x||["change","click"]).indexOf(y.type)>=0;default:return k?(x||["click"]).indexOf(y.type)>=0:(x||["click"]).indexOf(y.type)>=0&&(yg.indexOf(X)>-1||m.getAttribute("contenteditable")==="true")}})(s,e,this.Dt,o,o?["copy","cut"]:void 0)){var{props:u,explicitNoCapture:c}=rA(s,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Dt.element_attribute_ignorelist,elementsC
2hainAsString:this.qo});if(c)return!1;var f=this.getElementSelectors(s);if(f&&f.length>0&&(u.$element_selectors=f),t===mp){var h,p=dx(G==null||(h=G.getSelection())==null?void 0:h.toString()),g=e.type||"clipboard";if(!p)return!1;u.$selected_content=p,u.$copy_type=g}return this.instance.capture(t,u),!0}}}isBrowserSupported(){return Gi(he?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Uo=(G==null||(t=G.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(de.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.zo&&this.zo(),this.zo=void 0,de.info("History API monitoring stopped")}monitorHistoryChanges(){G&&G.history&&(this.Vo("pushState"),this.Vo("replaceState"),this.Wo())}Vo(e){var t;if(G&&((t=G.history[e])==null||!t.__posthog_wrapped__)){var i=this;(function(s,o,u){try{if(!(o in s))return()=>{};var c=s[o],f=u(c);return Gi(f)&&(f.prototype=f.prototype||{},Object.defineProperties(f,{__posthog_wrapped__:{enumerable:!1,value:!0}})),s[o]=f,()=>{s[o]===f&&(s[o]=c)}}catch{return()=>{}}})(G.history,e,(s=>function(o,u,c){s.call(this,o,u,c),i.Go(e)}))}}Go(e){try{var t,i=G==null||(t=G.location)==null?void 0:t.pathname;if(!i)return;i!==this.Uo&&this.isEnabled&&this._instance.capture(ka,{navigation_type:e}),this.Uo=i}catch(s){de.error("Error capturing "+e+" pageview",s)}}Wo(){if(!this.zo){var e=()=>{this.Go("popstate")};bt(G,"popstate",e),this.zo=()=>{G&&G.removeEventListener("popstate",e)}}}},heatmaps:class{get Dt(){return this.instance.config}constructor(e){var t;this.Zo=!1,this.Do=!1,this.Qo=null,this.instance=e,this.Zo=!((t=this.instance.persistence)==null||!t.props[pv]),this.rageclicks=new jb(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return dt(this.Dt.capture_heatmaps)&&this.Dt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Dt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Ne(this.Dt.capture_heatmaps)?Ne(this.Dt.enable_heatmaps)?this.Zo:this.Dt.enable_heatmaps:this.Dt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Do)return;aA.info("starting..."),this.Jo(),this.Pt()}else{var e;clearInterval((e=this.Qo)!==null&&e!==void 0?e:void 0),this.Ko(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[pv]:t}),this.Zo=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.R;return this.R=void 0,e}Yo(e){this._t(e.originalEvent,"deadclick")}Pt(){this.Qo&&clearInterval(this.Qo),this.Qo=he?.visibilityState==="visible"?setInterval(this.ji.bind(this),this.flushIntervalMilliseconds):null}Jo(){G&&he&&(this.Xo=this.ji.bind(this),bt(G,Jc,this.Xo),this.ea=e=>this._t(e||G?.event),bt(he,"click",this.ea,{capture:!0}),this.ta=e=>this.ra(e||G?.event),bt(he,"mousemove",this.ta,{capture:!0}),this.ia=new yb(this.instance,xM,this.Yo.bind(this)),this.ia.startIfEnabledOrStop(),this.na=this.Pt.bind(this),bt(he,Zc,this.na),this.Do=!0)}Ko(){var e;G&&he&&(this.Xo&&G.removeEventListener(Jc,this.Xo),this.ea&&he.removeEventListener("click",this.ea,{capture:!0}),this.ta&&he.removeEventListener("mousemove",this.ta,{capture:!0}),this.na&&he.removeEventListener(Zc,this.na),clearTimeout(this.sa),(e=this.ia)==null||e.stop(),this.Do=!1)}oa(e,t){var i=this.instance.scrollManager.scrollY(),s=this.instance.scrollManager.scrollX(),o=this.instance.scrollManager.scrollElement(),u=(function(c,f,h){for(var p=c;p&&qr(p)&&!An(p,"body");){if(p===h)return!1;if(Me(f,G?.getComputedStyle(p).position))return!0;p=hx(p)}return!1})(lp(e),["fixed","sticky"],o);return{x:e.clientX+(u?0:s),y:e.clientY+(u?0:i),target_fixed:u,type:t}}_t(e,t){var i;if(t===void 0&&(t="click"),!fb(e.target)&&Hb(e)){var s=this.oa(e,t);(i=this.rageclicks)!=null&&i.isRageClick(e.clientX,e.clientY,new Date().getTime())&&vb(lp(e),this.instance.config.rageclick)&&this.aa(ae({}
2,s,{type:"rageclick"})),this.aa(s)}}ra(e){!fb(e.target)&&Hb(e)&&(clearTimeout(this.sa),this.sa=setTimeout((()=>{this.aa(this.oa(e,"mousemove"))}),500))}aa(e){if(G){var t=G.location.href,i=this.Dt.custom_personal_data_properties,s=this.Dt.mask_personal_data_properties?[...Ia,...i||[]]:[],o=Ll(t,s,zl);this.R=this.R||{},this.R[o]||(this.R[o]=[]),this.R[o].push(e)}}ji(){this.R&&!Dr(this.R)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:yb,webVitalsAutocapture:class{constructor(e){var t;this.Zo=!1,this.Do=!1,this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.la=()=>{clearTimeout(this.ua),this.R.metrics.length!==0&&(this._instance.capture("$web_vitals",this.R.metrics.reduce(((i,s)=>ae({},i,{["$web_vitals_"+s.name+"_event"]:ae({},s),["$web_vitals_"+s.name+"_value"]:s.value})),{})),this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.vt=i=>{var s;this.R=this.R||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var o=this.ha();if(!fe(o))if(Ne(i?.name)||Ne(i?.value))ds.error("Invalid metric received",i);else if(!this.ca||this.ca>i.value){this.R.url!==o&&(this.la(),this.ua=setTimeout(this.la,this.flushToCaptureTimeoutMs)),fe(this.R.url)&&(this.R.url=o),this.R.firstMetricTimestamp=fe(this.R.firstMetricTimestamp)?Date.now():this.R.firstMetricTimestamp,i.attribution&&i.attribution.interactionTargetElement&&(i.attribution.interactionTargetElement=void 0);var u=(s=this._instance.sessionManager)==null?void 0:s.checkAndGetSessionAndWindowId(!0),c=ae({},i,{$current_url:o,timestamp:Date.now()});fe(u)||(c.$session_id=u.sessionId,c.$window_id=u.windowId),this.R.metrics.push(c),this.R.metrics.length===this.allowedMetrics.length&&this.la()}else ds.error("Ignoring metric with value >= "+this.ca,i)},this.da=()=>{if(!this.Do){var i,s,o,u,c=Ee.__PosthogExtensions__;fe(c)||fe(c.postHogWebVitalsCallbacks)||({onLCP:i,onCLS:s,onFCP:o,onINP:u}=c.postHogWebVitalsCallbacks),i&&s&&o&&u?(this.allowedMetrics.indexOf("LCP")>-1&&i(this.vt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&s(this.vt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&o(this.vt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&u(this.vt.bind(this)),this.Do=!0):ds.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.Zo=!((t=this._instance.persistence)==null||!t.props[yv]),this.startIfEnabled()}get va(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,i=dt(this.va)?(e=this.va)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Ne(i)?((t=this._instance.persistence)==null?void 0:t.props[_v])||["CLS","FCP","INP","LCP"]:i}get flushToCaptureTimeoutMs(){return(dt(this.va)?this.va.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=dt(this.va)?this.va.web_vitals_attribution:void 0;return e!=null&&e}get ca(){var e=dt(this.va)&&tn(this.va.__web_vitals_max_value)?this.va.__web_vitals_max_value:Pb;return e>0&&6e4>=e?Pb:e}get isEnabled(){var e=Gt?.protocol;if(e!=="http:"&&e!=="https:")return ds.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=dt(this.va)?this.va.web_vitals:pi(this.va)?this.va:void 0;return pi(t)?t:this.Zo}startIfEnabled(){this.isEnabled&&!this.Do&&(ds.info("enabled, starting..."),this.qr(this.da))}onRemoteConfig(e){if("capturePerformance"in e){var t=dt(e.capturePerformance)&&!!e.capturePerformance.web_vitals,i=dt(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[yv]:t}),this._instance.persistence.register({[_v]:i})),this.Zo=t,this.startIfEnabled()}}qr(e){var t,i;(t=Ee.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(i=Ee.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(s=>{s?ds.error("failed to load script",s):e()}))}ha(){var e=G?G.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,i=this._instance.config.mask_personal_data_properties?[...Ia,...t||[]]:[];return Ll(e,i,zl)}ds.error("Could not determine current URL")}}},vA={exceptionObserver:class{constructor(e){var t,i,s;this.da=()=>{var o;if(G&&this.isEnabled&&(o=Ee.__PosthogExtensions__)!=null&&o.errorWrappingFunctions){var u=Ee.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,c=Ee.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,f=Ee.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.fa&&this.Dt.capture_unhandled_errors&&(this.fa=u(this.captureException.bind(this))),!this.pa&&this.Dt.capture_unhandled_rejections&&(this.pa=c(this.captureException.bind(this))),!this.ga&&this.Dt.capture_console_errors&&(this.ga=f(this.captureException.bind(this)))}catch(h){Wo.error("failed to start",h),this.ma()}}},this._instance=e,this.ya=!((t=this._instance.persistence)==null||!t.props[vv]),this.ba=new mC({refillRate:(i=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&i!==void 0?i:1,bucketSize:(s=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&s!==void 0?s:10,refillInterval:1e4,Qt:Wo}),this.Dt=this._a(),this.startIfEnabledOrStop()}_a(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return dt(e)?t=ae({},t,e):(fe(e)?this.ya:e)&&(t=ae({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Dt.capture_console_errors||this.Dt.capture_unhandled_errors||this.Dt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Wo.info("enabled"),this.ma(),this.qr(this.da)):this.ma()}qr(e){var t,i;(t=Ee.__PosthogExtensions__)!=null&&t.errorWrappingFunctions?e():(i=Ee.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this._instance,"exception-autocapture",(s=>{if(s)return Wo.error("failed to load script",s);e()}))}ma(){var e,t,i;(e=this.fa)==null||e.call(this),this.fa=void 0,(t=this.pa)==null||t.call(this),this.pa=void 0,(i=this.ga)==null||i.call(this),this.ga=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.ya=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[vv]:this.ya}),this.Dt=this._a(),this.startIfEnabledOrStop())}onConfigChange(){this.Dt=this._a()}captureException(e){var t,i,s,o=(t=e==null||(i=e.$exception_list)==null||(i=i[0])==null?void 0:i.type)!==null&&t!==void 0?t:"Exception";this.ba.consumeRateLimit(o)?Wo.info("Skipping exception capture because of client rate limiting.",{exception:o}):(s=this._instance.exceptions)==null||s.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,i;this.wa=[],this.xa=new LC([new HC,new QC,new qC,new FC,new KC,new YC,new GC,new XC],(function(s){for(var o=arguments.length,u=new Array(o>1?o-1:0),c=1;o>c;c++)u[c-1]=arguments[c];return function(f,h){h===void 0&&(h=0);for(var p=[],g=f.split(`
3`),m=h;g.length>m;m++){var y=g[m];if(1024>=y.length){var b=ob.test(y)?y.replace(ob,"$1"):y;if(!b.match(/\S*Error: /)){for(var S of u){var x=S(b,s);if(x){p.push(x);break}}if(p.length>=50)break}}}return(function(T){if(!T.length)return[];var E=Array.from(T);return E.reverse(),E.slice(0,50).map((A=>{return ae({},A,{filename:A.filename||(C=E,C[C.length-1]||{}).filename,function:A.function||qa});var C}))})(p)}})("web:javascript",jC,UC)),this._instance=e,this.wa=(t=(i=this._instance.persistence)==null?void 0:i.get_property(gv))!==null&&t!==void 0?t:[],this.ka=Yc(this.Sa()),this.Ca=new JC(this.ka)}onConfigChange(){this.ka=Yc(this.Sa()),this.Ca.setConfig(this.ka)}onRemoteConfig(e){var t,i,s;if("errorTracking"in e){var o=(t=(i=e.errorTracking)==null?void 0:i.suppressionRules)!==null&&t!==void 0?t:[],u=(s=e.errorTracking)==null?void 0:s.captureExtensionExceptions;this.wa=o,this._instance.persistence&&this._instance.persistence.register({[gv]:this.wa,[mv]:u})}}get Ia(){var e,t=!!this._instance.get_property(mv),i=this._instance.config.error_tracking.captureExtensionExceptions;return(e=i??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.xa.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.ka.enabled)try{if(!ut(e)||e.trim().length===0)return void Ui.warn("Ignoring exception step because message must be a non-empty string");var i=this.Ta(t),{sanitizedProperties:s,droppedKeys:o}=(function(u){if(!u)return{sanitizedProperties:{},droppedKeys:[]};var c=[];return{sanitizedProperties:Object.keys(u).reduce(((f,h)=>ZC.has(h)?(c.push(h),f):(f[h]=u[h],f)),{}),droppedKeys:c}})(i);o.length>0&&Ui.warn("Ignoring reserved exception step fields",{droppedKeys:o}),this.Ca.add(ae({[Gc]:e,[Vc]:new Date().toISOString()}
3,s))}catch(u){Ui.error("Failed to add exception step. Ignoring breadcrumb.",u)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Ea(t)){if(this.Ma(t))return this.Ra("Exception dropped: matched a suppression rule"),void Ui.info("Skipping exception capture because a suppression rule matched");if(!this.Ia&&this.Pa(t))return this.Ra("Exception dropped: thrown by a browser extension"),void Ui.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Oa(t))return this.Ra("Exception dropped: thrown by the PostHog SDK"),void Ui.info("Skipping exception capture because it was thrown by the PostHog SDK")}var i=this.ka.enabled&&Ne(e.$exception_steps)?this.La(e):e;try{var s=this._instance.capture("$exception",i,{_noTruncate:!0,_batchKey:"exceptionEvent",rs:!0});return s&&this.Ca.clear(),s}catch(o){return Ui.error("Failed to capture exception event. Dropping this exception.",o),void this.Ca.clear()}}catch(o){return void Ui.error("Failed to process exception event. Ignoring this exception.",o)}}La(e){try{var t=this.Ca.getAttachable();return t.length===0?e:ae({},e,{$exception_steps:t})}catch(i){return Ui.error("Failed to read buffered exception steps. Capturing exception without steps.",i),e}}Ra(e){this.ka.enabled&&this.Ca.add({[Gc]:e,[Vc]:new Date().toISOString()})}Ta(e){return dt(e)?ae({},e):{}}Sa(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Ma(e){if(e.length===0)return!1;var t=e.reduce(((i,s)=>{var{type:o,value:u}=s;return ut(o)&&o.length>0&&i.$exception_types.push(o),ut(u)&&u.length>0&&i.$exception_values.push(u),i}),{$exception_types:[],$exception_values:[]});return this.wa.some((i=>{var s=i.values.map((o=>{var u,c=Px[o.operator],f=ze(o.value)?o.value:[o.value],h=(u=t[o.key])!==null&&u!==void 0?u:[];return f.length>0&&c(f,h)}));return i.type==="OR"?s.some(Boolean):s.every(Boolean)}))}Pa(e){return e.flatMap((t=>{var i,s;return(i=(s=t.stacktrace)==null?void 0:s.frames)!==null&&i!==void 0?i:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}Oa(e){if(e.length>0){var t,i,s,o,u=(t=(i=e[0].stacktrace)==null?void 0:i.frames)!==null&&t!==void 0?t:[],c=u[u.length-1];return(s=c==null||(o=c.filename)==null?void 0:o.includes("posthog.com/static"))!==null&&s!==void 0&&s}return!1}Ea(e){return!Ne(e)&&ze(e)}}},gA=ae({productTours:class{get Ki(){return this._instance.persistence}constructor(e){this.Aa=null,this.Fa=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if("productTours"in e){var t,i;if(this.Ki&&this.Ki.register({[hg]:!!e.productTours}),!Sp(this._instance))return!this.Aa&&Ne((t=this.Ki)==null?void 0:t.props[fl])||bp.info("product tours disabled; stopping and clearing cached tours"),(i=this.Aa)==null||i.stop(),this.Aa=null,void this.clearCache();this.loadIfEnabled()}}loadIfEnabled(){!this.Aa&&Sp(this._instance)&&this.qr((()=>this.Na()))}qr(e){var t,i;(t=Ee.__PosthogExtensions__)!=null&&t.generateProductTours?e():(i=Ee.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this._instance,"product-tours",(s=>{s?bp.error("Could not load product tours script",s):e()}))}Na(){var e;!this.Aa&&(e=Ee.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Aa=Ee.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!ze(this.Fa)||t){var i=this.Ki;if(i){var s=i.props[fl];if(ze(s)&&!t)return this.Fa=s,void e(s,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:o=>{if(Sp(this._instance)){var u=o.statusCode;if(u!==200||!o.json){var c="Product Tours API could not be loaded, status: "+u;return bp.error(c),void e([],{isLoaded:!1,error:c})}var f=ze(o.json.product_tours)?o.json.product_tours:[];this.Fa=f,i&&i.register({[fl]:f}),e(f,{isLoaded:!0})}else e([],{isLoaded:!0})}})}else e(this.Fa,{isLoaded:!0})}getActiveProductTours(e){Ne(this.Aa)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Aa.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Aa)==null||t.showTourById(e)}previewTour(e){this.Aa?this.Aa.previewTour(e):this.qr((()=>{var t;this.Na(),(t=this.Aa)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Aa)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Aa)==null||e.nextStep()}previousStep(){var e;(e=this.Aa)==null||e.previousStep()}clearCache(){var e;this.Fa=null,(e=this.Ki)==null||e.unregister(fl)}resetTour(e){var t;(t=this.Aa)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Aa)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Aa)==null||t.cancelPendingTour(e)}}},Tf),mA={siteApps:class{constructor(e){this.Da=0,this._instance=e,this.$a=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}qa(e,t){if(t){var i=this.globalsForEvent(t);this.$a.push(i),this.$a.length>1e3&&(this.$a=this.$a.slice(10))}}get siteAppLoaders(){var e;return(e=Ee._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.qa.bind(this));this.ja=()=>{e(),this.$a=[],this.ja=void 0}}}globalsForEvent(e){var t,i,s,o,u,c,f;if(!e)throw new Error("Event payload is required");var h={},p=this._instance.get_property("$groups")||[],g=this._instance.get_property("$stored_group_properties")||{};for(var[m,y]of Object.entries(g))h[m]={id:p[m],type:m,properties:y};var{$set_once:b,$set:S}=e;return{event:ae({},_1(e,oA),{properties:ae({},e.properties,S?{$set:ae({},(t=(i=e.properties)==null?void 0:i.$set)!==null&&t!==void 0?t:{},S)}:{},b?{$set_once:ae({},(s=(o=e.properties)==null?void 0:o.$set_once)!==null&&s!==void 0?s:{},b)}:{}),elements_chain:(u=(c=e.properties)==null?void 0:c.$elements_chain)!==null&&u!==void 0?u:"",distinct_id:(f=e.properties)==null?void 0:f.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:h}}Ba(e){var t,i=(t=e.tagName)==null?void 0:t.toLowerCase();return i==="style"&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet(e)||(ai.error("prepare_external_dependency_stylesheet returned null"),null):i==="script"&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script(e)||(ai.error("prepare_external_dependency_script returned null"),null):e}Ha(){var e,t,i,s,o,u,c,f;if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};
3var h=he?.defaultView,p=h==null||(e=h.Node)==null?void 0:e.prototype;if(!h||!p)return()=>{};if(this.Da++,this.Ua)return this.za();var g=[],m=this,y=new WeakSet,b=(T,E,A)=>{if(T!=null&&T[E]){var C=T[E];T[E]=A(C),g.push((()=>{T[E]=C}))}},S=T=>{if(y.has(T))return T;var E=m.Ba(T);return E&&y.add(E),E},x=T=>T.map((E=>typeof E=="string"?E:S(E))).filter((E=>!en(E)));return b(p,"appendChild",(T=>function(E){var A=S(E);return A?T.call(this,A):E})),b(p,"insertBefore",(T=>function(E,A){var C=S(E);return C?T.call(this,C,A):E})),b(p,"replaceChild",(T=>function(E,A){var C=S(E);return C?T.call(this,C,A):A})),[(t=h.Element)==null?void 0:t.prototype,(i=h.Document)==null?void 0:i.prototype,(s=h.DocumentFragment)==null?void 0:s.prototype].forEach((T=>{b(T,"append",(E=>function(){for(var A=arguments.length,C=new Array(A),M=0;A>M;M++)C[M]=arguments[M];return E.apply(this,x(C))})),b(T,"prepend",(E=>function(){for(var A=arguments.length,C=new Array(A),M=0;A>M;M++)C[M]=arguments[M];return E.apply(this,x(C))}))})),[(o=h.Element)==null?void 0:o.prototype,(u=h.CharacterData)==null?void 0:u.prototype,(c=h.DocumentType)==null?void 0:c.prototype].forEach((T=>{b(T,"before",(E=>function(){for(var A=arguments.length,C=new Array(A),M=0;A>M;M++)C[M]=arguments[M];return E.apply(this,x(C))})),b(T,"after",(E=>function(){for(var A=arguments.length,C=new Array(A),M=0;A>M;M++)C[M]=arguments[M];return E.apply(this,x(C))})),b(T,"replaceWith",(E=>function(){for(var A=arguments.length,C=new Array(A),M=0;A>M;M++)C[M]=arguments[M];var N=x(C);return C.length&&!N.length?void 0:E.apply(this,N)}))})),b((f=h.Element)==null?void 0:f.prototype,"insertAdjacentElement",(T=>function(E,A){var C=S(A);return C?T.call(this,E,C):null})),this.Ua=()=>{g.forEach((T=>T())),this.Ua=void 0},this.za()}za(){var e=!1;return()=>{var t;e||(e=!0,this.Da--,this.Da===0&&((t=this.Ua)==null||t.call(this)))}}Va(e,t){t===void 0&&(t=!0);var i=this.Ha();try{var s=e(i);return t&&i(),s}catch(o){throw i(),o}}setupSiteApp(e){var t=this.apps[e.id],i=()=>{var c;!t.errored&&this.$a.length&&(ai.info("Processing "+this.$a.length+" events for site app with id "+e.id),this.$a.forEach((f=>this.Va((()=>t.processEvent==null?void 0:t.processEvent(f))))),t.processedBuffer=!0),Object.values(this.apps).every((f=>f.processedBuffer||f.errored))&&((c=this.ja)==null||c.call(this))},s=!1,o=c=>{t.errored=!c,t.loaded=!0,ai.info("Site app with id "+e.id+" "+(c?"loaded":"errored")),s&&i()};try{var{processEvent:u}=this.Va((c=>e.init({posthog:this._instance,callback(f){c(),o(f)}})),!1);u&&(t.processEvent=u),s=!0}catch(c){ai.error(Fb+e.id,c),o(!1)}if(s&&t.loaded)try{i()}catch(c){ai.error("Error while processing buffered events PostHog app with config id "+e.id,c),t.errored=!0}}Wa(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var i of e)this.setupSiteApp(i)}Ga(e){var t=this;if(Object.keys(this.apps).length!==0){var i=this.globalsForEvent(e),s=function(u){try{t.Va((()=>u.processEvent==null?void 0:u.processEvent(i)))}catch(c){ai.error("Error while processing event "+e.event+" for site app "+u.id,c)}};for(var o of Object.values(this.apps))s(o)}}onRemoteConfig(e){var t,i,s,o=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Wa(),void this._instance.on("eventCaptured",(h=>this.Ga(h)))):void ai.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((i=this.ja)==null||i.call(this),(s=e.siteApps)!=null&&s.length)if(this.isEnabled){var u=function(h){var p;Ee["__$$ph_site_app_"+h]=o._instance,(p=Ee.__PosthogExtensions__)==null||p.loadSiteApp==null||p.loadSiteApp(o._instance,f,(g=>{if(g)return ai.error(Fb+h,g)}))};for(var{id:c,url:f}of e.siteApps)u(c)}else ai.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},yA={tracingHeaders:class{constructor(e){this.Za=void 0,this.Qa=void 0,this.Ja=void 0,this.da=()=>{var t,i,s=this.Ka();s?(fe(this.Za)&&(this.Za=(t=Ee.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null?void 0:t._patchXHR(s,(()=>this._instance.get_distinct_id()),this._instance.sessionManager)),fe(this.Qa)&&(this.Qa=(i=Ee.__PosthogExtensions__)==null||(i=i.tracingHeadersPatchFns)==null?void 0:i._patchFetch(s,(()=>this._instance.get_distinct_id()),this._instance.sessionManager))):this.ma()},this._instance=e}initialize(){this.startIfEnabledOrStop()}qr(e){var t,i;(t=Ee.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns?e():(i=Ee.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this._instance,"tracing-headers",(s=>{if(s)return sA.error("failed to load script",s);e()}))}Ya(){var e,t;return(e=(t=this._instance.config.tracing_headers)!==null&&t!==void 0?t:this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}Ka(){var e=this.Ya();return ze(e)?(ze(this.Ja)?this.Ja.splice(0,this.Ja.length,...e):this.Ja=[...e],e.length>0?this.Ja:void 0):(ze(this.Ja)&&this.Ja.splice(0),this.Ja=e||void 0,this.Ja)}ma(){var e,t;(e=this.Za)==null||e.call(this),(t=this.Qa)==null||t.call(this),this.Za=void 0,this.Qa=void 0}startIfEnabledOrStop(){this.Ka()?this.qr(this.da):this.ma()}}},_A=ae({surveys:class{get Dt(){return this._instance.config}constructor(e){this.Xa=void 0,this._surveyManager=null,this.el=!1,this.tl=[],this.rl=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Dt.disable_surveys){var t=e.surveys;if(Ne(t))return Je.warn("Flags not loaded yet. Not loading surveys.");var i=ze(t);this.Xa=i?t.length>
30:t,Je.info("flags response received, isSurveysEnabled: "+this.Xa),this.loadIfEnabled()}}reset(){try{var e;(e=this._surveyEventReceiver)==null||e.reset(),localStorage.removeItem("lastSeenSurveyDate");for(var t=[],i=0;i<localStorage.length;i++){var s=localStorage.key(i);(s!=null&&s.startsWith(Uv)||s!=null&&s.startsWith("inProgressSurvey_"))&&t.push(s)}t.forEach((o=>localStorage.removeItem(o)))}catch{}}loadIfEnabled(){if(!this._surveyManager)if(this.el)Je.info("Already initializing surveys, skipping...");else if(this.Dt.disable_surveys)Je.info(qb);else if(this.Dt.cookieless_mode&&this._instance.consent.isOptedOut())Je.info("Not loading surveys in cookieless mode without consent.");else{var e=Ee?.__PosthogExtensions__;if(e){if(!fe(this.Xa)||this.Dt.advanced_enable_surveys){var t=this.Xa||this.Dt.advanced_enable_surveys;this.el=!0;try{var i=e.generateSurveys;if(i)return void this.il(i,t);var s=e.loadExternalDependency;if(!s)return void this.nl(Ov);s(this._instance,"surveys",(o=>{o||!e.generateSurveys?this.nl("Could not load surveys script",o):this.il(e.generateSurveys,t)}))}catch(o){throw this.nl("Error initializing surveys",o),o}finally{this.el=!1}}}else Je.error("PostHog Extensions not found.")}}il(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new cA(this._instance),Je.info("Surveys loaded successfully"),this.sl({isLoaded:!0})}nl(e,t){Je.error(e,t),this.sl({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.tl.push(e),this._surveyManager&&this.sl({isLoaded:!0}),()=>{this.tl=this.tl.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Dt.disable_surveys)return Je.info(qb),e([]);var i,s=this._instance.get_property(xv);if(s&&!t)return e(s,{isLoaded:!0});typeof Promise<"u"&&this.rl?this.rl.then((o=>{var{surveys:u,context:c}=o;return e(u,c)})):(typeof Promise<"u"&&(this.rl=new Promise((o=>{i=o}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Dt.token),method:"GET",timeout:this.Dt.surveys_request_timeout_ms,callback:o=>{var u;this.rl=null;var c=o.statusCode;if(c!==200||!o.json){var f="Surveys API could not be loaded, status: "+c;Je.error(f);var h={isLoaded:!1,error:f};return e([],h),void(i==null||i({surveys:[],context:h}))}var p,g=o.json.surveys||[],m=g.filter((b=>(function(S){return!(!S.start_date||S.end_date)})(b)&&((function(S){var x;return!((x=S.conditions)==null||(x=x.events)==null||(x=x.values)==null||!x.length)})(b)||(function(S){var x;return!((x=S.conditions)==null||(x=x.actions)==null||(x=x.values)==null||!x.length)})(b))));m.length>0&&((p=this._surveyEventReceiver)==null||p.register(m)),(u=this._instance.persistence)==null||u.register({[xv]:g,[vg]:Date.now()});var y={isLoaded:!0};e(g,y),i?.({surveys:g,context:y})}}))}sl(e){for(var t of this.tl)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(i){Je.error("Error in survey callback",i)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Ne(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Je.warn("init was not called")}ol(e){var t=null;return this.getSurveys((i=>{var s;t=(s=i.find((o=>o.id===e)))!==null&&s!==void 0?s:null})),t}al(e){if(Ne(this._surveyManager))return{eligible:!1,reason:xp};var t=typeof e=="string"?this.ol(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Ne(this._surveyManager))return Je.warn("init was not called"),{visible:!1,disabledReason:xp};var t=this.al(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Ne(this._surveyManager)?(Je.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:xp})):new Promise((i=>{this.getSurveys((s=>{var o,u=(o=s.find((f=>f.id===e)))!==null&&o!==void 0?o:null;if(u){var c=this.al(u);i({visible:c.eligible,disabledReason:c.reason})}else i({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,i){var s;if(Ne(this._surveyManager))Je.warn("init was not called");else{var o=typeof e=="string"?this.ol(e):e;if(o!=null&&o.id)if(QM.includes(o.type)){var u=he?.querySelector(t);if(u)return(s=o.appearance)!=null&&s.surveyPopupDelaySeconds?(Je.info("Rendering survey "+o.id+" with delay of "+o.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var c,f;Je.info("Rendering survey "+o.id+" with delay of "+((c=o.appearance)==null?void 0:c.surveyPopupDelaySeconds)+" seconds"),(f=this._surveyManager)==null||f.renderSurvey(o,u,i),Je.
3info("Survey "+o.id+" rendered")}),1e3*o.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(o,u,i);Je.warn("Survey element not found")}else Je.warn("Surveys of type "+o.type+" cannot be rendered in the app");else Je.warn("Survey not found")}}displaySurvey(e,t){var i;if(Ne(this._surveyManager))Je.warn("init was not called");else{var s=this.ol(e);if(s){var o=s;if((i=s.appearance)!=null&&i.surveyPopupDelaySeconds&&t.ignoreDelay&&(o=ae({},s,{appearance:ae({},s.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==zv.Popover&&t.initialResponses&&Je.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var u=this.canRenderSurvey(s);if(!u.visible)return void Je.warn("Survey is not eligible to be displayed: ",u.disabledReason)}t.displayType!==zv.Inline?this._surveyManager.handlePopoverSurvey(o,t):this.renderSurvey(o,t.selector,t.properties)}else Je.warn("Survey not found")}}cancelPendingSurvey(e){Ne(this._surveyManager)?Je.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},Tf),bA={toolbar:class{constructor(e){this.instance=e}ll(e){Ee.ph_toolbar_state=e}ul(){var e;return(e=Ee.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,i){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),i===void 0&&(i=void 0),lx(this.instance.config)||!G||!he)return!1;e=e??G.location,i=i??G.history;try{if(!t){try{G.localStorage.setItem("test","test"),G.localStorage.removeItem("test")}catch{return!1}t=G?.localStorage}var s,o=fA||nf(e.hash,"__posthog")||nf(e.hash,"state"),u=o?ub((()=>JSON.parse(atob(decodeURIComponent(o)))))||ub((()=>JSON.parse(decodeURIComponent(o)))):null;return u&&u.action==="ph_authorize"?((s=u).source="url",s&&Object.keys(s).length>0&&(u.desiredHash?e.hash=u.desiredHash:i?i.replaceState(i.state,"",e.pathname+e.search):e.hash="")):((s=JSON.parse(t.getItem(Ib)||"{}")).source="localstorage",delete s.userIntent),!(!s.token||this.instance.config.token!==s.token||(this.loadToolbar(s),0))}catch{return!1}}hl(e){var t=Ee.ph_load_toolbar||Ee.ph_load_editor;!Ne(t)&&Gi(t)?t(e,this.instance):Gb.warn("No toolbar load function found")}loadToolbar(e){var t=!(he==null||!he.getElementById(rx));if(!G||t)return!1;var i=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,s=ae({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},i?{instrument:!1}:{});if(G.localStorage.setItem(Ib,JSON.stringify(ae({},s,{source:void 0}))),this.ul()===2)this.hl(s);else if(this.ul()===0){var o;this.ll(1),(o=Ee.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this.instance,"toolbar",(u=>{if(u)return Gb.error("[Toolbar] Failed to load",u),void this.ll(0);this.ll(2),this.hl(s)})),bt(G,"turbolinks:load",(()=>{this.ll(0),this.loadToolbar(s)}))}return!0}cl(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,i){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),i===void 0&&(i=void 0),this.maybeLoadToolbar(e,t,i)}}},SA=ae({experiments:Xt},Tf),xA=ae({},Tf,hA,pA,vA,gA,mA,_A,yA,bA,SA,{conversations:class{constructor(e){this.dl=void 0,this._conversationsManager=null,this.vl=!1,this.fl=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Ne(t)||(pi(t)?this.dl=t:(this.dl=t.enabled,this.fl=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.dl=void 0,this.fl=null}loadIfEnabled(){if(!(this._conversationsManager||this.vl||this._instance.config.disable_conversations||lx(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=Ee?.__PosthogExtensions__;if(e&&!fe(this.dl)&&this.dl)if(this.fl&&this.fl.token){this.vl=!0;try{var t=e.initConversations;if(t)return this.pl(t),void(this.vl=!1);var i=e.loadExternalDependency;if(!i)return void this.gl(Ov);i(this._instance,"conversations",(s=>{s||!e.initConversations?this.gl("Could not load conversations script",s):this.pl(e.initConversations),this.vl=!1}))}catch(s){this.gl("Error initializing conversations",s),this.vl=!1}}else Hn.error("Conversations enabled but missing token in remote config.")}}pl(e){if(this.fl)try{this._conversationsManager=e(this.fl,this._instance),Hn.info("Conversations loaded successfully")}catch(t){this.gl("Error completing conversations initialization",t)}else Hn.error("Cannot complete initialization: remote config is null")}gl(e,t){Hn.error(e,t),this._conversationsManager=null,this.vl=!1}show(){this._conversationsManager?this._conversationsManager.show():Hn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.dl===!0&&!en(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,i){var s=this;return Pt((function*(){return s._conversationsManager?s._conversationsManager.sendMessage(e,t,i):(Hn.warn(ps),null)}))()}getMessages(e,t){var i=this;return Pt((function*(){return i._conversationsManager?i._conversationsManager.getMessages(e,t):(Hn.warn(ps),null)}))()}markAsRead(e){var t=this;return Pt((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Hn.warn(ps),null)}))()}getTickets(e){var t=this;return Pt((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Hn.warn(ps),null)}))()}requestRestoreLink(e){var t=this;return Pt((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Hn.warn(ps),null)}))()}restoreFromToken(e){var t=this;return Pt((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Hn.warn(ps),null)}))()}restoreFromUrlToken(){var e=this;return Pt((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Hn.warn(ps),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}hs(){var e;(e=this._conversationsManager)==null||e.setIdentity()}cs(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},{logs:class{constructor(e){var t;this.ml=!1,this.yl=!1,this.Qt=_t("[logs]"),this.Mi=[],this.bl=()=>{var i;(i=this._l)==null||i.onReconnect()},this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ml=!0),G&&bt(G,"online",this.bl)}wl(){var e,t,i,s,o,u,c,f,h,p,g,m,y,b,S=(e=this._instance)==null||(e=e.config)==null?void 0:e.logs;return this._l&&this.xl===S||((t=this._l)==null||t.reset(),this.xl=S,this.kl=(p=(s=(i=S)==null?void 0:i.flushIntervalMs)!==null&&s!==void 0?s:3e3,g=(o=i?.maxBufferSize)!==null&&o!==void 0?o:100,m=(u=i?.maxLogsPerInterval)!==null&&u!==void 0?u:1e3,y=Math.max(g,m),{serviceName:(c=(b=i?.resourceAttributes)==null?void 0:b["service.name"])!==null&&c!==void 0?c:i?.serviceName,serviceVersion:(f=b?.["service.version"])!==null&&f!==void 0?f:i?.serviceVersion,environment:(h=b?.["deployment.environment"])!==null&&h!==void 0?h:i?.environment,resourceAttributes:b,beforeSend:i?.beforeSend,flushIntervalMs:p,maxBufferSize:g,maxQueueSize:y,maxBatchRecordsPerPost:100,rateCapWindowMs:p,maxLogsPerInterval:m,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0}),this._l=new kC(this.Sl(),this.kl,this.Qt,(()=>this.Cl()),(x=>x()))),this._l}Il(){return this.wl(),this.kl}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,i=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Ne(i)&&i&&(this.ml=!0,this.loadIfEnabled())}reset(){var e;this.Mi=[],(e=this._l)==null||e.reset()}captureLog(e){this.wl().captureLog(e)}get logger(){return this.Tl||(this.Tl={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>
3this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.Tl}flushLogs(e){e?this.El(e):this.wl().flush().catch((t=>this.Qt.error("PostHog logs flush failed:",t)))}loadIfEnabled(){if(this.ml&&!this.yl){var e=Ee?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(i=>{var s;i||(s=e.logs)==null||!s.initializeLogs?this.Qt.error("Could not load logs script",i):(e.logs.initializeLogs(this._instance),this.yl=!0)})):this.Qt.error(Ov)}else this.Qt.error("PostHog Extensions not found.")}}Sl(){var e=this._instance;return{get isDisabled(){return!1},get optedOut(){return!e.is_capturing()},getPersistedProperty:t=>t===Ii.LogsQueue?this.Mi:void 0,setPersistedProperty:(t,i)=>{var s;t===Ii.LogsQueue&&(this.Mi=(s=i)!==null&&s!==void 0?s:[])},kr:t=>this.kr(t),getLibraryId:()=>Et.LIB_NAME,getLibraryVersion:()=>Et.LIB_VERSION}}kr(e){return new Promise((t=>{var i=!1,s=u=>{i||(i=!0,clearTimeout(o),t(u))},o=setTimeout((()=>s({kind:"retry-later",error:new Error("logs request timed out")})),9e4);this._instance._send_request({method:"POST",url:this.Ml(),data:e,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback(u){var c=u.statusCode;if(c>=200&&300>c)s({kind:"ok"});else if(c===413)s({kind:"too-large"});else if(c!==0&&c!==429&&500>c)s({kind:"fatal",error:new Error("logs request failed with status "+c)});else{var f;s({kind:"retry-later",error:(f=u.error)!==null&&f!==void 0?f:new Error("logs request failed with status "+c)})}}})}))}El(e){var t=this.Il();if(this.Mi.length!==0){var i=this.Mi.map((o=>o.record));this.Mi=[];var s=K1(i,Y1(t,Et.LIB_NAME,Et.LIB_VERSION),Et.LIB_NAME,Et.LIB_VERSION);this._instance._send_request({method:"POST",url:this.Ml(),data:s,compression:"best-available",batchKey:"logs",transport:e})}}Ml(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}Cl(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:i}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=i}if(Ee!=null&&(e=Ee.location)!=null&&e.href&&(t.currentUrl=Ee.location.href),this._instance.featureFlags){var s=this._instance.featureFlags.getFlags();s&&s.length>0&&(t.activeFeatureFlags=s)}return t}}});qn.__defaultExtensionClasses=ae({},xA);var zs=(function(){Et.SDK_DIST_CHANNEL="npm";var e=Sl[Da]=new qn;return(function(){function t(){t.done||(t.done=!0,Hx=!1,nt(Sl,(function(i){i._dom_loaded()})))}he!=null&&he.addEventListener?he.readyState==="complete"?t():bt(he,"DOMContentLoaded",t,{capture:!1}):G&&de.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),e})(),Ep={exports:{}},Oe={};var Xb;function wA(){if(Xb)return Oe;Xb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),y=Symbol.iterator;function b(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function E(R,I,K){this.props=R,this.context=I,this.refs=T,this.updater=K||S}E.prototype.isReactComponent={},E.prototype.setState=function(R,I){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,I,"setState")},E.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function A(){}A.prototype=E.prototype;function C(R,I,K){this.props=R,this.context=I,this.refs=T,this.updater=K||S}var M=C.prototype=new A;M.constructor=C,x(M,E.prototype),M.isPureReactComponent=!0;var N=Array.isArray;function B(){}var k={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function $(R,I,K){var ne=K.ref;return{$$typeof:e,type:R,key:I,ref:ne!==void 0?ne:null,props:K}}function X(R,I){return $(R.type,I,R.props)}function F(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function re(R){var I={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(K){return I[K]})}var ie=/\/+/g;function oe(R,I){return typeof R=="object"&&R!==null&&R.key!=null?re(""+R.key):I.toString(36)}function ue(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(B,B):(R.status="pending",R.then(function(I){R.status==="pending"&&(R.status="fulfilled",R.value=I)},function(I){R.status==="pending"&&(R.status="rejected",R.reason=I)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function j(R,I,K,ne,ce){var le=typeof R;(le==="undefined"||le==="boolean")&&(R=null);var ge=!1;if(R===null)ge=!0;else switch(le){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(R.$$typeof){case e:case t:ge=!0;break;case g:return ge=R._init,j(ge(R._payload),I,K,ne,ce)}}if(ge)return ce=ce(R),ge=ne===""?"."+oe(R,0):ne,N(ce)?(K="",ge!=null&&(K=ge.replace(ie,"$&/")+"/"),j(ce,I,K,"",function(st){return st})):ce!=null&&(F(ce)&&(ce=X(ce,K+(ce.key==null||R&&R.key===ce.key?"":(""+ce.key).replace(ie,"$&/")+"/")+ge)),I.push(ce)),1;ge=0;var _e=ne===""?".":ne+":";if(N(R))for(var ve=0;ve<R.length;ve++)ne=R[ve],le=_e+oe(ne,ve),ge+=j(ne,I,K,le,ce);else if(ve=b(R),typeof ve=="function")for(R=ve.call(R),ve=0;!(ne=R.next()).done;)ne=ne.value,le=_e+oe(ne,ve++),ge+=j(ne,I,K,le,ce);else if(le==="object"){if(typeof R.then=="function")return j(ue(R),I,K,ne,ce);throw I=String(R),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return ge}function Y(R,I,K){if(R==null)return R;var ne=[],ce=0;return j(R,ne,"","",function(le){return I.call(K,le,ce++)}),ne}function se(R){if(R._status===-1){var I=R._result;I=I(),I.then(function(K){(R._status===0||R._status===-1)&&(R._status=1,R._result=K)},function(K){(R._status===0||R._status===-1)&&(R._status=2,R._result=K)}),R._status===-1&&(R._status=0,R._result=I)}if(R._status===1)return R._result.default;throw R._result}var pe=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},W={map:Y,forEach:function(R,I,K){Y(R,function(){I.apply(this,arguments)},K)},count:function(R){var I=0;return Y(R,function(){I++}),I},toArray:function(R){return Y(R,function(I){return I})||[]},only:function(R){if(!F(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Oe.Activity=m,Oe.Children=W,Oe.Component=E,Oe.Fragment=i,Oe.Profiler=o,Oe.PureComponent=C,Oe.StrictMode=s,Oe.Suspense=h,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(R){return k.H.useMemoCache(R)}},Oe.cache=function(R){return function(){return R.apply(null,arguments)}},Oe.cacheSignal=function(){return null},Oe.cloneElement=function(R,I,K){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var ne=x({},R.props),ce=R.key;if(I!=null)for(le in I.key!==void 0&&(ce=""+I.key),I)!D.call(I,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&I.ref===void 0||(ne[le]=I[le]);var le=arguments.length-2;if(le===1)ne.children=K;else if(1<le){for(var ge=Array(le),_e=0;_e<le;_e++)ge[_e]=arguments[_e+2];ne.children=ge}return $(R.type,ce,ne)},Oe.createContext=function(R){return R={$$typeof:c,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:u,_context:R},R},Oe.createElement=function(R,I,K){var ne,ce={},le=null;
3if(I!=null)for(ne in I.key!==void 0&&(le=""+I.key),I)D.call(I,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(ce[ne]=I[ne]);var ge=arguments.length-2;if(ge===1)ce.children=K;else if(1<ge){for(var _e=Array(ge),ve=0;ve<ge;ve++)_e[ve]=arguments[ve+2];ce.children=_e}if(R&&R.defaultProps)for(ne in ge=R.defaultProps,ge)ce[ne]===void 0&&(ce[ne]=ge[ne]);return $(R,le,ce)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(R){return{$$typeof:f,render:R}},Oe.isValidElement=F,Oe.lazy=function(R){return{$$typeof:g,_payload:{_status:-1,_result:R},_init:se}},Oe.memo=function(R,I){return{$$typeof:p,type:R,compare:I===void 0?null:I}},Oe.startTransition=function(R){var I=k.T,K={};k.T=K;try{var ne=R(),ce=k.S;ce!==null&&ce(K,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(B,pe)}catch(le){pe(le)}finally{I!==null&&K.types!==null&&(I.types=K.types),k.T=I}},Oe.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Oe.use=function(R){return k.H.use(R)},Oe.useActionState=function(R,I,K){return k.H.useActionState(R,I,K)},Oe.useCallback=function(R,I){return k.H.useCallback(R,I)},Oe.useContext=function(R){return k.H.useContext(R)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(R,I){return k.H.useDeferredValue(R,I)},Oe.useEffect=function(R,I){return k.H.useEffect(R,I)},Oe.useEffectEvent=function(R){return k.H.useEffectEvent(R)},Oe.useId=function(){return k.H.useId()},Oe.useImperativeHandle=function(R,I,K){return k.H.useImperativeHandle(R,I,K)},Oe.useInsertionEffect=function(R,I){return k.H.useInsertionEffect(R,I)},Oe.useLayoutEffect=function(R,I){return k.H.useLayoutEffect(R,I)},Oe.useMemo=function(R,I){return k.H.useMemo(R,I)},Oe.useOptimistic=function(R,I){return k.H.useOptimistic(R,I)},Oe.useReducer=function(R,I,K){return k.H.useReducer(R,I,K)},Oe.useRef=function(R){return k.H.useRef(R)},Oe.useState=function(R){return k.H.useState(R)},Oe.useSyncExternalStore=function(R,I,K){return k.H.useSyncExternalStore(R,I,K)},Oe.useTransition=function(){return k.H.useTransition()},Oe.version="19.2.4",Oe}var Qb;function Ya(){return Qb||(Qb=1,Ep.exports=wA()),Ep.exports}var L=Ya();const Te=y1(L),qv=tC({__proto__:null,default:Te},[L]);const Fx="opt-in",dl="opt-out",qx="show--consent",Ix="show--preferences",Zb="disable--interaction",of="data-category",qe="div",Jn="button",Wn="aria-hidden",xl="btn-group",Qt="click",Ba="data-role",wg="consentModal",Eg="preferencesModal";let EA=class{constructor(){this.t={mode:Fx,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:"cc_cookie",expiresAfterDays:182,domain:"",path:"/",secure:!0,sameSite:"Lax"}},this.o={i:{},l:"",_:{},u:{},p:{},m:[],v:!1,h:null,C:null,S:null,M:"",D:!0,T:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,L:[],j:!1,F:"",P:!1,O:[],R:[],B:[],$:[],G:!1,J:!1,U:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}};const te=new EA,Gx=(e,t)=>e.indexOf(t),We=(e,t)=>Gx(e,t)!==-1,Rf=e=>Array.isArray(e),Ka=e=>typeof e=="string",Iv=e=>!!e&&typeof e=="object"&&!Rf(e),fi=e=>typeof e=="function",As=e=>Object.keys(e),Vx=e=>Array.from(new Set(e)),lf=()=>document.activeElement,$a=e=>e.preventDefault(),Tg=(e,t)=>e.querySelectorAll(t),Se=e=>{const t=document.createElement(e);return e===Jn&&(t.type=e),t},Ae=(e,t,i)=>e.setAttribute(t,i),Tp=(e,t,i)=>{e.removeAttribute(i?"data-"+t:t)},zc=(e,t,i)=>e.getAttribute(i?"data-"+t:t),ye=(e,t)=>e.appendChild(t),it=(e,t)=>e.classList.add(t),Wt=(e,t)=>it(e,"cm__"+t),Fe=(e,t)=>it(e,"pm__"+t),Br=(e,t)=>e.classList.remove(t),Lr=e=>{if(typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let i in e){let s=e[i];t[i]=Lr(s)}return t},Jb=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),St=(e,t,i,s)=>{e.addEventListener(t,i),s&&te.o.m.push({pe:e,ge:t,me:i})},TA=()=>{const e=te.t.cookie.expiresAfterDays;return fi(e)?e(te.o.F):e},Rp=(e,t)=>{const i=e||[],s=t||[];return i.filter((o=>!We(s,o))).concat(s.filter((o=>!We(i,o))))},Yx=e=>{te.o.R=Vx(e),te.o.F=(()=>{let t="custom";const{R:i,O:s,B:o}=te.o,u=i.length;return u===s.length?t="all":u===o.length&&(t="necessary"),t})()},Kx=(e,t,i,s)=>{const o="accept-",{show:u,showPreferences:c,hide:f,hidePreferences:h,acceptCategory:p}=t,g=e||document,m=C=>Tg(g,`[data-cc="${C}"]`),y=(C,M)=>{$a(C),p(M),h(),f()},b=m("show-preferencesModal"),S=m("show-consentModal"),x=m(o+"all"),T=m(o+"necessary"),E=m(o+"custom"),A=te.t.lazyHtmlGeneration;for(const C of b)Ae(C,"aria-haspopup","dialog"),St(C,Qt,(M=>{$a(M),c()})),A&&(St(C,"mouseenter",(M=>{$a(M),te.o.N||i(t,s)}),!0),St(C,"focus",(()=>{te.o.N||i(t,s)})));for(let C of S)Ae(C,"aria-haspopup","dialog"),St(C,Qt,(M=>{$a(M),u(!0)}),!0);for(let C of x)St(C,Qt,(M=>{y(M,"all")}),!0);for(let C of E)St(C,Qt,(M=>{y(M)}),!0);for(let C of T)St(C,Qt,(M=>{y(M,[])}),!0)},vi=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute("tabindex"))},Xx=(e,t)=>{const i=s=>{s.target.removeEventListener("transitionend",i),s.propertyName==="opacity"&&getComputedStyle(e).opacity==="1"&&vi((o=>o===1?te.ne.be:te.ne.ve)(t))};St(e,"transitionend",i)};let Wb;const Qx=e=>{clearTimeout(Wb),e?it(te.ne.ye,Zb):Wb=setTimeout((()=>
vendor: 4,179 bytes, line 3
3{Br(te.ne.ye,Zb)}),500)},RA=["M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5","M 3.572 13.406 L 8.281 18.115 L 20.428 5.885","M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 "],Nl=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${RA[e]}"/></svg>`,Zx=e=>{const t=te.ne,i=te.o;(s=>{const o=s===t.he,u=i.i.disablePageInteraction?t.ye:o?t.Ce:t.ye;St(u,"keydown",(c=>{if(c.key!=="Tab"||!(o?i.k&&!i.A:i.A))return;const f=lf(),h=o?i.q:i.K;h.length!==0&&(c.shiftKey?f!==h[0]&&s.contains(f)||($a(c),vi(h[1])):f!==h[1]&&s.contains(f)||($a(c),vi(h[0])))}),!0)})(e)},CA=["[href]",Jn,"input","details","[tabindex]"].map((e=>e+':not([tabindex="-1"])')).join(","),Jx=e=>{const{o:t,ne:i}=te,s=(o,u)=>{const c=Tg(o,CA);u[0]=c[0],u[1]=c[c.length-1]};e===1&&t.T&&s(i.he,t.q),e===2&&t.N&&s(i.we,t.K)},gi=(e,t,i)=>{const{de:s,le:o,ie:u,_e:c,ue:f,fe:h}=te.ce,p=te.re;if(t){const m={modalName:t};return e===p.fe?fi(h)&&h(m):e===p._e?fi(c)&&c(m):(m.modal=i,fi(f)&&f(m)),Jb(e,m)}const g={cookie:te.o.p};e===p.ie?fi(u)&&u(Lr(g)):e===p.le?fi(o)&&o(Lr(g)):(g.changedCategories=te.o.L,g.changedServices=te.o.ee,fi(s)&&s(Lr(g))),Jb(e,Lr(g))},uf=(e,t)=>{try{return e()}catch(i){return!t&&console.warn("CookieConsent:",i),!1}},Gv=e=>{const{Y:t,ee:i,O:s,X:o,oe:u,p:c,L:f}=te.o;for(const m of s){const y=i[m]||t[m]||[];for(const b of y){const S=o[m][b];if(!S)continue;const{onAccept:x,onReject:T}=S;!S.Se&&We(t[m],b)?(S.Se=!0,fi(x)&&x()):S.Se&&!We(t[m],b)&&(S.Se=!1,fi(T)&&T())}}if(!te.t.manageScriptTags)return;const h=u,p=e||c.categories||[],g=(m,y)=>{if(y>=m.length)return;const b=u[y];if(b.xe)return g(m,y+1);const S=b.Me,x=b.De,T=b.Te,E=We(p,x),A=!!T&&We(t[x],T);if(!T&&!b.ke&&E||!T&&b.ke&&!E&&We(f,x)||T&&!b.ke&&A||T&&b.ke&&!A&&We(i[x]||[],T)){b.xe=!0;const C=zc(S,"type",!0);Tp(S,"type",!!C),Tp(S,of);let M=zc(S,"src",!0);M&&Tp(S,"src",!0);const N=Se("script");N.textContent=S.innerHTML;for(const{nodeName:k}of S.attributes)Ae(N,k,S[k]||zc(S,k));C&&(N.type=C),M?N.src=M:M=S.src;const B=!!M&&(!C||["text/javascript","module"].includes(C));if(B&&(N.onload=N.onerror=()=>{g(m,++y)}),S.replaceWith(N),B)return}g(m,++y)};g(h,0)},Nc="bottom",Vv="left",Wx="center",Rg="right",Cp="inline",ew="wide",tw="pm--",Mp=["middle","top",Nc],eS=[Vv,Wx,Rg],MA={box:{Ee:[ew,Cp],Ae:Mp,Ne:eS,He:Nc,Ve:Rg},cloud:{Ee:[Cp],Ae:Mp,Ne:eS,He:Nc,Ve:Wx},bar:{Ee:[Cp],Ae:Mp.slice(1),Ne:[],He:Nc,Ve:""}},AA={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[ew],Ae:[],Ne:[Vv,Rg],He:"",Ve:Vv}},nw=e=>{const t=te.o.i.guiOptions,i=t&&t.consentModal,s=t&&t.preferencesModal;e===0&&tS(te.ne.he,MA,i,"cm--","box","cm"),e===1&&tS(te.ne.we,AA,s,tw,"box","pm")},tS=(e,t,i,s,o,u)=>{e.className=u;const c=i&&i.layout,f=i&&i.position,h=i&&i.flipButtons,p=!i||i.equalWeightButtons!==!1,g=c&&c.split(" ")||[],m=g[0],y=g[1],b=m in t?m:o,S=t[b],x=We(S.Ee,y)&&y,T=f&&f.split(" ")||[],E=T[0],A=s===tw?T[0]:T[1],C=We(S.Ae,E)?E:S.He,M=We(S.Ne,A)?A:S.Ve,N=k=>{k&&it(e,s+k)};N(b),N(x),N(C),N(M),h&&N("flip");const B=u+"__btn--secondary";if(u==="cm"){const{Ie:k,Le:D}=te.ne;k&&(p?Br(k,B):it(k,B)),D&&(p?Br(D,B):it(D,B))}else{const{je:k}=te.ne;k&&(p?Br(k,B):it(k,B))}},$l=(e,t)=>{const i=te.o,s=te.ne,{hide:o,hidePreferences:u,acceptCategory:c}=e,f=M=>{c(M),u(),o()},h=i.u&&i.u.preferencesModal;if(!h)return;const p=h.title,g=h.closeIconLabel,m=h.acceptAllBtn,y=h.acceptNecessaryBtn,b=h.savePreferencesBtn,S=h.sections||[],x=m||y||b;if(s.Fe)s.Pe=Se(qe),Fe(s.Pe,"body");else{s.Fe=Se(qe),it(s.Fe,"pm-wrapper");const M=Se("div");it(M,"pm-overlay"),ye(s.Fe,M),St(M,Qt,u),s.we=Se(qe),it(s.we,"pm"),Ae(s.we,"role","dialog"),Ae(s.we,Wn,!0),Ae(s.we,"aria-modal",!0),Ae(s.we,"aria-labelledby","pm__title"),St(s.ye,"keydown",(N=>{N.keyCode===27&&u()}),!0),s.Oe=Se(qe),Fe(s.Oe,"header"),s.Re=Se("h2"),Fe(s.Re,"title"),s.Re.id="pm__title",s.Be=Se(Jn),Fe(s.Be,"close-btn"),Ae(s.Be,"aria-label",h.closeIconLabel||""),St(s.Be,Qt,u),s.$e=Se("span"),s.$e.innerHTML=Nl(),ye(s.Be,s.$e),s.Ge=Se(qe),Fe(s.Ge,"body"),s.Je=Se(qe),Fe(s.Je,"footer");var T=Se(qe);it(T,"btns");var E=Se(qe),A=Se(qe);Fe(E,xl),Fe(A,xl),ye(s.Je,E),ye(s.Je,A),ye(s.Oe,s.Re),ye(s.Oe,s.Be),s.ve=Se(qe),Ae(s.ve,"tabIndex",-1),ye(s.we,s.ve),ye(s.we,s.Oe),ye(s.we,s.Ge),x&&ye(s.we,s.Je),ye(s.Fe,s.we)}let C;
vendor: 4,157 bytes, line 3
3p&&(s.Re.innerHTML=p,g&&Ae(s.Be,"aria-label",g)),S.forEach(((M,N)=>{const B=M.title,k=M.description,D=M.linkedCategory,$=D&&i.P[D],X=M.cookieTable,F=X&&X.body,re=X&&X.caption,ie=F&&F.length>0,oe=!!$,ue=oe&&i.X[D],j=Iv(ue)&&As(ue)||[],Y=oe&&(!!k||!!ie||As(ue).length>0);var se=Se(qe);if(Fe(se,"section"),Y||k){var pe=Se(qe);Fe(pe,"section-desc-wrapper")}let W=j.length;if(Y&&W>0){const le=Se(qe);Fe(le,"section-services");for(const ge of j){const _e=ue[ge],ve=_e&&_e.label||ge,st=Se(qe),pt=Se(qe),at=Se(qe),Nt=Se(qe);Fe(st,"service"),Fe(Nt,"service-title"),Fe(pt,"service-header"),Fe(at,"service-icon");const ot=nS(ve,ge,$,!0,D);Nt.innerHTML=ve,ye(pt,at),ye(pt,Nt),ye(st,pt),ye(st,ot),ye(le,st)}ye(pe,le)}if(B){var R=Se(qe),I=Se(oe?Jn:qe);if(Fe(R,"section-title-wrapper"),Fe(I,"section-title"),I.innerHTML=B,ye(R,I),oe){const le=Se("span");le.innerHTML=Nl(2,3.5),Fe(le,"section-arrow"),ye(R,le),se.className+="--toggle";const ge=nS(B,D,$);let _e=h.serviceCounterLabel;if(W>0&&Ka(_e)){let ve=Se("span");Fe(ve,"badge"),Fe(ve,"service-counter"),Ae(ve,Wn,!0),Ae(ve,"data-servicecounter",W),_e&&(_e=_e.split("|"),_e=_e.length>1&&W>1?_e[1]:_e[0],Ae(ve,"data-counterlabel",_e)),ve.innerHTML=W+(_e?" "+_e:""),ye(I,ve)}if(Y){Fe(se,"section--expandable");var K=D+"-desc";Ae(I,"aria-expanded",!1),Ae(I,"aria-controls",K)}ye(R,ge)}else Ae(I,"role","heading"),Ae(I,"aria-level","3");ye(se,R)}if(k){var ne=Se("p");Fe(ne,"section-desc"),ne.innerHTML=k,ye(pe,ne)}if(Y&&(Ae(pe,Wn,"true"),pe.id=K,((le,ge,_e)=>{St(I,Qt,(()=>{ge.classList.contains("is-expanded")?(Br(ge,"is-expanded"),Ae(_e,"aria-expanded","false"),Ae(le,Wn,"true")):(it(ge,"is-expanded"),Ae(_e,"aria-expanded","true"),Ae(le,Wn,"false"))}))})(pe,se,I),ie)){const le=Se("table"),ge=Se("thead"),_e=Se("tbody");if(re){const ot=Se("caption");Fe(ot,"table-caption"),ot.innerHTML=re,le.appendChild(ot)}Fe(le,"section-table"),Fe(ge,"table-head"),Fe(_e,"table-body");const ve=X.headers,st=As(ve),pt=s.Ue.createDocumentFragment(),at=Se("tr");for(const ot of st){const Zt=ve[ot],vt=Se("th");vt.id="cc__row-"+Zt+N,Ae(vt,"scope","col"),Fe(vt,"table-th"),vt.innerHTML=Zt,ye(pt,vt)}ye(at,pt),ye(ge,at);const Nt=s.Ue.createDocumentFragment();for(const ot of F){const Zt=Se("tr");Fe(Zt,"table-tr");for(const vt of st){const yn=ve[vt],Vn=ot[vt],Tt=Se("td"),Yn=Se(qe);Fe(Tt,"table-td"),Ae(Tt,"data-column",yn),Ae(Tt,"headers","cc__row-"+yn+N),Yn.insertAdjacentHTML("beforeend",Vn),ye(Tt,Yn),ye(Zt,Tt)}ye(Nt,Zt)}ye(_e,Nt),ye(le,ge),ye(le,_e),ye(pe,le)}(Y||k)&&ye(se,pe);const ce=s.Pe||s.Ge;oe?(C||(C=Se(qe),Fe(C,"section-toggles")),C.appendChild(se)):C=null,ye(ce,C||se)})),m&&(s.ze||(s.ze=Se(Jn),Fe(s.ze,"btn"),Ae(s.ze,Ba,"all"),ye(E,s.ze),St(s.ze,Qt,(()=>f("all")))),s.ze.innerHTML=m),y&&(s.je||(s.je=Se(Jn),Fe(s.je,"btn"),Ae(s.je,Ba,"necessary"),ye(E,s.je),St(s.je,Qt,(()=>f([])))),s.je.innerHTML=y),b&&(s.qe||(s.qe=Se(Jn),Fe(s.qe,"btn"),Fe(s.qe,"btn--secondary"),Ae(s.qe,Ba,"save"),ye(A,s.qe),St(s.qe,Qt,(()=>f()))),s.qe.innerHTML=b),s.Pe&&(s.we.replaceChild(s.Pe,s.Ge),s.Ge=s.Pe),nw(1),i.N||(i.N=!0,gi(te.re.ue,Eg,s.we),t(e),ye(s.Ce,s.Fe),Zx(s.we),setTimeout((()=>it(s.Fe,"cc--anim")),100)),Jx(2)};function nS(e,t,i,s,o){const u=te.o,c=te.ne,f=Se("label"),h=Se("input"),p=Se("span"),g=Se("span"),m=Se("span"),y=Se("span"),b=Se("span");if(y.innerHTML=Nl(1,3),b.innerHTML=Nl(0,3),h.type="checkbox",it(f,"section__toggle-wrapper"),it(h,"section__toggle"),it(y,"toggle__icon-on"),it(b,"toggle__icon-off"),it(p,"toggle__icon"),it(g,"toggle__icon-circle"),it(m,"toggle__label"),Ae(p,Wn,"true"),s?(it(f,"toggle-service"),Ae(h,of,o),c.se[o][t]=h):c.ae[t]=h,s?(S=>{St(h,"change",(()=>{const x=c.se[S],T=c.ae[S];u.Z[S]=[];for(let E in x){const A=x[E];A.checked&&u.Z[S].push(A.value)}T.checked=u.Z[S].length>0}))})(o):(S=>{St(h,Qt,(()=>{const x=c.se[S],T=h.checked;u.Z[S]=[];for(let E in x)x[E].checked=T,T&&u.Z[S].push(E)}))})(t),h.value=t,m.textContent=e.replace(/<.*>.*<\/.*>/gm,""),ye(g,b),ye(g,y),ye(p,g),u.D)(i.readOnly||i.enabled)&&(h.checked=!0);else if(s){const S=u.Y[o];h.checked=i.readOnly||We(S,t)}else We(u.R,t)&&(h.checked=!0);return i.readOnly&&(h.disabled=!0),ye(f,h),ye(f,p),ye(f,m),f}const Ap=()=>{const e=Se("span");
3return te.ne.Ke||(te.ne.Ke=e),e},iw=(e,t)=>{const i=te.o,s=te.ne,{hide:o,showPreferences:u,acceptCategory:c}=e,f=i.u&&i.u.consentModal;if(!f)return;const h=f.acceptAllBtn,p=f.acceptNecessaryBtn,g=f.showPreferencesBtn,m=f.closeIconLabel,y=f.footer,b=f.label,S=f.title,x=E=>{o(),c(E)};if(!s.Qe){s.Qe=Se(qe),s.he=Se(qe),s.We=Se(qe),s.Xe=Se(qe),s.Ye=Se(qe),it(s.Qe,"cm-wrapper"),it(s.he,"cm"),Wt(s.We,"body"),Wt(s.Xe,"texts"),Wt(s.Ye,"btns"),Ae(s.he,"role","dialog"),Ae(s.he,"aria-modal","true"),Ae(s.he,Wn,"false"),Ae(s.he,"aria-describedby","cm__desc"),b?Ae(s.he,"aria-label",b):S&&Ae(s.he,"aria-labelledby","cm__title");const E="box",A=i.i.guiOptions,C=A&&A.consentModal,M=(C&&C.layout||E).split(" ")[0]===E;S&&m&&M&&(s.Le||(s.Le=Se(Jn),s.Le.innerHTML=Nl(),Wt(s.Le,"btn"),Wt(s.Le,"btn--close"),St(s.Le,Qt,(()=>{x([])})),ye(s.We,s.Le)),Ae(s.Le,"aria-label",m)),ye(s.We,s.Xe),(h||p||g)&&ye(s.We,s.Ye),s.be=Se(qe),Ae(s.be,"tabIndex",-1),ye(s.he,s.be),ye(s.he,s.We),ye(s.Qe,s.he)}S&&(s.Ze||(s.Ze=Se("h2"),s.Ze.className=s.Ze.id="cm__title",ye(s.Xe,s.Ze)),s.Ze.innerHTML=S);let T=f.description;if(T&&(i.V&&(T=T.replace("{{revisionMessage}}",i.I?"":f.revisionMessage||"")),s.et||(s.et=Se("p"),s.et.className=s.et.id="cm__desc",ye(s.Xe,s.et)),s.et.innerHTML=T),h&&(s.tt||(s.tt=Se(Jn),ye(s.tt,Ap()),Wt(s.tt,"btn"),Ae(s.tt,Ba,"all"),St(s.tt,Qt,(()=>{x("all")}))),s.tt.firstElementChild.innerHTML=h),p&&(s.Ie||(s.Ie=Se(Jn),ye(s.Ie,Ap()),Wt(s.Ie,"btn"),Ae(s.Ie,Ba,"necessary"),St(s.Ie,Qt,(()=>{x([])}))),s.Ie.firstElementChild.innerHTML=p),g&&(s.ot||(s.ot=Se(Jn),ye(s.ot,Ap()),Wt(s.ot,"btn"),Wt(s.ot,"btn--secondary"),Ae(s.ot,Ba,"show"),St(s.ot,"mouseenter",(()=>{i.N||$l(e,t)})),St(s.ot,Qt,u)),s.ot.firstElementChild.innerHTML=g),s.nt||(s.nt=Se(qe),Wt(s.nt,xl),h&&ye(s.nt,s.tt),p&&ye(s.nt,s.Ie),(h||p)&&ye(s.We,s.nt),ye(s.Ye,s.nt)),s.ot&&!s.st&&(s.st=Se(qe),s.Ie&&s.tt?(Wt(s.st,xl),ye(s.st,s.ot),ye(s.Ye,s.st)):(ye(s.nt,s.ot),Wt(s.nt,xl+"--uneven"))),y){if(!s.ct){let E=Se(qe),A=Se(qe);s.ct=Se(qe),Wt(E,"footer"),Wt(A,"links"),Wt(s.ct,"link-group"),ye(A,s.ct),ye(E,A),ye(s.he,E)}s.ct.innerHTML=y}nw(0),i.T||(i.T=!0,gi(te.re.ue,wg,s.he),t(e),ye(s.Ce,s.Qe),Zx(s.he),setTimeout((()=>it(s.Qe,"cc--anim")),100)),Jx(1),Kx(s.We,e,$l,t)},rw=e=>{if(!Ka(e))return null;if(e in te.o._)return e;let t=e.slice(0,2);return t in te.o._?t:null},sw=()=>te.o.l||te.o.i.language.default,aw=e=>{e&&(te.o.l=e)},OA=async e=>{const t=te.o;let i=rw(e)?e:sw(),s=t._[i];if(Ka(s)?s=await(async o=>{try{return await(await fetch(o)).json()}catch(u){return console.error(u),!1}})(s):fi(s)&&(s=await s()),!s)throw`Could not load translation for the '${i}' language`;return t.u=s,aw(i),!0},kA=()=>{let e=te.o.i.language.rtl,t=te.ne.Ce;e&&t&&(Rf(e)||(e=[e]),We(e,te.o.l)?it(t,"cc--rtl"):Br(t,"cc--rtl"))},wl=()=>{const e=te.ne;if(e.Ce)return;e.Ce=Se(qe),e.Ce.id="cc-main",e.Ce.setAttribute("data-nosnippet",""),kA();let t=te.o.i.root;t&&Ka(t)&&(t=document.querySelector(t)),(t||e.Ue.body).appendChild(e.Ce)},DA=e=>uf((()=>localStorage.removeItem(e))),iS=(e,t)=>{if(t instanceof RegExp)return e.filter((i=>t.test(i)));{const i=Gx(e,t);return i>-1?[e[i]]:[]}},LA=e=>{const{hostname:t,protocol:i}=location,{name:s,path:o,domain:u,sameSite:c,useLocalStorage:f,secure:h}=te.t.cookie,p=864e5*TA(),g=new Date;g.setTime(g.getTime()+p),te.o.p.expirationTime=g.getTime();const m=JSON.stringify(te.o.p);let y=s+"="+encodeURIComponent(m)+(p!==0?"; expires="+g.toUTCString():"")+"; Path="+o+"; SameSite="+c;We(t,".")&&(y+="; Domain="+u),h&&i==="https:"&&(y+="; Secure"),f?((b,S)=>{uf((()=>localStorage.setItem(b,S)))})(s,m):document.cookie=y,te.o.p},rS=(e,t,i)=>{if(e.length===0)return;const s=i||te.t.cookie.domain,o=t||te.t.cookie.path,u=s.slice(0,4)==="www.",c=u&&s.substring(4),f=(h,p)=>{p&&p.slice(0,1)!=="."&&(p="."+p),document.cookie=h+"=; path="+o+(p?"; domain="+p:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(const h of e)f(h,i),i||f(h,s),u&&f(h,c)},zA=e=>{const t=te.t.cookie.name,i=te.t.cookie.useLocalStorage;return((o,u)=>{let c;return c=uf((()=>JSON.parse(u?o:decodeURIComponent(o))),!0)||{},c})(i?(s=t,uf((()=>localStorage.getItem(s)))||""):NA(t),i);var s},NA=(e,t)=>{const i=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return i?i.pop():""},$A=e=>{const t=document.cookie.split(/;\s*/),i=[];for(const s of t){let o=s.split("=")[0];i.push(o)}return i},jA=(e,t=[])=>{((i,s)=>{const{O:o,R:u,B:c,N:f,Z:h,$:p,X:g}=te.o;let m=[];
vendor: 6,195 bytes, line 3
3if(i){Rf(i)?m.push(...i):Ka(i)&&(m=i==="all"?o:[i]);for(const y of o)h[y]=We(m,y)?As(g[y]):[]}else m=[...u,...p],f&&(m=(()=>{const y=te.ne.ae;if(!y)return[];let b=[];for(let S in y)y[S].checked&&b.push(S);return b})());m=m.filter((y=>!We(o,y)||!We(s,y))),m.push(...c),Yx(m)})(e,t),(()=>{const i=te.o,{Z:s,B:o,Y:u,X:c,O:f}=i,h=f;i.te=Lr(u);for(const p of h){const g=c[p],m=As(g),y=s[p]&&s[p].length>0,b=We(o,p);if(m.length!==0){if(u[p]=[],b)u[p].push(...m);else if(y){const S=s[p];u[p].push(...S)}else u[p]=i.Z[p];u[p]=Vx(u[p])}}})(),(()=>{const i=te.o;i.L=te.t.mode===dl&&i.D?Rp(i.$,i.R):Rp(i.R,i.p.categories);let s=i.L.length>0,o=!1;for(const h of i.O)i.ee[h]=Rp(i.Y[h],i.te[h]),i.ee[h].length>0&&(o=!0);const u=te.ne.ae;for(const h in u)u[h].checked=We(i.R,h);for(const h of i.O){const p=te.ne.se[h],g=i.Y[h];for(const m in p)p[m].checked=We(g,m)}i.C||(i.C=new Date),i.M||(i.M=("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,(h=>(h^crypto.getRandomValues(new Uint8Array(1))[0]&15>>h/4).toString(16)))),i.p={categories:Lr(i.R),revision:te.t.revision,data:i.h,consentTimestamp:i.C.toISOString(),consentId:i.M,services:Lr(i.Y),languageCode:te.o.l},i.S&&(i.p.lastConsentTimestamp=i.S.toISOString());let c=!1;const f=s||o;(i.D||f)&&(i.D&&(i.D=!1,c=!0),i.S=i.S?new Date:i.C,i.p.lastConsentTimestamp=i.S.toISOString(),LA(),te.t.autoClearCookies&&(c||f)&&(h=>{const p=te.o,g=$A(),m=(y=>{const b=te.o;return(y?b.O:b.L).filter((S=>{const x=b.P[S];return!!x&&!x.readOnly&&!!x.autoClear}))})(h);for(const y in p.ee)for(const b of p.ee[y]){const S=p.X[y][b].cookies;if(!We(p.Y[y],b)&&S)for(const x of S){const T=iS(g,x.name);rS(T,x.path,x.domain)}}for(const y of m){const b=p.P[y].autoClear,S=b&&b.cookies||[],x=We(p.L,y),T=!We(p.R,y),E=x&&T;if(h?T:E){b.reloadPage&&E&&(p.j=!0);for(const A of S){const C=iS(g,A.name);rS(C,A.path,A.domain)}}}})(c),Gv()),c&&(gi(te.re.ie),gi(te.re.le),te.t.mode===Fx)||(f&&gi(te.re.de),i.j&&(i.j=!1,location.reload()))})()},ow=e=>{const t=te.o.D?[]:te.o.R;return We(t,e)},lw=(e,t)=>{const i=te.o.D?[]:te.o.Y[t]||[];return We(i,e)},uw=e=>{const{ne:t,o:i}=te;if(!i.k){if(!i.T){if(!e)return;iw(Cg,wl)}i.k=!0,i.J=lf(),i.v&&Qx(!0),Xx(t.he,1),it(t.ye,qx),Ae(t.he,Wn,"false"),setTimeout((()=>{vi(te.ne.be)}),100),gi(te.re.fe,wg)}},PA=()=>{const{ne:e,o:t,re:i}=te;t.k&&(t.k=!1,t.v&&Qx(),vi(e.Ke,!0),Br(e.ye,qx),Ae(e.he,Wn,"true"),vi(t.J),t.J=null,gi(i._e,wg))},BA=()=>{const e=te.o;e.A||(e.N||$l(Cg,wl),e.A=!0,e.k?e.U=lf():e.J=lf(),Xx(te.ne.we,2),it(te.ne.ye,Ix),Ae(te.ne.we,Wn,"false"),setTimeout((()=>{vi(te.ne.ve)}),100),gi(te.re.fe,Eg))},UA=()=>{const e=te.o;e.A&&(e.A=!1,(()=>{const t=cw(),i=te.o.P,s=te.ne.ae,o=te.ne.se,u=c=>We(te.o.$,c);for(const c in s){const f=!!i[c].readOnly;s[c].checked=f||(t?ow(c):u(c));for(const h in o[c])o[c][h].checked=f||(t?lw(h,c):u(c))}})(),vi(te.ne.$e,!0),Br(te.ne.ye,Ix),Ae(te.ne.we,Wn,"true"),e.k?(vi(e.U),e.U=null):(vi(e.J),e.J=null),gi(te.re._e,Eg))};var Cg={show:uw,hide:PA,showPreferences:BA,hidePreferences:UA,acceptCategory:jA};const cw=()=>!te.o.D,HA=async e=>{const{o:t,t:i,re:s}=te,o=window;if(!o._ccRun){if(o._ccRun=!0,(f=>{const{ne:h,t:p,o:g}=te,m=p,y=g,{cookie:b}=m,S=te.ce,x=f.cookie,T=f.categories,E=As(T)||[],A=navigator,C=document;h.Ue=C,h.ye=C.documentElement,b.domain=location.hostname,y.i=f,y.P=T,y.O=E,y._=f.language.translations,y.v=!!f.disablePageInteraction,S.ie=f.onFirstConsent,S.le=f.onConsent,S.de=f.onChange,S._e=f.onModalHide,S.fe=f.onModalShow,S.ue=f.onModalReady;const{mode:M,autoShow:N,lazyHtmlGeneration:B,autoClearCookies:k,revision:D,manageScriptTags:$,hideFromBots:X}=f;M===dl&&(m.mode=M),typeof k=="boolean"&&(m.autoClearCookies=k),typeof $=="boolean"&&(m.manageScriptTags=$),typeof D=="number"&&D>=0&&(m.revision=D,y.V=!0),typeof N=="boolean"&&(m.autoShow=N),typeof B=="boolean"&&(m.lazyHtmlGeneration=B),X===!1&&(m.hideFromBots=!1),m.hideFromBots===!0&&A&&(y.G=A.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(A.userAgent)||A.webdriver),Iv(x)&&(m.cookie={...b,...x}),m.autoClearCookies,y.V,m.manageScriptTags,(F=>{const{P:re,X:ie,Y:oe,Z:ue,B:j}=te.o;for(let Y of F){const se=re[Y],pe=se.services||{},W=Iv(pe)&&As(pe)||[];ie[Y]={},oe[Y]=[],ue[Y]=[],se.readOnly&&(j.push(Y),oe[Y]=W),te.ne.se[Y]={};for(let R of W){const I=pe[R];I.Se=!1,ie[Y][R]=I}}})(E),(()=>{if(!te.t.manageScriptTags)return;const F=te.o,re=Tg(document,"script["+of+"]");for(const ie of re){let oe=zc(ie,of),ue=ie.dataset.service||"",j=!1;if(oe&&oe.charAt(0)==="!"&&(oe=oe.slice(1),j=!0),ue.charAt(0)==="!"&&(ue=ue.slice(1),j=!0),We(F.O,oe)&&(F.oe.push({Me:ie,xe:!1,ke:j,De:oe,Te:ue}),ue)){const Y=F.X[oe];Y[ue]||(Y[ue]={Se:!1})}}})(),aw((()=>{const F=te.o.i.language.autoDetect;if(F){const re={browser:navigator.language,document:document.documentElement.lang},ie=rw(re[F]);if(ie)return ie}return sw()})())})(e),t.G)return;(()=>{const f=te.o,h=te.t,p=zA(),{categories:g,services:m,consentId:y,consentTimestamp:b,lastConsentTimestamp:S,data:x,revision:T}=p,E=Rf(g);f.p=p,f.M=y;const A=!!y&&Ka(y);f.C=b,f.C&&(f.C=new Date(b)),f.S=S,f.S&&(f.S=new Date(S)),f.h=x!==void 0?x:null,f.V&&A&&T!==h.revision&&(f.I=!1),f.D=!(A&&f.I&&f.C&&f.S&&E),h.cookie.useLocalStorage&&!f.D&&(f.D=new Date().getTime()>(p.expirationTime||0),f.D&&DA(h.cookie.name)),f.D,(()=>{const C=te.o;for(const M of C.O){const N=C.P[M];if(N.readOnly||N.enabled){C.$.push(M);const B=C.X[M]||{};for(let k in B)C.Z[M].push(k),C.i.mode===dl&&C.Y[M].push(k)}}})(),f.D?h.mode===dl&&(f.R=[...f.$]):(f.Y={...f.Y,...m},f.Z={...f.Y},Yx([...f.B,...g]))})();const c=cw();if(!await OA())return!1;if(Kx(null,u=Cg,$l,wl),te.o.D&&iw(u,wl),te.t.lazyHtmlGeneration||$l(u,wl),i.autoShow&&!c&&uw(!0),c)return Gv(),gi(s.le);i.mode===dl&&Gv(t.$)}var u},FA=".inheritly.ai",qA=/^ph_/,IA={analytics:{enabled:!0,services:{posthog:{cookies:[{name:qA}],label:"PostHog"}}},necessary:{enabled:!0,readOnly:!0}},GA={consentModal:{equalWeightButtons:!1,flipButtons:!1,layout:"box wide",position:"middle center"},preferencesModal:{equalWeightButtons:!1,flipButtons:!1,layout:"bar wide"}},VA={en:{consentModal:{acceptAllBtn:"Allow",description:`provide secure estate planning services and improve your experience. By clicking 'Allow', you consent to us using cookies for essential functions and analytics. 
3Click 'Manage cookies' to customise your preferences.<br /><br />Learn more in our <a href="https://inheritly.ai/privacy" target="_blank" rel="noopener">Privacy Policy</a> and <a href="https://inheritly.ai/cookies" target="_blank" rel="noopener">Cookie Policy</a>.`,showPreferencesBtn:"Manage cookies",title:"This service uses cookies to:"},preferencesModal:{acceptAllBtn:"Allow",acceptNecessaryBtn:"Necessary only",closeIconLabel:"Close cookie preferences",savePreferencesBtn:"Allow selection",sections:[{description:"Necessary cookies are needed for the website to work correctly.",linkedCategory:"necessary",title:"Necessary"},{description:"Cookies are essential for enhancing your experience on our website. They help us understand how you interact with our site, allowing us to analyse your preferences and improve our services. Additionally, cookies manage feature availability, ensuring you consistently experience the same features across sessions, and allowing us to test and roll out new features gradually.",linkedCategory:"analytics",title:"Analytics"},{description:'Cookies (including similar technologies such as web storage) allow us to store and read information from your device. Learn more in our <a href="https://inheritly.ai/cookies" target="_blank" rel="noopener">Cookie Policy</a> and <a href="https://inheritly.ai/privacy" target="_blank" rel="noopener">Privacy Policy</a>.',title:"More information"}],title:"Manage cookie preferences"}}},YA={categories:IA,guiOptions:GA,language:{default:"en",translations:VA}};function jl(){return ow("analytics")||lw("PostHog","analytics")}function KA(){const[e,t]=L.useState(!1);return L.useEffect(()=>{const i=window.location.hostname==="localhost";HA({...YA,cookie:{domain:i?void 0:FA},disablePageInteraction:!0,onConsent(){jl()&&t(!0)}})},[]),L.useEffect(()=>{t(jl())},[]),L.useEffect(()=>{zs.set_config({persistence:e?"localStorage+cookie":"memory"}),e&&zs.opt_in_capturing()},[e]),null}var sS=L.use,Sc=typeof window<"u"?L.useLayoutEffect:L.useEffect;function Op(e){const t=L.useRef({value:e,prev:null}),i=t.current.value;return e!==i&&(t.current={value:e,prev:i}),t.current.prev}function XA(e,t,i={},s={}){L.useEffect(()=>{if(!e.current||s.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([u])=>{t(u)},i);return o.observe(e.current),()=>{o.disconnect()}},[t,i,s.disabled,e])}function QA(e){const t=L.useRef(null);return L.useImperativeHandle(e,()=>t.current,[]),t}var ZA=!1;function Pl(e){return e[e.length-1]}function JA(e){return typeof e=="function"}function zr(e,t){return JA(e)?e(t):e}var WA=Object.prototype.hasOwnProperty,aS=Object.prototype.propertyIsEnumerable,eO=()=>Object.create(null),vs=(e,t)=>Nr(e,t,eO);function Nr(e,t,i=()=>({}),s=0){if(e===t)return e;if(s>500)return t;const o=t,u=uS(e)&&uS(o);if(!u&&!(cf(e)&&cf(o)))return o;const c=u?e:oS(e);if(!c)return o;const f=u?o:oS(o);if(!f)return o;const h=c.length,p=f.length,g=u?new Array(p):i();let m=0;for(let y=0;y<p;y++){const b=u?y:f[y],S=e[b],x=o[b];if(S===x){g[b]=S,(u?y<h:WA.call(e,b))&&m++;continue}if(S===null||x===null||typeof S!="object"||typeof x!="object"){g[b]=x;continue}const T=Nr(S,x,i,s+1);g[b]=T,T===S&&m++}return h===p&&m===h?e:g}function oS(e){const t=Object.getOwnPropertyNames(e);for(const o of t)if(!aS.call(e,o))return!1;const i=Object.getOwnPropertySymbols(e);if(i.length===0)return t;const s=t;for(const o of i){if(!aS.call(e,o))return!1;s.push(o)}return s}function cf(e){if(!lS(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const i=t.prototype;return!(!lS(i)||!i.hasOwnProperty("isPrototypeOf"))}function lS(e){return Object.prototype.toString.call(e)==="[object Object]"}function uS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Os(e,t,i){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let s=0,o=e.length;s<o;s++)if(!Os(e[s],t[s],i))return!1;return!0}if(cf(e)&&cf(t)){const s=i?.ignoreUndefined??!0;if(i?.partial){for(const c in t)if((!s||t[c]!==void 0)&&!Os(e[c],t[c],i))return!1;return!0}let o=0;if(!s)o=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&o++;let u=0;for(const c in t)if((!s||t[c]!==void 0)&&(u++,u>o||!Os(e[c],t[c],i)))return!1;return o===u}return!1}function Va(e){let t,i;const s=new Promise((o,u)=>{t=o,i=u});return s.status="pending",s.resolve=o=>
3{s.status="resolved",s.value=o,t(o),e?.(o)},s.reject=o=>{s.status="rejected",i(o)},s}function tO(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Bl(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function nO(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function cS(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return nO(t)}var iO=["http:","https:","mailto:","tel:"];function ff(e,t){if(!e)return!1;try{const i=new URL(e);return!t.has(i.protocol)}catch{return!1}}function tl(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let i=0,s="",o;for(;(o=t.exec(e))!==null;)s+=cS(e.slice(i,o.index))+o[0],i=t.lastIndex;s=s+cS(i?e.slice(i):e);let u=!1;return s.startsWith("//")&&(u=!0,s="/"+s.replace(/^\/+/,"")),{path:s,handledProtocolRelativeURL:u}}function rO(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function sO(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}function Ji(){throw new Error("Invariant failed")}function Ul(e){const t=new Map;let i,s;const o=u=>{u.next&&(u.prev?(u.prev.next=u.next,u.next.prev=u.prev,u.next=void 0,s&&(s.next=u,u.prev=s)):(u.next.prev=void 0,i=u.next,u.next=void 0,s&&(u.prev=s,s.next=u)),s=u)};return{get(u){const c=t.get(u);if(c)return o(c),c.value},set(u,c){if(t.size>=e&&i){const h=i;t.delete(h.key),h.next&&(i=h.next,h.next.prev=void 0),h===s&&(s=void 0)}const f=t.get(u);if(f)f.value=c,o(f);else{const h={key:u,value:c,prev:s};s&&(s.next=h),s=h,i||(i=h),t.set(u,h)}},clear(){t.clear(),i=void 0,s=void 0}}}var Ts=4,fw=5;function aO(e){const t=e.indexOf("{");if(t===-1)return null;const i=e.indexOf("}",t);return i===-1||t+1>=e.length?null:[t,i]}function Mg(e,t,i=new Uint16Array(6)){const s=e.indexOf("/",t),o=s===-1?e.length:s,u=e.substring(t,o);if(!u||!u.includes("$"))return i[0]=0,i[1]=t,i[2]=t,i[3]=o,i[4]=o,i[5]=o,i;if(u==="$"){const f=e.length;return i[0]=2,i[1]=t,i[2]=t,i[3]=f,i[4]=f,i[5]=f,i}if(u.charCodeAt(0)===36)return i[0]=1,i[1]=t,i[2]=t+1,i[3]=o,i[4]=o,i[5]=o,i;const c=aO(u);if(c){const[f,h]=c,p=u.charCodeAt(f+1);if(p===45){if(f+2<u.length&&u.charCodeAt(f+2)===36){const g=f+3,m=h;if(g<m)return i[0]=3,i[1]=t+f,i[2]=t+g,i[3]=t+m,i[4]=t+h+1,i[5]=o,i}}else if(p===36){const g=f+1,m=f+2;return m===h?(i[0]=2,i[1]=t+f,i[2]=t+g,i[3]=t+m,i[4]=t+h+1,i[5]=e.length,i):(i[0]=1,i[1]=t+f,i[2]=t+m,i[3]=t+h,i[4]=t+h+1,i[5]=o,i)}}return i[0]=0,i[1]=t,i[2]=t,i[3]=o,i[4]=o,i[5]=o,i}function Cf(e,t,i,s,o,u,c){c?.(i);let f=s;{const h=i.fullPath??i.from,p=h.length,g=i.options?.caseSensitive??e,m=!!(i.options?.params?.parse&&i.options?.skipRouteOnParseError?.params);for(;f<p;){const b=Mg(h,f,t);let S;const x=f,T=b[5];switch(f=T+1,u++,b[0]){case 0:{const E=h.substring(b[2],b[3]);if(g){const A=o.static?.get(E);if(A)S=A;else{o.static??=new Map;const C=Rs(i.fullPath??i.from);C.parent=o,C.depth=u,S=C,o.static.set(E,C)}}else{const A=E.toLowerCase(),C=o.staticInsensitive?.get(A);if(C)S=C;else{o.staticInsensitive??=new Map;const M=Rs(i.fullPath??i.from);M.parent=o,M.depth=u,S=M,o.staticInsensitive.set(A,M)}}break}case 1:{const E=h.substring(x,b[1]),A=h.substring(b[4],T),C=g&&!!(E||A),M=E?C?E:E.toLowerCase():void 0,N=A?C?A:A.toLowerCase():void 0,B=!m&&o.dynamic?.find(k=>!k.skipOnParamError&&k.caseSensitive===C&&k.prefix===M&&k.suffix===N);if(B)S=B;
3else{const k=Dp(1,i.fullPath??i.from,C,M,N);S=k,k.depth=u,k.parent=o,o.dynamic??=[],o.dynamic.push(k)}break}case 3:{const E=h.substring(x,b[1]),A=h.substring(b[4],T),C=g&&!!(E||A),M=E?C?E:E.toLowerCase():void 0,N=A?C?A:A.toLowerCase():void 0,B=!m&&o.optional?.find(k=>!k.skipOnParamError&&k.caseSensitive===C&&k.prefix===M&&k.suffix===N);if(B)S=B;else{const k=Dp(3,i.fullPath??i.from,C,M,N);S=k,k.parent=o,k.depth=u,o.optional??=[],o.optional.push(k)}break}case 2:{const E=h.substring(x,b[1]),A=h.substring(b[4],T),C=g&&!!(E||A),M=E?C?E:E.toLowerCase():void 0,N=A?C?A:A.toLowerCase():void 0,B=Dp(2,i.fullPath??i.from,C,M,N);S=B,B.parent=o,B.depth=u,o.wildcard??=[],o.wildcard.push(B)}}o=S}if(m&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const b=Rs(i.fullPath??i.from);b.kind=fw,b.parent=o,u++,b.depth=u,o.pathless??=[],o.pathless.push(b),o=b}const y=(i.path||!i.children)&&!i.isRoot;if(y&&h.endsWith("/")){const b=Rs(i.fullPath??i.from);b.kind=Ts,b.parent=o,u++,b.depth=u,o.index=b,o=b}o.parse=i.options?.params?.parse??null,o.skipOnParamError=m,o.parsingPriority=i.options?.skipRouteOnParseError?.priority??0,y&&
3!o.route&&(o.route=i,o.fullPath=i.fullPath??i.from)}if(i.children)for(const h of i.children)Cf(e,t,h,f,o,u,c)}function kp(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Or(e){if(e.pathless)for(const t of e.pathless)Or(t);if(e.static)for(const t of e.static.values())Or(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Or(t);if(e.dynamic?.length){e.dynamic.sort(kp);for(const t of e.dynamic)Or(t)}if(e.optional?.length){e.optional.sort(kp);for(const t of e.optional)Or(t)}if(e.wildcard?.length){e.wildcard.sort(kp);for(const t of e.wildcard)Or(t)}}function Rs(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Dp(e,t,i,s,o){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:i,prefix:s,suffix:o}}function oO(e,t){const i=Rs("/"),s=new Uint16Array(6);for(const o of e)Cf(!1,s,o,1,i,0);Or(i),t.masksTree=i,t.flatCache=Ul(1e3)}function lO(e,t){e||="/";const i=t.flatCache.get(e);if(i)return i;const s=Ag(e,t.masksTree);return t.flatCache.set(e,s),s}function uO(e,t,i,s,o){e||="/",s||="/";const u=t?`case\0${e}`:e;let c=o.singleCache.get(u);return c||(c=Rs("/"),Cf(t,new Uint16Array(6),{from:e},1,c,0),o.singleCache.set(u,c)),Ag(s,c,i)}function cO(e,t,i=!1){const s=i?e:`nofuzz\0${e}`,o=t.matchCache.get(s);if(o!==void 0)return o;e||="/";let u;try{u=Ag(e,t.segmentTree,i)}catch(c){if(c instanceof URIError)u=null;else throw c}return u&&(u.branch=hO(u.route)),t.matchCache.set(s,u),u}function fO(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function dO(e,t=!1,i){const s=Rs(e.fullPath),o=new Uint16Array(6),u={},c={};let f=0;return Cf(t,o,e,1,s,0,h=>{if(i?.(h,f),h.id in u&&Ji(),u[h.id]=h,f!==0&&h.path){const p=fO(h.fullPath);(!c[p]||h.fullPath.endsWith("/"))&&(c[p]=h)}f++}),Or(s),{processedTree:{segmentTree:s,singleCache:Ul(1e3),matchCache:Ul(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:c}}function Ag(e,t,i=!1){const s=e.split("/"),o=vO(e,s,t,i);if(!o)return null;const[u]=dw(e,s,o);return{route:o.node.route,rawParams:u,parsedParams:o.parsedParams}}function dw(e,t,i){const s=pO(i.node);let o=null;const u=Object.create(null);let c=i.extract?.part??0,f=i.extract?.node??0,h=i.extract?.path??0,p=i.extract?.segment??0;for(;f<s.length;c++,f++,h++,p++){const g=s[f];if(g.kind===Ts)break;if(g.kind===fw){p--,c--,h--;continue}const m=t[c],y=h;if(m&&(h+=m.length),g.kind===1){o??=i.node.fullPath.split("/");const b=o[p],S=g.prefix?.length??0;if(b.charCodeAt(S)===123){const x=g.suffix?.length??0,T=b.substring(S+2,b.length-x-1),E=m.substring(S,m.length-x);u[T]=decodeURIComponent(E)}else{const x=b.substring(1);u[x]=decodeURIComponent(m)}}else if(g.kind===3){if(i.skipped&1<<f){c--,h=y-1;continue}o??=i.node.fullPath.split("/");const b=o[p],S=g.prefix?.length??0,x=g.suffix?.length??0,T=b.substring(S+3,b.length-x-1),E=g.suffix||g.prefix?m.substring(S,m.length-x):m;E&&(u[T]=decodeURIComponent(E))}else if(g.kind===2){const b=g,S=e.substring(y+(b.prefix?.length??0),e.length-(b.suffix?.length??0)),x=decodeURIComponent(S);u["*"]=x,u._splat=x;break}}return i.rawParams&&Object.assign(u,i.rawParams),[u,{part:c,node:f,path:h,segment:p}]}function hO(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function pO(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function vO(e,t,i,s){if(e==="/"&&i.index)return{node:i.index,skipped:0};const o=!Pl(t),u=o&&e!=="/",c=t.length-(o?1:0),f=[{node:i,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let h=null,p=null,g=null;for(;f.length;){const m=f.pop(),{node:y,index:b,skipped:S,depth:x,statics:T,dynamics:E,optionals:A}=m;let{extract:C,rawParams:M,parsedParams:N}=m;if(y.skipOnParamError){if(!Lp(e,t,m))continue;M=m.rawParams,C=m.extract,N=m.parsedParams}s&&y.route&&y.kind!==Ts&&nl(p,m)&&(p=m);const B=b===c;if(B&&(y.route&&!u&&nl(g,m)&&(g=m),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;
3const k=B?void 0:t[b];let D;if(B&&y.index){const $={node:y.index,index:b,skipped:S,depth:x+1,statics:T,dynamics:E,optionals:A,extract:C,rawParams:M,parsedParams:N};let X=!0;if(y.index.skipOnParamError&&(Lp(e,t,$)||(X=!1)),X){if(T===c&&!E&&!A&&!S)return $;nl(g,$)&&(g=$)}}if(y.wildcard&&nl(h,m))for(const $ of y.wildcard){const{prefix:X,suffix:F}=$;if(X&&(B||!($.caseSensitive?k:D??=k.toLowerCase()).startsWith(X)))continue;if(F){if(B)continue;const ie=t.slice(b).join("/").slice(-F.length);if(($.caseSensitive?ie:ie.toLowerCase())!==F)continue}const re={node:$,index:c,skipped:S,depth:x,statics:T,dynamics:E,optionals:A,extract:C,rawParams:M,parsedParams:N};if(!($.skipOnParamError&&!Lp(e,t,re))){h=re;break}}if(y.optional){const $=S|1<<x,X=x+1;for(let F=y.optional.length-1;F>=0;F--){const re=y.optional[F];f.push({node:re,index:b,skipped:$,depth:X,statics:T,dynamics:E,optionals:A,extract:C,rawParams:M,parsedParams:N})}if(!B)for(let F=y.optional.length-1;F>=0;F--){const re=y.optional[F],{prefix:ie,suffix:oe}=re;if(ie||oe){const ue=re.caseSensitive?k:D??=k.toLowerCase();if(ie&&!ue.startsWith(ie)||oe&&!ue.endsWith(oe))continue}f.push({node:re,index:b+1,skipped:S,depth:X,statics:T,dynamics:E,optionals:A+1,extract:C,rawParams:M,parsedParams:N})}}if(!B&&y.dynamic&&k)for(let $=y.dynamic.length-1;$>=0;$--){const X=y.dynamic[$],{prefix:F,suffix:re}=X;if(F||re){const ie=X.caseSensitive?k:D??=k.toLowerCase();if(F&&!ie.startsWith(F)||re&&!ie.endsWith(re))continue}f.push({node:X,index:b+1,skipped:S,depth:x+1,statics:T,dynamics:E+1,optionals:A,extract:C,rawParams:M,parsedParams:N})}if(!B&&y.staticInsensitive){const $=y.staticInsensitive.get(D??=k.toLowerCase());$&&f.push({node:$,index:b+1,skipped:S,depth:x+1,statics:T+1,dynamics:E,optionals:A,extract:C,rawParams:M,parsedParams:N})}if(!B&&y.static){const $=y.static.get(k);$&&f.push({node:$,index:b+1,skipped:S,depth:x+1,statics:T+1,dynamics:E,optionals:A,extract:C,rawParams:M,parsedParams:N})}if(y.pathless){const $=x+1;for(let X=y.pathless.length-1;X>=0;X--){const F=y.pathless[X];f.push({node:F,index:b,skipped:S,depth:$,statics:T,dynamics:E,optionals:A,extract:C,rawParams:M,parsedParams:N})}}}if(g&&h)return nl(h,g)?g:h;if(g)return g;if(h)return h;if(s&&p){let m=p.index;for(let b=0;b<p.index;b++)m+=t[b].length;const y=m===e.length?"/":e.slice(m);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(y),p}return null}function Lp(e,t,i){try{const[s,o]=dw(e,t,i);i.rawParams=s,i.extract=o;const u=i.node.parse(s);return i.parsedParams=Object.assign(Object.create(null),i.parsedParams,u),!0}catch{return null}}function nl(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ts)>(e.node.kind===Ts)||t.node.kind===Ts==(e.node.kind===Ts)&&t.depth>e.depth))):!0}function $c(e){return Og(e.filter(t=>t!==void 0).join("/"))}function Og(e){return e.replace(/\/{2,}/g,"/")}function hw(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Ur(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function pw(e){return Ur(hw(e))}function df(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function gO(e,t,i){return df(e,i)===df(t,i)}function mO({base:e,to:t,trailingSlash:i="never",cache:s}){const o=t.startsWith("/"),u=!o&&t===".";let c;if(s){c=o?t:u?e:e+"\0"+t;const m=s.get(c);if(m)return m}let f;if(u)f=e.split("/");else if(o)f=t.split("/");else{for(f=e.split("/");f.length>1&&Pl(f)==="";)f.pop();const m=t.split("/");for(let y=0,b=m.length;y<b;y++){const S=m[y];S===""?y?y===b-1&&f.push(S):f=[S]:S===".."?f.pop():S==="."||f.push(S)}}f.length>1&&(Pl(f)===""?i==="never"&&f.pop():i==="always"&&f.push(""));let h,p="";for(let m=0;m<f.length;m++){m>0&&(p+="/");const y=f[m];if(!y)continue;h=Mg(y,0,h);const b=h[0];if(b===0){p+=y;continue}const S=h[5],x=y.substring(0,h[1]),T=y.substring(h[4],S),E=y.substring(h[2],h[3]);b===1?p+=x||T?`${x}{$${E}}${T}`:`$${E}`:b===2?p+=x||T?`${x}{$}${T}`:"$":p+=`${x}{-$${E}}${T}`}p=Og(p);const g=p||"/";return c&&s&&s.set(c,g),g}function yO(e){const t=new Map(e.map(o=>[encodeURIComponent(o),o])),i=Array.from(t.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(i,"g");return o=>o.replace(s,u=>t.get(u)??u)}function zp(e,t,i){const s=t[e];
3return typeof s!="string"?s:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(s)?s:s.split("/").map(o=>dS(o,i)).join("/"):dS(s,i)}function fS({path:e,params:t,decoder:i,...s}){let o=!1;const u=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:u,isMissingParams:o};if(!e.includes("$"))return{interpolatedPath:e,usedParams:u,isMissingParams:o};const c=e.length;let f=0,h,p="";for(;f<c;){const g=f;h=Mg(e,g,h);const m=h[5];if(f=m+1,g===m)continue;const y=h[0];if(y===0){p+="/"+e.substring(g,m);continue}if(y===2){const b=t._splat;u._splat=b,u["*"]=b;const S=e.substring(g,h[1]),x=e.substring(h[4],m);if(!b){o=!0,(S||x)&&(p+="/"+S+x);continue}const T=zp("_splat",t,i);p+="/"+S+T+x;continue}if(y===1){const b=e.substring(h[2],h[3]);!o&&!(b in t)&&(o=!0),u[b]=t[b];const S=e.substring(g,h[1]),x=e.substring(h[4],m),T=zp(b,t,i)??"undefined";p+="/"+S+T+x;continue}if(y===3){const b=e.substring(h[2],h[3]),S=t[b];if(S==null)continue;u[b]=S;const x=e.substring(g,h[1]),T=e.substring(h[4],m),E=zp(b,t,i)??"";p+="/"+x+E+T;continue}}return e.endsWith("/")&&(p+="/"),{usedParams:u,interpolatedPath:p||"/",isMissingParams:o}}function dS(e,t){const i=encodeURIComponent(e);return t?.(i)??i}function nn(e){return!!e?.isNotFound}function _O(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}var Yv="tsr-scroll-restoration-v1_3",bO=(e,t)=>{let i;return(...s)=>{i||(i=setTimeout(()=>{e(...s),i=null},t))}};function SO(){const e=_O();if(!e)return null;const t=e.getItem(Yv);let i=t?JSON.parse(t):{};return{state:i,set:s=>{i=zr(s,i)||i;try{e.setItem(Yv,JSON.stringify(i))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}var xc=SO(),xO=e=>e.state.__TSR_key||e.href;function wO(e){const t=[];let i;for(;i=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(i.children,e)+1})`),e=i;return`${t.reverse().join(" > ")}`.toLowerCase()}var hf=!1;function EO({storageKey:e,key:t,behavior:i,shouldScrollRestoration:s,scrollToTopSelectors:o,location:u}){let c;try{c=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(p){console.error(p);return}const f=t||window.history.state?.__TSR_key,h=c[f];hf=!0;e:{if(s&&h&&Object.keys(h).length>0){for(const m in h){const y=h[m];if(m==="window")window.scrollTo({top:y.scrollY,left:y.scrollX,behavior:i});else if(m){const b=document.querySelector(m);b&&(b.scrollLeft=y.scrollX,b.scrollTop=y.scrollY)}}break e}const p=(u??window.location).hash.split("#",2)[1];if(p){const m=window.history.state?.__hashScrollIntoViewOptions??!0;if(m){const y=document.getElementById(p);y&&y.scrollIntoView(m)}break e}const g={top:0,left:0,behavior:i};if(window.scrollTo(g),o)for(const m of o){if(m==="window")continue;const y=typeof m=="function"?m():document.querySelector(m);y&&y.scrollTo(g)}}hf=!1}function TO(e,t){if(!xc||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!xc))return;e.isScrollRestorationSetup=!0,hf=!1;const i=e.options.getScrollRestorationKey||xO;window.history.scrollRestoration="manual";const s=o=>{if(hf||!e.isScrollRestoring)return;let u="";if(o.target===document||o.target===window)u="window";else{const f=o.target.getAttribute("data-scroll-restoration-id");f?u=`[data-scroll-restoration-id="${f}"]`:u=wO(o.target)}const c=i(e.stores.location.state);xc.set(f=>{const h=f[c]||={},p=h[u]||={};if(u==="window")p.scrollX=window.scrollX||0,p.scrollY=window.scrollY||0;else if(u){const g=document.querySelector(u);g&&(p.scrollX=g.scrollLeft||0,p.scrollY=g.scrollTop||0)}return f})};typeof document<"u"&&document.addEventListener("scroll",bO(s,100),!0),e.subscribe("onRendered",o=>{const u=i(o.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(EO({storageKey:Yv,key:u,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&xc.set(c=>(c[u]||={},c)))})}function RO(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.state,i=t.state.__hashScrollIntoViewOptions??!0;if(i&&t.hash!==""){const s=document.getElementById(t.hash);s&&s.scrollIntoView(i)}}}function CO(e,t=String){const i=new URLSearchParams;for(const s in e){const o=e[s];o!==void 0&&i.set(s,t(o))}return i.toString()}function Np(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function MO(e){const t=new URLSearchParams(e),i=Object.create(null);for(const[s,o]of t.entries()){const u=i[s];u==null?i[s]=Np(o):Array.isArray(u)?u.push(Np(o)):i[s]=[u,Np(o)]}return i}var AO=kO(JSON.parse),OO=DO(JSON.stringify,JSON.parse);function kO(e){return t=>{t[0]==="?"&&(t=t.substring(1));const i=MO(t);for(const s in i){const o=i[s];
3if(typeof o=="string")try{i[s]=e(o)}catch{}}return i}}function DO(e,t){const i=typeof t=="function";function s(o){if(typeof o=="object"&&o!==null)try{return e(o)}catch{}else if(i&&typeof o=="string")try{return t(o),e(o)}catch{}return o}return o=>{const u=CO(o,s);return u?`?${u}`:""}}var ks="__root__";function LO(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const i=new Response(null,{status:e.statusCode,headers:t});if(i.options=e,e.throw)throw i;return i}function hn(e){return e instanceof Response&&!!e.options}function zO(e){return{input:({url:t})=>{for(const i of e)t=Kv(i,t);return t},output:({url:t})=>{for(let i=e.length-1;i>=0;i--)t=vw(e[i],t);return t}}}function NO(e){const t=pw(e.basepath),i=`/${t}`,s=`${i}/`,o=e.caseSensitive?i:i.toLowerCase(),u=e.caseSensitive?s:s.toLowerCase();return{input:({url:c})=>{const f=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return f===o?c.pathname="/":f.startsWith(u)&&(c.pathname=c.pathname.slice(i.length)),c},output:({url:c})=>(c.pathname=$c(["/",t,c.pathname]),c)}}function Kv(e,t){const i=e?.input?.({url:t});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return t}function vw(e,t){const i=e?.output?.({url:t});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return t}function $O(e,t){const{createMutableStore:i,createReadonlyStore:s,batch:o,init:u}=t,c=new Map,f=new Map,h=new Map,p=i(e.status),g=i(e.loadedAt),m=i(e.isLoading),y=i(e.isTransitioning),b=i(e.location),S=i(e.resolvedLocation),x=i(e.statusCode),T=i(e.redirect),E=i([]),A=i([]),C=i([]),M=s(()=>$p(c,E.state)),N=s(()=>$p(f,A.state)),B=s(()=>$p(h,C.state)),k=s(()=>E.state[0]),D=s(()=>E.state.some(Y=>c.get(Y)?.state.status==="pending")),$=s(()=>({locationHref:b.state.href,resolvedLocationHref:S.state?.href,status:p.state})),X=s(()=>({status:p.state,loadedAt:g.state,isLoading:m.state,isTransitioning:y.state,matches:M.state,location:b.state,resolvedLocation:S.state,statusCode:x.state,redirect:T.state})),F=Ul(64);function re(Y){let se=F.get(Y);return se||(se=s(()=>{const pe=E.state;for(const W of pe){const R=c.get(W);if(R&&R.routeId===Y)return R.state}}),F.set(Y,se)),se}const ie={status:p,loadedAt:g,isLoading:m,isTransitioning:y,location:b,resolvedLocation:S,statusCode:x,redirect:T,matchesId:E,pendingMatchesId:A,cachedMatchesId:C,activeMatchesSnapshot:M,pendingMatchesSnapshot:N,cachedMatchesSnapshot:B,firstMatchId:k,hasPendingMatches:D,matchRouteReactivity:$,activeMatchStoresById:c,pendingMatchStoresById:f,cachedMatchStoresById:h,__store:X,getMatchStoreByRouteId:re,setActiveMatches:oe,setPendingMatches:ue,setCachedMatches:j};oe(e.matches),u?.(ie);function oe(Y){jp(Y,c,E,i,o)}function ue(Y){jp(Y,f,A,i,o)}function j(Y){jp(Y,h,C,i,o)}return ie}function $p(e,t){const i=[];for(const s of t){const o=e.get(s);o&&i.push(o.state)}return i}function jp(e,t,i,s,o){const u=e.map(f=>f.id),c=new Set(u);o(()=>{for(const f of t.keys())c.has(f)||t.delete(f);for(const f of e){const h=t.get(f.id);if(!h){const p=s(f);p.routeId=f.routeId,t.set(f.id,p);continue}h.routeId=f.routeId,h.state!==f&&h.setState(()=>f)}sO(i.state,u)||i.setState(()=>u)})}var Xv=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},jO=e=>e.stores.matchesId.state.some(t=>e.stores.activeMatchStoresById.get(t)?.state._forcePending),Mf=(e,t)=>!!(e.preload&&!e.router.stores.activeMatchStoresById.has(t)),Ds=(e,t,i=!0)=>{const s={...e.router.options.context??{}},o=i?t:t-1;for(let u=0;u<=o;u++){const c=e.matches[u];if(!c)continue;const f=e.router.getMatch(c.id);f&&Object.assign(s,f.__routeContext,f.__beforeLoadContext)}return s},hS=(e,t)=>{if(!e.matches.length)return;const i=t.routeId,s=e.matches.findIndex(c=>c.routeId===e.router.routeTree.id),o=s>=0?s:0;let u=i?e.matches.findIndex(c=>c.routeId===i):e.firstBadMatchIndex??e.matches.length-1;u<0&&(u=o);for(let c=u;c>=0;c--){const f=e.matches[c];if(e.router.looseRoutesById[f.routeId].options.notFoundComponent)return c}return i?u:o},$r=(e,t,i)=>{if(!(!hn(i)&&!nn(i)))throw hn(i)&&i.redirectHandled&&!i.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=i,e.updateMatch(t.id,s=>({...s,status:hn(i)?"redirected":s.status==="pending"?"success":s.status,context:Ds(e,t.index),isFetching:!1,error:i})),nn(i)&&!i.routeId&&(i.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),hn(i)&&(e.rendered=!0,i.options._fromLocation=e.location,i.redirectHandled=!0,i=e.router.resolveRedirect(i))),i},gw=(e,t)=>{const i=e.router.getMatch(t);return!!(!i||i._nonReactive.dehydrated)},pS=(e,t,i)=>{const s=Ds(e,i);e.updateMatch(t,o=>({...o,context:s}))},il=(e,t,i,s)=>{const{id:o,routeId:u}=e.matches[t],c=e.router.looseRoutesById[u];if(i instanceof Promise)throw i;i.routerCode=s,e.firstBadMatchIndex??=t,$r(e,e.router.getMatch(o),i);try{c.options.onError?.(i)}catch(f){i=f,$r(e,e.router.getMatch(o),i)}e.updateMatch(o,f=>(f._nonReactive.beforeLoadPromise?.resolve(),f._nonReactive.beforeLoadPromise=void 0,f._nonReactive.loadPromise?.resolve(),{...f,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!hn(i)&&!nn(i)&&(e.serialError??=i)},mw=(e,t,i,s)=>
3{if(s._nonReactive.pendingTimeout!==void 0)return;const o=i.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Mf(e,t)&&(i.options.loader||i.options.beforeLoad||_w(i))&&typeof o=="number"&&o!==1/0&&(i.options.pendingComponent??e.router.options?.defaultPendingComponent)){const u=setTimeout(()=>{Xv(e)},o);s._nonReactive.pendingTimeout=u}},PO=(e,t,i)=>{const s=e.router.getMatch(t);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;mw(e,t,i,s);const o=()=>{const u=e.router.getMatch(t);u.preload&&(u.status==="redirected"||u.status==="notFound")&&$r(e,u,u.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(o):o()},BO=(e,t,i,s)=>{const o=e.router.getMatch(t);let u=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Va(()=>{u?.resolve(),u=void 0});const{paramsError:c,searchError:f}=o;c&&il(e,i,c,"PARSE_PARAMS"),f&&il(e,i,f,"VALIDATE_SEARCH"),mw(e,t,s,o);const h=new AbortController;let p=!1;const g=()=>{p||(p=!0,e.updateMatch(t,M=>({...M,isFetching:"beforeLoad",fetchCount:M.fetchCount+1,abortController:h})))},m=()=>{o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,M=>({...M,isFetching:!1}))};if(!s.options.beforeLoad){e.router.batch(()=>{g(),m()});return}o._nonReactive.beforeLoadPromise=Va();const y={...Ds(e,i,!1),...o.__routeContext},{search:b,params:S,cause:x}=o,T=Mf(e,t),E={search:b,abortController:h,params:S,preload:T,context:y,location:e.location,navigate:M=>e.router.navigate({...M,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:T?"preload":x,matches:e.matches,routeId:s.id,...e.router.options.additionalContext},A=M=>{if(M===void 0){e.router.batch(()=>{g(),m()});return}(hn(M)||nn(M))&&(g(),il(e,i,M,"BEFORE_LOAD")),e.router.batch(()=>{g(),e.updateMatch(t,N=>({...N,__beforeLoadContext:M})),m()})};let C;try{if(C=s.options.beforeLoad(E),Bl(C))return g(),C.catch(M=>{il(e,i,M,"BEFORE_LOAD")}).then(A)}catch(M){g(),il(e,i,M,"BEFORE_LOAD")}A(C)},UO=(e,t)=>{const{id:i,routeId:s}=e.matches[t],o=e.router.looseRoutesById[s],u=()=>f(),c=()=>BO(e,i,t,o),f=()=>{if(gw(e,i))return;const h=PO(e,i,o);return Bl(h)?h.then(c):c()};return u()},HO=(e,t,i)=>{const s=e.router.getMatch(t);if(!s||!i.options.head&&!i.options.scripts&&!i.options.headers)return;const o={ssr:e.router.options.ssr,matches:e.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([i.options.head?.(o),i.options.scripts?.(o),i.options.headers?.(o)]).then(([u,c,f])=>({meta:u?.meta,links:u?.links,headScripts:u?.scripts,headers:f,scripts:c,styles:u?.styles}))},yw=(e,t,i,s,o)=>{const u=t[s-1],{params:c,loaderDeps:f,abortController:h,cause:p}=e.router.getMatch(i),g=Ds(e,s),m=Mf(e,i);return{params:c,deps:f,preload:!!m,parentMatchPromise:u,abortController:h,context:g,location:e.location,navigate:y=>e.router.navigate({...y,_fromLocation:e.location}),cause:m?"preload":p,route:o,...e.router.options.additionalContext}},vS=async(e,t,i,s,o)=>{try{const u=e.router.getMatch(i);try{(!(ZA??e.router.isServer)||u.ssr===!0)&&Hl(o);const c=o.options.loader,f=typeof c=="function"?c:c?.handler,h=f?.(yw(e,t,i,s,o)),p=!!f&&Bl(h);if((p||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||u._nonReactive.minPendingPromise)&&e.updateMatch(i,m=>({...m,isFetching:"loader"})),f){const m=p?await h:h;$r(e,e.router.getMatch(i),m),m!==void 0&&e.updateMatch(i,y=>({...y,loaderData:m}))}o._lazyPromise&&await o._lazyPromise;const g=u._nonReactive.minPendingPromise;g&&await g,o._componentsPromise&&await o._componentsPromise,e.updateMatch(i,m=>({...m,error:void 0,context:Ds(e,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(c){let f=c;if(f?.name==="AbortError"){if(u.abortController.signal.aborted){u._nonReactive.loaderPromise?.resolve(),u._nonReactive.loaderPromise=void 0;return}e.updateMatch(i,p=>({...p,status:p.status==="pending"?"success":p.status,isFetching:!1,context:Ds(e,s)}));return}const h=u._nonReactive.minPendingPromise;h&&await h,nn(c)&&await o.options.notFoundComponent?.preload?.(),$r(e,e.router.getMatch(i),c);try{o.options.onError?.(c)}catch(p){f=p,$r(e,e.router.getMatch(i),p)}!hn(f)&&!nn(f)&&await Hl(o,["errorComponent"]),e.updateMatch(i,p=>({...p,error:f,context:Ds(e,s),status:"error",isFetching:!1}))}}catch(u){const c=e.router.getMatch(i);c&&(c._nonReactive.loaderPromise=void 0),$r(e,c,u)}},FO=async(e,t,i)=>{async function s(b,S,x,T,E){const A=Date.now()-S.updatedAt,C=b?E.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:E.options.staleTime??e.router.options.defaultStaleTime??0,M=E.options.shouldReload,N=typeof M=="function"?M(yw(e,t,o,i,E)):M,{status:B,invalid:k}=T,D=A>=C&&(!!e.forceStaleReload||T.cause==="enter"||x!==void 0&&x!==T.id);c=B==="success"&&(k||(N??D)),b&&E.options.preload===!1||(c&&!e.sync&&g?(f=!0,(async()=>{try{await vS(e,t,o,i,E);const $=e.router.getMatch(o);$._nonReactive.loaderPromise?.resolve(),$._nonReactive.loadPromise?.resolve(),$._nonReactive.loaderPromise=void 0,$._nonReactive.loadPromise=void 0}catch($){hn($)&&await e.router.navigate($.options)}})()):B!=="success"||c?await vS(e,t,o,i,E):pS(e,o,i))}const{id:o,routeId:u}=e.matches[i];let c=!1,f=!1;const h=e.router.looseRoutesById[u],p=h.options.loader,g=((typeof p=="function"?void 0:p?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(gw(e,o)){if(!e.router.getMatch(o))return e.matches[i];pS(e,o,i)}else{const b=e.router.getMatch(o),S=e.router.stores.matchesId.state[i],x=(S&&e.router.stores.activeMatchStoresById.get(S)||null)?.routeId===u?S:e.router.stores.activeMatchesSnapsh
3ot.state.find(E=>E.routeId===u)?.id,T=Mf(e,o);if(b._nonReactive.loaderPromise){if(b.status==="success"&&!e.sync&&!b.preload&&g)return b;await b._nonReactive.loaderPromise;const E=e.router.getMatch(o),A=E._nonReactive.error||E.error;A&&$r(e,E,A),E.status==="pending"&&await s(T,b,x,E,h)}else{const E=T&&!e.router.stores.activeMatchStoresById.has(o),A=e.router.getMatch(o);A._nonReactive.loaderPromise=Va(),E!==A.preload&&e.updateMatch(o,C=>({...C,preload:E})),await s(T,b,x,A,h)}}const m=e.router.getMatch(o);f||(m._nonReactive.loaderPromise?.resolve(),m._nonReactive.loadPromise?.resolve(),m._nonReactive.loadPromise=void 0),clearTimeout(m._nonReactive.pendingTimeout),m._nonReactive.pendingTimeout=void 0,f||(m._nonReactive.loaderPromise=void 0),m._nonReactive.dehydrated=void 0;const y=f?m.isFetching:!1;return y!==m.isFetching||m.invalid!==!1?(e.updateMatch(o,b=>({...b,isFetching:y,invalid:!1})),e.router.getMatch(o)):m};async function gS(e){const t=e,i=[];jO(t.router)&&Xv(t);let s;for(let y=0;y<t.matches.length;y++){try{const b=UO(t,y);Bl(b)&&await b}catch(b){if(hn(b))throw b;if(nn(b))s=b;else if(!t.preload)throw b;break}if(t.serialError)break}const o=t.firstBadMatchIndex??t.matches.length,u=s&&!t.preload?hS(t,s):void 0,c=s&&t.preload?0:u!==void 0?Math.min(u+1,o):o;let f,h;for(let y=0;y<c;y++)i.push(FO(t,i,y));try{await Promise.all(i)}catch{const y=await Promise.allSettled(i);for(const b of y){if(b.status!=="rejected")continue;const S=b.reason;if(hn(S))throw S;nn(S)?f??=S:h??=S}if(h!==void 0)throw h}const p=f??(s&&!t.preload?s:void 0);let g=t.serialError?t.firstBadMatchIndex??0:t.matches.length-1;if(!p&&s&&t.preload)return t.matches;if(p){const y=hS(t,p);y===void 0&&Ji();const b=t.matches[y],S=t.router.looseRoutesById[b.routeId],x=t.router.options?.defaultNotFoundComponent;!S.options.notFoundComponent&&x&&(S.options.notFoundComponent=x),p.routeId=b.routeId;const T=b.routeId===t.router.routeTree.id;t.updateMatch(b.id,E=>({...E,...T?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:p},isFetching:!1})),g=y,await Hl(S,["notFoundComponent"])}else if(!t.preload){const y=t.matches[0];y.globalNotFound||t.router.getMatch(y.id)?.globalNotFound&&t.updateMatch(y.id,b=>({...b,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const y=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Hl(y,["errorComponent"])}for(let y=0;y<=g;y++){const{id:b,routeId:S}=t.matches[y],x=t.router.looseRoutesById[S];try{const T=HO(t,b,x);if(T){const E=await T;t.updateMatch(b,A=>({...A,...E}))}}catch(T){console.error(`Error executing head for route ${S}:`,T)}}const m=Xv(t);if(Bl(m)&&await m,p)throw p;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function mS(e,t){const i=t.map(s=>e.options[s]?.preload?.()).filter(Boolean);if(i.length!==0)return Promise.all(i)}function Hl(e,t=jc){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(s=>{const{id:o,...u}=s.options;Object.assign(e.options,u),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const i=()=>e._componentsLoaded?void 0:t===jc?(()=>{if(e._componentsPromise===void 0){const s=mS(e,jc);s?e._componentsPromise=s.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():mS(e,t);return e._lazyPromise?e._lazyPromise.then(i):i()}function _w(e){for(const t of jc)if(e.options[t]?.preload)return!0;return!1}var jc=["component","errorComponent","pendingComponent","notFoundComponent"],Hr="__TSR_index",yS="popstate",_S="beforeunload";function qO(e){let t=e.getLocation();const i=new Set,s=c=>{t=e.getLocation(),i.forEach(f=>f({location:t,action:c}))},o=c=>{e.notifyOnIndexChange??!0?s(c):t=e.getLocation()},u=async({task:c,navigateOpts:f,...h})=>{if(f?.ignoreBlocker??!1){c();return}const p=e.getBlockers?.()??[],g=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&p.length&&g)for(const m of p){const y=pf(h.path,h.state);if(await m.blockerFn({currentLocation:t,nextLocation:y,action:h.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:i,subscribe:c=>(i.add(c),()=>{i.delete(c)}),push:(c,f,h)=>{const p=t.state[Hr];f=bS(p+1,f),u({task:()=>{e.pushState(c,f),s({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:c,state:f})},replace:(c,f,h)=>{const p=t.state[Hr];f=bS(p,f),u({task:()=>{e.replaceState(c,f),s({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:c,state:f})},go:(c,f)=>{u({task:()=>{e.go(c),o({type:"GO",index:c})},navigateOpts:f,type:"GO"})},back:c=>{u({task:()=>{e.back(c?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{u({task:()=>{e.forward(c?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[Hr]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,c]),()=>{const h=e.getBlockers?.()??[];e.setBlockers?.(h.filter(p=>p!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:s}}function bS(e,t){t||(t={});const i=kg();return{...t,key:i,__TSR_key:i,[Hr]:e}}function IO(e){const t=typeof document<"u"?window:void 0,i=t.history.pushState,s=t.history.replaceState;let o=[];const u=()=>
3o,c=D=>o=D,f=(D=>D),h=(()=>pf(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const D=kg();t.history.replaceState({[Hr]:0,key:D,__TSR_key:D},"")}let p=h(),g,m=!1,y=!1,b=!1,S=!1;const x=()=>p;let T,E;const A=()=>{T&&(k._ignoreSubscribers=!0,(T.isPush?t.history.pushState:t.history.replaceState)(T.state,"",T.href),k._ignoreSubscribers=!1,T=void 0,E=void 0,g=void 0)},C=(D,$,X)=>{const F=f($);E||(g=p),p=pf($,X),T={href:F,state:X,isPush:T?.isPush||D==="push"},E||(E=Promise.resolve().then(()=>A()))},M=D=>{p=h(),k.notify({type:D})},N=async()=>{if(y){y=!1;return}const D=h(),$=D.state[Hr]-p.state[Hr],X=$===1,F=$===-1,re=!X&&!F||m;m=!1;const ie=re?"GO":F?"BACK":"FORWARD",oe=re?{type:"GO",index:$}:{type:F?"BACK":"FORWARD"};if(b)b=!1;else{const ue=u();if(typeof document<"u"&&ue.length){for(const j of ue)if(await j.blockerFn({currentLocation:p,nextLocation:D,action:ie})){y=!0,t.history.go(1),k.notify(oe);return}}}p=h(),k.notify(oe)},B=D=>{if(S){S=!1;return}let $=!1;const X=u();if(typeof document<"u"&&X.length)for(const F of X){const re=F.enableBeforeUnload??!0;if(re===!0){$=!0;break}if(typeof re=="function"&&re()===!0){$=!0;break}}if($)return D.preventDefault(),D.returnValue=""},k=qO({getLocation:x,getLength:()=>t.history.length,pushState:(D,$)=>C("push",D,$),replaceState:(D,$)=>C("replace",D,$),back:D=>(D&&(b=!0),S=!0,t.history.back()),forward:D=>{D&&(b=!0),S=!0,t.history.forward()},go:D=>{m=!0,t.history.go(D)},createHref:D=>f(D),flush:A,destroy:()=>{t.history.pushState=i,t.history.replaceState=s,t.removeEventListener(_S,B,{capture:!0}),t.removeEventListener(yS,N)},onBlocked:()=>{g&&p!==g&&(p=g)},getBlockers:u,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(_S,B,{capture:!0}),t.addEventListener(yS,N),t.history.pushState=function(...D){const $=i.apply(t.history,D);return k._ignoreSubscribers||M("PUSH"),$},t.history.replaceState=function(...D){const $=s.apply(t.history,D);return k._ignoreSubscribers||M("REPLACE"),$},k}function GO(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function pf(e,t){const i=GO(e),s=i.indexOf("#"),o=i.indexOf("?"),u=kg();return{href:i,pathname:i.substring(0,s>0?o>0?Math.min(s,o):s:o>0?o:i.length),hash:s>-1?i.substring(s):"",search:o>-1?i.slice(o,s===-1?void 0:s):"",state:t||{[Hr]:0,key:u,__TSR_key:u}}}function kg(){return(Math.random()+1).toString(36).substring(7)}function Ua(e,t){const i=t,s=e;return{fromLocation:i,toLocation:s,pathChanged:i?.pathname!==s.pathname,hrefChanged:i?.href!==s.href,hashChanged:i?.hash!==s.hash}}var VO=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=i=>i(),this.update=i=>{const s=this.options,o=this.basepath??s?.basepath??"/",u=this.basepath===void 0,c=s?.rewrite;if(this.options={...s,...i},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=yO(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=IO()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let g;this.resolvePathCache=Ul(1e3),g=this.buildRouteTree(),this.setRoutes(g)}if(!this.stores&&this.latestLocation){const g=this.getStoreConfig(this);this.batch=g.batch,this.stores=$O(KO(this.latestLocation),g),TO(this)}let f=!1;const h=this.options.basepath??"/",p=this.options.rewrite;if(u||o!==h||c!==p){this.basepath=h;const g=[],m=pw(h);m&&m!=="/"&&g.push(NO({basepath:h})),p&&g.push(p),this.rewrite=g.length===0?void 0:g.length===1?g[0]:zO(g),this.history&&this.updateLatestLocation(),f=!0}f&&this.stores&&this.stores.location.setState(()=>this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=dO(this.routeTree,this.options.caseSensitive,(s,o)=>{s.init({originalIndex:o})});return this.options.routeMasks&&oO(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,s)=>{const o={eventType:i,fn:s};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>
3{this.subscribers.forEach(s=>{s.eventType===i.type&&s.fn(i)})},this.parseLocation=(i,s)=>{const o=({pathname:h,search:p,hash:g,href:m,state:y})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){const E=this.options.parseSearch(p),A=this.options.stringifySearch(E);return{href:h+A+g,publicHref:m,pathname:tl(h).path,external:!1,searchStr:A,search:vs(s?.search,E),hash:tl(g.slice(1)).path,state:Nr(s?.state,y)}}const b=new URL(m,this.origin),S=Kv(this.rewrite,b),x=this.options.parseSearch(S.search),T=this.options.stringifySearch(x);return S.search=T,{href:S.href.replace(S.origin,""),publicHref:m,pathname:tl(S.pathname).path,external:!!this.rewrite&&S.origin!==this.origin,searchStr:T,search:vs(s?.search,x),hash:tl(S.hash.slice(1)).path,state:Nr(s?.state,y)}},u=o(i),{__tempLocation:c,__tempKey:f}=u.state;if(c&&(!f||f===this.tempLocationKey)){const h=o(c);return h.state.key=u.state.key,h.state.__TSR_key=u.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:u}}return u},this.resolvePathWithBase=(i,s)=>mO({base:i,to:Og(s),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,s,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:s},o):this.matchRoutesInternal(i,s),this.getMatchedRoutes=i=>XO({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const s=this.getMatch(i);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingMatchesId.state.forEach(i=>{this.cancelMatch(i)}),this.stores.matchesId.state.forEach(i=>{if(this.stores.pendingMatchStoresById.has(i))return;const s=this.stores.activeMatchStoresById.get(i)?.state;s&&(s.status==="pending"||s.isFetching==="loader")&&this.cancelMatch(i)})},this.buildLocation=i=>{const s=(u={})=>{const c=u._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutesLightweight(c);u.from;const h=u.unsafeRelative==="path"?c.pathname:u.from??f.fullPath,p=this.resolvePathWithBase(h,"."),g=f.search,m=Object.assign(Object.create(null),f.params),y=u.to?this.resolvePathWithBase(p,`${u.to}`):this.resolvePathWithBase(p,"."),b=u.params===!1||u.params===null?Object.create(null):(u.params??!0)===!0?m:Object.assign(m,zr(u.params,m)),S=this.getMatchedRoutes(y);let x=S.matchedRoutes;if((!S.foundRoute||S.foundRoute.path!=="/"&&S.routeParams["**"])&&this.options.notFoundRoute&&(x=[...x,this.options.notFoundRoute]),Object.keys(b).length>0)for(const X of x){const F=X.options.params?.stringify??X.options.stringifyParams;if(F)try{Object.assign(b,F(b))}catch{}}const T=i.leaveParams?y:tl(fS({path:y,params:b,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let E=g;if(i._includeValidateSearch&&this.options.search?.strict){const X={};x.forEach(F=>{if(F.options.validateSearch)try{Object.assign(X,Pc(F.options.validateSearch,{...X,...E}))}catch{}}),E=X}E=QO({search:E,dest:u,destRoutes:x,_includeValidateSearch:i._includeValidateSearch}),E=vs(g,E);const A=this.options.stringifySearch(E),C=u.hash===!0?c.hash:u.hash?zr(u.hash,c.hash):void 0,M=C?`#${C}`:"";let N=u.state===!0?c.state:u.state?zr(u.state,c.state):{};N=Nr(c.state,N);const B=`${T}${A}${M}`;let k,D,$=!1;if(this.rewrite){const X=new URL(B,this.origin),F=vw(this.rewrite,X);k=X.href.replace(X.origin,""),F.origin!==this.origin?(D=F.href,$=!0):D=F.pathname+F.search+F.hash}else k=rO(B),D=k;return{publicHref:D,href:k,pathname:T,search:E,searchStr:A,state:N,hash:C??"",external:$,unmaskOnReload:u.unmaskOnReload}},o=(u={},c)=>{const f=s(u);let h=c?s(c):void 0;if(!h){const p=Object.create(null);if(this.options.routeMasks){const g=lO(f.pathname,this.processedTree);if(g){Object.assign(p,g.rawParams);const{from:m,params:y,...b}=g.route,S=y===!1||y===null?Object.create(null):(y??!0)===!0?p:Object.assign(p,zr(y,p));c={from:i.from,...b,params:S},h=s(c)}}}return h&&(f.maskedLocation=h),f};return i.mask?o(i,{from:i.from,...i.mask}):o(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:s,...o})=>{const u=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(g=>{o.state[g]=this.latestLocation.state[g]});const p=Os(o.state,this.latestLocation.state);return h.forEach(g=>{delete o.state[g]}),p},c=Ur(this.latestLocation.href)===Ur(o.href);let f=this.commitLocationPromise;if(this.commitLocationPromise=Va(()=>{f?.resolve(),f=void 0}),c&&u())this.load();else{let{maskedLocation:h,hashScrollIntoView:p,...g}=o;h&&(g={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),g.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[o.replace?"replace":"push"](g.publicHref,g.state,{ignoreBlocker:s})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:s,hashScrollIntoView:o,viewTransition:u,ignoreBlocker:c,href:f,...h}={})=>
3{if(f){const m=this.history.location.state.__TSR_index,y=pf(f,{__TSR_index:i?m:m+1}),b=new URL(y.pathname,this.origin);h.to=Kv(this.rewrite,b).pathname,h.search=this.options.parseSearch(y.search),h.hash=y.hash.slice(1)}const p=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const g=this.commitLocation({...p,viewTransition:u,replace:i,resetScroll:s,hashScrollIntoView:o,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),g},this.navigate=async({to:i,reloadDocument:s,href:o,publicHref:u,...c})=>{let f=!1;if(o)try{new URL(`${o}`),f=!0}catch{}if(f&&!s&&(s=!0),s){if(i!==void 0||!o){const p=this.buildLocation({to:i,...c});o=o??p.publicHref,u=u??p.publicHref}const h=!f&&u?u:o;if(ff(h,this.protocolAllowlist))return Promise.resolve();if(!c.ignoreBlocker){const p=this.history.getBlockers?.()??[];for(const g of p)if(g?.blockerFn&&await g.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return c.replace?window.location.replace(h):window.location.href=h,Promise.resolve()}return this.buildAndCommitLocation({...c,href:o,to:i,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const i=this.matchRoutes(this.latestLocation),s=this.stores.cachedMatchesSnapshot.state.filter(o=>!i.some(u=>u.id===o.id));this.batch(()=>{this.stores.status.setState(()=>"pending"),this.stores.statusCode.setState(()=>200),this.stores.isLoading.setState(()=>!0),this.stores.location.setState(()=>this.latestLocation),this.stores.setPendingMatches(i),this.stores.setCachedMatches(s)})},this.load=async i=>{let s,o,u;const c=this.stores.resolvedLocation.state??this.stores.location.state;for(u=new Promise(h=>{this.startTransition(async()=>{try{this.beforeLoad();const p=this.latestLocation,g=this.stores.resolvedLocation.state,m=Ua(p,g);this.stores.redirect.state||this.emit({type:"onBeforeNavigate",...m}),this.emit({type:"onBeforeLoad",...m}),await gS({router:this,sync:i?.sync,forceStaleReload:c.href===p.href,matches:this.stores.pendingMatchesSnapshot.state,location:p,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let y=null,b=null,S=null,x=null;this.batch(()=>{const T=this.stores.pendingMatchesSnapshot.state,E=T.length,A=this.stores.activeMatchesSnapshot.state;y=E?A.filter(N=>!this.stores.pendingMatchStoresById.has(N.id)):null;const C=new Set;for(const N of this.stores.pendingMatchStoresById.values())N.routeId&&C.add(N.routeId);const M=new Set;for(const N of this.stores.activeMatchStoresById.values())N.routeId&&M.add(N.routeId);b=E?A.filter(N=>!C.has(N.routeId)):null,S=E?T.filter(N=>!M.has(N.routeId)):null,x=E?T.filter(N=>M.has(N.routeId)):A,this.stores.isLoading.setState(()=>!1),this.stores.loadedAt.setState(()=>Date.now()),E&&(this.stores.setActiveMatches(T),this.stores.setPendingMatches([]),this.stores.setCachedMatches([...this.stores.cachedMatchesSnapshot.state,...y.filter(N=>N.status!=="error"&&N.status!=="notFound"&&N.status!=="redirected")]),this.clearExpiredCache())});for(const[T,E]of[[b,"onLeave"],[S,"onEnter"],[x,"onStay"]])if(T)for(const A of T)this.looseRoutesById[A.routeId].options[E]?.(A)})})}})}catch(p){hn(p)?(s=p,this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):nn(p)&&(o=p);const g=s?s.status:o?404:this.stores.activeMatchesSnapshot.state.some(m=>m.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.setState(()=>g),this.stores.redirect.setState(()=>s)})}this.latestLoadPromise===u&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),h()})}),this.latestLoadPromise=u,await u;this.latestLoadPromise&&u!==this.latestLoadPromise;)await this.latestLoadPromise;let f;this.hasNotFoundMatch()?f=404:this.stores.activeMatchesSnapshot.state.some(h=>h.status==="error")&&(f=500),f!==void 0&&this.stores.statusCode.setState(()=>f)},this.startViewTransition=i=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const u=this.latestLocation,c=this.stores.resolvedLocation.state,f=typeof s.types=="function"?s.types(Ua(u,c)):s.types;if(f===!1){i();return}o={update:i,types:f}}else o=i;document.startViewTransition(o)}else i()},this.updateMatch=(i,s)=>{this.startTransition(()=>
3{const o=this.stores.pendingMatchStoresById.get(i);if(o){o.setState(s);return}const u=this.stores.activeMatchStoresById.get(i);if(u){u.setState(s);return}const c=this.stores.cachedMatchStoresById.get(i);if(c){const f=s(c.state);f.status==="redirected"?this.stores.cachedMatchStoresById.delete(i)&&this.stores.cachedMatchesId.setState(h=>h.filter(p=>p!==i)):c.setState(()=>f)}})},this.getMatch=i=>this.stores.cachedMatchStoresById.get(i)?.state??this.stores.pendingMatchStoresById.get(i)?.state??this.stores.activeMatchStoresById.get(i)?.state,this.invalidate=i=>{const s=o=>i?.filter?.(o)??!0?{...o,invalid:!0,...i?.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o;return this.batch(()=>{this.stores.setActiveMatches(this.stores.activeMatchesSnapshot.state.map(s)),this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.map(s)),this.stores.setPendingMatches(this.stores.pendingMatchesSnapshot.state.map(s))}),this.shouldViewTransition=!1,this.load({sync:i?.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const s=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const o=i.options._builtLocation??this.buildLocation(i.options),u=this.getParsedLocationHref(o);i.options.href=u,i.headers.set("Location",u)}else if(s)try{const o=new URL(s);if(this.origin&&o.origin===this.origin){const u=o.pathname+o.search+o.hash;i.options.href=u,i.headers.set("Location",u)}}catch{}if(i.options.href&&!i.options._builtLocation&&ff(i.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return i.headers.get("Location")||i.headers.set("Location",i.options.href),i},this.clearCache=i=>{const s=i?.filter;s!==void 0?this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.filter(o=>!s(o))):this.stores.setCachedMatches([])},this.clearExpiredCache=()=>{const i=Date.now(),s=o=>{const u=this.looseRoutesById[o.routeId];if(!u.options.loader)return!0;const c=(o.preload?u.options.preloadGcTime??this.options.defaultPreloadGcTime:u.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:i-o.updatedAt>=c};this.clearCache({filter:s})},this.loadRouteChunk=Hl,this.preloadRoute=async i=>{const s=i._builtLocation??this.buildLocation(i);let o=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:i});const u=new Set([...this.stores.matchesId.state,...this.stores.pendingMatchesId.state]),c=new Set([...u,...this.stores.cachedMatchesId.state]),f=o.filter(h=>!c.has(h.id));if(f.length){const h=this.stores.cachedMatchesSnapshot.state;this.stores.setCachedMatches([...h,...f])}try{return o=await gS({router:this,matches:o,location:s,preload:!0,updateMatch:(h,p)=>{u.has(h)?o=o.map(g=>g.id===h?p(g):g):this.updateMatch(h,p)}}),o}catch(h){if(hn(h))return h.options.reloadDocument?void 0:await this.preloadRoute({...h.options,_fromLocation:s});nn(h)||console.error(h);return}},this.matchRoute=(i,s)=>{const o={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},u=this.buildLocation(o);if(s?.pending&&this.stores.status.state!=="pending")return!1;const c=(s?.pending===void 0?!this.stores.isLoading.state:s.pending)?this.latestLocation:this.stores.resolvedLocation.state||this.stores.location.state,f=uO(u.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,c.pathname,this.processedTree);return!f||i.params&&!Os(f.rawParams,i.params,{partial:!0})?!1:s?.includeSearch??!0?Os(c.search,u.search,{partial:!0})?f.rawParams:!1:f.rawParams},this.hasNotFoundMatch=()=>this.stores.activeMatchesSnapshot.state.some(i=>i.status==="notFound"||i.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??OO,parseSearch:e.parseSearch??AO,protocolAllowlist:e.protocolAllowlist??iO}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.state}setRoutes({routesById:e,routesByPath:t,processedTree:i}){this.routesById=e,this.routesByPath=t,this.processedTree=i;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const i=this.getMatchedRoutes(e.pathname),{foundRoute:s,routeParam
3s:o,parsedParams:u}=i;let{matchedRoutes:c}=i,f=!1;(s?s.path!=="/"&&o["**"]:Ur(e.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:f=!0);const h=f?JO(this.options.notFoundMode,c):void 0,p=new Array(c.length),g=new Map;for(const m of this.stores.activeMatchStoresById.values())m.routeId&&g.set(m.routeId,m.state);for(let m=0;m<c.length;m++){const y=c[m],b=p[m-1];let S,x,T;{const ie=b?.search??e.search,oe=b?._strictSearch??void 0;try{const ue=Pc(y.options.validateSearch,{...ie})??void 0;S={...ie,...ue},x={...oe,...ue},T=void 0}catch(ue){let j=ue;if(ue instanceof vf||(j=new vf(ue.message,{cause:ue})),t?.throwOnError)throw j;S=ie,x={},T=j}}const E=y.options.loaderDeps?.({search:S})??"",A=E?JSON.stringify(E):"",{interpolatedPath:C,usedParams:M}=fS({path:y.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),N=y.id+C+A,B=this.getMatch(N),k=g.get(y.id),D=B?._strictParams??M;let $;if(!B)try{SS(y,M,u,D)}catch(ie){if(nn(ie)||hn(ie)?$=ie:$=new YO(ie.message,{cause:ie}),t?.throwOnError)throw $}Object.assign(o,D);const X=k?"stay":"enter";let F;if(B)F={...B,cause:X,params:k?.params??o,_strictParams:D,search:vs(k?k.search:B.search,S),_strictSearch:x};else{const ie=y.options.loader||y.options.beforeLoad||y.lazyFn||_w(y)?"pending":"success";F={id:N,ssr:y.options.ssr,index:m,routeId:y.id,params:k?.params??o,_strictParams:D,pathname:C,updatedAt:Date.now(),search:k?vs(k.search,S):S,_strictSearch:x,searchError:void 0,status:ie,isFetching:!1,error:void 0,paramsError:$,__routeContext:void 0,_nonReactive:{loadPromise:Va()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:X,loaderDeps:k?Nr(k.loaderDeps,E):E,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:y.options.staticData||{},fullPath:y.fullPath}}t?.preload||(F.globalNotFound=h===y.id),F.searchError=T;const re=this.getParentContext(b);F.context={...re,...F.__routeContext,...F.__beforeLoadContext},p[m]=F}for(let m=0;m<p.length;m++){const y=p[m],b=this.looseRoutesById[y.routeId],S=this.getMatch(y.id),x=g.get(y.routeId);if(y.params=x?vs(x.params,o):o,!S){const T=p[m-1],E=this.getParentContext(T);if(b.options.context){const A={deps:y.loaderDeps,params:y.params,context:E??{},location:e,navigate:C=>this.navigate({...C,_fromLocation:e}),buildLocation:this.buildLocation,cause:y.cause,abortController:y.abortController,preload:!!y.preload,matches:p,routeId:b.id};
3y.__routeContext=b.options.context(A)??void 0}y.context={...E,...y.__routeContext,...y.__beforeLoadContext}}}return p}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:i,parsedParams:s}=this.getMatchedRoutes(e.pathname),o=Pl(t),u={...e.search};for(const g of t)try{Object.assign(u,Pc(g.options.validateSearch,u))}catch{}const c=Pl(this.stores.matchesId.state),f=c&&this.stores.activeMatchStoresById.get(c)?.state,h=f&&f.routeId===o.id&&f.pathname===e.pathname;let p;if(h)p=f.params;else{const g=Object.assign(Object.create(null),i);for(const m of t)try{SS(m,i,s??{},g)}catch{}p=g}return{matchedRoutes:t,fullPath:o.fullPath,search:u,params:p}}},vf=class extends Error{},YO=class extends Error{};function KO(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Pc(e,t){if(e==null)return{};if("~standard"in e){const i=e["~standard"].validate(t);if(i instanceof Promise)throw new vf("Async validation not supported");if(i.issues)throw new vf(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function XO({pathname:e,routesById:t,processedTree:i}){const s=Object.create(null),o=Ur(e);let u,c;const f=cO(o,i,!0);return f&&(u=f.route,Object.assign(s,f.rawParams),c=Object.assign(Object.create(null),f.parsedParams)),{matchedRoutes:f?.branch||[t.__root__],routeParams:s,foundRoute:u,parsedParams:c}}function QO({search:e,dest:t,destRoutes:i,_includeValidateSearch:s}){return ZO(i)(e,t,s??!1)}function ZO(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const o of e){if("search"in o.options)o.options.search?.middlewares&&t.middlewares.push(...o.options.search.middlewares);else if(o.options.preSearchFilters||o.options.postSearchFilters){const u=({search:c,next:f})=>{let h=c;"preSearchFilters"in o.options&&o.options.preSearchFilters&&(h=o.options.preSearchFilters.reduce((g,m)=>m(g),c));const p=f(h);return"postSearchFilters"in o.options&&o.options.postSearchFilters?o.options.postSearchFilters.reduce((g,m)=>m(g),p):p};t.middlewares.push(u)}if(o.options.validateSearch){const u=({search:c,next:f})=>{const h=f(c);if(!t._includeValidateSearch)return h;try{return{...h,...Pc(o.options.validateSearch,h)??void 0}}catch{return h}};t.middlewares.push(u)}}const i=({search:o})=>{const u=t.dest;return u.search?u.search===!0?o:zr(u.search,o):{}};t.middlewares.push(i);const s=(o,u,c)=>{if(o>=c.length)return u;const f=c[o];return f({search:u,next:p=>s(o+1,p,c)})};return function(u,c,f){return t.dest=c,t._includeValidateSearch=f,s(0,u,t.middlewares)}}function JO(e,t){if(e!=="root")for(let i=t.length-1;i>=0;i--){const s=t[i];if(s.children)return s.id}return ks}function SS(e,t,i,s){const o=e.options.params?.parse??e.options.parseParams;if(o)if(e.options.skipRouteOnParseError)for(const u in t)u in i&&(s[u]=i[u]);else{const u=o(s);Object.assign(s,u)}}var WO="Error preloading route! ☝️",bw=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const i=this.options,s=!i?.path&&!i?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=ks:this.parentRoute||Ji();let o=s?ks:i?.path;o&&o!=="/"&&(o=hw(o));const u=i?.id||o;let c=s?ks:$c([this.parentRoute.id==="__root__"?"":this.parentRoute.id,u]);o==="__root__"&&(o="/"),c!=="__root__"&&(c=$c(["/",c]));const f=c==="__root__"?"/":$c([this.parentRoute.fullPath,o]);this._path=o,this._id=c,this._fullPath=f,this._to=Ur(f)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>LO({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},ek=class extends bw{constructor(e){super(e)}};function Dg(e){const t=e.errorComponent??Lg;return ee.jsx(tk,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:i,reset:s})=>i?L.createElement(t,{error:i,reset:s}):e.children})}var tk=class extends L.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}};function Lg({error:e}){const[t,i]=L.useState(!1);return ee.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[ee.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[ee.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),ee.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(s=>!s),children:t?"Hide Error":"Show Error"})]}),ee.jsx("div",{style:{height:".25rem"}}),t?ee.jsx("div",{children:ee.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?ee.jsx("code",{children:e.message}):null})}):null]})}function nk({children:e,fallback:t=null}){return Sw()?ee.jsx(Te.Fragment,{children:e}):ee.jsx(Te.Fragment,{children:t})}function Sw(){return Te.useSyncExternalStore(ik,()=>!0,()=>!1)}function ik(){return()=>{}}var xw=L.createContext(null);function gn(e){return L.useContext(xw)}var Af=L.createContext(void 0),rk=L.createContext(void 0),yt=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(yt||{});function ww({update:e,notify:t,unwatched:i}){return{link:s,unlink:o,propagate:u,checkDirty:c,shallowPropagate:f};function s(p,g,m){const y=g.depsTail;if(y!==void 0&&y.dep===p)return;const b=y!==void 0?y.nextDep:g.deps;if(b!==void 0&&b.dep===p){b.version=m,g.depsTail=b;return}const S=p.subsTail;if(S!==void 0&&S.version===m&&S.sub===g)return;const x=g.depsTail=p.subsTail={version:m,dep:p,sub:g,prevDep:y,nextDep:b,prevSub:S,nextSub:void 0};b!==void 0&&(b.prevDep=x),y!==void 0?y.nextDep=x:g.deps=x,S!==void 0?S.nextSub=x:p.subs=x}function o(p,g=p.sub){const m=p.dep,y=p.prevDep,b=p.nextDep,S=p.nextSub,x=p.prevSub;return b!==void 0?b.prevDep=y:g.depsTail=y,y!==void 0?y.nextDep=b:g.deps=b,S!==void 0?S.prevSub=x:m.subsTail=x,x!==void 0?x.nextSub=S:(m.subs=S)===void 0&&i(m),b}function u(p){let g=p.nextSub,m;e:do{const y=p.sub;let b=y.flags;if(b&60?b&12?b&4?!(b&48)&&h(p,y)?(y.flags=b|40,b&=1):b=0:y.flags=b&-9|32:b=0:y.flags=b|32,b&2&&t(y),b&1){const S=y.subs;if(S!==void 0){const x=(p=S).nextSub;x!==void 0&&(m={value:g,prev:m},g=x);continue}}if((p=g)!==void 0){g=p.nextSub;continue}for(;m!==void 0;)if(p=m.value,m=m.prev,p!==void 0){g=p.nextSub;continue e}break}while(!0)}function c(p,g){let m,y=0,b=!1;e:do{const S=p.dep,x=S.flags;if(g.flags&16)b=!0;else if((x&17)===17){if(e(S)){const T=S.subs;T.nextSub!==void 0&&f(T),b=!0}}else if((x&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(m={value:p,prev:m}),p=S.deps,g=S,++y;continue}if(!b){const T=p.nextDep;if(T!==void 0){p=T;continue}}for(;y--;){const T=g.subs,E=T.nextSub!==void 0;if(E?(p=m.value,m=m.prev):p=T,b){if(e(g)){E&&f(T),g=p.sub;continue}b=!1}else g.flags&=-33;g=p.sub;const A=p.nextDep;if(A!==void 0){p=A;continue e}}return b}while(!0)}function f(p){do{const g=p.sub,m=g.flags;(m&48)===32&&(g.flags=m|16,(m&6)===2&&t(g))}while((p=p.nextSub)!==void 0)}function h(p,g){let m=g.depsTail;for(;m!==void 0;){if(m===p)return!0;m=m.prevDep}return!1}}let zg=0,gs=0,El=0;const Xi=[],{link:v$,unlink:Ew,propagate:g$,checkDirty:sk,shallowPropagate:m$}=ww({update(e){return e.depsTail!==void 0?uk(e):ck(e)},notify(e){let t=El,i=t;do if(Xi[t++]=e,e.flags&=-3,e=e.subs?.sub,e===void 0||!(e.flags&2))break;while(!0);for(El=t;i<--t;){const s=Xi[i];Xi[i++]=Xi[t],Xi[t]=s}},unwatched(e){e.flags&1?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Of(e)):hk.call(e)}});function ak(){return zg}function ok(){++zg}function lk(){--zg||dk()}function uk(e){e.depsTail=void 0,e.flags=5;try{const t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,Of(e)}}function ck(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function fk(e){const t=e.flags;if(t&16||t&32&&sk(e.deps,e)){e.depsTail=void 0,e.flags=6;try{e.fn()}finally{e.flags&=-5,Of(e)}}else e.flags=2}function dk(){try{for(;gs<El;){const e=Xi[gs];Xi[gs++]=void 0,fk(e)}}finally{for(;gs<El;){const e=Xi[gs];Xi[gs++]=void 0,e.flags|=10}gs=0,El=0}}function hk(){this.depsTail=void 0,this.flags=0,Of(this);const e=this.subs;e!==void 0&&Ew(e)}function Of(e){const t=e.depsTail;let i=t!==void 0?t.nextDep:e.deps;for(;i!==void 0;)i=Ew(i,e)}function Ng(e,t,i){const s=typeof e=="object",o=s?e:void 0;return{next:(s?e.next:e)?.bind(o),error:(s?e.error:t)?.bind(o),c
3omplete:(s?e.complete:i)?.bind(o)}}const Qv=[];let Bc=0;const{link:xS,unlink:pk,propagate:vk,checkDirty:Tw,shallowPropagate:wS}=ww({update(e){return e._update()},notify(e){Qv[Zv++]=e,e.flags&=~yt.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=yt.Mutable|yt.Dirty,gf(e))}});let wc=0,Zv=0,ui;function gf(e){const t=e.depsTail;let i=t!==void 0?t.nextDep:e.deps;for(;i!==void 0;)i=pk(i,e)}function Rw(){if(!(ak()>0)){for(;wc<Zv;){const e=Qv[wc];Qv[wc++]=void 0,e.notify()}wc=0,Zv=0}}function Cw(e,t){const i=typeof e=="function",s=e,o={_snapshot:i?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?yt.None:yt.Mutable,get(){return ui!==void 0&&xS(o,ui,Bc),o._snapshot},subscribe(u){const c=Ng(u),f={current:!1},h=gk(()=>{o.get(),f.current?c.next?.(o._snapshot):f.current=!0});return{unsubscribe:()=>{h.stop()}}},_update(u){const c=ui,f=Object.is;if(i)ui=o,++Bc,o.depsTail=void 0;else if(u===void 0)return!1;i&&(o.flags=yt.Mutable|yt.RecursedCheck);try{const h=o._snapshot,p=typeof u=="function"?u(h):u===void 0&&i?s(h):u;return h===void 0||!f(h,p)?(o._snapshot=p,!0):!1}finally{ui=c,i&&(o.flags&=~yt.RecursedCheck),gf(o)}}};return i?(o.flags=yt.Mutable|yt.Dirty,o.get=function(){const u=o.flags;if(u&yt.Dirty||u&yt.Pending&&Tw(o.deps,o)){if(o._update()){const c=o.subs;c!==void 0&&wS(c)}}else u&yt.Pending&&(o.flags=u&~yt.Pending);return ui!==void 0&&xS(o,ui,Bc),o._snapshot}):o.set=function(u){if(o._update(u)){const c=o.subs;c!==void 0&&(vk(c),wS(c),Rw())}},o}function gk(e){const t=()=>{const s=ui;ui=i,++Bc,i.depsTail=void 0,i.flags=yt.Watching|yt.RecursedCheck;try{return e()}finally{ui=s,i.flags&=~yt.RecursedCheck,gf(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:yt.Watching|yt.RecursedCheck,notify(){const s=this.flags;s&yt.Dirty||s&yt.Pending&&Tw(this.deps,this)?t():this.flags=yt.Watching},stop(){this.flags=yt.None,this.depsTail=void 0,gf(this)}};return t(),i}class mk{constructor(t){this.atom=Cw(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(Ng(t))}}class yk{constructor(t){this.atom=Cw(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(Ng(t))}}function ES(e){return typeof e=="function"?new yk(e):new mk(e)}function Mw(e){try{ok(),e()}finally{lk(),Rw()}}var Pp={exports:{}},Bp={},Up={exports:{}},Hp={};var TS;function _k(){if(TS)return Hp;TS=1;var e=Ya();function t(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var i=typeof Object.is=="function"?Object.is:t,s=e.useState,o=e.useEffect,u=e.useLayoutEffect,c=e.useDebugValue;function f(m,y){var b=y(),S=s({inst:{value:b,getSnapshot:y}}),x=S[0].inst,T=S[1];return u(function(){x.value=b,x.getSnapshot=y,h(x)&&T({inst:x})},[m,b,y]),o(function(){return h(x)&&T({inst:x}),m(function(){h(x)&&T({inst:x})})},[m]),c(b),b}function h(m){var y=m.getSnapshot;m=m.value;try{var b=y();return!i(m,b)}catch{return!0}}function p(m,y){return y()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return Hp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,Hp}var RS;function bk(){return RS||(RS=1,Up.exports=_k()),Up.exports}var CS;function Sk(){if(CS)return Bp;CS=1;var e=Ya(),t=bk();function i(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var s=typeof Object.is=="function"?Object.is:i,o=t.useSyncExternalStore,u=e.useRef,c=e.useEffect,f=e.useMemo,h=e.useDebugValue;return Bp.useSyncExternalStoreWithSelector=function(p,g,m,y,b){var S=u(null);if(S.current===null){var x={hasValue:!1,value:null};S.current=x}else x=S.current;S=f(function(){function E(B){if(!A){if(A=!0,C=B,B=y(B),b!==void 0&&x.hasValue){var k=x.value;if(b(k,B))return M=k}return M=B}if(k=M,s(C,B))return k;var D=y(B);return b!==void 0&&b(k,D)?(C=B,k):(C=B,M=D)}var A=!1,C,M,N=m===void 0?null:m;return[function(){return E(g())},N===null?void 0:function(){return E(N())}]},[g,m,y,b]);var T=o(p,S[0],S[1]);return c(function(){x.hasValue=!0,x.value=T},[T]),h(T),T},Bp}var MS;function xk(){return MS||(MS=1,Pp.exports=Sk()),Pp.exports}var wk=xk();function Ek(e,t){return e===t}function vn(e,t,i=Ek){const s=L.useCallback(c=>{if(!e)return()=>{};const{unsubscribe:f}=e.subscribe(c);return f},[e]),o=L.useCallback(()=>e?.get(),[e]);return wk.useSyncExternalStoreWithSelector(s,o,o,t,i)}var Tk={state:void 0,get:()=>{},subscribe:()=>()=>{}};function Ir(e){const t=gn(),i=L.useContext(e.from?rk:Af),s=e.from??i,o=s?e.from?t.stores.getMatchStoreByRouteId(s):t.stores.activeMatchStoresById.get(s):void 0,u=L.useRef(void 0);return vn(o??Tk,c=>{if((e.shouldThrow??!0)&&!c&&Ji(),c===void 0)return;const f=e.select?e.select(c):c;if(e.structuralSharing??t.options.defaultStructuralSharing){const h=Nr(u.current,f);return u.current=h,h}return f})}function $g(e){return Ir({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function jg(e){const{select:t,...i}=e;return Ir({...i,select:s=>t?t(s.loaderDeps):s.loaderDeps})}function Pg(e){return Ir({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const i=e.strict===!1?t.params:t._strictParams;return e.select?e.select(i):i}})}function Bg(e){return Ir({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Ug(e){const t=gn();return L.useCallback(i=>t.navigate({...i,from:i.from??e?.from}),[e?.from,t])}function Hg(e){return Ir({...e,select:t=>e.select?e.select(t.context):t.context})}var Fp={exports:{}},Kt={};var AS;function Rk(){if(AS)return Kt;AS=1;var e=Ya();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(h,p,g){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:h,containerInfo:p,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Kt.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return u(h,p,null,g)},Kt.flushSync=function(h){var p=c.T,g=s.p;try{if(c.T=null,s.p=2,h)return h()}finally{c.T=p,s.p=g,s.d.f()}},Kt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,
3s.d.C(h,p))},Kt.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},Kt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,m=f(g,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?s.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:m,integrity:y,fetchPriority:b}):g==="script"&&s.d.X(h,{crossOrigin:m,integrity:y,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Kt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=f(p.as,p.crossOrigin);s.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(h)},Kt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,m=f(g,p.crossOrigin);s.d.L(h,g,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Kt.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=f(p.as,p.crossOrigin);s.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(h)},Kt.requestFormReset=function(h){s.d.r(h)},Kt.unstable_batchedUpdates=function(h,p){return h(p)},Kt.useFormState=function(h,p,g){return c.H.useFormState(h,p,g)},Kt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Kt.version="19.2.4",Kt}var OS;function Aw(){if(OS)return Fp.exports;OS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Fp.exports=Rk(),Fp.exports}var Ow=Aw();function Ck(e,t){const i=gn(),s=QA(t),{activeProps:o,inactiveProps:u,activeOptions:c,to:f,preload:h,preloadDelay:p,hashScrollIntoView:g,replace:m,startTransition:y,resetScroll:b,viewTransition:S,children:x,target:T,disabled:E,style:A,className:C,onClick:M,onBlur:N,onFocus:B,onMouseEnter:k,onMouseLeave:D,onTouchStart:$,ignoreBlocker:X,params:F,search:re,hash:ie,state:oe,mask:ue,reloadDocument:j,unsafeRelative:Y,from:se,_fromLocation:pe,...W}=e,R=Sw(),I=L.useMemo(()=>e,[i,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),K=vn(i.stores.location,$e=>$e,($e,Yt)=>$e.href===Yt.href),ne=L.useMemo(()=>{const $e={_fromLocation:K,...I};return i.buildLocation($e)},[i,K,I]),ce=ne.maskedLocation?ne.maskedLocation.publicHref:ne.publicHref,le=ne.maskedLocation?ne.maskedLocation.external:ne.external,ge=L.useMemo(()=>Lk(ce,le,i.history,E),[E,le,ce,i.history]),_e=L.useMemo(()=>{if(ge?.external)return ff(ge.href,i.protocolAllowlist)?void 0:ge.href;if(!zk(f)&&!(typeof f!="string"||f.indexOf(":")===-1))try{return new URL(f),ff(f,i.protocolAllowlist)?void 0:f}catch{}},[f,ge,i.protocolAllowlist]),ve=L.useMemo(()=>{if(_e)return!1;if(c?.exact){if(!gO(K.pathname,ne.pathname,i.basepath))return!1}else{const $e=df(K.pathname,i.basepath),Yt=df(ne.pathname,i.basepath);if(!($e.startsWith(Yt)&&($e.length===Yt.length||$e[Yt.length]==="/")))return!1}return(c?.includeSearch??!0)&&!Os(K.search,ne.search,{partial:!c?.exact,ignoreUndefined:!c?.explicitUndefined})?!1:c?.includeHash?R&&K.hash===ne.hash:!0},[c?.exact,c?.explicitUndefined,c?.includeHash,c?.includeSearch,K,_e,R,ne.hash,ne.pathname,ne.search,i.basepath]),st=ve?zr(o,{})??Mk:qp,pt=ve?qp:zr(u,{})??qp,at=[C,st.className,pt.className].filter(Boolean).join(" "),Nt=(A||st.style||pt.style)&&{...A,...st.style,...pt.style},[ot,Zt]=L.useState(!1),vt=L.useRef(!1),yn=e.reloadDocument||_e?!1:h??i.options.defaultPreload,Vn=p??i.options.defaultPreloadDelay??0,Tt=L.useCallback(()=>{i.preloadRoute({...I,_builtLocation:ne}).catch($e=>{console.warn($e),console.warn(WO)})},[i,I,ne]);XA(s,L.useCallback($e=>{$e?.isIntersecting&&Tt()},[Tt]),Dk,{disabled:!!E||yn!=="viewport"}),L.useEffect(()=>{vt.current||!E&&yn==="render"&&(Tt(),vt.current=!0)},[E,Tt,yn]);const Yn=$e=>{const Yt=$e.currentTarget.getAttribute("target"),ti=T!==void 0?T:Yt;if(!E&&!Nk($e)&&!$e.defaultPrevented&&(!ti||ti==="_self")&&$e.button===0){$e.preventDefault(),Ow.flushSync(()=>{Zt(!0)});const Yl=i.subscribe("onResolved",()=>{Yl(),Zt(!1)});i.navigate({...I,replace:m,resetScroll:b,hashScrollIntoView:g,startTransition:y,viewTransition:S,ignoreBlocker:X})}};if(_e)return{...W,ref:s,href:_e,...x&&{children:x},...T&&{target:T},...E&&{disabled:E},...A&&{style:A},...C&&{className:C},...M&&{onClick:M},...N&&{onBlur:N},...B&&{onFocus:B},...k&&{onMouseEnter:k},...D&&{onMouseLeave:D},...$&&{onTouchStart:$}};const _i=$e=>{if(E||yn!=="intent")return;if(!Vn){Tt();return}const Yt=$e.currentTarget;if(rl.has(Yt))return;const ti=setTimeout(()=>{rl.delete(Yt),Tt()},Vn);rl.set(Yt,ti)},Ps=$e=>{E||yn!=="intent"||Tt()},ir=$e=>{if(E||!yn||!Vn)return;const Yt=$e.currentTarget,ti=rl.get(Yt);ti&&(clearTimeout(ti),rl.delete(Yt))};return{...W,...st,...pt,href:ge?.href,ref:s,onClick:Aa([M,Yn]),onBlur:Aa([N,ir]),onFocus:Aa([B,_i]),onMouseEnter:Aa([
3k,_i]),onMouseLeave:Aa([D,ir]),onTouchStart:Aa([$,Ps]),disabled:!!E,target:T,...Nt&&{style:Nt},...at&&{className:at},...E&&Ak,...ve&&Ok,...R&&ot&&kk}}var qp={},Mk={className:"active"},Ak={role:"link","aria-disabled":!0},Ok={"data-status":"active","aria-current":"page"},kk={"data-transitioning":"transitioning"},rl=new WeakMap,Dk={rootMargin:"100px"},Aa=e=>t=>{for(const i of e)if(i){if(t.defaultPrevented)return;i(t)}};function Lk(e,t,i,s){if(!s)return t?{href:e,external:!0}:{href:i.createHref(e)||"/",external:!1}}function zk(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var kw=L.forwardRef((e,t)=>{const{_asChild:i,...s}=e,{type:o,...u}=Ck(s,t),c=typeof s.children=="function"?s.children({isActive:u["data-status"]==="active"}):s.children;if(!i){const{disabled:f,...h}=u;return L.createElement("a",h,c)}return L.createElement(i,u,c)});function Nk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var $k=class extends bw{constructor(t){super(t),this.useMatch=i=>Ir({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>Hg({...i,from:this.id}),this.useSearch=i=>Bg({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Pg({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>jg({...i,from:this.id}),this.useLoaderData=i=>$g({...i,from:this.id}),this.useNavigate=()=>Ug({from:this.fullPath}),this.Link=Te.forwardRef((i,s)=>ee.jsx(kw,{ref:s,from:this.fullPath,...i}))}};function jk(e){return new $k(e)}var Pk=class extends ek{constructor(e){super(e),this.useMatch=t=>Ir({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Hg({...t,from:this.id}),this.useSearch=t=>Bg({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Pg({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>jg({...t,from:this.id}),this.useLoaderData=t=>$g({...t,from:this.id}),this.useNavigate=()=>Ug({from:this.fullPath}),this.Link=Te.forwardRef((t,i)=>ee.jsx(kw,{ref:i,from:this.fullPath,...t}))}};function Bk(e){return new Pk(e)}function Ns(e){return typeof e=="object"?new kS(e,{silent:!0}).createRoute(e):new kS(e,{silent:!0}).createRoute}var kS=class{constructor(e,t){this.path=e,this.createRoute=i=>{const s=jk(i);return s.isRoot=!1,s},this.silent=t?.silent}},DS=class{constructor(e){this.useMatch=t=>Ir({select:t?.select,from:this.options.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Hg({...t,from:this.options.id}),this.useSearch=t=>Bg({select:t?.select,structuralSharing:t?.structuralSharing,from:this.options.id}),this.useParams=t=>Pg({select:t?.select,structuralSharing:t?.structuralSharing,from:this.options.id}),this.useLoaderDeps=t=>jg({...t,from:this.options.id}),this.useLoaderData=t=>$g({...t,from:this.options.id}),this.useNavigate=()=>Ug({from:gn().routesById[this.options.id].fullPath}),this.options=e}};function LS(e){return typeof e=="object"?new DS(e):t=>new DS({id:e,...t})}function Fl(e,t){let i,s,o,u;const c=()=>(i||(i=e().then(h=>{i=void 0,s=h[t]}).catch(h=>{if(o=h,tO(o)&&o instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const p=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(p)||(sessionStorage.setItem(p,"1"),u=!0)}})),i),f=function(p){if(u)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!s)if(sS)sS(c());else throw c();return L.createElement(s,p)};return f.preload=c,f}function Uk(e){const t=gn(),i=`not-found-${vn(t.stores.location,s=>s.pathname)}-${vn(t.stores.status,s=>s)}`;return ee.jsx(Dg,{getResetKey:()=>i,onCatch:(s,o)=>{if(nn(s))e.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(nn(s))return e.fallback?.(s);throw s},children:e.children})}function Hk(){return ee.jsx("p",{children:"Not Found"})}function La(e){return ee.jsx(ee.Fragment,{children:e.children})}function Dw(e,t,i){return t.options.notFoundComponent?ee.jsx(t.options.notFoundComponent,{...i}):e.options.defaultNotFoundComponent?ee.jsx(e.options.defaultNotFoundComponent,{...i}):ee.jsx(Hk,{})}function Fk(){return gn().isScrollRestoring,null}
3var Lw=L.memo(function({matchId:t}){const i=gn(),s=i.stores.activeMatchStoresById.get(t);s||Ji();const o=vn(i.stores.loadedAt,c=>c),u=vn(s,c=>c);return ee.jsx(qk,{router:i,matchId:t,resetKey:o,matchState:L.useMemo(()=>{const c=u.routeId,f=i.routesById[c].parentRoute?.id;return{routeId:c,ssr:u.ssr,_displayPending:u._displayPending,parentRouteId:f}},[u._displayPending,u.routeId,u.ssr,i.routesById])})});function qk({router:e,matchId:t,resetKey:i,matchState:s}){const o=e.routesById[s.routeId],u=o.options.pendingComponent??e.options.defaultPendingComponent,c=u?ee.jsx(u,{}):null,f=o.options.errorComponent??e.options.defaultErrorComponent,h=o.options.onCatch??e.options.defaultOnCatch,p=o.isRoot?o.options.notFoundComponent??e.options.notFoundRoute?.options.component:o.options.notFoundComponent,g=s.ssr===!1||s.ssr==="data-only",m=(!o.isRoot||o.options.wrapInSuspense||g)&&(o.options.wrapInSuspense??u??(o.options.errorComponent?.preload||g))?L.Suspense:La,y=f?Dg:La,b=p?Uk:La;return ee.jsxs(o.isRoot?o.options.shellComponent??La:La,{children:[ee.jsx(Af.Provider,{value:t,children:ee.jsx(m,{fallback:c,children:ee.jsx(y,{getResetKey:()=>i,errorComponent:f||Lg,onCatch:(S,x)=>{if(nn(S))throw S;h?.(S,x)},children:ee.jsx(b,{fallback:S=>
3{if(!p||S.routeId&&S.routeId!==s.routeId||!S.routeId&&!o.isRoot)throw S;return L.createElement(p,S)},children:g||s._displayPending?ee.jsx(nk,{fallback:c,children:ee.jsx(zS,{matchId:t})}):ee.jsx(zS,{matchId:t})})})})}),s.parentRouteId===ks&&e.options.scrollRestoration?ee.jsxs(ee.Fragment,{children:[ee.jsx(Ik,{}),ee.jsx(Fk,{})]}):null]})}function Ik(){const e=gn(),t=L.useRef(void 0);return ee.jsx("script",{suppressHydrationWarning:!0,ref:i=>{i&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Ua(e.stores.location.state,e.stores.resolvedLocation.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}var zS=L.memo(function({matchId:t}){const i=gn(),s=i.stores.activeMatchStoresById.get(t);s||Ji();const o=vn(s,p=>p),u=o.routeId,c=i.routesById[u],f=L.useMemo(()=>{const p=(i.routesById[u].options.remountDeps??i.options.defaultRemountDeps)?.({routeId:u,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return p?JSON.stringify(p):void 0},[u,o.loaderDeps,o._strictParams,o._strictSearch,i.options.defaultRemountDeps,i.routesById]),h=L.useMemo(()=>{const p=c.options.component??i.options.defaultComponent;return p?ee.jsx(p,{},f):ee.jsx(zw,{})},[f,c.options.component,i.options.defaultComponent]);if(o._displayPending)throw i.getMatch(o.id)?._nonReactive.displayPendingPromise;if(o._forcePending)throw i.getMatch(o.id)?._nonReactive.minPendingPromise;if(o.status==="pending"){const p=c.options.pendingMinMs??i.options.defaultPendingMinMs;if(p){const g=i.getMatch(o.id);if(g&&!g._nonReactive.minPendingPromise){const m=Va();g._nonReactive.minPendingPromise=m,setTimeout(()=>{m.resolve(),g._nonReactive.minPendingPromise=void 0},p)}}throw i.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return nn(o.error)||Ji(),Dw(i,c,o.error);if(o.status==="redirected")throw hn(o.error)||Ji(),i.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error")throw o.error;return h}),zw=L.memo(function(){const t=gn(),i=L.useContext(Af);let s,o=!1,u;{const p=i?t.stores.activeMatchStoresById.get(i):void 0;[s,o]=vn(p,g=>[g?.routeId,g?.globalNotFound??!1]),u=vn(t.stores.matchesId,g=>g[g.findIndex(m=>m===i)+1])}const c=s?t.routesById[s]:void 0,f=t.options.defaultPendingComponent?ee.jsx(t.options.defaultPendingComponent,{}):null;if(o)return c||Ji(),Dw(t,c,void 0);if(!u)return null;const h=ee.jsx(Lw,{matchId:u});return s===ks?ee.jsx(L.Suspense,{fallback:f,children:h}):h});function Gk(){const e=gn(),t=L.useRef({router:e,mounted:!1}),[i,s]=L.useState(!1),o=vn(e.stores.isLoading,m=>m),u=vn(e.stores.hasPendingMatches,m=>m),c=Op(o),f=o||i||u,h=Op(f),p=o||u,g=Op(p);return e.startTransition=m=>{s(!0),L.startTransition(()=>{m(),s(!1)})},L.useEffect(()=>{const m=e.history.subscribe(e.load),y=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Ur(e.latestLocation.publicHref)!==Ur(y.publicHref)&&e.commitLocation({...y,replace:!0}),()=>{m()}},[e,e.history]),Sc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(y){console.error(y)}})()},[e]),Sc(()=>{c&&!o&&e.emit({type:"onLoad",...Ua(e.stores.location.state,e.stores.resolvedLocation.state)})},[c,e,o]),Sc(()=>{g&&!p&&e.emit({type:"onBeforeRouteMount",...Ua(e.stores.location.state,e.stores.resolvedLocation.state)})},[p,g,e]),Sc(()=>{if(h&&!f){const m=Ua(e.stores.location.state,e.stores.resolvedLocation.state);e.emit({type:"onResolved",...m}),Mw(()=>{e.stores.status.setState(()=>"idle"),e.stores.resolvedLocation.setState(()=>e.stores.location.state)}),m.hrefChanged&&RO(e)}},[f,h,e]),null}function Vk(){const e=gn(),t=e.routesById[ks].options.pendingComponent??e.options.defaultPendingComponent,i=t?ee.jsx(t,{}):null,s=ee.jsxs(typeof document<"u"&&e.ssr?La:L.Suspense,{fallback:i,children:[ee.jsx(Gk,{}),ee.jsx(Yk,{})]});return e.options.InnerWrap?ee.jsx(e.options.InnerWrap,{children:s}):s}function Yk(){const e=gn(),t=vn(e.stores.firstMatchId,o=>o),i=vn(e.stores.loadedAt,o=>o),s=t?ee.jsx(Lw,{matchId:t}):null;return ee.jsx(Af.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?s:ee.jsx(Dg,{getResetKey:()=>i,errorComponent:Lg,onCatch:void 0,children:s})})}var Kk=e=>({createMutableStore:ES,createReadonlyStore:ES,batch:Mw}),Xk=e=>new Qk(e),Qk=class extends VO{constructor(e){super(e,Kk)}};typeof globalThis<"u"?(globalThis.createFileRoute=Ns,globalThis.createLazyFileRoute=LS):typeof window<"u"&&(window.createFileRoute=Ns,window.createLazyFileRoute=LS);function Zk({router:e,children:t,...i}){Object.keys(i).length>0&&e.update({...e.options,...i,context:{...e.options.context,...i.context}});const s=ee.jsx(xw.Provider,{value:e,children:t});return e.options.Wrap?ee.jsx(e.options.Wrap,{children:s}):s}function Jk({router:e,...t}){return ee.jsx(Zk,{router:e,...t,children:ee.jsx(Vk,{})})}function Wk(e){const t=gn({warn:e?.router===void 0}),i=e?.router||t,s=L.useRef(void 0);return vn(i.stores.__store,o=>{if(e?.select){if(e.structuralSharing??i.options.defaultStructuralSharing){const u=Nr(s.current,e.
3select(o));return s.current=u,u}return e.select(o)}return o})}var Nw;function eD(e){Nw=e}function Jv(){return Nw}var Fg=L.createContext({get client(){return Jv()},bootstrap:void 0});function $w(e,t,i){if(i===void 0&&(i=new WeakMap),e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(i.has(e)&&i.get(e)===t)return!0;i.set(e,t);var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(var u=0,c=s;u<c.length;u++){var f=c[u];if(!o.includes(f)||!$w(e[f],t[f],i))return!1}return!0}function tD(e){var t,i,s=e.children,o=e.client,u=e.apiKey,c=e.options,f=L.useRef(null),h=L.useMemo(function(){if(o)return u&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),c&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),o;var p=Jv();return u||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),p},[o,u,JSON.stringify(c)]);return L.useEffect(function(){if(!(o||!u)){var p=Jv(),g=f.current;g?(u!==g.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),c&&!$w(c,g.options)&&p.set_config(c),f.current={apiKey:u,options:c??{}}):(p.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),p.init(u,c),f.current={apiKey:u,options:c??{}})}},[o,u,JSON.stringify(c)]),Te.createElement(Fg.Provider,{value:{client:h,bootstrap:(t=c?.bootstrap)!==null&&t!==void 0?t:(i=o?.config)===null||i===void 0?void 0:i.bootstrap}},s)}var Ip=function(e){return typeof e=="function"},jw=function(){var e=L.useContext(Fg).client;return e},Wv=function(e,t){return Wv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i[o]=s[o])},Wv(e,t)};function nD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wv(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}var iD={componentStack:null,exceptionEvent:null,error:null},rD={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};(function(e){nD(t,e);function t(i){var s=e.call(this,i)||this;return s.state=iD,s}return t.prototype.componentDidCatch=function(i,s){var o=this.props.additionalProperties,u;Ip(o)?u=o(i):typeof o=="object"&&(u=o);var c=this.context.client,f=c.captureException(i,u),h=s.componentStack;this.setState({error:i,componentStack:h??null,exceptionEvent:f})},t.prototype.render=function(){var i=this.props,s=i.children,o=i.fallback,u=this.state;if(u.componentStack==null)return Ip(s)?s():s;var c=Ip(o)?Te.createElement(o,{error:u.error,componentStack:u.componentStack,exceptionEvent:u.exceptionEvent}):o;return Te.isValidElement(c)?c:(console.warn(rD.INVALID_FALLBACK),Te.createElement(Te.Fragment,null))},t.contextType=Fg,t})(Te.Component);eD(zs);var Gp={exports:{}},sl={},Vp={exports:{}},Yp={};var NS;function sD(){return NS||(NS=1,(function(e){function t(j,Y){var se=j.length;j.push(Y);e:for(;0<se;){var pe=se-1>>>1,W=j[pe];if(0<o(W,Y))j[pe]=Y,j[se]=W,se=pe;else break e}}function i(j){return j.length===0?null:j[0]}function s(j){if(j.length===0)return null;var Y=j[0],se=j.pop();if(se!==Y){j[0]=se;e:for(var pe=0,W=j.length,R=W>>>1;pe<R;){var I=2*(pe+1)-1,K=j[I],ne=I+1,ce=j[ne];if(0>o(K,se))ne<W&&0>o(ce,K)?(j[pe]=ce,j[ne]=se,pe=ne):(j[pe]=K,j[I]=se,pe=I);else if(ne<W&&0>o(ce,se))j[pe]=ce,j[ne]=se,pe=ne;else break e}}return Y}function o(j,Y){var se=j.sortIndex-Y.sortIndex;return se!==0?se:j.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],p=[],g=1,m=null,y=3,b=!1,S=!1,x=!1,T=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;
vendor: 6,083 bytes, line 3
3function M(j){for(var Y=i(p);Y!==null;){if(Y.callback===null)s(p);else if(Y.startTime<=j)s(p),Y.sortIndex=Y.expirationTime,t(h,Y);else break;Y=i(p)}}function N(j){if(x=!1,M(j),!S)if(i(h)!==null)S=!0,B||(B=!0,re());else{var Y=i(p);Y!==null&&ue(N,Y.startTime-j)}}var B=!1,k=-1,D=5,$=-1;function X(){return T?!0:!(e.unstable_now()-$<D)}function F(){if(T=!1,B){var j=e.unstable_now();$=j;var Y=!0;try{e:{S=!1,x&&(x=!1,A(k),k=-1),b=!0;var se=y;try{t:{for(M(j),m=i(h);m!==null&&!(m.expirationTime>j&&X());){var pe=m.callback;if(typeof pe=="function"){m.callback=null,y=m.priorityLevel;var W=pe(m.expirationTime<=j);if(j=e.unstable_now(),typeof W=="function"){m.callback=W,M(j),Y=!0;break t}m===i(h)&&s(h),M(j)}else s(h);m=i(h)}if(m!==null)Y=!0;else{var R=i(p);R!==null&&ue(N,R.startTime-j),Y=!1}}break e}finally{m=null,y=se,b=!1}Y=void 0}}finally{Y?re():B=!1}}}var re;if(typeof C=="function")re=function(){C(F)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,oe=ie.port2;ie.port1.onmessage=F,re=function(){oe.postMessage(null)}}else re=function(){E(F,0)};function ue(j,Y){k=E(function(){j(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(j){switch(y){case 1:case 2:case 3:var Y=3;break;default:Y=y}var se=y;y=Y;try{return j()}finally{y=se}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var se=y;y=j;try{return Y()}finally{y=se}},e.unstable_scheduleCallback=function(j,Y,se){var pe=e.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?pe+se:pe):se=pe,j){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=se+W,j={id:g++,callback:Y,priorityLevel:j,startTime:se,expirationTime:W,sortIndex:-1},se>pe?(j.sortIndex=se,t(p,j),i(h)===null&&j===i(p)&&(x?(A(k),k=-1):x=!0,ue(N,se-pe))):(j.sortIndex=W,t(h,j),S||b||(S=!0,B||(B=!0,re()))),j},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(j){var Y=y;return function(){var se=y;y=Y;try{return j.apply(this,arguments)}finally{y=se}}}})(Yp)),Yp}var $S;function aD(){return $S||($S=1,Vp.exports=sD()),Vp.exports}var jS;function oD(){if(jS)return sl;jS=1;var e=aD(),t=Ya(),i=Aw();function s(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function u(n){var r=n,a=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(a=r.return),n=r.return;while(n)}return r.tag===3?a:null}function c(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function h(n){if(u(n)!==n)throw Error(s(188))}function p(n){var r=n.alternate;if(!r){if(r=u(n),r===null)throw Error(s(188));return r!==n?null:n}for(var a=n,l=r;;){var d=a.return;if(d===null)break;var v=d.alternate;if(v===null){if(l=d.return,l!==null){a=l;continue}break}if(d.child===v.child){for(v=d.child;v;){if(v===a)return h(d),n;if(v===l)return h(d),r;v=v.sibling}throw Error(s(188))}if(a.return!==l.return)a=d,l=v;else{for(var _=!1,w=d.child;w;){if(w===a){_=!0,a=d,l=v;break}if(w===l){_=!0,l=d,a=v;break}w=w.sibling}if(!_){for(w=v.child;w;){if(w===a){_=!0,a=v,l=d;break}if(w===l){_=!0,l=v,a=d;break}w=w.sibling}if(!_)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?n:r}function g(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=g(n),r!==null)return r;n=n.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),C=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function re(n){return n===null||typeof n!="object"?null:(n=F&&n[F]||n["@@iterator"],typeof n=="function"?n:null)}var ie=Symbol.for("react.client.reference");function oe(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ie?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case x:return"Fragment";case E:return"Profiler";case T:return"StrictMode";case N:return"Suspense";case B:return"SuspenseList";case $:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case C:return n.displayName||"Context";case A:return(n._context.displayName||"Context")+".Consumer";case M:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case k:return r=n.displayName||null,r!==null?r:oe(n.type)||"Memo";case D:r=n._payload,n=n._init;try{return oe(n(r))}catch{}}return null}var ue=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pen
vendor: 4,201 bytes, lines 3-10
3ding:!1,data:null,method:null,action:null},pe=[],W=-1;function R(n){return{current:n}}function I(n){0>W||(n.current=pe[W],pe[W]=null,W--)}function K(n,r){W++,pe[W]=n.current,n.current=r}var ne=R(null),ce=R(null),le=R(null),ge=R(null);function _e(n,r){switch(K(le,r),K(ce,n),K(ne,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?m0(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=m0(r),n=y0(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}I(ne),K(ne,n)}function ve(){I(ne),I(ce),I(le)}function st(n){n.memoizedState!==null&&K(ge,n);var r=ne.current,a=y0(r,n.type);r!==a&&(K(ce,n),K(ne,a))}function pt(n){ce.current===n&&(I(ne),I(ce)),ge.current===n&&(I(ge),Uo._currentValue=se)}var at,Nt;function ot(n){if(at===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);at=r&&r[1]||"",Nt=-1<a.stack.indexOf(`
4    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
5`+at+n+Nt}var Zt=!1;function vt(n,r){if(!n||Zt)return"";Zt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(r){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(V){var q=V}Reflect.construct(n,[],J)}else{try{J.call()}catch(V){q=V}n.call(J.prototype)}}else{try{throw Error()}catch(V){q=V}(J=n())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(V){if(V&&q&&typeof V.stack=="string")return[V.stack,q.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=l.DetermineComponentFrameRoot(),_=v[0],w=v[1];if(_&&w){var O=_.split(`
6`),H=w.split(`
7`);for(d=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;d<H.length&&!H[d].includes("DetermineComponentFrameRoot");)d++;if(l===O.length||d===H.length)for(l=O.length-1,d=H.length-1;1<=l&&0<=d&&O[l]!==H[d];)d--;for(;1<=l&&0<=d;l--,d--)if(O[l]!==H[d]){if(l!==1||d!==1)do if(l--,d--,0>d||O[l]!==H[d]){var Q=`
8`+O[l].replace(" at new "," at ");return n.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",n.displayName)),Q}while(1<=l&&0<=d);break}}}finally{Zt=!1,Error.prepareStackTrace=a}return(a=n?n.displayName||n.name:"")?ot(a):""}function yn(n,r){switch(n.tag){case 26:case 27:case 5:return ot(n.type);case 16:return ot("Lazy");case 13:return n.child!==r&&r!==null?ot("Suspense Fallback"):ot("Suspense");case 19:return ot("SuspenseList");case 0:case 15:return vt(n.type,!1);case 11:return vt(n.type.render,!1);case 1:return vt(n.type,!0);case 31:return ot("Activity");default:return""}}function Vn(n){try{var r="",a=null;do r+=yn(n,a),a=n,n=n.return;while(n);return r}catch(l){return`
9Error generating stack: `+l.message+`
10`+l.stack}}var Tt=Object.prototype.hasOwnProperty,Yn=e.unstable_scheduleCallback,_i=e.unstable_cancelCallback,Ps=e.unstable_shouldYield,ir=e.unstable_requestPaint,$e=e.unstable_now,Yt=e.unstable_getCurrentPriorityLevel,ti=e.unstable_ImmediatePriority,Yl=e.unstable_UserBlockingPriority,Kl=e.unstable_NormalPriority,$E=e.unstable_LowPriority,Zg=e.unstable_IdlePriority,jE=e.log,PE=e.unstable_setDisableYieldValue,Za=null,_n=null;function rr(n){if(typeof jE=="function"&&PE(n),_n&&typeof _n.setStrictMode=="function")try{_n.setStrictMode(Za,n)}catch{}}var bn=Math.clz32?Math.clz32:HE,BE=Math.log,UE=Math.LN2;function HE(n){return n>>>=0,n===0?32:31-(BE(n)/UE|0)|0}var Xl=256,Ql=262144,Zl=4194304;function Vr(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;
vendor: 4,211 bytes, line 10
10case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Jl(n,r,a){var l=n.pendingLanes;if(l===0)return 0;var d=0,v=n.suspendedLanes,_=n.pingedLanes;n=n.warmLanes;var w=l&134217727;return w!==0?(l=w&~v,l!==0?d=Vr(l):(_&=w,_!==0?d=Vr(_):a||(a=w&~n,a!==0&&(d=Vr(a))))):(w=l&~v,w!==0?d=Vr(w):_!==0?d=Vr(_):a||(a=l&~n,a!==0&&(d=Vr(a)))),d===0?0:r!==0&&r!==d&&(r&v)===0&&(v=d&-d,a=r&-r,v>=a||v===32&&(a&4194048)!==0)?r:d}function Ja(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function FE(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Jg(){var n=Zl;return Zl<<=1,(Zl&62914560)===0&&(Zl=4194304),n}function Uf(n){for(var r=[],a=0;31>a;a++)r.push(n);return r}function Wa(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function qE(n,r,a,l,d,v){var _=n.pendingLanes;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=a,n.entangledLanes&=a,n.errorRecoveryDisabledLanes&=a,n.shellSuspendCounter=0;var w=n.entanglements,O=n.expirationTimes,H=n.hiddenUpdates;for(a=_&~a;0<a;){var Q=31-bn(a),J=1<<Q;w[Q]=0,O[Q]=-1;var q=H[Q];if(q!==null)for(H[Q]=null,Q=0;Q<q.length;Q++){var V=q[Q];V!==null&&(V.lane&=-536870913)}a&=~J}l!==0&&Wg(n,l,0),v!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=v&~(_&~r))}function Wg(n,r,a){n.pendingLanes|=r,n.suspendedLanes&=~r;var l=31-bn(r);n.entangledLanes|=r,n.entanglements[l]=n.entanglements[l]|1073741824|a&261930}function em(n,r){var a=n.entangledLanes|=r;for(n=n.entanglements;a;){var l=31-bn(a),d=1<<l;d&r|n[l]&r&&(n[l]|=r),a&=~d}}function tm(n,r){var a=r&-r;return a=(a&42)!==0?1:Hf(a),(a&(n.suspendedLanes|r))!==0?0:a}function Hf(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Ff(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function nm(){var n=Y.p;return n!==0?n:(n=window.event,n===void 0?32:H0(n.type))}function im(n,r){var a=Y.p;try{return Y.p=n,r()}finally{Y.p=a}}var sr=Math.random().toString(36).slice(2),Bt="__reactFiber$"+sr,rn="__reactProps$"+sr,Bs="__reactContainer$"+sr,qf="__reactEvents$"+sr,IE="__reactListeners$"+sr,GE="__reactHandles$"+sr,rm="__reactResources$"+sr,eo="__reactMarker$"+sr;function If(n){delete n[Bt],delete n[rn],delete n[qf],delete n[IE],delete n[GE]}function Us(n){var r=n[Bt];if(r)return r;for(var a=n.parentNode;a;){if(r=a[Bs]||a[Bt]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(n=T0(n);n!==null;){if(a=n[Bt])return a;n=T0(n)}return r}n=a,a=n.parentNode}return null}function Hs(n){if(n=n[Bt]||n[Bs]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function to(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(s(33))}function Fs(n){var r=n[rm];return r||(r=n[rm]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function $t(n){n[eo]=!0}var sm=new Set,am={};function Yr(n,r){qs(n,r),qs(n+"Capture",r)}function qs(n,r){for(am[n]=r,n=0;n<r.length;n++)sm.add(r[n])}var VE=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),om={},lm={};function YE(n){return Tt.call(lm,n)?!0:Tt.call(om,n)?!1:VE.test(n)?lm[n]=!0:(om[n]=!0,!1)}
vendor: 6,329 bytes, line 10
10function Wl(n,r,a){if(YE(r))if(a===null)n.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var l=r.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+a)}}function eu(n,r,a){if(a===null)n.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+a)}}function bi(n,r,a,l){if(l===null)n.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttributeNS(r,a,""+l)}}function kn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function um(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function KE(n,r,a){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,v=l.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(_){a=""+_,v.call(this,_)}}),Object.defineProperty(n,r,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(_){a=""+_},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function Gf(n){if(!n._valueTracker){var r=um(n)?"checked":"value";n._valueTracker=KE(n,r,""+n[r])}}function cm(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var a=r.getValue(),l="";return n&&(l=um(n)?n.checked?"true":"false":n.value),n=l,n!==a?(r.setValue(n),!0):!1}function tu(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var XE=/[\n"\\]/g;function Dn(n){return n.replace(XE,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Vf(n,r,a,l,d,v,_,w){n.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.type=_:n.removeAttribute("type"),r!=null?_==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+kn(r)):n.value!==""+kn(r)&&(n.value=""+kn(r)):_!=="submit"&&_!=="reset"||n.removeAttribute("value"),r!=null?Yf(n,_,kn(r)):a!=null?Yf(n,_,kn(a)):l!=null&&n.removeAttribute("value"),d==null&&v!=null&&(n.defaultChecked=!!v),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?n.name=""+kn(w):n.removeAttribute("name")}function fm(n,r,a,l,d,v,_,w){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),r!=null||a!=null){if(!(v!=="submit"&&v!=="reset"||r!=null)){Gf(n);return}a=a!=null?""+kn(a):"",r=r!=null?""+kn(r):a,w||r===n.value||(n.value=r),n.defaultValue=r}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=w?n.checked:!!l,n.defaultChecked=!!l,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(n.name=_),Gf(n)}function Yf(n,r,a){r==="number"&&tu(n.ownerDocument)===n||n.defaultValue===""+a||(n.defaultValue=""+a)}function Is(n,r,a,l){if(n=n.options,r){r={};for(var d=0;d<a.length;d++)r["$"+a[d]]=!0;for(a=0;a<n.length;a++)d=r.hasOwnProperty("$"+n[a].value),n[a].selected!==d&&(n[a].selected=d),d&&l&&(n[a].defaultSelected=!0)}else{for(a=""+kn(a),r=null,d=0;d<n.length;d++){if(n[d].value===a){n[d].selected=!0,l&&(n[d].defaultSelected=!0);return}r!==null||n[d].disabled||(r=n[d])}r!==null&&(r.selected=!0)}}function dm(n,r,a){if(r!=null&&(r=""+kn(r),r!==n.value&&(n.value=r),a==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=a!=null?""+kn(a):""}function hm(n,r,a,l){if(r==null){if(l!=null){if(a!=null)throw Error(s(92));if(ue(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),r=a}a=kn(r),n.defaultValue=a,l=n.textContent,l===a&&l!==""&&l!==null&&(n.value=l),Gf(n)}function Gs(n,r){if(r){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=r;return}}n.textContent=r}var QE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function pm(n,r,a){var l=r.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":l?n.setProperty(r,a):typeof a!="number"||a===0||QE.has(r)?r==="float"?n.cssFloat=a:n[r]=(""+a).trim():n[r]=a+"px"}function vm(n,r,a){if(r!=null&&typeof r!="object")throw Error(s(62));if(n=n.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||r!=null&&r.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var d in r)l=r[d],r.hasOwnProperty(d)&&a[d]!==l&&pm(n,d,l)}else for(var v in r)r.hasOwnProperty(v)&&pm(n,v,r[v])}function Kf(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ZE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
10dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),JE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function nu(n){return JE.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Si(){}var Xf=null;function Qf(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Vs=null,Ys=null;function gm(n){var r=Hs(n);if(r&&(n=r.stateNode)){var a=n[rn]||null;e:switch(n=r.stateNode,r.type){case"input":if(Vf(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Dn(""+r)+'"][type="radio"]'),r=0;r<a.length;r++){var l=a[r];if(l!==n&&l.form===n.form){var d=l[rn]||null;if(!d)throw Error(s(90));Vf(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<a.length;r++)l=a[r],l.form===n.form&&cm(l)}break e;case"textarea":dm(n,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&Is(n,!!a.multiple,r,!1)}}}var Zf=!1;function mm(n,r,a){if(Zf)return n(r,a);Zf=!0;try{var l=n(r);return l}finally{if(Zf=!1,(Vs!==null||Ys!==null)&&(qu(),Vs&&(r=Vs,n=Ys,Ys=Vs=null,gm(r),n)))for(r=0;r<n.length;r++)gm(n[r])}}function no(n,r){var a=n.stateNode;if(a===null)return null;var l=a[rn]||null;if(l===null)return null;a=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(s(231,r,typeof a));return a}var xi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jf=!1;if(xi)try{var io={};Object.defineProperty(io,"passive",{get:function(){Jf=!0}}),window.addEventListener("test",io,io),window.removeEventListener("test",io,io)}catch{Jf=!1}var ar=null,Wf=null,iu=null;
vendor: 3,152 bytes, line 10
10function ym(){if(iu)return iu;var n,r=Wf,a=r.length,l,d="value"in ar?ar.value:ar.textContent,v=d.length;for(n=0;n<a&&r[n]===d[n];n++);var _=a-n;for(l=1;l<=_&&r[a-l]===d[v-l];l++);return iu=d.slice(n,1<l?1-l:void 0)}function ru(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function su(){return!0}function _m(){return!1}function sn(n){function r(a,l,d,v,_){this._reactName=a,this._targetInst=d,this.type=l,this.nativeEvent=v,this.target=_,this.currentTarget=null;for(var w in n)n.hasOwnProperty(w)&&(a=n[w],this[w]=a?a(v):v[w]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?su:_m,this.isPropagationStopped=_m,this}return m(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=su)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=su)},persist:function(){},isPersistent:su}),r}var Kr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},au=sn(Kr),ro=m({},Kr,{view:0,detail:0}),WE=sn(ro),ed,td,so,ou=m({},ro,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==so&&(so&&n.type==="mousemove"?(ed=n.screenX-so.screenX,td=n.screenY-so.screenY):td=ed=0,so=n),ed)},movementY:function(n){return"movementY"in n?n.movementY:td}}),bm=sn(ou),eT=m({},ou,{dataTransfer:0}),tT=sn(eT),nT=m({},ro,{relatedTarget:0}),nd=sn(nT),iT=m({},Kr,{animationName:0,elapsedTime:0,pseudoElement:0}),rT=sn(iT),sT=m({},Kr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),aT=sn(sT),oT=m({},Kr,{data:0}),Sm=sn(oT),lT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uT={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fT(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=cT[n])?!!r[n]:!1}function id(){return fT}var dT=m({},ro,{key:function(n){if(n.key){var r=lT[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=ru(n),n===13?"Enter":String.fromCharCode(n)):n.type==="
10keydown"||n.type==="keyup"?uT[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(n){return n.type==="keypress"?ru(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ru(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),hT=sn(dT),pT=m({},ou,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xm=sn(pT),vT=m({},ro,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),gT=sn(vT),mT=m({},Kr,{propertyName:0,elapsedTime:0,pseudoElement:0}),yT=sn(mT),_T=m({},ou,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),bT=sn(_T),ST=m({},Kr,{newState:0,oldState:0}),xT=sn(ST),wT=[9,13,27,32],rd=xi&&"CompositionEvent"in window,ao=null;xi&&"documentMode"in document&&(ao=document.documentMode);var ET=xi&&"TextEvent"in window&&!ao,wm=xi&&(!rd||ao&&8<ao&&11>=ao),Em=" ",Tm=!1;function Rm(n,r){switch(n){case"keyup":return wT.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ks=!1;function TT(n,r){switch(n){case"compositionend":return Cm(r);case"keypress":return r.which!==32?null:(Tm=!0,Em);case"textInput":return n=r.data,n===Em&&Tm?null:n;default:return null}}function RT(n,r){if(Ks)return n==="compositionend"||!rd&&Rm(n,r)?(n=ym(),iu=Wf=ar=null,Ks=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return wm&&r.locale!=="ko"?null:r.data;default:return null}}var CT={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mm(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!CT[n.type]:r==="textarea"}function Am(n,r,a,l){Vs?Ys?Ys.push(l):Ys=[l]:Vs=l,r=Qu(r,"onChange"),0<r.length&&(a=new au("onChange","change",null,a,l),n.push({event:a,listeners:r}))}var oo=null,lo=null;function MT(n){f0(n,0)}function lu(n){var r=to(n);if(cm(r))return n}function Om(n,r){if(n==="change")return r}var km=!1;if(xi){var sd;if(xi){var ad="oninput"in document;if(!ad){var Dm=document.createElement("div");Dm.setAttribute("oninput","return;"),ad=typeof Dm.oninput=="function"}sd=ad}else sd=!1;km=sd&&(!document.documentMode||9<document.documentMode)}function Lm(){oo&&(oo.detachEvent("onpropertychange",zm),lo=oo=null)}function zm(n){if(n.propertyName==="value"&&lu(lo)){var r=[];Am(r,lo,n,Qf(n)),mm(MT,r)}}function AT(n,r,a){n==="focusin"?(Lm(),oo=r,lo=a,oo.attachEvent("onpropertychange",zm)):n==="focusout"&&Lm()}function OT(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return lu(lo)}function kT(n,r){if(n==="click")return lu(r)}function DT(n,r){if(n==="input"||n==="change")return lu(r)}function LT(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Sn=typeof Object.is=="function"?Object.is:LT;function uo(n,r){if(Sn(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var a=Object.keys(n),l=Object.keys(r);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var d=a[l];if(!Tt.call(r,d)||!Sn(n[d],r[d]))return!1}return!0}function Nm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function $m(n,r){var a=Nm(n);n=0;for(var l;a;){if(a.nodeType===3){if(l=n+a.textContent.length,n<=r&&l>=r)return{node:a,offset:r-n};n=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Nm(a)}}function jm(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?jm(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function Pm(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=tu(n.document);r instanceof n.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)n=r.contentWindow;else break;r=tu(n.document)}return r}function od(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var zT=xi&&"documentMode"in document&&11>=document.documentMode,Xs=null,ld=null,co=null,ud=!1;function Bm(n,r,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ud||Xs==null||Xs!==tu(l)||(l=Xs,"selectionStart"in l&&od(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focu
vendor: 22,182 bytes, line 10
10sNode:l.focusNode,focusOffset:l.focusOffset}),co&&uo(co,l)||(co=l,l=Qu(ld,"onSelect"),0<l.length&&(r=new au("onSelect","select",null,r,a),n.push({event:r,listeners:l}),r.target=Xs)))}function Xr(n,r){var a={};return a[n.toLowerCase()]=r.toLowerCase(),a["Webkit"+n]="webkit"+r,a["Moz"+n]="moz"+r,a}var Qs={animationend:Xr("Animation","AnimationEnd"),animationiteration:Xr("Animation","AnimationIteration"),animationstart:Xr("Animation","AnimationStart"),transitionrun:Xr("Transition","TransitionRun"),transitionstart:Xr("Transition","TransitionStart"),transitioncancel:Xr("Transition","TransitionCancel"),transitionend:Xr("Transition","TransitionEnd")},cd={},Um={};xi&&(Um=document.createElement("div").style,"AnimationEvent"in window||(delete Qs.animationend.animation,delete Qs.animationiteration.animation,delete Qs.animationstart.animation),"TransitionEvent"in window||delete Qs.transitionend.transition);function Qr(n){if(cd[n])return cd[n];if(!Qs[n])return n;var r=Qs[n],a;for(a in r)if(r.hasOwnProperty(a)&&a in Um)return cd[n]=r[a];return n}var Hm=Qr("animationend"),Fm=Qr("animationiteration"),qm=Qr("animationstart"),NT=Qr("transitionrun"),$T=Qr("transitionstart"),jT=Qr("transitioncancel"),Im=Qr("transitionend"),Gm=new Map,fd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");fd.push("scrollEnd");function Kn(n,r){Gm.set(n,r),Yr(r,[n])}var uu=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Ln=[],Zs=0,dd=0;function cu(){for(var n=Zs,r=dd=Zs=0;r<n;){var a=Ln[r];Ln[r++]=null;var l=Ln[r];Ln[r++]=null;var d=Ln[r];Ln[r++]=null;var v=Ln[r];if(Ln[r++]=null,l!==null&&d!==null){var _=l.pending;_===null?d.next=d:(d.next=_.next,_.next=d),l.pending=d}v!==0&&Vm(a,d,v)}}function fu(n,r,a,l){Ln[Zs++]=n,Ln[Zs++]=r,Ln[Zs++]=a,Ln[Zs++]=l,dd|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function hd(n,r,a,l){return fu(n,r,a,l),du(n)}function Zr(n,r){return fu(n,null,null,r),du(n)}function Vm(n,r,a){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a);for(var d=!1,v=n.return;v!==null;)v.childLanes|=a,l=v.alternate,l!==null&&(l.childLanes|=a),v.tag===22&&(n=v.stateNode,n===null||n._visibility&1||(d=!0)),n=v,v=v.return;return n.tag===3?(v=n.stateNode,d&&r!==null&&(d=31-bn(a),n=v.hiddenUpdates,l=n[d],l===null?n[d]=[r]:l.push(r),r.lane=a|536870912),v):null}function du(n){if(50<Lo)throw Lo=0,xh=null,Error(s(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var Js={};function PT(n,r,a,l){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xn(n,r,a,l){return new PT(n,r,a,l)}function pd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function wi(n,r){var a=n.alternate;return a===null?(a=xn(n.tag,r,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=r,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&65011712,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,r=n.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a.refCleanup=n.refCleanup,a}function Ym(n,r){n.flags&=65011714;var a=n.alternate;return a===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=a.childLanes,n.lanes=a.lanes,n.child=a.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=a.memoizedProps,n.memoizedState=a.memoizedState,n.updateQueue=a.updateQueue,n.type=a.type,r=a.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function hu(n,r,a,l,d,v){var _=0;if(l=n,typeof n=="function")pd(n)&&(_=1);else if(typeof n=="string")_=qR(n,a,ne.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case $:return n=xn(31,a,r,d),n.elementType=$,n.lanes=v,n;case x:return Jr(a.children,d,v,r);case T:_=8,d|=24;break;case E:return n=xn(12,a,r,d|2),n.elementType=E,n.lanes=v,n;case N:return n=xn(13,a,r,d),n.elementType=N,n.lanes=v,n;case B:return n=xn(19,a,r,d),n.elementType=B,n.lanes=v,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case C:_=10;break e;case A:_=9;break e;case M:_=11;break e;case k:_=14;break e;case D:_=16,l=null;break e}_=29,a=Error(s(130,n===null?"null":typeof n,"")),l=null}return r=xn(_,a,r,d),r.elementType=n,r.type=l,r.lanes=v,r}function Jr(n,r,a,l){return n=xn(7,n,l,r),n.lanes=a,n}function vd(n,r,a){return n=xn(6,n,null,r),n.lanes=a,n}function Km(n){var r=xn(18,null,null,0);return r.stateNode=n,r}function gd(n,r,a){return r=xn(4,n.children!==null?n.children:[],n.key,r),r.lanes=a,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var Xm=new WeakMap;function zn(n,r){if(typeof n=="object"&&n!==null){var a=Xm.get(n);return a!==void 0?a:(r={value:n,source:r,stack:Vn(r)},Xm.set(n,r),r)}return{value:n,source:r,stack:Vn(r)}}var Ws=[],ea=0,pu=null,fo=0,Nn=[],$n=0,or=null,ni=1,ii="";function Ei(n,r){Ws[ea++]=fo,Ws[ea++]=pu,pu=n,fo=r}function Qm(n,r,a){Nn[$n++]=ni,Nn[$n++]=ii,Nn[$n++]=or,or=n;var l=ni;n=ii;var d=32-bn(l)-1;l&=~(1<<d),a+=1;var v=32-bn(r)+d;if(30<v){var _=d-d%5;v=(l&(1<<_)-1).toString(32),l>>=_,d-=_,ni=1<<32-bn(r)+d|a<<d|l,ii=v+n}else ni=1<<v|a<<d|l,ii=n}function md(n){n.return!==null&&(Ei(n,1),Qm(n,1,0))}function yd(n){for(;n===pu;)pu=Ws[--ea],Ws[ea]=null,fo=Ws[--ea],Ws[ea]=null;for(;n===or;)or=Nn[--$n],Nn[$n]=null,ii=Nn[--$n],Nn[$n]=null,ni=Nn[--$n],Nn[$n]=null}function Zm(n,r){Nn[$n++]=ni,Nn[$n++]=ii,Nn[$n++]=or,ni=r.id,ii=r.overflow,or=n}var Ut=null,ct=null,He=!1,lr=null,jn=!1,_d=Error(s(519));function ur(n){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ho(zn(r,n)),_d}function Jm(n){var r=n.stateNode,a=n.type,l=n.memoizedProps;switch(r[Bt]=n,r[rn]=l,a){case"dialog":Pe("cancel",r),Pe("close",r);break;case"iframe":case"object":case"embed":Pe("load",r);break;case"video":case"audio":for(a=0;a<No.length;a++)Pe(No[a],r);break;case"source":Pe("error",r);break;case"img":case"image":case"link":Pe("error",r),Pe("load",r);break;case"details":Pe("toggle",r);break;case"input":Pe("invalid",r),fm(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Pe("invalid",r);break;case"textarea":Pe("invalid",r),hm(r,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||l.suppressHydrationWarning===!0||v0(r.textContent,a)?(l.popover!=null&&(Pe("beforetoggle",r),Pe("toggle",r)),l.onScroll!=null&&Pe("scroll",r),l.onScrollEnd!=null&&Pe("scrollend",r),l.onClick!=null&&(r.onclick=Si),r=!0):r=!1,r||ur(n,!0)}function Wm(n){for(Ut=n.return;Ut;)switch(Ut.tag){case 5:case 31:case 13:jn=!1;return;case 27:case 3:jn=!0;return;default:Ut=Ut.return}}function ta(n){if(n!==Ut)return!1;if(!He)return Wm(n),He=!0,!1;var r=n.tag,a;if((a=r!==3&&r!==27)&&((a=r===5)&&(a=n.type,a=!(a!=="form"&&a!=="button")||jh(n.type,n.memoizedProps)),a=!a),a&&ct&&ur(n),Wm(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));ct=E0(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));ct=E0(n)}else r===27?(r=ct,wr(n.type)?(n=Fh,Fh=null,ct=n):ct=r):ct=Ut?Bn(n.stateNode.nextSibling):null;return!0}function Wr(){ct=Ut=null,He=!1}function bd(){var n=lr;return n!==null&&(un===null?un=n:un.push.apply(un,n),lr=null),n}function ho(n){lr===null?lr=[n]:lr.push(n)}var Sd=R(null),es=null,Ti=null;function cr(n,r,a){K(Sd,r._currentValue),r._currentValue=a}function Ri(n){n._currentValue=Sd.current,I(Sd)}function xd(n,r,a){for(;n!==null;){var l=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),n===a)break;n=n.return}}function wd(n,r,a,l){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var v=d.dependencies;if(v!==null){var _=d.child;v=v.firstContext;e:for(;v!==null;){var w=v;v=d;for(var O=0;O<r.length;O++)if(w.context===r[O]){v.lanes|=a,w=v.alternate,w!==null&&(w.lanes|=a),xd(v.return,a,n),l||(_=null);break e}v=w.next}}else if(d.tag===18){if(_=d.return,_===null)throw Error(s(341));_.lanes|=a,v=_.alternate,v!==null&&(v.lanes|=a),xd(_,a,n),_=null}else _=d.child;if(_!==null)_.return=d;else for(_=d;_!==null;){if(_===n){_=null;break}if(d=_.sibling,d!==null){d.return=_.return,_=d;break}_=_.return}d=_}}function na(n,r,a,l){n=null;for(var d=r,v=!1;d!==null;){if(!v){if((d.flags&524288)!==0)v=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var _=d.alternate;if(_===null)throw Error(s(387));if(_=_.memoizedProps,_!==null){var w=d.type;Sn(d.pendingProps.value,_.value)||(n!==null?n.push(w):n=[w])}}else if(d===ge.current){if(_=d.alternate,_===null)throw Error(s(387));_.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(Uo):n=[Uo])}d=d.return}n!==null&&wd(r,n,a,l),r.flags|=262144}function vu(n){for(n=n.firstContext;n!==null;){if(!Sn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ts(n){es=n,Ti=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Ht(n){return ey(es,n)}function gu(n,r){return es===null&&ts(n),ey(n,r)}function ey(n,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},Ti===null){if(n===null)throw Error(s(308));Ti=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else Ti=Ti.next=r;return a}var BT=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(a,l){n.push(l)}};this.abort=function(){r.aborted=!0,n.forEach(function(a){return a()})}},UT=e.unstable_scheduleCallback,HT=e.unstable_NormalPriority,Mt={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ed(){return{controller:new BT,data:new Map,refCount:0}}function po(n){n.refCount--,n.refCount===0&&UT(HT,function(){n.controller.abort()})}var vo=null,Td=0,ia=0,ra=null;function FT(n,r){if(vo===null){var a=vo=[];Td=0,ia=Mh(),ra={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Td++,r.then(ty,ty),r}function ty(){if(--Td===0&&vo!==null){ra!==null&&(ra.status="fulfilled");var n=vo;vo=null,ia=0,ra=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function qT(n,r){var a=[],l={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return n.then(function(){l.status="fulfilled",l.value=r;for(var d=0;d<a.length;d++)(0,a[d])(r)},function(d){for(l.status="rejected",l.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),l}var ny=j.S;j.S=function(n,r){B_=$e(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&FT(n,r),ny!==null&&ny(n,r)};var ns=R(null);function Rd(){var n=ns.current;return n!==null?n:et.pooledCache}function mu(n,r){r===null?K(ns,ns.current):K(ns,r.pool)}function iy(){var n=Rd();return n===null?null:{parent:Mt._currentValue,pool:n}}var sa=Error(s(460)),Cd=Error(s(474)),yu=Error(s(542)),_u={then:function(){}};function ry(n){return n=n.status,n==="fulfilled"||n==="rejected"}function sy(n,r,a){switch(a=n[a],a===void 0?n.push(r):a!==r&&(r.then(Si,Si),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,oy(n),n;default:if(typeof r.status=="string")r.then(Si,Si);else{if(n=et,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=r,n.status="pending",n.then(function(l){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=l}},function(l){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,oy(n),n}throw rs=r,sa}}function is(n){try{var r=n._init;return r(n._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(rs=a,sa):a}}var rs=null;function ay(){if(rs===null)throw Error(s(459));var n=rs;return rs=null,n}function oy(n){if(n===sa||n===yu)throw Error(s(483))}var aa=null,go=0;function bu(n){var r=go;return go+=1,aa===null&&(aa=[]),sy(aa,n,r)}function mo(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function Su(n,r){throw r.$$typeof===y?Error(s(525)):(n=Object.prototype.toString.call(r),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function ly(n){function r(P,z){if(n){var U=P.deletions;U===null?(P.deletions=[z],P.flags|=16):U.push(z)}}function a(P,z){if(!n)return null;for(;z!==null;)r(P,z),z=z.sibling;return null}function l(P){for(var z=new Map;P!==null;)P.key!==null?z.set(P.key,P):z.set(P.index,P),P=P.sibling;return z}function d(P,z){return P=wi(P,z),P.index=0,P.sibling=null,P}function v(P,z,U){return P.index=U,n?(U=P.alternate,U!==null?(U=U.index,U<z?(P.flags|=67108866,z):U):(P.flags|=67108866,z)):(P.flags|=1048576,z)}function _(P){return n&&P.alternate===null&&(P.flags|=67108866),P}function w(P,z,U,Z){return z===null||z.tag!==6?(z=vd(U,P.mode,Z),z.return=P,z):(z=d(z,U),z.return=P,z)}function O(P,z,U,Z){var Re=U.type;return Re===x?Q(P,z,U.props.children,Z,U.key):z!==null&&(z.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===D&&is(Re)===z.type)?(z=d(z,U.props),mo(z,U),z.return=P,z):(z=hu(U.type,U.key,U.props,null,P.mode,Z),mo(z,U),z.return=P,z)}function H(P,z,U,Z){return z===null||z.tag!==4||z.stateNode.containerInfo!==U.containerInfo||z.stateNode.implementation!==U.implementation?(z=gd(U,P.mode,Z),z.return=P,z):(z=d(z,U.children||[]),z.return=P,z)}function Q(P,z,U,Z,Re){return z===null||z.tag!==7?(z=Jr(U,P.mode,Z,Re),z.return=P,z):(z=d(z,U),z.return=P,z)}function J(P,z,U){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=vd(""+z,P.mode,U),z.return=P,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case b:return U=hu(z.type,z.key,z.props,null,P.mode,U),mo(U,z),U.return=P,U;case S:return z=gd(z,P.mode,U),z.return=P,z;case D:return z=is(z),J(P,z,U)}if(ue(z)||re(z))return z=Jr(z,P.mode,U,null),z.return=P,z;if(typeof z.then=="function")return J(P,bu(z),U);if(z.$$typeof===C)return J(P,gu(P,z),U);Su(P,z)}return null}function q(P,z,U,Z){var Re=z!==null?z.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return Re!==null?null:w(P,z,""+U,Z);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case b:return U.key===Re?O(P,z,U,Z):null;case S:return U.key===Re?H(P,z,U,Z):null;case D:return U=is(U),q(P,z,U,Z)}if(ue(U)||re(U))return Re!==null?null:Q(P,z,U,Z,null);if(typeof U.then=="function")return q(P,z,bu(U),Z);if(U.$$typeof===C)return q(P,z,gu(P,U),Z);Su(P,U)}return null}function V(P,z,U,Z,Re){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return P=P.get(U)||null,w(z,P,""+Z,Re);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case b:return P=P.get(Z.key===null?U:Z.key)||null,O(z,P,Z,Re);case S:return P=P.get(Z.key===null?U:Z.key)||null,H(z,P,Z,Re);case D:return Z=is(Z),V(P,z,U,Z,Re)}if(ue(Z)||re(Z))return P=P.get(U)||null,Q(z,P,Z,Re,null);if(typeof Z.then=="function")return V(P,z,U,bu(Z),Re);if(Z.$$typeof===C)return V(P,z,U,gu(z,Z),Re);Su(z,Z)}return null}function xe(P,z,U,Z){for(var Re=null,Ie=null,we=z,De=z=0,Ue=null;we!==null&&De<U.length;De++){we.index>De?(Ue=we,we=null):Ue=we.sibling;var Ge=q(P,we,U[De],Z);if(Ge===null){we===null&&(we=Ue);break}n&&we&&Ge.alternate===null&&r(P,we),z=v(Ge,z,De),Ie===null?Re=Ge:Ie.sibling=Ge,Ie=Ge,we=Ue}if(De===U.length)return a(P,we),He&&Ei(P,De),Re;if(we===null){for(;De<U.length;De++)we=J(P,U[De],Z),we!==null&&(z=v(we,z,De),Ie===null?Re=we:Ie.sibling=we,Ie=we);return He&&Ei(P,De),Re}for(we=l(we);De<U.length;De++)Ue=V(we,P,De,U[De],Z),Ue!==null&&(n&&Ue.alternate!==null&&we.delete(Ue.key===null?De:Ue.key),z=v(Ue,z,De),Ie===null?Re=Ue:Ie.sibling=Ue,Ie=Ue);return n&&we.forEach(function(Mr){return r(P,Mr)}),He&&Ei(P,De),Re}function Ce(P,z,U,Z){if(U==null)throw Error(s(151));for(var Re=null,Ie=null,we=z,De=z=0,Ue=null,Ge=U.next();we!==null&&!Ge.done;De++,Ge=U.next()){we.index>De?(Ue=we,we=null):Ue=we.sibling;var Mr=q(P,we,Ge.value,Z);if(Mr===null){we===null&&(we=Ue);break}n&&we&&Mr.alternate===null&&r(P,we),z=v(Mr,z,De),Ie===null?Re=Mr:Ie.sibling=Mr,Ie=Mr,we=Ue}if(Ge.done)return a(P,we),He&&Ei(P,De),Re;if(we===null){for(;!Ge.done;De++,Ge=U.next())Ge=J(P,Ge.value,Z),Ge!==null&&(z=v(Ge,z,De),Ie===null?Re=Ge:Ie.sibling=Ge,Ie=Ge);return He&&Ei(P,De),Re}for(we=l(we);!Ge.done;De++,Ge=U.next())Ge=V(we,P,De,Ge.value,Z),Ge!==null&&(n&&Ge.alternate!==null&&we.delete(Ge.key===null?De:Ge.key),z=v(Ge,z,De),Ie===null?Re=Ge:Ie.sibling=Ge,Ie=Ge);return n&&we.forEach(function(eC){return r(P,eC)}),He&&Ei(P,De),Re}function Ze(P,z,U,Z){if(typeof U=="object"&&U!==null&&U.type===x&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case b:e:{for(var Re=U.key;z!==null;){if(z.key===Re){if(Re=U.type,Re===x){if(z.tag===7){a(P,z.sibling),Z=d(z,U.props.children),Z.return=P,P=Z;break e}}else if(z.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===D&&is(Re)===z.type){a(P,z.sibling),Z=d(z,U.props),mo(Z,U),Z.return=P,P=Z;break e}a(P,z);break}else r(P,z);z=z.sibling}U.type===x?(Z=Jr(U.props.children,P.mode,Z,U.key),Z.return=P,P=Z):(Z=hu(U.type,U.key,U.props,null,P.mode,Z),mo(Z,U),Z.return=P,P=Z)}return _(P);case S:e:{for(Re=U.key;z!==null;){if(z.key===Re)if(z.tag===4&&z.stateNode.containerInfo===U.containerInfo&&z.stateNode.implementation===U.implementation){a(P,z.sibling),Z=d(z,U.children||[]),Z.return=P,P=Z;break e}else{a(P,z);break}else r(P,z);z=z.sibling}Z=gd(U,P.mode,Z),Z.return=P,P=Z}return _(P);case D:return U=is(U),Ze(P,z,U,Z)}if(ue(U))return xe(P,z,U,Z);if(re(U)){if(Re=re(U),typeof Re!="function")throw Error(s(150));return U=Re.call(U),Ce(P,z,U,Z)}if(typeof U.then=="function")return Ze(P,z,bu(U),Z);if(U.$$typeof===C)return Ze(P,z,gu(P,U),Z);Su(P,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,z!==null&&z.tag===6?(a(P,z.sibling),Z=d(z,U),Z.return=P,P=Z):(a(P,z),Z=vd(U,P.mode,Z),Z.return=P,P=Z),_(P)):a(P,z)}return function(P,z,U,Z){try{go=0;var Re=Ze(P,z,U,Z);return aa=null,Re}catch(we){if(we===sa||we===yu)throw we;var Ie=xn(29,we,null,P.mode);return Ie.lanes=Z,Ie.return=P,Ie}finally{}}}var ss=ly(!0),uy=ly(!1),fr=!1;function Md(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ad(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function dr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function hr(n,r,a){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Ve&2)!==0){var d=l.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),l.pending=r,r=du(n),Vm(n,null,a),r}return fu(n,l,r,a),du(n)}function yo(n,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var l=r.lanes;l&=n.pendingLanes,a|=l,r.lanes=a,em(n,a)}}function Od(n,r){var a=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var d=null,v=null;if(a=a.firstBaseUpdate,a!==null){do{var _={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};v===null?d=v=_:v=v.next=_,a=a.next}while(a!==null);v===null?d=v=r:v=v.next=r}else d=v=r;a={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:v,shared:l.shared,callbacks:l.callbacks},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=r:n.next=r,a.lastBaseUpdate=r}var kd=!1;function _o(){if(kd){var n=ra;if(n!==null)throw n}}function bo(n,r,a,l){kd=!1;var d=n.updateQueue;fr=!1;var v=d.firstBaseUpdate,_=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var O=w,H=O.next;O.next=null,_===null?v=H:_.next=H,_=O;var Q=n.alternate;Q!==null&&(Q=Q.updateQueue,w=Q.lastBaseUpdate,w!==_&&(w===null?Q.firstBaseUpdate=H:w.next=H,Q.lastBaseUpdate=O))}if(v!==null){var J=d.baseState;_=0,Q=H=O=null,w=v;do{var q=w.lane&-536870913,V=q!==w.lane;if(V?(Be&q)===q:(l&q)===q){q!==0&&q===ia&&(kd=!0),Q!==null&&(Q=Q.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var xe=n,Ce=w;q=r;var Ze=a;switch(Ce.tag){case 1:if(xe=Ce.payload,typeof xe=="function"){J=xe.call(Ze,J,q);break e}J=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=Ce.payload,q=typeof xe=="function"?xe.call(Ze,J,q):xe,q==null)break e;J=m({},J,q);break e;case 2:fr=!0}}q=w.callback,q!==null&&(n.flags|=64,V&&(n.flags|=8192),V=d.callbacks,V===null?d.callbacks=[q]:V.push(q))}else V={lane:q,tag:w.tag,payload:w.payload,callback:w.callback,next:null},Q===null?(H=Q=V,O=J):Q=Q.next=V,_|=q;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;V=w,w=V.next,V.next=null,d.lastBaseUpdate=V,d.shared.pending=null}}while(!0);Q===null&&(O=J),d.baseState=O,d.firstBaseUpdate=H,d.lastBaseUpdate=Q,v===null&&(d.shared.lanes=0),yr|=_,n.lanes=_,n.memoizedState=J}}function cy(n,r){if(typeof n!="function")throw Error(s(191,n));n.call(r)}function fy(n,r){var a=n.callbacks;
vendor: 4,085 bytes, line 10
10if(a!==null)for(n.callbacks=null,n=0;n<a.length;n++)cy(a[n],r)}var oa=R(null),xu=R(0);function dy(n,r){n=Ni,K(xu,n),K(oa,r),Ni=n|r.baseLanes}function Dd(){K(xu,Ni),K(oa,oa.current)}function Ld(){Ni=xu.current,I(oa),I(xu)}var wn=R(null),Pn=null;function pr(n){var r=n.alternate;K(Rt,Rt.current&1),K(wn,n),Pn===null&&(r===null||oa.current!==null||r.memoizedState!==null)&&(Pn=n)}function zd(n){K(Rt,Rt.current),K(wn,n),Pn===null&&(Pn=n)}function hy(n){n.tag===22?(K(Rt,Rt.current),K(wn,n),Pn===null&&(Pn=n)):vr()}function vr(){K(Rt,Rt.current),K(wn,wn.current)}function En(n){I(wn),Pn===n&&(Pn=null),I(Rt)}var Rt=R(0);function wu(n){for(var r=n;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Uh(a)||Hh(a)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Ci=0,ke=null,Xe=null,At=null,Eu=!1,la=!1,as=!1,Tu=0,So=0,ua=null,IT=0;function xt(){throw Error(s(321))}function Nd(n,r){if(r===null)return!1;for(var a=0;a<r.length&&a<n.length;a++)if(!Sn(n[a],r[a]))return!1;return!0}function $d(n,r,a,l,d,v){return Ci=v,ke=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,j.H=n===null||n.memoizedState===null?Qy:Zd,as=!1,v=a(l,d),as=!1,la&&(v=vy(r,a,l,d)),py(n),v}function py(n){j.H=Eo;var r=Xe!==null&&Xe.next!==null;if(Ci=0,At=Xe=ke=null,Eu=!1,So=0,ua=null,r)throw Error(s(300));n===null||Ot||(n=n.dependencies,n!==null&&vu(n)&&(Ot=!0))}function vy(n,r,a,l){ke=n;var d=0;do{if(la&&(ua=null),So=0,la=!1,25<=d)throw Error(s(301));if(d+=1,At=Xe=null,n.updateQueue!=null){var v=n.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}j.H=Zy,v=r(a,l)}while(la);return v}function GT(){var n=j.H,r=n.useState()[0];return r=typeof r.then=="function"?xo(r):r,n=n.useState()[0],(Xe!==null?Xe.memoizedState:null)!==n&&(ke.flags|=1024),r}function jd(){var n=Tu!==0;return Tu=0,n}function Pd(n,r,a){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~a}function Bd(n){if(Eu){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}Eu=!1}Ci=0,At=Xe=ke=null,la=!1,So=Tu=0,ua=null}function Jt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?ke.memoizedState=At=n:At=At.next=n,At}function Ct(){if(Xe===null){var n=ke.alternate;n=n!==null?n.memoizedState:null}else n=Xe.next;var r=At===null?ke.memoizedState:At.next;if(r!==null)At=r,Xe=n;else{if(n===null)throw ke.alternate===null?Error(s(467)):Error(s(310));Xe=n,n={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},At===null?ke.memoizedState=At=n:At=At.next=n}return At}function Ru(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xo(n){var r=So;return So+=1,ua===null&&(ua=[]),n=sy(ua,n,r),r=ke,(At===null?r.memoizedState:At.next)===null&&(r=r.alternate,j.H=r===null||r.memoizedState===null?Qy:Zd),n}function Cu(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return xo(n);if(n.$$typeof===C)return Ht(n)}throw Error(s(438,String(n)))}function Ud(n){var r=null,a=ke.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var l=ke.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=Ru(),ke.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(n),l=0;l<n;l++)a[l]=X;return r.index++,a}function Mi(n,r){return typeof r=="function"?r(n):r}function Mu(n){var r=Ct();return Hd(r,Xe,n)}function Hd(n,r,a){var l=n.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var d=n.baseQueue,v=l.pending;if(v!==null){if(d!==null){var _=d.next;
vendor: 9,077 bytes, line 10
10d.next=v.next,v.next=_}r.baseQueue=d=v,l.pending=null}if(v=n.baseState,d===null)n.memoizedState=v;else{r=d.next;var w=_=null,O=null,H=r,Q=!1;do{var J=H.lane&-536870913;if(J!==H.lane?(Be&J)===J:(Ci&J)===J){var q=H.revertLane;if(q===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),J===ia&&(Q=!0);else if((Ci&q)===q){H=H.next,q===ia&&(Q=!0);continue}else J={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},O===null?(w=O=J,_=v):O=O.next=J,ke.lanes|=q,yr|=q;J=H.action,as&&a(v,J),v=H.hasEagerState?H.eagerState:a(v,J)}else q={lane:J,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},O===null?(w=O=q,_=v):O=O.next=q,ke.lanes|=J,yr|=J;H=H.next}while(H!==null&&H!==r);if(O===null?_=v:O.next=w,!Sn(v,n.memoizedState)&&(Ot=!0,Q&&(a=ra,a!==null)))throw a;n.memoizedState=v,n.baseState=_,n.baseQueue=O,l.lastRenderedState=v}return d===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function Fd(n){var r=Ct(),a=r.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var l=a.dispatch,d=a.pending,v=r.memoizedState;if(d!==null){a.pending=null;var _=d=d.next;do v=n(v,_.action),_=_.next;while(_!==d);Sn(v,r.memoizedState)||(Ot=!0),r.memoizedState=v,r.baseQueue===null&&(r.baseState=v),a.lastRenderedState=v}return[v,l]}function gy(n,r,a){var l=ke,d=Ct(),v=He;if(v){if(a===void 0)throw Error(s(407));a=a()}else a=r();var _=!Sn((Xe||d).memoizedState,a);if(_&&(d.memoizedState=a,Ot=!0),d=d.queue,Gd(_y.bind(null,l,d,n),[n]),d.getSnapshot!==r||_||At!==null&&At.memoizedState.tag&1){if(l.flags|=2048,ca(9,{destroy:void 0},yy.bind(null,l,d,a,r),null),et===null)throw Error(s(349));v||(Ci&127)!==0||my(l,r,a)}return a}function my(n,r,a){n.flags|=16384,n={getSnapshot:r,value:a},r=ke.updateQueue,r===null?(r=Ru(),ke.updateQueue=r,r.stores=[n]):(a=r.stores,a===null?r.stores=[n]:a.push(n))}function yy(n,r,a,l){r.value=a,r.getSnapshot=l,by(r)&&Sy(n)}function _y(n,r,a){return a(function(){by(r)&&Sy(n)})}function by(n){var r=n.getSnapshot;n=n.value;try{var a=r();return!Sn(n,a)}catch{return!0}}function Sy(n){var r=Zr(n,2);r!==null&&cn(r,n,2)}function qd(n){var r=Jt();if(typeof n=="function"){var a=n;if(n=a(),as){rr(!0);try{a()}finally{rr(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:n},r}function xy(n,r,a,l){return n.baseState=a,Hd(n,Xe,typeof l=="function"?l:Mi)}function VT(n,r,a,l,d){if(ku(n))throw Error(s(485));if(n=r.action,n!==null){var v={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){v.listeners.push(_)}};j.T!==null?a(!0):v.isTransition=!1,l(v),a=r.pending,a===null?(v.next=r.pending=v,wy(r,v)):(v.next=a.next,r.pending=a.next=v)}}function wy(n,r){var a=r.action,l=r.payload,d=n.state;if(r.isTransition){var v=j.T,_={};j.T=_;try{var w=a(d,l),O=j.S;O!==null&&O(_,w),Ey(n,r,w)}catch(H){Id(n,r,H)}finally{v!==null&&_.types!==null&&(v.types=_.types),j.T=v}}else try{v=a(d,l),Ey(n,r,v)}catch(H){Id(n,r,H)}}function Ey(n,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Ty(n,r,l)},function(l){return Id(n,r,l)}):Ty(n,r,a)}function Ty(n,r,a){r.status="fulfilled",r.value=a,Ry(r),n.state=a,r=n.pending,r!==null&&(a=r.next,a===r?n.pending=null:(a=a.next,r.next=a,wy(n,a)))}function Id(n,r,a){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=a,Ry(r),r=r.next;while(r!==l)}n.action=null}function Ry(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function Cy(n,r){return r}function My(n,r){if(He){var a=et.formState;if(a!==null){e:{var l=ke;if(He){if(ct){t:{for(var d=ct,v=jn;d.nodeType!==8;){if(!v){d=null;break t}if(d=Bn(d.nextSibling),d===null){d=null;break t}}v=d.data,d=v==="F!"||v==="F"?d:null}if(d){ct=Bn(d.nextSibling),l=d.data==="F!";break e}}ur(l)}l=!1}l&&(r=a[0])}}return a=Jt(),a.memoizedState=a.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cy,lastRenderedState:r},a.queue=l,a=Yy.bind(null,ke,l),l.dispatch=a,l=qd(!1),v=Qd.bind(null,ke,!1,l.queue),l=Jt(),d={state:r,dispatch:null,action:n,pending:null},l.queue=d,a=VT.bind(null,ke,d,v,a),d.dispatch=a,l.memoizedState=n,[r,a,!1]}function Ay(n){var r=Ct();return Oy(r,Xe,n)}function Oy(n,r,a){if(r=Hd(n,r,Cy)[0],n=Mu(Mi)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var l=xo(r)}catch(_){throw _===sa?yu:_}else l=r;r=Ct();var d=r.queue,v=d.dispatch;return a!==r.memoizedState&&(ke.flags|=2048,ca(9,{destroy:void 0},YT.bind(null,d,a),null)),[l,v,n]}function YT(n,r){n.action=r}function ky(n){var r=Ct(),a=Xe;if(a!==null)return Oy(r,a,n);Ct(),r=r.memoizedState,a=Ct();var l=a.queue.dispatch;return a.memoizedState=n,[r,l,!1]}function ca(n,r,a,l){return n={tag:n,create:a,deps:l,inst:r,next:null},r=ke.updateQueue,r===null&&(r=Ru(),ke.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=n.next=n:(l=a.next,a.next=n,n.next=l,r.lastEffect=n),n}function Dy(){return Ct().memoizedState}function Au(n,r,a,l){var d=Jt();ke.flags|=n,d.memoizedState=ca(1|r,{destroy:void 0},a,l===void 0?null:l)}function Ou(n,r,a,l){var d=Ct();l=l===void 0?null:l;var v=d.memoizedState.inst;Xe!==null&&l!==null&&Nd(l,Xe.memoizedState.deps)?d.memoizedState=ca(r,v,a,l):(ke.flags|=n,d.memoizedState=ca(1|r,v,a,l))}function Ly(n,r){Au(8390656,8,n,r)}function Gd(n,r){Ou(2048,8,n,r)}function KT(n){ke.flags|=4;var r=ke.updateQueue;if(r===null)r=Ru(),ke.updateQueue=r,r.events=[n];else{var a=r.events;a===null?r.events=[n]:a.push(n)}}function zy(n){var r=Ct().memoizedState;return KT({ref:r,nextImpl:n}),function(){if((Ve&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function Ny(n,r){return Ou(4,2,n,r)}function $y(n,r){return Ou(4,4,n,r)}function jy(n,r){if(typeof r=="function"){n=n();var a=r(n);return function(){typeof a=="function"?a():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function Py(n,r,a){a=a!=null?a.concat([n]):null,Ou(4,4,jy.bind(null,r,n),a)}function Vd(){}function By(n,r){var a=Ct();r=r===void 0?null:r;var l=a.memoizedState;return r!==null&&Nd(r,l[1])?l[0]:(a.memoizedState=[n,r],n)}function Uy(n,r){var a=Ct();r=r===void 0?null:r;var l=a.memoizedState;if(r!==null&&Nd(r,l[1]))return l[0];if(l=n(),as){rr(!0);try{n()}finally{rr(!1)}}return a.memoizedState=[l,r],l}function Yd(n,r,a){return a===void 0||(Ci&1073741824)!==0&&(Be&261930)===0?n.memoizedState=r:(n.memoizedState=a,n=H_(),ke.lanes|=n,yr|=n,a)}function Hy(n,r,a,l){return Sn(a,r)?a:oa.current!==null?(n=Yd(n,a,l),Sn(n,r)||(Ot=!0),n):(Ci&42)===0||(Ci&1073741824)!==0&&(Be&261930)===0?(Ot=!0,n.memoizedState=a):(n=H_(),ke.lanes|=n,yr|=n,r)}function Fy(n,r,a,l,d){var v=Y.p;Y.p=v!==0&&8>v?v:8;var _=j.T,w={};j.T=w,Qd(n,!1,r,a);try{var O=d(),H=j.S;if(H!==null&&H(w,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var Q=qT(O,l);wo(n,r,Q,Cn(n))}else wo(n,r,l,Cn(n))}catch(J){wo(n,r,{then:function(){},status:"rejected",reason:J},Cn())}finally{Y.p=v,_!==null&&w.types!==null&&(_.types=w.types),j.T=_}}function XT(){}function Kd(n,r,a,l){if(n.tag!==5)throw Error(s(476));var d=qy(n).queue;Fy(n,d,r,se,a===null?XT:function(){return Iy(n),a(l)})}function qy(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:se},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:a},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function Iy(n){var r=qy(n);r.next===null&&(r=n.alternate.memoizedState),wo(n,r.next.queue,{},Cn())}function Xd(){return Ht(Uo)}function Gy(){return Ct().memoizedState}function Vy(){return Ct().memoizedState}function QT(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var a=Cn();n=dr(a);var l=hr(r,n,a);l!==null&&(cn(l,r,a),yo(l,r,a)),r={cache:Ed()},n.payload=r;return}r=r.return}}function ZT(n,r,a){var l=Cn();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ku(n)?Ky(r,a):(a=hd(n,r,a,l),a!==null&&(cn(a,n,l),Xy(a,r,l)))}function Yy(n,r,a){var l=Cn();wo(n,r,a,l)}function wo(n,r,a,l){var d={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ku(n))Ky(r,d);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=r.lastRenderedReducer,v!==null))try{var _=r.lastRenderedState,w=v(_,a);if(d.hasEagerState=!0,d.eagerState=w,Sn(w,_))return fu(n,r,d,0),et===null&&cu(),!1}catch{}finally{}if(a=hd(n,r,d,l),a!==null)return cn(a,n,l),Xy(a,r,l),!0}return!1}function Qd(n,r,a,l){if(l={lane:2,revertLane:Mh(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ku(n)){if(r)throw Error(s(479))}else r=hd(n,a,l,2),r!==null&&cn(r,n,2)}function ku(n){var r=n.alternate;return n===ke||r!==null&&r===ke}function Ky(n,r){la=Eu=!0;var a=n.pending;
vendor: 27,453 bytes, line 10
10a===null?r.next=r:(r.next=a.next,a.next=r),n.pending=r}function Xy(n,r,a){if((a&4194048)!==0){var l=r.lanes;l&=n.pendingLanes,a|=l,r.lanes=a,em(n,a)}}var Eo={readContext:Ht,use:Cu,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useInsertionEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useSyncExternalStore:xt,useId:xt,useHostTransitionStatus:xt,useFormState:xt,useActionState:xt,useOptimistic:xt,useMemoCache:xt,useCacheRefresh:xt};Eo.useEffectEvent=xt;var Qy={readContext:Ht,use:Cu,useCallback:function(n,r){return Jt().memoizedState=[n,r===void 0?null:r],n},useContext:Ht,useEffect:Ly,useImperativeHandle:function(n,r,a){a=a!=null?a.concat([n]):null,Au(4194308,4,jy.bind(null,r,n),a)},useLayoutEffect:function(n,r){return Au(4194308,4,n,r)},useInsertionEffect:function(n,r){Au(4,2,n,r)},useMemo:function(n,r){var a=Jt();r=r===void 0?null:r;var l=n();if(as){rr(!0);try{n()}finally{rr(!1)}}return a.memoizedState=[l,r],l},useReducer:function(n,r,a){var l=Jt();if(a!==void 0){var d=a(r);if(as){rr(!0);try{a(r)}finally{rr(!1)}}}else d=r;return l.memoizedState=l.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},l.queue=n,n=n.dispatch=ZT.bind(null,ke,n),[l.memoizedState,n]},useRef:function(n){var r=Jt();return n={current:n},r.memoizedState=n},useState:function(n){n=qd(n);var r=n.queue,a=Yy.bind(null,ke,r);return r.dispatch=a,[n.memoizedState,a]},useDebugValue:Vd,useDeferredValue:function(n,r){var a=Jt();return Yd(a,n,r)},useTransition:function(){var n=qd(!1);return n=Fy.bind(null,ke,n.queue,!0,!1),Jt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,a){var l=ke,d=Jt();if(He){if(a===void 0)throw Error(s(407));a=a()}else{if(a=r(),et===null)throw Error(s(349));(Be&127)!==0||my(l,r,a)}d.memoizedState=a;var v={value:a,getSnapshot:r};return d.queue=v,Ly(_y.bind(null,l,v,n),[n]),l.flags|=2048,ca(9,{destroy:void 0},yy.bind(null,l,v,a,r),null),a},useId:function(){var n=Jt(),r=et.identifierPrefix;if(He){var a=ii,l=ni;a=(l&~(1<<32-bn(l)-1)).toString(32)+a,r="_"+r+"R_"+a,a=Tu++,0<a&&(r+="H"+a.toString(32)),r+="_"}else a=IT++,r="_"+r+"r_"+a.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:Xd,useFormState:My,useActionState:My,useOptimistic:function(n){var r=Jt();r.memoizedState=r.baseState=n;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=Qd.bind(null,ke,!0,a),a.dispatch=r,[n,r]},useMemoCache:Ud,useCacheRefresh:function(){return Jt().memoizedState=QT.bind(null,ke)},useEffectEvent:function(n){var r=Jt(),a={impl:n};return r.memoizedState=a,function(){if((Ve&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Zd={readContext:Ht,use:Cu,useCallback:By,useContext:Ht,useEffect:Gd,useImperativeHandle:Py,useInsertionEffect:Ny,useLayoutEffect:$y,useMemo:Uy,useReducer:Mu,useRef:Dy,useState:function(){return Mu(Mi)},useDebugValue:Vd,useDeferredValue:function(n,r){var a=Ct();return Hy(a,Xe.memoizedState,n,r)},useTransition:function(){var n=Mu(Mi)[0],r=Ct().memoizedState;return[typeof n=="boolean"?n:xo(n),r]},useSyncExternalStore:gy,useId:Gy,useHostTransitionStatus:Xd,useFormState:Ay,useActionState:Ay,useOptimistic:function(n,r){var a=Ct();return xy(a,Xe,n,r)},useMemoCache:Ud,useCacheRefresh:Vy};Zd.useEffectEvent=zy;var Zy={readContext:Ht,use:Cu,useCallback:By,useContext:Ht,useEffect:Gd,useImperativeHandle:Py,useInsertionEffect:Ny,useLayoutEffect:$y,useMemo:Uy,useReducer:Fd,useRef:Dy,useState:function(){return Fd(Mi)},useDebugValue:Vd,useDeferredValue:function(n,r){var a=Ct();return Xe===null?Yd(a,n,r):Hy(a,Xe.memoizedState,n,r)},useTransition:function(){var n=Fd(Mi)[0],r=Ct().memoizedState;return[typeof n=="boolean"?n:xo(n),r]},useSyncExternalStore:gy,useId:Gy,useHostTransitionStatus:Xd,useFormState:ky,useActionState:ky,useOptimistic:function(n,r){var a=Ct();return Xe!==null?xy(a,Xe,n,r):(a.baseState=n,[n,a.queue.dispatch])},useMemoCache:Ud,useCacheRefresh:Vy};Zy.useEffectEvent=zy;function Jd(n,r,a,l){r=n.memoizedState,a=a(l,r),a=a==null?r:m({},r,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var Wd={enqueueSetState:function(n,r,a){n=n._reactInternals;var l=Cn(),d=dr(l);d.payload=r,a!=null&&(d.callback=a),r=hr(n,d,l),r!==null&&(cn(r,n,l),yo(r,n,l))},enqueueReplaceState:function(n,r,a){n=n._reactInternals;var l=Cn(),d=dr(l);d.tag=1,d.payload=r,a!=null&&(d.callback=a),r=hr(n,d,l),r!==null&&(cn(r,n,l),yo(r,n,l))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var a=Cn(),l=dr(a);l.tag=2,r!=null&&(l.callback=r),r=hr(n,l,a),r!==null&&(cn(r,n,a),yo(r,n,a))}};function Jy(n,r,a,l,d,v,_){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,v,_):r.prototype&&r.prototype.isPureReactComponent?!uo(a,l)||!uo(d,v):!0}function Wy(n,r,a,l){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,l),r.state!==n&&Wd.enqueueReplaceState(r,r.state,null)}function os(n,r){var a=r;if("ref"in r){a={};for(var l in r)l!=="ref"&&(a[l]=r[l])}if(n=n.defaultProps){a===r&&(a=m({},a));for(var d in n)a[d]===void 0&&(a[d]=n[d])}return a}function e_(n){uu(n)}function t_(n){console.error(n)}function n_(n){uu(n)}function Du(n,r){try{var a=n.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function i_(n,r,a){try{var l=n.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function eh(n,r,a){return a=dr(a),a.tag=3,a.payload={element:null},a.callback=function(){Du(n,r)},a}function r_(n){return n=dr(n),n.tag=3,n}function s_(n,r,a,l){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var v=l.value;n.payload=function(){return d(v)},n.callback=function(){i_(r,a,l)}}var _=a.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(n.callback=function(){i_(r,a,l),typeof d!="function"&&(_r===null?_r=new Set([this]):_r.add(this));var w=l.stack;this.componentDidCatch(l.value,{componentStack:w!==null?w:""})})}function JT(n,r,a,l,d){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(r=a.alternate,r!==null&&na(r,a,d,!0),a=wn.current,a!==null){switch(a.tag){case 31:case 13:return Pn===null?Iu():a.alternate===null&&wt===0&&(wt=3),a.flags&=-257,a.flags|=65536,a.lanes=d,l===_u?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([l]):r.add(l),Th(n,l,d)),!1;case 22:return a.flags|=65536,l===_u?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([l]):a.add(l)),Th(n,l,d)),!1}throw Error(s(435,a.tag))}return Th(n,l,d),Iu(),!1}if(He)return r=wn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,l!==_d&&(n=Error(s(422),{cause:l}),ho(zn(n,a)))):(l!==_d&&(r=Error(s(423),{cause:l}),ho(zn(r,a))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,l=zn(l,a),d=eh(n.stateNode,l,d),Od(n,d),wt!==4&&(wt=2)),!1;var v=Error(s(520),{cause:l});if(v=zn(v,a),Do===null?Do=[v]:Do.push(v),wt!==4&&(wt=2),r===null)return!0;l=zn(l,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,n=d&-d,a.lanes|=n,n=eh(a.stateNode,l,n),Od(a,n),!1;case 1:if(r=a.type,v=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(_r===null||!_r.has(v))))return a.flags|=65536,d&=-d,a.lanes|=d,d=r_(d),s_(d,n,a,l),Od(a,d),!1}a=a.return}while(a!==null);return!1}var th=Error(s(461)),Ot=!1;function Ft(n,r,a,l){r.child=n===null?uy(r,null,a,l):ss(r,n.child,a,l)}function a_(n,r,a,l,d){a=a.render;var v=r.ref;if("ref"in l){var _={};for(var w in l)w!=="ref"&&(_[w]=l[w])}else _=l;return ts(r),l=$d(n,r,a,_,v,d),w=jd(),n!==null&&!Ot?(Pd(n,r,d),Ai(n,r,d)):(He&&w&&md(r),r.flags|=1,Ft(n,r,l,d),r.child)}function o_(n,r,a,l,d){if(n===null){var v=a.type;return typeof v=="function"&&!pd(v)&&v.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=v,l_(n,r,v,l,d)):(n=hu(a.type,null,l,r,r.mode,d),n.ref=r.ref,n.return=r,r.child=n)}if(v=n.child,!uh(n,d)){var _=v.memoizedProps;if(a=a.compare,a=a!==null?a:uo,a(_,l)&&n.ref===r.ref)return Ai(n,r,d)}return r.flags|=1,n=wi(v,l),n.ref=r.ref,n.return=r,r.child=n}function l_(n,r,a,l,d){if(n!==null){var v=n.memoizedProps;if(uo(v,l)&&n.ref===r.ref)if(Ot=!1,r.pendingProps=l=v,uh(n,d))(n.flags&131072)!==0&&(Ot=!0);else return r.lanes=n.lanes,Ai(n,r,d)}return nh(n,r,a,l,d)}function u_(n,r,a,l){var d=l.children,v=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((r.flags&128)!==0){if(v=v!==null?v.baseLanes|a:a,n!==null){for(l=r.child=n.child,d=0;l!==null;)d=d|l.lanes|l.childLanes,l=l.sibling;l=d&~v}else l=0,r.child=null;return c_(n,r,v,a,l)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&mu(r,v!==null?v.cachePool:null),v!==null?dy(r,v):Dd(),hy(r);else return l=r.lanes=536870912,c_(n,r,v!==null?v.baseLanes|a:a,a,l)}else v!==null?(mu(r,v.cachePool),dy(r,v),vr(),r.memoizedState=null):(n!==null&&mu(r,null),Dd(),vr());return Ft(n,r,d,a),r.child}function To(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function c_(n,r,a,l,d){var v=Rd();return v=v===null?null:{parent:Mt._currentValue,pool:v},r.memoizedState={baseLanes:a,cachePool:v},n!==null&&mu(r,null),Dd(),hy(r),n!==null&&na(n,r,l,!0),r.childLanes=d,null}function Lu(n,r){return r=Nu({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function f_(n,r,a){return ss(r,n.child,null,a),n=Lu(r,r.pendingProps),n.flags|=2,En(r),r.memoizedState=null,n}function WT(n,r,a){var l=r.pendingProps,d=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(He){if(l.mode==="hidden")return n=Lu(r,l),r.lanes=536870912,To(null,n);if(zd(r),(n=ct)?(n=w0(n,jn),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:or!==null?{id:ni,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},a=Km(n),a.return=r,r.child=a,Ut=r,ct=null)):n=null,n===null)throw ur(r);return r.lanes=536870912,null}return Lu(r,l)}var v=n.memoizedState;if(v!==null){var _=v.dehydrated;if(zd(r),d)if(r.flags&256)r.flags&=-257,r=f_(n,r,a);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(s(558));else if(Ot||na(n,r,a,!1),d=(a&n.childLanes)!==0,Ot||d){if(l=et,l!==null&&(_=tm(l,a),_!==0&&_!==v.retryLane))throw v.retryLane=_,Zr(n,_),cn(l,n,_),th;Iu(),r=f_(n,r,a)}else n=v.treeContext,ct=Bn(_.nextSibling),Ut=r,He=!0,lr=null,jn=!1,n!==null&&Zm(r,n),r=Lu(r,l),r.flags|=4096;return r}return n=wi(n.child,{mode:l.mode,children:l.children}),n.ref=r.ref,r.child=n,n.return=r,n}function zu(n,r){var a=r.ref;if(a===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(n===null||n.ref!==a)&&(r.flags|=4194816)}}function nh(n,r,a,l,d){return ts(r),a=$d(n,r,a,l,void 0,d),l=jd(),n!==null&&!Ot?(Pd(n,r,d),Ai(n,r,d)):(He&&l&&md(r),r.flags|=1,Ft(n,r,a,d),r.child)}function d_(n,r,a,l,d,v){return ts(r),r.updateQueue=null,a=vy(r,l,a,d),py(n),l=jd(),n!==null&&!Ot?(Pd(n,r,v),Ai(n,r,v)):(He&&l&&md(r),r.flags|=1,Ft(n,r,a,v),r.child)}function h_(n,r,a,l,d){if(ts(r),r.stateNode===null){var v=Js,_=a.contextType;typeof _=="object"&&_!==null&&(v=Ht(_)),v=new a(l,v),r.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Wd,r.stateNode=v,v._reactInternals=r,v=r.stateNode,v.props=l,v.state=r.memoizedState,v.refs={},Md(r),_=a.contextType,v.context=typeof _=="object"&&_!==null?Ht(_):Js,v.state=r.memoizedState,_=a.getDerivedStateFromProps,typeof _=="function"&&(Jd(r,a,_,l),v.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(_=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),_!==v.state&&Wd.enqueueReplaceState(v,v.state,null),bo(r,l,v,d),_o(),v.state=r.memoizedState),typeof v.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(n===null){v=r.stateNode;var w=r.memoizedProps,O=os(a,w);v.props=O;var H=v.context,Q=a.contextType;_=Js,typeof Q=="object"&&Q!==null&&(_=Ht(Q));var J=a.getDerivedStateFromProps;Q=typeof J=="function"||typeof v.getSnapshotBeforeUpdate=="function",w=r.pendingProps!==w,Q||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(w||H!==_)&&Wy(r,v,l,_),fr=!1;var q=r.memoizedState;v.state=q,bo(r,l,v,d),_o(),H=r.memoizedState,w||q!==H||fr?(typeof J=="function"&&(Jd(r,a,J,l),H=r.memoizedState),(O=fr||Jy(r,a,O,l,q,H,_))?(Q||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(r.flags|=4194308)):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=H),v.props=l,v.state=H,v.context=_,l=O):(typeof v.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{v=r.stateNode,Ad(n,r),_=r.memoizedProps,Q=os(a,_),v.props=Q,J=r.pendingProps,q=v.context,H=a.contextType,O=Js,typeof H=="object"&&H!==null&&(O=Ht(H)),w=a.getDerivedStateFromProps,(H=typeof w=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_!==J||q!==O)&&Wy(r,v,l,O),fr=!1,q=r.memoizedState,v.state=q,bo(r,l,v,d),_o();var V=r.memoizedState;_!==J||q!==V||fr||n!==null&&n.dependencies!==null&&vu(n.dependencies)?(typeof w=="function"&&(Jd(r,a,w,l),V=r.memoizedState),(Q=fr||Jy(r,a,Q,l,q,V,O)||n!==null&&n.dependencies!==null&&vu(n.dependencies))?(H||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(l,V,O),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(l,V,O)),typeof v.componentDidUpdate=="function"&&(r.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof v.componentDidUpdate!="function"||_===n.memoizedProps&&q===n.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===n.memoizedProps&&q===n.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=V),v.props=l,v.state=V,v.context=O,l=Q):(typeof v.componentDidUpdate!="function"||_===n.memoizedProps&&q===n.memoizedState||(r.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===n.memoizedProps&&q===n.memoizedState||(r.flags|=1024),l=!1)}return v=l,zu(n,r),l=(r.flags&128)!==0,v||l?(v=r.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:v.render(),r.flags|=1,n!==null&&l?(r.child=ss(r,n.child,null,d),r.child=ss(r,null,a,d)):Ft(n,r,a,d),r.memoizedState=v.state,n=r.child):n=Ai(n,r,d),n}function p_(n,r,a,l){return Wr(),r.flags|=256,Ft(n,r,a,l),r.child}var ih={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rh(n){return{baseLanes:n,cachePool:iy()}}function sh(n,r,a){return n=n!==null?n.childLanes&~a:0,r&&(n|=Rn),n}function v_(n,r,a){var l=r.pendingProps,d=!1,v=(r.flags&128)!==0,_;if((_=v)||(_=n!==null&&n.memoizedState===null?!1:(Rt.current&2)!==0),_&&(d=!0,r.flags&=-129),_=(r.flags&32)!==0,r.flags&=-33,n===null){if(He){if(d?pr(r):vr(),(n=ct)?(n=w0(n,jn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:or!==null?{id:ni,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},a=Km(n),a.return=r,r.child=a,Ut=r,ct=null)):n=null,n===null)throw ur(r);return Hh(n)?r.lanes=32:r.lanes=536870912,null}var w=l.children;return l=l.fallback,d?(vr(),d=r.mode,w=Nu({mode:"hidden",children:w},d),l=Jr(l,d,a,null),w.return=r,l.return=r,w.sibling=l,r.child=w,l=r.child,l.memoizedState=rh(a),l.childLanes=sh(n,_,a),r.memoizedState=ih,To(null,l)):(pr(r),ah(r,w))}var O=n.memoizedState;if(O!==null&&(w=O.dehydrated,w!==null)){if(v)r.flags&256?(pr(r),r.flags&=-257,r=oh(n,r,a)):r.memoizedState!==null?(vr(),r.child=n.child,r.flags|=128,r=null):(vr(),w=l.fallback,d=r.mode,l=Nu({mode:"visible",children:l.children},d),w=Jr(w,d,a,null),w.flags|=2,l.return=r,w.return=r,l.sibling=w,r.child=l,ss(r,n.child,null,a),l=r.child,l.memoizedState=rh(a),l.childLanes=sh(n,_,a),r.memoizedState=ih,r=To(null,l));else if(pr(r),Hh(w)){if(_=w.nextSibling&&w.nextSibling.dataset,_)var H=_.dgst;_=H,l=Error(s(419)),l.stack="",l.digest=_,ho({value:l,source:null,stack:null}),r=oh(n,r,a)}else if(Ot||na(n,r,a,!1),_=(a&n.childLanes)!==0,Ot||_){if(_=et,_!==null&&(l=tm(_,a),l!==0&&l!==O.retryLane))throw O.retryLane=l,Zr(n,l),cn(_,n,l),th;Uh(w)||Iu(),r=oh(n,r,a)}else Uh(w)?(r.flags|=192,r.child=n.child,r=null):(n=O.treeContext,ct=Bn(w.nextSibling),Ut=r,He=!0,lr=null,jn=!1,n!==null&&Zm(r,n),r=ah(r,l.children),r.flags|=4096);return r}return d?(vr(),w=l.fallback,d=r.mode,O=n.child,H=O.sibling,l=wi(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,H!==null?w=wi(H,w):(w=Jr(w,d,a,null),w.flags|=2),w.return=r,l.return=r,l.sibling=w,r.child=l,To(null,l),l=r.child,w=n.child.memoizedState,w===null?w=rh(a):(d=w.cachePool,d!==null?(O=Mt._currentValue,d=d.parent!==O?{parent:O,pool:O}:d):d=iy(),w={baseLanes:w.baseLanes|a,cachePool:d}),l.memoizedState=w,l.childLanes=sh(n,_,a),r.memoizedState=ih,To(n.child,l)):(pr(r),a=n.child,n=a.sibling,a=wi(a,{mode:"visible",children:l.children}),a.return=r,a.sibling=null,n!==null&&(_=r.deletions,_===null?(r.deletions=[n],r.flags|=16):_.push(n)),r.child=a,r.memoizedState=null,a)}function ah(n,r){return r=Nu({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Nu(n,r){return n=xn(22,n,null,r),n.lanes=0,n}function oh(n,r,a){return ss(r,n.child,null,a),n=ah(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function g_(n,r,a){n.lanes|=r;var l=n.alternate;l!==null&&(l.lanes|=r),xd(n.return,r,a)}function lh(n,r,a,l,d,v){var _=n.memoizedState;_===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:d,treeForkCount:v}:(_.isBackwards=r,_.rendering=null,_.renderingStartTime=0,_.last=l,_.tail=a,_.tailMode=d,_.treeForkCount=v)}function m_(n,r,a){var l=r.pendingProps,d=l.revealOrder,v=l.tail;l=l.children;var _=Rt.current,w=(_&2)!==0;if(w?(_=_&1|2,r.flags|=128):_&=1,K(Rt,_),Ft(n,r,l,a),l=He?fo:0,!w&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&g_(n,a,r);else if(n.tag===19)g_(n,a,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(d){case"forwards":for(a=r.child,d=null;a!==null;)n=a.alternate,n!==null&&wu(n)===null&&(d=a),a=a.sibling;a=d,a===null?(d=r.child,r.child=null):(d=a.sibling,a.sibling=null),lh(r,!1,d,a,v,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=r.child,r.child=null;d!==null;){if(n=d.alternate,n!==null&&wu(n)===null){r.child=d;break}n=d.sibling,d.sibling=a,a=d,d=n}lh(r,!0,a,null,v,l);break;case"together":lh(r,!1,null,null,void 0,l);break;default:r.memoizedState=null}return r.child}function Ai(n,r,a){if(n!==null&&(r.dependencies=n.dependencies),yr|=r.lanes,(a&r.childLanes)===0)if(n!==null){if(na(n,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(s(153));if(r.child!==null){for(n=r.child,a=wi(n,n.pendingProps),r.child=a,a.return=r;n.sibling!==null;)n=n.sibling,a=a.sibling=wi(n,n.pendingProps),a.return=r;a.sibling=null}return r.child}function uh(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&vu(n)))}function eR(n,r,a){switch(r.tag){case 3:_e(r,r.stateNode.containerInfo),cr(r,Mt,n.memoizedState.cache),Wr();break;case 27:case 5:st(r);break;case 4:_e(r,r.stateNode.containerInfo);break;case 10:cr(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,zd(r),null;break;case 13:var l=r.memoizedState;if(l!==null)return l.dehydrated!==null?(pr(r),r.flags|=128,null):(a&r.child.childLanes)!==0?v_(n,r,a):(pr(r),n=Ai(n,r,a),n!==null?n.sibling:null);pr(r);break;case 19:var d=(n.flags&128)!==0;if(l=(a&r.childLanes)!==0,l||(na(n,r,a,!1),l=(a&r.childLanes)!==0),d){if(l)return m_(n,r,a);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),K(Rt,Rt.current),l)break;return null;case 22:return r.lanes=0,u_(n,r,a,r.pendingProps);case 24:cr(r,Mt,n.memoizedState.cache)}return Ai(n,r,a)}function y_(n,r,a){if(n!==null)if(n.memoizedProps!==r.pendingProps)Ot=!0;else{if(!uh(n,a)&&(r.flags&128)===0)return Ot=!1,eR(n,r,a);Ot=(n.flags&131072)!==0}else Ot=!1,He&&(r.flags&1048576)!==0&&Qm(r,fo,r.index);switch(r.lanes=0,r.tag){case 16:e:{var l=r.pendingProps;if(n=is(r.elementType),r.type=n,typeof n=="function")pd(n)?(l=os(n,l),r.tag=1,r=h_(null,r,n,l,a)):(r.tag=0,r=nh(null,r,n,l,a));else{if(n!=null){var d=n.$$typeof;if(d===M){r.tag=11,r=a_(null,r,n,l,a);break e}else if(d===k){r.tag=14,r=o_(null,r,n,l,a);break e}}throw r=oe(n)||n,Error(s(306,r,""))}}return r;case 0:return nh(n,r,r.type,r.pendingProps,a);case 1:return l=r.type,d=os(l,r.pendingProps),h_(n,r,l,d,a);case 3:e:{if(_e(r,r.stateNode.containerInfo),n===null)throw Error(s(387));l=r.pendingProps;var v=r.memoizedState;d=v.element,Ad(n,r),bo(r,l,null,a);var _=r.memoizedState;if(l=_.cache,cr(r,Mt,l),l!==v.cache&&wd(r,[Mt],a,!0),_o(),l=_.element,v.isDehydrated)if(v={element:l,isDehydrated:!1,cache:_.cache},r.updateQueue.baseState=v,r.memoizedState=v,r.flags&256){r=p_(n,r,l,a);break e}else if(l!==d){d=zn(Error(s(424)),r),ho(d),r=p_(n,r,l,a);break e}else{switch(n=r.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(ct=Bn(n.firstChild),Ut=r,He=!0,lr=null,jn=!0,a=uy(r,null,l,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Wr(),l===d){r=Ai(n,r,a);break e}Ft(n,r,l,a)}r=r.child}return r;case 26:return zu(n,r),n===null?(a=A0(r.type,null,r.pendingProps,null))?r.memoizedState=a:He||(a=r.type,n=r.pendingProps,l=Zu(le.current).createElement(a),l[Bt]=r,l[rn]=n,qt(l,a,n),$t(l),r.stateNode=l):r.memoizedState=A0(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return st(r),n===null&&He&&(l=r.stateNode=R0(r.type,r.pendingProps,le.current),Ut=r,jn=!0,d=ct,wr(r.type)?(Fh=d,ct=Bn(l.firstChild)):ct=d),Ft(n,r,r.pendingProps.children,a),zu(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&He&&((d=l=ct)&&(l=OR(l,r.type,r.pendingProps,jn),l!==null?(r.stateNode=l,Ut=r,ct=Bn(l.firstChild),jn=!1,d=!0):d=!1),d||ur(r)),st(r),d=r.type,v=r.pendingProps,_=n!==null?n.memoizedProps:null,l=v.children,jh(d,v)?l=null:_!==null&&jh(d,_)&&(r.flags|=32),r.memoizedState!==null&&(d=$d(n,r,GT,null,null,a),Uo._currentValue=d),zu(n,r),Ft(n,r,l,a),r.child;case 6:return n===null&&He&&((n=a=ct)&&(a=kR(a,r.pendingProps,jn),a!==null?(r.stateNode=a,Ut=r,ct=null,n=!0):n=!1),n||ur(r)),null;case 13:return v_(n,r,a);case 4:return _e(r,r.stateNode.containerInfo),l=r.pendingProps,n===null?r.child=ss(r,null,l,a):Ft(n,r,l,a),r.child;case 11:return a_(n,r,r.type,r.pendingProps,a);case 7:return Ft(n,r,r.pendingProps,a),r.child;case 8:return Ft(n,r,r.pendingProps.children,a),r.child;case 12:return Ft(n,r,r.pendingProps.children,a),r.child;case 10:return l=r.pendingProps,cr(r,r.type,l.value),Ft(n,r,l.children,a),r.child;case 9:return d=r.type._context,l=r.pendingProps.children,ts(r),d=Ht(d),l=l(d),r.flags|=1,Ft(n,r,l,a),r.child;case 14:return o_(n,r,r.type,r.pendingProps,a);case 15:return l_(n,r,r.type,r.pendingProps,a);case 19:return m_(n,r,a);case 31:return WT(n,r,a);case 22:return u_(n,r,a,r.pendingProps);case 24:return ts(r),l=Ht(Mt),n===null?(d=Rd(),d===null&&(d=et,v=Ed(),d.pooledCache=v,v.refCount++,v!==null&&(d.pooledCacheLanes|=a),d=v),r.memoizedState={parent:l,cache:d},Md(r),cr(r,Mt,d)):((n.lanes&a)!==0&&(Ad(n,r),bo(r,null,null,a),_o()),d=n.memoizedState,v=r.memoizedState,d.parent!==l?(d={parent:l,cache:l},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),cr(r,Mt,l)):(l=v.cache,cr(r,Mt,l),l!==d.cache&&wd(r,[Mt],a,!0))),Ft(n,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function Oi(n){n.flags|=4}function ch(n,r,a,l,d){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(d&335544128)===d)if(n.stateNode.complete)n.flags|=8192;else if(G_())n.flags|=8192;else throw rs=_u,Cd}else n.flags&=-16777217}function __(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!z0(r))if(G_())n.flags|=8192;else throw rs=_u,Cd}function $u(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?Jg():536870912,n.lanes|=r,pa|=r)}function Ro(n,r){if(!He)switch(n.tailMode){case"hidden":r=n.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function ft(n){var r=n.alternate!==null&&n.alternate.child===n.child,a=0,l=0;if(r)for(var d=n.child;d!==null;)a|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)a|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=l,n.childLanes=a,r}function tR(n,r,a){var l=r.pendingProps;switch(yd(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(r),null;case 1:return ft(r),null;case 3:return a=r.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),Ri(Mt),ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(n===null||n.child===null)&&(ta(r)?Oi(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,bd())),ft(r),null;case 26:var d=r.type,v=r.memoizedState;return n===null?(Oi(r),v!==null?(ft(r),__(r,v)):(ft(r),ch(r,d,null,l,a))):v?v!==n.memoizedState?(Oi(r),ft(r),__(r,v)):(ft(r),r.flags&=-16777217):(n=n.memoizedProps,n!==l&&Oi(r),ft(r),ch(r,d,n,l,a)),null;case 27:if(pt(r),a=le.current,d=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==l&&Oi(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return ft(r),null}n=ne.current,ta(r)?Jm(r):(n=R0(d,l,a),r.stateNode=n,Oi(r))}return ft(r),null;case 5:if(pt(r),d=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==l&&Oi(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return ft(r),null}if(v=ne.current,ta(r))Jm(r);else{var _=Zu(le.current);switch(v){case 1:v=_.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:v=_.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":v=_.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":v=_.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":v=_.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;
vendor: 19,869 bytes, line 10
10case"select":v=typeof l.is=="string"?_.createElement("select",{is:l.is}):_.createElement("select"),l.multiple?v.multiple=!0:l.size&&(v.size=l.size);break;default:v=typeof l.is=="string"?_.createElement(d,{is:l.is}):_.createElement(d)}}v[Bt]=r,v[rn]=l;e:for(_=r.child;_!==null;){if(_.tag===5||_.tag===6)v.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===r)break e;for(;_.sibling===null;){if(_.return===null||_.return===r)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}r.stateNode=v;e:switch(qt(v,d,l),d){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Oi(r)}}return ft(r),ch(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,a),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==l&&Oi(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(s(166));if(n=le.current,ta(r)){if(n=r.stateNode,a=r.memoizedProps,l=null,d=Ut,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}n[Bt]=r,n=!!(n.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||v0(n.nodeValue,a)),n||ur(r,!0)}else n=Zu(n).createTextNode(l),n[Bt]=r,r.stateNode=n}return ft(r),null;case 31:if(a=r.memoizedState,n===null||n.memoizedState!==null){if(l=ta(r),a!==null){if(n===null){if(!l)throw Error(s(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[Bt]=r}else Wr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ft(r),n=!1}else a=bd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=a),n=!0;if(!n)return r.flags&256?(En(r),r):(En(r),null);if((r.flags&128)!==0)throw Error(s(558))}return ft(r),null;case 13:if(l=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=ta(r),l!==null&&l.dehydrated!==null){if(n===null){if(!d)throw Error(s(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[Bt]=r}else Wr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ft(r),d=!1}else d=bd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(En(r),r):(En(r),null)}return En(r),(r.flags&128)!==0?(r.lanes=a,r):(a=l!==null,n=n!==null&&n.memoizedState!==null,a&&(l=r.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool),v=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(v=l.memoizedState.cachePool.pool),v!==d&&(l.flags|=2048)),a!==n&&a&&(r.child.flags|=8192),$u(r,r.updateQueue),ft(r),null);case 4:return ve(),n===null&&Dh(r.stateNode.containerInfo),ft(r),null;case 10:return Ri(r.type),ft(r),null;case 19:if(I(Rt),l=r.memoizedState,l===null)return ft(r),null;if(d=(r.flags&128)!==0,v=l.rendering,v===null)if(d)Ro(l,!1);else{if(wt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(v=wu(n),v!==null){for(r.flags|=128,Ro(l,!1),n=v.updateQueue,r.updateQueue=n,$u(r,n),r.subtreeFlags=0,n=a,a=r.child;a!==null;)Ym(a,n),a=a.sibling;return K(Rt,Rt.current&1|2),He&&Ei(r,l.treeForkCount),r.child}n=n.sibling}l.tail!==null&&$e()>Hu&&(r.flags|=128,d=!0,Ro(l,!1),r.lanes=4194304)}else{if(!d)if(n=wu(v),n!==null){if(r.flags|=128,d=!0,n=n.updateQueue,r.updateQueue=n,$u(r,n),Ro(l,!0),l.tail===null&&l.tailMode==="hidden"&&!v.alternate&&!He)return ft(r),null}else 2*$e()-l.renderingStartTime>Hu&&a!==536870912&&(r.flags|=128,d=!0,Ro(l,!1),r.lanes=4194304);l.isBackwards?(v.sibling=r.child,r.child=v):(n=l.last,n!==null?n.sibling=v:r.child=v,l.last=v)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=$e(),n.sibling=null,a=Rt.current,K(Rt,d?a&1|2:a&1),He&&Ei(r,l.treeForkCount),n):(ft(r),null);case 22:case 23:return En(r),Ld(),l=r.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(r.flags|=8192):l&&(r.flags|=8192),l?(a&536870912)!==0&&(r.flags&128)===0&&(ft(r),r.subtreeFlags&6&&(r.flags|=8192)):ft(r),a=r.updateQueue,a!==null&&$u(r,a.retryQueue),a=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==a&&(r.flags|=2048),n!==null&&I(ns),null;case 24:return a=null,n!==null&&(a=n.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),Ri(Mt),ft(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function nR(n,r){switch(yd(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Ri(Mt),ve(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return pt(r),null;case 31:if(r.memoizedState!==null){if(En(r),r.alternate===null)throw Error(s(340));Wr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(En(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(s(340));Wr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return I(Rt),null;case 4:return ve(),null;case 10:return Ri(r.type),null;case 22:case 23:return En(r),Ld(),n!==null&&I(ns),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Ri(Mt),null;case 25:return null;default:return null}}function b_(n,r){switch(yd(r),r.tag){case 3:Ri(Mt),ve();break;case 26:case 27:case 5:pt(r);break;case 4:ve();break;case 31:r.memoizedState!==null&&En(r);break;case 13:En(r);break;case 19:I(Rt);break;case 10:Ri(r.type);break;case 22:case 23:En(r),Ld(),n!==null&&I(ns);break;case 24:Ri(Mt)}}function Co(n,r){try{var a=r.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var d=l.next;a=d;do{if((a.tag&n)===n){l=void 0;var v=a.create,_=a.inst;l=v(),_.destroy=l}a=a.next}while(a!==d)}}catch(w){Ke(r,r.return,w)}}function gr(n,r,a){try{var l=r.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var v=d.next;l=v;do{if((l.tag&n)===n){var _=l.inst,w=_.destroy;if(w!==void 0){_.destroy=void 0,d=r;var O=a,H=w;try{H()}catch(Q){Ke(d,O,Q)}}}l=l.next}while(l!==v)}}catch(Q){Ke(r,r.return,Q)}}function S_(n){var r=n.updateQueue;if(r!==null){var a=n.stateNode;try{fy(r,a)}catch(l){Ke(n,n.return,l)}}}function x_(n,r,a){a.props=os(n.type,n.memoizedProps),a.state=n.memoizedState;try{a.componentWillUnmount()}catch(l){Ke(n,r,l)}}function Mo(n,r){try{var a=n.ref;if(a!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof a=="function"?n.refCleanup=a(l):a.current=l}}catch(d){Ke(n,r,d)}}function ri(n,r){var a=n.ref,l=n.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(d){Ke(n,r,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){Ke(n,r,d)}else a.current=null}function w_(n){var r=n.type,a=n.memoizedProps,l=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(d){Ke(n,n.return,d)}}function fh(n,r,a){try{var l=n.stateNode;ER(l,n.type,a,r),l[rn]=r}catch(d){Ke(n,n.return,d)}}function E_(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&wr(n.type)||n.tag===4}function dh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||E_(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&wr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function hh(n,r,a){var l=n.tag;if(l===5||l===6)n=n.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(n,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(n),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=Si));else if(l!==4&&(l===27&&wr(n.type)&&(a=n.stateNode,r=null),n=n.child,n!==null))for(hh(n,r,a),n=n.sibling;n!==null;)hh(n,r,a),n=n.sibling}function ju(n,r,a){var l=n.tag;if(l===5||l===6)n=n.stateNode,r?a.insertBefore(n,r):a.appendChild(n);else if(l!==4&&(l===27&&wr(n.type)&&(a=n.stateNode),n=n.child,n!==null))for(ju(n,r,a),n=n.sibling;n!==null;)ju(n,r,a),n=n.sibling}function T_(n){var r=n.stateNode,a=n.memoizedProps;try{for(var l=n.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);qt(r,l,a),r[Bt]=n,r[rn]=a}catch(v){Ke(n,n.return,v)}}var ki=!1,kt=!1,ph=!1,R_=typeof WeakSet=="function"?WeakSet:Set,jt=null;function iR(n,r){if(n=n.containerInfo,Nh=rc,n=Pm(n),od(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var d=l.anchorOffset,v=l.focusNode;l=l.focusOffset;try{a.nodeType,v.nodeType}catch{a=null;break e}var _=0,w=-1,O=-1,H=0,Q=0,J=n,q=null;t:for(;;){for(var V;J!==a||d!==0&&J.nodeType!==3||(w=_+d),J!==v||l!==0&&J.nodeType!==3||(O=_+l),J.nodeType===3&&(_+=J.nodeValue.length),(V=J.firstChild)!==null;)q=J,J=V;for(;;){if(J===n)break t;if(q===a&&++H===d&&(w=_),q===v&&++Q===l&&(O=_),(V=J.nextSibling)!==null)break;J=q,q=J.parentNode}J=V}a=w===-1||O===-1?null:{start:w,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for($h={focusedElem:n,selectionRange:a},rc=!1,jt=r;jt!==null;)if(r=jt,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,jt=n;else for(;jt!==null;){switch(r=jt,v=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(a=0;a<n.length;a++)d=n[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&v!==null){n=void 0,a=r,d=v.memoizedProps,v=v.memoizedState,l=a.stateNode;try{var xe=os(a.type,d);n=l.getSnapshotBeforeUpdate(xe,v),l.__reactInternalSnapshotBeforeUpdate=n}catch(Ce){Ke(a,a.return,Ce)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,a=n.nodeType,a===9)Bh(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Bh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=r.sibling,n!==null){n.return=r.return,jt=n;break}jt=r.return}}function C_(n,r,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Li(n,a),l&4&&Co(5,a);break;case 1:if(Li(n,a),l&4)if(n=a.stateNode,r===null)try{n.componentDidMount()}catch(_){Ke(a,a.return,_)}else{var d=os(a.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(d,r,n.__reactInternalSnapshotBeforeUpdate)}catch(_){Ke(a,a.return,_)}}l&64&&S_(a),l&512&&Mo(a,a.return);break;case 3:if(Li(n,a),l&64&&(n=a.updateQueue,n!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{fy(n,r)}catch(_){Ke(a,a.return,_)}}break;case 27:r===null&&l&4&&T_(a);case 26:case 5:Li(n,a),r===null&&l&4&&w_(a),l&512&&Mo(a,a.return);break;case 12:Li(n,a);break;case 31:Li(n,a),l&4&&O_(n,a);break;case 13:Li(n,a),l&4&&k_(n,a),l&64&&(n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(a=dR.bind(null,a),DR(n,a))));break;case 22:if(l=a.memoizedState!==null||ki,!l){r=r!==null&&r.memoizedState!==null||kt,d=ki;var v=kt;ki=l,(kt=r)&&!v?zi(n,a,(a.subtreeFlags&8772)!==0):Li(n,a),ki=d,kt=v}break;case 30:break;default:Li(n,a)}}function M_(n){var r=n.alternate;r!==null&&(n.alternate=null,M_(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&If(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var gt=null,an=!1;function Di(n,r,a){for(a=a.child;a!==null;)A_(n,r,a),a=a.sibling}function A_(n,r,a){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(Za,a)}catch{}switch(a.tag){case 26:kt||ri(a,r),Di(n,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:kt||ri(a,r);var l=gt,d=an;wr(a.type)&&(gt=a.stateNode,an=!1),Di(n,r,a),jo(a.stateNode),gt=l,an=d;break;case 5:kt||ri(a,r);case 6:if(l=gt,d=an,gt=null,Di(n,r,a),gt=l,an=d,gt!==null)if(an)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(a.stateNode)}catch(v){Ke(a,r,v)}else try{gt.removeChild(a.stateNode)}catch(v){Ke(a,r,v)}break;case 18:gt!==null&&(an?(n=gt,S0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,a.stateNode),xa(n)):S0(gt,a.stateNode));break;case 4:l=gt,d=an,gt=a.stateNode.containerInfo,an=!0,Di(n,r,a),gt=l,an=d;break;case 0:case 11:case 14:case 15:gr(2,a,r),kt||gr(4,a,r),Di(n,r,a);break;case 1:kt||(ri(a,r),l=a.stateNode,typeof l.componentWillUnmount=="function"&&x_(a,r,l)),Di(n,r,a);break;case 21:Di(n,r,a);break;case 22:kt=(l=kt)||a.memoizedState!==null,Di(n,r,a),kt=l;break;default:Di(n,r,a)}}function O_(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{xa(n)}catch(a){Ke(r,r.return,a)}}}function k_(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{xa(n)}catch(a){Ke(r,r.return,a)}}function rR(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new R_),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new R_),r;default:throw Error(s(435,n.tag))}}function Pu(n,r){var a=rR(n);r.forEach(function(l){if(!a.has(l)){a.add(l);var d=hR.bind(null,n,l);l.then(d,d)}})}function on(n,r){var a=r.deletions;if(a!==null)for(var l=0;l<a.length;l++){var d=a[l],v=n,_=r,w=_;e:for(;w!==null;){switch(w.tag){case 27:if(wr(w.type)){gt=w.stateNode,an=!1;break e}break;case 5:gt=w.stateNode,an=!1;break e;case 3:case 4:gt=w.stateNode.containerInfo,an=!0;break e}w=w.return}if(gt===null)throw Error(s(160));A_(v,_,d),gt=null,an=!1,v=d.alternate,v!==null&&(v.return=null),d.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)D_(r,n),r=r.sibling}var Xn=null;function D_(n,r){var a=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:on(r,n),ln(n),l&4&&(gr(3,n,n.return),Co(3,n),gr(5,n,n.return));break;case 1:on(r,n),ln(n),l&512&&(kt||a===null||ri(a,a.return)),l&64&&ki&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(a=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var d=Xn;if(on(r,n),ln(n),l&512&&(kt||a===null||ri(a,a.return)),l&4){var v=a!==null?a.memoizedState:null;if(l=n.memoizedState,a===null)if(l===null)if(n.stateNode===null){e:{l=n.type,a=n.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":v=d.getElementsByTagName("title")[0],(!v||v[eo]||v[Bt]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=d.createElement(l),d.head.insertBefore(v,d.querySelector("head > title"))),qt(v,l,a),v[Bt]=n,$t(v),l=v;break e;case"link":var _=D0("link","href",d).get(l+(a.href||""));if(_){for(var w=0;w<_.length;w++)if(v=_[w],v.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&v.getAttribute("rel")===(a.rel==null?null:a.rel)&&v.getAttribute("title")===(a.title==null?null:a.title)&&v.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){_.splice(w,1);break t}}v=d.createElement(l),qt(v,l,a),d.head.appendChild(v);break;case"meta":if(_=D0("meta","content",d).get(l+(a.content||""))){for(w=0;w<_.length;w++)if(v=_[w],v.getAttribute("content")===(a.content==null?null:""+a.content)&&v.getAttribute("name")===(a.name==null?null:a.name)&&v.getAttribute("property")===(a.property==null?null:a.property)&&v.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&v.getAttribute("charset")===(a.charSet==null?null:a.charSet)){_.splice(w,1);break t}}v=d.createElement(l),qt(v,l,a),d.head.appendChild(v);break;default:throw Error(s(468,l))}v[Bt]=n,$t(v),l=v}n.stateNode=l}else L0(d,n.type,n.stateNode);else n.stateNode=k0(d,l,n.memoizedProps);else v!==l?(v===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):v.count--,l===null?L0(d,n.type,n.stateNode):k0(d,l,n.memoizedProps)):l===null&&n.stateNode!==null&&fh(n,n.memoizedProps,a.memoizedProps)}break;case 27:on(r,n),ln(n),l&512&&(kt||a===null||ri(a,a.return)),a!==null&&l&4&&fh(n,n.memoizedProps,a.memoizedProps);break;case 5:if(on(r,n),ln(n),l&512&&(kt||a===null||ri(a,a.return)),n.flags&32){d=n.stateNode;try{Gs(d,"")}catch(xe){Ke(n,n.return,xe)}}l&4&&n.stateNode!=null&&(d=n.memoizedProps,fh(n,d,a!==null?a.memoizedProps:d)),l&1024&&(ph=!0);break;case 6:if(on(r,n),ln(n),l&4){if(n.stateNode===null)throw Error(s(162));l=n.memoizedProps,a=n.stateNode;try{a.nodeValue=l}catch(xe){Ke(n,n.return,xe)}}break;case 3:if(ec=null,d=Xn,Xn=Ju(r.containerInfo),on(r,n),Xn=d,ln(n),l&4&&a!==null&&a.memoizedState.isDehydrated)try{xa(r.containerInfo)}catch(xe){Ke(n,n.return,xe)}ph&&(ph=!1,L_(n));break;case 4:l=Xn,Xn=Ju(n.stateNode.containerInfo),on(r,n),ln(n),Xn=l;break;case 12:on(r,n),ln(n);break;case 31:on(r,n),ln(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Pu(n,l)));break;case 13:on(r,n),ln(n),n.child.flags&8192&&n.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Uu=$e()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Pu(n,l)));break;case 22:d=n.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,H=ki,Q=kt;if(ki=H||d,kt=Q||O,on(r,n),kt=Q,ki=H,ln(n),l&8192)e:for(r=n.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(a===null||O||ki||kt||ls(n)),a=null,r=n;;){if(r.tag===5||r.tag===26){if(a===null){O=a=r;try{if(v=O.stateNode,d)_=v.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{w=O.stateNode;var J=O.memoizedProps.style,q=J!=null&&J.hasOwnProperty("display")?J.display:null;w.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(xe){Ke(O,O.return,xe)}}}else if(r.tag===6){if(a===null){O=r;try{O.stateNode.nodeValue=d?"":O.memoizedProps}catch(xe){Ke(O,O.return,xe)}}}else if(r.tag===18){if(a===null){O=r;try{var V=O.stateNode;d?x0(V,!0):x0(O.stateNode,!1)}catch(xe){Ke(O,O.return,xe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}l&4&&(l=n.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Pu(n,a))));break;case 19:on(r,n),ln(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Pu(n,l)));break;case 30:break;case 21:break;default:on(r,n),ln(n)}}function ln(n){var r=n.flags;if(r&2){try{for(var a,l=n.return;l!==null;){if(E_(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var d=a.stateNode,v=dh(n);ju(n,v,d);break;case 5:var _=a.stateNode;a.flags&32&&(Gs(_,""),a.flags&=-33);var w=dh(n);ju(n,w,_);break;case 3:case 4:var O=a.stateNode.containerInfo,H=dh(n);hh(n,H,O);break;default:throw Error(s(161))}}catch(Q){Ke(n,n.return,Q)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function L_(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;L_(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function Li(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)C_(n,r.alternate,r),r=r.sibling}function ls(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:gr(4,r,r.return),ls(r);break;case 1:ri(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&x_(r,r.return,a),ls(r);break;case 27:jo(r.stateNode);case 26:case 5:ri(r,r.return),ls(r);break;case 22:r.memoizedState===null&&ls(r);break;case 30:ls(r);break;default:ls(r)}n=n.sibling}}function zi(n,r,a){for(a=a&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var l=r.alternate,d=n,v=r,_=v.flags;switch(v.tag){case 0:case 11:case 15:zi(d,v,a),Co(4,v);break;case 1:if(zi(d,v,a),l=v,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(H){Ke(l,l.return,H)}if(l=v,d=l.updateQueue,d!==null){var w=l.stateNode;try{var O=d.shared.hiddenCallbacks;
vendor: 1,038 bytes, line 10
10if(O!==null)for(d.shared.hiddenCallbacks=null,d=0;d<O.length;d++)cy(O[d],w)}catch(H){Ke(l,l.return,H)}}a&&_&64&&S_(v),Mo(v,v.return);break;case 27:T_(v);case 26:case 5:zi(d,v,a),a&&l===null&&_&4&&w_(v),Mo(v,v.return);break;case 12:zi(d,v,a);break;case 31:zi(d,v,a),a&&_&4&&O_(d,v);break;case 13:zi(d,v,a),a&&_&4&&k_(d,v);break;case 22:v.memoizedState===null&&zi(d,v,a),Mo(v,v.return);break;case 30:break;default:zi(d,v,a)}r=r.sibling}}function vh(n,r){var a=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==a&&(n!=null&&n.refCount++,a!=null&&po(a))}function gh(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&po(n))}function Qn(n,r,a,l){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)z_(n,r,a,l),r=r.sibling}function z_(n,r,a,l){var d=r.flags;switch(r.tag){case 0:case 11:case 15:Qn(n,r,a,l),d&2048&&
vendor: 5,503 bytes, line 10
10Co(9,r);break;case 1:Qn(n,r,a,l);break;case 3:Qn(n,r,a,l),d&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&po(n)));break;case 12:if(d&2048){Qn(n,r,a,l),n=r.stateNode;try{var v=r.memoizedProps,_=v.id,w=v.onPostCommit;typeof w=="function"&&w(_,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(O){Ke(r,r.return,O)}}else Qn(n,r,a,l);break;case 31:Qn(n,r,a,l);break;case 13:Qn(n,r,a,l);break;case 23:break;case 22:v=r.stateNode,_=r.alternate,r.memoizedState!==null?v._visibility&2?Qn(n,r,a,l):Ao(n,r):v._visibility&2?Qn(n,r,a,l):(v._visibility|=2,fa(n,r,a,l,(r.subtreeFlags&10256)!==0||!1)),d&2048&&vh(_,r);break;case 24:Qn(n,r,a,l),d&2048&&gh(r.alternate,r);break;default:Qn(n,r,a,l)}}function fa(n,r,a,l,d){for(d=d&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var v=n,_=r,w=a,O=l,H=_.flags;switch(_.tag){case 0:case 11:case 15:fa(v,_,w,O,d),Co(8,_);break;case 23:break;case 22:var Q=_.stateNode;_.memoizedState!==null?Q._visibility&2?fa(v,_,w,O,d):Ao(v,_):(Q._visibility|=2,fa(v,_,w,O,d)),d&&H&2048&&vh(_.alternate,_);break;case 24:fa(v,_,w,O,d),d&&H&2048&&gh(_.alternate,_);break;default:fa(v,_,w,O,d)}r=r.sibling}}function Ao(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=n,l=r,d=l.flags;switch(l.tag){case 22:Ao(a,l),d&2048&&vh(l.alternate,l);break;case 24:Ao(a,l),d&2048&&gh(l.alternate,l);break;default:Ao(a,l)}r=r.sibling}}var Oo=8192;function da(n,r,a){if(n.subtreeFlags&Oo)for(n=n.child;n!==null;)N_(n,r,a),n=n.sibling}function N_(n,r,a){switch(n.tag){case 26:da(n,r,a),n.flags&Oo&&n.memoizedState!==null&&IR(a,Xn,n.memoizedState,n.memoizedProps);break;case 5:da(n,r,a);break;case 3:case 4:var l=Xn;Xn=Ju(n.stateNode.containerInfo),da(n,r,a),Xn=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=Oo,Oo=16777216,da(n,r,a),Oo=l):da(n,r,a));break;default:da(n,r,a)}}function $_(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function ko(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var l=r[a];jt=l,P_(l,n)}$_(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)j_(n),n=n.sibling}function j_(n){switch(n.tag){case 0:case 11:case 15:ko(n),n.flags&2048&&gr(9,n,n.return);break;case 3:ko(n);break;case 12:ko(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Bu(n)):ko(n);break;default:ko(n)}}function Bu(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var l=r[a];jt=l,P_(l,n)}$_(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:gr(8,r,r.return),Bu(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,Bu(r));break;default:Bu(r)}n=n.sibling}}function P_(n,r){for(;jt!==null;){var a=jt;switch(a.tag){case 0:case 11:case 15:gr(8,a,r);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:po(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,jt=l;else e:for(a=n;jt!==null;){l=jt;var d=l.sibling,v=l.return;if(M_(l),l===a){jt=null;break e}if(d!==null){d.return=v,jt=d;break e}jt=v}}}var sR={getCacheForType:function(n){var r=Ht(Mt),a=r.data.get(n);return a===void 0&&(a=n(),r.data.set(n,a)),a},cacheSignal:function(){return Ht(Mt).controller.signal}},aR=typeof WeakMap=="function"?WeakMap:Map,Ve=0,et=null,je=null,Be=0,Ye=0,Tn=null,mr=!1,ha=!1,mh=!1,Ni=0,wt=0,yr=0,us=0,yh=0,Rn=0,pa=0,Do=null,un=null,_h=!1,Uu=0,B_=0,Hu=1/0,Fu=null,_r=null,Dt=0,br=null,va=null,$i=0,bh=0,Sh=null,U_=null,Lo=0,xh=null;function Cn(){return(Ve&2)!==0&&Be!==0?Be&-Be:j.T!==null?Mh():nm()}function H_(){if(Rn===0)if((Be&536870912)===0||He){var n=Ql;Ql<<=1,(Ql&3932160)===0&&(Ql=262144),Rn=n}else Rn=536870912;return n=wn.current,n!==null&&(n.flags|=32),Rn}function cn(n,r,a){(n===et&&(Ye===2||Ye===9)||n.cancelPendingCommit!==null)&&(ga(n,0),Sr(n,Be,Rn,!1)),Wa(n,a),((Ve&2)===0||n!==et)&&(n===et&&((Ve&2)===0&&(us|=a),wt===4&&Sr(n,Be,Rn,!1)),si(n))}function F_(n,r,a){if((Ve&6)!==0)throw Error(s(327));var l=!a&&(r&127)===0&&(r&n.expiredLanes)===0||Ja(n,r),d=l?uR(n,r):Eh(n,r,!0),v=l;do{if(d===0){ha&&!l&&Sr(n,r,0,!1);break}else{if(a=n.current.alternate,v&&!oR(a)){d=Eh(n,r,!1),v=!1;continue}if(d===2){if(v=r,n.errorRecoveryDisabledLanes&v)var _=0;else _=n.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){r=_;e:{var w=n;d=Do;var O=w.current.memoizedState.isDehydrated;if(O&&(ga(w,_).flags|=256),_=Eh(w,_,!1),_!==2){if(mh&&!O){w.errorRecoveryDisabledLanes|=v,us|=v,d=4;break e}v=un,un=d,v!==null&&(un===null?un=v:un.push.apply(un,v))}d=_}if(v=!1,d!==2)continue}}if(d===1){ga(n,0),Sr(n,r,0,!0);break}e:{switch(l=n,v=d,v){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Sr(l,r,Rn,!mr);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(d=Uu+300-$e(),10<d)){if(Sr(l,r,Rn,!mr),Jl(l,0,!0)!==0)break e;$i=r,l.timeoutHandle=_0(q_.bind(null,l,a,un,Fu,_h,r,Rn,us,pa,mr,v,"Throttled",-0,0),d);break e}q_(l,a,un,Fu,_h,r,Rn,us,pa,mr,v,null,-0,0)}}break}while(!0);si(n)}function q_(n,r,a,l,d,v,_,w,O,H,Q,J,q,V){if(n.timeoutHandle=-1,J=r.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Si},N_(r,v,J);
vendor: 14,300 bytes, line 10
10var xe=(v&62914560)===v?Uu-$e():(v&4194048)===v?B_-$e():0;if(xe=GR(J,xe),xe!==null){$i=v,n.cancelPendingCommit=xe(Z_.bind(null,n,r,v,a,l,d,_,w,O,Q,J,null,q,V)),Sr(n,v,_,!H);return}}Z_(n,r,v,a,l,d,_,w,O)}function oR(n){for(var r=n;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var d=a[l],v=d.getSnapshot;d=d.value;try{if(!Sn(v(),d))return!1}catch{return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Sr(n,r,a,l){r&=~yh,r&=~us,n.suspendedLanes|=r,n.pingedLanes&=~r,l&&(n.warmLanes|=r),l=n.expirationTimes;for(var d=r;0<d;){var v=31-bn(d),_=1<<v;l[v]=-1,d&=~_}a!==0&&Wg(n,a,r)}function qu(){return(Ve&6)===0?(zo(0),!1):!0}function wh(){if(je!==null){if(Ye===0)var n=je.return;else n=je,Ti=es=null,Bd(n),aa=null,go=0,n=je;for(;n!==null;)b_(n.alternate,n),n=n.return;je=null}}function ga(n,r){var a=n.timeoutHandle;a!==-1&&(n.timeoutHandle=-1,CR(a)),a=n.cancelPendingCommit,a!==null&&(n.cancelPendingCommit=null,a()),$i=0,wh(),et=n,je=a=wi(n.current,null),Be=r,Ye=0,Tn=null,mr=!1,ha=Ja(n,r),mh=!1,pa=Rn=yh=us=yr=wt=0,un=Do=null,_h=!1,(r&8)!==0&&(r|=r&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=r;0<l;){var d=31-bn(l),v=1<<d;r|=n[d],l&=~v}return Ni=r,cu(),a}function I_(n,r){ke=null,j.H=Eo,r===sa||r===yu?(r=ay(),Ye=3):r===Cd?(r=ay(),Ye=4):Ye=r===th?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Tn=r,je===null&&(wt=1,Du(n,zn(r,n.current)))}function G_(){var n=wn.current;return n===null?!0:(Be&4194048)===Be?Pn===null:(Be&62914560)===Be||(Be&536870912)!==0?n===Pn:!1}function V_(){var n=j.H;return j.H=Eo,n===null?Eo:n}function Y_(){var n=j.A;return j.A=sR,n}function Iu(){wt=4,mr||(Be&4194048)!==Be&&wn.current!==null||(ha=!0),(yr&134217727)===0&&(us&134217727)===0||et===null||Sr(et,Be,Rn,!1)}function Eh(n,r,a){var l=Ve;Ve|=2;var d=V_(),v=Y_();(et!==n||Be!==r)&&(Fu=null,ga(n,r)),r=!1;var _=wt;e:do try{if(Ye!==0&&je!==null){var w=je,O=Tn;switch(Ye){case 8:wh(),_=6;break e;case 3:case 2:case 9:case 6:wn.current===null&&(r=!0);var H=Ye;if(Ye=0,Tn=null,ma(n,w,O,H),a&&ha){_=0;break e}break;default:H=Ye,Ye=0,Tn=null,ma(n,w,O,H)}}lR(),_=wt;break}catch(Q){I_(n,Q)}while(!0);return r&&n.shellSuspendCounter++,Ti=es=null,Ve=l,j.H=d,j.A=v,je===null&&(et=null,Be=0,cu()),_}function lR(){for(;je!==null;)K_(je)}function uR(n,r){var a=Ve;Ve|=2;var l=V_(),d=Y_();et!==n||Be!==r?(Fu=null,Hu=$e()+500,ga(n,r)):ha=Ja(n,r);e:do try{if(Ye!==0&&je!==null){r=je;var v=Tn;t:switch(Ye){case 1:Ye=0,Tn=null,ma(n,r,v,1);break;case 2:case 9:if(ry(v)){Ye=0,Tn=null,X_(r);break}r=function(){Ye!==2&&Ye!==9||et!==n||(Ye=7),si(n)},v.then(r,r);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:ry(v)?(Ye=0,Tn=null,X_(r)):(Ye=0,Tn=null,ma(n,r,v,7));break;case 5:var _=null;switch(je.tag){case 26:_=je.memoizedState;case 5:case 27:var w=je;if(_?z0(_):w.stateNode.complete){Ye=0,Tn=null;var O=w.sibling;if(O!==null)je=O;else{var H=w.return;H!==null?(je=H,Gu(H)):je=null}break t}}Ye=0,Tn=null,ma(n,r,v,5);break;case 6:Ye=0,Tn=null,ma(n,r,v,6);break;case 8:wh(),wt=6;break e;default:throw Error(s(462))}}cR();break}catch(Q){I_(n,Q)}while(!0);return Ti=es=null,j.H=l,j.A=d,Ve=a,je!==null?0:(et=null,Be=0,cu(),wt)}function cR(){for(;je!==null&&!Ps();)K_(je)}function K_(n){var r=y_(n.alternate,n,Ni);n.memoizedProps=n.pendingProps,r===null?Gu(n):je=r}function X_(n){var r=n,a=r.alternate;switch(r.tag){case 15:case 0:r=d_(a,r,r.pendingProps,r.type,void 0,Be);break;case 11:r=d_(a,r,r.pendingProps,r.type.render,r.ref,Be);break;case 5:Bd(r);default:b_(a,r),r=je=Ym(r,Ni),r=y_(a,r,Ni)}n.memoizedProps=n.pendingProps,r===null?Gu(n):je=r}function ma(n,r,a,l){Ti=es=null,Bd(r),aa=null,go=0;var d=r.return;try{if(JT(n,d,r,a,Be)){wt=1,Du(n,zn(a,n.current)),je=null;return}}catch(v){if(d!==null)throw je=d,v;wt=1,Du(n,zn(a,n.current)),je=null;return}r.flags&32768?(He||l===1?n=!0:ha||(Be&536870912)!==0?n=!1:(mr=n=!0,(l===2||l===9||l===3||l===6)&&(l=wn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Q_(r,n)):Gu(r)}function Gu(n){var r=n;do{if((r.flags&32768)!==0){Q_(r,mr);return}n=r.return;var a=tR(r.alternate,r,Ni);if(a!==null){je=a;return}if(r=r.sibling,r!==null){je=r;return}je=r=n}while(r!==null);wt===0&&(wt=5)}function Q_(n,r){do{var a=nR(n.alternate,n);if(a!==null){a.flags&=32767,je=a;return}if(a=n.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(n=n.sibling,n!==null)){je=n;return}je=n=a}while(n!==null);wt=6,je=null}function Z_(n,r,a,l,d,v,_,w,O){n.cancelPendingCommit=null;do Vu();while(Dt!==0);if((Ve&6)!==0)throw Error(s(327));if(r!==null){if(r===n.current)throw Error(s(177));if(v=r.lanes|r.childLanes,v|=dd,qE(n,a,v,_,w,O),n===et&&(je=et=null,Be=0),va=r,br=n,$i=a,bh=v,Sh=d,U_=l,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,pR(Kl,function(){return n0(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,d=Y.p,Y.p=2,_=Ve,Ve|=4;try{iR(n,r,a)}finally{Ve=_,Y.p=d,j.T=l}}Dt=1,J_(),W_(),e0()}}function J_(){if(Dt===1){Dt=0;var n=br,r=va,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var l=Y.p;Y.p=2;var d=Ve;Ve|=4;try{D_(r,n);var v=$h,_=Pm(n.containerInfo),w=v.focusedElem,O=v.selectionRange;if(_!==w&&w&&w.ownerDocument&&jm(w.ownerDocument.documentElement,w)){if(O!==null&&od(w)){var H=O.start,Q=O.end;if(Q===void 0&&(Q=H),"selectionStart"in w)w.selectionStart=H,w.selectionEnd=Math.min(Q,w.value.length);else{var J=w.ownerDocument||document,q=J&&J.defaultView||window;if(q.getSelection){var V=q.getSelection(),xe=w.textContent.length,Ce=Math.min(O.start,xe),Ze=O.end===void 0?Ce:Math.min(O.end,xe);!V.extend&&Ce>Ze&&(_=Ze,Ze=Ce,Ce=_);var P=$m(w,Ce),z=$m(w,Ze);if(P&&z&&(V.rangeCount!==1||V.anchorNode!==P.node||V.anchorOffset!==P.offset||V.focusNode!==z.node||V.focusOffset!==z.offset)){var U=J.createRange();U.setStart(P.node,P.offset),V.removeAllRanges(),Ce>Ze?(V.addRange(U),V.extend(z.node,z.offset)):(U.setEnd(z.node,z.offset),V.addRange(U))}}}}for(J=[],V=w;V=V.parentNode;)V.nodeType===1&&J.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<J.length;w++){var Z=J[w];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}rc=!!Nh,$h=Nh=null}finally{Ve=d,Y.p=l,j.T=a}}n.current=r,Dt=2}}function W_(){if(Dt===2){Dt=0;var n=br,r=va,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var l=Y.p;Y.p=2;var d=Ve;Ve|=4;try{C_(n,r.alternate,r)}finally{Ve=d,Y.p=l,j.T=a}}Dt=3}}function e0(){if(Dt===4||Dt===3){Dt=0,ir();var n=br,r=va,a=$i,l=U_;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Dt=5:(Dt=0,va=br=null,t0(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(_r=null),Ff(a),r=r.stateNode,_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(Za,r,void 0,(r.current.flags&128)===128)}catch{}if(l!==null){r=j.T,d=Y.p,Y.p=2,j.T=null;try{for(var v=n.onRecoverableError,_=0;_<l.length;_++){var w=l[_];v(w.value,{componentStack:w.stack})}}finally{j.T=r,Y.p=d}}($i&3)!==0&&Vu(),si(n),d=n.pendingLanes,(a&261930)!==0&&(d&42)!==0?n===xh?Lo++:(Lo=0,xh=n):Lo=0,zo(0)}}function t0(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,po(r)))}function Vu(){return J_(),W_(),e0(),n0()}function n0(){if(Dt!==5)return!1;var n=br,r=bh;bh=0;var a=Ff($i),l=j.T,d=Y.p;try{Y.p=32>a?32:a,j.T=null,a=Sh,Sh=null;var v=br,_=$i;if(Dt=0,va=br=null,$i=0,(Ve&6)!==0)throw Error(s(331));var w=Ve;if(Ve|=4,j_(v.current),z_(v,v.current,_,a),Ve=w,zo(0,!1),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(Za,v)}catch{}return!0}finally{Y.p=d,j.T=l,t0(n,r)}}function i0(n,r,a){r=zn(a,r),r=eh(n.stateNode,r,2),n=hr(n,r,2),n!==null&&(Wa(n,2),si(n))}function Ke(n,r,a){if(n.tag===3)i0(n,n,a);else for(;r!==null;){if(r.tag===3){i0(r,n,a);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(_r===null||!_r.has(l))){n=zn(a,n),a=r_(2),l=hr(r,a,2),l!==null&&(s_(a,l,r,n),Wa(l,2),si(l));break}}r=r.return}}function Th(n,r,a){var l=n.pingCache;if(l===null){l=n.pingCache=new aR;var d=new Set;l.set(r,d)}else d=l.get(r),d===void 0&&(d=new Set,l.set(r,d));d.has(a)||(mh=!0,d.add(a),n=fR.bind(null,n,r,a),r.then(n,n))}function fR(n,r,a){var l=n.pingCache;l!==null&&l.delete(r),n.pingedLanes|=n.suspendedLanes&a,n.warmLanes&=~a,et===n&&(Be&a)===a&&(wt===4||wt===3&&(Be&62914560)===Be&&300>$e()-Uu?(Ve&2)===0&&ga(n,0):yh|=a,pa===Be&&(pa=0)),si(n)}function r0(n,r){r===0&&(r=Jg()),n=Zr(n,r),n!==null&&(Wa(n,r),si(n))}function dR(n){var r=n.memoizedState,a=0;r!==null&&(a=r.retryLane),r0(n,a)}function hR(n,r){var a=0;switch(n.tag){case 31:case 13:var l=n.stateNode,d=n.memoizedState;d!==null&&(a=d.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(r),r0(n,a)}function pR(n,r){return Yn(n,r)}var Yu=null,ya=null,Rh=!1,Ku=!1,Ch=!1,xr=0;function si(n){n!==ya&&n.next===null&&(ya===null?Yu=ya=n:ya=ya.next=n),Ku=!0,Rh||(Rh=!0,gR())}function zo(n,r){if(!Ch&&Ku){Ch=!0;do for(var a=!1,l=Yu;l!==null;){if(n!==0){var d=l.pendingLanes;if(d===0)var v=0;else{var _=l.suspendedLanes,w=l.pingedLanes;v=(1<<31-bn(42|n)+1)-1,v&=d&~(_&~w),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(a=!0,l0(l,v))}else v=Be,v=Jl(l,l===et?v:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(v&3)===0||Ja(l,v)||(a=!0,l0(l,v));l=l.next}while(a);Ch=!1}}function vR(){s0()}function s0(){Ku=Rh=!1;var n=0;xr!==0&&RR()&&(n=xr);for(var r=$e(),a=null,l=Yu;l!==null;){var d=l.next,v=a0(l,r);v===0?(l.next=null,a===null?Yu=d:a.next=d,d===null&&(ya=a)):(a=l,(n!==0||(v&3)!==0)&&(Ku=!0)),l=d}Dt!==0&&Dt!==5||zo(n),xr!==0&&(xr=0)}function a0(n,r){for(var a=n.suspendedLanes,l=n.pingedLanes,d=n.expirationTimes,v=n.pendingLanes&-62914561;0<v;){var _=31-bn(v),w=1<<_,O=d[_];O===-1?((w&a)===0||(w&l)!==0)&&(d[_]=FE(w,r)):O<=r&&(n.expiredLanes|=w),v&=~w}if(r=et,a=Be,a=Jl(n,n===r?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,a===0||n===r&&(Ye===2||Ye===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&_i(l),n.callbackNode=null,n.callbackPriority=0;if((a&3)===0||Ja(n,a)){if(r=a&-a,r===n.callbackPriority)return r;switch(l!==null&&_i(l),Ff(a)){case 2:case 8:a=Yl;break;case 32:a=Kl;break;case 268435456:a=Zg;break;default:a=Kl}return l=o0.bind(null,n),a=Yn(a,l),n.callbackPriority=r,n.callbackNode=a,r}return l!==null&&l!==null&&_i(l),n.callbackPriority=2,n.callbackNode=null,2}function o0(n,r){if(Dt!==0&&Dt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var a=n.callbackNode;if(Vu()&&n.callbackNode!==a)return null;var l=Be;return l=Jl(n,n===et?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(F_(n,l,r),a0(n,$e()),n.callbackNode!=null&&n.callbackNode===a?o0.bind(null,n):null)}function l0(n,r){if(Vu())return null;F_(n,r,!0)}function gR(){MR(function(){(Ve&6)!==0?Yn(ti,vR):s0()})}function Mh(){if(xr===0){var n=ia;n===0&&(n=Xl,Xl<<=1,(Xl&261888)===0&&(Xl=256)),xr=n}return xr}function u0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:nu(""+n)}function c0(n,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,n.id&&a.setAttribute("form",n.id),r.parentNode.insertBefore(a,r),n=new FormData(n),a.parentNode.removeChild(a),n}function mR(n,r,a,l,d){if(r==="submit"&&a&&a.stateNode===d){var v=u0((d[rn]||null).action),_=l.submitter;_&&(r=(r=_[rn]||null)?u0(r.formAction):_.getAttribute("formAction"),r!==null&&(v=r,_=null));var w=new au("action","action",null,l,d);n.push({event:w,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xr!==0){var O=_?c0(d,_):new FormData(d);Kd(a,{pending:!0,data:O,method:d.method,action:v},null,O)}}else typeof v=="function"&&(w.preventDefault(),O=_?c0(d,_):new FormData(d),Kd(a,{pending:!0,data:O,method:d.method,action:v},v,O))},currentTarget:d}]})}}for(var Ah=0;Ah<fd.length;Ah++){var Oh=fd[Ah],yR=Oh.toLowerCase(),_R=Oh[0].toUpperCase()+Oh.slice(1);Kn(yR,"on"+_R)}Kn(Hm,"onAnimationEnd"),Kn(Fm,"onAnimationIteration"),Kn(qm,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(NT,"onTransitionRun"),Kn($T,"onTransitionStart"),Kn(jT,"onTransitionCancel"),Kn(Im,"onTransitionEnd"),qs("onMouseEnter",["mouseout","mouseover"]),qs("onMouseLeave",["mouseout","mouseover"]),qs("onPointerEnter",["pointerout","pointerover"]),qs("onPointerLeave",["pointerout","pointerover"]),Yr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var No="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(No));function f0(n,r){r=(r&4)!==0;for(var a=0;a<n.length;a++){var l=n[a],d=l.event;l=l.listeners;e:{var v=void 0;if(r)for(var _=l.length-1;0<=_;_--){var w=l[_],O=w.instance,H=w.currentTarget;if(w=w.listener,O!==v&&d.isPropagationStopped())break e;v=w,d.currentTarget=H;try{v(d)}catch(Q){uu(Q)}d.currentTarget=null,v=O}else for(_=0;_<l.length;_++){if(w=l[_],O=w.instance,H=w.currentTarget,w=w.listener,O!==v&&d.isPropagationStopped())break e;v=w,d.currentTarget=H;try{v(d)}catch(Q){uu(Q)}d.currentTarget=null,v=O}}}}function Pe(n,r){var a=r[qf];a===void 0&&(a=r[qf]=new Set);var l=n+"__bubble";a.has(l)||(d0(r,n,2,!1),a.add(l))}function kh(n,r,a){var l=0;r&&(l|=4),d0(a,n,l,r)}var Xu="_reactListening"+Math.random().toString(36).slice(2);
vendor: 3,356 bytes, line 10
10function Dh(n){if(!n[Xu]){n[Xu]=!0,sm.forEach(function(a){a!=="selectionchange"&&(bR.has(a)||kh(a,!1,n),kh(a,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[Xu]||(r[Xu]=!0,kh("selectionchange",!1,r))}}function d0(n,r,a,l){switch(H0(r)){case 2:var d=KR;break;case 8:d=XR;break;default:d=Yh}a=d.bind(null,r,a,n),d=void 0,!Jf||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),l?d!==void 0?n.addEventListener(r,a,{capture:!0,passive:d}):n.addEventListener(r,a,!0):d!==void 0?n.addEventListener(r,a,{passive:d}):n.addEventListener(r,a,!1)}function Lh(n,r,a,l,d){var v=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var _=l.tag;if(_===3||_===4){var w=l.stateNode.containerInfo;if(w===d)break;if(_===4)for(_=l.return;_!==null;){var O=_.tag;if((O===3||O===4)&&_.stateNode.containerInfo===d)return;_=_.return}for(;w!==null;){if(_=Us(w),_===null)return;if(O=_.tag,O===5||O===6||O===26||O===27){l=v=_;continue e}w=w.parentNode}}l=l.return}mm(function(){var H=v,Q=Qf(a),J=[];e:{var q=Gm.get(n);if(q!==void 0){var V=au,xe=n;switch(n){case"keypress":if(ru(a)===0)break e;case"keydown":case"keyup":V=hT;break;case"focusin":xe="focus",V=nd;break;case"focusout":xe="blur",V=nd;break;case"beforeblur":case"afterblur":V=nd;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=bm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=tT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=gT;break;case Hm:case Fm:case qm:V=rT;break;case Im:V=yT;break;case"scroll":case"scrollend":V=WE;break;case"wheel":V=bT;break;case"copy":case"cut":case"paste":V=aT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=xm;break;case"toggle":case"beforetoggle":V=xT}var Ce=(r&4)!==0,Ze=!Ce&&(n==="scroll"||n==="scrollend"),P=Ce?q!==null?q+"Capture":null:q;Ce=[];for(var z=H,U;z!==null;){var Z=z;if(U=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||U===null||P===null||(Z=no(z,P),Z!=null&&Ce.push($o(z,Z,U))),Ze)break;z=z.return}0<Ce.length&&(q=new V(q,xe,null,a,Q),J.push({event:q,listeners:Ce}))}}if((r&7)===0){e:{if(q=n==="mouseover"||n==="pointerover",V=n==="mouseout"||n==="pointerout",q&&a!==Xf&&(xe=a.relatedTarget||a.fromElement)&&(Us(xe)||xe[Bs]))break e;if((V||q)&&(q=Q.window===Q?Q:(q=Q.ownerDocument)?q.defaultView||q.parentWindow:window,V?(xe=a.relatedTarget||a.toElement,V=H,xe=xe?Us(xe):null,xe!==null&&(Ze=u(xe),Ce=xe.tag,xe!==Ze||Ce!==5&&Ce!==27&&Ce!==6)&&(xe=null)):(V=null,xe=H),V!==xe)){if(Ce=bm,Z="onMouseLeave",P="onMouseEnter",z="mouse",(n==="pointerout"||n==="pointerover")&&(Ce=xm,Z="onPointerLeave",P="onPointerEnter",z="pointer"),Ze=V==null?q:to(V),U=xe==null?q:to(xe),q=new Ce(Z,z+"leave",V,a,Q),q.target=Ze,q.relatedTarget=U,Z=null,Us(Q)===H&&(Ce=new Ce(P,z+"enter",xe,a,Q),Ce.target=U,Ce.relatedTarget=Ze,Z=Ce),Ze=Z,V&&xe)t:{for(Ce=SR,P=V,z=xe,U=0,Z=P;Z;Z=Ce(Z))U++;Z=0;for(var Re=z;Re;Re=Ce(Re))Z++;for(;0<U-Z;)P=Ce(P),U--;for(;0<Z-U;)z=Ce(z),Z--;for(;U--;){if(P===z||z!==null&&P===z.alternate){Ce=P;break t}P=Ce(P),z=Ce(z)}Ce=null}else Ce=null;V!==null&&h0(J,q,V,Ce,!1),xe!==null&&Ze!==null&&h0(J,Ze,xe,Ce,!0)}}
vendor: 5,189 bytes, lines 10-11
10e:{if(q=H?to(H):window,V=q.nodeName&&q.nodeName.toLowerCase(),V==="select"||V==="input"&&q.type==="file")var Ie=Om;else if(Mm(q))if(km)Ie=DT;else{Ie=OT;var we=AT}else V=q.nodeName,!V||V.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?H&&Kf(H.elementType)&&(Ie=Om):Ie=kT;if(Ie&&(Ie=Ie(n,H))){Am(J,Ie,a,Q);break e}we&&we(n,q,H),n==="focusout"&&H&&q.type==="number"&&H.memoizedProps.value!=null&&Yf(q,"number",q.value)}switch(we=H?to(H):window,n){case"focusin":(Mm(we)||we.contentEditable==="true")&&(Xs=we,ld=H,co=null);break;case"focusout":co=ld=Xs=null;break;case"mousedown":ud=!0;break;case"contextmenu":case"mouseup":case"dragend":ud=!1,Bm(J,a,Q);break;case"selectionchange":if(zT)break;case"keydown":case"keyup":Bm(J,a,Q)}var De;if(rd)e:{switch(n){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Ks?Rm(n,a)&&(Ue="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(Ue="onCompositionStart");Ue&&(wm&&a.locale!=="ko"&&(Ks||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Ks&&(De=ym()):(ar=Q,Wf="value"in ar?ar.value:ar.textContent,Ks=!0)),we=Qu(H,Ue),0<we.length&&(Ue=new Sm(Ue,n,null,a,Q),J.push({event:Ue,listeners:we}),De?Ue.data=De:(De=Cm(a),De!==null&&(Ue.data=De)))),(De=ET?TT(n,a):RT(n,a))&&(Ue=Qu(H,"onBeforeInput"),0<Ue.length&&(we=new Sm("onBeforeInput","beforeinput",null,a,Q),J.push({event:we,listeners:Ue}),we.data=De)),mR(J,n,H,a,Q)}f0(J,r)})}function $o(n,r,a){return{instance:n,listener:r,currentTarget:a}}function Qu(n,r){for(var a=r+"Capture",l=[];n!==null;){var d=n,v=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||v===null||(d=no(n,a),d!=null&&l.unshift($o(n,d,v)),d=no(n,r),d!=null&&l.push($o(n,d,v))),n.tag===3)return l;n=n.return}return[]}function SR(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function h0(n,r,a,l,d){for(var v=r._reactName,_=[];a!==null&&a!==l;){var w=a,O=w.alternate,H=w.stateNode;if(w=w.tag,O!==null&&O===l)break;w!==5&&w!==26&&w!==27||H===null||(O=H,d?(H=no(a,v),H!=null&&_.unshift($o(a,H,O))):d||(H=no(a,v),H!=null&&_.push($o(a,H,O)))),a=a.return}_.length!==0&&n.push({event:r,listeners:_})}var xR=/\r\n?/g,wR=/\u0000|\uFFFD/g;function p0(n){return(typeof n=="string"?n:""+n).replace(xR,`
11`).replace(wR,"")}function v0(n,r){return r=p0(r),p0(n)===r}function Qe(n,r,a,l,d,v){switch(a){case"children":typeof l=="string"?r==="body"||r==="textarea"&&l===""||Gs(n,l):(typeof l=="number"||typeof l=="bigint")&&r!=="body"&&Gs(n,""+l);break;case"className":eu(n,"class",l);break;case"tabIndex":eu(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":eu(n,a,l);break;case"style":vm(n,l,v);break;case"data":if(r!=="object"){eu(n,"data",l);break}case"src":case"href":if(l===""&&(r!=="a"||a!=="href")){n.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(a);break}l=nu(""+l),n.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(a==="formAction"?(r!=="input"&&Qe(n,r,"name",d.name,d,null),Qe(n,r,"formEncType",d.formEncType,d,null),Qe(n,r,"formMethod",d.formMethod,d,null),Qe(n,r,"formTarget",d.formTarget,d,null)):(Qe(n,r,"encType",d.encType,d,null),Qe(n,r,"method",d.method,d,null),Qe(n,r,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(a);break}l=nu(""+l),n.setAttribute(a,l);break;case"onClick":l!=null&&(n.onclick=Si);break;case"onScroll":l!=null&&Pe("scroll",n);break;case"onScrollEnd":l!=null&&Pe("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(d.children!=null)throw Error(s(60));n.innerHTML=a}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}a=nu(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,""+l):n.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
11ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,""):n.removeAttribute(a);break;case"capture":case"download":l===!0?n.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,l):n.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(a,l):n.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(a):n.setAttribute(a,l);break;case"popover":Pe("beforetoggle",n),Pe("toggle",n),Wl(n,"popover",l);break;case"xlinkActuate":bi(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":bi(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":bi(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":bi(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":bi(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":bi(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":bi(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":bi(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":bi(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Wl(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=ZE.get(a)||a,Wl(n,a,l))}}function zh(n,r,a,l,d,v){switch(a){case"style":vm(n,l,v);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(d.children!=null)throw Error(s(60));n.innerHTML=a}}break;case"children":typeof l=="string"?Gs(n,l):(typeof l=="number"||typeof l=="bigint")&&Gs(n,""+l);break;case"onScroll":l!=null&&Pe("scroll",n);break;case"onScrollEnd":l!=null&&Pe("scrollend",n);break;case"onClick":l!=null&&(n.onclick=Si);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!am.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),r=a.slice(2,d?a.length-7:void 0),v=n[rn]||null,v=v!=null?v[a]:null,typeof v=="function"&&n.removeEventListener(r,v,d),typeof l=="function")){typeof v!="function"&&v!==null&&(a in n?n[a]=null:n.hasAttribute(a)&&n.removeAttribute(a)),n.addEventListener(r,l,d);break e}a in n?n[a]=l:l===!0?n.setAttribute(a,""):Wl(n,a,l)}}}function qt(n,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",n),Pe("load",n);var l=!1,d=!1,v;for(v in a)if(a.hasOwnProperty(v)){var _=a[v];if(_!=null)switch(v){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Qe(n,r,v,_,a,null)}}d&&Qe(n,r,"srcSet",a.srcSet,a,null),l&&Qe(n,r,"src",a.src,a,null);return;case"input":Pe("invalid",n);var w=v=_=d=null,O=null,H=null;for(l in a)if(a.hasOwnProperty(l)){var Q=a[l];if(Q!=null)switch(l){case"name":d=Q;break;case"type":_=Q;break;case"checked":O=Q;break;case"defaultChecked":H=Q;break;case"value":v=Q;break;case"defaultValue":w=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(s(137,r));break;default:Qe(n,r,l,Q,a,null)}}fm(n,v,w,O,H,_,d,!1);return;case"select":Pe("invalid",n),l=_=v=null;for(d in a)if(a.hasOwnProperty(d)&&(w=a[d],w!=null))switch(d){case"value":v=w;break;case"defaultValue":_=w;break;case"multiple":l=w;default:Qe(n,r,d,w,a,null)}r=v,a=_,n.multiple=!!l,r!=null?Is(n,!!l,r,!1):a!=null&&Is(n,!!l,a,!0);return;case"textarea":Pe("invalid",n),v=d=l=null;for(_ in a)if(a.hasOwnProperty(_)&&(w=a[_],w!=null))switch(_){case"value":l=w;break;case"defaultValue":d=w;break;case"children":v=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(s(91));break;default:Qe(n,r,_,w,a,null)}hm(n,l,d,v);return;case"option":for(O in a)if(a.hasOwnProperty(O)&&(l=a[O],l!=null))switch(O){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Qe(n,r,O,l,a,null)}return;case"dialog":Pe("beforetoggle",n),Pe("toggle",n),Pe("cancel",n),Pe("close",n);break;case"iframe":case"object":Pe("load",n);break;case"video":case"audio":for(l=0;l<No.length;l++)Pe(No[l],n);break;case"image":Pe("error",n),Pe("load",n);break;case"details":Pe("toggle",n);break;case"embed":case"source":case"link":Pe("error",n),Pe("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in a)if(a.hasOwnProperty(H)&&(l=a[H],l!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Qe(n,r,H,l,a,null)}return;default:if(Kf(r)){for(Q in a)a.hasOwnProperty(Q)&&(l=a[Q],l!==void 0&&zh(n,r,Q,l,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(l=a[w],l!=null&&Qe(n,r,w,l,a,null))}function ER(n,r,a,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,v=null,_=null,w=null,O=null,H=null,Q=null;for(V in a){var J=a[V];if(a.hasOwnProperty(V)&&J!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":O=J;default:l.hasOwnProperty(V)||Qe(n,r,V,null,l,J)}}for(var q in l){var V=l[q];if(J=a[q],l.hasOwnProperty(q)&&(V!=null||J!=null))switch(q){case"type":v=V;break;case"name":d=V;break;case"checked":H=V;break;case"defaultChecked":Q=V;break;case"value":_=V;break;case"defaultValue":w=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,r));break;default:V!==J&&Qe(n,r,q,V,l,J)}}Vf(n,_,w,O,H,Q,v,d);return;
vendor: 7,168 bytes, line 11
11case"select":V=_=w=q=null;for(v in a)if(O=a[v],a.hasOwnProperty(v)&&O!=null)switch(v){case"value":break;case"multiple":V=O;default:l.hasOwnProperty(v)||Qe(n,r,v,null,l,O)}for(d in l)if(v=l[d],O=a[d],l.hasOwnProperty(d)&&(v!=null||O!=null))switch(d){case"value":q=v;break;case"defaultValue":w=v;break;case"multiple":_=v;default:v!==O&&Qe(n,r,d,v,l,O)}r=w,a=_,l=V,q!=null?Is(n,!!a,q,!1):!!l!=!!a&&(r!=null?Is(n,!!a,r,!0):Is(n,!!a,a?[]:"",!1));return;case"textarea":V=q=null;for(w in a)if(d=a[w],a.hasOwnProperty(w)&&d!=null&&!l.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Qe(n,r,w,null,l,d)}for(_ in l)if(d=l[_],v=a[_],l.hasOwnProperty(_)&&(d!=null||v!=null))switch(_){case"value":q=d;break;case"defaultValue":V=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:d!==v&&Qe(n,r,_,d,l,v)}dm(n,q,V);return;case"option":for(var xe in a)if(q=a[xe],a.hasOwnProperty(xe)&&q!=null&&!l.hasOwnProperty(xe))switch(xe){case"selected":n.selected=!1;break;default:Qe(n,r,xe,null,l,q)}for(O in l)if(q=l[O],V=a[O],l.hasOwnProperty(O)&&q!==V&&(q!=null||V!=null))switch(O){case"selected":n.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:Qe(n,r,O,q,l,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ce in a)q=a[Ce],a.hasOwnProperty(Ce)&&q!=null&&!l.hasOwnProperty(Ce)&&Qe(n,r,Ce,null,l,q);for(H in l)if(q=l[H],V=a[H],l.hasOwnProperty(H)&&q!==V&&(q!=null||V!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,r));break;default:Qe(n,r,H,q,l,V)}return;default:if(Kf(r)){for(var Ze in a)q=a[Ze],a.hasOwnProperty(Ze)&&q!==void 0&&!l.hasOwnProperty(Ze)&&zh(n,r,Ze,void 0,l,q);for(Q in l)q=l[Q],V=a[Q],!l.hasOwnProperty(Q)||q===V||q===void 0&&V===void 0||zh(n,r,Q,q,l,V);return}}for(var P in a)q=a[P],a.hasOwnProperty(P)&&q!=null&&!l.hasOwnProperty(P)&&Qe(n,r,P,null,l,q);for(J in l)q=l[J],V=a[J],!l.hasOwnProperty(J)||q===V||q==null&&V==null||Qe(n,r,J,q,l,V)}function g0(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function TR(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var d=a[l],v=d.transferSize,_=d.initiatorType,w=d.duration;if(v&&w&&g0(_)){for(_=0,w=d.responseEnd,l+=1;l<a.length;l++){var O=a[l],H=O.startTime;if(H>w)break;var Q=O.transferSize,J=O.initiatorType;Q&&g0(J)&&(O=O.responseEnd,_+=Q*(O<w?1:(w-H)/(O-H)))}if(--l,r+=8*(v+_)/(d.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Nh=null,$h=null;function Zu(n){return n.nodeType===9?n:n.ownerDocument}function m0(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function y0(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function jh(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Ph=null;function RR(){var n=window.event;return n&&n.type==="popstate"?n===Ph?!1:(Ph=n,!0):(Ph=null,!1)}var _0=typeof setTimeout=="function"?setTimeout:void 0,CR=typeof clearTimeout=="function"?clearTimeout:void 0,b0=typeof Promise=="function"?Promise:void 0,MR=typeof queueMicrotask=="function"?queueMicrotask:typeof b0<"u"?function(n){return b0.resolve(null).then(n).catch(AR)}:_0;function AR(n){setTimeout(function(){throw n})}function wr(n){return n==="head"}function S0(n,r){var a=r,l=0;do{var d=a.nextSibling;if(n.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(l===0){n.removeChild(d),xa(r);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")jo(n.ownerDocument.documentElement);else if(a==="head"){a=n.ownerDocument.head,jo(a);for(var v=a.firstChild;v;){var _=v.nextSibling,w=v.nodeName;v[eo]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&v.rel.toLowerCase()==="stylesheet"||a.removeChild(v),v=_}}else a==="body"&&jo(n.ownerDocument.body);a=d}while(a);xa(r)}function x0(n,r){var a=n;n=0;do{var l=a.nextSibling;if(a.nodeType===1?r?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(r?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(n===0)break;n--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||n++;a=l}while(a)}function Bh(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Bh(a),If(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}n.removeChild(a)}}function OR(n,r,a,l){for(;n.nodeType===1;){var d=a;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[eo])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(v=n.getAttribute("rel"),v==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(v!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(v=n.getAttribute("src"),(v!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&v&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var v=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===v)return n}else return n;if(n=Bn(n.nextSibling),n===null)break}return null}function kR(n,r,a){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Bn(n.nextSibling),n===null))return null;return n}function w0(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=Bn(n.nextSibling),n===null))return null;return n}function Uh(n){return n.data==="$?"||n.data==="$~"}function Hh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function DR(n,r){var a=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||a.readyState!=="loading")r();else{var l=function(){r(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function Bn(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;
vendor: 4,960 bytes, line 11
11if(r==="/$"||r==="/&")return null}}return n}var Fh=null;function E0(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"||a==="/&"){if(r===0)return Bn(n.nextSibling);r--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||r++}n=n.nextSibling}return null}function T0(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(r===0)return n;r--}else a!=="/$"&&a!=="/&"||r++}n=n.previousSibling}return null}function R0(n,r,a){switch(r=Zu(a),n){case"html":if(n=r.documentElement,!n)throw Error(s(452));return n;case"head":if(n=r.head,!n)throw Error(s(453));return n;case"body":if(n=r.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function jo(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);If(n)}var Un=new Map,C0=new Set;function Ju(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ji=Y.d;Y.d={f:LR,r:zR,D:NR,C:$R,L:jR,m:PR,X:UR,S:BR,M:HR};function LR(){var n=ji.f(),r=qu();return n||r}function zR(n){var r=Hs(n);r!==null&&r.tag===5&&r.type==="form"?Iy(r):ji.r(n)}var _a=typeof document>"u"?null:document;function M0(n,r,a){var l=_a;if(l&&typeof r=="string"&&r){var d=Dn(r);d='link[rel="'+n+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),C0.has(d)||(C0.add(d),n={rel:n,crossOrigin:a,href:r},l.querySelector(d)===null&&(r=l.createElement("link"),qt(r,"link",n),$t(r),l.head.appendChild(r)))}}function NR(n){ji.D(n),M0("dns-prefetch",n,null)}function $R(n,r){ji.C(n,r),M0("preconnect",n,r)}function jR(n,r,a){ji.L(n,r,a);var l=_a;if(l&&n&&r){var d='link[rel="preload"][as="'+Dn(r)+'"]';r==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Dn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Dn(a.imageSizes)+'"]')):d+='[href="'+Dn(n)+'"]';var v=d;switch(r){case"style":v=ba(n);break;case"script":v=Sa(n)}Un.has(v)||(n=m({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:n,as:r},a),Un.set(v,n),l.querySelector(d)!==null||r==="style"&&l.querySelector(Po(v))||r==="script"&&l.querySelector(Bo(v))||(r=l.createElement("link"),qt(r,"link",n),$t(r),l.head.appendChild(r)))}}function PR(n,r){ji.m(n,r);var a=_a;if(a&&n){var l=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+Dn(l)+'"][href="'+Dn(n)+'"]',v=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Sa(n)}if(!Un.has(v)&&(n=m({rel:"modulepreload",href:n},r),Un.set(v,n),a.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Bo(v)))return}l=a.createElement("link"),qt(l,"link",n),$t(l),a.head.appendChild(l)}}}function BR(n,r,a){ji.S(n,r,a);var l=_a;if(l&&n){var d=Fs(l).hoistableStyles,v=ba(n);r=r||"default";var _=d.get(v);if(!_){var w={loading:0,preload:null};if(_=l.querySelector(Po(v)))w.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":r},a),(a=Un.get(v))&&qh(n,a);var O=_=l.createElement("link");$t(O),qt(O,"link",n),O._p=new Promise(function(H,Q){O.onload=H,O.onerror=Q}),O.addEventListener("load",function(){w.loading|=1}),O.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Wu(_,r,l)}_={type:"stylesheet",instance:_,count:1,state:w},d.set(v,_)}}}function UR(n,r){ji.X(n,r);var a=_a;if(a&&n){var l=Fs(a).hoistableScripts,d=Sa(n),v=l.get(d);v||(v=a.querySelector(Bo(d)),v||(n=m({src:n,async:!0},r),(r=Un.get(d))&&Ih(n,r),v=a.createElement("script"),$t(v),qt(v,"link",n),a.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},l.set(d,v))}}function HR(n,r){ji.M(n,r);var a=_a;if(a&&n){var l=Fs(a).hoistableScripts,d=Sa(n),v=l.get(d);v||(v=a.querySelector(Bo(d)),v||(n=m({src:n,async:!0,type:"module"},r),(r=Un.get(d))&&Ih(n,r),v=a.createElement("script"),$t(v),qt(v,"link",n),a.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},l.set(d,v))}}function A0(n,r,a,l){var d=(d=le.current)?Ju(d):null;if(!d)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=ba(a.href),a=Fs(d).hoistableStyles,l=a.get(r),l||(l={type:"style",instance:null,count:0,state:null},a.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){n=ba(a.href);var v=Fs(d).hoistableStyles,_=v.get(n);if(_||(d=d.ownerDocument||d,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,_),(v=d.querySelector(Po(n)))&&!v._p&&(_.instance=v,_.state.loading=5),Un.has(n)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Un.set(n,a),v||FR(d,n,a,_.state))),r&&l===null)throw Error(s(528,""));return _}if(r&&l!==null)throw Error(s(529,""));return null;
vendor: 8,975 bytes, line 11
11case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Sa(a),a=Fs(d).hoistableScripts,l=a.get(r),l||(l={type:"script",instance:null,count:0,state:null},a.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function ba(n){return'href="'+Dn(n)+'"'}function Po(n){return'link[rel="stylesheet"]['+n+"]"}function O0(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function FR(n,r,a,l){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=n.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),qt(r,"link",a),$t(r),n.head.appendChild(r))}function Sa(n){return'[src="'+Dn(n)+'"]'}function Bo(n){return"script[async]"+n}function k0(n,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var l=n.querySelector('style[data-href~="'+Dn(a.href)+'"]');if(l)return r.instance=l,$t(l),l;var d=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),$t(l),qt(l,"style",d),Wu(l,a.precedence,n),r.instance=l;case"stylesheet":d=ba(a.href);var v=n.querySelector(Po(d));if(v)return r.state.loading|=4,r.instance=v,$t(v),v;l=O0(a),(d=Un.get(d))&&qh(l,d),v=(n.ownerDocument||n).createElement("link"),$t(v);var _=v;return _._p=new Promise(function(w,O){_.onload=w,_.onerror=O}),qt(v,"link",l),r.state.loading|=4,Wu(v,a.precedence,n),r.instance=v;case"script":return v=Sa(a.src),(d=n.querySelector(Bo(v)))?(r.instance=d,$t(d),d):(l=a,(d=Un.get(v))&&(l=m({},a),Ih(l,d)),n=n.ownerDocument||n,d=n.createElement("script"),$t(d),qt(d,"link",l),n.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(l=r.instance,r.state.loading|=4,Wu(l,a.precedence,n));return r.instance}function Wu(n,r,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,v=d,_=0;_<l.length;_++){var w=l[_];if(w.dataset.precedence===r)v=w;else if(v!==d)break}v?v.parentNode.insertBefore(n,v.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(n,r.firstChild))}function qh(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function Ih(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var ec=null;function D0(n,r,a){if(ec===null){var l=new Map,d=ec=new Map;d.set(a,l)}else d=ec,l=d.get(a),l||(l=new Map,d.set(a,l));if(l.has(n))return l;for(l.set(n,null),a=a.getElementsByTagName(n),d=0;d<a.length;d++){var v=a[d];if(!(v[eo]||v[Bt]||n==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var _=v.getAttribute(r)||"";_=n+_;var w=l.get(_);w?w.push(v):l.set(_,[v])}}return l}function L0(n,r,a){n=n.ownerDocument||n,n.head.insertBefore(a,r==="title"?n.querySelector("head > title"):null)}function qR(n,r,a){if(a===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function z0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function IR(n,r,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=ba(l.href),v=r.querySelector(Po(d));if(v){r=v._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=tc.bind(n),r.then(n,n)),a.state.loading|=4,a.instance=v,$t(v);return}v=r.ownerDocument||r,l=O0(l),(d=Un.get(d))&&qh(l,d),v=v.createElement("link"),$t(v);var _=v;_._p=new Promise(function(w,O){_.onload=w,_.onerror=O}),qt(v,"link",l),a.instance=v}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(n.count++,a=tc.bind(n),r.addEventListener("load",a),r.addEventListener("error",a))}}var Gh=0;function GR(n,r){return n.stylesheets&&n.count===0&&ic(n,n.stylesheets),0<n.count||0<n.imgCount?function(a){var l=setTimeout(function(){if(n.stylesheets&&ic(n,n.stylesheets),n.unsuspend){var v=n.unsuspend;n.unsuspend=null,v()}},6e4+r);0<n.imgBytes&&Gh===0&&(Gh=62500*TR());var d=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&ic(n,n.stylesheets),n.unsuspend)){var v=n.unsuspend;n.unsuspend=null,v()}},(n.imgBytes>Gh?50:800)+r);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(d)}}:null}function tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ic(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var nc=null;function ic(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,nc=new Map,r.forEach(VR,n),nc=null,tc.call(n))}function VR(n,r){if(!(r.state.loading&4)){var a=nc.get(n);if(a)var l=a.get(null);else{a=new Map,nc.set(n,a);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<d.length;v++){var _=d[v];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(a.set(_.dataset.precedence,_),l=_)}l&&a.set(null,l)}d=r.instance,_=d.getAttribute("data-precedence"),v=a.get(_)||l,v===l&&a.set(null,d),a.set(_,d),this.count++,l=tc.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),v?v.parentNode.insertBefore(d,v.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),r.state.loading|=4}}var Uo={$$typeof:C,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function YR(n,r,a,l,d,v,_,w,O){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Uf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uf(0),this.hiddenUpdates=Uf(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=v,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function N0(n,r,a,l,d,v,_,w,O,H,Q,J){return n=new YR(n,r,a,_,O,H,Q,J,w),r=1,v===!0&&(r|=24),v=xn(3,null,null,r),n.current=v,v.stateNode=n,r=Ed(),r.refCount++,n.pooledCache=r,r.refCount++,v.memoizedState={element:l,isDehydrated:a,cache:r},Md(v),n}function $0(n){return n?(n=Js,n):Js}function j0(n,r,a,l,d,v){d=$0(d),l.context===null?l.context=d:l.pendingContext=d,l=dr(r),l.payload={element:a},v=v===void 0?null:v,v!==null&&(l.callback=v),a=hr(n,l,r),a!==null&&(cn(a,n,r),yo(a,n,r))}function P0(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<r?a:r}}function Vh(n,r){P0(n,r),(n=n.alternate)&&P0(n,r)}function B0(n){if(n.tag===13||n.tag===31){var r=Zr(n,67108864);r!==null&&cn(r,n,67108864),Vh(n,67108864)}}function U0(n){if(n.tag===13||n.tag===31){var r=Cn();r=Hf(r);var a=Zr(n,r);a!==null&&cn(a,n,r),Vh(n,r)}}var rc=!0;function KR(n,r,a,l){var d=j.T;j.T=null;var v=Y.p;try{Y.p=2,Yh(n,r,a,l)}finally{Y.p=v,j.T=d}}function XR(n,r,a,l){var d=j.T;j.T=null;var v=Y.p;try{Y.p=8,Yh(n,r,a,l)}finally{Y.p=v,j.T=d}}function Yh(n,r,a,l){if(rc){var d=Kh(l);if(d===null)Lh(n,r,l,sc,a),F0(n,l);else if(ZR(d,n,r,a,l))l.stopPropagation();else if(F0(n,l),r&4&&-1<QR.indexOf(n)){for(;d!==null;){var v=Hs(d);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var _=Vr(v.pendingLanes);if(_!==0){var w=v;for(w.pendingLanes|=2,w.entangledLanes|=2;_;){var O=1<<31-bn(_);w.entanglements[1]|=O,_&=~O}si(v),(Ve&6)===0&&(Hu=$e()+500,zo(0))}}break;case 31:case 13:w=Zr(v,2),w!==null&&cn(w,v,2),qu(),Vh(v,2)}if(v=Kh(l),v===null&&Lh(n,r,l,sc,a),v===d)break;d=v}d!==null&&l.stopPropagation()}else Lh(n,r,l,null,a)}}function Kh(n){return n=Qf(n),Xh(n)}var sc=null;function Xh(n){if(sc=null,n=Us(n),n!==null){var r=u(n);if(r===null)n=null;else{var a=r.tag;if(a===13){if(n=c(r),n!==null)return n;n=null}else if(a===31){if(n=f(r),n!==null)return n;n=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return sc=n,null}function H0(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 3,289 bytes, line 11
11:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Yt()){case ti:return 2;case Yl:return 8;case Kl:case $E:return 32;case Zg:return 268435456;default:return 32}default:return 32}}var Qh=!1,Er=null,Tr=null,Rr=null,Ho=new Map,Fo=new Map,Cr=[],QR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function F0(n,r){switch(n){case"focusin":case"focusout":Er=null;break;case"dragenter":case"dragleave":Tr=null;break;case"mouseover":case"mouseout":Rr=null;break;case"pointerover":case"pointerout":Ho.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fo.delete(r.pointerId)}}function qo(n,r,a,l,d,v){return n===null||n.nativeEvent!==v?(n={blockedOn:r,domEventName:a,eventSystemFlags:l,nativeEvent:v,targetContainers:[d]},r!==null&&(r=Hs(r),r!==null&&B0(r)),n):(n.eventSystemFlags|=l,r=n.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),n)}function ZR(n,r,a,l,d){switch(r){case"focusin":return Er=qo(Er,n,r,a,l,d),!0;case"dragenter":return Tr=qo(Tr,n,r,a,l,d),!0;case"mouseover":return Rr=qo(Rr,n,r,a,l,d),!0;case"pointerover":var v=d.pointerId;return Ho.set(v,qo(Ho.get(v)||null,n,r,a,l,d)),!0;case"gotpointercapture":return v=d.pointerId,Fo.set(v,qo(Fo.get(v)||null,n,r,a,l,d)),!0}return!1}function q0(n){var r=Us(n.target);if(r!==null){var a=u(r);if(a!==null){if(r=a.tag,r===13){if(r=c(a),r!==null){n.blockedOn=r,im(n.priority,function(){U0(a)});return}}else if(r===31){if(r=f(a),r!==null){n.blockedOn=r,im(n.priority,function(){U0(a)});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ac(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var a=Kh(n.nativeEvent);if(a===null){a=n.nativeEvent;var l=new a.constructor(a.type,a);Xf=l,a.target.dispatchEvent(l),Xf=null}else return r=Hs(a),r!==null&&B0(r),n.blockedOn=a,!1;r.shift()}return!0}function I0(n,r,a){ac(n)&&a.delete(r)}function JR(){Qh=!1,Er!==null&&ac(Er)&&(Er=null),Tr!==null&&ac(Tr)&&(Tr=null),Rr!==null&&ac(Rr)&&(Rr=null),Ho.forEac
vendor: 5,396 bytes, line 11
11h(I0),Fo.forEach(I0)}function oc(n,r){n.blockedOn===r&&(n.blockedOn=null,Qh||(Qh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,JR)))}var lc=null;function G0(n){lc!==n&&(lc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){lc===n&&(lc=null);for(var r=0;r<n.length;r+=3){var a=n[r],l=n[r+1],d=n[r+2];if(typeof l!="function"){if(Xh(l||a)===null)continue;break}var v=Hs(a);v!==null&&(n.splice(r,3),r-=3,Kd(v,{pending:!0,data:d,method:a.method,action:l},l,d))}}))}function xa(n){function r(O){return oc(O,n)}Er!==null&&oc(Er,n),Tr!==null&&oc(Tr,n),Rr!==null&&oc(Rr,n),Ho.forEach(r),Fo.forEach(r);for(var a=0;a<Cr.length;a++){var l=Cr[a];l.blockedOn===n&&(l.blockedOn=null)}for(;0<Cr.length&&(a=Cr[0],a.blockedOn===null);)q0(a),a.blockedOn===null&&Cr.shift();if(a=(n.ownerDocument||n).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var d=a[l],v=a[l+1],_=d[rn]||null;if(typeof v=="function")_||G0(a);else if(_){var w=null;if(v&&v.hasAttribute("formAction")){if(d=v,_=v[rn]||null)w=_.formAction;else if(Xh(d)!==null)continue}else w=_.action;typeof w=="function"?a[l+1]=w:(a.splice(l,3),l-=3),G0(a)}}}function V0(){function n(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(_){return d=_})},focusReset:"manual",scroll:"manual"})}function r(){d!==null&&(d(),d=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,d=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),d!==null&&(d(),d=null)}}}function Zh(n){this._internalRoot=n}uc.prototype.render=Zh.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(s(409));var a=r.current,l=Cn();j0(a,l,n,r,null,null)},uc.prototype.unmount=Zh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;j0(n.current,2,null,n,null,null),qu(),r[Bs]=null}};function uc(n){this._internalRoot=n}uc.prototype.unstable_scheduleHydration=function(n){if(n){var r=nm();n={blockedOn:null,target:n,priority:r};for(var a=0;a<Cr.length&&r!==0&&r<Cr[a].priority;a++);Cr.splice(a,0,n),a===0&&q0(n)}};var Y0=t.version;if(Y0!=="19.2.4")throw Error(s(527,Y0,"19.2.4"));Y.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=p(r),n=n!==null?g(n):null,n=n===null?null:n.stateNode,n};var WR={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cc.isDisabled&&cc.supportsFiber)try{Za=cc.inject(WR),_n=cc}catch{}}return sl.createRoot=function(n,r){if(!o(n))throw Error(s(299));var a=!1,l="",d=e_,v=t_,_=n_;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(v=r.onCaughtError),r.onRecoverableError!==void 0&&(_=r.onRecoverableError)),r=N0(n,1,!1,null,null,a,l,null,d,v,_,V0),n[Bs]=r.current,Dh(n),new Zh(r)},sl.hydrateRoot=function(n,r,a){if(!o(n))throw Error(s(299));var l=!1,d="",v=e_,_=t_,w=n_,O=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(v=a.onUncaughtError),a.onCaughtError!==void 0&&(_=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.formState!==void 0&&(O=a.formState)),r=N0(n,1,!0,r,a??null,l,d,O,v,_,w,V0),r.context=$0(null),a=r.current,l=Cn(),l=Hf(l),d=dr(l),d.callback=null,hr(a,d,l),a=l,r.current.lanes=a,Wa(r,a),si(r),n[Bs]=r.current,Dh(n),new uc(r)},sl.version="19.2.4",sl}var PS;function lD(){if(PS)return Gp.exports;PS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Gp.exports=oD(),Gp.exports}var uD=lD();const cD=y1(uD);function Pw(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(i=Pw(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function Bw(){for(var e,t,i=0,s="",o=arguments.length;i<o;i++)(e=arguments[i])&&(t=Pw(e))&&(s&&(s+=" "),s+=t);return s}var fD=Object.defineProperty,dD=(e,t,i)=>t in e?fD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Kp=(e,t,i)=>(dD(e,typeof t!="symbol"?t+"":t,i),i);let hD=class{constructor(){Kp(this,"current",this.detect()),Kp(this,"handoffState","pending"),Kp(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>
vendor: 10,773 bytes, lines 11-14
11"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},mi=new hD;function ql(e){var t;return mi.isServer?null:e==null?document:(t=e?.ownerDocument)!=null?t:document}function mf(e){var t,i;return mi.isServer?null:e==null?document:(i=(t=e?.getRootNode)==null?void 0:t.call(e))!=null?i:document}function Uw(e){var t,i;return(i=(t=mf(e))==null?void 0:t.activeElement)!=null?i:null}function pD(e){return Uw(e)===e}function kf(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function nr(){let e=[],t={addEventListener(i,s,o,u){return i.addEventListener(s,o,u),t.add(()=>i.removeEventListener(s,o,u))},requestAnimationFrame(...i){let s=requestAnimationFrame(...i);return t.add(()=>cancelAnimationFrame(s))},nextFrame(...i){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...i))},setTimeout(...i){let s=setTimeout(...i);return t.add(()=>clearTimeout(s))},microTask(...i){let s={current:!0};return kf(()=>{s.current&&i[0]()}),t.add(()=>{s.current=!1})},style(i,s,o){let u=i.style.getPropertyValue(s);return Object.assign(i.style,{[s]:o}),this.add(()=>{Object.assign(i.style,{[s]:u})})},group(i){let s=nr();return i(s),this.add(()=>s.dispose())},add(i){return e.includes(i)||e.push(i),()=>{let s=e.indexOf(i);if(s>=0)for(let o of e.splice(s,1))o()}},dispose(){for(let i of e.splice(0))i()}};return t}function Df(){let[e]=L.useState(nr);return L.useEffect(()=>()=>e.dispose(),[e]),e}let pn=(e,t)=>{mi.isServer?L.useEffect(e,t):L.useLayoutEffect(e,t)};function $s(e){let t=L.useRef(e);return pn(()=>{t.current=e},[e]),t}let rt=function(e){let t=$s(e);return Te.useCallback((...i)=>t.current(...i),[t])};function Il(e){return L.useMemo(()=>e,Object.values(e))}let vD=L.createContext(void 0);function gD(){return L.useContext(vD)}function eg(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function er(e,t,...i){if(e in t){let o=t[e];return typeof o=="function"?o(...i):o}let s=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(s,er),s}var yf=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(yf||{}),jr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(jr||{});function Gn(){let e=yD();return L.useCallback(t=>mD({mergeRefs:e,...t}),[e])}function mD({ourProps:e,theirProps:t,slot:i,defaultTag:s,features:o,visible:u=!0,name:c,mergeRefs:f}){f=f??_D;let h=Hw(t,e);if(u)return Ec(h,i,s,c,f);let p=o??0;if(p&2){let{static:g=!1,...m}=h;if(g)return Ec(m,i,s,c,f)}if(p&1){let{unmount:g=!0,...m}=h;return er(g?0:1,{0(){return null},1(){return Ec({...m,hidden:!0,style:{display:"none"}},i,s,c,f)}})}return Ec(h,i,s,c,f)}function Ec(e,t={},i,s,o){let{as:u=i,children:c,refName:f="ref",...h}=Xp(e,["unmount","static"]),p=e.ref!==void 0?{[f]:e.ref}:{},g=typeof c=="function"?c(t):c;"className"in h&&h.className&&typeof h.className=="function"&&(h.className=h.className(t)),h["aria-labelledby"]&&h["aria-labelledby"]===h.id&&(h["aria-labelledby"]=void 0);let m={};if(t){let y=!1,b=[];for(let[S,x]of Object.entries(t))typeof x=="boolean"&&(y=!0),x===!0&&b.push(S.replace(/([A-Z])/g,T=>`-${T.toLowerCase()}`));if(y){m["data-headlessui-state"]=b.join(" ");for(let S of b)m[`data-${S}`]=""}}if(Tl(u)&&(Object.keys(Ss(h)).length>0||Object.keys(Ss(m)).length>0))if(!L.isValidElement(g)||Array.isArray(g)&&g.length>1||SD(g)){if(Object.keys(Ss(h)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${s} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Ss(h)).concat(Object.keys(Ss(m))).map(y=>`  - ${y}`).join(`
12`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>`  - ${y}`).join(`
13`)].join(`
14`))}else{let y=g.props,b=y?.className,S=typeof b=="function"?(...E)=>eg(b(...E),h.className):eg(b,h.className),x=S?{className:S}:{},T=Hw(g.props,Ss(Xp(h,["ref"])));for(let E in m)E in T&&delete m[E];return L.cloneElement(g,Object.assign({},T,m,p,{ref:o(bD(g),p.ref)},x))}return L.createElement(u,Object.assign({},Xp(h,["ref"]),!Tl(u)&&p,!Tl(u)&&m),g)}function yD(){let e=L.useRef([]),t=L.useCallback(i=>{for(let s of e.current)s!=null&&(typeof s=="function"?s(i):s.current=i)},[]);return(...i)=>{if(!i.every(s=>s==null))return e.current=i,t}}function _D(...e){return e.every(t=>t==null)?void 0:t=>{for(let i of e)i!=null&&(typeof i=="function"?i(t):i.current=t)}}function Hw(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},i={};for(let s of e)for(let o in s)o.startsWith("on")&&typeof s[o]=="function"?(i[o]!=null||(i[o]=[]),i[o].push(s[o])):t[o]=s[o];if(t.disabled||t["aria-disabled"])for(let s in i)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(s)&&(i[s]=[o=>{var u;return(u=o?.preventDefault)==null?void 0:u.call(o)}]);for(let s in i)Object.assign(t,{[s](o,...u){let c=i[s];for(let f of c){if((o instanceof Event||o?.nativeEvent instanceof Event)&&o.defaultPrevented)return;f(o,...u)}}});return t}function b$(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},i={};for(let s of e)for(let o in s)o.startsWith("on")&&typeof s[o]=="function"?(i[o]!=null||(i[o]=[]),i[o].push(s[o])):t[o]=s[o];for(let s in i)Object.assign(t,{[s](...o){let u=i[s];for(let c of u)c?.(...o)}});return t}function mn(e){var t;return Object.assign(L.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Ss(e){let t=Object.assign({},e);for(let i in t)t[i]===void 0&&delete t[i];return t}function Xp(e,t=[]){let i=Object.assign({},e);for(let s of t)s in i&&delete i[s];return i}function bD(e){return Te.version.split(".")[0]>="19"?e.props.ref:e.ref}function Tl(e){return e===L.Fragment||e===Symbol.for("react.fragment")}function SD(e){return Tl(e.type)}let xD="span";var _f=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(_f||{});function wD(e,t){var i;let{features:s=1,...o}=e,u={ref:t,"aria-hidden":(s&2)===2?!0:(i=o["aria-hidden"])!=null?i:void 0,hidden:(s&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(s&4)===4&&(s&2)!==2&&{display:"none"}}};return Gn()({ourProps:u,theirProps:o,slot:{},defaultTag:xD,name:"Hidden"})}let tg=mn(wD);function ED(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Fr(e){return ED(e)&&"tagName"in e}function tr(e){return Fr(e)&&"accessKey"in e}function Pr(e){return Fr(e)&&"tabIndex"in e}function TD(e){return Fr(e)&&"style"in e}function RD(e){return tr(e)&&e.nodeName==="IFRAME"}function CD(e){return tr(e)&&e.nodeName==="INPUT"}function S$(e){return tr(e)&&e.nodeName==="FIELDSET"}function x$(e){return tr(e)&&e.nodeName==="LEGEND"}let Fw=Symbol();function MD(e,t=!0){return Object.assign(e,{[Fw]:t})}function yi(...e){let t=L.useRef(e);L.useEffect(()=>{t.current=e},[e]);let i=rt(s=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(s):o.current=s)});return e.every(s=>s==null||s?.[Fw])?void 0:i}let qg=L.createContext(null);qg.displayName="DescriptionContext";function qw(){let e=L.useContext(qg);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,qw),t}return e}function AD(){let[e,t]=L.useState([]);return[e.length>0?e.join(" "):void 0,L.useMemo(()=>function(i){let s=rt(u=>(t(c=>[...c,u]),()=>t(c=>{let f=c.slice(),h=f.indexOf(u);return h!==-1&&f.splice(h,1),f}))),o=L.useMemo(()=>({register:s,slot:i.slot,name:i.name,props:i.props,value:i.value}),[s,i.slot,i.name,i.props,i.value]);return Te.createElement(qg.Provider,{value:o},i.children)},[t])]}let OD="p";function kD(e,t){let i=L.useId(),s=gD(),{id:o=`headlessui-description-${i}`,...u}=e,c=qw(),f=yi(t);pn(()=>c.register(o),[o,c.register]);let h=Il({...c.slot,disabled:s||!1}),p={ref:f,...c.props,id:o};return Gn()({ourProps:p,theirProps:u,slot:h,defaultTag:OD,name:c.name||"Description"})}let DD=mn(kD),LD=Object.assign(DD,{});var Iw=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Iw||{});let zD=L.createContext(()=>{});function ND({value:e,children:t}){return Te.createElement(zD.Provider,{value:e},t)}let Gw=class extends Map{constructor(t){super(),this.factory=t}get(t){let i=super.get(t);return i===void 0&&(i=this.factory(t),this.set(t,i)),i}};var $D=Object.defineProperty,jD=(e,t,i)=>t in e?$D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,PD=(e,t,i)=>(jD(e,t+"",i),i),Vw=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},Fn=(e,t,i)=>(Vw(e,t,"read from private field"),i?i.call(e):t.get(e)),Qp=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},BS=(e,t,i,s)=>(Vw(e,t,"write to private field"),t.set(e,i),i),li,hl,pl;let BD=class{constructor(t){Qp(this,li,{}),Qp(this,hl,new Gw(()=>new Set)),Qp(this,pl,new Set),PD(this,"disposables",nr()),BS(this,li,t),mi.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Fn(this,li)}subscribe(t,i){if(mi.isServer)return()=>{};let s={selector:t,callback:i,current:t(Fn(this,li))};return Fn(this,pl).add(s),this.disposables.add(()=>{Fn(this,pl).delete(s)})}on(t,i){return mi.isServer?()=>{}:(Fn(this,hl).get(t).add(i),this.disposables.add(()=>{Fn(this,hl).get(t).delete(i)}))}send(t){let i=this.reduce(Fn(this,li),t);if(i!==Fn(this,li)){BS(this,li,i);for(let s of Fn(this,pl)){let o=s.selector(Fn(this,li));Yw(s.current,o)||(s.current=o,s.callback(o))}for(let s of Fn(this,hl).get(t.type))s(Fn(this,li),t)}}};li=new WeakMap,hl=new WeakMap,pl=new WeakMap;function Yw(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Zp(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Zp(e.entries(),t.entries()):US(e)&&US(t)?Zp(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Zp(e,t){do{let i=e.next(),s=t.next();if(i.done&&s.done)return!0;
14if(i.done||s.done||!Object.is(i.value,s.value))return!1}while(!0)}function US(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var UD=Object.defineProperty,HD=(e,t,i)=>t in e?UD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,HS=(e,t,i)=>(HD(e,typeof t!="symbol"?t+"":t,i),i),FD=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(FD||{});let qD={0(e,t){let i=t.id,s=e.stack,o=e.stack.indexOf(i);if(o!==-1){let u=e.stack.slice();return u.splice(o,1),u.push(i),s=u,{...e,stack:s}}return{...e,stack:[...e.stack,i]}},1(e,t){let i=t.id,s=e.stack.indexOf(i);if(s===-1)return e;let o=e.stack.slice();return o.splice(s,1),{...e,stack:o}}},ID=class Kw extends BD{constructor(){super(...arguments),HS(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),HS(this,"selectors",{isTop:(t,i)=>t.stack[t.stack.length-1]===i,inStack:(t,i)=>t.stack.includes(i)})}static new(){return new Kw({stack:[]})}reduce(t,i){return er(i.type,qD,t,i)}};const Xw=new Gw(()=>ID.new());var Jp={exports:{}},Wp={};var FS;function GD(){if(FS)return Wp;FS=1;var e=Ya();function t(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var i=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,o=e.useRef,u=e.useEffect,c=e.useMemo,f=e.useDebugValue;return Wp.useSyncExternalStoreWithSelector=function(h,p,g,m,y){var b=o(null);if(b.current===null){var S={hasValue:!1,value:null};b.current=S}else S=b.current;b=c(function(){function T(N){if(!E){if(E=!0,A=N,N=m(N),y!==void 0&&S.hasValue){var B=S.value;if(y(B,N))return C=B}return C=N}if(B=C,i(A,N))return B;var k=m(N);return y!==void 0&&y(B,k)?(A=N,B):(A=N,C=k)}var E=!1,A,C,M=g===void 0?null:g;return[function(){return T(p())},M===null?void 0:function(){return T(M())}]},[p,g,m,y]);var x=s(h,b[0],b[1]);return u(function(){S.hasValue=!0,S.value=x},[x]),f(x),x},Wp}var qS;function VD(){return qS||(qS=1,Jp.exports=GD()),Jp.exports}var YD=VD();function Qw(e,t,i=Yw){return YD.useSyncExternalStoreWithSelector(rt(s=>e.subscribe(KD,s)),rt(()=>e.state),rt(()=>e.state),rt(t),i)}function KD(e){return e}function Gl(e,t){let i=L.useId(),s=Xw.get(t),[o,u]=Qw(s,L.useCallback(c=>[s.selectors.isTop(c,i),s.selectors.inStack(c,i)],[s,i]));return pn(()=>{if(e)return s.actions.push(i),()=>s.actions.pop(i)},[s,e,i]),e?u?o:!0:!1}let ng=new Map,Rl=new Map;function IS(e){var t;let i=(t=Rl.get(e))!=null?t:0;return Rl.set(e,i+1),i!==0?()=>GS(e):(ng.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>GS(e))}function GS(e){var t;let i=(t=Rl.get(e))!=null?t:1;if(i===1?Rl.delete(e):Rl.set(e,i-1),i!==1)return;let s=ng.get(e);s&&(s["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",s["aria-hidden"]),e.inert=s.inert,ng.delete(e))}function XD(e,{allowed:t,disallowed:i}={}){let s=Gl(e,"inert-others");pn(()=>{var o,u;if(!s)return;let c=nr();for(let h of(o=i?.())!=null?o:[])h&&c.add(IS(h));let f=(u=t?.())!=null?u:[];for(let h of f){if(!h)continue;let p=ql(h);if(!p)continue;let g=h.parentElement;for(;g&&g!==p.body;){for(let m of g.children)f.some(y=>m.contains(y))||c.add(IS(m));g=g.parentElement}}return c.dispose},[s,t,i])}function QD(e,t,i){let s=$s(o=>{let u=o.getBoundingClientRect();u.x===0&&u.y===0&&u.width===0&&u.height===0&&i()});L.useEffect(()=>{if(!e)return;let o=t===null?null:tr(t)?t:t.current;if(!o)return;let u=nr();if(typeof ResizeObserver<"u"){let c=new ResizeObserver(()=>s.current(o));c.observe(o),u.add(()=>c.disconnect())}if(typeof IntersectionObserver<"u"){let c=new IntersectionObserver(()=>s.current(o));c.observe(o),u.add(()=>c.disconnect())}return()=>u.dispose()},[t,s,e])}let bf=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),ZD=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Qi=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Qi||{}),ig=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ig||{}),JD=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(JD||{});function WD(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(bf)).sort((t,i)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(i.tabIndex||Number.MAX_SAFE_INTEGER)))}function eL(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ZD)).sort((t,i)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(i.tabIndex||Number.MAX_SAFE_INTEGER)))}var Zw=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Zw||{});function tL(e,t=0){var i;return e===((i=ql(e))==null?void 0:i.body)?!1:er(t,{0(){return e.matches(bf)},1(){let s=e;for(;s!==null;){if(s.matches(bf))return!0;s=s.parentElement}return!1}})}var nL=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(nL||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Wi(e){e?.focus({preventScroll:!0})}let iL=["textarea","input"].join(",");function rL(e){var t,i;return(i=(t=e?.matches)==null?void 0:t.call(e,iL))!=null?i:!1}function sL(e,t=i=>i){return e.slice().sort((i,s)=>{let o=t(i),u=t(s);if(o===null||u===null)return 0;let c=o.compareDocumentPosition(u);return c&Node.DOCUMENT_POSITION_FOLLOWING?-1:c&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Cl(e,t,{sorted:i=!0,relativeTo:s=null,skipElements:o=[]}={}){let u=Array.isArray(e)?e.length>0?mf(e[0]):document:mf(e),c=Array.isArray(e)?i?sL(e):e:t&64?eL(e):WD(e);o.length>0&&c.length>1&&(c=c.filter(b=>!o.some(S=>S!=null&&"current"in S?S?.current===b:S===b))),s=s??u?.activeElement;let f=(()=>
vendor: 9,948 bytes, lines 14-15
14{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,c.indexOf(s))-1;if(t&4)return Math.max(0,c.indexOf(s))+1;if(t&8)return c.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=t&32?{preventScroll:!0}:{},g=0,m=c.length,y;do{if(g>=m||g+m<=0)return 0;let b=h+g;if(t&16)b=(b+m)%m;else{if(b<0)return 3;if(b>=m)return 1}y=c[b],y?.focus(p),g+=f}while(y!==Uw(y));return t&6&&rL(y)&&y.select(),2}function Jw(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function aL(){return/Android/gi.test(window.navigator.userAgent)}function VS(){return Jw()||aL()}function Tc(e,t,i,s){let o=$s(i);L.useEffect(()=>{if(!e)return;function u(c){o.current(c)}return document.addEventListener(t,u,s),()=>document.removeEventListener(t,u,s)},[e,t,s])}function Ww(e,t,i,s){let o=$s(i);L.useEffect(()=>{if(!e)return;function u(c){o.current(c)}return window.addEventListener(t,u,s),()=>window.removeEventListener(t,u,s)},[e,t,s])}const YS=30;function oL(e,t,i){let s=$s(i),o=L.useCallback(function(f,h){if(f.defaultPrevented)return;let p=h(f);if(p===null||!p.getRootNode().contains(p)||!p.isConnected)return;let g=(function m(y){return typeof y=="function"?m(y()):Array.isArray(y)||y instanceof Set?y:[y]})(t);for(let m of g)if(m!==null&&(m.contains(p)||f.composed&&f.composedPath().includes(m)))return;return!tL(p,Zw.Loose)&&p.tabIndex!==-1&&f.preventDefault(),s.current(f,p)},[s,t]),u=L.useRef(null);Tc(e,"pointerdown",f=>{var h,p;VS()||(u.current=((p=(h=f.composedPath)==null?void 0:h.call(f))==null?void 0:p[0])||f.target)},!0),Tc(e,"pointerup",f=>{if(VS()||!u.current)return;let h=u.current;return u.current=null,o(f,()=>h)},!0);let c=L.useRef({x:0,y:0});Tc(e,"touchstart",f=>{c.current.x=f.touches[0].clientX,c.current.y=f.touches[0].clientY},!0),Tc(e,"touchend",f=>{let h={x:f.changedTouches[0].clientX,y:f.changedTouches[0].clientY};if(!(Math.abs(h.x-c.current.x)>=YS||Math.abs(h.y-c.current.y)>=YS))return o(f,()=>Pr(f.target)?f.target:null)},!0),Ww(e,"blur",f=>o(f,()=>RD(window.document.activeElement)?window.document.activeElement:null),!0)}function Ig(...e){return L.useMemo(()=>ql(...e),[...e])}function T$(...e){return L.useMemo(()=>mf(...e),[...e])}function eE(e,t,i,s){let o=$s(i);L.useEffect(()=>{e=e??window;function u(c){o.current(c)}return e.addEventListener(t,u,s),()=>e.removeEventListener(t,u,s)},[e,t,s])}function lL(e){return L.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function uL(e,t){let i=e(),s=new Set;return{getSnapshot(){return i},subscribe(o){return s.add(o),()=>s.delete(o)},dispatch(o,...u){let c=t[o].call(i,...u);c&&(i=c,s.forEach(f=>f()))}}}function cL(){let e;return{before({doc:t}){var i;let s=t.documentElement,o=(i=t.defaultView)!=null?i:window;e=Math.max(0,o.innerWidth-s.clientWidth)},after({doc:t,d:i}){let s=t.documentElement,o=Math.max(0,s.clientWidth-s.offsetWidth),u=Math.max(0,e-o);i.style(s,"paddingRight",`${u}px`)}}}function fL(){return Jw()?{before({doc:e,d:t,meta:i}){function s(o){for(let u of i().containers)for(let c of u())if(c.contains(o))return!0;return!1}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let f=nr();f.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>f.dispose()))}let u=(o=window.scrollY)!=null?o:window.pageYOffset,c=null;t.addEventListener(e,"click",f=>{if(Pr(f.target))try{let h=f.target.closest("a");if(!h)return;let{hash:p}=new URL(h.href),g=e.querySelector(p);Pr(g)&&!s(g)&&(c=g)}catch{}},!0),t.group(f=>{t.addEventListener(e,"touchstart",h=>{if(f.dispose(),Pr(h.target)&&TD(h.target))if(s(h.target)){let p=h.target;for(;p.parentElement&&s(p.parentElement);)p=p.parentElement;f.style(p,"overscrollBehavior","contain")}else f.style(h.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",f=>{if(Pr(f.target)){if(CD(f.target))return;if(s(f.target)){let h=f.target;for(;h.parentElement&&h.dataset.headlessuiPortal!==""&&!(h.scrollHeight>h.clientHeight||h.scrollWidth>h.clientWidth);)h=h.parentElement;h.dataset.headlessuiPortal===""&&f.preventDefault()}else f.preventDefault()}},{passive:!1}),t.add(()=>{var f;let h=(f=window.scrollY)!=null?f:window.pageYOffset;u!==h&&window.scrollTo(0,u),c&&c.isConnected&&(c.scrollIntoView({block:"nearest"}),c=null)})})}}:{}}function dL(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function KS(e){let t={};for(let i of e)Object.assign(t,i(t));return t}let Cs=uL(()=>new Map,{PUSH(e,t){var i;let s=(i=this.get(e))!=null?i:{doc:e,count:0,d:nr(),meta:new Set,computedMeta:{}};return s.count++,s.meta.add(t),s.computedMeta=KS(s.meta),this.set(e,s),this},POP(e,t){let i=this.get(e);return i&&(i.count--,i.meta.delete(t),i.computedMeta=KS(i.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},i=[fL(),cL(),dL()];i.forEach(({before:s})=>s?.(t)),i.forEach(({after:s})=>s?.(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Cs.subscribe(()=>{let e=Cs.getSnapshot(),t=new Map;for(let[i]of e)t.set(i,i.documentElement.style.overflow);for(let i of e.values()){let s=t.get(i.doc)==="hidden",o=i.count!==0;(o&&!s||!o&&s)&&Cs.dispatch(i.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",i),i.count===0&&Cs.dispatch("TEARDOWN",i)}});function hL(e,t,i=()=>({containers:[]})){let s=lL(Cs),o=t?s.get(t):void 0,u=o?o.count>0:!1;return pn(()=>{if(!(!t||!e))return Cs.dispatch("PUSH",t,i),()=>Cs.dispatch("POP",t,i)},[e,t]),u}function pL(e,t,i=()=>[document.body]){let s=Gl(e,"scroll-lock");hL(s,t,o=>{var u;return{containers:[...(u=o.containers)!=null?u:[],i]}})}function vL(e=0){let[t,i]=L.useState(e),s=L.useCallback(h=>i(h),[]),o=L.useCallback(h=>i(p=>p|h),[]),u=L.useCallback(h=>(t&h)===h,[t]),c=L.useCallback(h=>i(p=>p&~h),[]),f=L.useCallback(h=>i(p=>p^h),[]);return{flags:t,setFlag:s,addFlag:o,hasFlag:u,removeFlag:c,toggleFlag:f}}var gL={NODE_ENV:"production"},XS,QS;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((XS=process==null?void 0:gL)==null?void 0:XS.NODE_ENV)==="test"&&typeof((QS=Element?.prototype)==null?void 0:QS.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
15`)),[]});var mL=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(mL||{});function yL(e){let t={};for(let i in e)e[i]===!0&&(t[`data-${i}`]="");return t}function _L(e,t,i,s){let[o,u]=L.useState(i),{hasFlag:c,addFlag:f,removeFlag:h}=vL(e&&o?3:0),p=L.useRef(!1),g=L.useRef(!1),m=Df();return pn(()=>{var y;if(e){if(i&&u(!0),!t){i&&f(3);return}return(y=s?.start)==null||y.call(s,i),bL(t,{inFlight:p,prepare(){g.current?g.current=!1:g.current=p.current,p.current=!0,!g.current&&(i?(f(3),h(4)):(f(4),h(2)))},run(){g.current?i?(h(3),f(4)):(h(4),f(3)):i?h(1):f(1)},done(){var b;g.current&&wL(t)||(p.current=!1,h(7),i||u(!1),(b=s?.end)==null||b.call(s,i))}})}},[e,i,t,m]),e?[o,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[i,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function bL(e,{prepare:t,run:i,done:s,inFlight:o}){let u=nr();return xL(e,{prepare:t,inFlight:o}),u.nextFrame(()=>{i(),u.requestAnimationFrame(()=>{u.add(SL(e,s))})}),u.dispose}function SL(e,t){var i,s;let o=nr();if(!e)return o.dispose;let u=!1;o.add(()=>{u=!0});let c=(s=(i=e.getAnimations)==null?void 0:i.call(e).filter(f=>f instanceof CSSTransition))!=null?s:[];return c.length===0?(t(),o.dispose):(Promise.allSettled(c.map(f=>f.finished)).then(()=>{u||t()}),o.dispose)}function xL(e,{inFlight:t,prepare:i}){if(t!=null&&t.current){i();return}let s=e.style.transition;e.style.transition="none",i(),e.offsetHeight,e.style.transition=s}function wL(e){var t,i;return((i=(t=e.getAnimations)==null?void 0:t.call(e))!=null?i:[]).some(s=>s instanceof CSSTransition&&s.playState!=="finished")}function Gg(e,t){let i=L.useRef([]),s=rt(e);L.useEffect(()=>{let o=[...i.current];for(let[u,c]of t.entries())if(i.current[u]!==c){let f=s(t,o);return i.current=t,f}},[s,...t])}let Lf=L.createContext(null);Lf.displayName="OpenClosedContext";var ei=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ei||{});function zf(){return L.useContext(Lf)}function EL({value:e,children:t}){return Te.createElement(Lf.Provider,{value:e},t)}function TL({children:e}){return Te.createElement(Lf.Provider,{value:null},e)}function RL(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let kr=[];RL(()=>{function e(t){if(!Pr(t.target)||t.target===document.body||kr[0]===t.target)return;let i=t.target;i=i.closest(bf),kr.unshift(i??t.target),kr=kr.filter(s=>s!=null&&s.isConnected),kr.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function tE(e){let t=rt(e),i=L.useRef(!1);L.useEffect(()=>(i.current=!1,()=>{i.current=!0,kf(()=>{i.current&&t()})}),[t])}let nE=L.createContext(!1);function CL(){return L.useContext(nE)}function ZS(e){return Te.createElement(nE.Provider,{value:e.force},e.children)}function ML(e){let t=CL(),i=L.useContext(rE),[s,o]=L.useState(()=>{var u;if(!t&&i!==null)return(u=i.current)!=null?u:null;if(mi.isServer)return null;
15let c=e?.getElementById("headlessui-portal-root");if(c)return c;if(e===null)return null;let f=e.createElement("div");return f.setAttribute("id","headlessui-portal-root"),e.body.appendChild(f)});return L.useEffect(()=>{s!==null&&(e!=null&&e.body.contains(s)||e==null||e.body.appendChild(s))},[s,e]),L.useEffect(()=>{t||i!==null&&o(i.current)},[i,o,t]),s}let iE=L.Fragment,AL=mn(function(e,t){let{ownerDocument:i=null,...s}=e,o=L.useRef(null),u=yi(MD(y=>{o.current=y}),t),c=Ig(o.current),f=i??c,h=ML(f),p=L.useContext(rg),g=Df(),m=Gn();return tE(()=>{var y;h&&h.childNodes.length<=0&&((y=h.parentElement)==null||y.removeChild(h))}),h?Ow.createPortal(Te.createElement("div",{"data-headlessui-portal":"",ref:y=>{g.dispose(),p&&y&&g.add(p.register(y))}},m({ourProps:{ref:u},theirProps:s,slot:{},defaultTag:iE,name:"Portal"})),h):null});function OL(e,t){let i=yi(t),{enabled:s=!0,ownerDocument:o,...u}=e,c=Gn();return s?Te.createElement(AL,{...u,ownerDocument:o,ref:i}):c({ourProps:{ref:i},theirProps:u,slot:{},defaultTag:iE,name:"Portal"})}let kL=L.Fragment,rE=L.createContext(null);function DL(e,t){let{target:i,...s}=e,o={ref:yi(t)},u=Gn();return Te.createElement(rE.Provider,{value:i},u({ourProps:o,theirProps:s,defaultTag:kL,name:"Popover.Group"}))}let rg=L.createContext(null);function LL(){let e=L.useContext(rg),t=L.useRef([]),i=rt(u=>(t.current.push(u),e&&e.register(u),()=>s(u))),s=rt(u=>{let c=t.current.indexOf(u);c!==-1&&t.current.splice(c,1),e&&e.unregister(u)}),o=L.useMemo(()=>({register:i,unregister:s,portals:t}),[i,s,t]);return[t,L.useMemo(()=>function({children:u}){return Te.createElement(rg.Provider,{value:o},u)},[o])]}let zL=mn(OL),sE=mn(DL),NL=Object.assign(zL,{Group:sE});function $L(e,t=typeof document<"u"?document.defaultView:null,i){let s=Gl(e,"escape");eE(t,"keydown",o=>{s&&(o.defaultPrevented||o.key===Iw.Escape&&i(o))})}function jL(){var e;let[t]=L.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[i,s]=L.useState((e=t?.matches)!=null?e:!1);return pn(()=>{if(!t)return;function o(u){s(u.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),i}function PL({defaultContainers:e=[],portals:t,mainTreeNode:i}={}){let s=rt(()=>{var o,u;let c=ql(i),f=[];for(let h of e)h!==null&&(Fr(h)?f.push(h):"current"in h&&Fr(h.current)&&f.push(h.current));if(t!=null&&t.current)for(let h of t.current)f.push(h);for(let h of(o=c?.querySelectorAll("html > *, body > *"))!=null?o:[])h!==document.body&&h!==document.head&&Fr(h)&&h.id!=="headlessui-portal-root"&&(i&&(h.contains(i)||h.contains((u=i?.getRootNode())==null?void 0:u.host))||f.some(p=>h.contains(p))||f.push(h));return f});
vendor: 4,234 bytes, line 15
15return{resolveContainers:s,contains:rt(o=>s().some(u=>u.contains(o)))}}let aE=L.createContext(null);function JS({children:e,node:t}){let[i,s]=L.useState(null),o=oE(t??i);return Te.createElement(aE.Provider,{value:o},e,o===null&&Te.createElement(tg,{features:_f.Hidden,ref:u=>{var c,f;if(u){for(let h of(f=(c=ql(u))==null?void 0:c.querySelectorAll("html > *, body > *"))!=null?f:[])if(h!==document.body&&h!==document.head&&Fr(h)&&h!=null&&h.contains(u)){s(h);break}}}}))}function oE(e=null){var t;return(t=L.useContext(aE))!=null?t:e}function BL(){let e=typeof document>"u";return"useSyncExternalStore"in qv?(t=>t.useSyncExternalStore)(qv)(()=>()=>{},()=>!1,()=>!e):!1}function Nf(){let e=BL(),[t,i]=L.useState(mi.isHandoffComplete);return t&&mi.isHandoffComplete===!1&&i(!1),L.useEffect(()=>{t!==!0&&i(!0)},[t]),L.useEffect(()=>mi.handoff(),[]),e?!1:t}function Vg(){let e=L.useRef(!1);return pn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var vl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(vl||{});function UL(){let e=L.useRef(0);return Ww(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function lE(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let i of e.current)Fr(i.current)&&t.add(i.current);return t}let HL="div";var ws=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(ws||{});function FL(e,t){let i=L.useRef(null),s=yi(i,t),{initialFocus:o,initialFocusFallback:u,containers:c,features:f=15,...h}=e;Nf()||(f=0);let p=Ig(i.current);VL(f,{ownerDocument:p});let g=YL(f,{ownerDocument:p,container:i,initialFocus:o,initialFocusFallback:u});KL(f,{ownerDocument:p,container:i,containers:c,previousActiveElement:g});let m=UL(),y=rt(A=>{if(!tr(i.current))return;let C=i.current;(M=>M())(()=>{er(m.current,{[vl.Forwards]:()=>{Cl(C,Qi.First,{skipElements:[A.relatedTarget,u]})},[vl.Backwards]:()=>{Cl(C,Qi.Last,{skipElements:[A.relatedTarget,u]})}})})}),b=Gl(!!(f&2),"focus-trap#tab-lock"),S=Df(),x=L.useRef(!1),T={ref:s,onKeyDown(A){A.key=="Tab"&&(x.current=!0,S.requestAnimationFrame(()=>{x.current=!1}))},onBlur(A){if(!(f&4))return;let C=lE(c);tr(i.current)&&C.add(i.current);let M=A.relatedTarget;Pr(M)&&M.dataset.headlessuiFocusGuard!=="true"&&(uE(C,M)||(x.current?Cl(i.current,er(m.current,{[vl.Forwards]:()=>Qi.Next,[vl.Backwards]:()=>Qi.Previous})|Qi.WrapAround,{relativeTo:A.target}):Pr(A.target)&&Wi(A.target)))}},E=Gn();return Te.createElement(Te.Fragment,null,b&&Te.createElement(tg,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:y,features:_f.Focusable}),E({ourProps:T,theirProps:h,defaultTag:HL,name:"FocusTrap"}),b&&Te.createElement(tg,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:y,features:_f.Focusable}))}let qL=mn(FL),IL=Object.assign(qL,{features:ws});function GL(e=!0){let t=L.useRef(kr.slice());return Gg(([i],[s])=>{s===!0&&i===!1&&kf(()=>{t.current.splice(0)}),s===!1&&i===!0&&(t.current=kr.slice())},[e,kr,t]),rt(()=>{var i;return(i=t.current.find(s=>s!=null&&s.isConnected))!=null?i:null})}function VL(e,{ownerDocument:t}){let i=!!(e&8),s=GL(i);Gg(()=>{i||pD(t?.body)&&Wi(s())},[i]),tE(()=>{i&&Wi(s())})}function YL(e,{ownerDocument:t,container:i,initialFocus:s,initialFocusFallback:o}){let u=L.useRef(null),c=Gl(!!(e&1),"focus-trap#initial-focus"),f=Vg();return Gg(()=>{if(e===0)return;if(!c){o!=null&&o.current&&Wi(o.current);return}let h=i.current;h&&kf(()=>{if(!f.current)return;let p=t?.activeElement;if(s!=null&&s.current){if(s?.current===p){u.current=p;return}}else if(h.contains(p)){u.current=p;return}if(s!=null&&s.current)Wi(s.current);else{if(e&16){if(Cl(h,Qi.First|Qi.AutoFocus)!==ig.Error)return}else if(Cl(h,Qi.First)!==ig.Error)return;if(o!=null&&o.current&&(Wi(o.current),t?.activeElement===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}u.current=t?.activeElement})},[o,c,e]),u}function KL(e,{ownerDocument:t,container:i,containers:s,previousActiveElement:o}){let u=Vg(),c=!!(e&4);eE(t?.defaultView,"focus",f=>{if(!c||!u.current)return;let h=lE(s);tr(i.current)&&h.add(i.current);let p=o.current;
15if(!p)return;let g=f.target;tr(g)?uE(h,g)?(o.current=g,Wi(g)):(f.preventDefault(),f.stopPropagation(),Wi(p)):Wi(o.current)},!0)}function uE(e,t){for(let i of e)if(i.contains(t))return!0;return!1}function cE(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!Tl((t=e.as)!=null?t:dE)||Te.Children.count(e.children)===1}let $f=L.createContext(null);$f.displayName="TransitionContext";var XL=(e=>(e.Visible="visible",e.Hidden="hidden",e))(XL||{});function QL(){let e=L.useContext($f);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function ZL(){let e=L.useContext(jf);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let jf=L.createContext(null);jf.displayName="NestingContext";function Pf(e){return"children"in e?Pf(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function fE(e,t){let i=$s(e),s=L.useRef([]),o=Vg(),u=Df(),c=rt((b,S=jr.Hidden)=>{let x=s.current.findIndex(({el:T})=>T===b);x!==-1&&(er(S,{[jr.Unmount](){s.current.splice(x,1)},[jr.Hidden](){s.current[x].state="hidden"}}),u.microTask(()=>{var T;!Pf(s)&&o.current&&((T=i.current)==null||T.call(i))}))}),f=rt(b=>{let S=s.current.find(({el:x})=>x===b);return S?S.state!=="visible"&&(S.state="visible"):s.current.push({el:b,state:"visible"}),()=>c(b,jr.Unmount)}),h=L.useRef([]),p=L.useRef(Promise.resolve()),g=L.useRef({enter:[],leave:[]}),m=rt((b,S,x)=>{h.current.splice(0),t&&(t.chains.current[S]=t.chains.current[S].filter(([T])=>T!==b)),t?.chains.current[S].push([b,new Promise(T=>{h.current.push(T)})]),t?.chains.current[S].push([b,new Promise(T=>{Promise.all(g.current[S].map(([E,A])=>A)).then(()=>T())}
vendor: 4,154 bytes, line 15
15)]),S==="enter"?p.current=p.current.then(()=>t?.wait.current).then(()=>x(S)):x(S)}),y=rt((b,S,x)=>{Promise.all(g.current[S].splice(0).map(([T,E])=>E)).then(()=>{var T;(T=h.current.shift())==null||T()}).then(()=>x(S))});return L.useMemo(()=>({children:s,register:f,unregister:c,onStart:m,onStop:y,wait:p,chains:g}),[f,c,s,m,y,g,p])}let dE=L.Fragment,hE=yf.RenderStrategy;function JL(e,t){var i,s;let{transition:o=!0,beforeEnter:u,afterEnter:c,beforeLeave:f,afterLeave:h,enter:p,enterFrom:g,enterTo:m,entered:y,leave:b,leaveFrom:S,leaveTo:x,...T}=e,[E,A]=L.useState(null),C=L.useRef(null),M=cE(e),N=yi(...M?[C,t,A]:t===null?[]:[t]),B=(i=T.unmount)==null||i?jr.Unmount:jr.Hidden,{show:k,appear:D,initial:$}=QL(),[X,F]=L.useState(k?"visible":"hidden"),re=ZL(),{register:ie,unregister:oe}=re;pn(()=>ie(C),[ie,C]),pn(()=>{if(B===jr.Hidden&&C.current){if(k&&X!=="visible"){F("visible");return}return er(X,{hidden:()=>oe(C),visible:()=>ie(C)})}},[X,C,ie,oe,k,B]);let ue=Nf();pn(()=>{if(M&&ue&&X==="visible"&&C.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[C,X,ue,M]);let j=$&&!D,Y=D&&k&&$,se=L.useRef(!1),pe=fE(()=>{se.current||(F("hidden"),oe(C))},re),W=rt(ge=>{se.current=!0;let _e=ge?"enter":"leave";pe.onStart(C,_e,ve=>{ve==="enter"?u?.():ve==="leave"&&f?.()})}),R=rt(ge=>{let _e=ge?"enter":"leave";se.current=!1,pe.onStop(C,_e,ve=>{ve==="enter"?c?.():ve==="leave"&&h?.()}),_e==="leave"&&!Pf(pe)&&(F("hidden"),oe(C))});L.useEffect(()=>{M&&o||(W(k),R(k))},[k,M,o]);let I=!(!o||!M||!ue||j),[,K]=_L(I,E,k,{start:W,end:R}),ne=Ss({ref:N,className:((s=eg(T.className,Y&&p,Y&&g,K.enter&&p,K.enter&&K.closed&&g,K.enter&&!K.closed&&m,K.leave&&b,K.leave&&!K.closed&&S,K.leave&&K.closed&&x,!K.transition&&k&&y))==null?void 0:s.trim())||void 0,...yL(K)}),ce=0;X==="visible"&&(ce|=ei.Open),X==="hidden"&&(ce|=ei.Closed),k&&X==="hidden"&&(ce|=ei.Opening),!k&&X==="visible"&&(ce|=ei.Closing);let le=Gn();return Te.createElement(jf.Provider,{value:pe},Te.createElement(EL,{value:ce},le({ourProps:ne,theirProps:T,defaultTag:dE,features:hE,visible:X==="visible",name:"Transition.Child"})))}function WL(e,t){let{show:i,appear:s=!1,unmount:o=!0,...u}=e,c=L.useRef(null),f=cE(e),h=yi(...f?[c,t]:t===null?[]:[t]);Nf();let p=zf();if(i===void 0&&p!==null&&(i=(p&ei.Open)===ei.Open),i===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[g,m]=L.useState(i?"visible":"hidden"),y=fE(()=>{i||m("hidden")}),[b,S]=L.useState(!0),x=L.useRef([i]);pn(()=>{b!==!1&&x.current[x.current.length-1]!==i&&(x.current.push(i),S(!1))},[x,i]);let T=L.useMemo(()=>({show:i,appear:s,initial:b}),[i,s,b]);pn(()=>{i?m("visible"):!Pf(y)&&c.current!==null&&m("hidden")},[i,y]);let E={unmount:o},A=rt(()=>{var N;b&&S(!1),(N=e.beforeEnter)==null||N.call(e)}),C=rt(()=>{var N;b&&S(!1),(N=e.beforeLeave)==null||N.call(e)}),M=Gn();return Te.createElement(jf.Provider,{value:y},Te.createElement($f.Provider,{value:T},M({ourProps:{...E,as:L.Fragment,children:Te.createElement(pE,{ref:h,...E,...u,beforeEnter:A,beforeLeave:C})},theirProps:{},defaultTag:L.Fragment,features:hE,visible:g==="visible",name:"Transition"})))}function ez(e,t){let i=L.useContext($f)!==null,s=zf()!==null;return Te.createElement(Te.Fragment,null,!i&&s?Te.createElement(sg,{ref:t,...e}):Te.createElement(pE,{ref:t,...e}))}let sg=mn(WL),pE=mn(JL),Yg=mn(ez),tz=Object.assign(sg,{Child:Yg,Root:sg});var nz=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(nz||{}),iz=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(iz||{});let rz={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Kg=L.createContext(null);Kg.displayName="DialogContext";function Bf(e){let t=L.useContext(Kg);if(t===null){let i=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Bf),i}return t}function sz(e,t){return er(t.type,rz,e,t)}let WS=mn(function(e,t){let i=L.useId(),{id:s=`headlessui-dialog-${i}`,open:o,onClose:u,initialFocus:c,role:f="dialog",autoFocus:h=!0,__demoMode:p=!1,unmount:g=!1,...m}=e,y=L.useRef(!1);f=(function(){return f==="dialog"||f==="alertdialog"?f:(y.current||(y.current=!0,
15console.warn(`Invalid role [${f}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let b=zf();o===void 0&&b!==null&&(o=(b&ei.Open)===ei.Open);let S=L.useRef(null),x=yi(S,t),T=Ig(S.current),E=o?0:1,[A,C]=L.useReducer(sz,{titleId:null,descriptionId:null,panelRef:L.createRef()}),M=rt(()=>u(!1)),N=rt(K=>C({type:0,id:K})),B=Nf()?E===0:!1,[k,D]=LL(),$={get current(){var K;return(K=A.panelRef.current)!=null?K:S.current}},X=oE(),{resolveContainers:F}=PL({mainTreeNode:X,portals:k,defaultContainers:[$]}),re=b!==null?(b&ei.Closing)===ei.Closing:!1;XD(p||re?!1:B,{allowed:rt(()=>{var K,ne;return[(ne=(K=S.current)==null?void 0:K.closest("[data-headlessui-portal]"))!=null?ne:null]}),disallowed:rt(()=>{var K;return[(K=X?.closest("body > *:not(#headlessui-portal-root)"))!=null?K:null]})});let ie=Xw.get(null);pn(()=>{if(B)return ie.actions.push(s),()=>ie.actions.pop(s)},[ie,s,B]);let oe=Qw(ie,L.useCallback(K=>ie.selectors.isTop(K,s),[ie,s]));oL(oe,F,K=>{K.preventDefault(),M()}),$L(oe,T?.defaultView,K=>{K.preventDefault(),K.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),M()}),pL(p||re?!1:B,T,F),QD(B,S,M);let[ue,j]=AD(),Y=L.useMemo(()=>[{dialogState:E,close:M,setTitleId:N,unmount:g},A],[E,M,N,g,A]),se=Il({open:E===0}),pe={ref:x,id:s,role:f,tabIndex:-1,"aria-modal":p?void 0:E===0?!0:void 0,"aria-labelledby":A.titleId,"aria-describedby":ue,unmount:g},W=!jL(),R=ws.None;B&&!p&&(R|=ws.RestoreFocus,R|=ws.TabLock,h&&(R|=ws.AutoFocus),W&&(R|=ws.InitialFocus));let I=Gn();return Te.createElement(TL,null,Te.createElement(ZS,{force:!0},Te.createElement(NL,null,Te.createElement(Kg.Provider,{value:Y},Te.createElement(sE,{target:S},Te.createElement(ZS,{force:!1},Te.createElement(j,{slot:se},Te.createElement(D,null,Te.createElement(IL,{initialFocus:c,initialFocusFallback:S,containers:F,features:R},Te.createElement(ND,{value:M},I({ourProps:pe,theirProps:m,slot:se,defaultTag:az,features:oz,visible:E===0,name:"Dialog"})))))))))))}),az="div",oz=yf.RenderStrategy|yf.Static;function lz(e,t){let{transition:i=!1,open:s,...o}=e,u=zf(),c=e.hasOwnProperty("open")||u!==null,f=e.hasOwnProperty("onClose");if(!c&&!f)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!c)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!f)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!u&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(s!==void 0||i)&&!o.static?Te.createElement(JS,null,Te.createElement(tz,{show:s,transition:i,unmount:o.unmount},Te.createElement(WS,{ref:t,...o}))):Te.createElement(JS,null,Te.createElement(WS,{ref:t,open:s,...o}))}let uz="div";function cz(e,t){let i=L.useId(),{id:s=`headlessui-dialog-panel-${i}`,transition:o=!1,...u}=e,[{dialogState:c,unmount:f},h]=Bf("Dialog.Panel"),p=yi(t,h.panelRef),g=Il({open:c===0}),m=rt(T=>{T.stopPropagation()}),y={ref:p,id:s,onClick:m},b=o?Yg:L.Fragment,S=o?{unmount:f}:{},x=Gn();return Te.createElement(b,{...S},x({ourProps:y,theirProps:u,slot:g,defaultTag:uz,name:"Dialog.Panel"}))}let fz="div";function dz(e,t){let{transition:i=!1,...s}=e,[{dialogState:o,unmount:u}]=Bf("Dialog.Backdrop"),c=Il({open:o===0}),f={ref:t,"aria-hidden":!0},h=i?Yg:L.Fragment,p=i?{unmount:u}:{},g=Gn();return Te.createElement(h,{...p},g({ourProps:f,theirProps:s,slot:c,defaultTag:fz,name:"Dialog.Backdrop"}))}let hz="h2";function pz(e,t){let i=L.useId(),{id:s=`headlessui-dialog-title-${i}`,...o}=e,[{dialogState:u,setTitleId:c}]=Bf("Dialog.Title"),f=yi(t);L.useEffect(()=>(c(s),()=>c(null)),[s,c]);let h=Il({open:u===0}),p={ref:f,id:s};return Gn()({ourProps:p,theirProps:o,slot:h,defaultTag:hz,name:"Dialog.Title"})}let vz=mn(lz),vE=mn(cz),gz=mn(dz),gE=mn(pz),mz=Object.assign(vz,{Panel:vE,Title:gE,Description:LD});const yz=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_z=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,s)=>s?s.toUpperCase():i.toLowerCase()),e1=e=>{const t=_z(e);return t.charAt(0).toUpperCase()+t.slice(1)},mE=(...e)=>e.filter((t,i,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===i).join(" ").trim(),bz=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Sz={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const xz=L.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:u,iconNode:c,...f},h)=>L.createElement("svg",{ref:h,...Sz,width:t,height:t,stroke:e,strokeWidth:s?Number(i)*24/Number(t):i,className:mE("lucide",o),...!u&&!bz(f)&&{"aria-hidden":"true"},...f},[...c.map(([p,g])=>L.createElement(p,g)),...Array.isArray(u)?u:[u]]));const yE=(e,t)=>{const i=L.forwardRef(({className:s,...o},u)=>L.createElement(xz,{ref:u,iconNode:t,className:mE(`lucide-${yz(e1(e))}`,`lucide-${e}`,s),...o}));return i.displayName=e1(e),i};const wz=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],t1=yE("triangle-alert",wz);const Ez=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
15],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Tz=yE("x",Ez),_E=L.createContext(void 0);function R$(){const e=L.useContext(_E);if(!e)throw new Error("useContactDialog must be used within ContactDialogProvider");return e}const n1="https://assets.calendly.com/assets/external/widget.js",Rz="https://calendly.com";function Cz(){return window.Calendly?Promise.resolve():new Promise((e,t)=>{const i=()=>t(new Error("Calendly scheduling widget failed to load")),s=document.querySelector(`script[src="${n1}"]`);if(s){if(s.dataset.calendlyFailed==="true"){i();return}s.addEventListener("load",()=>e()),s.addEventListener("error",i);return}const o=document.createElement("script");o.async=!0,o.src=n1,o.addEventListener("load",()=>e()),o.addEventListener("error",()=>{o.dataset.calendlyFailed="true",i()}),document.body.append(o)})}function Mz(e){return e.origin===Rz&&typeof e.data=="object"&&e.data!==null&&e.data.event==="calendly.event_scheduled"}function Az({url:e,className:t,utm:i,onEventScheduled:s}){const o=L.useRef(null),[u,c]=L.useState("loading");return L.useEffect(()=>{const f=o.current;if(!f)return;let h=!1;return c("loading"),Cz().then(()=>{h||!window.Calendly||(window.Calendly.initInlineWidget({url:e,parentElement:f,utm:i}),h||c("ready"))}).catch(()=>{h||c("error")}),()=>{h=!0,f.replaceChildren()}},[e,i]),L.useEffect(()=>{if(!s)return;const f=h=>{Mz(h)&&s()};return window.addEventListener("message",f),()=>window.removeEventListener("message",f)},[s]),u==="error"?ee.jsxs("div",{className:`flex flex-col items-center justify-center gap-3 text-center ${t??""}`,children:[ee.jsx("p",{className:"text-slate-600",children:"We couldn't load the scheduler. You can still book directly:"}),ee.jsx("a",{className:"font-semibold text-blue-600 hover:text-blue-700",href:e,rel:"noreferrer",target:"_blank",children:"Open our booking page"})]}):ee.jsxs("div",{className:`relative ${t??""}`,children:[u==="loading"&&ee.jsx("div",{className:"absolute inset-0 animate-pulse rounded-lg bg-slate-100"}),ee.jsx("div",{className:"h-full w-full",ref:o})]})}const Oz="https://calendly.com/dan-white-inheritly/inheritly-demo";function kz({children:e}){const t=jw(),[i,s]=L.useState(!1),[o,u]=L.useState("direct"),[c,f]=L.useState(),h={isOpen:i,source:o,referralCode:c,open:m=>{const y=m?.source||"direct";u(y),f(m?.referralCode),s(!0),t?.capture("contact_dialog_opened",{source:y,referral_code:m?.referralCode})},close:()=>s(!1)},p=L.useMemo(()=>{const m={utmSource:o,utmMedium:"website"};return c&&(m.utmCampaign=c),m},[o,c]),g=L.useCallback(()=>{t?.capture("demo_scheduled",{source:o,referral_code:c})},[t,o,c]);return ee.jsxs(_E.Provider,{value:h,children:[e,ee.jsxs(mz,{className:"relative z-50",onClose:()=>s(!1),open:i,children:[ee.jsx(gz,{className:"fixed inset-0 bg-black/30 backdrop-blur-sm transition-opacity",transition:!0}),ee.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:ee.jsxs(vE,{className:"flex max-h-[92vh] w-full max-w-2xl flex-col overflow-hidden rounded-2xl bg-white shadow-2xl",transition:!0,children:[ee.jsxs("div",{className:"flex shrink-0 items-start justify-between gap-4 border-slate-100 border-b px-6 py-5",children:[ee.jsxs("div",{children:[ee.jsx(gE,{className:"font-bold font-display text-2xl text-slate-900",children:"Book a demo"}),ee.jsx("p",{className:"mt-1 text-slate-600 text-sm",children:"Pick a time for a 30-minute walkthrough of Inheritly."})]}),ee.jsx("button",{"aria-label":"Close dialog",className:"rounded-lg p-2 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600",onClick:()=>s(!1),type:"button",children:ee.jsx(Tz,{className:"h-5 w-5"})})]}),ee.jsx(Az,{className:"h-[70vh] max-h-[700px] min-h-[480px] w-full",onEventScheduled:g,url:Oz,utm:p})]})})]})]})}function i1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dz(...e){return t=>{let i=!1;const s=e.map(o=>{const u=i1(o,t);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let o=0;o<s.length;o++){const u=s[o];typeof u=="function"?u():i1(e[o],null)}}}}var Lz=Symbol.for("react.lazy"),Sf=qv[" use ".trim().toString()];function zz(e){return typeof e=="object"&&e!==null&&"then"in e}function bE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Lz&&"_payload"in e&&zz(e._payload)}function Nz(e){const t=jz(e),i=L.forwardRef((s,o)=>{let{children:u,...c}=s;bE(u)&&typeof Sf=="function"&&(u=Sf(u._payload));const f=L.Children.toArray(u),h=f.find(Bz);if(h){const p=h.props.children,g=f.map(m=>m===h?L.Children.count(p)>1?L.Children.only(null):L.isValidElement(p)?p.props.children:null:m);return ee.jsx(t,{...c,ref:o,children:L.isValidElement(p)?L.cloneElement(p,void 0,g):null})}return ee.jsx(t,{...c,ref:o,children:u})});return i.displayName=`${e}.Slot`,i}var $z=Nz("Slot");function jz(e){const t=L.forwardRef((i,s)=>{let{children:o,...u}=i;if(bE(o)&&typeof Sf=="function"&&(o=Sf(o._payload)),L.isValidElement(o)){const c=Hz(o),f=Uz(u,o.props);return o.type!==L.Fragment&&(f.ref=s?Dz(s,c):c),L.cloneElement(o,f)}return L.Children.count(o)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Pz=Symbol("radix.slottable");function Bz(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pz}function Uz(e,t){const i={...t};for(const s in t){const o=e[s],u=t[s];/^on[A-Z]/.test(s)?o&&u?i[s]=(...f)=>{const h=u(...f);return o(...f),h}:o&&(i[s]=o):s==="style"?i[s]={...o,...u}
vendor: 9,850 bytes, line 15
15:s==="className"&&(i[s]=[o,u].filter(Boolean).join(" "))}return{...e,...i}}function Hz(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}const r1=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,s1=Bw,SE=(e,t)=>i=>{var s;if(t?.variants==null)return s1(e,i?.class,i?.className);const{variants:o,defaultVariants:u}=t,c=Object.keys(o).map(p=>{const g=i?.[p],m=u?.[p];if(g===null)return null;const y=r1(g)||r1(m);return o[p][y]}),f=i&&Object.entries(i).reduce((p,g)=>{let[m,y]=g;return y===void 0||(p[m]=y),p},{}),h=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((p,g)=>{let{class:m,className:y,...b}=g;return Object.entries(b).every(S=>{let[x,T]=S;return Array.isArray(T)?T.includes({...u,...f}[x]):{...u,...f}[x]===T})?[...p,m,y]:p},[]);return s1(e,c,h,i?.class,i?.className)},Fz=(e,t)=>{const i=new Array(e.length+t.length);for(let s=0;s<e.length;s++)i[s]=e[s];for(let s=0;s<t.length;s++)i[e.length+s]=t[s];return i},qz=(e,t)=>({classGroupId:e,validator:t}),xE=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),xf="-",a1=[],Iz="arbitrary..",Gz=e=>{const t=Yz(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Vz(c);const f=c.split(xf),h=f[0]===""&&f.length>1?1:0;return wE(f,h,t)},getConflictingClassGroupIds:(c,f)=>{if(f){const h=s[c],p=i[c];return h?p?Fz(p,h):h:p||a1}return i[c]||a1}}},wE=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const o=e[t],u=i.nextPart.get(o);if(u){const p=wE(e,t+1,u);if(p)return p}const c=i.validators;if(c===null)return;const f=t===0?e.join(xf):e.slice(t).join(xf),h=c.length;for(let p=0;p<h;p++){const g=c[p];if(g.validator(f))return g.classGroupId}},Vz=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),s=t.slice(0,i);return s?Iz+s:void 0})(),Yz=e=>{const{theme:t,classGroups:i}=e;return Kz(i,t)},Kz=(e,t)=>{const i=xE();for(const s in e){const o=e[s];Xg(o,i,s,t)}return i},Xg=(e,t,i,s)=>{const o=e.length;for(let u=0;u<o;u++){const c=e[u];Xz(c,t,i,s)}},Xz=(e,t,i,s)=>{if(typeof e=="string"){Qz(e,t,i);return}if(typeof e=="function"){Zz(e,t,i,s);return}Jz(e,t,i,s)},Qz=(e,t,i)=>{const s=e===""?t:EE(t,e);s.classGroupId=i},Zz=(e,t,i,s)=>{if(Wz(e)){Xg(e(s),t,i,s);return}t.validators===null&&(t.validators=[]),t.validators.push(qz(i,e))},Jz=(e,t,i,s)=>{const o=Object.entries(e),u=o.length;for(let c=0;c<u;c++){const[f,h]=o[c];Xg(h,EE(t,f),i,s)}},EE=(e,t)=>{let i=e;const s=t.split(xf),o=s.length;for(let u=0;u<o;u++){const c=s[u];let f=i.nextPart.get(c);f||(f=xE(),i.nextPart.set(c,f)),i=f}return i},Wz=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,eN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),s=Object.create(null);const o=(u,c)=>{i[u]=c,t++,t>e&&(t=0,s=i,i=Object.create(null))};return{get(u){let c=i[u];if(c!==void 0)return c;if((c=s[u])!==void 0)return o(u,c),c},set(u,c){u in i?i[u]=c:o(u,c)}}},ag="!",o1=":",tN=[],l1=(e,t,i,s,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:s,isExternal:o}),nN=e=>{const{prefix:t,experimentalParseClassName:i}=e;let s=o=>{const u=[];let c=0,f=0,h=0,p;const g=o.length;for(let x=0;x<g;x++){const T=o[x];if(c===0&&f===0){if(T===o1){u.push(o.slice(h,x)),h=x+1;continue}if(T==="/"){p=x;continue}}T==="["?c++:T==="]"?c--:T==="("?f++:T===")"&&f--}const m=u.length===0?o:o.slice(h);let y=m,b=!1;m.endsWith(ag)?(y=m.slice(0,-1),b=!0):m.startsWith(ag)&&(y=m.slice(1),b=!0);const S=p&&p>h?p-h:void 0;return l1(u,b,y,S)};if(t){const o=t+o1,u=s;s=c=>c.startsWith(o)?u(c.slice(o.length)):l1(tN,!1,c,void 0,!0)}if(i){const o=s;s=u=>i({className:u,parseClassName:o})}return s},iN=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,s)=>{t.set(i,1e6+s)}),i=>{const s=[];let o=[];for(let u=0;u<i.length;u++){const c=i[u],f=c[0]==="[",h=t.has(c);f||h?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(c)):o.push(c)}return o.length>0&&(o.sort(),s.push(...o)),s}},rN=e=>({cache:eN(e.cacheSize),parseClassName:nN(e),sortModifiers:iN(e),postfixLookupClassGroupIds:sN(e),...Gz(e)}),sN=e=>{const t=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let s=0;s<i.length;s++)t[i[s]]=!0;return t},aN=/\s+/,oN=(e,t)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:u,postfixLookupClassGroupIds:c}=t,f=[],h=e.trim().split(aN);let p="";for(let g=h.length-1;g>=0;g-=1){const m=h[g],{isExternal:y,modifiers:b,hasImportantModifier:S,baseClassName:x,maybePostfixModifierPosition:T}=i(m);if(y){p=m+(p.length>0?" "+p:p);continue}let E=!!T,A;if(E){const k=x.substring(0,T);A=s(k);const D=A&&c[A]?s(x):void 0;D&&D!==A&&(A=D,E=!1)}else A=s(x);if(!A){if(!E){p=m+(p.length>0?" "+p:p);continue}if(A=s(x),!A){p=m+(p.length>0?" "+p:p);continue}E=!1}const C=b.length===0?"":b.length===1?b[0]:u(b).join(":"),M=S?C+ag:C,N=M+A;if(f.indexOf(N)>-1)continue;f.push(N);const B=o(A,E);for(let k=0;k<B.length;++k){const D=B[k];f.push(M+D)}p=m+(p.length>0?" "+p:p)}return p},lN=(...e)=>{let t=0,i,s,o="";for(;t<e.length;)(i=e[t++])&&(s=TE(i))&&(o&&(o+=" "),o+=s);return o},TE=e=>{if(typeof e=="string")return e;let t,i="";for(let s=0;s<e.length;s++)e[s]&&(t=TE(e[s]))&&(i&&(i+=" "),i+=t);return i},uN=(e,...t)=>{let i,s,o,u;const c=h=>{const p=t.reduce((g,m)=>m(g),e());return i=rN(p),s=i.cache.get,o=i.cache.set,u=f,f(h)},f=h=>{const p=s(h);if(p)return p;const g=oN(h,i);return o(h,g),g};return u=c,(...h)=>u(lN(...h))},cN=[],Lt=e=>{const t=i=>i[e]||cN;return t.isThemeGetter=!0,t},RE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,CE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fN=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ar=e=>fN.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),oi=e=>!!e&&Number.isInteger(Number(e)),ev=e=>e.endsWith("%")&&Le(e.slice(0,-1)),Hi=e=>dN.test(e),ME=()=>!0,mN=e=>hN.test(e)&&!pN.test(e),Qg=()=>!1,yN=e=>vN.test(e),_N=e=>gN.test(e),bN=e=>!me(e)&&!be(e),SN=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),xN=e=>Gr(e,kE,Qg),me=e=>RE.test(e),ms=e=>Gr(e,DE,mN),u1=e=>Gr(e,ON,Le),wN=e=>Gr(e,zE,ME),EN=e=>Gr(e,LE,Qg),c1=e=>Gr(e,AE,Qg),TN=e=>Gr(e,OE,_N),Rc=e=>Gr(e,NE,yN),be=e=>CE.test(e),al=e=>js(e,DE),RN=e=>js(e,LE),f1=e=>js(e,AE),CN=e=>js(e,kE),MN=e=>js(e,OE),Cc=e=>js(e,NE,!0),AN=e=>js(e,zE,!0),Gr=(e,t,i)=>{const s=RE.exec(e);return s?s[1]?t(s[1]):i(s[2]):!1},js=(e,t,i=!1)=>{const s=CE.exec(e);return s?s[1]?t(s[1]):i:!1},AE=e=>e==="position"||e==="percentage",OE=e=>e==="image"||e==="url",kE=e=>e==="length"||e==="size"||e==="bg-size",DE=e=>e==="length",ON=e=>e==="number",LE=e=>e==="family-name",zE=e=>e==="number"||e==="weight",NE=e=>e==="shadow",kN=()=>{const e=Lt("color"),t=Lt("font"),i=Lt("text"),s=Lt("font-weight"),o=Lt("tracking"),u=Lt("leading"),c=Lt("breakpoint"),f=Lt("container"),h=Lt("spacing"),p=Lt("radius"),g=Lt("shadow"),m=Lt("inset-shadow"),y=Lt("text-shadow"),b=Lt("drop-shadow"),S=Lt("blur"),x=Lt("perspective"),T=Lt("aspect"),E=Lt("ease"),A=Lt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...M(),be,me],B=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],D=()=>[be,me,h],$=()=>[Ar,"full","auto",...D()],X=()=>[oi,"none","subgrid",be,me],F=()=>["auto",{span:["full",oi,be,me]},oi,be,me],re=()=>[oi,"auto",be,me],ie=()=>["auto","min","max","fr",be,me],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...D()],Y=()=>[Ar,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],se=()=>[Ar,"screen","full","dvw","lvw","svw","min","max","fit",...D()],pe=()=>[Ar,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],W=()=>[e,be,me],R=()=>[...M(),f1,c1,{position:[be,me]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",CN,xN,{size:[be,me]}],ne=()=>[ev,al,ms],ce=()=>["","none","full",p,be,me],le=()=>["",Le,al,ms],ge=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Le,ev,f1,c1],st=()=>["","none",S,be,me],pt=()=>["none",Le,be,me],at=()=>["none",Le,be,me],Nt=()=>[Le,be,me],ot=()=>[Ar,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Hi],breakpoint:[Hi],color:[ME],container:[Hi],"drop-shadow":[Hi],ease:["in","out","in-out"],font:[bN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Hi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Hi],shadow:[Hi],spacing:["px",Le],text:[Hi],"text-shadow":[Hi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ar,me,be,T]}],container:["container"],"container-type":[{"@container":["","normal","size",be,me]}
vendor: 6,142 bytes, line 15
15],"container-named":[SN],columns:[{columns:[Le,me,be,f]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[oi,"auto",be,me]}],basis:[{basis:[Ar,"full","auto",f,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Ar,"auto","initial","none",me]}],grow:[{grow:["",Le,be,me]}],shrink:[{shrink:["",Le,be,me]}],order:[{order:[oi,"first","last","none",be,me]}],"grid-cols":[{"grid-cols":X()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":X()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...se()]}],"min-inline-size":[{"min-inline":["auto",...se()]}],"max-inline-size":[{"max-inline":["none",...se()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[f,"screen",...Y()]}],"min-w":[{"min-w":[f,"screen","none",...Y()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",i,al,ms]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,AN,wN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ev,me]}],"font-family":[{font:[RN,EN,t]}],"font-features":[{"font-features":[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,be,me]}],"line-clamp":[{"line-clamp":[Le,"none",be,u1]}],leading:[{leading:[u,...D()]}],"list-image":[{"list-image":["none",be,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",be,ms]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[Le,"auto",be,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"tab-size":[{tab:[oi,be,me]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oi,be,me],radial:["",be,me],conic:[oi,be,me]},MN,TN]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:ne()}
vendor: 7,427 bytes, line 15
15],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,be,me]}],"outline-w":[{outline:["",Le,al,ms]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",g,Cc,Rc]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",m,Cc,Rc]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[Le,ms]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",y,Cc,Rc]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[Le,be,me]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[be,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,me]}],filter:[{filter:["","none",be,me]}],blur:[{blur:st()}],brightness:[{brightness:[Le,be,me]}],contrast:[{contrast:[Le,be,me]}],"drop-shadow":[{"drop-shadow":["","none",b,Cc,Rc]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",Le,be,me]}],"hue-rotate":[{"hue-rotate":[Le,be,me]}],invert:[{invert:["",Le,be,me]}],saturate:[{saturate:[Le,be,me]}],sepia:[{sepia:["",Le,be,me]}],"backdrop-filter":[{"backdrop-filter":["","none",be,me]}],"backdrop-blur":[{"backdrop-blur":st()}],"backdrop-brightness":[{"backdrop-brightness":[Le,be,me]}],"backdrop-contrast":[{"backdrop-contrast":[Le,be,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,be,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,be,me]}],"backdrop-invert":[{"backdrop-invert":["",Le,be,me]}],"backdrop-opacity":[{"backdrop-opacity":[Le,be,me]}],"backdrop-saturate":[{"backdrop-saturate":[Le,be,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,be,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",be,me]}],ease:[{ease:["linear","initial",E,be,me]}],delay:[{delay:[Le,be,me]}],animate:[{animate:["none",A,be,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,be,me]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:pt()}],"rotate-x":[{"rotate-x":pt()}],"rotate-y":[{"rotate-y":pt()}],"rotate-z":[{"rotate-z":pt()}],scale:[{scale:at()}],"scale-x":[{"scale-x":at()}],"scale-y":[{"scale-y":at()}],"scale-z":[{"scale-z":at()}],"scale-3d":["scale-3d"],skew:[{skew:Nt()}],"skew-x":[{"skew-x":Nt()}],"skew-y":[{"skew-y":Nt()}],transform:[{transform:[be,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ot()}],"translate-x":[{"translate-x":ot()}],"translate-y":[{"translate-y":ot()}],"translate-z":[{"translate-z":ot()}],"translate-none":["translate-none"],zoom:[{zoom:[oi,be,me]}],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}
15],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":W()}],"scrollbar-track-color":[{"scrollbar-track":W()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be,me]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[Le,al,ms,u1]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},DN=uN(kN);function Xa(...e){return DN(Bw(e))}const LN=SE("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Mc({className:e,variant:t,size:i,asChild:s=!1,...o}){const u=s?$z:"button";return ee.jsx(u,{className:Xa(LN({variant:t,size:i,className:e})),"data-slot":"button",...o})}function d1({className:e,...t}){return ee.jsx("div",{className:Xa("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",e),"data-slot":"empty",...t})}function h1({className:e,...t}){return ee.jsx("div",{className:Xa("flex max-w-sm flex-col items-center gap-2 text-center",e),"data-slot":"empty-header",...t})}const zN=SE("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function p1({className:e,variant:t="default",...i}){return ee.jsx("div",{className:Xa(zN({variant:t,className:e})),"data-slot":"empty-icon","data-variant":t,...i})}function v1({className:e,...t}){return ee.jsx("div",{className:Xa("font-medium text-lg tracking-tight",e),"data-slot":"empty-title",...t})}function g1({className:e,...t}){return ee.jsx("div",{className:Xa("text-muted-foreground text-sm/relaxed [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),"data-slot":"empty-description",...t})}class NN extends L.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,i){this.setState({errorInfo:i});const{reportingMode:s="console",posthog:o,onError:u}=this.props;switch(s){case"posthog":o?.capture("error_boundary_triggered",{error:t.toString(),errorInfo:i.componentStack});break;case"console":console.error("Error Boundary caught an error:",t,i);break;
15case"custom":break;case"none":console.error("Error Boundary caught an error:",t,i);break}u&&u(t,i)}render(){if(this.state.hasError){const{fallback:t,uiMode:i="simple",showRetryActions:s=!0,showDevDetails:o=!1}=this.props;return t||ee.jsx($N,{error:this.state.error,errorInfo:this.state.errorInfo,mode:i,showDevDetails:o,showRetryActions:s})}return this.props.children}}function $N({error:e,errorInfo:t,mode:i,showRetryActions:s,showDevDetails:o}){const u=jw(),c=()=>{u?.capture("error_boundary_retry_clicked"),window.location.reload()},f=()=>{u?.capture("error_boundary_home_clicked"),window.location.href="/"};switch(i){case"simple":return ee.jsx("div",{className:"flex min-h-screen items-center justify-center p-6",children:ee.jsxs(d1,{children:[ee.jsxs(h1,{children:[ee.jsx(p1,{variant:"icon",children:ee.jsx(t1,{})}),ee.jsx(v1,{children:"Oops! Something went wrong"}),ee.jsx(g1,{children:"We apologize for the inconvenience. Please try refreshing the page."})]}),s&&ee.jsxs("div",{className:"mt-4 flex gap-2",children:[ee.jsx(Mc,{onClick:c,type:"button",children:"Try Again"}),ee.jsx(Mc,{onClick:f,type:"button",variant:"outline",children:"Go Home"})]})]})});case"detailed":return ee.jsx("div",{className:"flex min-h-screen items-center justify-center p-6",children:ee.jsxs("div",{className:"w-full max-w-2xl space-y-6",children:[ee.jsxs(d1,{children:[ee.jsxs(h1,{children:[ee.jsx(p1,{variant:"icon",children:ee.jsx(t1,{})}),ee.jsx(v1,{children:"Application Error"}),ee.jsx(g1,{children:"An unexpected error occurred. Our team has been notified."})]}),s&&ee.jsxs("div",{className:"mt-4 flex gap-2",children:[ee.jsx(Mc,{onClick:c,type:"button",children:"Reload Page"}),ee.jsx(Mc,{onClick:f,type:"button",variant:"outline",children:"Return Home"})]})]}),o&&!1]})});case"custom":return ee.jsx("div",{style:{padding:"2rem",textAlign:"center"},children:ee.jsx("p",{children:"Please implement a custom fallback component"})});default:return ee.jsx("div",{style:{padding:"2rem",textAlign:"center"},children:ee.jsx("h2",{children:"Something went wrong"})})}}const jN=new Set(["/cookies","/privacy"]);function PN(){const e=Wk({select:s=>s.location.pathname}),t=jN.has(e),i=L.useRef(null);return L.useEffect(()=>{const s=i.current===null,o=i.current!==t;(s||o)&&(t?zs.opt_out_capturing():jl()&&zs.opt_in_capturing(),i.current=t)},[t]),ee.jsxs(NN,{fallback:ee.jsx("div",{children:"Something went wrong. Please try again later."}),reportingMode:t?"console":"posthog",uiMode:"simple",children:[ee.jsx(zw,{}),!t&&ee.jsx(KA,{})]})}const Qa=Bk({component:PN}),BN="modulepreload",UN=function(e){return"/"+e},m1={},Vl=function(t,i,s){let o=Promise.resolve();if(i&&i.length>0){let c=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),h=f?.nonce||f?.getAttribute("nonce");o=c(i.map(p=>{if(p=UN(p),p in m1)return;m1[p]=!0;const g=p.endsWith(".css"),m=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const y=document.createElement("link");if(y.rel=g?"stylesheet":BN,g||(y.as="script"),y.crossOrigin="",y.href=p,h&&y.setAttribute("nonce",h),document.head.appendChild(y),g)return new Promise((b,S)=>{y.addEventListener("load",b),y.addEventListener("error",()=>S(Error(`Unable to preload CSS for ${p}`)))})}))}function u(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return o.then(c=>{for(const f of c||[])f.status==="rejected"&&u(f.reason);return t().catch(u)})},HN=()=>Vl(()=>import("./terms-YwRh7nBM.js"),__vite__mapDeps([0,1])),FN=Ns("/terms")({component:Fl(HN,"component")}),qN=()=>Vl(()=>import("./referral-CTsmCnZj.js"),__vite__mapDeps([2,3,1])),IN=Ns("/referral")({component:Fl(qN,"component")}),GN=()=>Vl(()=>import("./privacy-CYhLSggP.js"),__vite__mapDeps([4,1])),VN=Ns("/privacy")({component:Fl(GN,"component")}),YN=()=>Vl(()=>import("./cookies-BSeaHLIH.js"),__vite__mapDeps([5,1])),KN=Ns("/cookies")({component:Fl(YN,"component")}),XN=()=>Vl(()=>import("./index-oqzXtx7A.js"),__vite__mapDeps([6,1,3])),QN=Ns("/")({component:Fl(XN,"component")}),ZN=FN.update({id:"/terms",path:"/terms",getParentRoute:()=>Qa}),JN=IN.update({id:"/referral",path:"/referral",getParentRoute:()=>Qa}),WN=VN.update({id:"/privacy",path:"/privacy",getParentRoute:()=>Qa}),e$=KN.update({id:"/cookies",path:"/cookies",getParentRoute:()=>Qa}),t$=QN.update({id:"/",path:"/",getParentRoute:()=>Qa}),n$={IndexRoute:t$,CookiesRoute:e$,PrivacyRoute:WN,ReferralRoute:JN,TermsRoute:ZN},i$=Qa._addFileChildren(n$)._addFileTypes();zs.init("phc_rBoHwHWeGGo0mmuWeJ8tbdaeuEkesPIVN0OVB3AC5bL",{api_host:"https://telemetry.inheritly.ai",debug:!1,persistence:jl()?"localStorage+cookie":"memory",opt_out_capturing_by_default:!jl()});const r$=Xk({routeTree:i$,scrollRestoration:!0}),tv=document.getElementById("root");
15tv&&!tv.innerHTML&&cD.createRoot(tv).render(ee.jsx(L.StrictMode,{children:ee.jsx(tD,{client:zs,children:ee.jsx(kz,{children:ee.jsx(Jk,{router:r$})})})}));export{Cl as $,oL as A,Il as B,ei as C,JS as D,x$ as E,ND as F,Te as G,EL as H,zf as I,yL as J,Gn as K,kw as L,yf as M,_L as N,Uw as O,Pr as P,tL as Q,qv as R,Qw as S,BD as T,Zw as U,mf as V,Iw as W,b$ as X,mn as Y,UL as Z,vl as _,jw as a,Qi as a0,ig as a1,tg as a2,_f as a3,Ig as a4,QD as a5,pL as a6,TL as a7,NL as a8,Vg as a9,kf as aa,sL as ab,Bw as ac,R$ as ad,yE as ae,DN as af,Mw as b,ES as c,S$ as d,nr as e,Ow as f,tr as g,er as h,WD as i,ee as j,tE as k,ql as l,MD as m,pn as n,rt as o,Df as p,T$ as q,L as r,$s as s,LL as t,vn as u,oE as v,PL as w,Xw as x,yi as y,eE as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.