const __vite__mapDeps=(i,m=__vite__mapDeps,d=m.f||(m.f=["assets/index-c4gOH6ES.js","assets/get-Cli3g5kL.js","assets/responsiveObserve-csO_DyC1.js","assets/index-Bc-U7WDc.js","assets/index-b6hDrO8F.js","assets/index-D6cNoFl6.js","assets/copywritings-Bemxgoa7.js","assets/index-BzHVZH2-.js","assets/index-CnTLHB-o.js","assets/index-CsNfSCLc.js","assets/index-C9zmCY6G.js","assets/index-exPGAoOE.js","assets/index-BfZVDuiL.js","assets/index-C1wDC7R0.js","assets/index-DKLhi1Y1.js","assets/logo-BDtXyhSF.js","assets/matrix-BE-PuzED.js","assets/index-DcvQxvOE.js","assets/common-BzPBfyZG.js","assets/index-LYcRLjuG.js","assets/mobile-BsswQv86.js","assets/mobile-CIhS-cJ4.js","assets/mobile-xL3pj8hi.js","assets/mobile-Y0pD7rKt.js","assets/index-BIzR0Low.js","assets/index-Ck8jHNWD.js","assets/mobile-DkzdyoaO.js","assets/copywritings-BYJiBz4p.js","assets/anchor-C2JdjBhi.js","assets/keywordsMap-Bx3w5oDf.js","assets/index-HaPpvCla.js","assets/index-Be2s0003.js","assets/index-DMColwml.js","assets/index-DoUCF1lI.js","assets/index-DsK7VtxV.js","assets/index-BmHzDI7I.js","assets/index-xkvhliur.js","assets/index-C8U8XZwu.js","assets/index-CYOo-r53.js","assets/index-DLARpWbL.js","assets/index-BucIFno1.js","assets/index-DI7NV8q8.js","assets/affix-B06Q2UTT.js","assets/isFunction-Dv4BAP7W.js","assets/isObject-BKUHZtqZ.js","assets/mobile-B59NxgSO.js","assets/content-DkPFnuoh.js","assets/mdPreview-BzIskky0.js","assets/index-Bv9T2JSq.js","assets/parse-CQ4vop6R.js","assets/index-JUIdBJ4Z.js","assets/index-CAnRhIFu.js","assets/index-CABj2mLI.js","assets/index-B2Ak-rls.js","assets/index-CfIHI4pu.js","assets/index-BAvMPX9K.js","assets/load-DF70S3rE.js","assets/index-HlI9Tc45.js","assets/index-CsFcy4u6.js","assets/isPlainObject-IDrTQnqO.js","assets/index-4wE-nLk8.js","assets/index-DfXoqdKK.js","assets/index-BU0EzxbS.js","assets/index-CgENxcSr.js","assets/index-DKDrD6m_.js","assets/index-DDUwWtf1.js","assets/index-B-ngH8vm.js","assets/index-BJyOCBJf.js","assets/index-YInn4IQf.js","assets/index-xTOZOavL.js","assets/index-LDnabB9N.js","assets/index-Cmj-I1lP.js","assets/index-D8oPfIC-.js","assets/mobile-C59ualUN.js","assets/index-BDT5ryij.js","assets/index-Dn2e9QR7.js","assets/index-CSyR9sQY.js","assets/index-CR3Fsmjf.js","assets/index-DRe7NJuC.js","assets/index-DQQ4s_ZN.js","assets/index-1zBvmKZO.js","assets/index-ChoAD5n5.js","assets/index-D3DQ0Brj.js","assets/index-G7UnISpY.js","assets/index-pLus5Eg3.js","assets/index-WRAVRHbq.js","assets/index-H1oVW_Nq.js","assets/index-Csluuc71.js","assets/index-0ST4h_LE.js","assets/index-BkodMQxf.js","assets/index-rFHSi1Ry.js","assets/index-Codpx_H4.js","assets/index-BJ632Dcl.js","assets/index-Dgos0ezs.js","assets/index-C_q3p88v.js","assets/index-DqMfXYwv.js","assets/index-3QFzRo2b.js","assets/index-ByR45n1A.js","assets/document-navigator-C-UyYcOg.js","assets/copywritings-95OGTcqw.js","assets/mobile-CFbaIFlt.js","assets/index-Ch83aDga.js","assets/index-DV7TXqwj.js","assets/index-D1l-xUV_.js","assets/index-BCXz928w.js","assets/index-C1whY94i.js"]))=>i.map(i=>d[i]);import{r as f,m as vi,n as pi,k as mi,j as h,f as Fa,o as gi}from"./get-Cli3g5kL.js";import"./responsiveObserve-csO_DyC1.js";import{B as yi,m as _i,n as bi,M as Cr}from"./index-Bc-U7WDc.js";/**
 * @remix-run/router v1.20.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.apply(this,arguments)}var oe;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(oe||(oe={}));const pn="popstate";function Ei(e){e===void 0&&(e={});function t(n,a){let{pathname:o,search:i,hash:s}=n.location;return Et("",{pathname:o,search:i,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:Rt(a)}return wi(t,r,null,e)}function N(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function at(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xi(){return Math.random().toString(36).substr(2,8)}function mn(e,t){return{usr:e.state,key:e.key,idx:t}}function Et(e,t,r,n){return r===void 0&&(r=null),Q({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Be(t):t,{state:r,key:t&&t.key||n||xi()})}function Rt(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Be(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function wi(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=oe.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(Q({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){s=oe.Pop;let S=c(),C=S==null?null:S-u;u=S,l&&l({action:s,location:E.location,delta:C})}function m(S,C){s=oe.Push;let w=Et(E.location,S,C);u=c()+1;let R=mn(w,u),I=E.createHref(w);try{i.pushState(R,"",I)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;a.location.assign(I)}o&&l&&l({action:s,location:E.location,delta:1})}function _(S,C){s=oe.Replace;let w=Et(E.location,S,C);u=c();let R=mn(w,u),I=E.createHref(w);i.replaceState(R,"",I),o&&l&&l({action:s,location:E.location,delta:0})}function x(S){let C=a.location.origin!=="null"?a.location.origin:a.location.href,w=typeof S=="string"?S:Rt(S);return w=w.replace(/ $/,"%20"),N(C,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,C)}let E={get action(){return s},get location(){return e(a,i)},listen(S){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(pn,d),l=S,()=>{a.removeEventListener(pn,d),l=null}},createHref(S){return t(a,S)},createURL:x,encodeLocation(S){let C=x(S);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:m,replace:_,go(S){return i.go(S)}};return E}var K;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(K||(K={}));const Ri=new Set(["lazy","caseSensitive","path","id","index","children"]);function Si(e){return e.index===!0}function $t(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(N(a.index!==!0||!a.children,"Cannot specify children on an index route"),N(!n[s],"Found a route id collision on id \""+s+`".  Route id's must be globally unique within Data Router usages`),Si(a)){let l=Q({},a,t(a),{id:s});return n[s]=l,l}else{let l=Q({},a,t(a),{id:s,children:void 0});return n[s]=l,a.children&&(l.children=$t(a.children,t,i,n)),l}})}function qe(e,t,r){return r===void 0&&(r="/"),kt(e,t,r,!1)}function kt(e,t,r,n){let a=typeof t=="string"?Be(t):t,o=St(a.pathname||"/",r);if(o==null)return null;let i=ka(e);ji(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let u=zi(o);s=Vi(i[l],u,n)}return s}function Pi(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function ka(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(o,i,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(N(l.relativePath.startsWith(n),"Absolute route path \""+l.relativePath+"\" nested under path "+("\""+n+"\" is not valid. An absolute child route path ")+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Ve([n,l.relativePath]),c=r.concat(l);o.children&&o.children.length>0&&(N(o.index!==!0,"Index routes must not have child routes. Please remove "+("all child routes from route path \""+u+"\".")),ka(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Ii(u,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let l of $a(o.path))a(o,i,l)}),t}function $a(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=$a(n.join("/")),s=[];return s.push(...i.map(l=>l===""?o:[o,l].join("/"))),a&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function ji(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Mi(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Di=/^:[\w-]+$/,Ti=3,Ci=2,Oi=1,Li=10,Ai=-2,gn=e=>e==="*";function Ii(e,t){let r=e.split("/"),n=r.length;return r.some(gn)&&(n+=Ai),t&&(n+=Ci),r.filter(a=>!gn(a)).reduce((a,o)=>a+(Di.test(o)?Ti:o===""?Oi:Li),n)}function Mi(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Vi(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,c=o==="/"?t:t.slice(o.length)||"/",d=yn({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),m=l.route;if(!d&&u&&r&&!n[n.length-1].route.index&&(d=yn({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(a,d.params),i.push({params:a,pathname:Ve([o,d.pathname]),pathnameBase:Fi(Ve([o,d.pathnameBase])),route:m}),d.pathnameBase!=="/"&&(o=Ve([o,d.pathnameBase]))}return i}function yn(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Ui(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((u,c,d)=>{let{paramName:m,isOptional:_}=c;if(m==="*"){let E=s[d]||"";i=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const x=s[d];return _&&!x?u[m]=void 0:u[m]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function Ui(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),at(e==="*"||!e.endsWith("*")||e.endsWith("/*"),"Route path \""+e+"\" will be treated as if it were "+("\""+e.replace(/\*$/,"/*")+"\" because the `*` character must ")+"always follow a `/` in the pattern. To get rid of this warning, "+("please change the route path to \""+e.replace(/\*$/,"/*")+"\"."));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function zi(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return at(!1,"The URL path \""+e+"\" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent "+("encoding ("+t+").")),e}}function St(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Ni(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Be(e):e;return{pathname:r?r.startsWith("/")?r:Bi(r,t):t,search:ki(n),hash:$i(a)}}function Bi(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function ur(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+"a string in <Link to=\"...\"> and the router will parse it for you."}function Ha(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Or(e,t){let r=Ha(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Lr(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Be(e):(a=Q({},e),N(!a.pathname||!a.pathname.includes("?"),ur("?","pathname","search",a)),N(!a.pathname||!a.pathname.includes("#"),ur("#","pathname","hash",a)),N(!a.search||!a.search.includes("#"),ur("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),d-=1;a.pathname=m.join("/")}s=d>=0?t[d]:"/"}let l=Ni(a,s),u=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Ve=e=>e.join("/").replace(/\/\/+/g,"/"),Fi=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ki=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$i=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class mr extends Error{}class Hi{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],N(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((o,i)=>n=i),this.controller=new AbortController;let a=()=>n(new mr("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((o,i)=>{let[s,l]=i;return Object.assign(o,{[s]:this.trackPromise(s,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,void 0,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){if(this.controller.signal.aborted&&n instanceof mr)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&a===void 0){let o=new Error("Deferred data for key \""+r+"\" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.");return Object.defineProperty(t,"_error",{get:()=>o}),this.emit(!1,r),Promise.reject(o)}return a===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(o=>{t.removeEventListener("abort",n),(o||this.done)&&a(o)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return N(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:Wi(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Gi(e){return e instanceof Promise&&e._tracked===!0}function Wi(e){if(!Gi(e))return e;if(e._error)throw e._error;return e._data}const _n=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r;return new Hi(t,n)};class Ht{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Qt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ga=["post","put","patch","delete"],Ki=new Set(Ga),qi=["get",...Ga],Ji=new Set(qi),Yi=new Set([301,302,303,307,308]),Xi=new Set([307,308]),cr={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qi={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vt={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ar=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zi=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Wa="remix-router-transitions";function es(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;N(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let v=e.detectErrorBoundary;a=p=>({hasErrorBoundary:v(p)})}else a=Zi;let o={},i=$t(e.routes,a,void 0,o),s,l=e.basename||"/",u=e.dataStrategy||as,c=e.patchRoutesOnNavigation,d=Q({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,_=new Set,x=null,E=null,S=null,C=e.hydrationData!=null,w=qe(i,e.history.location,l),R=null;if(w==null&&!c){let v=pe(404,{pathname:e.history.location.pathname}),{matches:p,route:g}=Cn(i);w=p,R={[g.id]:v}}w&&!e.hydrationData&&Mt(w,i,e.history.location.pathname).active&&(w=null);let I;if(w){if(w.some(v=>v.route.lazy))I=!1;else if(!w.some(v=>v.route.loader))I=!0;else if(d.v7_partialHydration){let v=e.hydrationData?e.hydrationData.loaderData:null,p=e.hydrationData?e.hydrationData.errors:null;if(p){let g=w.findIndex(b=>p[b.route.id]!==void 0);I=w.slice(0,g+1).every(b=>!yr(b.route,v,p))}else I=w.every(g=>!yr(g.route,v,p))}else I=e.hydrationData!=null;}else if(I=!1,w=[],d.v7_partialHydration){let v=Mt(null,i,e.history.location.pathname);v.active&&v.matches&&(w=v.matches)}let F,y={historyAction:e.history.action,location:e.history.location,matches:w,initialized:I,navigation:cr,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||R,fetchers:new Map,blockers:new Map},Z=oe.Pop,U=!1,B,q=!1,ue=new Map,ne=null,fe=!1,se=!1,Ce=[],Qe=new Set,le=new Map,ke=0,$e=-1,Oe=new Map,xe=new Set,W=new Map,he=new Map,ge=new Set,je=new Map,He=new Map,Lt;function Xo(){if(m=e.history.listen(v=>{let{action:p,location:g,delta:b}=v;if(Lt){Lt(),Lt=void 0;return}at(He.size===0||b!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let P=dn({currentLocation:y.location,nextLocation:g,historyAction:p});if(P&&b!=null){let L=new Promise(z=>{Lt=z});e.history.go(b*-1),It(P,{state:"blocked",location:g,proceed(){It(P,{state:"proceeding",proceed:void 0,reset:void 0,location:g}),L.then(()=>e.history.go(b))},reset(){let z=new Map(y.blockers);z.set(P,vt),ve({blockers:z})}});return}return Ge(p,g)}),r){ys(t,ue);let v=()=>_s(t,ue);t.addEventListener("pagehide",v),ne=()=>t.removeEventListener("pagehide",v)}return y.initialized||Ge(oe.Pop,y.location,{initialHydration:!0}),F}function Qo(){m&&m(),ne&&ne(),_.clear(),B&&B.abort(),y.fetchers.forEach((v,p)=>At(p)),y.blockers.forEach((v,p)=>cn(p))}function Zo(v){return _.add(v),()=>_.delete(v)}function ve(v,p){p===void 0&&(p={}),y=Q({},y,v);let g=[],b=[];d.v7_fetcherPersist&&y.fetchers.forEach((P,L)=>{P.state==="idle"&&(ge.has(L)?b.push(L):g.push(L))}),[..._].forEach(P=>P(y,{deletedFetchers:b,viewTransitionOpts:p.viewTransitionOpts,flushSync:p.flushSync===!0})),d.v7_fetcherPersist&&(g.forEach(P=>y.fetchers.delete(P)),b.forEach(P=>At(P)))}function Ze(v,p,g){var b,P;let{flushSync:L}=g===void 0?{}:g,z=y.actionData!=null&&y.navigation.formMethod!=null&&we(y.navigation.formMethod)&&y.navigation.state==="loading"&&((b=v.state)==null?void 0:b._isRedirect)!==!0,D;p.actionData?Object.keys(p.actionData).length>0?D=p.actionData:D=null:z?D=y.actionData:D=null;let T=p.loaderData?Dn(y.loaderData,p.loaderData,p.matches||[],p.errors):y.loaderData,j=y.blockers;j.size>0&&(j=new Map(j),j.forEach(($,de)=>j.set(de,vt)));let A=U===!0||y.navigation.formMethod!=null&&we(y.navigation.formMethod)&&((P=v.state)==null?void 0:P._isRedirect)!==!0;s&&(i=s,s=void 0),fe||Z===oe.Pop||(Z===oe.Push?e.history.push(v,v.state):Z===oe.Replace&&e.history.replace(v,v.state));let k;if(Z===oe.Pop){let $=ue.get(y.location.pathname);$&&$.has(v.pathname)?k={currentLocation:y.location,nextLocation:v}:ue.has(v.pathname)&&(k={currentLocation:v,nextLocation:y.location})}else if(q){let $=ue.get(y.location.pathname);$?$.add(v.pathname):($=new Set([v.pathname]),ue.set(y.location.pathname,$)),k={currentLocation:y.location,nextLocation:v}}ve(Q({},p,{actionData:D,loaderData:T,historyAction:Z,location:v,initialized:!0,navigation:cr,revalidation:"idle",restoreScrollPosition:hn(v,p.matches||y.matches),preventScrollReset:A,blockers:j}),{viewTransitionOpts:k,flushSync:L===!0}),Z=oe.Pop,U=!1,q=!1,fe=!1,se=!1,Ce=[]}async function rn(v,p){if(typeof v=="number"){e.history.go(v);return}let g=gr(y.location,y.matches,l,d.v7_prependBasename,v,d.v7_relativeSplatPath,p==null?void 0:p.fromRouteId,p==null?void 0:p.relative),{path:b,submission:P,error:L}=bn(d.v7_normalizeFormMethod,!1,g,p),z=y.location,D=Et(y.location,b,p&&p.state);D=Q({},D,e.history.encodeLocation(D));let T=p&&p.replace!=null?p.replace:void 0,j=oe.Push;T===!0?j=oe.Replace:T===!1||P!=null&&we(P.formMethod)&&P.formAction===y.location.pathname+y.location.search&&(j=oe.Replace);let A=p&&"preventScrollReset"in p?p.preventScrollReset===!0:void 0,k=(p&&p.flushSync)===!0,$=dn({currentLocation:z,nextLocation:D,historyAction:j});if($){It($,{state:"blocked",location:D,proceed(){It($,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),rn(v,p)},reset(){let de=new Map(y.blockers);de.set($,vt),ve({blockers:de})}});return}return await Ge(j,D,{submission:P,pendingError:L,preventScrollReset:A,replace:p&&p.replace,enableViewTransition:p&&p.viewTransition,flushSync:k})}function ei(){if(or(),ve({revalidation:"loading"}),y.navigation.state!=="submitting"){if(y.navigation.state==="idle"){Ge(y.historyAction,y.location,{startUninterruptedRevalidation:!0});return}Ge(Z||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation,enableViewTransition:q===!0})}}async function Ge(v,p,g){B&&B.abort(),B=null,Z=v,fe=(g&&g.startUninterruptedRevalidation)===!0,ci(y.location,y.matches),U=(g&&g.preventScrollReset)===!0,q=(g&&g.enableViewTransition)===!0;let b=s||i,P=g&&g.overrideNavigation,L=qe(b,p,l),z=(g&&g.flushSync)===!0,D=Mt(L,b,p.pathname);if(D.active&&D.matches&&(L=D.matches),!L){let{error:J,notFoundMatches:G,route:ee}=ir(p.pathname);Ze(p,{matches:G,loaderData:{},errors:{[ee.id]:J}},{flushSync:z});return}if(y.initialized&&!se&&cs(y.location,p)&&!(g&&g.submission&&we(g.submission.formMethod))){Ze(p,{matches:L},{flushSync:z});return}B=new AbortController;let T=nt(e.history,p,B.signal,g&&g.submission),j;if(g&&g.pendingError)j=[Je(L).route.id,{type:K.error,error:g.pendingError}];else if(g&&g.submission&&we(g.submission.formMethod)){let J=await ti(T,p,g.submission,L,D.active,{replace:g.replace,flushSync:z});if(J.shortCircuited)return;if(J.pendingActionResult){let[G,ee]=J.pendingActionResult;if(ye(ee)&&Qt(ee.error)&&ee.error.status===404){B=null,Ze(p,{matches:J.matches,loaderData:{},errors:{[G]:ee.error}});return}}L=J.matches||L,j=J.pendingActionResult,P=dr(p,g.submission),z=!1,D.active=!1,T=nt(e.history,T.url,T.signal)}let{shortCircuited:A,matches:k,loaderData:$,errors:de}=await ri(T,p,L,D.active,P,g&&g.submission,g&&g.fetcherSubmission,g&&g.replace,g&&g.initialHydration===!0,z,j);A||(B=null,Ze(p,Q({matches:k||L},Tn(j),{loaderData:$,errors:de})))}async function ti(v,p,g,b,P,L){L===void 0&&(L={}),or();let z=ms(p,g);if(ve({navigation:z},{flushSync:L.flushSync===!0}),P){let j=await Vt(b,p.pathname,v.signal);if(j.type==="aborted")return{shortCircuited:!0};if(j.type==="error"){let A=Je(j.partialMatches).route.id;return{matches:j.partialMatches,pendingActionResult:[A,{type:K.error,error:j.error}]}}else if(j.matches)b=j.matches;else{let{notFoundMatches:A,error:k,route:$}=ir(p.pathname);return{matches:A,pendingActionResult:[$.id,{type:K.error,error:k}]}}}let D,T=_t(b,p);if(!T.route.action&&!T.route.lazy)D={type:K.error,error:pe(405,{method:v.method,pathname:p.pathname,routeId:T.route.id})};else if(D=(await ct("action",y,v,[T],b,null))[T.route.id],v.signal.aborted)return{shortCircuited:!0};if(Ye(D)){let j;return L&&L.replace!=null?j=L.replace:j=Sn(D.response.headers.get("Location"),new URL(v.url),l)===y.location.pathname+y.location.search,await We(v,D,!0,{submission:g,replace:j}),{shortCircuited:!0}}if(Me(D))throw pe(400,{type:"defer-action"});if(ye(D)){let j=Je(b,T.route.id);return(L&&L.replace)!==!0&&(Z=oe.Push),{matches:b,pendingActionResult:[j.route.id,D]}}return{matches:b,pendingActionResult:[T.route.id,D]}}async function ri(v,p,g,b,P,L,z,D,T,j,A){let k=P||dr(p,L),$=L||z||Ln(k),de=!fe&&(!d.v7_partialHydration||!T);if(b){if(de){let te=nn(A);ve(Q({navigation:k},te!==void 0?{actionData:te}:{}),{flushSync:j})}let H=await Vt(g,p.pathname,v.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let te=Je(H.partialMatches).route.id;return{matches:H.partialMatches,loaderData:{},errors:{[te]:H.error}}}else if(H.matches)g=H.matches;else{let{error:te,notFoundMatches:tt,route:ht}=ir(p.pathname);return{matches:tt,loaderData:{},errors:{[ht.id]:te}}}}let J=s||i,[G,ee]=xn(e.history,y,g,$,p,d.v7_partialHydration&&T===!0,d.v7_skipActionErrorRevalidation,se,Ce,Qe,ge,W,xe,J,l,A);if(sr(H=>!(g&&g.some(te=>te.route.id===H))||G&&G.some(te=>te.route.id===H)),$e=++ke,G.length===0&&ee.length===0){let H=ln();return Ze(p,Q({matches:g,loaderData:{},errors:A&&ye(A[1])?{[A[0]]:A[1].error}:null},Tn(A),H?{fetchers:new Map(y.fetchers)}:{}),{flushSync:j}),{shortCircuited:!0}}if(de){let H={};if(!b){H.navigation=k;let te=nn(A);te!==void 0&&(H.actionData=te)}ee.length>0&&(H.fetchers=ni(ee)),ve(H,{flushSync:j})}ee.forEach(H=>{Ae(H.key),H.controller&&le.set(H.key,H.controller)});let et=()=>ee.forEach(H=>Ae(H.key));B&&B.signal.addEventListener("abort",et);let{loaderResults:dt,fetcherResults:Te}=await an(y,g,G,ee,v);if(v.signal.aborted)return{shortCircuited:!0};B&&B.signal.removeEventListener("abort",et),ee.forEach(H=>le.delete(H.key));let Re=Nt(dt);if(Re)return await We(v,Re.result,!0,{replace:D}),{shortCircuited:!0};if(Re=Nt(Te),Re)return xe.add(Re.key),await We(v,Re.result,!0,{replace:D}),{shortCircuited:!0};let{loaderData:lr,errors:ft}=jn(y,g,dt,A,ee,Te,je);je.forEach((H,te)=>{H.subscribe(tt=>{(tt||H.done)&&je.delete(te)})}),d.v7_partialHydration&&T&&y.errors&&(ft=Q({},y.errors,ft));let Ke=ln(),Ut=un($e),zt=Ke||Ut||ee.length>0;return Q({matches:g,loaderData:lr,errors:ft},zt?{fetchers:new Map(y.fetchers)}:{})}function nn(v){if(v&&!ye(v[1]))return{[v[0]]:v[1].data};if(y.actionData)return Object.keys(y.actionData).length===0?null:y.actionData}function ni(v){return v.forEach(p=>{let g=y.fetchers.get(p.key),b=pt(void 0,g?g.data:void 0);y.fetchers.set(p.key,b)}),new Map(y.fetchers)}function ai(v,p,g,b){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ae(v);let P=(b&&b.flushSync)===!0,L=s||i,z=gr(y.location,y.matches,l,d.v7_prependBasename,g,d.v7_relativeSplatPath,p,b==null?void 0:b.relative),D=qe(L,z,l),T=Mt(D,L,z);if(T.active&&T.matches&&(D=T.matches),!D){De(v,p,pe(404,{pathname:z}),{flushSync:P});return}let{path:j,submission:A,error:k}=bn(d.v7_normalizeFormMethod,!0,z,b);if(k){De(v,p,k,{flushSync:P});return}let $=_t(D,j),de=(b&&b.preventScrollReset)===!0;if(A&&we(A.formMethod)){oi(v,p,j,$,D,T.active,P,de,A);return}W.set(v,{routeId:p,path:j}),ii(v,p,j,$,D,T.active,P,de,A)}async function oi(v,p,g,b,P,L,z,D,T){or(),W.delete(v);function j(ae){if(!ae.route.action&&!ae.route.lazy){let rt=pe(405,{method:T.formMethod,pathname:g,routeId:p});return De(v,p,rt,{flushSync:z}),!0}return!1}if(!L&&j(b))return;let A=y.fetchers.get(v);Le(v,gs(T,A),{flushSync:z});let k=new AbortController,$=nt(e.history,g,k.signal,T);if(L){let ae=await Vt(P,g,$.signal);if(ae.type==="aborted")return;if(ae.type==="error"){De(v,p,ae.error,{flushSync:z});return}else if(ae.matches){if(P=ae.matches,b=_t(P,g),j(b))return}else{De(v,p,pe(404,{pathname:g}),{flushSync:z});return}}le.set(v,k);let de=ke,G=(await ct("action",y,$,[b],P,v))[b.route.id];if($.signal.aborted){le.get(v)===k&&le.delete(v);return}if(d.v7_fetcherPersist&&ge.has(v)){if(Ye(G)||ye(G)){Le(v,Ie(void 0));return}}else{if(Ye(G))if(le.delete(v),$e>de){Le(v,Ie(void 0));return}else return xe.add(v),Le(v,pt(T)),We($,G,!1,{fetcherSubmission:T,preventScrollReset:D});if(ye(G)){De(v,p,G.error);return}}if(Me(G))throw pe(400,{type:"defer-action"});let ee=y.navigation.location||y.location,et=nt(e.history,ee,k.signal),dt=s||i,Te=y.navigation.state!=="idle"?qe(dt,y.navigation.location,l):y.matches;N(Te,"Didn't find any matches after fetcher action");let Re=++ke;Oe.set(v,Re);let lr=pt(T,G.data);y.fetchers.set(v,lr);let[ft,Ke]=xn(e.history,y,Te,T,ee,!1,d.v7_skipActionErrorRevalidation,se,Ce,Qe,ge,W,xe,dt,l,[b.route.id,G]);Ke.filter(ae=>ae.key!==v).forEach(ae=>{let rt=ae.key,vn=y.fetchers.get(rt),hi=pt(void 0,vn?vn.data:void 0);y.fetchers.set(rt,hi),Ae(rt),ae.controller&&le.set(rt,ae.controller)}),ve({fetchers:new Map(y.fetchers)});let Ut=()=>Ke.forEach(ae=>Ae(ae.key));k.signal.addEventListener("abort",Ut);let{loaderResults:zt,fetcherResults:H}=await an(y,Te,ft,Ke,et);if(k.signal.aborted)return;k.signal.removeEventListener("abort",Ut),Oe.delete(v),le.delete(v),Ke.forEach(ae=>le.delete(ae.key));let te=Nt(zt);if(te)return We(et,te.result,!1,{preventScrollReset:D});if(te=Nt(H),te)return xe.add(te.key),We(et,te.result,!1,{preventScrollReset:D});let{loaderData:tt,errors:ht}=jn(y,Te,zt,void 0,Ke,H,je);if(y.fetchers.has(v)){let ae=Ie(G.data);y.fetchers.set(v,ae)}un(Re),y.navigation.state==="loading"&&Re>$e?(N(Z,"Expected pending action"),B&&B.abort(),Ze(y.navigation.location,{matches:Te,loaderData:tt,errors:ht,fetchers:new Map(y.fetchers)})):(ve({errors:ht,loaderData:Dn(y.loaderData,tt,Te,ht),fetchers:new Map(y.fetchers)}),se=!1)}async function ii(v,p,g,b,P,L,z,D,T){let j=y.fetchers.get(v);Le(v,pt(T,j?j.data:void 0),{flushSync:z});let A=new AbortController,k=nt(e.history,g,A.signal);if(L){let G=await Vt(P,g,k.signal);if(G.type==="aborted")return;if(G.type==="error"){De(v,p,G.error,{flushSync:z});return}else if(G.matches)P=G.matches,b=_t(P,g);else{De(v,p,pe(404,{pathname:g}),{flushSync:z});return}}le.set(v,A);let $=ke,J=(await ct("loader",y,k,[b],P,v))[b.route.id];if(Me(J)&&(J=(await Ir(J,k.signal,!0))||J),le.get(v)===A&&le.delete(v),!k.signal.aborted){if(ge.has(v)){Le(v,Ie(void 0));return}if(Ye(J))if($e>$){Le(v,Ie(void 0));return}else{xe.add(v),await We(k,J,!1,{preventScrollReset:D});return}if(ye(J)){De(v,p,J.error);return}N(!Me(J),"Unhandled fetcher deferred data"),Le(v,Ie(J.data))}}async function We(v,p,g,b){let{submission:P,fetcherSubmission:L,preventScrollReset:z,replace:D}=b===void 0?{}:b;p.response.headers.has("X-Remix-Revalidate")&&(se=!0);let T=p.response.headers.get("Location");N(T,"Expected a Location header on the redirect Response"),T=Sn(T,new URL(v.url),l);let j=Et(y.location,T,{_isRedirect:!0});if(r){let G=!1;if(p.response.headers.has("X-Remix-Reload-Document"))G=!0;else if(Ar.test(T)){const ee=e.history.createURL(T);G=ee.origin!==t.location.origin||St(ee.pathname,l)==null}if(G){D?t.location.replace(T):t.location.assign(T);return}}B=null;let A=D===!0||p.response.headers.has("X-Remix-Replace")?oe.Replace:oe.Push,{formMethod:k,formAction:$,formEncType:de}=y.navigation;!P&&!L&&k&&$&&de&&(P=Ln(y.navigation));let J=P||L;if(Xi.has(p.response.status)&&J&&we(J.formMethod))await Ge(A,j,{submission:Q({},J,{formAction:T}),preventScrollReset:z||U,enableViewTransition:g?q:void 0});else{let G=dr(j,P);await Ge(A,j,{overrideNavigation:G,fetcherSubmission:L,preventScrollReset:z||U,enableViewTransition:g?q:void 0})}}async function ct(v,p,g,b,P,L){let z,D={};try{z=await os(u,v,p,g,b,P,L,o,a)}catch(T){return b.forEach(j=>{D[j.route.id]={type:K.error,error:T}}),D}for(let[T,j]of Object.entries(z))if(ds(j)){let A=j.result;D[T]={type:K.redirect,response:ls(A,g,T,P,l,d.v7_relativeSplatPath)}}else D[T]=await ss(j);return D}async function an(v,p,g,b,P){let L=v.matches,z=ct("loader",v,P,g,p,null),D=Promise.all(b.map(async A=>{if(A.matches&&A.match&&A.controller){let $=(await ct("loader",v,nt(e.history,A.path,A.controller.signal),[A.match],A.matches,A.key))[A.match.route.id];return{[A.key]:$}}else return Promise.resolve({[A.key]:{type:K.error,error:pe(404,{pathname:A.path})}})})),T=await z,j=(await D).reduce((A,k)=>Object.assign(A,k),{});return await Promise.all([vs(p,T,P.signal,L,v.loaderData),ps(p,j,b)]),{loaderResults:T,fetcherResults:j}}function or(){se=!0,Ce.push(...sr()),W.forEach((v,p)=>{le.has(p)&&Qe.add(p),Ae(p)})}function Le(v,p,g){g===void 0&&(g={}),y.fetchers.set(v,p),ve({fetchers:new Map(y.fetchers)},{flushSync:(g&&g.flushSync)===!0})}function De(v,p,g,b){b===void 0&&(b={});let P=Je(y.matches,p);At(v),ve({errors:{[P.route.id]:g},fetchers:new Map(y.fetchers)},{flushSync:(b&&b.flushSync)===!0})}function on(v){return d.v7_fetcherPersist&&(he.set(v,(he.get(v)||0)+1),ge.has(v)&&ge.delete(v)),y.fetchers.get(v)||Qi}function At(v){let p=y.fetchers.get(v);le.has(v)&&!(p&&p.state==="loading"&&Oe.has(v))&&Ae(v),W.delete(v),Oe.delete(v),xe.delete(v),ge.delete(v),Qe.delete(v),y.fetchers.delete(v)}function si(v){if(d.v7_fetcherPersist){let p=(he.get(v)||0)-1;p<=0?(he.delete(v),ge.add(v)):he.set(v,p)}else At(v);ve({fetchers:new Map(y.fetchers)})}function Ae(v){let p=le.get(v);p&&(p.abort(),le.delete(v))}function sn(v){for(let p of v){let g=on(p),b=Ie(g.data);y.fetchers.set(p,b)}}function ln(){let v=[],p=!1;for(let g of xe){let b=y.fetchers.get(g);N(b,"Expected fetcher: "+g),b.state==="loading"&&(xe.delete(g),v.push(g),p=!0)}return sn(v),p}function un(v){let p=[];for(let[g,b]of Oe)if(b<v){let P=y.fetchers.get(g);N(P,"Expected fetcher: "+g),P.state==="loading"&&(Ae(g),Oe.delete(g),p.push(g))}return sn(p),p.length>0}function li(v,p){let g=y.blockers.get(v)||vt;return He.get(v)!==p&&He.set(v,p),g}function cn(v){y.blockers.delete(v),He.delete(v)}function It(v,p){let g=y.blockers.get(v)||vt;N(g.state==="unblocked"&&p.state==="blocked"||g.state==="blocked"&&p.state==="blocked"||g.state==="blocked"&&p.state==="proceeding"||g.state==="blocked"&&p.state==="unblocked"||g.state==="proceeding"&&p.state==="unblocked","Invalid blocker state transition: "+g.state+" -> "+p.state);let b=new Map(y.blockers);b.set(v,p),ve({blockers:b})}function dn(v){let{currentLocation:p,nextLocation:g,historyAction:b}=v;if(He.size===0)return;He.size>1&&at(!1,"A router only supports one blocker at a time");let P=Array.from(He.entries()),[L,z]=P[P.length-1],D=y.blockers.get(L);if(!(D&&D.state==="proceeding")&&z({currentLocation:p,nextLocation:g,historyAction:b}))return L}function ir(v){let p=pe(404,{pathname:v}),g=s||i,{matches:b,route:P}=Cn(g);return sr(),{notFoundMatches:b,route:P,error:p}}function sr(v){let p=[];return je.forEach((g,b)=>{(!v||v(b))&&(g.cancel(),p.push(b),je.delete(b))}),p}function ui(v,p,g){if(x=v,S=p,E=g||null,!C&&y.navigation===cr){C=!0;let b=hn(y.location,y.matches);b!=null&&ve({restoreScrollPosition:b})}return()=>{x=null,S=null,E=null}}function fn(v,p){return E&&E(v,p.map(b=>Pi(b,y.loaderData)))||v.key}function ci(v,p){if(x&&S){let g=fn(v,p);x[g]=S()}}function hn(v,p){if(x){let g=fn(v,p),b=x[g];if(typeof b=="number")return b}return null}function Mt(v,p,g){if(c)if(v){if(Object.keys(v[0].params).length>0)return{active:!0,matches:kt(p,g,l,!0)}}else return{active:!0,matches:kt(p,g,l,!0)||[]};return{active:!1,matches:null}}async function Vt(v,p,g){if(!c)return{type:"success",matches:v};let b=v;for(;;){let P=s==null,L=s||i,z=o;try{await c({path:p,matches:b,patch:(j,A)=>{g.aborted||Rn(j,A,L,z,a)}})}catch(j){return{type:"error",error:j,partialMatches:b}}finally{P&&!g.aborted&&(i=[...i])}if(g.aborted)return{type:"aborted"};let D=qe(L,p,l);if(D)return{type:"success",matches:D};let T=kt(L,p,l,!0);if(!T||b.length===T.length&&b.every((j,A)=>j.route.id===T[A].route.id))return{type:"success",matches:null};b=T}}function di(v){o={},s=$t(v,a,void 0,o)}function fi(v,p){let g=s==null;Rn(v,p,s||i,o,a),g&&(i=[...i],ve({}))}return F={get basename(){return l},get future(){return d},get state(){return y},get routes(){return i},get window(){return t},initialize:Xo,subscribe:Zo,enableScrollRestoration:ui,navigate:rn,fetch:ai,revalidate:ei,createHref:v=>e.history.createHref(v),encodeLocation:v=>e.history.encodeLocation(v),getFetcher:on,deleteFetcher:si,dispose:Qo,getBlocker:li,deleteBlocker:cn,patchRoutes:fi,_internalFetchControllers:le,_internalActiveDeferreds:je,_internalSetRoutes:di},F}function ts(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function gr(e,t,r,n,a,o,i,s){let l,u;if(i){l=[];for(let d of t)if(l.push(d),d.route.id===i){u=d;break}}else l=t,u=t[t.length-1];let c=Lr(a||".",Or(l,o),St(e.pathname,r)||e.pathname,s==="path");if(a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&u){let d=Mr(c.search);if(u.route.index&&!d)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&d){let m=new URLSearchParams(c.search),_=m.getAll("index");m.delete("index"),_.filter(E=>E).forEach(E=>m.append("index",E));let x=m.toString();c.search=x?"?"+x:""}}return n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Ve([r,c.pathname])),Rt(c)}function bn(e,t,r,n){if(!n||!ts(n))return{path:r};if(n.formMethod&&!hs(n.formMethod))return{path:r,error:pe(405,{method:n.formMethod})};let a=()=>({path:r,error:pe(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=Ja(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!we(i))return a();let m=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((_,x)=>{let[E,S]=x;return""+_+E+"="+S+`
`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:m}}}else if(n.formEncType==="application/json"){if(!we(i))return a();try{let m=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:m,text:void 0}}}catch{return a()}}}N(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=_r(n.formData),u=n.formData;else if(n.body instanceof FormData)l=_r(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=Pn(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=Pn(l)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(we(c.formMethod))return{path:r,submission:c};let d=Be(r);return t&&d.search&&Mr(d.search)&&l.append("index",""),d.search="?"+l,{path:Rt(d),submission:c}}function En(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function xn(e,t,r,n,a,o,i,s,l,u,c,d,m,_,x,E){let S=E?ye(E[1])?E[1].error:E[1].data:void 0,C=e.createURL(t.location),w=e.createURL(a),R=r;o&&t.errors?R=En(r,Object.keys(t.errors)[0],!0):E&&ye(E[1])&&(R=En(r,E[0]));let I=E?E[1].statusCode:void 0,F=i&&I&&I>=400,y=R.filter((U,B)=>{let{route:q}=U;if(q.lazy)return!0;if(q.loader==null)return!1;if(o)return yr(q,t.loaderData,t.errors);if(rs(t.loaderData,t.matches[B],U)||l.some(fe=>fe===U.route.id))return!0;let ue=t.matches[B],ne=U;return wn(U,Q({currentUrl:C,currentParams:ue.params,nextUrl:w,nextParams:ne.params},n,{actionResult:S,actionStatus:I,defaultShouldRevalidate:F?!1:s||C.pathname+C.search===w.pathname+w.search||C.search!==w.search||Ka(ue,ne)}))}),Z=[];return d.forEach((U,B)=>{if(o||!r.some(se=>se.route.id===U.routeId)||c.has(B))return;let q=qe(_,U.path,x);if(!q){Z.push({key:B,routeId:U.routeId,path:U.path,matches:null,match:null,controller:null});return}let ue=t.fetchers.get(B),ne=_t(q,U.path),fe=!1;m.has(B)?fe=!1:u.has(B)?(u.delete(B),fe=!0):ue&&ue.state!=="idle"&&ue.data===void 0?fe=s:fe=wn(ne,Q({currentUrl:C,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:I,defaultShouldRevalidate:F?!1:s})),fe&&Z.push({key:B,routeId:U.routeId,path:U.path,matches:q,match:ne,controller:new AbortController})}),[y,Z]}function yr(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function rs(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function Ka(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wn(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Rn(e,t,r,n,a){var o;let i;if(e){let u=n[e];N(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),i=u.children}else i=r;let s=t.filter(u=>!i.some(c=>qa(u,c))),l=$t(s,a,[e||"_","patch",String(((o=i)==null?void 0:o.length)||"0")],n);i.push(...l)}function qa(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>qa(r,o))}):!1}async function ns(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];N(a,"No route found in manifest");let o={};for(let i in n){let l=a[i]!==void 0&&i!=="hasErrorBoundary";at(!l,"Route \""+a.id+"\" has a static property \""+i+"\" defined but its lazy function is also returning a value for this property. "+("The lazy route property \""+i+"\" will be ignored.")),!l&&!Ri.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Q({},t(a),{lazy:void 0}))}async function as(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function os(e,t,r,n,a,o,i,s,l,u){let c=o.map(_=>_.route.lazy?ns(_.route,l,s):void 0),d=o.map((_,x)=>{let E=c[x],S=a.some(w=>w.route.id===_.route.id);return Q({},_,{shouldLoad:S,resolve:async w=>(w&&n.method==="GET"&&(_.route.lazy||_.route.loader)&&(S=!0),S?is(t,n,_,E,w,u):Promise.resolve({type:K.data,result:void 0}))})}),m=await e({matches:d,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(c)}catch{}return m}async function is(e,t,r,n,a,o){let i,s,l=u=>{let c,d=new Promise((x,E)=>c=E);s=()=>c(),t.signal.addEventListener("abort",s);let m=x=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+("\""+e+"\" [routeId: "+r.route.id+"]"))):u({request:t,params:r.params,context:o},...(x!==void 0?[x]:[])),_=(async()=>{try{return{type:"data",result:await(a?a(E=>m(E)):m())}}catch(x){return{type:"error",result:x}}})();return Promise.race([_,d])};try{let u=r.route[e];if(n){if(u){let c,[d]=await Promise.all([l(u).catch(m=>{c=m}),n]);if(c!==void 0)throw c;i=d}else if(await n,u=r.route[e],u)i=await l(u);else if(e==="action"){let c=new URL(t.url),d=c.pathname+c.search;throw pe(405,{method:t.method,pathname:d,routeId:r.route.id})}else return{type:K.data,result:void 0};}else if(u)i=await l(u);else{let c=new URL(t.url),d=c.pathname+c.search;throw pe(404,{pathname:d})}N(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+("\""+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:K.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function ss(e){let{result:t,type:r}=e;if(Ya(t)){let u;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(c){return{type:K.error,error:c}}return r===K.error?{type:K.error,error:new Ht(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:K.data,data:u,statusCode:t.status,headers:t.headers}}if(r===K.error){if(On(t)){var n;if(t.data instanceof Error){var a;return{type:K.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new Ht(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:K.error,error:t,statusCode:Qt(t)?t.status:void 0}}if(fs(t)){var o,i;return{type:K.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(On(t)){var s,l;return{type:K.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:K.data,data:t}}function ls(e,t,r,n,a,o){let i=e.headers.get("Location");if(N(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ar.test(i)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);i=gr(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function Sn(e,t,r){if(Ar.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=St(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function nt(e,t,r,n){let a=e.createURL(Ja(t)).toString(),o={signal:r};if(n&&we(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=_r(n.formData):o.body=n.formData}return new Request(a,o)}function _r(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Pn(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function us(e,t,r,n,a){let o={},i=null,s,l=!1,u={},c=r&&ye(r[1])?r[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let m=d.route.id,_=t[m];if(N(!Ye(_),"Cannot handle redirect results in processLoaderData"),ye(_)){let x=_.error;c!==void 0&&(x=c,c=void 0),i=i||{};{let E=Je(e,m);i[E.route.id]==null&&(i[E.route.id]=x)}o[m]=void 0,l||(l=!0,s=Qt(_.error)?_.error.status:500),_.headers&&(u[m]=_.headers)}else Me(_)?(n.set(m,_.deferredData),o[m]=_.deferredData.data,_.statusCode!=null&&_.statusCode!==200&&!l&&(s=_.statusCode),_.headers&&(u[m]=_.headers)):(o[m]=_.data,_.statusCode&&_.statusCode!==200&&!l&&(s=_.statusCode),_.headers&&(u[m]=_.headers))}),c!==void 0&&r&&(i={[r[0]]:c},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:u}}function jn(e,t,r,n,a,o,i){let{loaderData:s,errors:l}=us(t,r,n,i);return a.forEach(u=>{let{key:c,match:d,controller:m}=u,_=o[c];if(N(_,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(ye(_)){let x=Je(e.matches,d==null?void 0:d.route.id);l&&l[x.route.id]||(l=Q({},l,{[x.route.id]:_.error})),e.fetchers.delete(c)}else if(Ye(_))N(!1,"Unhandled fetcher revalidation redirect");else if(Me(_))N(!1,"Unhandled fetcher deferred data");else{let x=Ie(_.data);e.fetchers.set(c,x)}}),{loaderData:s,errors:l}}function Dn(e,t,r,n){let a=Q({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function Tn(e){return e?ye(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Je(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Cn(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function pe(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",a&&r&&n?l="You made a "+a+" request to \""+r+"\" but "+("did not provide a `loader` for route \""+n+"\", ")+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l="Route \""+n+"\" does not match URL \""+r+"\""):e===404?(s="Not Found",l="No route matches URL \""+r+"\""):e===405&&(s="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+" request to \""+r+"\" but "+("did not provide an `action` for route \""+n+"\", ")+"so there is no way to handle the request.":a&&(l="Invalid request method \""+a.toUpperCase()+"\"")),new Ht(e||500,s,new Error(l),!0)}function Nt(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Ye(a))return{key:n,result:a}}}function Ja(e){let t=typeof e=="string"?Be(e):e;return Rt(Q({},t,{hash:""}))}function cs(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ds(e){return Ya(e.result)&&Yi.has(e.result.status)}function Me(e){return e.type===K.deferred}function ye(e){return e.type===K.error}function Ye(e){return(e&&e.type)===K.redirect}function On(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function fs(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Ya(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function hs(e){return Ji.has(e.toLowerCase())}function we(e){return Ki.has(e.toLowerCase())}async function vs(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[s,l]=o[i],u=e.find(m=>(m==null?void 0:m.route.id)===s);if(!u)continue;let c=n.find(m=>m.route.id===u.route.id),d=c!=null&&!Ka(c,u)&&(a&&a[u.route.id])!==void 0;Me(l)&&d&&(await Ir(l,r,!1).then(m=>{m&&(t[s]=m)}))}}async function ps(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],s=t[a];e.find(u=>(u==null?void 0:u.route.id)===o)&&Me(s)&&(N(i,"Expected an AbortController for revalidating fetcher deferred result"),await Ir(s,i.signal,!0).then(u=>{u&&(t[a]=u)}))}}async function Ir(e,t,r){if(r===void 0&&(r=!1),!(await e.deferredData.resolveData(t))){if(r)try{return{type:K.data,data:e.deferredData.unwrappedData}}catch(a){return{type:K.error,error:a}}return{type:K.data,data:e.deferredData.data}}}function Mr(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function _t(e,t){let r=typeof t=="string"?Be(t).search:t.search;if(e[e.length-1].route.index&&Mr(r||""))return e[e.length-1];let n=Ha(e);return n[n.length-1]}function Ln(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function dr(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ms(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function pt(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function gs(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ie(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ys(e,t){try{let r=e.sessionStorage.getItem(Wa);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function _s(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(Wa,JSON.stringify(r))}catch(n){at(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
 * React Router v6.27.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gt.apply(this,arguments)}const Zt=f.createContext(null),Xa=f.createContext(null),br=f.createContext(null),Pt=f.createContext(null),Vr=f.createContext(null),Fe=f.createContext({outlet:null,matches:[],isDataRoute:!1}),Qa=f.createContext(null);function jt(){return f.useContext(Vr)!=null}function Dt(){return jt()||N(!1),f.useContext(Vr).location}function Za(e){f.useContext(Pt).static||f.useLayoutEffect(e)}function eo(){let{isDataRoute:e}=f.useContext(Fe);return e?Os():bs()}function bs(){jt()||N(!1);let e=f.useContext(Zt),{basename:t,future:r,navigator:n}=f.useContext(Pt),{matches:a}=f.useContext(Fe),{pathname:o}=Dt(),i=JSON.stringify(Or(a,r.v7_relativeSplatPath)),s=f.useRef(!1);return Za(()=>{s.current=!0}),f.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let d=Lr(u,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ve([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,i,o,e])}function Sf(){let{matches:e}=f.useContext(Fe),t=e[e.length-1];return t?t.params:{}}function Es(e,t,r,n){jt()||N(!1);let{navigator:a}=f.useContext(Pt),{matches:o}=f.useContext(Fe),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=Dt(),c;c=u;let d=c.pathname||"/",m=d;if(l!=="/"){let E=l.replace(/^\//,"").split("/");m="/"+d.replace(/^\//,"").split("/").slice(E.length).join("/")}let _=qe(e,{pathname:m});return Ps(_&&_.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:Ve([l,a.encodeLocation?a.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?l:Ve([l,a.encodeLocation?a.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,r,n)}function xs(){let e=Ts(),t=Qt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),r?f.createElement("pre",{style:a},r):null,null)}const ws=f.createElement(xs,null);class Rs extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?f.createElement(Fe.Provider,{value:this.props.routeContext},f.createElement(Qa.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ss(e){let{routeContext:t,match:r,children:n}=e,a=f.useContext(Zt);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),f.createElement(Fe.Provider,{value:t},n)}function Ps(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);c>=0||N(!1),i=i.slice(0,Math.min(i.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:m,errors:_}=r,x=d.route.loader&&m[d.route.id]===void 0&&(!_||_[d.route.id]===void 0);if(d.route.lazy||x){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,d,m)=>{let _,x=!1,E=null,S=null;r&&(_=s&&d.route.id?s[d.route.id]:void 0,E=d.route.errorElement||ws,l&&(u<0&&m===0?(x=!0,S=null):u===m&&(x=!0,S=d.route.hydrateFallbackElement||null)));let C=t.concat(i.slice(0,m+1)),w=()=>{let R;return _?R=E:x?R=S:d.route.Component?R=f.createElement(d.route.Component,null):d.route.element?R=d.route.element:R=c,f.createElement(Ss,{match:d,routeContext:{outlet:c,matches:C,isDataRoute:r!=null},children:R})};return r&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?f.createElement(Rs,{location:r.location,revalidation:r.revalidation,component:E,error:_,children:w(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):w()},null)}var to=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(to||{}),ot=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ot||{});function js(e){let t=f.useContext(Zt);return t||N(!1),t}function ro(e){let t=f.useContext(Xa);return t||N(!1),t}function Ds(e){let t=f.useContext(Fe);return t||N(!1),t}function Ur(e){let t=Ds(),r=t.matches[t.matches.length-1];return r.route.id||N(!1),r.route.id}function Pf(){let e=ro(ot.UseLoaderData),t=Ur(ot.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function Ts(){var e;let t=f.useContext(Qa),r=ro(ot.UseRouteError),n=Ur(ot.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Cs(){let e=f.useContext(br);return e==null?void 0:e._data}function Os(){let{router:e}=js(to.UseNavigateStable),t=Ur(ot.UseNavigateStable),r=f.useRef(!1);return Za(()=>{r.current=!0}),f.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Gt({fromRouteId:t},o)))},[e,t])}function Ls(e){let{to:t,replace:r,state:n,relative:a}=e;jt()||N(!1);let{future:o,static:i}=f.useContext(Pt),{matches:s}=f.useContext(Fe),{pathname:l}=Dt(),u=eo(),c=Lr(t,Or(s,o.v7_relativeSplatPath),l,a==="path"),d=JSON.stringify(c);return f.useEffect(()=>u(JSON.parse(d),{replace:r,state:n,relative:a}),[u,d,a,r,n]),null}function As(e){let{basename:t="/",children:r=null,location:n,navigationType:a=oe.Pop,navigator:o,static:i=!1,future:s}=e;jt()&&N(!1);let l=t.replace(/^\/*/,"/"),u=f.useMemo(()=>({basename:l,navigator:o,static:i,future:Gt({v7_relativeSplatPath:!1},s)}),[l,s,o,i]);typeof n=="string"&&(n=Be(n));let{pathname:c="/",search:d="",hash:m="",state:_=null,key:x="default"}=n,E=f.useMemo(()=>{let S=St(c,l);return S==null?null:{location:{pathname:S,search:d,hash:m,state:_,key:x},navigationType:a}},[l,c,d,m,_,x,a]);return E==null?null:f.createElement(Pt.Provider,{value:u},f.createElement(Vr.Provider,{children:r,value:E}))}function jf(e){let{children:t,errorElement:r,resolve:n}=e;return f.createElement(Ms,{resolve:n,errorElement:r},f.createElement(Vs,null,t))}var be=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(be||{});const Is=new Promise(()=>{});class Ms extends f.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,o=be.pending;if(!(n instanceof Promise))o=be.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){o=be.error;let i=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>i})}else n._tracked?(a=n,o="_error"in a?be.error:"_data"in a?be.success:be.pending):(o=be.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(i=>Object.defineProperty(n,"_data",{get:()=>i}),i=>Object.defineProperty(n,"_error",{get:()=>i})));if(o===be.error&&a._error instanceof mr)throw Is;if(o===be.error&&!r)throw a._error;if(o===be.error)return f.createElement(br.Provider,{value:a,children:r});if(o===be.success)return f.createElement(br.Provider,{value:a,children:t});throw a}}function Vs(e){let{children:t}=e,r=Cs(),n=typeof t=="function"?t(r):t;return f.createElement(f.Fragment,null,n)}function Us(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:f.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:f.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:f.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
 * React Router DOM v6.27.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wt.apply(this,arguments)}const zs="6";try{window.__reactRouterVersion=zs}catch{}function Ns(e,t){return es({basename:void 0,future:Wt({},void 0,{v7_prependBasename:!0}),history:Ei({window:void 0}),hydrationData:Bs(),routes:e,mapRouteProperties:Us,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function Bs(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Wt({},t,{errors:Fs(t.errors)})),t}function Fs(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new Ht(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const ks=f.createContext({isTransitioning:!1}),$s=f.createContext(new Map),Hs="startTransition",An=vi[Hs],Gs="flushSync",In=pi[Gs];function Ws(e){An?An(e):e()}function mt(e){In?In(e):e()}class Ks{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function qs(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=f.useState(r.state),[i,s]=f.useState(),[l,u]=f.useState({isTransitioning:!1}),[c,d]=f.useState(),[m,_]=f.useState(),[x,E]=f.useState(),S=f.useRef(new Map),{v7_startTransition:C}=n||{},w=f.useCallback(U=>{C?Ws(U):U()},[C]),R=f.useCallback((U,B)=>{let{deletedFetchers:q,flushSync:ue,viewTransitionOpts:ne}=B;q.forEach(se=>S.current.delete(se)),U.fetchers.forEach((se,Ce)=>{se.data!==void 0&&S.current.set(Ce,se.data)});let fe=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!ne||fe){ue?mt(()=>o(U)):w(()=>o(U));return}if(ue){mt(()=>{m&&(c&&c.resolve(),m.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation})});let se=r.window.document.startViewTransition(()=>{mt(()=>o(U))});se.finished.finally(()=>{mt(()=>{d(void 0),_(void 0),s(void 0),u({isTransitioning:!1})})}),mt(()=>_(se));return}m?(c&&c.resolve(),m.skipTransition(),E({state:U,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation})):(s(U),u({isTransitioning:!0,flushSync:!1,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation}))},[r.window,m,c,S,w]);f.useLayoutEffect(()=>r.subscribe(R),[r,R]),f.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new Ks)},[l]),f.useEffect(()=>{if(c&&i&&r.window){let U=i,B=c.promise,q=r.window.document.startViewTransition(async()=>{w(()=>o(U)),await B});q.finished.finally(()=>{d(void 0),_(void 0),s(void 0),u({isTransitioning:!1})}),_(q)}},[w,i,c,r.window]),f.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,m,a.location,i]),f.useEffect(()=>{!l.isTransitioning&&x&&(s(x.state),u({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),E(void 0))},[l.isTransitioning,x]),f.useEffect(()=>{},[]);let I=f.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:U=>r.navigate(U),push:(U,B,q)=>r.navigate(U,{state:B,preventScrollReset:q==null?void 0:q.preventScrollReset}),replace:(U,B,q)=>r.navigate(U,{replace:!0,state:B,preventScrollReset:q==null?void 0:q.preventScrollReset})}),[r]),F=r.basename||"/",y=f.useMemo(()=>({router:r,navigator:I,static:!1,basename:F}),[r,I,F]),Z=f.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return f.createElement(f.Fragment,null,f.createElement(Zt.Provider,{value:y},f.createElement(Xa.Provider,{value:a},f.createElement($s.Provider,{value:S.current},f.createElement(ks.Provider,{value:l},f.createElement(As,{basename:F,location:a.location,navigationType:a.historyAction,navigator:I,future:Z},a.initialized||r.future.v7_partialHydration?f.createElement(Js,{routes:r.routes,future:r.future,state:a}):t))))),null)}const Js=f.memo(Ys);function Ys(e){let{routes:t,future:r,state:n}=e;return Es(t,void 0,n,r)}var Mn;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Mn||(Mn={}));var Vn;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Vn||(Vn={}));/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var O=function(){return O=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},O.apply(this,arguments)};function Xs(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Qs(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function V(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],i;try{for(;(t===void 0||t-->0)&&!(a=n.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function me(e,t,r){if(arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Zs=10,el=1e3,no=function(e){return JSON.stringify({ev_type:"batch",list:e})};function tl(e){var t=e.transport,r=e.endpoint,n=e.size,a=n===void 0?Zs:n,o=e.wait,i=o===void 0?el:o,s=[],l=0,u,c={getSize:function(){return a},getWait:function(){return i},setSize:function(m){a=m},setWait:function(m){i=m},getEndpoint:function(){return r},setEndpoint:function(m){r=m},send:function(m){s.push(m),s.length>=a&&d.call(this),clearTimeout(l),l=setTimeout(d.bind(this),i)},flush:function(){clearTimeout(l),d.call(this)},getBatchData:function(){return s.length?no(s):""},clear:function(){clearTimeout(l),s=[]},fail:function(m){u=m}};function d(){if(s.length){var m=this.getBatchData();t.post({url:r,data:m,fail:function(_){u&&u(_,m)}}),s=[]}}return c}var rl=["init","start","config","beforeDestroy","provide","beforeReport","report","beforeBuild","build","beforeSend","send","beforeConfig"],ie=function(){return{}};function zr(e){return e}function ce(e){return typeof e=="object"&&e!==null}function nl(e){return e===void 0}function al(e,t){try{return e instanceof t}catch{return!1}}var Er=Object.prototype;function Nr(e){if(ce(e)){if(typeof Object.getPrototypeOf=="function"){var t=Object.getPrototypeOf(e);return t===Er||t===null}return Er.toString.call(e)==="[object Object]"}return!1}function Ue(e){return Er.toString.call(e)==="[object Array]"}function it(e){return typeof e=="function"}function ol(e){return typeof e=="boolean"}function er(e){return typeof e=="number"}function ze(e){return typeof e=="string"}function il(e){switch(Object.prototype.toString.call(e)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMError]":return!0;case"[object DOMException]":return!0;default:return e instanceof Error}}function sl(e){return typeof Event<"u"&&al(e,Event)}function ll(e){return Object.prototype.toString.call(e)==="[object ErrorEvent]"}function ul(e){return Object.prototype.toString.call(e)==="[object PromiseRejectionEvent]"}function cl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function dl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r={},n=0;n<e.length;)r=Br(r,e[n++]);return r}function Br(e,t){var r=O({},e);for(var n in t)cl(t,n)&&t[n]!==void 0&&(ce(t[n])&&Nr(t[n])?r[n]=Br(ce(e[n])?e[n]:{},t[n]):Ue(t[n])&&Ue(e[n])?r[n]=ao(e[n],t[n]):r[n]=t[n]);return r}function ao(e,t){var r=Ue(e)?e:[],n=Ue(t)?t:[];return Array.prototype.concat.call(r,n).map(function(a){return a instanceof RegExp?a:ce(a)&&Nr(a)?Br({},a):Ue(a)?ao([],a):a})}function xt(e,t){if(!Ue(e)||e.length===0)return!1;for(var r=0;r<e.length;){if(e[r]===t)return!0;r++}return!1}var Fr=function(e,t){if(!Ue(e))return e;var r=e.indexOf(t);if(r>=0){var n=e.slice();return n.splice(r,1),n}return e},Kt=function(e,t,r){for(var n,a,o=t.split("."),i=V(o),s=i[0],l=i.slice(1);e&&l.length>0;)e=e[s],n=l,a=V(n),s=a[0],l=a.slice(1);if(e)return r(e,s)},fl=function(e,t,r){return Kt(e,t,function(n,a){if(n&&a in n&&it(n[a]))try{return n[a].apply(n,r)}catch{return}})},hl=function(e,t){return!e||!ce(e)?e:t.reduce(function(r,n){return r[n]=e[n],r},{})},vl=function(e){return e.replace(/([a-z])([A-Z])/g,function(t,r,n){return r+"-"+n.toLowerCase()})};function pl(e){return Ue(e)&&e.length?ml(e):null}function ml(e){for(var t=[],r=e.length,n=0;n<r;n++){var a=e[n];ze(a)?t.push(a.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")):a&&a.source&&t.push(a.source)}return new RegExp(t.join("|"),"i")}var kr=function(e,t){var r=pl(e||[]);return!!r&&r.test(t)};function st(e){try{return ze(e)?e:JSON.stringify(e)}catch(t){return"[FAILED_TO_STRINGIFY]:"+String(t)}}function gl(){var e={},t={},r={set:function(n,a){return e[n]=a,t[n]=st(a),r},merge:function(n){return e=O(O({},e),n),Object.keys(n).forEach(function(a){t[a]=st(n[a])}),r},delete:function(n){return delete e[n],delete t[n],r},clear:function(){return e={},t={},r},get:function(n){return t[n]},toString:function(){return O({},t)}};return r}var xr=function(e,t,r,n){return n===void 0&&(n=!0),function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(!e)return ie;var i=e[t],s=r.apply(void 0,me([i],V(a),!1)),l=s;return it(l)&&n&&(l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];try{return s.apply(this,u)}catch{return it(i)&&i.apply(this,u)}}),e[t]=l,function(u){u||(l===e[t]?e[t]=i:s=i)}}},bt=function(e,t,r){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(!e)return ie;var o=e[t],i=r.apply(void 0,me([o],V(n),!1)),s=i;return it(s)&&(s=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return i.apply(this,l)}),e[t]=s,function(){s===e[t]?e[t]=o:i=o}}},yl=function(){return"".padStart?function(e,t){return t===void 0&&(t=8),e.padStart(t," ")}:function(e){return e}},oo=yl(),_l=0,io=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,me(["[SDK]",Date.now(),oo(""+_l++)],V(e),!1))},bl=0,qt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.warn.apply(console,me(["[SDK]",Date.now(),oo(""+bl++)],V(e),!1))},$r=function(e){return Math.random()<Number(e)},El=function(e,t){return e<Number(t)},gt=function(e){return function(t){for(var r=t,n=0;n<e.length&&r;n++)try{r=e[n](r)}catch(a){io(a)}return r}},xl=function(e){return function(t){for(var r=!0,n=0;n<e.length&&r;n++)try{r=e[n](t)}catch(a){io(a)}return r}};function wl(){for(var e=new Array(16),t=0,r=0;r<16;r++)r&3||(t=Math.random()*4294967296),e[r]=t>>>((r&3)<<3)&255;return e}function Rl(e){for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);var n=0,a=t;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}function wr(){var e=wl();return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Rl(e)}var Sl=3e5,Pl=function(e,t,r){var n=0;return r===-1?ie:function(){if(e()){n&&clearTimeout(n),n=0;return}n===0&&(n=setTimeout(t,r))}},so=function(e,t){var r=[];try{r=t.reduce(function(n,a){try{var o=a(e);typeof o=="function"&&n.push(o)}catch{}return n},[])}catch{}return function(n){return so(n,r)}},jl=function(e){e===void 0&&(e=Sl);var t=[],r=[],n=!1,a,o=Pl(function(){return!!t.length},function(){n=!0,a&&a[0](),r.forEach(function(s){return s()}),r.length=0,a=void 0},e),i=function(s){t=Fr(t,s),!n&&o()};return{next:function(s){return so(s,t)},complete:function(s){r.push(s)},attach:function(s,l){a=[s,l]},subscribe:function(s){if(n)throw new Error("Observer is closed");return t.push(s),a&&a[1]&&a[1](s),o(),function(){return i(s)}},unsubscribe:i}},tr=function(e,t,r){var n=jl(r);try{e(n.next,n.attach),t&&n.complete(t)}catch{}return[n.subscribe,n.unsubscribe]},Dl=function(e,t){var r=V(e,1),n=r[0],a=function(o,i){var s=n(function(l){var u=xl(t)(l);return u?o(l):ie});i(function(){s()})};return a};function Tl(){var e=!1,t={},r=function(o){o.length&&o.forEach(function(i){try{i()}catch{}}),o.length=0},n=function(o){t[o]&&t[o].forEach(function(i){r(i[1])}),t[o]=void 0},a=function(o){Object.keys(t).forEach(function(i){t[i]&&t[i].forEach(function(s){s[0]===o&&r(s[1])})})};return{set:function(o,i,s){t[o]?t[o].push([i,s]):t[o]=[[i,s]],e&&r(s)},has:function(o){return!!t[o]},remove:n,removeByEvType:a,clear:function(){e=!0,Object.keys(t).forEach(function(o){n(o)})}}}var Jt=function(e,t,r,n){return e.destroyAgent.set(t,r,n)};function Cl(e){var t=e.builder,r=e.createSender,n=e.createDefaultConfig,a=e.createConfigManager,o=e.userConfigNormalizer,i=e.initConfigNormalizer,s=e.validateInitConfig,l,u,c={};rl.forEach(function(R){return c[R]=[]});var d=!1,m=!1,_=!1,x=[],E=[],S=Tl(),C={getBuilder:function(){return t},getSender:function(){return l},getPreStartQueue:function(){return x},init:function(R){if(d){qt("already inited");return}if(R&&ce(R)&&s(R)){var I=n(R);if(!I)throw new Error("defaultConfig missing");var F=i(R);if(u=a(I),u.setConfig(F),u.onChange(function(){w("config")}),l=r(u.getConfig()),!l)throw new Error("sender missing");d=!0,w("init",!0)}else throw new Error("invalid InitConfig, init failed")},set:function(R){d&&R&&ce(R)&&(w("beforeConfig",!1,R),u==null||u.setConfig(R))},config:function(R){if(d)return R&&ce(R)&&(w("beforeConfig",!1,R),u==null||u.setConfig(o(R))),u==null?void 0:u.getConfig()},provide:function(R,I){if(xt(E,R)){qt("cannot provide "+R+", reserved");return}C[R]=I,w("provide",!1,R)},start:function(){var R=this;d&&(m||u==null||u.onReady(function(){m=!0,w("start",!0),x.forEach(function(I){return R.build(I)}),x.length=0}))},report:function(R){if(R){var I=gt(c.beforeReport)(R);if(I){var F=gt(c.report)(I);F&&(m?this.build(F):x.push(F))}}},build:function(R){if(m){var I=gt(c.beforeBuild)(R);if(I){var F=t.build(I);if(F){var y=gt(c.build)(F);y&&this.send(y)}}}},send:function(R){if(m){var I=gt(c.beforeSend)(R);I&&(l.send(I),w("send",!1,I))}},destroy:function(){S.clear(),_=!0,x.length=0,w("beforeDestroy",!0)},on:function(R,I){if(R==="init"&&d||R==="start"&&m||R==="beforeDestroy"&&_)try{I()}catch{}else c[R]&&c[R].push(I)},off:function(R,I){c[R]&&(c[R]=Fr(c[R],I))},destroyAgent:S};return E=Object.keys(C),C;function w(R,I){I===void 0&&(I=!1);for(var F=[],y=2;y<arguments.length;y++)F[y-2]=arguments[y];c[R].forEach(function(Z){try{Z.apply(void 0,me([],V(F),!1))}catch{}}),I&&(c[R].length=0)}}var Ol=function(e){var t=gl();e.provide("context",t),e.on("report",function(r){return r.extra||(r.extra={}),r.extra.context=t.toString(),r})},Ll=function(e,t,r){var n={},a=function(){for(var i,s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var u=s[0];if(u){var c=u.split(".")[0];if(!(c in a)){var d=n[c]||[],m=(i=t==null?void 0:t(e))!==null&&i!==void 0?i:{};d.push(me([m],V(s),!1)),n[c]=d;return}return fl(a,u,[].slice.call(s,1))}};xr(e,"provide",function(i){return function(s,l){a[s]=l,i.call(e,s,l)}})();for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o]);return e.on("provide",function(i){n[i]&&(n[i].forEach(function(s){var l=V(s),u=l[0],c=l.slice(1);r==null||r(e,u,c)}),n[i]=null)}),a};function Al(e,t){e.on("init",function(){var r=[],n=function(o){o.forEach(function(i){var s=i.name;xt(r,s)||(r.push(s),i.setup(e),t&&t(s,i.setup),e.destroyAgent.set(s,s,[function(){r=Fr(r,s),i.tearDown&&i.tearDown()}]))})};e.provide("applyIntegrations",n);var a=e.config();a&&a.integrations&&n(a.integrations)})}var Il="_",Ml=function(e){return e.split(Il)[0]};function Vl(e,t){var r=t||{},n={},a=function(i,s){n[i]||(n[i]=[]),n[i].push(s)},o=function(i){var s=V(i,2),l=s[0],u=s[1],c=Ml(l),d=!!c&&n[c];return r[l]||(r[l]=tr(u,function(){r[l]=void 0})),d?lo(e,[l,Dl(r[l],d)]):r[l]};e.provide("setFilter",a),e.provide("initSubject",o),e.provide("getSubject",function(i){return r[i]}),e.provide("privateSubject",{})}function lt(e,t){return e.initSubject(t)}function lo(e,t,r){var n=V(t,2),a=n[0],o=n[1],i=e.privateSubject||{};return i[a]||(i[a]=tr(o,function(){i[a]=void 0},r)),i[a]}var X=function(){return Date.now()};function re(){if(typeof window=="object"&&ce(window))return window}function Xe(){if(typeof document=="object"&&ce(document))return document}function uo(){return re()&&window.location}function Ul(){return re()&&window.history}function zl(){if(typeof XMLHttpRequest=="function"&&it(XMLHttpRequest))return XMLHttpRequest}function Nl(){if(re()&&it(window.PerformanceObserver))return window.PerformanceObserver}function Bl(){if(re()&&"navigator"in window)return window.navigator}function Fl(){var e=Bl();if(e)return e.connection||e.mozConnection||e.webkitConnection}function rr(e){var t=Xe();if(!t||!e)return"";var r=t.createElement("a");return r.href=e,r.href}function Un(e){var t=Xe();if(!t||!e)return{url:e,protocol:"",domain:"",query:"",path:"",hash:""};var r=t.createElement("a");r.href=e;var n=r.pathname||"/";return n[0]!=="/"&&(n="/"+n),{url:r.href,protocol:r.protocol.slice(0,-1),domain:r.hostname,query:r.search.substring(1),path:n,hash:r.hash}}function Hr(){var e=re()&&uo();return e?e.href:""}var kl=function(e){return{pid:e.pid,view_id:e.viewId,url:Hr()}},co=function(e){var t=e.config(),r=kl(t);return r.context=e.context?e.context.toString():{},r},fo=function(e,t){var r=co(e);return r.timestamp=X(),function(n){e.report(O(O({},n),{overrides:r}))}},$l="f_view_0",Hl=function(e){return function(t,r){var n=co(e);r(ie,function(a){n&&a(n)})}},ut=function(e){if(e)return e.__SLARDAR_REGISTRY__||(e.__SLARDAR_REGISTRY__={Slardar:{plugins:[],errors:[],subject:{}}}),e.__SLARDAR_REGISTRY__.Slardar},ho=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ut(re());r&&(r.errors||(r.errors=[]),r.errors.push(e))},vo=function(e){var t={url:Hr(),timestamp:X()},r=e.config();return r!=null&&r.pid&&(t.pid=r.pid),e!=null&&e.context&&(t.context=e.context.toString()),t},Gr=function(e,t){return function(r){var n=function(a){return a.overrides=t,a};e.on("report",n),r(),e.off("report",n)}},Ne=function(e,t,r,n){return n===void 0&&(n=!1),e.addEventListener(t,r,n),function(){e.removeEventListener(t,r,n)}},po=function(e,t,r,n){return e.addEventListener(t,r,n),function(){e.removeEventListener(t,r,n)}};function Gl(e){var t=re(),r=Xe();if(!(!t||!r)){if(r.readyState==="complete"){e();return}Ne(t,"load",function(){setTimeout(function(){e()},0)},!1)}}var mo=function(e){var t=!1,r=function(n){t||(t=!0,e&&e(n))};return[r]},Wl=function(e){var t=re();if(t){var r=V(mo(e),1),n=r[0];["unload","beforeunload","pagehide"].forEach(function(a){Ne(t,a,n,!1)})}},Kl=function(e){var t=Xe(),r=re();if(!(!t||!r)){var n=ie,a=function(){t.visibilityState==="visible"&&(e(),n())};n=po(t,"visibilitychange",a,!0)}},ql=function(e,t){var r,n=Xe();if(n){var a=n.createElement("script");a.src=e,a.crossOrigin="anonymous",a.onload=t,(r=n.head)===null||r===void 0||r.appendChild(a)}},nr=function(e,t){return ce(e)?O(O({},t),e):e?t:!1},Wr=function(){return!!btoa&&!!atob};function Jl(e){return Wr()?btoa(encodeURI(e)):e}function Yl(e){return Wr()?decodeURI(atob(e)):e}var Xl=function(e){try{var t=localStorage.getItem(e),r=t;t&&typeof t=="string"&&(r=JSON.parse(Yl(t)));var n=r,a=n.expires,o=Xs(n,["expires"]);return a>=X()?o:void 0}catch{return}},go=function(e,t,r){if(!(r<=0))try{localStorage.setItem(e,Jl(JSON.stringify(O(O({},t),{expires:X()+r}))))}catch{}},Ql=90*24*60*60*1e3,yo=function(e){return e===!1?0:e===!0||e===void 0||!er(e)?Ql:e},Zl="xhr_0",_o=function(){var e=new RegExp("\\/monitor_web\\/collect|\\/monitor_browser\\/collect\\/batch","i");return function(t){return e.test(t)}},eu=function(e){return function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t=V(r,2),this._method=t[0],this._url=t[1],e.apply(this,r)}},tu=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._reqHeaders=this._reqHeaders||{};var n=V(t,2),a=n[0],o=n[1];return this._reqHeaders[a]=o,e&&e.apply(this,t)}},ru=function(e,t){return bt(e,"onreadystatechange",function(r){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return this.readyState===4&&t(e),r&&r.apply(this,n)}})},nu=function(e,t){var r=_o();return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(this._start=X(),this._data=n==null?void 0:n[0],!r(this._url)){var o=t([this._method,this._url,this._start,this]);ru(this,o)()}return e.apply(this,n)}},zn=function(e){return function(t,r){if(e){var n=[];n.push(bt(e,"open",eu)()),n.push(bt(e,"setRequestHeader",tu)()),n.push(bt(e,"send",nu)(t)),r(function(){n.forEach(function(a){return a()})})}}},au="fetch_0",bo=function(e,t){return function(r,n){n===void 0&&(n={});var a=t([r,n]),o=e(r,n);return o.then(function(i){a(i)},function(){a(void 0)}),o}},ou=function(e,t){var r=re();if(!(!r||!fetch)){var n=[];n.push(bt(r,"fetch",bo)(e)),t(function(){n.forEach(function(a){return a()})})}},iu=[au,ou],su=["resource"],lu=function(e,t,r){var n=e&&new e(function(s,l){s.getEntries?s.getEntries().forEach(function(u,c,d){return t(u,c,d,l)}):r&&r()}),a=function(s){if(!e||!n)return r&&r();try{n.observe({entryTypes:s})}catch{return r&&r()}},o=function(s,l){if(!e||!n)return r&&r();try{var u={type:s,buffered:!0};!nl(l)&&(u.durationThreshold=l),n.observe(u)}catch{return r&&r()}n.observe({type:s,buffered:!1})},i=function(){return n&&n.disconnect()};return[a,o,i]},uu=function(e,t,r){var n=V(lu(e,t),3),a=n[0],o=n[2];return a(r),o},cu="resource_0",du=function(e,t){var r=Nl();if(r){var n=_o();t(uu(r,function(a){!n(a.name)&&e(a)},su))}},Eo=[cu,du],xo="pageview",wo="session",Ro="js_error",Tt="http",fu="resource_error",hu="resource",Nn="custom",vu="performance",pu="performance_longtask",mu="blank_screen",So="action",gu="03",yu="01",_u="traceparent",bu={sampleRate:1,origins:[]},Bn=function(){var e=window&&(window.crypto||window.msCrypto);if(e!==void 0&&e.getRandomValues){var t=new Uint16Array(8);e.getRandomValues(t);var r=function(n){for(var a=n.toString(16);a.length<4;)a="0"+a;return a};return r(t[0])+r(t[1])+r(t[2])+r(t[3])+r(t[4])+r(t[5])+r(t[6])+r(t[7])}return"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".replace(/[x]/g,function(){var n=Math.random()*16|0;return n.toString(16)})},Po=function(e){var t=nr(e,bu);if(t){var r=$r(t.sampleRate);if(r)return function(n,a){var o=t.origins;o.length&&kr(o,n)&&a(_u,gu+"-"+Bn()+"-"+Bn().substring(16)+"-"+yu)}}},Eu=new RegExp("(cookie|auth|jwt|token|key|ticket|secret|credential|session|password)","i"),xu=new RegExp("(bearer|session)","i"),Kr=function(e,t){return!e||!t?!0:Eu.test(e)||xu.test(t)},wu=function(e){var t=!1;return function(r){t||(t=!0,e(r))}},jo=function(e,t){try{if(t){var r=e.request.url;e.request.url=t(r),e.extra=O(O({},e.extra),{original_url:r})}}catch{}},Fn=function(e,t,r){var n=V(t,2),a=n[0],o=n[1],i=r.setTraceHeader,s=r.ignoreUrls,l=r.setContextAtReq,u=r.extractUrl;e.push(a[0](function(c){var d=V(c,4);d[0];var m=d[1];d[2];var _=d[3];if(!m)return ie;var x=rr(m);if(kr(s,x))return ie;i&&i(x,function(w,R){return _.setRequestHeader(w,R)});var E=l(),S=void 0,C=o()[0](function(w){x===w.name&&!S&&(S=w)});return function(w){var R=Pu(w,r);setTimeout(function(){S&&(R.response.timing=S),jo(R,u),E&&E({ev_type:Tt,payload:R}),C()},100)}}))};function Ru(e){return ze(e)&&e?e.split(`\r
`).reduce(function(t,r){if(ze(r)){var n=V(r.split(": "),2),a=n[0],o=n[1];!Kr(a,o)&&(t[a.toLowerCase()]=o)}return t},{}):{}}function Su(e){return Object.keys(e).reduce(function(t,r){return!Kr(r,e[r])&&(t[r.toLowerCase()]=e[r]),t},{})}var Pu=function(e,t){var r=e._method,n=e._reqHeaders,a=e._url,o=e._start,i=e._data,s=rr(a),l={api:"xhr",request:{url:s,method:(r||"").toLowerCase(),headers:n&&Su(n),timestamp:o},response:{status:e.status||0,is_custom_error:!1,timestamp:X()},duration:X()-o};typeof e.getAllResponseHeaders=="function"&&(l.response.headers=Ru(e.getAllResponseHeaders()));var u=l.response.status,c=t.collectBodyOnError,d=t.extraExtractor;try{var m=d==null?void 0:d(e.response,l,i);m&&(l.extra=m),m&&(l.response.is_custom_error=!0),c&&(m||u>=400)&&(l.request.body=i?""+i:void 0,l.response.body=e.response?""+e.response:void 0)}catch{}return l},qr="ajax",ju={autoWrap:!0,setContextAtReq:function(){return zr},ignoreUrls:[],collectBodyOnError:!1};function Du(e,t){var r=nr(t,ju);if(r){var n=[],a=O(O({},r),{setContextAtReq:function(){return fo(e)},setTraceHeader:Po(r.trace)}),o=function(){return lt(e,Eo)};a.autoWrap&&Fn(n,[lt(e,[Zl,zn(XMLHttpRequest&&XMLHttpRequest.prototype)]),o],a),Jt(e,qr,Tt,n),e.provide("wrapXhr",function(i){function s(){var l=new i;return Fn(n,[tr(zn(l)),o],a),l}return s.prototype=new i,["DONE","HEADERS_RECIEVED","LOADING","OPENED","UNSENT"].forEach(function(l){s[l]=i[l]}),s})}}function Tu(e){e.on("init",function(){var t,r=(t=e.config())===null||t===void 0?void 0:t.plugins[qr];Du(e,r)})}var kn=function(e,t,r){var n=V(t,2),a=n[0],o=n[1],i=r.setTraceHeader,s=r.ignoreUrls,l=r.setContextAtReq,u=r.extractUrl,c=window.Headers,d=window.Request;!d||!c||e.push(a[0](function(m){var _=V(m,2),x=_[0],E=_[1],S=rr(x instanceof d?x.url:x);if(!Cu(S)||kr(s,S))return ie;i&&i(S,function(F,y){return Ou(F,y,x,E,d,c)});var C=l(),w=X(),R=void 0,I=o()[0](function(F){S===F.name&&!R&&(R=F)});return function(F){var y=Au(x,E,F,d,c,r,w),Z=wu(function(U){R&&(U.response.timing=R),jo(U,u),C&&C({ev_type:Tt,payload:U}),I()});setTimeout(function(){Z(y)},1e3)}}))},Cu=function(e){if(!ze(e))return!1;var t=V(e.split(":"),2),r=t[0],n=t[1];return!n||r==="http"||r==="https"},Jr=function(e,t){return e instanceof t},Ou=function(e,t,r,n,a,o){var i;Jr(r,a)?r.headers.set(e,t):n.headers instanceof o?n.headers.set(e,t):n.headers=O(O({},n.headers),(i={},i[e]=t,i))},Lu=function(e,t,r){var n=t&&t.method||"get";return Jr(e,r)&&(n=e.method||n),n.toLowerCase()},$n=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];try{return t.reduce(function(n,a){return new e(a||{}).forEach(function(o,i){return!Kr(i,o)&&(n[i]=o)}),n},{})}catch{return{}}},Hn=function(e,t,r){return Jr(e,r)?e.body:t==null?void 0:t.body},Au=function(e,t,r,n,a,o,i){var s={api:"fetch",request:{method:Lu(e,t,n),timestamp:i,url:rr(e instanceof n?e.url:e),headers:$n(a,e.headers,t.headers)},response:{status:r&&r.status||0,is_custom_error:!1,timestamp:X()},duration:X()-i},l=o.collectBodyOnError,u=o.extraExtractor,c=function(){var m;l&&(s.request.body=(m=Hn(e,t,n))===null||m===void 0?void 0:m.toString())};if(r)try{var d=$n(a,r.headers);s.response.headers=d;try{(d["content-type"]||"").indexOf("application/json")!==-1&&u&&r.clone().json().then(function(m){var _,x=u(m,s,(_=Hn(e,t,n))===null||_===void 0?void 0:_.toString());x&&(s.extra=x,s.response.is_custom_error=!0,c())}).catch(ie)}catch{}r.status>=400&&c()}catch{}else c();return s},Yr="fetch",Iu={autoWrap:!0,setContextAtReq:function(){return zr},ignoreUrls:[],collectBodyOnError:!1};function Mu(e,t){var r=nr(t,Iu);if(r){var n=[],a=O(O({},r),{setContextAtReq:function(){return fo(e)},setTraceHeader:Po(r.trace)}),o=function(){return lt(e,Eo)};a.autoWrap&&kn(n,[lt(e,iu),o],a),Jt(e,Yr,Tt,n),e.provide("wrapFetch",function(i){var s=void 0;return kn(n,[tr(function(l){s=bo(i,l)}),o],a),s})}}function Vu(e){e.on("init",function(){var t,r=(t=e.config())===null||t===void 0?void 0:t.plugins[Yr];Mu(e,r)})}var Uu=["name","message","stack","filename","lineno","colno"],Xr=function(e){var t;return il(e)?t=hl(e,Uu):(Nr(e)||sl(e)||ze(e))&&(t={message:st(e)}),t},zu=function(e){return Xr(e.error)},Nu=function(e){var t;try{var r=void 0;if("reason"in e?r=e.reason:"detail"in e&&"reason"in e.detail&&(r=e.detail.reason),r){var n=Xr(r);return O(O({},n),{name:(t=n&&n.name)!==null&&t!==void 0?t:"UnhandledRejection"})}}catch{}},Bu=function(e){return ll(e)?zu(e):ul(e)?Nu(e):Xr(e)},Gn="jsError",Fu="hidden_3",Wn=function(e){return e.visibilityState==="hidden"},ku=function(e,t){var r=Xe(),n=re();if(!(!r||!n)){var a=function(s){e(s.type==="pagehide"||Wn(r))},o=po(r,"visibilitychange",a,!0),i=Ne(n,"pagehide",a,!0);t(function(){o(),i()},function(s){s(Wn(r))})}},$u=[Fu,ku],Hu=function(e){return e.readyState==="complete"},Gu="unload_0",Wu=function(e,t){var r=re();if(r){var n=V(mo(e),1),a=n[0],o=["unload","beforeunload","pagehide"],i=function(){a()},s=[];o.forEach(function(l){s.push(Ne(r,l,i,!1))}),t(function(){s.forEach(function(l){return l()})})}},Ku=[Gu,Wu],qu="history_0",Ju="hash_0",Yu=function(e,t){var r=Ul(),n=re();if(!(!r||!n)){var a=[],o=function(){return e(location.href)},i=function(s){return function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];try{s.apply(r,l)}finally{o()}}};a.push(xr(r,"pushState",i)(),xr(r,"replaceState",i)()),a.push(Ne(n,"popstate",o,!0)),t(function(){a.forEach(function(s){return s()})})}},Xu=function(e,t){var r=re();if(r){var n=function(){return e(location.href)},a=Ne(r,"hashchange",n,!0);t(function(){a()})}},Qu=[Ju,Xu],Zu=[qu,Yu],ec=function(e){return function(t){var r;return e==="hash"?((r=Un(t).hash)===null||r===void 0?void 0:r.replace(/^#/,""))||"/":Un(t).path}},Do=function(e){return To(e,X())},To=function(e,t){return e+"_"+t},tc=function(e,t,r,n){var a=r,o=t;n&&n(t);var i=function(l,u,c){l!=="user_set"&&u!==a?(a=u,o=c??a,n&&n(o),e(l,o)):l==="user_set"&&u!==o&&(o=u,n&&n(o),e(l,o))},s=function(){t&&e("init",t)};return[i,s]},rc=function(e,t){var r=t,n=function(a,o){o!==r&&(r=o,e(a,r))};return[n]},nc=function(e,t){return{ev_type:xo,payload:{pid:t,source:e}}},ac=function(e){return function(t,r){e(nc(t,r))}},Rr=function(e){return e==="manual"},Bt="error_weight",fr="duration_apdex",wt="perf_apdex",oc="action",ic=function(){var e;return e={error_count:[0,0,0,0],duration_count:[0,0,0]},e[wt]={},e},Kn=function(e,t){var r=e[0]+e[1]+e[2],n=e[0]/r,a=e[2]/r;return a>t.frustrating_threshold?2:n>t.satisfying_threshold||r===0?0:1},sc=function(){var e=0,t=void 0,r=function(a){if(a){if(!t)return;e+=X()-t,t=void 0}else t=X()},n=function(){t&&(e+=X()-t);var a=e;return e=0,t=X(),a};return[r,n]},qn=function(e,t){return function(r,n){var a=r.payload;switch(r.ev_type){case vu:var o=a.name;a.isSupport&&e(n[wt],o,a.value);break;case So:e(n[wt],oc,a.duration||0);break;case Ro:t(n[Bt],0);break;case Tt:if(a.response.is_custom_error||a.response.status>=400)t(n[Bt],1);else{var i=a.response.timing;i&&e(n[fr],0,i.duration)}break;case fu:t(n[Bt],2);break;case mu:t(n[Bt],3);break;case hu:e(n[fr],1,a.duration);break;case pu:a.longtasks.forEach(function(s){e(n[fr],2,s.duration)});break}}},Jn=function(){var e,t,r=function(){e=[0,0,0],t=ic()};r();var n=function(i,s,l){var u=i&&i[s];if(!(!u||l<=0)){var c=l<(u[0].threshold||0)?0:l>(u[1].threshold||0)?2:1;if(e[c]+=u[c].weight,typeof s=="string"){var d=To(s,c),m=t[wt][d];t[wt][d]=(m||0)+1}else c===2&&(t.duration_count[s]+=1)}},a=function(i,s){i&&(e[2]+=i[s],t.error_count[s]+=1)},o=function(){return[e,t]};return[n,a,o,r]},lc=function(){var e={start:X(),end:0,time_spent:0,is_bounced:!1,entry:"",exit:"",p_count:0,a_count:0},t=function(i,s){var l=V(i,3),u=l[0],c=l[1],d=l[2];e.end=X(),e.time_spent+=s&&s.time_spent||0,e.last_page=s,e.p_count+=1,e.rank=u,e.apdex=c,e.apdex_detail=d;var m=Xe();m&&(e.is_bounced=!Hu(m))},r=function(i,s){e.time_spent+=i.time_spent,e.p_count+=1,e.exit=s},n=function(){e.a_count+=1},a=function(i){e.entry=i,e.exit=i},o=function(){return e};return[t,r,n,a,o]},uc=function(e,t,r,n){var a=n.sendInit,o=n.initPid,i=n.routeMode,s=n.extractPid,l=n.onPidUpdate,u=Rr(i)?function(){return""}:ec(i),c=s||function(){},d=function(C){var w;return(w=c(C))!==null&&w!==void 0?w:u(C)},m=V(tc(ac(e),o||d(location.href),u(location.href),l),2),_=m[0],x=m[1];if(!Rr(i)){var E=V(rc(function(C,w){return _(C,u(w),c(w))},""),1),S=E[0];r.length&&r.forEach(function(C){return t.push(C[0](function(w){return S(i,w)}))})}return a&&x(),[_.bind(null,"user_set")]},cc=function(e,t,r,n){var a=V(r,2),o=a[0],i=a[1],s=n.apdex===2,l=void 0,u=void 0,c=void 0,d=!1,m=V(Jn(),4),_=m[0],x=m[1],E=m[2],S=m[3],C=V(Jn(),4),w=C[0],R=C[1],I=C[2],F=C[3],y=V(lc(),5),Z=y[0],U=y[1],B=y[2],q=y[3],ue=y[4],ne=V(sc(),2),fe=ne[0],se=ne[1];t.push(o[0](fe)),!s&&t.push(i[0](function(){if(d){var W=V(I(),2),he=W[0],ge=W[1],je=Kn(he,c);Z([je,he,ge],ke()),e({ev_type:wo,payload:ue()}),F()}}));var Ce=qn(_,x),Qe=qn(w,R),le=function(W){d&&(s||(Qe(W,c),W.ev_type===So&&B()),W.common.pid===l[1]&&Ce(W,c))},ke=function(){var W=V(E(),2),he=W[0],ge=W[1];return{start:l[0],pid:l[1],view_id:l[2],end:X(),time_spent:se(),apdex:he,rank:Kn(he,c),detail:ge}},$e=function(W,he){if(!l){l=[X(),W,he],q(W),d=!!(c&&l);return}d&&(u=ke(),U(u,W)),l=[X(),W,he],S()},Oe=function(W){d&&(W.payload.last=u),e(W)},xe=function(W){if(!W){t.forEach(function(he){return he()}),t.length=0;return}c=W,d=!!(c&&l)};return t.push(function(){d=!1}),[$e,le,Oe,xe]},Yt="pageview",dc={sendInit:!0,routeMode:"history",apdex:2};function fc(e,t){var r,n=nr(t,dc);if(!(!n||!uo())){var a=n.routeMode,o=n.apdex,i=e.report.bind(e),s=ie;if(o){var l=[],u=V(cc(e.report.bind(e),l,[lt(e,$u),lt(e,Ku)],n),4),c=u[0],d=u[1],m=u[2],_=u[3];i=m,s=c,e.on("send",d),l.push(function(){return e.off("send",d)}),e.on("start",function(){_(e.config().apdex)}),Jt(e,Yt,wo,l)}var x=[],E=V(uc(i,x,Rr(a)?[]:[e.initSubject(Qu),e.initSubject(Zu)],O(O({},n),{initPid:(r=e.config())===null||r===void 0?void 0:r.pid,onPidUpdate:function(w){var R=Do(w);s(w,R),e.set({pid:w,viewId:R,actionId:void 0})}})),1),S=E[0];lo(e,[$l,Hl(e)],-1);var C=function(){S(e.config().pid)};e.on("config",C),x.push(function(){return e.off("config",C)}),Jt(e,Yt,xo,x),e.provide("sendPageview",S)}}function hc(e){e.on("init",function(){var t,r=(t=e.config())===null||t===void 0?void 0:t.plugins[Yt];fc(e,r)})}var vc="event",pc="log",mc=function(e){if(!(!e||!ce(e))&&!(!e.name||!ze(e.name))){var t={name:e.name,type:vc};if("metrics"in e&&ce(e.metrics)){var r=e.metrics,n={};for(var a in r)er(r[a])&&(n[a]=r[a]);t.metrics=n}if("categories"in e&&ce(e.categories)){var o=e.categories,i={};for(var a in o)i[a]=st(o[a]);t.categories=i}return t}},gc=function(e){if(!(!e||!ce(e))&&!(!e.content||!ze(e.content))){var t=e.content,r={content:st(t),type:pc,level:"info"};if("level"in e&&(r.level=e.level),"extra"in e&&ce(e.extra)){var n=e.extra,a={},o={};for(var i in n)er(n[i])?a[i]=n[i]:o[i]=st(n[i]);r.metrics=a,r.categories=o}return r}},yc=function(e){var t=function(n){var a=mc(n);a&&e.report({ev_type:Nn,payload:a,extra:{timestamp:X()}})},r=function(n){var a=gc(n);a&&e.report({ev_type:Nn,payload:a,extra:{timestamp:X()}})};e.provide("sendEvent",t),e.provide("sendLog",r)};function Yn(e){return(e==null?void 0:e.effectiveType)||(e==null?void 0:e.type)||""}var _c=function(e){var t=Fl(),r=Yn(t);t&&(t.onchange=function(){r=Yn(t)}),e.on("report",function(n){return O(O({},n),{extra:O(O({},n.extra||{}),{network_type:r})})})},Ft=function(e,t){var r=e.common||{};return r.sample_rate=t,e.common=r,e},Sr=function(e,t,r,n,a){return e?function(o){return function(){return o}}(a(n,t)):function(){return r(t)}},bc=function(e,t){return e.map(function(r){switch(t){case"number":return Number(r);case"boolean":return r==="1";case"string":default:return String(r)}})},Ec=function(e,t,r){switch(r){case"eq":return xt(t,e);case"neq":return!xt(t,e);case"gt":return e>t[0];case"gte":return e>=t[0];case"lt":return e<t[0];case"lte":return e<=t[0];case"regex":return!!e.match(new RegExp(t.join("|")));case"not_regex":return!e.match(new RegExp(t.join("|")));default:return!1}},xc=function(e,t,r,n){var a=Kt(e,t,function(i,s){return i[s]});if(a===void 0)return!1;var o=ol(a)?"bool":er(a)?"number":"string";return Ec(a,bc(n,o),r)},Pr=function(e,t){try{return t.type==="rule"?xc(e,t.field,t.op,t.values):t.type==="and"?t.children.every(function(r){return Pr(e,r)}):t.children.some(function(r){return Pr(e,r)})}catch(r){return ho(r),!1}},wc=function(e,t,r,n,a,o){var i={};return Object.keys(e).forEach(function(s){var l=e[s],u=l.enable,c=l.sample_rate,d=l.conditional_sample_rules;u?(i[s]={enable:u,sample_rate:c,effectiveSampleRate:c*r,hit:Sr(t,c,n,a,o)},d&&(i[s].conditional_hit_rules=d.map(function(m){var _=m.sample_rate,x=m.filter;return{sample_rate:_,hit:Sr(t,_,n,a,o),effectiveSampleRate:_*r,filter:x}}))):i[s]={enable:u,hit:function(){return!1},sample_rate:0,effectiveSampleRate:0}}),i},Rc=function(e,t,r,n,a){if(!t)return zr;var o=t.sample_rate,i=t.include_users,s=t.sample_granularity,l=t.rules,u=t.r,c=u===void 0?Math.random():u,d=xt(i,e);if(d)return function(E){return Ft(E,1)};var m=s==="session",_=Sr(m,o,r,c,n),x=wc(l,m,o,r,c,n);return function(E){var S;if(!_())return m&&a[0](),!1;if(!(E.ev_type in x))return Ft(E,o);if(!x[E.ev_type].enable)return m&&a[1](E.ev_type),!1;if(!((S=E.common)===null||S===void 0)&&S.sample_rate)return E;var C=x[E.ev_type],w=C.conditional_hit_rules;if(w){for(var R=0;R<w.length;R++)if(Pr(E,w[R].filter))return w[R].hit()?Ft(E,w[R].effectiveSampleRate):!1}return C.hit()?Ft(E,C.effectiveSampleRate):(!(w&&w.length)&&m&&a[1](E.ev_type),!1)}},Sc=function(e){e.on("start",function(){var t=e.config(),r=t.userId,n=t.sample,a=[function(){e.destroy()},function(i){e.destroyAgent.removeByEvType(i)}],o=Rc(r,n,$r,El,a);e.on("build",o)})},Pc=function(){var e=re();return e&&e.navigator.sendBeacon?{get:function(){},post:function(t,r){e.navigator.sendBeacon(t,r)}}:{get:ie,post:ie}},Xn=function(e,t,r){var n=t.url,a=t.data,o=t.success,i=o===void 0?ie:o,s=t.fail,l=s===void 0?ie:s,u=t.getResponseText,c=u===void 0?ie:u,d=t.withCredentials,m=d===void 0?!1:d,_=new r;_.withCredentials=m,_.open(e,n,!0),_.setRequestHeader("Content-Type","application/json"),_.onload=function(){c==null||c(this.responseText);try{if(this.status>=400)l(new Error(this.responseText||this.statusText));else if(this.responseText){var x=JSON.parse(this.responseText);i(x)}else i({})}catch(E){l(E)}},_.onerror=function(){l(new Error("Network request failed"))},_.onabort=function(){l(new Error("Network request aborted"))},_.send(a)},jc=function(){var e=zl();return e?{useBeacon:!0,get:function(t){Xn("GET",t,e)},post:function(t){Xn("POST",t,e)}}:{get:ie,post:ie}};function Dc(e){var t=tl(e),r=t.send;return Wl(function(){if(e.transport.useBeacon){var n=Pc(),a=t.getBatchData();a&&(n.post(t.getEndpoint(),a),t.clear()),t.send=function(o){n.post(t.getEndpoint(),no([o]))},Kl(function(){t.send=r})}else t.flush()}),t}var Tc="mon.zijieapi.com",Cc="https://lf3-short.ibytedapm.com/slardar/fe/sdk-web/plugins",ar="1.13.3",Oc="SDK_SLARDAR_WEB",Co="/monitor_web/settings/browser-settings",Oo="/monitor_browser/collect/batch/",Lc="SLARDAR",Qn=["/log/sentry/",Oo,Co],Lo="session",Ac=["blankScreen","action"],Ic={sample_rate:1,include_users:[],sample_granularity:Lo,rules:{}},Mc=20,Vc="";function Uc(e,t,r){r===void 0&&(r=Nc),Gl(function(){e.on("init",function(){r(e,t)})})}var Ao=function(e,t,r,n){n===void 0&&(n=Qr);var a=t.config(),o=a.plugins,i=a.pluginBundle,s=e.filter(function(u){return o[u]&&!t.destroyAgent.has(u)}),l=function(){return s.forEach(function(u){return jr(t,u,r)})};s.every(function(u){return Mo(u,r)})?l():n(t,{name:i.name},l)},Io=function(e,t,r,n){n===void 0&&(n=Qr);var a=t.config().plugins;e.filter(function(o){return a[o]&&!t.destroyAgent.has(o)}).forEach(function(o){Mo(o,r)?jr(t,o,r):n(t,{name:o,config:a[o]},function(){return jr(t,o,r)})})},zc=function(e){return function(t,r){var n,a=e.config().pluginBundle;e.destroyAgent.has(t)&&e.destroyAgent.remove(t),r!==void 0&&e.set({plugins:O(O({},e.config().plugins),(n={},n[t]=r,n))}),a&&~a.plugins.indexOf(t)?Ao([t],e):Io([t],e)}};function Nc(e,t,r){r===void 0&&(r=Qr);var n=e.config().pluginBundle,a=n?n.plugins:[];Ao(a,e,t,r),Io(Ac,e,t,r),e.provide("reloadPlugin",zc(e))}function Qr(e,t,r,n){var a=t.name,o=t.config;n===void 0&&(n=ql);var i=Bc(e,a,o);n(i,function(){r()})}function Bc(e,t,r){var n;return(n=r==null?void 0:r.path)!==null&&n!==void 0?n:e.config().pluginPathPrefix+"/"+vl(t)+"."+ar+"."+Vc+"js"}function jr(e,t,r){if(r===void 0&&(r=ut(re())),!!r){var n=Zr(r,t);if(!n){qt("[loader].applyPlugin not found",t);return}try{if(e.destroyAgent.has(t))return;n.apply(e)}catch(a){ho(a),qt("[loader].applyPlugin failed",t,a)}}}function Zr(e,t){return e.plugins.filter(function(r){return r.name===t&&r.version===ar})[0]}function Mo(e,t){return t===void 0&&(t=ut(re())),!t||!t.plugins?!1:!!Zr(t,e)}function Vo(e,t,r){r===void 0&&(r=ut(re())),!(!r||!r.plugins)&&(Zr(r,e)||r.plugins.push({name:e,version:ar,apply:t}))}function Uo(e){var t,r,n=["userId","deviceId","sessionId","env"];try{for(var a=Qs(n),o=a.next();!o.done;o=a.next()){var i=o.value;e[i]||delete e[i]}}catch(s){t={error:s}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return e}function Fc(e){var t=e.plugins||{};for(var r in t)t[r]&&!ce(t[r])&&(t[r]={});return Uo(O(O({},e),{plugins:t}))}function kc(e){return ce(e)&&"bid"in e}function $c(e){return Uo(O({},e))}function Hc(e){var t;if(!e)return{};var r=e.sample,n=e.plugins,a=e.timestamp,o=e.quota_rate,i=o===void 0?1:o,s=e.apdex;if(!r)return{};var l=r.sample_rate,u=r.sample_granularity,c=u===void 0?Lo:u,d=r.include_users,m=r.rules,_=m===void 0?[]:m;return{sample:{include_users:d,sample_rate:l*i,sample_granularity:c,rules:_.reduce(function(x,E){var S=E.name,C=E.enable,w=E.sample_rate,R=E.conditional_sample_rules;return x[S]={enable:C,sample_rate:w,conditional_sample_rules:R},x},{})},plugins:{heatmap:(t=n==null?void 0:n.heatmap)!==null&&t!==void 0?t:!1},apdex:s,serverTimestamp:a}}var Gc=function(e,t){return t===void 0&&(t=Oo),(e&&e.indexOf("//")>=0?"":"https://")+e+t},Wc=function(e,t){return t===void 0&&(t=Co),(e&&e.indexOf("//")>=0?"":"https://")+e+t},Kc=function(){return wr()},qc=function(e){var t=[];return e.observe=function(r){t.push(r)},e.push=function(){for(var r,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return n.forEach(function(o){t.forEach(function(i){return i(o)})}),(r=[].push).call.apply(r,me([e],V(n),!1))},e},zo=function(e){return Lc+e},Jc=function(e,t){try{var r=localStorage.getItem(e);if(!r||!Wr()||r[0]!=="{")return;go(e,JSON.parse(r),t)}catch{}},Yc=function(e,t){e===void 0&&(e="");var r={userId:wr(),deviceId:wr()};if(t<=0)return r;var n=zo(e);Jc(n,t);var a=Xl(n);return{userId:(a==null?void 0:a.userId)||r.userId,deviceId:(a==null?void 0:a.deviceId)||r.deviceId}},Xc=function(e){var t=e.bid,r=e.userId,n=e.deviceId,a=e.storageExpires,o=zo(t);go(o,{userId:r,deviceId:n},yo(a))},Qc={get:function(){return this.__SLARDAR__REPALCE__HOLDER__}},Zc=function(e){var t=e,r,n={},a=Qc.get(),o,i=ie,s=ie;return{getConfig:function(){return t},setConfig:function(c){return n=O(O({},n),c||{}),l(),r||(r=c,t.useLocalConfig||!t.bid?(o={},i()):a?u():ed(t.transport,t.domain,t.bid,function(d){a=d,u()})),t},onChange:function(c){s=c},onReady:function(c){i=function(){Xc(t),c()},o&&i()}};function l(){var c=O(O(O({},e),o||{}),n);c.plugins=dl(e.plugins,(o==null?void 0:o.plugins)||{},n.plugins||{}),c.sample=Zn(Zn(e.sample,o==null?void 0:o.sample),n.sample),t=c,s()}function u(){o=Hc(a),l(),i()}};function ed(e,t,r,n){e.get({withCredentials:!0,url:Wc(t)+"?bid="+r+"&store=1",success:function(a){n(a.data||{})},fail:function(){n({sample:{sample_rate:.001}})}})}function Zn(e,t){if(!e||!t)return e||t;var r=O(O({},e),t);return r.include_users=me(me([],V(e.include_users||[]),!1),V(t.include_users||[]),!1),r.rules=me(me([],V(Object.keys(e.rules||{})),!1),V(Object.keys(t.rules||{})),!1).reduce(function(n,a){var o,i;return a in n||(a in(e.rules||{})&&a in(t.rules||{})?(n[a]=O(O({},e.rules[a]),t.rules[a]),n[a].conditional_sample_rules=me(me([],V(e.rules[a].conditional_sample_rules||[]),!1),V(t.rules[a].conditional_sample_rules||[]),!1)):n[a]=((o=e.rules)===null||o===void 0?void 0:o[a])||((i=t.rules)===null||i===void 0?void 0:i[a])),n},{}),r}var td={build:function(e){return{ev_type:e.ev_type,payload:e.payload,common:O(O({},e.extra||{}),e.overrides||{})}}},rd=function(e,t){var r=t||{},n=r.pid,a=n===void 0?"":n,o=r.viewId,i=o===void 0?"":o,s={url:Hr(),timestamp:X(),sdk_version:ar,sdk_name:Oc,pid:a,view_id:i};return O(O({},e),{extra:O(O({},s),e.extra||{})})},nd=function(e){e.on("report",function(t){return rd(t,e.config())})},ad={sri:"reportSri",st:"reportResourceError",err:"captureException",reject:"captureException"},od=function(e){return Object.keys(e).reduce(function(t,r){return t[r]=[],t},{})},id=function(e){return Object.keys(e).reduce(function(t,r){return t[e[r]]?t[e[r]].push(r):t[e[r]]=[r],t},{})},sd=function(e,t,r){return function(n,a,o,i){var s;o===void 0&&(o=X()),i===void 0&&(i=location.href);var l=O(O({},vo(e)),{url:i,timestamp:o});t[n]&&(e[r[n]]?Gr(e,l)(function(){e[r[n]](a)}):(s=t[n])===null||s===void 0||s.push([a,l]))}},ld=function(e,t,r){return function(n){n in r&&r[n].forEach(function(a){var o;(o=t[a])===null||o===void 0||o.forEach(function(i){var s=V(i,2),l=s[0],u=s[1];Gr(e,u)(function(){e[n](l)})}),t[a]=null})}},hr=function(e,t){return t==="err"?Kt(e,"plugins."+Gn+".onerror",function(r,n){return r[n]})!==!1:t==="reject"?Kt(e,"plugins."+Gn+".onunhandledrejection",function(r,n){return r[n]})!==!1:!0},ud=function(e,t){var r;t===void 0&&(t=ad);var n=od(t),a=id(t),o=sd(e,n,t);!((r=e.p)===null||r===void 0)&&r.a&&"observe"in e.p.a&&e.p.a.observe(function(i){var s=V(i,5);s[0];var l=s[1],u=s[2],c=s[3],d=s[4],m=e.config();hr(m,l)&&o(l,u,c,d)}),e.on("init",function(){var i,s=e.config();(i=e.p)===null||i===void 0||i.a.forEach(function(l){var u=V(l,5);u[0];var c=u[1],d=u[2],m=u[3],_=u[4];hr(s,c)&&o(c,d,m,_)}),e.p&&e.p.a&&(e.p.a.length=0),e.provide("precollect",function(l,u,c,d){c===void 0&&(c=X()),d===void 0&&(d=location.href),hr(s,l)&&o(l,u,c,d)})}),e.on("provide",ld(e,n,a))},ea=function(e){var t=V(e,2),r=t[0],n=t[1];return{ev_type:Ro,payload:{error:Bu(r),breadcrumbs:[],extra:n||{}},extra:{bid:"slardar_sdk"}}},cd=.001,dd=function(e,t){t===void 0&&(t=cd);var r=ut(re());r&&(r.errors||(r.errors=[]),!("observe"in r.errors)&&$r(t)&&(r.errors=qc(r.errors),r.errors.forEach(function(n){e.report(ea(n))}),r.errors.observe(function(n){e.report(ea(n))})))},fd=700,hd=function(e){var t,r=!1;e.on("init",function(){t=new Date().getTime(),e.on("config",function(){var n,a=(n=e.config())===null||n===void 0?void 0:n.serverTimestamp;if(!(isNaN(a)||Number(a)<=0||r)){r=!0;var o=new Date().getTime(),i=o-t;if(i<fd&&a){var s=a-(o+t)/2;!isNaN(s)&&(s>0||s<-6e5)&&e.on("beforeBuild",function(l){var u;return O(O({},l),{extra:O(O({},(u=l.extra)!==null&&u!==void 0?u:{}),{sdk_offset:s??0})})})}}})})},vd=function(e,t){var r={};return r.bid=t.bid,r.user_id=t.userId,r.device_id=t.deviceId,r.session_id=t.sessionId,r.release=t.release,r.env=t.env,O(O({},e),{extra:O(O({},r),e.extra||{})})},pd=function(e){e.on("beforeBuild",function(t){return vd(t,e.config())})},md=function(e){e.on("start",function(){var t=e.config().bid,r=e.getSender();r.setEndpoint(r.getEndpoint()+("?biz_id="+t))})},gd=function(e){var t=yo(e.storageExpires),r=Yc(e.bid,t);return{bid:"",pid:"",viewId:Do("_"),userId:r.userId,deviceId:r.deviceId,storageExpires:t,sessionId:Kc(),domain:Tc,pluginBundle:{name:"commonMonitors",plugins:["breadcrumb","jsError","performance","resourceError","resource"]},pluginPathPrefix:Cc,plugins:{ajax:{ignoreUrls:Qn},fetch:{ignoreUrls:Qn},breadcrumb:{},pageview:{},jsError:{},resource:{},resourceError:{},performance:{},tti:{},fmp:{},blankScreen:!1,heatmap:!1},release:"",env:"production",sample:Ic,transport:jc()}},yd=function(e){var t=e===void 0?{}:e,r=t.createSender,n=r===void 0?function(d){return Dc({size:Mc,endpoint:Gc(d.domain),transport:d.transport})}:r,a=t.builder,o=a===void 0?td:a,i=t.createDefaultConfig,s=i===void 0?gd:i,l=Cl({validateInitConfig:kc,initConfigNormalizer:Fc,userConfigNormalizer:$c,createSender:n,builder:o,createDefaultConfig:s,createConfigManager:Zc});dd(l),Ol(l);var u=ut(re());Vl(l,u&&u.subject),hd(l),pd(l),nd(l),_c(l),md(l);var c=Ll(l,vo,function(d,m,_){return Gr(d,m)(function(){var x=V(_),E=x[0],S=x.slice(1);l[E].apply(l,me([],V(S),!1))})});return Al(c,Vo),c},yt,vr=(yt={},yt[Yt]=hc,yt[qr]=Tu,yt[Yr]=Vu,yt),No=function(e){e===void 0&&(e={});var t=yd(e);return Sc(t),ud(t),yc(t),Object.keys(vr).forEach(function(r){Vo(r,vr[r]),vr[r](t)}),Uc(t),t.provide("create",No),t},pr="precollect",ta=1e3*60*5;function _d(e,t){if("addEventListener"in e){t.pcErr=function(n){n=n||e.event;var a=n.target||n.srcElement||{};a instanceof Element||a instanceof HTMLElement?t(pr,"st",{tagName:a.tagName,url:a.getAttribute("href")||a.getAttribute("src")}):t(pr,"err",n.error)},t.pcRej=function(n){n=n||e.event,t(pr,"reject",n.reason||n.detail&&n.detail.reason)};var r=[];r.push(Ne(e,"error",t.pcErr,!0)),r.push(Ne(e,"unhandledrejection",t.pcRej,!0)),setTimeout(function(){r.forEach(function(n){return n()})},ta)}"PerformanceObserver"in e&&"PerformanceLongTaskTiming"in e&&(t.pp={entries:[]},t.pp.observer=new PerformanceObserver(function(n){t.pp.entries=t.pp.entries.concat(n.getEntries())}),t.pp.observer.observe({entryTypes:["longtask"]}),setTimeout(function(){t.pp.observer.disconnect()},ta))}var en=No(),ra=re();ra&&_d(ra,en);const bd="modulepreload",Ed=function(e){return"https://lf-dp.bytetos.com/obj/dp-open-internet-cn/visactor-site/bytedance/client/"+e},na={},M=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));a=Promise.allSettled(r.map(l=>{if(l=Ed(l),l in na)return;na[l]=!0;const u=l.endsWith(".css"),c=u?"[rel=\"stylesheet\"]":"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":bd,u||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((m,_)=>{d.addEventListener("load",m),d.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return a.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},aa=[{repo:"VChart",languages:["zh","en"],ref:"develop",version:"1.12.6",packageSource:{VChart:"https://unpkg.com/@visactor/vchart@VERSION/build/index.js"}},{repo:"VGrammar",languages:["zh","en"],ref:"develop",version:"0.13.4",packageSource:{VGrammar:"https://unpkg.com/@visactor/vgrammar-full@VERSION/dist/index.min.js"}},{repo:"VTable",languages:["zh","en"],ref:"develop",version:"1.10.0",packageSource:{VTable:"https://unpkg.com/@visactor/vtable@VERSION/dist/vtable.min.js",VTableEditors:"https://unpkg.com/@visactor/vtable-editors@VERSION/dist/vtable-editors.min.js",VTableExport:"https://unpkg.com/@visactor/vtable-export@VERSION/dist/vtable-export.min.js",VTableGantt:"https://unpkg.com/@visactor/vtable-gantt@VERSION/dist/vtable-gantt.min.js"}},{repo:"VRender",languages:["zh","en"],ref:"develop",version:"0.20.2-alpha.1",packageSource:{VRender:"https://unpkg.com/@visactor/vrender@VERSION/dist/index.min.js"}},{repo:"VMind",languages:["zh","en"],ref:"develop",version:"1.2.12",packageSource:{VMind:""}},{repo:"VStory",languages:["zh","en"],ref:"develop",version:"0.0.8-alpha.1",packageSource:{VStory:"https://unpkg.com/@visactor/vstory@VERSION/dist/index.min.js"}}],xd=["www.visactor.com","visactor.com","localhost"],wd=e=>xd.includes(e),Rd=["www.visactor.io","visactor.io"],Sd=e=>Rd.includes(e),Df=()=>"https://lf-dp.bytetos.com/obj/dp-open-internet-cn/visactor-site/bytedance/client/".replace(/\/$/,""),Pd="datawind-visualization",Tf="vscreen-visualization",Cf="line-chart/basic-line",Of="usage/basic-line",Lf="usage/basic-line",jd="tutorial_docs/VChart_Website_Guide",Dd="barChart",Td="API/vchart",Cd="1-The time interval of the coordinate axis scale is given",Af="playground",Od="release",If="table-type/list-table",Mf="usage/option",Vf="usage/option",Uf="usage/option",Ld="Getting_Started/Getting_Started",Ad="ListTable",Bo="Methods",Id="1-How to implement multi-level headers in a basic table",zf="release",Nf="basic-mark-rect/basic-rect",Md="guides/quick-start",Vd="",Ud="API/View",zd="changelog",Bf="graphic-arc/basic-arc",Nd="asd/VRender_Website_Guide",Bd="VMind_Instance",Fd="Getting_Started",kd="Chart_Assistant",_e=async e=>(e.startsWith("/")&&(e=`https://lf-dp.bytetos.com/obj/dp-open-internet-cn/visactor-site/bytedance/client/${e.replace(/^\//,"")}`),await(await fetch(e)).json()),Ee=async e=>(e.startsWith("/")&&(e=`https://lf-dp.bytetos.com/obj/dp-open-internet-cn/visactor-site/bytedance/client/${e.replace(/^\//,"")}`),await(await fetch(e)).text()),Fo=async e=>{const t=await _e(e);if(!t)return null;const r=(a,o="",i=[])=>{const s=o!==""?`${o}/${a.path}`:a.path;return a.children?a.children.forEach(l=>{r(l,s,i)}):(a.data={fullPath:s},i.push(a)),i};return r(t)},oa=async(e,t,r,n)=>{const a=n!=null&&n.includes("?keyword=")?n.split("?")[1].split("=")[1]:void 0,[o,i]=await Promise.all([Ee(e),Fo(t)]);return!o||!i?null:{data:{meta:i.find(u=>u.data.fullPath===r).meta,content:o},navDemoData:i??[],keyword:a}},Y=e=>{const t=aa.find(r=>r.repo.toLowerCase()===e.toLowerCase())??aa[0];return`https://lf-dp.bytetos.com/obj/dp-open-internet-cn/visactor-site/bytedance/client/documents/${t.repo.toLowerCase()}-${t.version}`},Ct=e=>e.replaceAll(" ","-");var Dr=(e=>(e.chinese="zh",e.english="en",e))(Dr||{});const $d=e=>{let t=Sd(e)?"en":"zh";if(typeof document>"u")return t;t=window.navigator.language.startsWith("zh")?"zh":"en";const r=window.localStorage.getItem("language");return r==="1"?"zh":r==="2"?"en":mi(r)?r:t},Hd=e=>{window.localStorage.setItem("language",`${e}`)},ko=f.createContext({language:"zh",setLanguage:e=>{},isVisActorChineseDomain:!0,isMobile:!1});function $o(e){return!!e.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)}const Gd={more:{[Dr.chinese]:"\u70B9\u51FB\u5C55\u5F00\u5168\u90E8\u5185\u5BB9",[Dr.english]:"Click to expand"}};function Tr(e,t=""){const r={},n=Object.keys(e).map(a=>{const o=t===""?a:`${t}.${a}`,i=o.split("."),s={desc:e[a].desc,fullPath:o,prop:i[i.length-1],path:i,children:[]};return r[o]=s,s});return n.forEach(a=>{const o=a.path.slice(0,-1).join("."),i=r[o];i&&i.children.push(a)}),n.filter(a=>a.path.length===1||a.path.length===2)}function Ho(e){var s,l;const{description:t,recordedOutline:r}=e,n=r[t.fullPath],a=(l=(s=t.fullPath)==null?void 0:s.replaceAll)==null?void 0:l.call(s,"\"",""),o=t.path.length<=1?"":t.path.slice(0,-1).join(".")+".",i=t.path[t.path.length-1];return n?h.jsxs("div",{style:{borderBottom:"1px solid #ccc",paddingBottom:40,marginLeft:20,position:"relative",width:"calc(100% - 32px)"},children:[e.connectLine?h.jsx("div",{style:{position:"absolute",width:40,top:15,left:-48,borderTop:"1px solid rgb(224, 230, 241)"}}):null,h.jsxs("h1",{id:a,style:{fontSize:21,marginBottom:5,wordBreak:"break-word"},children:[h.jsx("span",{style:{color:"rgb(134, 144, 156)"},children:o}),i,h.jsx("span",{style:{color:"rgb(134, 144, 156)"},children:n.default?` = ${n.default}`:""})]}),n.type&&n.type!==""?Fa(n.type).map(u=>h.jsx("div",{style:{background:"rgb(232, 243, 255)",width:"fit-content",padding:"0px 10px",marginBottom:10,marginRight:6,color:"rgb(22, 93, 255)",borderRadius:2,display:"inline-block",lineHeight:"1.5"},children:u})):null,h.jsx("div",{dangerouslySetInnerHTML:{__html:t.desc}})]}):null}function Go(e){const{language:t}=f.useContext(ko),{description:r,recordedOutline:n}=e,a=n[r.fullPath],[o,i]=f.useState(!1),s=Dt(),{pathname:l,hash:u}=s,c=decodeURI(l.split(`${e.baseUrl}/`)[1]??"barChart"),m=decodeURI(u?`${c}.${u.substring(1)}`:c).split("."),x=a.fullPath.replaceAll("\"","").split(".").every((w,R)=>w===m[R])||o,E=r.fullPath.replaceAll("\"",""),S=r.path.slice(0,-1).join(".")+".",C=r.path[r.path.length-1];return a?h.jsxs("div",{style:{borderBottom:"1px solid #ccc",paddingBottom:40,marginLeft:20,position:"relative",width:"calc(100% - 20px)"},children:[e.connectLine?h.jsx("div",{style:{position:"absolute",width:20,top:15,left:-48,borderTop:"1px solid rgb(224, 230, 241)"}}):null,h.jsx("div",{style:{visibility:x?"visible":"hidden",position:"absolute",width:11,height:"calc(100% - 40px)",top:15,left:-17,borderLeft:"1px solid rgb(224, 230, 241)",borderBottom:"1px solid rgb(224, 230, 241)"}}),h.jsx(yi,{type:"secondary",icon:x?h.jsx(_i,{style:{marginBottom:.5}}):h.jsx(bi,{style:{marginBottom:.5}}),style:{position:"absolute",left:-24,top:8,width:15,height:15,lineHeight:"12px",fontSize:12,borderRadius:"50%",color:"white",background:"rgb(154, 173, 209)"},onClick:()=>i(!o)}),h.jsxs("h2",{id:E,style:{fontSize:21,marginBottom:5,wordBreak:"break-word"},children:[h.jsx("span",{style:{color:"rgb(134, 144, 156)"},children:S}),C,h.jsx("span",{style:{color:"rgb(134, 144, 156)"},children:a.default?` = ${a.default}`:""})]}),a.type&&a.type!==""?Fa(a.type).map(w=>h.jsx("div",{style:{background:"rgb(232, 243, 255)",width:"fit-content",padding:"0px 10px",marginBottom:10,marginRight:6,color:"rgb(22, 93, 255)",borderRadius:2,display:"inline-block",lineHeight:"1.5"},children:w})):null,h.jsx("div",{style:{lineHeight:"1.5"},dangerouslySetInnerHTML:{__html:r.desc}}),h.jsx("div",{style:{marginLeft:12},children:x?r.children.map(w=>w.children.length>0?h.jsx(Go,{baseUrl:e.baseUrl,description:w,recordedOutline:n,connectLine:!0},w.fullPath):h.jsx(Ho,{baseUrl:e.baseUrl,description:w,recordedOutline:n,connectLine:!0},w.fullPath)):null}),x?null:h.jsx("div",{className:"option-description-display-more",onClick:()=>i(!0),children:Gd.more[t]})]}):null}function Ff(e){return!e.descriptions||e.descriptions.length===0||!e.recordedOutline||Object.keys(e.recordedOutline).length===0?h.jsx(h.Fragment,{}):h.jsx("div",{style:{padding:"20px 20px 60px 40px",width:`calc(100vw - ${20+(e.outlineWidth??280)}px)`,...(e.style??{})},className:"option-description",children:e.descriptions.map(t=>{const r=t.fullPath.replaceAll("\"","");return t.children.length>0?h.jsx(Go,{baseUrl:e.baseUrl,description:t,recordedOutline:e.recordedOutline},r):h.jsx(Ho,{baseUrl:e.baseUrl,description:t,recordedOutline:e.recordedOutline},r)})})}const Wd=Cr.SubMenu,ia=Cr.Item;function Wo(e,t,r=""){if(!e)return null;const n=r!==""?`${r}/${e.path}`:e.path;return{id:n,name:e.title[t],fullPath:n,children:e.children?e.children.map(o=>Wo(o,t,n)):null}}function Ko(e){const t=e.node,r=eo();return t.children?h.jsx(Wd,{title:h.jsx(h.Fragment,{children:t.name}),...e,children:h.jsx("div",{children:t.children.map(n=>h.jsx(Ko,{baseUrl:e.baseUrl,node:n},n.fullPath))})},t.fullPath):t.link?h.jsx(ia,{onClick:()=>{window.open(t.link)},...e,children:t.name},t.link):h.jsx(ia,{onClick:()=>{var n,a;(a=(n=document.getElementById("markdownDocumentContainer"))==null?void 0:n.scrollTo)==null||a.call(n,{top:0}),r(`${e.baseUrl}/${t.fullPath}`,{replace:!0})},...e,children:t.name},t.fullPath)}function kf(e){const t=Dt(),{pathname:r}=t,n=decodeURI(r).split(`${e.baseUrl}/`)[1],a=n.split("/")??[],o=a.map((i,s)=>a.slice(0,s).join("/"));return h.jsx("div",{className:"menu-demo-round",style:{paddingTop:20,paddingBottom:20,...(e.style??{})},children:h.jsx(Cr,{selectedKeys:[n],defaultOpenKeys:o,children:(e.outline??[]).map(i=>h.jsx(Ko,{baseUrl:e.baseUrl,node:i},i.fullPath))})})}async function Xt({request:e,params:t}){const r=()=>{const{pathname:u}=new URL(e.url),c={vchart:Td,vtable:Bo,vgrammar:Ud,vmind:Bd},d=u.match(/^\/([^/]+)/)[1];return{root:d,defaultParams:c[d]}},{root:n,defaultParams:a}=r(),o=()=>_e(`${Y(n)}/api/menu.json`).catch(()=>null),i=async()=>{const u=Ct(t["*"]??a),c=`${Y(n)}/api`,[d,m]=await Promise.all([Ee(`${c}/zh/${u}.md`).catch(()=>""),Ee(`${c}/en/${u}.md`).catch(()=>"")]);return{zh:d,en:m}},[s,l]=await Promise.all([o(),i()]);return{menu:s,content:l}}async function Ot({request:e,params:t}){const r=()=>{const{pathname:u}=new URL(e.url),c={vchart:jd,vtable:Ld,vgrammar:Md,vrender:Nd,vmind:Fd},d=u.match(/^\/([^/]+)/)[1];return{root:d,defaultParams:c[d]}},{root:n,defaultParams:a}=r(),o=()=>_e(`${Y(n)}/guide/menu.json`).catch(()=>null),i=async()=>{const u=Ct(t["*"]??a),c=`${Y(n)}/guide`,[d,m]=await Promise.all([Ee(`${c}/zh/${u}.md`).catch(()=>""),Ee(`${c}/en/${u}.md`).catch(()=>"")]);return{zh:d,en:m}},[s,l]=await Promise.all([i(),o()]);return{content:s,menu:l}}async function qo({request:e,params:t}){const r=()=>{const{pathname:u}=new URL(e.url),c={vchart:Cd,vtable:Id},d=u.match(/^\/([^/]+)/)[1];return{root:d,defaultParams:c[d]}},{root:n,defaultParams:a}=r(),o=()=>_e(`${Y(n)}/faq/menu.json`).catch(()=>null),i=async()=>{const u=Ct(t["*"]??a),c=`${Y(n)}/faq`,[d,m]=await Promise.all([Ee(`${c}/zh/${u}.md`),Ee(`${c}/en/${u}.md`)]);return{zh:d,en:m}},[s,l]=await Promise.all([i(),o()]);return{menu:l,content:s}}async function Se({request:e,params:t}){const{pathname:r}=new URL(e.url),n=r.split("/"),a=n[1],o=a==="vtable"?n[2].replace("example","demo"):n[2].replace("example","examples");return console.log("====================",`${Y(a)}/${o}/menu.json`),await Fo(`${Y(a)}/${o}/menu.json`)}async function Pe({request:e,params:t}){const{pathname:r,search:n}=new URL(e.url),a=r.split("/"),o=a[1],i=o==="vtable"?a[2]:a[2].replace("demo","examples"),[s,l]=await Promise.all([oa(`${Y(o)}/${i}/en/${t["*"]}.md`,`${Y(o)}/${i}/menu.json`,t["*"],n),oa(`${Y(o)}/${i}/zh/${t["*"]}.md`,`${Y(o)}/${i}/menu.json`,t["*"],n)]);return{en:s,zh:l}}async function tn({request:e,params:t,language:r}){const n=()=>{const{pathname:l}=new URL(e.url),u={vchart:Dd,vtable:Ad,vgrammar:Vd},c=l.match(/^\/([^/]+)/)[1];return{root:c,defaultParams:u[c]}},{root:a,defaultParams:o}=n(),i=async l=>{try{return await _e(`${Y(a)}/option/${l}/outline.json`)}catch(u){console.log(u)}return null},s=async l=>{try{const c=(t["*"]??o).split(".")[0],d=await _e(!c||c===""?`${Y(a)}/option/${l}/option.json`:`${Y(a)}/option/${l}/option.${c}.json`);return Tr(d,c)}catch(u){console.log(u)}return""};if(r)if(a==="vchart"){const l=await s(r);return _n({[r]:{outline:i(r),description:l}})}else{const[l,u]=await Promise.all([i(r),s(r)]);return{[r]:{outline:l,description:u}}}if(a==="vchart"){const[l,u]=await Promise.all([s("zh"),s("en")]);return _n({zh:{outline:i("zh"),description:l},en:{outline:i("en"),description:u}})}else{const[l,u,c,d]=await Promise.all([i("zh"),i("en"),s("zh"),s("en")]);return{zh:{outline:l,description:c},en:{outline:u,description:d}}}}async function Kd({params:e}){const r=(e["*"]??Bo).split(".")[0],[n,a,o,i]=await Promise.all([_e(`${Y("vtable")}/api/zh/outline.json`),_e(`${Y("vtable")}/api/en/outline.json`),_e(!r||r===""?`${Y("vtable")}/api/zh/api.json`:`${Y("vtable")}/api/zh/api.${r}.json`),_e(!r||r===""?`${Y("vtable")}/api/en/api.json`:`${Y("vtable")}/api/en/api.${r}.json`)]);return{zh:{outline:n,descriptioin:Tr(o,r)},en:{outline:a,descriptioin:Tr(i,r)}}}async function sa({params:e}){const t=async s=>{try{const l=await _e("/documents/visactor/blog/menu.json");return((l==null?void 0:l.children)??[]).map(u=>Wo(u,s))}catch(l){console.log(l)}return null},r=async s=>{try{const l=Ct(e["*"]??Pd);return(await Ee(`/documents/visactor/blog/${s}/${l}.md`))??""}catch(l){console.log(l)}return""},[n,a,o,i]=await Promise.all([t("zh"),t("en"),r("zh"),r("en")]);return{zh:{outline:n,content:o},en:{outline:a,content:i}}}async function Jo({request:e,params:t}){const r=()=>{const{pathname:u}=new URL(e.url),c={vchart:Od,vgrammar:zd},d=u.match(/^\/([^/]+)/)[1];return{root:d,defaultParams:c[d]}},{root:n,defaultParams:a}=r(),o=()=>_e(`${Y(n)}/changelog/menu.json`).catch(()=>null),i=async()=>{const u=Ct(t["*"]??a),c=`${Y(n)}/changelog`,[d,m]=await Promise.all([Ee(`${c}/zh/${u}.md`).catch(()=>""),Ee(`${c}/en/${u}.md`).catch(()=>"")]);return{zh:d,en:m}},[s,l]=await Promise.all([o(),i()]);return{menu:s,content:l}}async function qd({request:e,params:t}){const r=()=>{const{pathname:u}=new URL(e.url),c={vmind:kd},d=u.match(/^\/([^/]+)/)[1];return{root:d,defaultParams:c[d]}},{root:n,defaultParams:a}=r(),o=()=>_e(`${Y(n)}/scenario/menu.json`).catch(()=>null),i=async()=>{const u=t["*"]??a,c=`${Y(n)}/scenario`,[d,m]=await Promise.all([Ee(`${c}/zh/${u}.md`).catch(()=>""),Ee(`${c}/en/${u}.md`).catch(()=>"")]);return{zh:d,en:m}},[s,l]=await Promise.all([o(),i()]);return{menu:s,content:l}}const Jd=f.lazy(()=>M(()=>import("./index-c4gOH6ES.js"),__vite__mapDeps([0,1,2,3]))),Yd=f.lazy(async()=>{const{VChart:e}=await M(async()=>{const{VChart:t}=await import("./index-b6hDrO8F.js");return{VChart:t}},__vite__mapDeps([4,2,1,5,6,7,3,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]));return{default:e}}),Xd=f.lazy(async()=>{const{Example:e}=await M(async()=>{const{Example:t}=await import("./index-Ck8jHNWD.js");return{Example:t}},__vite__mapDeps([25,2,1,26,27,3,28,13,14,15,16,17,12,18,19,20,29,30,24]));return{default:e}}),la=f.lazy(async()=>{const{Demo:e}=await M(async()=>{const{Demo:t}=await import("./index-Be2s0003.js");return{Demo:t}},__vite__mapDeps([31,1,2,3]));return{default:e}}),Qd=f.lazy(async()=>{const{Example:e}=await M(async()=>{const{Example:t}=await import("./index-DMColwml.js");return{Example:t}},__vite__mapDeps([32,1,13,14,2,3,15,16,17,12,18,19,20,33,30,26,27,28,24]));return{default:e}}),ua=f.lazy(async()=>{const{Demo:e}=await M(async()=>{const{Demo:t}=await import("./index-DsK7VtxV.js");return{Demo:t}},__vite__mapDeps([34,1,13,14,2,3,15,16,17,12,18,19,20,35]));return{default:e}}),Zd=f.lazy(async()=>{const{Example:e}=await M(async()=>{const{Example:t}=await import("./index-xkvhliur.js");return{Example:t}},__vite__mapDeps([36,1,13,14,2,3,15,16,17,12,18,19,20,33,30,26,27,28,24]));return{default:e}}),ca=f.lazy(async()=>{const{Demo:e}=await M(async()=>{const{Demo:t}=await import("./index-C8U8XZwu.js");return{Demo:t}},__vite__mapDeps([37,1,13,14,2,3,15,16,17,12,18,19,20,35]));return{default:e}}),da=f.lazy(async()=>{const{Option:e}=await M(async()=>{const{Option:t}=await import("./index-CYOo-r53.js");return{Option:t}},__vite__mapDeps([38,1,2,3]));return{default:e}}),fa=f.lazy(async()=>{const{Guide:e}=await M(async()=>{const{Guide:t}=await import("./index-DLARpWbL.js");return{Guide:t}},__vite__mapDeps([39,1,2,3]));return{default:e}}),ha=f.lazy(async()=>{const{API:e}=await M(async()=>{const{API:t}=await import("./index-BucIFno1.js");return{API:t}},__vite__mapDeps([40,2,1,13,14,3,15,16,17,12,18,19,20,41,42,28,24,43,44,45,46,47,48,49]));return{default:e}}),va=f.lazy(async()=>{const{FAQ:e}=await M(async()=>{const{FAQ:t}=await import("./index-JUIdBJ4Z.js");return{FAQ:t}},__vite__mapDeps([50,1,2,3]));return{default:e}}),pa=f.lazy(async()=>{const{Theme:e}=await M(async()=>{const{Theme:t}=await import("./index-CAnRhIFu.js");return{Theme:t}},__vite__mapDeps([51,1,2,3,13,14,15,16,17,12,18,19,20]));return{default:e}}),ma=f.lazy(async()=>{const{Changelog:e}=await M(async()=>{const{Changelog:t}=await import("./index-CABj2mLI.js");return{Changelog:t}},__vite__mapDeps([52,1,2,3]));return{default:e}}),ga=f.lazy(async()=>{const{Bundle:e}=await M(async()=>{const{Bundle:t}=await import("./index-B2Ak-rls.js");return{Bundle:t}},__vite__mapDeps([53,2,1,3,54,19,10,13,14,15,16,17,12,18,20,55,56,57]));return{default:e}}),ef=f.lazy(async()=>{const{Playground:e}=await M(async()=>{const{Playground:t}=await import("./index-CsFcy4u6.js");return{Playground:t}},__vite__mapDeps([58,1,13,14,2,3,15,16,17,12,18,19,20,35,59,56]));return{default:e}}),tf=f.lazy(async()=>{const{VTable:e}=await M(async()=>{const{VTable:t}=await import("./index-4wE-nLk8.js");return{VTable:t}},__vite__mapDeps([60,1,24,2,3]));return{default:e}}),rf=f.lazy(async()=>{const{Example:e}=await M(async()=>{const{Example:t}=await import("./index-DfXoqdKK.js");return{Example:t}},__vite__mapDeps([61,1,62,14,2,3,15,16,17,12,18,19,20,33,30,26,27,28,24]));return{default:e}}),ya=f.lazy(async()=>{const{Demo:e}=await M(async()=>{const{Demo:t}=await import("./index-CgENxcSr.js");return{Demo:t}},__vite__mapDeps([63,1,35,62,14,2,3,15,16,17,12,18,19,20]));return{default:e}}),nf=f.lazy(async()=>{const{Example:e}=await M(async()=>{const{Example:t}=await import("./index-DKDrD6m_.js");return{Example:t}},__vite__mapDeps([64,1,62,14,2,3,15,16,17,12,18,19,20,33,30,26,27,28,24]));return{default:e}}),_a=f.lazy(async()=>{const{Demo:e}=await M(async()=>{const{Demo:t}=await import("./index-DDUwWtf1.js");return{Demo:t}},__vite__mapDeps([65,1,62,14,2,3,15,16,17,12,18,19,20,35]));return{default:e}}),af=f.lazy(async()=>{const{Example:e}=await M(async()=>{const{Example:t}=await import("./index-B-ngH8vm.js");return{Example:t}},__vite__mapDeps([66,1,62,14,2,3,15,16,17,12,18,19,20,33,30,26,27,28,24]));return{default:e}}),ba=f.lazy(async()=>{const{Demo:e}=await M(async()=>{const{Demo:t}=await import("./index-BJyOCBJf.js");return{Demo:t}},__vite__mapDeps([67,1,62,14,2,3,15,16,17,12,18,19,20,35]));return{default:e}}),of=f.lazy(async()=>{const{Example:e}=await M(async()=>{const{Example:t}=await import("./index-YInn4IQf.js");return{Example:t}},__vite__mapDeps([68,1,62,14,2,3,15,16,17,12,18,19,20,33,30,26,27,28,24]));return{default:e}}),Ea=f.lazy(async()=>{const{Demo:e}=await M(async()=>{const{Demo:t}=await import("./index-xTOZOavL.js");return{Demo:t}},__vite__mapDeps([69,1,62,14,2,3,15,16,17,12,18,19,20,35]));return{default:e}}),xa=f.lazy(async()=>{const{Guide:e}=await M(async()=>{const{Guide:t}=await import("./index-LDnabB9N.js");return{Guide:t}},__vite__mapDeps([70,1,49,2,3]));return{default:e}}),wa=f.lazy(async()=>{const{Option:e}=await M(async()=>{const{Option:t}=await import("./index-Cmj-I1lP.js");return{Option:t}},__vite__mapDeps([71,2,1,62,14,3,15,16,17,12,18,19,20,72,24,43,44,73]));return{default:e}}),Ra=f.lazy(async()=>M(()=>import("./index-BDT5ryij.js"),__vite__mapDeps([74,2,1,62,14,3,15,16,17,12,18,19,20,72,24,43,44,73]))),Sa=f.lazy(async()=>M(()=>import("./index-Dn2e9QR7.js"),__vite__mapDeps([75,1,2,3]))),Pa=f.lazy(async()=>{const{Changelog:e}=await M(async()=>{const{Changelog:t}=await import("./index-CSyR9sQY.js");return{Changelog:t}},__vite__mapDeps([76,1,2,3]));return{default:e}}),sf=f.lazy(async()=>{const{VGrammar:e}=await M(async()=>{const{VGrammar:t}=await import("./index-CR3Fsmjf.js");return{VGrammar:t}},__vite__mapDeps([77,2,1,7,3,8,9,10,11,12,78,14,15,16,17,18,19,20,5,6,21,22,23,24]));return{default:e}}),lf=f.lazy(async()=>{const{Example:e}=await M(async()=>{const{Example:t}=await import("./index-DQQ4s_ZN.js");return{Example:t}},__vite__mapDeps([79,1,78,14,2,3,15,16,17,12,18,19,20,33,30,26,27,28,24]));return{default:e}}),ja=f.lazy(async()=>{const{Demo:e}=await M(async()=>{const{Demo:t}=await import("./index-1zBvmKZO.js");return{Demo:t}},__vite__mapDeps([80,1,35,78,14,2,3,15,16,17,12,18,19,20]));return{default:e}}),Da=f.lazy(async()=>{const{Guide:e}=await M(async()=>{const{Guide:t}=await import("./index-ChoAD5n5.js");return{Guide:t}},__vite__mapDeps([81,1,2,3]));return{default:e}}),Ta=f.lazy(async()=>{const{Option:e}=await M(async()=>{const{Option:t}=await import("./index-D3DQ0Brj.js");return{Option:t}},__vite__mapDeps([82,2,1,78,14,3,15,16,17,12,18,19,20,72,24,43,44,73]));return{default:e}}),Ca=f.lazy(async()=>{const{API:e}=await M(async()=>{const{API:t}=await import("./index-G7UnISpY.js");return{API:t}},__vite__mapDeps([83,2,1,78,14,3,15,16,17,12,18,19,20,41,42,28,24,43,44,45,46,47,48,49]));return{default:e}}),uf=f.lazy(async()=>{const{VRender:e}=await M(async()=>{const{VRender:t}=await import("./index-pLus5Eg3.js");return{VRender:t}},__vite__mapDeps([84,2,1,7,3,8,9,10,11,12,85,14,15,16,17,18,19,20,5,6,21,22,23,24]));return{default:e}}),cf=f.lazy(async()=>{const{Example:e}=await M(async()=>{const{Example:t}=await import("./index-H1oVW_Nq.js");return{Example:t}},__vite__mapDeps([86,1,85,14,2,3,15,16,17,12,18,19,20,33,30,26,27,28,24]));return{default:e}}),Oa=f.lazy(async()=>{const{Demo:e}=await M(async()=>{const{Demo:t}=await import("./index-Csluuc71.js");return{Demo:t}},__vite__mapDeps([87,1,85,14,2,3,15,16,17,12,18,19,20,35]));return{default:e}}),La=f.lazy(async()=>{const{Guide:e}=await M(async()=>{const{Guide:t}=await import("./index-0ST4h_LE.js");return{Guide:t}},__vite__mapDeps([88,1,2,3]));return{default:e}}),Aa=f.lazy(async()=>{const{Option:e}=await M(async()=>{const{Option:t}=await import("./index-BkodMQxf.js");return{Option:t}},__vite__mapDeps([89,1,2,3]));return{default:e}}),df=f.lazy(async()=>{const{VMind:e}=await M(async()=>{const{VMind:t}=await import("./index-rFHSi1Ry.js");return{VMind:t}},__vite__mapDeps([90,2,1,7,3,8,9,10,11,12,91,14,15,16,17,18,19,20,5,6,92,21,22,23,24]));return{default:e}}),Ia=f.lazy(async()=>{const{Guide:e}=await M(async()=>{const{Guide:t}=await import("./index-Dgos0ezs.js");return{Guide:t}},__vite__mapDeps([93,1,2,3]));return{default:e}}),Ma=f.lazy(async()=>{const{API:e}=await M(async()=>{const{API:t}=await import("./index-C_q3p88v.js");return{API:t}},__vite__mapDeps([94,2,1,91,14,3,15,16,17,12,18,19,20,41,42,28,24,43,44,45,46,47,48,49]));return{default:e}}),Va=f.lazy(async()=>{const{Playground:e}=await M(async()=>{const{Playground:t}=await import("./index-DqMfXYwv.js");return{Playground:t}},__vite__mapDeps([95,1,2,3]));return{default:e}}),Ua=f.lazy(async()=>{const{Scenario:e}=await M(async()=>{const{Scenario:t}=await import("./index-3QFzRo2b.js");return{Scenario:t}},__vite__mapDeps([96,1,2,3]));return{default:e}}),za=f.lazy(async()=>{const{Blog:e}=await M(async()=>{const{Blog:t}=await import("./index-ByR45n1A.js");return{Blog:t}},__vite__mapDeps([97,2,1,41,42,28,3,24,43,44,45,46,47,48,98,14,15,16,17,12,99,100,49]));return{default:e}}),Na=f.lazy(async()=>{const{Senario:e}=await M(async()=>{const{Senario:t}=await import("./index-Ch83aDga.js");return{Senario:t}},__vite__mapDeps([101,1,2,3,98,14,15,16,17,12,99,100]));return{default:e}}),ff=f.lazy(async()=>{const{VStory:e}=await M(async()=>{const{VStory:t}=await import("./index-DV7TXqwj.js");return{VStory:t}},__vite__mapDeps([102,2,1,7,3,8,9,10,11,12,103,14,15,16,17,20,21,23,24]));return{default:e}}),hf=f.lazy(async()=>{const{Example:e}=await M(async()=>{const{Example:t}=await import("./index-BCXz928w.js");return{Example:t}},__vite__mapDeps([104,1,103,14,2,3,15,16,17,12,20,33,30,26,27,28,24]));return{default:e}}),Ba=f.lazy(async()=>{const{Demo:e}=await M(async()=>{const{Demo:t}=await import("./index-C1whY94i.js");return{Demo:t}},__vite__mapDeps([105,1,103,14,2,3,15,16,17,12,20,35]));return{default:e}}),vf=[{path:"/vchart",element:h.jsx(f.Suspense,{children:h.jsx(Yd,{})})},{path:"/vchart/example",shouldRevalidate:()=>!0,loader:Se,element:h.jsx(f.Suspense,{children:h.jsx(Xd,{})})},{path:"/vchart/demo",shouldRevalidate:()=>!0,loader:Pe,element:h.jsx(f.Suspense,{children:h.jsx(la,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(la,{})})}]},{path:"/vchart/example-react",shouldRevalidate:()=>!0,loader:Se,element:h.jsx(f.Suspense,{children:h.jsx(Qd,{})})},{path:"/vchart/demo-react",shouldRevalidate:()=>!0,loader:Pe,element:h.jsx(f.Suspense,{children:h.jsx(ua,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(ua,{})})}]},{path:"/vchart/example-openinula",shouldRevalidate:()=>!0,loader:Se,element:h.jsx(f.Suspense,{children:h.jsx(Zd,{})})},{path:"/vchart/demo-openinula",shouldRevalidate:()=>!0,loader:Pe,element:h.jsx(f.Suspense,{children:h.jsx(ca,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(ca,{})})}]},{path:"/vchart/guide",loader:Ot,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(fa,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(fa,{})})}]},{path:"/vchart/option",shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(da,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(da,{})})}]},{path:"/vchart/api",loader:Xt,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(ha,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(ha,{})})}]},{path:"/vchart/faq",loader:qo,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(va,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(va,{})})}]},{path:"/vchart/theme",shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(pa,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(pa,{})})}]},{path:"/vchart/changelog",loader:Jo,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(ma,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(ma,{})})}]},{path:"/vchart/bundle",element:h.jsx(f.Suspense,{children:h.jsx(ga,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(ga,{})})}]},{path:"/vchart/playground",shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(ef,{})})}],pf=[{path:"/vtable",element:h.jsx(f.Suspense,{children:h.jsx(tf,{})})},{path:"/vtable/example",shouldRevalidate:()=>!0,loader:Se,element:h.jsx(f.Suspense,{children:h.jsx(rf,{})})},{path:"/vtable/demo",shouldRevalidate:()=>!0,loader:Pe,element:h.jsx(f.Suspense,{children:h.jsx(ya,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(ya,{})})}]},{path:"/vtable/example-react",shouldRevalidate:()=>!0,loader:Se,element:h.jsx(f.Suspense,{children:h.jsx(nf,{})})},{path:"/vtable/demo-react",shouldRevalidate:()=>!0,loader:Pe,element:h.jsx(f.Suspense,{children:h.jsx(_a,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(_a,{})})}]},{path:"/vtable/example-vue",shouldRevalidate:()=>!0,loader:Se,element:h.jsx(f.Suspense,{children:h.jsx(af,{})})},{path:"/vtable/demo-vue",shouldRevalidate:()=>!0,loader:Pe,element:h.jsx(f.Suspense,{children:h.jsx(ba,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(ba,{})})}]},{path:"/vtable/example-openinula",shouldRevalidate:()=>!0,loader:Se,element:h.jsx(f.Suspense,{children:h.jsx(of,{})})},{path:"/vtable/demo-openinula",shouldRevalidate:()=>!0,loader:Pe,element:h.jsx(f.Suspense,{children:h.jsx(Ea,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Ea,{})})}]},{path:"/vtable/guide",loader:Ot,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(xa,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(xa,{})})}]},{path:"/vtable/option",loader:tn,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(wa,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(wa,{})})}]},{path:"/vtable/api",loader:Kd,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Ra,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Ra,{})})}]},{path:"/vtable/faq",loader:qo,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Sa,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Sa,{})})}]},{path:"/vtable/changelog",loader:Jo,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Pa,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Pa,{})})}]}],mf=[{path:"/vgrammar",element:h.jsx(f.Suspense,{children:h.jsx(sf,{})})},{path:"/vgrammar/example",shouldRevalidate:()=>!0,loader:Se,element:h.jsx(f.Suspense,{children:h.jsx(lf,{})})},{path:"/vgrammar/guide",loader:Ot,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Da,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Da,{})})}]},{path:"/vgrammar/demo",shouldRevalidate:()=>!0,loader:Pe,element:h.jsx(f.Suspense,{children:h.jsx(ja,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(ja,{})})}]},{path:"/vgrammar/option",loader:tn,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Ta,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Ta,{})})}]},{path:"/vgrammar/api",loader:Xt,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Ca,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Ca,{})})}]}],gf=[{path:"/vrender",element:h.jsx(f.Suspense,{children:h.jsx(uf,{})})},{path:"/vrender/example",shouldRevalidate:()=>!0,loader:Se,element:h.jsx(f.Suspense,{children:h.jsx(cf,{})})},{path:"/vrender/demo",shouldRevalidate:()=>!0,loader:Pe,element:h.jsx(f.Suspense,{children:h.jsx(Oa,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Oa,{})})}]},{path:"/vrender/guide",loader:Ot,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(La,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(La,{})})}]},{path:"/vrender/option",loader:tn,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Aa,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Aa,{})})}]}],yf=[{path:"/vmind",element:h.jsx(f.Suspense,{children:h.jsx(df,{})})},{path:"/vmind/guide",loader:Ot,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Ia,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Ia,{})})}]},{path:"/vmind/api",loader:Xt,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Ma,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Ma,{})})}]},{path:"/vmind/playground",loader:Xt,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Va,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Va,{})})}]},{path:"/vmind/scenario",loader:qd,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Ua,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Ua,{})})}]}],_f=[{path:"/vstory",element:h.jsx(f.Suspense,{children:h.jsx(ff,{})})},{path:"/vstory/example",shouldRevalidate:()=>!0,loader:Se,element:h.jsx(f.Suspense,{children:h.jsx(hf,{})})},{path:"/vstory/demo",shouldRevalidate:()=>!0,loader:Pe,element:h.jsx(f.Suspense,{children:h.jsx(Ba,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Ba,{})})}]}],bf=[{path:"/",async loader({request:e}){return{isMobile:$o(e.headers.get("User-Agent")??"")}},element:h.jsx(f.Suspense,{children:h.jsx(Jd,{})})},{path:"/blog",loader:sa,shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(za,{})}),children:[{path:"*",loader:sa,element:h.jsx(f.Suspense,{children:h.jsx(za,{})})}]},{path:"/senario",shouldRevalidate:()=>!0,element:h.jsx(f.Suspense,{children:h.jsx(Na,{})}),children:[{path:"*",element:h.jsx(f.Suspense,{children:h.jsx(Na,{})})}]},...vf,...pf,...mf,...gf,...yf,..._f,{path:"*",element:h.jsx(Ls,{to:"/"})}];function Ef({children:e,hostname:t,userAgent:r}){const[n,a]=f.useState($d(t)),o={language:n,setLanguage:i=>{a(i),Hd(i)},isVisActorChineseDomain:wd(t),isMobile:$o(r)};return h.jsx(ko.Provider,{value:o,children:e})}function Yo(){function e(n){return .0003281916639317362*n+.36987200525106645}const t=window.innerWidth,r=e(t);document.documentElement.style.setProperty("--font-scale",""+r)}window.addEventListener("resize",()=>{Yo()});window.addEventListener("load",()=>{Yo()});en("init",{bid:"chartspace_site",env:`production(${location.host})`});en("start");f.startTransition(()=>{gi(document.getElementById("root"),h.jsx(f.StrictMode,{children:h.jsx(Ef,{hostname:location.hostname,userAgent:navigator.userAgent,children:h.jsx(qs,{router:Ns(bf)})})}))});export{Pf as A,Sf as B,tn as C,Ff as D,jf as E,Wo as F,Cf as G,Of as H,Lf as I,If as J,Mf as K,ko as L,Vf as M,Ls as N,kf as O,Uf as P,Nf as Q,Bf as R,kd as S,M as _,Dr as a,eo as b,jd as c,Dd as d,Td as e,Cd as f,Af as g,_e as h,Y as i,Df as j,Ld as k,Ad as l,Bo as m,Id as n,zf as o,Md as p,Vd as q,aa as r,Ud as s,Nd as t,Dt as u,Od as v,Fd as w,Bd as x,Pd as y,Tf as z};//# sourceMappingURL=index-Da79Vlnf.js.map