@yoast/ai-insights-client 1.4.90 → 1.4.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var A0=Object.defineProperty;var ou=t=>{throw TypeError(t)};var w0=(t,e,n)=>e in t?A0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var se=(t,e,n)=>w0(t,typeof e!="symbol"?e+"":e,n),qa=(t,e,n)=>e.has(t)||ou("Cannot "+n);var T=(t,e,n)=>(qa(t,e,"read from private field"),n?n.call(t):e.get(t)),$=(t,e,n)=>e.has(t)?ou("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),V=(t,e,n,r)=>(qa(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),de=(t,e,n)=>(qa(t,e,"access private method"),n);var vs=(t,e,n,r)=>({set _(i){V(t,e,i,n)},get _(){return T(t,e,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),w=require("@yoast/ui-library"),D=require("react"),zf=require("react-dom");function S0(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const E=S0(D);function Gf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ai={},lu;function C0(){if(lu)return ai;lu=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.parse=a,ai.serialize=u;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,s=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function a(y,h){const p=new s,m=y.length;if(m<2)return p;const g=(h==null?void 0:h.decode)||c;let v=0;do{const S=y.indexOf("=",v);if(S===-1)break;const k=y.indexOf(";",v),C=k===-1?m:k;if(S>C){v=y.lastIndexOf(";",S-1)+1;continue}const A=o(y,v,S),j=l(y,S,A),b=y.slice(A,j);if(p[b]===void 0){let x=o(y,S+1,C),M=l(y,C,x);const _=g(y.slice(x,M));p[b]=_}v=C+1}while(v<m);return p}function o(y,h,p){do{const m=y.charCodeAt(h);if(m!==32&&m!==9)return h}while(++h<p);return p}function l(y,h,p){for(;h>p;){const m=y.charCodeAt(--h);if(m!==32&&m!==9)return h+1}return p}function u(y,h,p){const m=(p==null?void 0:p.encode)||encodeURIComponent;if(!t.test(y))throw new TypeError(`argument name is invalid: ${y}`);const g=m(h);if(!e.test(g))throw new TypeError(`argument val is invalid: ${h}`);let v=y+"="+g;if(!p)return v;if(p.maxAge!==void 0){if(!Number.isInteger(p.maxAge))throw new TypeError(`option maxAge is invalid: ${p.maxAge}`);v+="; Max-Age="+p.maxAge}if(p.domain){if(!n.test(p.domain))throw new TypeError(`option domain is invalid: ${p.domain}`);v+="; Domain="+p.domain}if(p.path){if(!r.test(p.path))throw new TypeError(`option path is invalid: ${p.path}`);v+="; Path="+p.path}if(p.expires){if(!f(p.expires)||!Number.isFinite(p.expires.valueOf()))throw new TypeError(`option expires is invalid: ${p.expires}`);v+="; Expires="+p.expires.toUTCString()}if(p.httpOnly&&(v+="; HttpOnly"),p.secure&&(v+="; Secure"),p.partitioned&&(v+="; Partitioned"),p.priority)switch(typeof p.priority=="string"?p.priority.toLowerCase():void 0){case"low":v+="; Priority=Low";break;case"medium":v+="; Priority=Medium";break;case"high":v+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${p.priority}`)}if(p.sameSite)switch(typeof p.sameSite=="string"?p.sameSite.toLowerCase():p.sameSite){case!0:case"strict":v+="; SameSite=Strict";break;case"lax":v+="; SameSite=Lax";break;case"none":v+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${p.sameSite}`)}return v}function c(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch(h){return y}}function f(y){return i.call(y)==="[object Date]"}return ai}C0();/**
1
+ "use strict";var E0=Object.defineProperty;var du=t=>{throw TypeError(t)};var k0=(t,e,n)=>e in t?E0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var re=(t,e,n)=>k0(t,typeof e!="symbol"?e+"":e,n),Ka=(t,e,n)=>e.has(t)||du("Cannot "+n);var P=(t,e,n)=>(Ka(t,e,"read from private field"),n?n.call(t):e.get(t)),$=(t,e,n)=>e.has(t)?du("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),V=(t,e,n,r)=>(Ka(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),de=(t,e,n)=>(Ka(t,e,"access private method"),n);var Si=(t,e,n,r)=>({set _(s){V(t,e,s,n)},get _(){return P(t,e,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),w=require("@yoast/ui-library"),D=require("react"),Jf=require("react-dom");function T0(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const E=T0(D);function Zf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ds={},fu;function P0(){if(fu)return ds;fu=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.parse=a,ds.serialize=u;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,i=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function a(y,h){const p=new i,m=y.length;if(m<2)return p;const g=(h==null?void 0:h.decode)||d;let v=0;do{const S=y.indexOf("=",v);if(S===-1)break;const k=y.indexOf(";",v),j=k===-1?m:k;if(S>j){v=y.lastIndexOf(";",S-1)+1;continue}const A=o(y,v,S),C=l(y,S,A),b=y.slice(A,C);if(p[b]===void 0){let x=o(y,S+1,j),M=l(y,j,x);const _=g(y.slice(x,M));p[b]=_}v=j+1}while(v<m);return p}function o(y,h,p){do{const m=y.charCodeAt(h);if(m!==32&&m!==9)return h}while(++h<p);return p}function l(y,h,p){for(;h>p;){const m=y.charCodeAt(--h);if(m!==32&&m!==9)return h+1}return p}function u(y,h,p){const m=(p==null?void 0:p.encode)||encodeURIComponent;if(!t.test(y))throw new TypeError(`argument name is invalid: ${y}`);const g=m(h);if(!e.test(g))throw new TypeError(`argument val is invalid: ${h}`);let v=y+"="+g;if(!p)return v;if(p.maxAge!==void 0){if(!Number.isInteger(p.maxAge))throw new TypeError(`option maxAge is invalid: ${p.maxAge}`);v+="; Max-Age="+p.maxAge}if(p.domain){if(!n.test(p.domain))throw new TypeError(`option domain is invalid: ${p.domain}`);v+="; Domain="+p.domain}if(p.path){if(!r.test(p.path))throw new TypeError(`option path is invalid: ${p.path}`);v+="; Path="+p.path}if(p.expires){if(!f(p.expires)||!Number.isFinite(p.expires.valueOf()))throw new TypeError(`option expires is invalid: ${p.expires}`);v+="; Expires="+p.expires.toUTCString()}if(p.httpOnly&&(v+="; HttpOnly"),p.secure&&(v+="; Secure"),p.partitioned&&(v+="; Partitioned"),p.priority)switch(typeof p.priority=="string"?p.priority.toLowerCase():void 0){case"low":v+="; Priority=Low";break;case"medium":v+="; Priority=Medium";break;case"high":v+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${p.priority}`)}if(p.sameSite)switch(typeof p.sameSite=="string"?p.sameSite.toLowerCase():p.sameSite){case!0:case"strict":v+="; SameSite=Strict";break;case"lax":v+="; SameSite=Lax";break;case"none":v+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${p.sameSite}`)}return v}function d(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch(h){return y}}function f(y){return s.call(y)==="[object Date]"}return ds}P0();/**
2
2
  * react-router v7.6.3
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -7,81 +7,82 @@
7
7
  * LICENSE.md file in the root directory of this source tree.
8
8
  *
9
9
  * @license MIT
10
- */function j0(t={}){let{initialEntries:e=["/"],initialIndex:n,v5Compat:r=!1}=t,i;i=e.map((h,p)=>c(h,typeof h=="string"?null:h.state,p===0?"default":void 0));let s=l(n==null?i.length-1:n),a="POP",o=null;function l(h){return Math.min(Math.max(h,0),i.length-1)}function u(){return i[s]}function c(h,p=null,m){let g=E0(i?u().pathname:"/",h,p,m);return Mt(g.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(h)}`),g}function f(h){return typeof h=="string"?h:Js(h)}return{get index(){return s},get action(){return a},get location(){return u()},createHref:f,createURL(h){return new URL(f(h),"http://localhost")},encodeLocation(h){let p=typeof h=="string"?br(h):h;return{pathname:p.pathname||"",search:p.search||"",hash:p.hash||""}},push(h,p){a="PUSH";let m=c(h,p);s+=1,i.splice(s,i.length,m),r&&o&&o({action:a,location:m,delta:1})},replace(h,p){a="REPLACE";let m=c(h,p);i[s]=m,r&&o&&o({action:a,location:m,delta:0})},go(h){a="POP";let p=l(s+h),m=i[p];s=p,o&&o({action:a,location:m,delta:h})},listen(h){return o=h,()=>{o=null}}}}function Le(t,e){if(t===!1||t===null||typeof t=="undefined")throw new Error(e)}function Mt(t,e){if(!t){typeof console!="undefined"&&console.warn(e);try{throw new Error(e)}catch(n){}}}function O0(){return Math.random().toString(36).substring(2,10)}function E0(t,e,n=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?br(e):e,state:n,key:e&&e.key||r||O0()}}function Js({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function br(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function Yf(t,e,n="/"){return k0(t,e,n,!1)}function k0(t,e,n,r){let i=typeof e=="string"?br(e):e,s=pn(i.pathname||"/",n);if(s==null)return null;let a=Vf(t);T0(a);let o=null;for(let l=0;o==null&&l<a.length;++l){let u=Xf(s);o=B0(a[l],u,r)}return o}function Vf(t,e=[],n=[],r=""){let i=(s,a,o)=>{let l={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(Le(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let u=hn([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Le(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),Vf(s.children,e,c,u)),!(s.path==null&&!s.index)&&e.push({path:u,score:_0(u,s.index),routesMeta:c})};return t.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))i(s,a);else for(let l of Kf(s.path))i(s,a,l)}),e}function Kf(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=Kf(r.join("/")),o=[];return o.push(...a.map(l=>l===""?s:[s,l].join("/"))),i&&o.push(...a),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function T0(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:D0(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var P0=/^:[\w-]+$/,M0=3,I0=2,L0=1,R0=10,N0=-2,uu=t=>t==="*";function _0(t,e){let n=t.split("/"),r=n.length;return n.some(uu)&&(r+=N0),e&&(r+=I0),n.filter(i=>!uu(i)).reduce((i,s)=>i+(P0.test(s)?M0:s===""?L0:R0),r)}function D0(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function B0(t,e,n=!1){let{routesMeta:r}=t,i={},s="/",a=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,c=s==="/"?e:e.slice(s.length)||"/",f=qr({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),y=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=qr({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;Object.assign(i,f.params),a.push({params:i,pathname:hn([s,f.pathname]),pathnameBase:Q0(hn([s,f.pathnameBase])),route:y}),f.pathnameBase!=="/"&&(s=hn([s,f.pathnameBase]))}return a}function qr(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=F0(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:f},y)=>{if(c==="*"){let p=o[y]||"";a=s.slice(0,s.length-p.length).replace(/(.)\/+$/,"$1")}const h=o[y];return f&&!h?u[c]=void 0:u[c]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:t}}function F0(t,e=!1,n=!0){Mt(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function Xf(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Mt(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function pn(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function U0(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?br(t):t;return{pathname:n?n.startsWith("/")?n:H0(n,e):e,search:q0(r),hash:z0(i)}}function H0(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function za(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function W0(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function jl(t){let e=W0(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function Ol(t,e,n,r=!1){let i;typeof t=="string"?i=br(t):(i={...t},Le(!i.pathname||!i.pathname.includes("?"),za("?","pathname","search",i)),Le(!i.pathname||!i.pathname.includes("#"),za("#","pathname","hash",i)),Le(!i.search||!i.search.includes("#"),za("#","search","hash",i)));let s=t===""||i.pathname==="",a=s?"/":i.pathname,o;if(a==null)o=n;else{let f=e.length-1;if(!r&&a.startsWith("..")){let y=a.split("/");for(;y[0]==="..";)y.shift(),f-=1;i.pathname=y.join("/")}o=f>=0?e[f]:"/"}let l=U0(i,o),u=a&&a!=="/"&&a.endsWith("/"),c=(s||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var hn=t=>t.join("/").replace(/\/\/+/g,"/"),Q0=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),q0=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,z0=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function G0(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var Jf=["POST","PUT","PATCH","DELETE"];new Set(Jf);var Y0=["GET",...Jf];new Set(Y0);var Xr=E.createContext(null);Xr.displayName="DataRouter";var ga=E.createContext(null);ga.displayName="DataRouterState";var Zf=E.createContext({isTransitioning:!1});Zf.displayName="ViewTransition";var V0=E.createContext(new Map);V0.displayName="Fetchers";var K0=E.createContext(null);K0.displayName="Await";var Dt=E.createContext(null);Dt.displayName="Navigation";var as=E.createContext(null);as.displayName="Location";var It=E.createContext({outlet:null,matches:[],isDataRoute:!1});It.displayName="Route";var El=E.createContext(null);El.displayName="RouteError";function X0(t,{relative:e}={}){Le(xr(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(Dt),{hash:i,pathname:s,search:a}=os(t,{relative:e}),o=s;return n!=="/"&&(o=s==="/"?n:hn([n,s])),r.createHref({pathname:o,search:a,hash:i})}function xr(){return E.useContext(as)!=null}function nt(){return Le(xr(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(as).location}function bs(t){Le(xr(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:e}=nt();return E.useMemo(()=>qr(t,Xf(e)),[e,t])}var $f="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eh(t){E.useContext(Dt).static||E.useLayoutEffect(t)}function Ct(){let{isDataRoute:t}=E.useContext(It);return t?dp():J0()}function J0(){Le(xr(),"useNavigate() may be used only in the context of a <Router> component.");let t=E.useContext(Xr),{basename:e,navigator:n}=E.useContext(Dt),{matches:r}=E.useContext(It),{pathname:i}=nt(),s=JSON.stringify(jl(r)),a=E.useRef(!1);return eh(()=>{a.current=!0}),E.useCallback((l,u={})=>{if(Mt(a.current,$f),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=Ol(l,JSON.parse(s),i,u.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:hn([e,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[e,n,s,i,t])}var Z0=E.createContext(null);function $0(t){let e=E.useContext(It).outlet;return e&&E.createElement(Z0.Provider,{value:t},e)}function va(){let{matches:t}=E.useContext(It),e=t[t.length-1];return e?e.params:{}}function os(t,{relative:e}={}){let{matches:n}=E.useContext(It),{pathname:r}=nt(),i=JSON.stringify(jl(n));return E.useMemo(()=>Ol(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function ep(t,e){return th(t,e)}function th(t,e,n,r){var v;Le(xr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=E.useContext(Dt),{matches:s}=E.useContext(It),a=s[s.length-1],o=a?a.params:{},l=a?a.pathname:"/",u=a?a.pathnameBase:"/",c=a&&a.route;{let S=c&&c.path||"";nh(l,!c||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
+ */function M0(t={}){let{initialEntries:e=["/"],initialIndex:n,v5Compat:r=!1}=t,s;s=e.map((h,p)=>d(h,typeof h=="string"?null:h.state,p===0?"default":void 0));let i=l(n==null?s.length-1:n),a="POP",o=null;function l(h){return Math.min(Math.max(h,0),s.length-1)}function u(){return s[i]}function d(h,p=null,m){let g=I0(s?u().pathname:"/",h,p,m);return It(g.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(h)}`),g}function f(h){return typeof h=="string"?h:ra(h)}return{get index(){return i},get action(){return a},get location(){return u()},createHref:f,createURL(h){return new URL(f(h),"http://localhost")},encodeLocation(h){let p=typeof h=="string"?wr(h):h;return{pathname:p.pathname||"",search:p.search||"",hash:p.hash||""}},push(h,p){a="PUSH";let m=d(h,p);i+=1,s.splice(i,s.length,m),r&&o&&o({action:a,location:m,delta:1})},replace(h,p){a="REPLACE";let m=d(h,p);s[i]=m,r&&o&&o({action:a,location:m,delta:0})},go(h){a="POP";let p=l(i+h),m=s[p];i=p,o&&o({action:a,location:m,delta:h})},listen(h){return o=h,()=>{o=null}}}}function Le(t,e){if(t===!1||t===null||typeof t=="undefined")throw new Error(e)}function It(t,e){if(!t){typeof console!="undefined"&&console.warn(e);try{throw new Error(e)}catch(n){}}}function L0(){return Math.random().toString(36).substring(2,10)}function I0(t,e,n=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?wr(e):e,state:n,key:e&&e.key||r||L0()}}function ra({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function wr(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function $f(t,e,n="/"){return R0(t,e,n,!1)}function R0(t,e,n,r){let s=typeof e=="string"?wr(e):e,i=vn(s.pathname||"/",n);if(i==null)return null;let a=eh(t);N0(a);let o=null;for(let l=0;o==null&&l<a.length;++l){let u=nh(i);o=q0(a[l],u,r)}return o}function eh(t,e=[],n=[],r=""){let s=(i,a,o)=>{let l={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Le(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let u=mn([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(Le(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),eh(i.children,e,d,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:W0(u,i.index),routesMeta:d})};return t.forEach((i,a)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))s(i,a);else for(let l of th(i.path))s(i,a,l)}),e}function th(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let a=th(r.join("/")),o=[];return o.push(...a.map(l=>l===""?i:[i,l].join("/"))),s&&o.push(...a),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function N0(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Q0(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var _0=/^:[\w-]+$/,D0=3,B0=2,F0=1,U0=10,H0=-2,hu=t=>t==="*";function W0(t,e){let n=t.split("/"),r=n.length;return n.some(hu)&&(r+=H0),e&&(r+=B0),n.filter(s=>!hu(s)).reduce((s,i)=>s+(_0.test(i)?D0:i===""?F0:U0),r)}function Q0(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function q0(t,e,n=!1){let{routesMeta:r}=t,s={},i="/",a=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,d=i==="/"?e:e.slice(i.length)||"/",f=Yr({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),y=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Yr({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(s,f.params),a.push({params:s,pathname:mn([i,f.pathname]),pathnameBase:K0(mn([i,f.pathnameBase])),route:y}),f.pathnameBase!=="/"&&(i=mn([i,f.pathnameBase]))}return a}function Yr(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=z0(t.path,t.caseSensitive,t.end),s=e.match(n);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),o=s.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:f},y)=>{if(d==="*"){let p=o[y]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const h=o[y];return f&&!h?u[d]=void 0:u[d]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:t}}function z0(t,e=!1,n=!0){It(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function nh(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return It(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function vn(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function G0(t,e="/"){let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?wr(t):t;return{pathname:n?n.startsWith("/")?n:Y0(n,e):e,search:X0(r),hash:J0(s)}}function Y0(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Xa(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function V0(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Tl(t){let e=V0(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function Pl(t,e,n,r=!1){let s;typeof t=="string"?s=wr(t):(s={...t},Le(!s.pathname||!s.pathname.includes("?"),Xa("?","pathname","search",s)),Le(!s.pathname||!s.pathname.includes("#"),Xa("#","pathname","hash",s)),Le(!s.search||!s.search.includes("#"),Xa("#","search","hash",s)));let i=t===""||s.pathname==="",a=i?"/":s.pathname,o;if(a==null)o=n;else{let f=e.length-1;if(!r&&a.startsWith("..")){let y=a.split("/");for(;y[0]==="..";)y.shift(),f-=1;s.pathname=y.join("/")}o=f>=0?e[f]:"/"}let l=G0(s,o),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}var mn=t=>t.join("/").replace(/\/\/+/g,"/"),K0=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),X0=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,J0=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Z0(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var rh=["POST","PUT","PATCH","DELETE"];new Set(rh);var $0=["GET",...rh];new Set($0);var $r=E.createContext(null);$r.displayName="DataRouter";var Sa=E.createContext(null);Sa.displayName="DataRouterState";var sh=E.createContext({isTransitioning:!1});sh.displayName="ViewTransition";var ep=E.createContext(new Map);ep.displayName="Fetchers";var tp=E.createContext(null);tp.displayName="Await";var Ft=E.createContext(null);Ft.displayName="Navigation";var di=E.createContext(null);di.displayName="Location";var Rt=E.createContext({outlet:null,matches:[],isDataRoute:!1});Rt.displayName="Route";var Ml=E.createContext(null);Ml.displayName="RouteError";function np(t,{relative:e}={}){Le(Sr(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(Ft),{hash:s,pathname:i,search:a}=fi(t,{relative:e}),o=i;return n!=="/"&&(o=i==="/"?n:mn([n,i])),r.createHref({pathname:o,search:a,hash:s})}function Sr(){return E.useContext(di)!=null}function et(){return Le(Sr(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(di).location}function Ci(t){Le(Sr(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:e}=et();return E.useMemo(()=>Yr(t,nh(e)),[e,t])}var ih="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ah(t){E.useContext(Ft).static||E.useLayoutEffect(t)}function dt(){let{isDataRoute:t}=E.useContext(Rt);return t?gp():rp()}function rp(){Le(Sr(),"useNavigate() may be used only in the context of a <Router> component.");let t=E.useContext($r),{basename:e,navigator:n}=E.useContext(Ft),{matches:r}=E.useContext(Rt),{pathname:s}=et(),i=JSON.stringify(Tl(r)),a=E.useRef(!1);return ah(()=>{a.current=!0}),E.useCallback((l,u={})=>{if(It(a.current,ih),!a.current)return;if(typeof l=="number"){n.go(l);return}let d=Pl(l,JSON.parse(i),s,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:mn([e,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[e,n,i,s,t])}var sp=E.createContext(null);function ip(t){let e=E.useContext(Rt).outlet;return e&&E.createElement(sp.Provider,{value:t},e)}function Ca(){let{matches:t}=E.useContext(Rt),e=t[t.length-1];return e?e.params:{}}function fi(t,{relative:e}={}){let{matches:n}=E.useContext(Rt),{pathname:r}=et(),s=JSON.stringify(Tl(n));return E.useMemo(()=>Pl(t,JSON.parse(s),r,e==="path"),[t,s,r,e])}function ap(t,e){return oh(t,e)}function oh(t,e,n,r){var v;Le(Sr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=E.useContext(Ft),{matches:i}=E.useContext(Rt),a=i[i.length-1],o=a?a.params:{},l=a?a.pathname:"/",u=a?a.pathnameBase:"/",d=a&&a.route;{let S=d&&d.path||"";lh(l,!d||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
11
 
12
- Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let f=nt(),y;if(e){let S=typeof e=="string"?br(e):e;Le(u==="/"||((v=S.pathname)==null?void 0:v.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${S.pathname}" was given in the \`location\` prop.`),y=S}else y=f;let h=y.pathname||"/",p=h;if(u!=="/"){let S=u.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(S.length).join("/")}let m=Yf(t,{pathname:p});Mt(c||m!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Mt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=sp(m&&m.map(S=>Object.assign({},S,{params:Object.assign({},o,S.params),pathname:hn([u,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:hn([u,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,n,r);return e&&g?E.createElement(as.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},g):g}function tp(){let t=cp(),e=G0(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",t),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),n?E.createElement("pre",{style:i},n):null,a)}var np=E.createElement(tp,null),rp=class extends E.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,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?E.createElement(It.Provider,{value:this.props.routeContext},E.createElement(El.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ip({routeContext:t,match:e,children:n}){let r=E.useContext(Xr);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),E.createElement(It.Provider,{value:t},n)}function sp(t,e=[],n=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let i=t,s=n==null?void 0:n.errors;if(s!=null){let l=i.findIndex(u=>u.route.id&&(s==null?void 0:s[u.route.id])!==void 0);Le(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,l+1))}let a=!1,o=-1;if(n)for(let l=0;l<i.length;l++){let u=i[l];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(o=l),u.route.id){let{loaderData:c,errors:f}=n,y=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!f||f[u.route.id]===void 0);if(u.route.lazy||y){a=!0,o>=0?i=i.slice(0,o+1):i=[i[0]];break}}}return i.reduceRight((l,u,c)=>{let f,y=!1,h=null,p=null;n&&(f=s&&u.route.id?s[u.route.id]:void 0,h=u.route.errorElement||np,a&&(o<0&&c===0?(nh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,p=null):o===c&&(y=!0,p=u.route.hydrateFallbackElement||null)));let m=e.concat(i.slice(0,c+1)),g=()=>{let v;return f?v=h:y?v=p:u.route.Component?v=E.createElement(u.route.Component,null):u.route.element?v=u.route.element:v=l,E.createElement(ip,{match:u,routeContext:{outlet:l,matches:m,isDataRoute:n!=null},children:v})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?E.createElement(rp,{location:n.location,revalidation:n.revalidation,component:h,error:f,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}function kl(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ap(t){let e=E.useContext(Xr);return Le(e,kl(t)),e}function op(t){let e=E.useContext(ga);return Le(e,kl(t)),e}function lp(t){let e=E.useContext(It);return Le(e,kl(t)),e}function Tl(t){let e=lp(t),n=e.matches[e.matches.length-1];return Le(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function up(){return Tl("useRouteId")}function cp(){var r;let t=E.useContext(El),e=op("useRouteError"),n=Tl("useRouteError");return t!==void 0?t:(r=e.errors)==null?void 0:r[n]}function dp(){let{router:t}=ap("useNavigate"),e=Tl("useNavigate"),n=E.useRef(!1);return eh(()=>{n.current=!0}),E.useCallback(async(i,s={})=>{Mt(n.current,$f),n.current&&(typeof i=="number"?t.navigate(i):await t.navigate(i,{fromRouteId:e,...s}))},[t,e])}var cu={};function nh(t,e,n){!e&&!cu[t]&&(cu[t]=!0,Mt(!1,n))}E.memo(fp);function fp({routes:t,future:e,state:n}){return th(t,void 0,n,e)}function hp({basename:t,children:e,initialEntries:n,initialIndex:r}){let i=E.useRef();i.current==null&&(i.current=j0({initialEntries:n,initialIndex:r,v5Compat:!0}));let s=i.current,[a,o]=E.useState({action:s.action,location:s.location}),l=E.useCallback(u=>{E.startTransition(()=>o(u))},[o]);return E.useLayoutEffect(()=>s.listen(l),[s,l]),E.createElement(yp,{basename:t,children:e,location:a.location,navigationType:a.action,navigator:s})}function kr({to:t,replace:e,state:n,relative:r}){Le(xr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=E.useContext(Dt);Mt(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=E.useContext(It),{pathname:a}=nt(),o=Ct(),l=Ol(t,jl(s),a,r==="path"),u=JSON.stringify(l);return E.useEffect(()=>{o(JSON.parse(u),{replace:e,state:n,relative:r})},[o,u,r,e,n]),null}function zr(t){return $0(t.context)}function Ve(t){Le(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function yp({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:s=!1}){Le(!xr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=t.replace(/^\/*/,"/"),o=E.useMemo(()=>({basename:a,navigator:i,static:s,future:{}}),[a,i,s]);typeof n=="string"&&(n=br(n));let{pathname:l="/",search:u="",hash:c="",state:f=null,key:y="default"}=n,h=E.useMemo(()=>{let p=pn(l,a);return p==null?null:{location:{pathname:p,search:u,hash:c,state:f,key:y},navigationType:r}},[a,l,u,c,f,y,r]);return Mt(h!=null,`<Router basename="${a}"> is not able to match the URL "${l}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:E.createElement(Dt.Provider,{value:o},E.createElement(as.Provider,{children:e,value:h}))}function pp({children:t,location:e}){return ep(Eo(t),e)}function Eo(t,e=[]){let n=[];return E.Children.forEach(t,(r,i)=>{if(!E.isValidElement(r))return;let s=[...e,i];if(r.type===E.Fragment){n.push.apply(n,Eo(r.props.children,s));return}Le(r.type===Ve,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Eo(r.props.children,s)),n.push(a)}),n}var Us="get",Hs="application/x-www-form-urlencoded";function ba(t){return t!=null&&typeof t.tagName=="string"}function mp(t){return ba(t)&&t.tagName.toLowerCase()==="button"}function gp(t){return ba(t)&&t.tagName.toLowerCase()==="form"}function vp(t){return ba(t)&&t.tagName.toLowerCase()==="input"}function bp(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function xp(t,e){return t.button===0&&(!e||e==="_self")&&!bp(t)}var xs=null;function Ap(){if(xs===null)try{new FormData(document.createElement("form"),0),xs=!1}catch(t){xs=!0}return xs}var wp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ga(t){return t!=null&&!wp.has(t)?(Mt(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hs}"`),null):t}function Sp(t,e){let n,r,i,s,a;if(gp(t)){let o=t.getAttribute("action");r=o?pn(o,e):null,n=t.getAttribute("method")||Us,i=Ga(t.getAttribute("enctype"))||Hs,s=new FormData(t)}else if(mp(t)||vp(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||o.getAttribute("action");if(r=l?pn(l,e):null,n=t.getAttribute("formmethod")||o.getAttribute("method")||Us,i=Ga(t.getAttribute("formenctype"))||Ga(o.getAttribute("enctype"))||Hs,s=new FormData(o,t),!Ap()){let{name:u,type:c,value:f}=t;if(c==="image"){let y=u?`${u}.`:"";s.append(`${y}x`,"0"),s.append(`${y}y`,"0")}else u&&s.append(u,f)}}else{if(ba(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Us,r=null,i=Hs,a=t}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}function Pl(t,e){if(t===!1||t===null||typeof t=="undefined")throw new Error(e)}async function Cp(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jp(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Op(t,e,n){let r=await Promise.all(t.map(async i=>{let s=e.routes[i.route.id];if(s){let a=await Cp(s,n);return a.links?a.links():[]}return[]}));return Pp(r.flat(1).filter(jp).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function du(t,e,n,r,i,s){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,o=(l,u)=>{var c;return n[u].pathname!==l.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return s==="assets"?e.filter((l,u)=>a(l,u)||o(l,u)):s==="data"?e.filter((l,u)=>{var f;let c=r.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(a(l,u)||o(l,u))return!0;if(l.route.shouldRevalidate){let y=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Ep(t,e,{includeHydrateFallback:n}={}){return kp(t.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function kp(t){return[...new Set(t)]}function Tp(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function Pp(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let s=JSON.stringify(Tp(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Mp=new Set([100,101,204,205]);function Ip(t,e){let n=typeof t=="string"?new URL(t,typeof window=="undefined"?"server://singlefetch/":window.location.origin):t;return n.pathname==="/"?n.pathname="_root.data":e&&pn(n.pathname,e)==="/"?n.pathname=`${e.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function rh(){let t=E.useContext(Xr);return Pl(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Lp(){let t=E.useContext(ga);return Pl(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Ml=E.createContext(void 0);Ml.displayName="FrameworkContext";function ih(){let t=E.useContext(Ml);return Pl(t,"You must render this element inside a <HydratedRouter> element"),t}function Rp(t,e){let n=E.useContext(Ml),[r,i]=E.useState(!1),[s,a]=E.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=e,y=E.useRef(null);E.useEffect(()=>{if(t==="render"&&a(!0),t==="viewport"){let m=v=>{v.forEach(S=>{a(S.isIntersecting)})},g=new IntersectionObserver(m,{threshold:.5});return y.current&&g.observe(y.current),()=>{g.disconnect()}}},[t]),E.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let h=()=>{i(!0)},p=()=>{i(!1),a(!1)};return n?t!=="intent"?[s,y,{}]:[s,y,{onFocus:oi(o,h),onBlur:oi(l,p),onMouseEnter:oi(u,h),onMouseLeave:oi(c,p),onTouchStart:oi(f,h)}]:[!1,y,{}]}function oi(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function Np({page:t,...e}){let{router:n}=rh(),r=E.useMemo(()=>Yf(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?E.createElement(Dp,{page:t,matches:r,...e}):null}function _p(t){let{manifest:e,routeModules:n}=ih(),[r,i]=E.useState([]);return E.useEffect(()=>{let s=!1;return Op(t,e,n).then(a=>{s||i(a)}),()=>{s=!0}},[t,e,n]),r}function Dp({page:t,matches:e,...n}){let r=nt(),{manifest:i,routeModules:s}=ih(),{basename:a}=rh(),{loaderData:o,matches:l}=Lp(),u=E.useMemo(()=>du(t,e,l,i,r,"data"),[t,e,l,i,r]),c=E.useMemo(()=>du(t,e,l,i,r,"assets"),[t,e,l,i,r]),f=E.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let p=new Set,m=!1;if(e.forEach(v=>{var k;let S=i.routes[v.route.id];!S||!S.hasLoader||(!u.some(C=>C.route.id===v.route.id)&&v.route.id in o&&((k=s[v.route.id])!=null&&k.shouldRevalidate)||S.hasClientLoader?m=!0:p.add(v.route.id))}),p.size===0)return[];let g=Ip(t,a);return m&&p.size>0&&g.searchParams.set("_routes",e.filter(v=>p.has(v.route.id)).map(v=>v.route.id).join(",")),[g.pathname+g.search]},[a,o,r,i,u,e,t,s]),y=E.useMemo(()=>Ep(c,i),[c,i]),h=_p(c);return E.createElement(E.Fragment,null,f.map(p=>E.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),y.map(p=>E.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),h.map(({key:p,link:m})=>E.createElement("link",{key:p,...m})))}function Bp(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var sh=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{sh&&(window.__reactRouterVersion="7.6.3")}catch(t){}var ah=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fn=E.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:a,state:o,target:l,to:u,preventScrollReset:c,viewTransition:f,...y},h){let{basename:p}=E.useContext(Dt),m=typeof u=="string"&&ah.test(u),g,v=!1;if(typeof u=="string"&&m&&(g=u,sh))try{let M=new URL(window.location.href),_=u.startsWith("//")?new URL(M.protocol+u):new URL(u),I=pn(_.pathname,p);_.origin===M.origin&&I!=null?u=I+_.search+_.hash:v=!0}catch(M){Mt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=X0(u,{relative:i}),[k,C,A]=Rp(r,y),j=Wp(u,{replace:a,state:o,target:l,preventScrollReset:c,relative:i,viewTransition:f});function b(M){e&&e(M),M.defaultPrevented||j(M)}let x=E.createElement("a",{...y,...A,href:g||S,onClick:v||s?e:b,ref:Bp(h,C),target:l,"data-discover":!m&&n==="render"?"true":void 0});return k&&!m?E.createElement(E.Fragment,null,x,E.createElement(Np,{page:S})):x});Fn.displayName="Link";var Fp=E.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:a,viewTransition:o,children:l,...u},c){let f=os(a,{relative:u.relative}),y=nt(),h=E.useContext(ga),{navigator:p,basename:m}=E.useContext(Dt),g=h!=null&&Yp(f)&&o===!0,v=p.encodeLocation?p.encodeLocation(f).pathname:f.pathname,S=y.pathname,k=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(S=S.toLowerCase(),k=k?k.toLowerCase():null,v=v.toLowerCase()),k&&m&&(k=pn(k,m)||k);const C=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let A=S===v||!i&&S.startsWith(v)&&S.charAt(C)==="/",j=k!=null&&(k===v||!i&&k.startsWith(v)&&k.charAt(v.length)==="/"),b={isActive:A,isPending:j,isTransitioning:g},x=A?e:void 0,M;typeof r=="function"?M=r(b):M=[r,A?"active":null,j?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let _=typeof s=="function"?s(b):s;return E.createElement(Fn,{...u,"aria-current":x,className:M,ref:c,style:_,to:a,viewTransition:o},typeof l=="function"?l(b):l)});Fp.displayName="NavLink";var Up=E.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:s,method:a=Us,action:o,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:f,...y},h)=>{let p=zp(),m=Gp(o,{relative:u}),g=a.toLowerCase()==="get"?"get":"post",v=typeof o=="string"&&ah.test(o),S=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let C=k.nativeEvent.submitter,A=(C==null?void 0:C.getAttribute("formmethod"))||a;p(C||k.currentTarget,{fetcherKey:e,method:A,navigate:n,replace:i,state:s,relative:u,preventScrollReset:c,viewTransition:f})};return E.createElement("form",{ref:h,method:g,action:m,onSubmit:r?l:S,...y,"data-discover":!v&&t==="render"?"true":void 0})});Up.displayName="Form";function Hp(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function oh(t){let e=E.useContext(Xr);return Le(e,Hp(t)),e}function Wp(t,{target:e,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:a}={}){let o=Ct(),l=nt(),u=os(t,{relative:s});return E.useCallback(c=>{if(xp(c,e)){c.preventDefault();let f=n!==void 0?n:Js(l)===Js(u);o(t,{replace:f,state:r,preventScrollReset:i,relative:s,viewTransition:a})}},[l,o,u,n,r,e,t,i,s,a])}var Qp=0,qp=()=>`__${String(++Qp)}__`;function zp(){let{router:t}=oh("useSubmit"),{basename:e}=E.useContext(Dt),n=up();return E.useCallback(async(r,i={})=>{let{action:s,method:a,encType:o,formData:l,body:u}=Sp(r,e);if(i.navigate===!1){let c=i.fetcherKey||qp();await t.fetch(c,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||a,formEncType:i.encType||o,flushSync:i.flushSync})}else await t.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||a,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[t,e,n])}function Gp(t,{relative:e}={}){let{basename:n}=E.useContext(Dt),r=E.useContext(It);Le(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...os(t||".",{relative:e})},a=nt();if(t==null){s.search=a.search;let o=new URLSearchParams(s.search),l=o.getAll("index");if(l.some(c=>c==="")){o.delete("index"),l.filter(f=>f).forEach(f=>o.append("index",f));let c=o.toString();s.search=c?`?${c}`:""}}return(!t||t===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:hn([n,s.pathname])),Js(s)}function Yp(t,e={}){let n=E.useContext(Zf);Le(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=oh("useViewTransitionState"),i=os(t,{relative:e.relative});if(!n.isTransitioning)return!1;let s=pn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=pn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return qr(i.pathname,a)!=null||qr(i.pathname,s)!=null}[...Mp];var Jr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Vp={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},zt,er,Rf,Kp=(Rf=class{constructor(){$(this,zt,Vp);$(this,er,!1)}setTimeoutProvider(t){process.env.NODE_ENV!=="production"&&T(this,er)&&t!==T(this,zt)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:T(this,zt),provider:t}),V(this,zt,t),process.env.NODE_ENV!=="production"&&V(this,er,!1)}setTimeout(t,e){return process.env.NODE_ENV!=="production"&&V(this,er,!0),T(this,zt).setTimeout(t,e)}clearTimeout(t){T(this,zt).clearTimeout(t)}setInterval(t,e){return process.env.NODE_ENV!=="production"&&V(this,er,!0),T(this,zt).setInterval(t,e)}clearInterval(t){T(this,zt).clearInterval(t)}},zt=new WeakMap,er=new WeakMap,Rf),Jn=new Kp;function Xp(t){setTimeout(t,0)}var hr=typeof window=="undefined"||"Deno"in globalThis;function et(){}function Jp(t,e){return typeof t=="function"?t(e):t}function ko(t){return typeof t=="number"&&t>=0&&t!==1/0}function lh(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Nn(t,e){return typeof t=="function"?t(e):t}function kt(t,e){return typeof t=="function"?t(e):t}function fu(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==Il(a,e.options))return!1}else if(!Ri(e.queryKey,a))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||s&&!s(e))}function hu(t,e){const{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(yr(e.options.mutationKey)!==yr(s))return!1}else if(!Ri(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function Il(t,e){return((e==null?void 0:e.queryKeyHashFn)||yr)(t)}function yr(t){return JSON.stringify(t,(e,n)=>Po(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ri(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Ri(t[n],e[n])):!1}var Zp=Object.prototype.hasOwnProperty;function To(t,e){if(t===e)return t;const n=yu(t)&&yu(e);if(!n&&!(Po(t)&&Po(e)))return e;const i=(n?t:Object.keys(t)).length,s=n?e:Object.keys(e),a=s.length,o=n?new Array(a):{};let l=0;for(let u=0;u<a;u++){const c=n?u:s[u],f=t[c],y=e[c];if(f===y){o[c]=f,(n?u<i:Zp.call(t,c))&&l++;continue}if(f===null||y===null||typeof f!="object"||typeof y!="object"){o[c]=y;continue}const h=To(f,y);o[c]=h,h===f&&l++}return i===a&&l===i?t:o}function Zs(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function yu(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Po(t){if(!pu(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!pu(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function pu(t){return Object.prototype.toString.call(t)==="[object Object]"}function $p(t){return new Promise(e=>{Jn.setTimeout(e,t)})}function Mo(t,e,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(t,e);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return To(t,e)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return To(t,e)}return e}function em(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function tm(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var $s=Symbol();function uh(t,e){return process.env.NODE_ENV!=="production"&&t.queryFn===$s&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`),!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===$s?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function ch(t,e){return typeof t=="function"?t(...e):!!t}var tr,Sn,Ir,Nf,nm=(Nf=class extends Jr{constructor(){super();$(this,tr);$(this,Sn);$(this,Ir);V(this,Ir,e=>{if(!hr&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,Sn)||this.setEventListener(T(this,Ir))}onUnsubscribe(){var e;this.hasListeners()||((e=T(this,Sn))==null||e.call(this),V(this,Sn,void 0))}setEventListener(e){var n;V(this,Ir,e),(n=T(this,Sn))==null||n.call(this),V(this,Sn,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){T(this,tr)!==e&&(V(this,tr,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof T(this,tr)=="boolean"?T(this,tr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},tr=new WeakMap,Sn=new WeakMap,Ir=new WeakMap,Nf),Ll=new nm;function Io(){let t,e;const n=new Promise((i,s)=>{t=i,e=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}var rm=Xp;function im(){let t=[],e=0,n=o=>{o()},r=o=>{o()},i=rm;const s=o=>{e?t.push(o):i(()=>{n(o)})},a=()=>{const o=t;t=[],o.length&&i(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;e++;try{l=o()}finally{e--,e||a()}return l},batchCalls:o=>(...l)=>{s(()=>{o(...l)})},schedule:s,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var Ue=im(),Lr,Cn,Rr,_f,sm=(_f=class extends Jr{constructor(){super();$(this,Lr,!0);$(this,Cn);$(this,Rr);V(this,Rr,e=>{if(!hr&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,Cn)||this.setEventListener(T(this,Rr))}onUnsubscribe(){var e;this.hasListeners()||((e=T(this,Cn))==null||e.call(this),V(this,Cn,void 0))}setEventListener(e){var n;V(this,Rr,e),(n=T(this,Cn))==null||n.call(this),V(this,Cn,e(this.setOnline.bind(this)))}setOnline(e){T(this,Lr)!==e&&(V(this,Lr,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return T(this,Lr)}},Lr=new WeakMap,Cn=new WeakMap,Rr=new WeakMap,_f),ea=new sm;function am(t){return Math.min(1e3*2**t,3e4)}function dh(t){return(t!=null?t:"online")==="online"?ea.isOnline():!0}var Lo=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function fh(t){let e=!1,n=0,r;const i=Io(),s=()=>i.status!=="pending",a=m=>{var g;if(!s()){const v=new Lo(m);y(v),(g=t.onCancel)==null||g.call(t,v)}},o=()=>{e=!0},l=()=>{e=!1},u=()=>Ll.isFocused()&&(t.networkMode==="always"||ea.isOnline())&&t.canRun(),c=()=>dh(t.networkMode)&&t.canRun(),f=m=>{s()||(r==null||r(),i.resolve(m))},y=m=>{s()||(r==null||r(),i.reject(m))},h=()=>new Promise(m=>{var g;r=v=>{(s()||u())&&m(v)},(g=t.onPause)==null||g.call(t)}).then(()=>{var m;r=void 0,s()||(m=t.onContinue)==null||m.call(t)}),p=()=>{if(s())return;let m;const g=n===0?t.initialPromise:void 0;try{m=g!=null?g:t.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(f).catch(v=>{var j,b,x;if(s())return;const S=(j=t.retry)!=null?j:hr?0:3,k=(b=t.retryDelay)!=null?b:am,C=typeof k=="function"?k(n,v):k,A=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,v);if(e||!A){y(v);return}n++,(x=t.onFail)==null||x.call(t,n,v),$p(C).then(()=>u()?void 0:h()).then(()=>{e?y(v):p()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r==null||r(),i),cancelRetry:o,continueRetry:l,canStart:c,start:()=>(c()?p():h().then(p),i)}}var nr,Df,hh=(Df=class{constructor(){$(this,nr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ko(this.gcTime)&&V(this,nr,Jn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t!=null?t:hr?1/0:5*60*1e3)}clearGcTimeout(){T(this,nr)&&(Jn.clearTimeout(T(this,nr)),V(this,nr,void 0))}},nr=new WeakMap,Df),rr,Nr,Et,ir,Qe,ts,sr,Nt,nn,Bf,om=(Bf=class extends hh{constructor(e){var n;super();$(this,Nt);$(this,rr);$(this,Nr);$(this,Et);$(this,ir);$(this,Qe);$(this,ts);$(this,sr);V(this,sr,!1),V(this,ts,e.defaultOptions),this.setOptions(e.options),this.observers=[],V(this,ir,e.client),V(this,Et,T(this,ir).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,V(this,rr,mu(this.options)),this.state=(n=e.state)!=null?n:T(this,rr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=T(this,Qe))==null?void 0:e.promise}setOptions(e){if(this.options={...T(this,ts),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=mu(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),V(this,rr,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Et).remove(this)}setData(e,n){const r=Mo(this.state.data,e,this.options);return de(this,Nt,nn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){de(this,Nt,nn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=T(this,Qe))==null?void 0:r.promise;return(i=T(this,Qe))==null||i.cancel(e),n?n.then(et).catch(et):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,rr))}isActive(){return this.observers.some(e=>kt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$s||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Nn(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!lh(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=T(this,Qe))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=T(this,Qe))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),T(this,Et).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(T(this,Qe)&&(T(this,sr)?T(this,Qe).cancel({revert:!0}):T(this,Qe).cancelRetry()),this.scheduleGc()),T(this,Et).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Nt,nn).call(this,{type:"invalidate"})}async fetch(e,n){var l,u,c,f,y,h,p,m,g,v,S,k;if(this.state.fetchStatus!=="idle"&&((l=T(this,Qe))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Qe))return T(this,Qe).continueRetry(),T(this,Qe).promise}if(e&&this.setOptions(e),!this.options.queryFn){const C=this.observers.find(A=>A.options.queryFn);C&&this.setOptions(C.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(V(this,sr,!0),r.signal)})},s=()=>{const C=uh(this.options,n),j=(()=>{const b={client:T(this,ir),queryKey:this.queryKey,meta:this.meta};return i(b),b})();return V(this,sr,!1),this.options.persister?this.options.persister(C,j,this):C(j)},o=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,ir),state:this.state,fetchFn:s};return i(C),C})();(u=this.options.behavior)==null||u.onFetch(o,this),V(this,Nr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&de(this,Nt,nn).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta}),V(this,Qe,fh({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:C=>{C instanceof Lo&&C.revert&&this.setState({...T(this,Nr),fetchStatus:"idle"}),r.abort()},onFail:(C,A)=>{de(this,Nt,nn).call(this,{type:"failed",failureCount:C,error:A})},onPause:()=>{de(this,Nt,nn).call(this,{type:"pause"})},onContinue:()=>{de(this,Nt,nn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const C=await T(this,Qe).start();if(C===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(C),(h=(y=T(this,Et).config).onSuccess)==null||h.call(y,C,this),(m=(p=T(this,Et).config).onSettled)==null||m.call(p,C,this.state.error,this),C}catch(C){if(C instanceof Lo){if(C.silent)return T(this,Qe).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw de(this,Nt,nn).call(this,{type:"error",error:C}),(v=(g=T(this,Et).config).onError)==null||v.call(g,C,this),(k=(S=T(this,Et).config).onSettled)==null||k.call(S,this.state.data,C,this),C}finally{this.scheduleGc()}}},rr=new WeakMap,Nr=new WeakMap,Et=new WeakMap,ir=new WeakMap,Qe=new WeakMap,ts=new WeakMap,sr=new WeakMap,Nt=new WeakSet,nn=function(e){const n=r=>{var i,s;switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yh(r.data,this.options),fetchMeta:(i=e.meta)!=null?i:null};case"success":const a={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=e.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return V(this,Nr,e.manual?a:void 0),a;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Ue.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,Et).notify({query:this,type:"updated",action:e})})},Bf);function yh(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dh(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function mu(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var st,me,ns,Ze,ar,_r,on,jn,rs,Dr,Br,or,lr,On,Fr,we,xi,Ro,No,_o,Do,Bo,Fo,Uo,ph,Ff,lm=(Ff=class extends Jr{constructor(e,n){super();$(this,we);$(this,st);$(this,me);$(this,ns);$(this,Ze);$(this,ar);$(this,_r);$(this,on);$(this,jn);$(this,rs);$(this,Dr);$(this,Br);$(this,or);$(this,lr);$(this,On);$(this,Fr,new Set);this.options=n,V(this,st,e),V(this,jn,null),V(this,on,Io()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,me).addObserver(this),gu(T(this,me),this.options)?de(this,we,xi).call(this):this.updateResult(),de(this,we,Do).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ho(T(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ho(T(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,we,Bo).call(this),de(this,we,Fo).call(this),T(this,me).removeObserver(this)}setOptions(e){const n=this.options,r=T(this,me);if(this.options=T(this,st).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kt(this.options.enabled,T(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,we,Uo).call(this),T(this,me).setOptions(this.options),n._defaulted&&!Zs(this.options,n)&&T(this,st).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,me),observer:this});const i=this.hasListeners();i&&vu(T(this,me),r,this.options,n)&&de(this,we,xi).call(this),this.updateResult(),i&&(T(this,me)!==r||kt(this.options.enabled,T(this,me))!==kt(n.enabled,T(this,me))||Nn(this.options.staleTime,T(this,me))!==Nn(n.staleTime,T(this,me)))&&de(this,we,Ro).call(this);const s=de(this,we,No).call(this);i&&(T(this,me)!==r||kt(this.options.enabled,T(this,me))!==kt(n.enabled,T(this,me))||s!==T(this,On))&&de(this,we,_o).call(this,s)}getOptimisticResult(e){const n=T(this,st).getQueryCache().build(T(this,st),e),r=this.createResult(n,e);return cm(this,r)&&(V(this,Ze,r),V(this,_r,this.options),V(this,ar,T(this,me).state)),r}getCurrentResult(){return T(this,Ze)}trackResult(e,n){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&T(this,on).status==="pending"&&T(this,on).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(e){T(this,Fr).add(e)}getCurrentQuery(){return T(this,me)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=T(this,st).defaultQueryOptions(e),r=T(this,st).getQueryCache().build(T(this,st),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){var n;return de(this,we,xi).call(this,{...e,cancelRefetch:(n=e.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),T(this,Ze)))}createResult(e,n){var M;const r=T(this,me),i=this.options,s=T(this,Ze),a=T(this,ar),o=T(this,_r),u=e!==r?e.state:T(this,ns),{state:c}=e;let f={...c},y=!1,h;if(n._optimisticResults){const _=this.hasListeners(),I=!_&&gu(e,n),P=_&&vu(e,r,n,i);(I||P)&&(f={...f,...yh(c.data,e.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:g}=f;h=f.data;let v=!1;if(n.placeholderData!==void 0&&h===void 0&&g==="pending"){let _;s!=null&&s.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(_=s.data,v=!0):_=typeof n.placeholderData=="function"?n.placeholderData((M=T(this,Br))==null?void 0:M.state.data,T(this,Br)):n.placeholderData,_!==void 0&&(g="success",h=Mo(s==null?void 0:s.data,_,n),y=!0)}if(n.select&&h!==void 0&&!v)if(s&&h===(a==null?void 0:a.data)&&n.select===T(this,rs))h=T(this,Dr);else try{V(this,rs,n.select),h=n.select(h),h=Mo(s==null?void 0:s.data,h,n),V(this,Dr,h),V(this,jn,null)}catch(_){V(this,jn,_)}T(this,jn)&&(p=T(this,jn),h=T(this,Dr),m=Date.now(),g="error");const S=f.fetchStatus==="fetching",k=g==="pending",C=g==="error",A=k&&S,j=h!==void 0,x={status:g,fetchStatus:f.fetchStatus,isPending:k,isSuccess:g==="success",isError:C,isInitialLoading:A,isLoading:A,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!k,isLoadingError:C&&!j,isPaused:f.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:C&&j,isStale:Rl(e,n),refetch:this.refetch,promise:T(this,on),isEnabled:kt(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const _=H=>{x.status==="error"?H.reject(x.error):x.data!==void 0&&H.resolve(x.data)},I=()=>{const H=V(this,on,x.promise=Io());_(H)},P=T(this,on);switch(P.status){case"pending":e.queryHash===r.queryHash&&_(P);break;case"fulfilled":(x.status==="error"||x.data!==P.value)&&I();break;case"rejected":(x.status!=="error"||x.error!==P.reason)&&I();break}}return x}updateResult(){const e=T(this,Ze),n=this.createResult(T(this,me),this.options);if(V(this,ar,T(this,me).state),V(this,_r,this.options),T(this,ar).data!==void 0&&V(this,Br,T(this,me)),Zs(n,e))return;V(this,Ze,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!T(this,Fr).size)return!0;const a=new Set(s!=null?s:T(this,Fr));return this.options.throwOnError&&a.add("error"),Object.keys(T(this,Ze)).some(o=>{const l=o;return T(this,Ze)[l]!==e[l]&&a.has(l)})};de(this,we,ph).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,we,Do).call(this)}},st=new WeakMap,me=new WeakMap,ns=new WeakMap,Ze=new WeakMap,ar=new WeakMap,_r=new WeakMap,on=new WeakMap,jn=new WeakMap,rs=new WeakMap,Dr=new WeakMap,Br=new WeakMap,or=new WeakMap,lr=new WeakMap,On=new WeakMap,Fr=new WeakMap,we=new WeakSet,xi=function(e){de(this,we,Uo).call(this);let n=T(this,me).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(et)),n},Ro=function(){de(this,we,Bo).call(this);const e=Nn(this.options.staleTime,T(this,me));if(hr||T(this,Ze).isStale||!ko(e))return;const r=lh(T(this,Ze).dataUpdatedAt,e)+1;V(this,or,Jn.setTimeout(()=>{T(this,Ze).isStale||this.updateResult()},r))},No=function(){var e;return(e=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,me)):this.options.refetchInterval)!=null?e:!1},_o=function(e){de(this,we,Fo).call(this),V(this,On,e),!(hr||kt(this.options.enabled,T(this,me))===!1||!ko(T(this,On))||T(this,On)===0)&&V(this,lr,Jn.setInterval(()=>{(this.options.refetchIntervalInBackground||Ll.isFocused())&&de(this,we,xi).call(this)},T(this,On)))},Do=function(){de(this,we,Ro).call(this),de(this,we,_o).call(this,de(this,we,No).call(this))},Bo=function(){T(this,or)&&(Jn.clearTimeout(T(this,or)),V(this,or,void 0))},Fo=function(){T(this,lr)&&(Jn.clearInterval(T(this,lr)),V(this,lr,void 0))},Uo=function(){const e=T(this,st).getQueryCache().build(T(this,st),this.options);if(e===T(this,me))return;const n=T(this,me);V(this,me,e),V(this,ns,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},ph=function(e){Ue.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(T(this,Ze))}),T(this,st).getQueryCache().notify({query:T(this,me),type:"observerResultsUpdated"})})},Ff);function um(t,e){return kt(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function gu(t,e){return um(t,e)||t.state.data!==void 0&&Ho(t,e,e.refetchOnMount)}function Ho(t,e,n){if(kt(e.enabled,t)!==!1&&Nn(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&Rl(t,e)}return!1}function vu(t,e,n,r){return(t!==e||kt(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Rl(t,n)}function Rl(t,e){return kt(e.enabled,t)!==!1&&t.isStaleByTime(Nn(e.staleTime,t))}function cm(t,e){return!Zs(t.getCurrentResult(),e)}function bu(t){return{onFetch:(e,n)=>{var c,f,y,h,p;const r=e.options,i=(y=(f=(c=e.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:y.direction,s=((h=e.state.data)==null?void 0:h.pages)||[],a=((p=e.state.data)==null?void 0:p.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const u=async()=>{var k;let m=!1;const g=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(e.signal.aborted?m=!0:e.signal.addEventListener("abort",()=>{m=!0}),e.signal)})},v=uh(e.options,e.fetchOptions),S=async(C,A,j)=>{if(m)return Promise.reject();if(A==null&&C.pages.length)return Promise.resolve(C);const x=(()=>{const P={client:e.client,queryKey:e.queryKey,pageParam:A,direction:j?"backward":"forward",meta:e.options.meta};return g(P),P})(),M=await v(x),{maxPages:_}=e.options,I=j?tm:em;return{pages:I(C.pages,M,_),pageParams:I(C.pageParams,A,_)}};if(i&&s.length){const C=i==="backward",A=C?dm:xu,j={pages:s,pageParams:a},b=A(r,j);o=await S(j,b,C)}else{const C=t!=null?t:s.length;do{const A=l===0?(k=a[0])!=null?k:r.initialPageParam:xu(r,o);if(l>0&&A==null)break;o=await S(o,A),l++}while(l<C)}return o};e.options.persister?e.fetchFn=()=>{var m,g;return(g=(m=e.options).persister)==null?void 0:g.call(m,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function xu(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function dm(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var is,Gt,$e,ur,Yt,An,Uf,fm=(Uf=class extends hh{constructor(e){super();$(this,Yt);$(this,is);$(this,Gt);$(this,$e);$(this,ur);V(this,is,e.client),this.mutationId=e.mutationId,V(this,$e,e.mutationCache),V(this,Gt,[]),this.state=e.state||mh(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){T(this,Gt).includes(e)||(T(this,Gt).push(e),this.clearGcTimeout(),T(this,$e).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){V(this,Gt,T(this,Gt).filter(n=>n!==e)),this.scheduleGc(),T(this,$e).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){T(this,Gt).length||(this.state.status==="pending"?this.scheduleGc():T(this,$e).remove(this))}continue(){var e,n;return(n=(e=T(this,ur))==null?void 0:e.continue())!=null?n:this.execute(this.state.variables)}async execute(e){var a,o,l,u,c,f,y,h,p,m,g,v,S,k,C,A,j,b,x,M,_;const n=()=>{de(this,Yt,An).call(this,{type:"continue"})},r={client:T(this,is),meta:this.options.meta,mutationKey:this.options.mutationKey};V(this,ur,fh({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(I,P)=>{de(this,Yt,An).call(this,{type:"failed",failureCount:I,error:P})},onPause:()=>{de(this,Yt,An).call(this,{type:"pause"})},onContinue:n,retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,$e).canRun(this)}));const i=this.state.status==="pending",s=!T(this,ur).canStart();try{if(i)n();else{de(this,Yt,An).call(this,{type:"pending",variables:e,isPaused:s}),await((l=(o=T(this,$e).config).onMutate)==null?void 0:l.call(o,e,this,r));const P=await((c=(u=this.options).onMutate)==null?void 0:c.call(u,e,r));P!==this.state.context&&de(this,Yt,An).call(this,{type:"pending",context:P,variables:e,isPaused:s})}const I=await T(this,ur).start();return await((y=(f=T(this,$e).config).onSuccess)==null?void 0:y.call(f,I,e,this.state.context,this,r)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,I,e,this.state.context,r)),await((g=(m=T(this,$e).config).onSettled)==null?void 0:g.call(m,I,null,this.state.variables,this.state.context,this,r)),await((S=(v=this.options).onSettled)==null?void 0:S.call(v,I,null,e,this.state.context,r)),de(this,Yt,An).call(this,{type:"success",data:I}),I}catch(I){try{throw await((C=(k=T(this,$e).config).onError)==null?void 0:C.call(k,I,e,this.state.context,this,r)),await((j=(A=this.options).onError)==null?void 0:j.call(A,I,e,this.state.context,r)),await((x=(b=T(this,$e).config).onSettled)==null?void 0:x.call(b,void 0,I,this.state.variables,this.state.context,this,r)),await((_=(M=this.options).onSettled)==null?void 0:_.call(M,void 0,I,e,this.state.context,r)),I}finally{de(this,Yt,An).call(this,{type:"error",error:I})}}finally{T(this,$e).runNext(this)}}},is=new WeakMap,Gt=new WeakMap,$e=new WeakMap,ur=new WeakMap,Yt=new WeakSet,An=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ue.batch(()=>{T(this,Gt).forEach(r=>{r.onMutationUpdate(e)}),T(this,$e).notify({mutation:this,type:"updated",action:e})})},Uf);function mh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ln,_t,ss,Hf,hm=(Hf=class extends Jr{constructor(e={}){super();$(this,ln);$(this,_t);$(this,ss);this.config=e,V(this,ln,new Set),V(this,_t,new Map),V(this,ss,0)}build(e,n,r){const i=new fm({client:e,mutationCache:this,mutationId:++vs(this,ss)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){T(this,ln).add(e);const n=As(e);if(typeof n=="string"){const r=T(this,_t).get(n);r?r.push(e):T(this,_t).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(T(this,ln).delete(e)){const n=As(e);if(typeof n=="string"){const r=T(this,_t).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&T(this,_t).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=As(e);if(typeof n=="string"){const r=T(this,_t).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r,i;const n=As(e);if(typeof n=="string"){const s=(r=T(this,_t).get(n))==null?void 0:r.find(a=>a!==e&&a.state.isPaused);return(i=s==null?void 0:s.continue())!=null?i:Promise.resolve()}else return Promise.resolve()}clear(){Ue.batch(()=>{T(this,ln).forEach(e=>{this.notify({type:"removed",mutation:e})}),T(this,ln).clear(),T(this,_t).clear()})}getAll(){return Array.from(T(this,ln))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>hu(n,r))}findAll(e={}){return this.getAll().filter(n=>hu(e,n))}notify(e){Ue.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Ue.batch(()=>Promise.all(e.map(n=>n.continue().catch(et))))}},ln=new WeakMap,_t=new WeakMap,ss=new WeakMap,Hf);function As(t){var e;return(e=t.options.scope)==null?void 0:e.id}var un,En,at,cn,yn,Ws,Wo,Wf,ym=(Wf=class extends Jr{constructor(n,r){super();$(this,yn);$(this,un);$(this,En);$(this,at);$(this,cn);V(this,un,n),this.setOptions(r),this.bindMethods(),de(this,yn,Ws).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=T(this,un).defaultMutationOptions(n),Zs(this.options,r)||T(this,un).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,at),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&yr(r.mutationKey)!==yr(this.options.mutationKey)?this.reset():((i=T(this,at))==null?void 0:i.state.status)==="pending"&&T(this,at).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=T(this,at))==null||n.removeObserver(this)}onMutationUpdate(n){de(this,yn,Ws).call(this),de(this,yn,Wo).call(this,n)}getCurrentResult(){return T(this,En)}reset(){var n;(n=T(this,at))==null||n.removeObserver(this),V(this,at,void 0),de(this,yn,Ws).call(this),de(this,yn,Wo).call(this)}mutate(n,r){var i;return V(this,cn,r),(i=T(this,at))==null||i.removeObserver(this),V(this,at,T(this,un).getMutationCache().build(T(this,un),this.options)),T(this,at).addObserver(this),T(this,at).execute(n)}},un=new WeakMap,En=new WeakMap,at=new WeakMap,cn=new WeakMap,yn=new WeakSet,Ws=function(){var r,i;const n=(i=(r=T(this,at))==null?void 0:r.state)!=null?i:mh();V(this,En,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Wo=function(n){Ue.batch(()=>{var r,i,s,a,o,l,u,c;if(T(this,cn)&&this.hasListeners()){const f=T(this,En).variables,y=T(this,En).context,h={client:T(this,un),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((i=(r=T(this,cn)).onSuccess)==null||i.call(r,n.data,f,y,h),(a=(s=T(this,cn)).onSettled)==null||a.call(s,n.data,null,f,y,h)):(n==null?void 0:n.type)==="error"&&((l=(o=T(this,cn)).onError)==null||l.call(o,n.error,f,y,h),(c=(u=T(this,cn)).onSettled)==null||c.call(u,void 0,n.error,f,y,h))}this.listeners.forEach(f=>{f(T(this,En))})})},Wf),Vt,Qf,pm=(Qf=class extends Jr{constructor(e={}){super();$(this,Vt);this.config=e,V(this,Vt,new Map)}build(e,n,r){var o;const i=n.queryKey,s=(o=n.queryHash)!=null?o:Il(i,n);let a=this.get(s);return a||(a=new om({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){T(this,Vt).has(e.queryHash)||(T(this,Vt).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=T(this,Vt).get(e.queryHash);n&&(e.destroy(),n===e&&T(this,Vt).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ue.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return T(this,Vt).get(e)}getAll(){return[...T(this,Vt).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>fu(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>fu(e,r)):n}notify(e){Ue.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Ue.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ue.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Vt=new WeakMap,Qf),De,kn,Tn,Ur,Hr,Pn,Wr,Qr,qf,mm=(qf=class{constructor(t={}){$(this,De);$(this,kn);$(this,Tn);$(this,Ur);$(this,Hr);$(this,Pn);$(this,Wr);$(this,Qr);V(this,De,t.queryCache||new pm),V(this,kn,t.mutationCache||new hm),V(this,Tn,t.defaultOptions||{}),V(this,Ur,new Map),V(this,Hr,new Map),V(this,Pn,0)}mount(){vs(this,Pn)._++,T(this,Pn)===1&&(V(this,Wr,Ll.subscribe(async t=>{t&&(await this.resumePausedMutations(),T(this,De).onFocus())})),V(this,Qr,ea.subscribe(async t=>{t&&(await this.resumePausedMutations(),T(this,De).onOnline())})))}unmount(){var t,e;vs(this,Pn)._--,T(this,Pn)===0&&((t=T(this,Wr))==null||t.call(this),V(this,Wr,void 0),(e=T(this,Qr))==null||e.call(this),V(this,Qr,void 0))}isFetching(t){return T(this,De).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return T(this,kn).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=T(this,De).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=T(this,De).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Nn(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return T(this,De).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=T(this,De).get(r.queryHash),s=i==null?void 0:i.state.data,a=Jp(e,s);if(a!==void 0)return T(this,De).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return Ue.batch(()=>T(this,De).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=T(this,De).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=T(this,De);Ue.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=T(this,De);return Ue.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Ue.batch(()=>T(this,De).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(et).catch(et)}invalidateQueries(t,e={}){return Ue.batch(()=>{var n,r;return T(this,De).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(r=(n=t==null?void 0:t.refetchType)!=null?n:t==null?void 0:t.type)!=null?r:"active"},e)})}refetchQueries(t,e={}){var i;const n={...e,cancelRefetch:(i=e.cancelRefetch)!=null?i:!0},r=Ue.batch(()=>T(this,De).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,n);return n.throwOnError||(a=a.catch(et)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(et)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=T(this,De).build(this,e);return n.isStaleByTime(Nn(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(et).catch(et)}fetchInfiniteQuery(t){return t.behavior=bu(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(et).catch(et)}ensureInfiniteQueryData(t){return t.behavior=bu(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ea.isOnline()?T(this,kn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,De)}getMutationCache(){return T(this,kn)}getDefaultOptions(){return T(this,Tn)}setDefaultOptions(t){V(this,Tn,t)}setQueryDefaults(t,e){T(this,Ur).set(yr(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...T(this,Ur).values()],n={};return e.forEach(r=>{Ri(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){T(this,Hr).set(yr(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...T(this,Hr).values()],n={};return e.forEach(r=>{Ri(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...T(this,Tn).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Il(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===$s&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...T(this,Tn).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){T(this,De).clear(),T(this,kn).clear()}},De=new WeakMap,kn=new WeakMap,Tn=new WeakMap,Ur=new WeakMap,Hr=new WeakMap,Pn=new WeakMap,Wr=new WeakMap,Qr=new WeakMap,qf),gh=E.createContext(void 0),Lt=t=>{const e=E.useContext(gh);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},gm=({client:t,children:e})=>(E.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),d.jsx(gh.Provider,{value:t,children:e})),vh=E.createContext(!1),vm=()=>E.useContext(vh);vh.Provider;function bm(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var xm=E.createContext(bm()),Am=()=>E.useContext(xm),wm=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},Sm=t=>{E.useEffect(()=>{t.clearReset()},[t])},Cm=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||ch(n,[t.error,r])),jm=t=>{if(t.suspense){const n=i=>i==="static"?i:Math.max(i!=null?i:1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Om=(t,e)=>t.isLoading&&t.isFetching&&!e,Em=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Au=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function km(t,e,n){var f,y,h,p,m;if(process.env.NODE_ENV!=="production"&&(typeof t!="object"||Array.isArray(t)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=vm(),i=Am(),s=Lt(),a=s.defaultQueryOptions(t);(y=(f=s.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||y.call(f,a),process.env.NODE_ENV!=="production"&&(a.queryFn||console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),a._optimisticResults=r?"isRestoring":"optimistic",jm(a),wm(a,i),Sm(i);const o=!s.getQueryCache().get(a.queryHash),[l]=E.useState(()=>new e(s,a)),u=l.getOptimisticResult(a),c=!r&&t.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(g=>{const v=c?l.subscribe(Ue.batchCalls(g)):et;return l.updateResult(),v},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),E.useEffect(()=>{l.setOptions(a)},[a,l]),Em(a,u))throw Au(a,l,i);if(Cm({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((p=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||p.call(h,a,u),a.experimental_prefetchInRender&&!hr&&Om(u,r)){const g=o?Au(a,l,i):(m=s.getQueryCache().get(a.queryHash))==null?void 0:m.promise;g==null||g.catch(et).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function Un(t,e){return km(t,lm)}function gn(t,e){const n=Lt(),[r]=E.useState(()=>new ym(n,t));E.useEffect(()=>{r.setOptions(t)},[r,t]);const i=E.useSyncExternalStore(E.useCallback(a=>r.subscribe(Ue.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=E.useCallback((a,o)=>{r.mutate(a,o).catch(et)},[r]);if(i.error&&ch(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function bh(t,e){return function(){return t.apply(e,arguments)}}const{toString:Tm}=Object.prototype,{getPrototypeOf:Nl}=Object,{iterator:xa,toStringTag:xh}=Symbol,Aa=(t=>e=>{const n=Tm.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bt=t=>(t=t.toLowerCase(),e=>Aa(e)===t),wa=t=>e=>typeof e===t,{isArray:Zr}=Array,Ni=wa("undefined");function Pm(t){return t!==null&&!Ni(t)&&t.constructor!==null&&!Ni(t.constructor)&&lt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ah=Bt("ArrayBuffer");function Mm(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ah(t.buffer),e}const Im=wa("string"),lt=wa("function"),wh=wa("number"),Sa=t=>t!==null&&typeof t=="object",Lm=t=>t===!0||t===!1,Qs=t=>{if(Aa(t)!=="object")return!1;const e=Nl(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(xh in t)&&!(xa in t)},Rm=Bt("Date"),Nm=Bt("File"),_m=Bt("Blob"),Dm=Bt("FileList"),Bm=t=>Sa(t)&&lt(t.pipe),Fm=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||lt(t.append)&&((e=Aa(t))==="formdata"||e==="object"&&lt(t.toString)&&t.toString()==="[object FormData]"))},Um=Bt("URLSearchParams"),[Hm,Wm,Qm,qm]=["ReadableStream","Request","Response","Headers"].map(Bt),zm=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ls(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let r,i;if(typeof t!="object"&&(t=[t]),Zr(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let o;for(r=0;r<a;r++)o=s[r],e.call(null,t[o],o,t)}}function Sh(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Zn=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Ch=t=>!Ni(t)&&t!==Zn;function Qo(){const{caseless:t}=Ch(this)&&this||{},e={},n=(r,i)=>{const s=t&&Sh(e,i)||i;Qs(e[s])&&Qs(r)?e[s]=Qo(e[s],r):Qs(r)?e[s]=Qo({},r):Zr(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&ls(arguments[r],n);return e}const Gm=(t,e,n,{allOwnKeys:r}={})=>(ls(e,(i,s)=>{n&&lt(i)?t[s]=bh(i,n):t[s]=i},{allOwnKeys:r}),t),Ym=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Vm=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Km=(t,e,n,r)=>{let i,s,a;const o={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],(!r||r(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=n!==!1&&Nl(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Xm=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Jm=t=>{if(!t)return null;if(Zr(t))return t;let e=t.length;if(!wh(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Zm=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&Nl(Uint8Array)),$m=(t,e)=>{const r=(t&&t[xa]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},eg=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},tg=Bt("HTMLFormElement"),ng=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),wu=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),rg=Bt("RegExp"),jh=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ls(n,(i,s)=>{let a;(a=e(i,s,t))!==!1&&(r[s]=a||i)}),Object.defineProperties(t,r)},ig=t=>{jh(t,(e,n)=>{if(lt(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(lt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sg=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Zr(t)?r(t):r(String(t).split(e)),n},ag=()=>{},og=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function lg(t){return!!(t&&lt(t.append)&&t[xh]==="FormData"&&t[xa])}const ug=t=>{const e=new Array(10),n=(r,i)=>{if(Sa(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=Zr(r)?[]:{};return ls(r,(a,o)=>{const l=n(a,i+1);!Ni(l)&&(s[o]=l)}),e[i]=void 0,s}}return r};return n(t,0)},cg=Bt("AsyncFunction"),dg=t=>t&&(Sa(t)||lt(t))&&lt(t.then)&&lt(t.catch),Oh=((t,e)=>t?setImmediate:e?((n,r)=>(Zn.addEventListener("message",({source:i,data:s})=>{i===Zn&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Zn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",lt(Zn.postMessage)),fg=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Zn):typeof process!="undefined"&&process.nextTick||Oh,hg=t=>t!=null&&lt(t[xa]),B={isArray:Zr,isArrayBuffer:Ah,isBuffer:Pm,isFormData:Fm,isArrayBufferView:Mm,isString:Im,isNumber:wh,isBoolean:Lm,isObject:Sa,isPlainObject:Qs,isReadableStream:Hm,isRequest:Wm,isResponse:Qm,isHeaders:qm,isUndefined:Ni,isDate:Rm,isFile:Nm,isBlob:_m,isRegExp:rg,isFunction:lt,isStream:Bm,isURLSearchParams:Um,isTypedArray:Zm,isFileList:Dm,forEach:ls,merge:Qo,extend:Gm,trim:zm,stripBOM:Ym,inherits:Vm,toFlatObject:Km,kindOf:Aa,kindOfTest:Bt,endsWith:Xm,toArray:Jm,forEachEntry:$m,matchAll:eg,isHTMLForm:tg,hasOwnProperty:wu,hasOwnProp:wu,reduceDescriptors:jh,freezeMethods:ig,toObjectSet:sg,toCamelCase:ng,noop:ag,toFiniteNumber:og,findKey:Sh,global:Zn,isContextDefined:Ch,isSpecCompliantForm:lg,toJSONObject:ug,isAsyncFn:cg,isThenable:dg,setImmediate:Oh,asap:fg,isIterable:hg};function le(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}B.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.status}}});const Eh=le.prototype,kh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{kh[t]={value:t}});Object.defineProperties(le,kh);Object.defineProperty(Eh,"isAxiosError",{value:!0});le.from=(t,e,n,r,i,s)=>{const a=Object.create(Eh);return B.toFlatObject(t,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),le.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const yg=null;function qo(t){return B.isPlainObject(t)||B.isArray(t)}function Th(t){return B.endsWith(t,"[]")?t.slice(0,-2):t}function Su(t,e,n){return t?t.concat(e).map(function(i,s){return i=Th(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function pg(t){return B.isArray(t)&&!t.some(qo)}const mg=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function Ca(t,e,n){if(!B.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!B.isUndefined(g[m])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&B.isSpecCompliantForm(e);if(!B.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(B.isDate(p))return p.toISOString();if(B.isBoolean(p))return p.toString();if(!l&&B.isBlob(p))throw new le("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(p)||B.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,g){let v=p;if(p&&!g&&typeof p=="object"){if(B.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(B.isArray(p)&&pg(p)||(B.isFileList(p)||B.endsWith(m,"[]"))&&(v=B.toArray(p)))return m=Th(m),v.forEach(function(k,C){!(B.isUndefined(k)||k===null)&&e.append(a===!0?Su([m],C,s):a===null?m:m+"[]",u(k))}),!1}return qo(p)?!0:(e.append(Su(g,m,s),u(p)),!1)}const f=[],y=Object.assign(mg,{defaultVisitor:c,convertValue:u,isVisitable:qo});function h(p,m){if(!B.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),B.forEach(p,function(v,S){(!(B.isUndefined(v)||v===null)&&i.call(e,v,B.isString(S)?S.trim():S,m,y))===!0&&h(v,m?m.concat(S):[S])}),f.pop()}}if(!B.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Cu(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function _l(t,e){this._pairs=[],t&&Ca(t,this,e)}const Ph=_l.prototype;Ph.append=function(e,n){this._pairs.push([e,n])};Ph.toString=function(e){const n=e?function(r){return e.call(this,r,Cu)}:Cu;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function gg(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mh(t,e,n){if(!e)return t;const r=n&&n.encode||gg;B.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(e,n):s=B.isURLSearchParams(e)?e.toString():new _l(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class ju{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ih={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vg=typeof URLSearchParams!="undefined"?URLSearchParams:_l,bg=typeof FormData!="undefined"?FormData:null,xg=typeof Blob!="undefined"?Blob:null,Ag={isBrowser:!0,classes:{URLSearchParams:vg,FormData:bg,Blob:xg},protocols:["http","https","file","blob","url","data"]},Dl=typeof window!="undefined"&&typeof document!="undefined",zo=typeof navigator=="object"&&navigator||void 0,wg=Dl&&(!zo||["ReactNative","NativeScript","NS"].indexOf(zo.product)<0),Sg=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Cg=Dl&&window.location.href||"http://localhost",jg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Dl,hasStandardBrowserEnv:wg,hasStandardBrowserWebWorkerEnv:Sg,navigator:zo,origin:Cg},Symbol.toStringTag,{value:"Module"})),Xe={...jg,...Ag};function Og(t,e){return Ca(t,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return Xe.isNode&&B.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Eg(t){return B.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function kg(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function Lh(t){function e(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=s>=n.length;return a=!a&&B.isArray(i)?i.length:a,l?(B.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!o):((!i[a]||!B.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],s)&&B.isArray(i[a])&&(i[a]=kg(i[a])),!o)}if(B.isFormData(t)&&B.isFunction(t.entries)){const n={};return B.forEachEntry(t,(r,i)=>{e(Eg(r),i,n,0)}),n}return null}function Tg(t,e,n){if(B.isString(t))try{return(e||JSON.parse)(t),B.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const us={transitional:Ih,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=B.isObject(e);if(s&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return i?JSON.stringify(Lh(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e)||B.isReadableStream(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Og(e,this.formSerializer).toString();if((o=B.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ca(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Tg(e)):e}],transformResponse:[function(e){const n=this.transitional||us.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(B.isResponse(e)||B.isReadableStream(e))return e;if(e&&B.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?le.from(o,le.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],t=>{us.headers[t]={}});const Pg=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mg=t=>{const e={};let n,r,i;return t&&t.split(`
13
- `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&Pg[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Ou=Symbol("internals");function li(t){return t&&String(t).trim().toLowerCase()}function qs(t){return t===!1||t==null?t:B.isArray(t)?t.map(qs):String(t)}function Ig(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Lg=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ya(t,e,n,r,i){if(B.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!B.isString(e)){if(B.isString(r))return e.indexOf(r)!==-1;if(B.isRegExp(r))return r.test(e)}}function Rg(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Ng(t,e){const n=B.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,a){return this[r].call(this,e,i,s,a)},configurable:!0})})}let ut=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(o,l,u){const c=li(l);if(!c)throw new Error("header name must be a non-empty string");const f=B.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=qs(o))}const a=(o,l)=>B.forEach(o,(u,c)=>s(u,c,l));if(B.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(B.isString(e)&&(e=e.trim())&&!Lg(e))a(Mg(e),n);else if(B.isObject(e)&&B.isIterable(e)){let o={},l,u;for(const c of e){if(!B.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?B.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}a(o,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=li(e),e){const r=B.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return Ig(i);if(B.isFunction(n))return n.call(this,i,r);if(B.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=li(e),e){const r=B.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Ya(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(a){if(a=li(a),a){const o=B.findKey(r,a);o&&(!n||Ya(r,r[o],o,n))&&(delete r[o],i=!0)}}return B.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||Ya(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return B.forEach(this,(i,s)=>{const a=B.findKey(r,s);if(a){n[a]=qs(i),delete n[s];return}const o=e?Rg(s):String(s).trim();o!==s&&delete n[s],n[o]=qs(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return B.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&B.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
14
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[Ou]=this[Ou]={accessors:{}}).accessors,i=this.prototype;function s(a){const o=li(a);r[o]||(Ng(i,a),r[o]=!0)}return B.isArray(e)?e.forEach(s):s(e),this}};ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(ut.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});B.freezeMethods(ut);function Va(t,e){const n=this||us,r=e||n,i=ut.from(r.headers);let s=r.data;return B.forEach(t,function(o){s=o.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Rh(t){return!!(t&&t.__CANCEL__)}function $r(t,e,n){le.call(this,t==null?"canceled":t,le.ERR_CANCELED,e,n),this.name="CanceledError"}B.inherits($r,le,{__CANCEL__:!0});function Nh(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new le("Request failed with status code "+n.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function _g(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Dg(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[s];a||(a=u),n[i]=l,r[i]=u;let f=s,y=0;for(;f!==i;)y+=n[f++],f=f%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),u-a<e)return;const h=c&&u-c;return h?Math.round(y*1e3/h):void 0}}function Bg(t,e){let n=0,r=1e3/e,i,s;const a=(u,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(i=u,s||(s=setTimeout(()=>{s=null,a(i)},r-f)))},()=>i&&a(i)]}const ta=(t,e,n=3)=>{let r=0;const i=Dg(50,250);return Bg(s=>{const a=s.loaded,o=s.lengthComputable?s.total:void 0,l=a-r,u=i(l),c=a<=o;r=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-a)/u:void 0,event:s,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(f)},n)},Eu=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},ku=t=>(...e)=>B.asap(()=>t(...e)),Fg=Xe.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Xe.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):()=>!0,Ug=Xe.hasStandardBrowserEnv?{write(t,e,n,r,i,s){const a=[t+"="+encodeURIComponent(e)];B.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),B.isString(r)&&a.push("path="+r),B.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Hg(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Wg(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function _h(t,e,n){let r=!Hg(e);return t&&(r||n==!1)?Wg(t,e):e}const Tu=t=>t instanceof ut?{...t}:t;function pr(t,e){e=e||{};const n={};function r(u,c,f,y){return B.isPlainObject(u)&&B.isPlainObject(c)?B.merge.call({caseless:y},u,c):B.isPlainObject(c)?B.merge({},c):B.isArray(c)?c.slice():c}function i(u,c,f,y){if(B.isUndefined(c)){if(!B.isUndefined(u))return r(void 0,u,f,y)}else return r(u,c,f,y)}function s(u,c){if(!B.isUndefined(c))return r(void 0,c)}function a(u,c){if(B.isUndefined(c)){if(!B.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function o(u,c,f){if(f in e)return r(u,c);if(f in t)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,c,f)=>i(Tu(u),Tu(c),f,!0)};return B.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||i,y=f(t[c],e[c],c);B.isUndefined(y)&&f!==o||(n[c]=y)}),n}const Dh=t=>{const e=pr({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:o}=e;e.headers=a=ut.from(a),e.url=Mh(_h(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(B.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Xe.hasStandardBrowserEnv&&(r&&B.isFunction(r)&&(r=r(e)),r||r!==!1&&Fg(e.url))){const u=i&&s&&Ug.read(s);u&&a.set(i,u)}return e},Qg=typeof XMLHttpRequest!="undefined",qg=Qg&&function(t){return new Promise(function(n,r){const i=Dh(t);let s=i.data;const a=ut.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,c,f,y,h,p;function m(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function v(){if(!g)return;const k=ut.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),A={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:k,config:t,request:g};Nh(function(b){n(b),m()},function(b){r(b),m()},A),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(r(new le("Request aborted",le.ECONNABORTED,t,g)),g=null)},g.onerror=function(){r(new le("Network Error",le.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const A=i.transitional||Ih;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new le(C,A.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,t,g)),g=null},s===void 0&&a.setContentType(null),"setRequestHeader"in g&&B.forEach(a.toJSON(),function(C,A){g.setRequestHeader(A,C)}),B.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),o&&o!=="json"&&(g.responseType=i.responseType),u&&([y,p]=ta(u,!0),g.addEventListener("progress",y)),l&&g.upload&&([f,h]=ta(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=k=>{g&&(r(!k||k.type?new $r(null,t,g):k),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const S=_g(i.url);if(S&&Xe.protocols.indexOf(S)===-1){r(new le("Unsupported protocol "+S+":",le.ERR_BAD_REQUEST,t));return}g.send(s||null)})},zg=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,o();const c=u instanceof Error?u:this.reason;r.abort(c instanceof le?c:new $r(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{a=null,s(new le(`timeout ${e} of ms exceeded`,le.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>B.asap(o),l}},Gg=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},Yg=async function*(t,e){for await(const n of Vg(t))yield*Gg(n,e)},Vg=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Pu=(t,e,n,r)=>{const i=Yg(t,e);let s=0,a,o=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){o(),l.close();return}let f=c.byteLength;if(n){let y=s+=f;n(y)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},ja=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Bh=ja&&typeof ReadableStream=="function",Kg=ja&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Fh=(t,...e)=>{try{return!!t(...e)}catch(n){return!1}},Xg=Bh&&Fh(()=>{let t=!1;const e=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Mu=64*1024,Go=Bh&&Fh(()=>B.isReadableStream(new Response("").body)),na={stream:Go&&(t=>t.body)};ja&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!na[e]&&(na[e]=B.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new le(`Response type '${e}' is not supported`,le.ERR_NOT_SUPPORT,r)})})})(new Response);const Jg=async t=>{if(t==null)return 0;if(B.isBlob(t))return t.size;if(B.isSpecCompliantForm(t))return(await new Request(Xe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(B.isArrayBufferView(t)||B.isArrayBuffer(t))return t.byteLength;if(B.isURLSearchParams(t)&&(t=t+""),B.isString(t))return(await Kg(t)).byteLength},Zg=async(t,e)=>{const n=B.toFiniteNumber(t.getContentLength());return n==null?Jg(e):n},$g=ja&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:y}=Dh(t);u=u?(u+"").toLowerCase():"text";let h=zg([i,s&&s.toAbortSignal()],a),p;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Xg&&n!=="get"&&n!=="head"&&(g=await Zg(c,r))!==0){let A=new Request(e,{method:"POST",body:r,duplex:"half"}),j;if(B.isFormData(r)&&(j=A.headers.get("content-type"))&&c.setContentType(j),A.body){const[b,x]=Eu(g,ta(ku(l)));r=Pu(A.body,Mu,b,x)}}B.isString(f)||(f=f?"include":"omit");const v="credentials"in Request.prototype;p=new Request(e,{...y,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:v?f:void 0});let S=await fetch(p,y);const k=Go&&(u==="stream"||u==="response");if(Go&&(o||k&&m)){const A={};["status","statusText","headers"].forEach(M=>{A[M]=S[M]});const j=B.toFiniteNumber(S.headers.get("content-length")),[b,x]=o&&Eu(j,ta(ku(o),!0))||[];S=new Response(Pu(S.body,Mu,b,()=>{x&&x(),m&&m()}),A)}u=u||"text";let C=await na[B.findKey(na,u)||"text"](S,t);return!k&&m&&m(),await new Promise((A,j)=>{Nh(A,j,{data:C,headers:ut.from(S.headers),status:S.status,statusText:S.statusText,config:t,request:p})})}catch(v){throw m&&m(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new le("Network Error",le.ERR_NETWORK,t,p),{cause:v.cause||v}):le.from(v,v&&v.code,t,p)}}),Yo={http:yg,xhr:qg,fetch:$g};B.forEach(Yo,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}});const Iu=t=>`- ${t}`,e2=t=>B.isFunction(t)||t===null||t===!1,Uh={getAdapter:t=>{t=B.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s<e;s++){n=t[s];let a;if(r=n,!e2(n)&&(r=Yo[(a=String(n)).toLowerCase()],r===void 0))throw new le(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+s]=r}if(!r){const s=Object.entries(i).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
15
- `+s.map(Iu).join(`
16
- `):" "+Iu(s[0]):"as no adapter specified";throw new le("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Yo};function Ka(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new $r(null,t)}function Lu(t){return Ka(t),t.headers=ut.from(t.headers),t.data=Va.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Uh.getAdapter(t.adapter||us.adapter)(t).then(function(r){return Ka(t),r.data=Va.call(t,t.transformResponse,r),r.headers=ut.from(r.headers),r},function(r){return Rh(r)||(Ka(t),r&&r.response&&(r.response.data=Va.call(t,t.transformResponse,r.response),r.response.headers=ut.from(r.response.headers))),Promise.reject(r)})}const Hh="1.10.0",Oa={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Oa[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Ru={};Oa.transitional=function(e,n,r){function i(s,a){return"[Axios v"+Hh+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,o)=>{if(e===!1)throw new le(i(a," has been removed"+(n?" in "+n:"")),le.ERR_DEPRECATED);return n&&!Ru[a]&&(Ru[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,o):!0}};Oa.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function t2(t,e,n){if(typeof t!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],a=e[s];if(a){const o=t[s],l=o===void 0||a(o,s,t);if(l!==!0)throw new le("option "+s+" must be "+l,le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new le("Unknown option "+s,le.ERR_BAD_OPTION)}}const zs={assertOptions:t2,validators:Oa},Ft=zs.validators;let cr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ju,response:new ju}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
17
- `+s):r.stack=s}catch(a){}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=pr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&zs.assertOptions(r,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean)},!1),i!=null&&(B.isFunction(i)?n.paramsSerializer={serialize:i}:zs.assertOptions(i,{encode:Ft.function,serialize:Ft.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),zs.assertOptions(n,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&B.merge(s.common,s[n.method]);s&&B.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=ut.concat(a,s);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,y;if(!l){const p=[Lu.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,u),y=p.length,c=Promise.resolve(n);f<y;)c=c.then(p[f++],p[f++]);return c}y=o.length;let h=n;for(f=0;f<y;){const p=o[f++],m=o[f++];try{h=p(h)}catch(g){m.call(this,g);break}}try{c=Lu.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,y=u.length;f<y;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=pr(this.defaults,e);const n=_h(e.baseURL,e.url,e.allowAbsoluteUrls);return Mh(n,e.params,e.paramsSerializer)}};B.forEach(["delete","get","head","options"],function(e){cr.prototype[e]=function(n,r){return this.request(pr(r||{},{method:e,url:n,data:(r||{}).data}))}});B.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,o){return this.request(pr(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}cr.prototype[e]=n(),cr.prototype[e+"Form"]=n(!0)});let n2=class Wh{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(o=>{r.subscribe(o),s=o}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,o){r.reason||(r.reason=new $r(s,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Wh(function(i){e=i}),cancel:e}}};function r2(t){return function(n){return t.apply(null,n)}}function i2(t){return B.isObject(t)&&t.isAxiosError===!0}const Vo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vo).forEach(([t,e])=>{Vo[e]=t});function Qh(t){const e=new cr(t),n=bh(cr.prototype.request,e);return B.extend(n,cr.prototype,e,{allOwnKeys:!0}),B.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Qh(pr(t,i))},n}const Re=Qh(us);Re.Axios=cr;Re.CanceledError=$r;Re.CancelToken=n2;Re.isCancel=Rh;Re.VERSION=Hh;Re.toFormData=Ca;Re.AxiosError=le;Re.Cancel=Re.CanceledError;Re.all=function(e){return Promise.all(e)};Re.spread=r2;Re.isAxiosError=i2;Re.mergeConfig=pr;Re.AxiosHeaders=ut;Re.formToJSON=t=>Lh(B.isHTMLForm(t)?new FormData(t):t);Re.getAdapter=Uh.getAdapter;Re.HttpStatusCode=Vo;Re.default=Re;const{Axios:J4,AxiosError:Z4,CanceledError:$4,isCancel:e8,CancelToken:t8,VERSION:n8,all:r8,Cancel:i8,isAxiosError:s2,spread:s8,toFormData:a8,AxiosHeaders:o8,HttpStatusCode:l8,formToJSON:u8,getAdapter:c8,mergeConfig:d8}=Re,a2={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function _i(t){"@babel/helpers - typeof";return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_i(t)}function tt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return dt(S,"_invoke",function(k,C,A){var j,b,x,M=0,_=A||[],I=!1,P={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,L){return j=O,b=0,x=t,P.n=L,a}};function H(N,O){for(b=N,x=O,e=0;!I&&M&&!L&&e<_.length;e++){var L,R=_[e],Y=P.p,z=R[2];N>3?(L=z===O)&&(x=R[(b=R[4])?5:(b=3,3)],R[4]=R[5]=t):R[0]<=Y&&((L=N<2&&Y<R[1])?(b=0,P.v=O,P.n=R[1]):Y<z&&(L=N<3||R[0]>O||O>z)&&(R[4]=N,R[5]=O,P.n=z,b=0))}if(L||N>1)return a;throw I=!0,O}return function(N,O,L){if(M>1)throw TypeError("Generator is already running");for(I&&O===1&&H(O,L),b=O,x=L;(e=b<2?t:x)||!I;){j||(b?b<3?(b>1&&(P.n=-1),H(b,x)):P.n=x:P.v=x);try{if(M=2,j){if(b||(N="next"),e=j[N]){if(!(e=e.call(j,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=j.return)&&e.call(j),b<2&&(x=TypeError("The iterator does not provide a '"+N+"' method"),b=1);j=t}else if((e=(I=P.n<0)?x:k.call(C,P))!==a)break}catch(R){j=t,b=1,x=R}finally{M=1}}return{value:e,done:I}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(dt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,dt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,dt(f,"constructor",u),dt(u,"constructor",l),l.displayName="GeneratorFunction",dt(u,i,"GeneratorFunction"),dt(f),dt(f,i,"Generator"),dt(f,r,function(){return this}),dt(f,"toString",function(){return"[object Generator]"}),(tt=function(){return{w:s,m:y}})()}function dt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}dt=function(a,o,l,u){if(o)i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var c=function(y,h){dt(a,y,function(p){return this._invoke(y,h,p)})};c("next",0),c("throw",1),c("return",2)}},dt(t,e,n,r)}function Nu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nu(Object(n),!0).forEach(function(r){o2(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function o2(t,e,n){return(e=l2(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l2(t){var e=u2(t,"string");return _i(e)=="symbol"?e:e+""}function u2(t,e){if(_i(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(_i(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _u(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function mr(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){_u(s,r,i,a,o,"next",l)}function o(l){_u(s,r,i,a,o,"throw",l)}a(void 0)})}}var qh=function(){var e,n;if((e=document)!==null&&e!==void 0&&e.cookie){var r=document.cookie.match(new RegExp("(^| )access_token=([^;]+)"));if(r)return decodeURIComponent(r[2])}return((n=a2)===null||n===void 0?void 0:n.VITE_MYYOAST_ACCESS_TOKEN)||""};function Du(t){var e;if(typeof document!="undefined"){var n="; ".concat(document.cookie),r=n.split("; ".concat(t,"="));if(r.length===2)return(e=r.pop())===null||e===void 0?void 0:e.split(";").shift()}}var c2="yst-insights-token",ei=Re.create({withCredentials:!0});ei.interceptors.request.use(function(){var t=mr(tt().m(function e(n){var r,i;return tt().w(function(s){for(;;)switch(s.n){case 0:return s.n=1,f2();case 1:return r=s.v,s.n=2,Gh();case 2:return i=s.v,n.headers=dr(dr(dr({},n.headers||{}),i?{"X-XSRF-TOKEN":i}:{}),r?{Authorization:"Bearer ".concat(r)}:{}),s.a(2,n)}},e)}));return function(e){return t.apply(this,arguments)}}(),function(t){return Promise.reject(t)},{synchronous:!1});ei.interceptors.response.use(function(t){return t},function(){var t=mr(tt().m(function e(n){var r;return tt().w(function(i){for(;;)switch(i.n){case 0:return n==null||(r=n.response)===null||r===void 0||r.status,i.a(2,Promise.reject(n))}},e)}));return function(e){return t.apply(this,arguments)}}());function Ge(t){return Ko.apply(this,arguments)}function Ko(){return Ko=mr(tt().m(function t(e){var n;return tt().w(function(r){for(;;)switch(r.n){case 0:return n=dr({},e),delete n.baseURL,r.a(2,ei.request(dr(dr({},n),{},{withCredentials:!0})))}},t)})),Ko.apply(this,arguments)}function zh(t){ei.defaults.baseURL=t}function Bu(){return ei.defaults.baseURL}function d2(t){qh=t}var ui=null;function f2(){return Xo.apply(this,arguments)}function Xo(){return Xo=mr(tt().m(function t(){var e,n,r,i,s;return tt().w(function(a){for(;;)switch(a.p=a.n){case 0:if(e=qh(),n=ei.defaults.baseURL,r=h2(e,n),i=sessionStorage.getItem(r),!i){a.n=4;break}if(a.p=1,s=JSON.parse(i),!((s==null?void 0:s.validUntil)>Date.now()&&s.value)){a.n=2;break}return a.a(2,String(s.value));case 2:a.n=4;break;case 3:a.p=3,a.v;case 4:if(!ui){a.n=5;break}return a.a(2,ui);case 5:return ui=mr(tt().m(function o(){var l,u,c,f,y;return tt().w(function(h){for(;;)switch(h.p=h.n){case 0:return h.p=0,h.n=1,Gh();case 1:return l=h.v,h.n=2,Re.post(n+"/users/getToken",{},{headers:dr({Authorization:"Bearer "+e},l?{"X-XSRF-TOKEN":l}:{}),withCredentials:!0});case 2:if(u=h.v,c=u.data,!(c!=null&&c.plainTextToken)){h.n=3;break}return sessionStorage.setItem(r,JSON.stringify({value:c.plainTextToken,validUntil:Date.parse(((f=c.accessToken)===null||f===void 0?void 0:f.expires_at)||"")||Date.now()+15*60*1e3})),h.a(2,c.plainTextToken);case 3:h.n=5;break;case 4:h.p=4,y=h.v,Re.isAxiosError(y)?y.response?console.error("Login failed with status",y.response.status,y.response.data):y.request?console.error("Login request made but no response received",y.request):console.error("Error setting up login request",y.message):console.error("Non-Axios error during login",y);case 5:return h.p=5,ui=null,h.f(5);case 6:return h.a(2,"")}},o,null,[[0,4,5,6]])}))(),a.a(2,ui)}},t,null,[[1,3]])})),Xo.apply(this,arguments)}function h2(t,e){var n=Array.from(t+e).reduce(function(r,i){return(r<<5)-r+i.charCodeAt(0)},0);return c2+":"+n}var ci=null;function Gh(){return Jo.apply(this,arguments)}function Jo(){return Jo=mr(tt().m(function t(){var e;return tt().w(function(n){for(;;)switch(n.n){case 0:if(window.location.hostname===new URL(Bu()||window.location.href).hostname){n.n=1;break}return n.a(2,"");case 1:if(e=Du("XSRF-TOKEN"),!e){n.n=2;break}return n.a(2,decodeURIComponent(e));case 2:if(!ci){n.n=3;break}return n.a(2,ci);case 3:return ci=mr(tt().m(function r(){var i;return tt().w(function(s){for(;;)switch(s.p=s.n){case 0:return s.p=0,s.n=1,Re.get(((i=Bu())===null||i===void 0?void 0:i.replace("/api/v1",""))+"/sanctum/csrf-cookie",{withCredentials:!0});case 1:return s.a(2,decodeURIComponent(Du("XSRF-TOKEN")||""));case 2:return s.p=2,ci=null,s.f(2);case 3:return s.a(2)}},r,null,[[0,,2,3]])}))(),n.a(2,ci)}},t)})),Jo.apply(this,arguments)}function Di(t){"@babel/helpers - typeof";return Di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Di(t)}function Fu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ee(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fu(Object(n),!0).forEach(function(r){y2(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function y2(t,e,n){return(e=p2(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p2(t){var e=m2(t,"string");return Di(e)=="symbol"?e:e+""}function m2(t,e){if(Di(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Di(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var g2=function(e,n){return Ge({url:"/brands/".concat(e,"/analysis"),method:"GET",signal:n})},Bl=function(e){return["/brands/".concat(e,"/analysis")]},v2=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:Bl(e),o=function(u){var c=u.signal;return g2(e,c)};return ee({queryKey:a,queryFn:o,enabled:!!e},s)};function Yh(t,e,n){var r=v2(t,e),i=Un(r);return i.queryKey=r.queryKey,i}var b2=function(e,n,r){return Ge({url:"/brands/".concat(e,"/analysis/").concat(n),method:"GET",signal:r})},Xt=function(e,n){return["/brands/".concat(e,"/analysis/").concat(n)]},x2=function(e,n,r){var i,s=r!=null?r:{},a=s.query,o=(i=a==null?void 0:a.queryKey)!==null&&i!==void 0?i:Xt(e,n),l=function(c){var f=c.signal;return b2(e,n,f)};return ee({queryKey:o,queryFn:l,enabled:!!(e&&n)},a)};function Ea(t,e,n,r){var i=x2(t,e,n),s=Un(i);return s.queryKey=i.queryKey,s}var A2=function(e,n){return Ge({url:"/brands/".concat(e,"/analysis/").concat(n),method:"DELETE"})},w2=function(e){var n=["deleteSingleAnalysis"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.analysisId;return A2(u,c)};return ee({mutationFn:s},i)},S2=function(e,n){var r=w2(e);return gn(r)},C2=function(e,n,r){return Ge({url:"/brands/".concat(e,"/analysis/").concat(n,"/status"),method:"GET",signal:r})},dn=function(e,n){return["/brands/".concat(e,"/analysis/").concat(n,"/status")]},j2=function(e,n,r){var i,s=r!=null?r:{},a=s.query,o=(i=a==null?void 0:a.queryKey)!==null&&i!==void 0?i:dn(e,n),l=function(c){var f=c.signal;return C2(e,n,f)};return ee({queryKey:o,queryFn:l,enabled:!!(e&&n)},a)};function O2(t,e,n,r){var i=j2(t,e,n),s=Un(i);return s.queryKey=i.queryKey,s}var E2=function(e){return Ge({url:"/users/logout",method:"POST",signal:e})},k2=function(e){var n=["logout"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(){return E2()};return ee({mutationFn:s},i)},T2=function(e,n){var r=k2(e);return gn(r)},P2=function(e,n){return Ge({url:"/brands/".concat(e,"/associated-brands"),method:"GET",signal:n})},ra=function(e){return["/brands/".concat(e,"/associated-brands")]},M2=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:ra(e),o=function(u){var c=u.signal;return P2(e,c)};return ee({queryKey:a,queryFn:o,enabled:!!e},s)};function I2(t,e,n){var r=M2(t,e),i=Un(r);return i.queryKey=r.queryKey,i}var L2=function(e,n,r){return Ge({url:"/brands/".concat(e,"/associated-brand-groups"),method:"POST",headers:{"Content-Type":"application/json"},data:n,signal:r})},R2=function(e){var n=["createBrandAssociationGroup"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.data;return L2(u,c)};return ee({mutationFn:s},i)},Vh=function(e,n){var r=R2(e);return gn(r)},N2=function(e,n){return Ge({url:"/brands/".concat(e,"/associated-brand-groups/").concat(n),method:"DELETE"})},_2=function(e){var n=["deleteBrandAssociationGroup"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.brandGroupId;return N2(u,c)};return ee({mutationFn:s},i)},D2=function(e,n){var r=_2(e);return gn(r)},B2=function(e){return Ge({url:"/brands",method:"GET",signal:e})},Kt=function(){return["/brands"]},F2=function(e){var n,r=e!=null?e:{},i=r.query,s=(n=i==null?void 0:i.queryKey)!==null&&n!==void 0?n:Kt(),a=function(l){var u=l.signal;return B2(u)};return ee({queryKey:s,queryFn:a},i)};function Ar(t,e){var n=F2(t),r=Un(n);return r.queryKey=n.queryKey,r}var U2=function(e,n){return Ge({url:"/brands",method:"POST",headers:{"Content-Type":"application/json"},data:e,signal:n})},H2=function(e){var n=["createBrand"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.data;return U2(u)};return ee({mutationFn:s},i)},W2=function(e,n){var r=H2(e);return gn(r)},Q2=function(e,n){return Ge({url:"/brands/".concat(e),method:"GET",signal:n})},ka=function(e){return["/brands/".concat(e)]},q2=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:ka(e),o=function(u){var c=u.signal;return Q2(e,c)};return ee({queryKey:a,queryFn:o,enabled:!!e},s)};function ia(t,e,n){var r=q2(t,e),i=Un(r);return i.queryKey=r.queryKey,i}var z2=function(e){return Ge({url:"/brands/".concat(e),method:"DELETE"})},G2=function(e){var n=["deleteBrand"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId;return z2(u)};return ee({mutationFn:s},i)},Y2=function(e,n){var r=G2(e);return gn(r)},V2=function(e,n){return Ge({url:"/brands/".concat(e,"/settings"),method:"PATCH",headers:{"Content-Type":"application/json"},data:n})},K2=function(e){var n=["updateBrandSettings"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.data;return V2(u,c)};return ee({mutationFn:s},i)},Kh=function(e,n){var r=K2(e);return gn(r)},X2=function(e,n){return Ge({url:"/brands/".concat(e,"/queries"),method:"PUT",headers:{"Content-Type":"application/json"},data:n})},J2=function(e){var n=["updateBrandQueries"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(o){var l=o!=null?o:{},u=l.brandId,c=l.data;return X2(u,c)};return ee({mutationFn:s},i)},Z2=function(e,n){var r=J2(e);return gn(r)},$2=function(e,n){return Ge({url:"/brands/".concat(e,"/query-suggestions"),method:"GET",signal:n})},ev=function(e){return["/brands/".concat(e,"/query-suggestions")]},tv=function(e,n){var r,i=n!=null?n:{},s=i.query,a=(r=s==null?void 0:s.queryKey)!==null&&r!==void 0?r:ev(e),o=function(u){var c=u.signal;return $2(e,c)};return ee({queryKey:a,queryFn:o,enabled:!!e},s)};function nv(t,e,n){var r=tv(t,e),i=Un(r);return i.queryKey=r.queryKey,i}var rv=function(e){return Ge({url:"/users/current",method:"GET",signal:e})},Ta=function(){return["/users/current"]},iv=function(e){var n,r=e!=null?e:{},i=r.query,s=(n=i==null?void 0:i.queryKey)!==null&&n!==void 0?n:Ta(),a=function(l){var u=l.signal;return rv(u)};return ee({queryKey:s,queryFn:a},i)};function cs(t,e){var n=iv(t),r=Un(n);return r.queryKey=n.queryKey,r}var sv=function(){return Ge({url:"/users/data",method:"DELETE"})},av=function(e){var n=["deleteUserData"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},i=r.mutation,s=function(){return sv()};return ee({mutationFn:s},i)},ov=function(e,n){var r=av(e);return gn(r)},Xh=D.createContext(void 0),lv=function(e){var n,r,i,s,a,o,l=e.children,u=e.brandId,c=e.analysisId,f=e.model,y=e.hostAppProps,h=y===void 0?{}:y,p=bs("/brands/:brandId"),m=bs("/brands/:brandId/*"),g=bs("/brands/:brandId/analysis/:analysisId"),v=bs("/brands/:brandId/analysis/:analysisId/*"),S=(g==null||(n=g.params)===null||n===void 0?void 0:n.brandId)||(v==null||(r=v.params)===null||r===void 0?void 0:r.brandId)||(m==null||(i=m.params)===null||i===void 0?void 0:i.brandId)||(p==null||(s=p.params)===null||s===void 0?void 0:s.brandId),k=(g==null||(a=g.params)===null||a===void 0?void 0:a.analysisId)||(v==null||(o=v.params)===null||o===void 0?void 0:o.analysisId),C=D.useMemo(function(){return{brandId:S||u||"",analysisId:k||c||"latest",model:f||"openai",hostAppProps:h}},[S,u,k,c,f,h]),A=D.useMemo(function(){return{data:C}},[C]);return d.jsx(Xh.Provider,{value:A,children:l})},Jh=D.createContext(void 0),uv=function(e){var n=e.children,r=e.setBrandId,i=e.setAnalysisId,s=e.setModel,a=D.useCallback(function(f){r(f),i("latest")},[r,i]),o=D.useCallback(function(f){i(f)},[i]),l=D.useCallback(function(f){s(f)},[s]),u=D.useMemo(function(){return{setBrandId:a,setAnalysisId:o,setModel:l}},[a,o,l]),c=D.useMemo(function(){return{mutations:u}},[u]);return d.jsx(Jh.Provider,{value:c,children:n})};function Xa(t,e){return hv(t)||fv(t,e)||dv(t,e)||cv()}function cv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dv(t,e){if(t){if(typeof t=="string")return Uu(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uu(t,e):void 0}}function Uu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function fv(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function hv(t){if(Array.isArray(t))return t}var yv=function(e){var n=e.children,r=e.hostAppProps,i=r===void 0?{}:r,s=D.useState(void 0),a=Xa(s,2),o=a[0],l=a[1],u=D.useState("latest"),c=Xa(u,2),f=c[0],y=c[1],h=D.useState(void 0),p=Xa(h,2),m=p[0],g=p[1];return d.jsx(uv,{brandId:o,setBrandId:l,analysisId:f,setAnalysisId:y,model:m,setModel:g,children:d.jsx(lv,{brandId:o,analysisId:f,model:m,hostAppProps:i,children:n})})},Rt=function(){var e=D.useContext(Xh);if(e===void 0)throw new Error("useBrandAnalysisData must be used within a BrandAnalysisDataProvider");return e.data},ds=function(){var e=D.useContext(Jh);if(e===void 0)throw new Error("useBrandAnalysisMutations must be used within a BrandAnalysisMutationsProvider");return e.mutations},Ja={exports:{}};/*!
12
+ Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let f=et(),y;if(e){let S=typeof e=="string"?wr(e):e;Le(u==="/"||((v=S.pathname)==null?void 0:v.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${S.pathname}" was given in the \`location\` prop.`),y=S}else y=f;let h=y.pathname||"/",p=h;if(u!=="/"){let S=u.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(S.length).join("/")}let m=$f(t,{pathname:p});It(d||m!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),It(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=dp(m&&m.map(S=>Object.assign({},S,{params:Object.assign({},o,S.params),pathname:mn([u,s.encodeLocation?s.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:mn([u,s.encodeLocation?s.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return e&&g?E.createElement(di.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},g):g}function op(){let t=mp(),e=Z0(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",t),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:i},"ErrorBoundary")," or"," ",E.createElement("code",{style:i},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),n?E.createElement("pre",{style:s},n):null,a)}var lp=E.createElement(op,null),up=class extends E.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,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?E.createElement(Rt.Provider,{value:this.props.routeContext},E.createElement(Ml.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function cp({routeContext:t,match:e,children:n}){let r=E.useContext($r);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),E.createElement(Rt.Provider,{value:t},n)}function dp(t,e=[],n=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let s=t,i=n==null?void 0:n.errors;if(i!=null){let l=s.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id])!==void 0);Le(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),s=s.slice(0,Math.min(s.length,l+1))}let a=!1,o=-1;if(n)for(let l=0;l<s.length;l++){let u=s[l];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(o=l),u.route.id){let{loaderData:d,errors:f}=n,y=u.route.loader&&!d.hasOwnProperty(u.route.id)&&(!f||f[u.route.id]===void 0);if(u.route.lazy||y){a=!0,o>=0?s=s.slice(0,o+1):s=[s[0]];break}}}return s.reduceRight((l,u,d)=>{let f,y=!1,h=null,p=null;n&&(f=i&&u.route.id?i[u.route.id]:void 0,h=u.route.errorElement||lp,a&&(o<0&&d===0?(lh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,p=null):o===d&&(y=!0,p=u.route.hydrateFallbackElement||null)));let m=e.concat(s.slice(0,d+1)),g=()=>{let v;return f?v=h:y?v=p:u.route.Component?v=E.createElement(u.route.Component,null):u.route.element?v=u.route.element:v=l,E.createElement(cp,{match:u,routeContext:{outlet:l,matches:m,isDataRoute:n!=null},children:v})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?E.createElement(up,{location:n.location,revalidation:n.revalidation,component:h,error:f,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}function Ll(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fp(t){let e=E.useContext($r);return Le(e,Ll(t)),e}function hp(t){let e=E.useContext(Sa);return Le(e,Ll(t)),e}function yp(t){let e=E.useContext(Rt);return Le(e,Ll(t)),e}function Il(t){let e=yp(t),n=e.matches[e.matches.length-1];return Le(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function pp(){return Il("useRouteId")}function mp(){var r;let t=E.useContext(Ml),e=hp("useRouteError"),n=Il("useRouteError");return t!==void 0?t:(r=e.errors)==null?void 0:r[n]}function gp(){let{router:t}=fp("useNavigate"),e=Il("useNavigate"),n=E.useRef(!1);return ah(()=>{n.current=!0}),E.useCallback(async(s,i={})=>{It(n.current,ih),n.current&&(typeof s=="number"?t.navigate(s):await t.navigate(s,{fromRouteId:e,...i}))},[t,e])}var yu={};function lh(t,e,n){!e&&!yu[t]&&(yu[t]=!0,It(!1,n))}E.memo(vp);function vp({routes:t,future:e,state:n}){return oh(t,void 0,n,e)}function bp({basename:t,children:e,initialEntries:n,initialIndex:r}){let s=E.useRef();s.current==null&&(s.current=M0({initialEntries:n,initialIndex:r,v5Compat:!0}));let i=s.current,[a,o]=E.useState({action:i.action,location:i.location}),l=E.useCallback(u=>{E.startTransition(()=>o(u))},[o]);return E.useLayoutEffect(()=>i.listen(l),[i,l]),E.createElement(xp,{basename:t,children:e,location:a.location,navigationType:a.action,navigator:i})}function Mr({to:t,replace:e,state:n,relative:r}){Le(Sr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=E.useContext(Ft);It(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=E.useContext(Rt),{pathname:a}=et(),o=dt(),l=Pl(t,Tl(i),a,r==="path"),u=JSON.stringify(l);return E.useEffect(()=>{o(JSON.parse(u),{replace:e,state:n,relative:r})},[o,u,r,e,n]),null}function Vr(t){return ip(t.context)}function Ge(t){Le(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function xp({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:s,static:i=!1}){Le(!Sr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=t.replace(/^\/*/,"/"),o=E.useMemo(()=>({basename:a,navigator:s,static:i,future:{}}),[a,s,i]);typeof n=="string"&&(n=wr(n));let{pathname:l="/",search:u="",hash:d="",state:f=null,key:y="default"}=n,h=E.useMemo(()=>{let p=vn(l,a);return p==null?null:{location:{pathname:p,search:u,hash:d,state:f,key:y},navigationType:r}},[a,l,u,d,f,y,r]);return It(h!=null,`<Router basename="${a}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:E.createElement(Ft.Provider,{value:o},E.createElement(di.Provider,{children:e,value:h}))}function Ap({children:t,location:e}){return ap(Lo(t),e)}function Lo(t,e=[]){let n=[];return E.Children.forEach(t,(r,s)=>{if(!E.isValidElement(r))return;let i=[...e,s];if(r.type===E.Fragment){n.push.apply(n,Lo(r.props.children,i));return}Le(r.type===Ge,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Lo(r.props.children,i)),n.push(a)}),n}var zi="get",Gi="application/x-www-form-urlencoded";function ja(t){return t!=null&&typeof t.tagName=="string"}function wp(t){return ja(t)&&t.tagName.toLowerCase()==="button"}function Sp(t){return ja(t)&&t.tagName.toLowerCase()==="form"}function Cp(t){return ja(t)&&t.tagName.toLowerCase()==="input"}function jp(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Op(t,e){return t.button===0&&(!e||e==="_self")&&!jp(t)}var ji=null;function Ep(){if(ji===null)try{new FormData(document.createElement("form"),0),ji=!1}catch(t){ji=!0}return ji}var kp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ja(t){return t!=null&&!kp.has(t)?(It(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Gi}"`),null):t}function Tp(t,e){let n,r,s,i,a;if(Sp(t)){let o=t.getAttribute("action");r=o?vn(o,e):null,n=t.getAttribute("method")||zi,s=Ja(t.getAttribute("enctype"))||Gi,i=new FormData(t)}else if(wp(t)||Cp(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||o.getAttribute("action");if(r=l?vn(l,e):null,n=t.getAttribute("formmethod")||o.getAttribute("method")||zi,s=Ja(t.getAttribute("formenctype"))||Ja(o.getAttribute("enctype"))||Gi,i=new FormData(o,t),!Ep()){let{name:u,type:d,value:f}=t;if(d==="image"){let y=u?`${u}.`:"";i.append(`${y}x`,"0"),i.append(`${y}y`,"0")}else u&&i.append(u,f)}}else{if(ja(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=zi,r=null,s=Gi,a=t}return i&&s==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:i,body:a}}function Rl(t,e){if(t===!1||t===null||typeof t=="undefined")throw new Error(e)}async function Pp(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Mp(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Lp(t,e,n){let r=await Promise.all(t.map(async s=>{let i=e.routes[s.route.id];if(i){let a=await Pp(i,n);return a.links?a.links():[]}return[]}));return _p(r.flat(1).filter(Mp).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function pu(t,e,n,r,s,i){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,o=(l,u)=>{var d;return n[u].pathname!==l.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return i==="assets"?e.filter((l,u)=>a(l,u)||o(l,u)):i==="data"?e.filter((l,u)=>{var f;let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(a(l,u)||o(l,u))return!0;if(l.route.shouldRevalidate){let y=l.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Ip(t,e,{includeHydrateFallback:n}={}){return Rp(t.map(r=>{let s=e.routes[r.route.id];if(!s)return[];let i=[s.module];return s.clientActionModule&&(i=i.concat(s.clientActionModule)),s.clientLoaderModule&&(i=i.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(i=i.concat(s.hydrateFallbackModule)),s.imports&&(i=i.concat(s.imports)),i}).flat(1))}function Rp(t){return[...new Set(t)]}function Np(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function _p(t,e){let n=new Set;return new Set(e),t.reduce((r,s)=>{let i=JSON.stringify(Np(s));return n.has(i)||(n.add(i),r.push({key:i,link:s})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Dp=new Set([100,101,204,205]);function Bp(t,e){let n=typeof t=="string"?new URL(t,typeof window=="undefined"?"server://singlefetch/":window.location.origin):t;return n.pathname==="/"?n.pathname="_root.data":e&&vn(n.pathname,e)==="/"?n.pathname=`${e.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function uh(){let t=E.useContext($r);return Rl(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Fp(){let t=E.useContext(Sa);return Rl(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Nl=E.createContext(void 0);Nl.displayName="FrameworkContext";function ch(){let t=E.useContext(Nl);return Rl(t,"You must render this element inside a <HydratedRouter> element"),t}function Up(t,e){let n=E.useContext(Nl),[r,s]=E.useState(!1),[i,a]=E.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=e,y=E.useRef(null);E.useEffect(()=>{if(t==="render"&&a(!0),t==="viewport"){let m=v=>{v.forEach(S=>{a(S.isIntersecting)})},g=new IntersectionObserver(m,{threshold:.5});return y.current&&g.observe(y.current),()=>{g.disconnect()}}},[t]),E.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let h=()=>{s(!0)},p=()=>{s(!1),a(!1)};return n?t!=="intent"?[i,y,{}]:[i,y,{onFocus:fs(o,h),onBlur:fs(l,p),onMouseEnter:fs(u,h),onMouseLeave:fs(d,p),onTouchStart:fs(f,h)}]:[!1,y,{}]}function fs(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function Hp({page:t,...e}){let{router:n}=uh(),r=E.useMemo(()=>$f(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?E.createElement(Qp,{page:t,matches:r,...e}):null}function Wp(t){let{manifest:e,routeModules:n}=ch(),[r,s]=E.useState([]);return E.useEffect(()=>{let i=!1;return Lp(t,e,n).then(a=>{i||s(a)}),()=>{i=!0}},[t,e,n]),r}function Qp({page:t,matches:e,...n}){let r=et(),{manifest:s,routeModules:i}=ch(),{basename:a}=uh(),{loaderData:o,matches:l}=Fp(),u=E.useMemo(()=>pu(t,e,l,s,r,"data"),[t,e,l,s,r]),d=E.useMemo(()=>pu(t,e,l,s,r,"assets"),[t,e,l,s,r]),f=E.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let p=new Set,m=!1;if(e.forEach(v=>{var k;let S=s.routes[v.route.id];!S||!S.hasLoader||(!u.some(j=>j.route.id===v.route.id)&&v.route.id in o&&((k=i[v.route.id])!=null&&k.shouldRevalidate)||S.hasClientLoader?m=!0:p.add(v.route.id))}),p.size===0)return[];let g=Bp(t,a);return m&&p.size>0&&g.searchParams.set("_routes",e.filter(v=>p.has(v.route.id)).map(v=>v.route.id).join(",")),[g.pathname+g.search]},[a,o,r,s,u,e,t,i]),y=E.useMemo(()=>Ip(d,s),[d,s]),h=Wp(d);return E.createElement(E.Fragment,null,f.map(p=>E.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),y.map(p=>E.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),h.map(({key:p,link:m})=>E.createElement("link",{key:p,...m})))}function qp(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var dh=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{dh&&(window.__reactRouterVersion="7.6.3")}catch(t){}var fh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wn=E.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:s,reloadDocument:i,replace:a,state:o,target:l,to:u,preventScrollReset:d,viewTransition:f,...y},h){let{basename:p}=E.useContext(Ft),m=typeof u=="string"&&fh.test(u),g,v=!1;if(typeof u=="string"&&m&&(g=u,dh))try{let M=new URL(window.location.href),_=u.startsWith("//")?new URL(M.protocol+u):new URL(u),L=vn(_.pathname,p);_.origin===M.origin&&L!=null?u=L+_.search+_.hash:v=!0}catch(M){It(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=np(u,{relative:s}),[k,j,A]=Up(r,y),C=Vp(u,{replace:a,state:o,target:l,preventScrollReset:d,relative:s,viewTransition:f});function b(M){e&&e(M),M.defaultPrevented||C(M)}let x=E.createElement("a",{...y,...A,href:g||S,onClick:v||i?e:b,ref:qp(h,j),target:l,"data-discover":!m&&n==="render"?"true":void 0});return k&&!m?E.createElement(E.Fragment,null,x,E.createElement(Hp,{page:S})):x});Wn.displayName="Link";var zp=E.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:s=!1,style:i,to:a,viewTransition:o,children:l,...u},d){let f=fi(a,{relative:u.relative}),y=et(),h=E.useContext(Sa),{navigator:p,basename:m}=E.useContext(Ft),g=h!=null&&$p(f)&&o===!0,v=p.encodeLocation?p.encodeLocation(f).pathname:f.pathname,S=y.pathname,k=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(S=S.toLowerCase(),k=k?k.toLowerCase():null,v=v.toLowerCase()),k&&m&&(k=vn(k,m)||k);const j=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let A=S===v||!s&&S.startsWith(v)&&S.charAt(j)==="/",C=k!=null&&(k===v||!s&&k.startsWith(v)&&k.charAt(v.length)==="/"),b={isActive:A,isPending:C,isTransitioning:g},x=A?e:void 0,M;typeof r=="function"?M=r(b):M=[r,A?"active":null,C?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let _=typeof i=="function"?i(b):i;return E.createElement(Wn,{...u,"aria-current":x,className:M,ref:d,style:_,to:a,viewTransition:o},typeof l=="function"?l(b):l)});zp.displayName="NavLink";var Gp=E.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:s,state:i,method:a=zi,action:o,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,...y},h)=>{let p=Jp(),m=Zp(o,{relative:u}),g=a.toLowerCase()==="get"?"get":"post",v=typeof o=="string"&&fh.test(o),S=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let j=k.nativeEvent.submitter,A=(j==null?void 0:j.getAttribute("formmethod"))||a;p(j||k.currentTarget,{fetcherKey:e,method:A,navigate:n,replace:s,state:i,relative:u,preventScrollReset:d,viewTransition:f})};return E.createElement("form",{ref:h,method:g,action:m,onSubmit:r?l:S,...y,"data-discover":!v&&t==="render"?"true":void 0})});Gp.displayName="Form";function Yp(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hh(t){let e=E.useContext($r);return Le(e,Yp(t)),e}function Vp(t,{target:e,replace:n,state:r,preventScrollReset:s,relative:i,viewTransition:a}={}){let o=dt(),l=et(),u=fi(t,{relative:i});return E.useCallback(d=>{if(Op(d,e)){d.preventDefault();let f=n!==void 0?n:ra(l)===ra(u);o(t,{replace:f,state:r,preventScrollReset:s,relative:i,viewTransition:a})}},[l,o,u,n,r,e,t,s,i,a])}var Kp=0,Xp=()=>`__${String(++Kp)}__`;function Jp(){let{router:t}=hh("useSubmit"),{basename:e}=E.useContext(Ft),n=pp();return E.useCallback(async(r,s={})=>{let{action:i,method:a,encType:o,formData:l,body:u}=Tp(r,e);if(s.navigate===!1){let d=s.fetcherKey||Xp();await t.fetch(d,n,s.action||i,{preventScrollReset:s.preventScrollReset,formData:l,body:u,formMethod:s.method||a,formEncType:s.encType||o,flushSync:s.flushSync})}else await t.navigate(s.action||i,{preventScrollReset:s.preventScrollReset,formData:l,body:u,formMethod:s.method||a,formEncType:s.encType||o,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[t,e,n])}function Zp(t,{relative:e}={}){let{basename:n}=E.useContext(Ft),r=E.useContext(Rt);Le(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),i={...fi(t||".",{relative:e})},a=et();if(t==null){i.search=a.search;let o=new URLSearchParams(i.search),l=o.getAll("index");if(l.some(d=>d==="")){o.delete("index"),l.filter(f=>f).forEach(f=>o.append("index",f));let d=o.toString();i.search=d?`?${d}`:""}}return(!t||t===".")&&s.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:mn([n,i.pathname])),ra(i)}function $p(t,e={}){let n=E.useContext(sh);Le(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=hh("useViewTransitionState"),s=fi(t,{relative:e.relative});if(!n.isTransitioning)return!1;let i=vn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=vn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Yr(s.pathname,a)!=null||Yr(s.pathname,i)!=null}[...Dp];var es=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},em={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Vt,rr,Uf,tm=(Uf=class{constructor(){$(this,Vt,em);$(this,rr,!1)}setTimeoutProvider(t){process.env.NODE_ENV!=="production"&&P(this,rr)&&t!==P(this,Vt)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:P(this,Vt),provider:t}),V(this,Vt,t),process.env.NODE_ENV!=="production"&&V(this,rr,!1)}setTimeout(t,e){return process.env.NODE_ENV!=="production"&&V(this,rr,!0),P(this,Vt).setTimeout(t,e)}clearTimeout(t){P(this,Vt).clearTimeout(t)}setInterval(t,e){return process.env.NODE_ENV!=="production"&&V(this,rr,!0),P(this,Vt).setInterval(t,e)}clearInterval(t){P(this,Vt).clearInterval(t)}},Vt=new WeakMap,rr=new WeakMap,Uf),er=new tm;function nm(t){setTimeout(t,0)}var mr=typeof window=="undefined"||"Deno"in globalThis;function Ze(){}function rm(t,e){return typeof t=="function"?t(e):t}function Io(t){return typeof t=="number"&&t>=0&&t!==1/0}function yh(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Bn(t,e){return typeof t=="function"?t(e):t}function Pt(t,e){return typeof t=="function"?t(e):t}function mu(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==_l(a,e.options))return!1}else if(!Fs(e.queryKey,a))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||s&&s!==e.state.fetchStatus||i&&!i(e))}function gu(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(gr(e.options.mutationKey)!==gr(i))return!1}else if(!Fs(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function _l(t,e){return((e==null?void 0:e.queryKeyHashFn)||gr)(t)}function gr(t){return JSON.stringify(t,(e,n)=>No(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Fs(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Fs(t[n],e[n])):!1}var sm=Object.prototype.hasOwnProperty;function Ro(t,e){if(t===e)return t;const n=vu(t)&&vu(e);if(!n&&!(No(t)&&No(e)))return e;const s=(n?t:Object.keys(t)).length,i=n?e:Object.keys(e),a=i.length,o=n?new Array(a):{};let l=0;for(let u=0;u<a;u++){const d=n?u:i[u],f=t[d],y=e[d];if(f===y){o[d]=f,(n?u<s:sm.call(t,d))&&l++;continue}if(f===null||y===null||typeof f!="object"||typeof y!="object"){o[d]=y;continue}const h=Ro(f,y);o[d]=h,h===f&&l++}return s===a&&l===s?t:o}function sa(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function vu(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function No(t){if(!bu(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!bu(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function bu(t){return Object.prototype.toString.call(t)==="[object Object]"}function im(t){return new Promise(e=>{er.setTimeout(e,t)})}function _o(t,e,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(t,e);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Ro(t,e)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Ro(t,e)}return e}function am(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function om(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var ia=Symbol();function ph(t,e){return process.env.NODE_ENV!=="production"&&t.queryFn===ia&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`),!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===ia?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function mh(t,e){return typeof t=="function"?t(...e):!!t}var sr,On,Nr,Hf,lm=(Hf=class extends es{constructor(){super();$(this,sr);$(this,On);$(this,Nr);V(this,Nr,e=>{if(!mr&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,On)||this.setEventListener(P(this,Nr))}onUnsubscribe(){var e;this.hasListeners()||((e=P(this,On))==null||e.call(this),V(this,On,void 0))}setEventListener(e){var n;V(this,Nr,e),(n=P(this,On))==null||n.call(this),V(this,On,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){P(this,sr)!==e&&(V(this,sr,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof P(this,sr)=="boolean"?P(this,sr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},sr=new WeakMap,On=new WeakMap,Nr=new WeakMap,Hf),Dl=new lm;function Do(){let t,e;const n=new Promise((s,i)=>{t=s,e=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}var um=nm;function cm(){let t=[],e=0,n=o=>{o()},r=o=>{o()},s=um;const i=o=>{e?t.push(o):s(()=>{n(o)})},a=()=>{const o=t;t=[],o.length&&s(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;e++;try{l=o()}finally{e--,e||a()}return l},batchCalls:o=>(...l)=>{i(()=>{o(...l)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{s=o}}}var He=cm(),_r,En,Dr,Wf,dm=(Wf=class extends es{constructor(){super();$(this,_r,!0);$(this,En);$(this,Dr);V(this,Dr,e=>{if(!mr&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,En)||this.setEventListener(P(this,Dr))}onUnsubscribe(){var e;this.hasListeners()||((e=P(this,En))==null||e.call(this),V(this,En,void 0))}setEventListener(e){var n;V(this,Dr,e),(n=P(this,En))==null||n.call(this),V(this,En,e(this.setOnline.bind(this)))}setOnline(e){P(this,_r)!==e&&(V(this,_r,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return P(this,_r)}},_r=new WeakMap,En=new WeakMap,Dr=new WeakMap,Wf),aa=new dm;function fm(t){return Math.min(1e3*2**t,3e4)}function gh(t){return(t!=null?t:"online")==="online"?aa.isOnline():!0}var Bo=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function vh(t){let e=!1,n=0,r;const s=Do(),i=()=>s.status!=="pending",a=m=>{var g;if(!i()){const v=new Bo(m);y(v),(g=t.onCancel)==null||g.call(t,v)}},o=()=>{e=!0},l=()=>{e=!1},u=()=>Dl.isFocused()&&(t.networkMode==="always"||aa.isOnline())&&t.canRun(),d=()=>gh(t.networkMode)&&t.canRun(),f=m=>{i()||(r==null||r(),s.resolve(m))},y=m=>{i()||(r==null||r(),s.reject(m))},h=()=>new Promise(m=>{var g;r=v=>{(i()||u())&&m(v)},(g=t.onPause)==null||g.call(t)}).then(()=>{var m;r=void 0,i()||(m=t.onContinue)==null||m.call(t)}),p=()=>{if(i())return;let m;const g=n===0?t.initialPromise:void 0;try{m=g!=null?g:t.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(f).catch(v=>{var C,b,x;if(i())return;const S=(C=t.retry)!=null?C:mr?0:3,k=(b=t.retryDelay)!=null?b:fm,j=typeof k=="function"?k(n,v):k,A=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,v);if(e||!A){y(v);return}n++,(x=t.onFail)==null||x.call(t,n,v),im(j).then(()=>u()?void 0:h()).then(()=>{e?y(v):p()})})};return{promise:s,status:()=>s.status,cancel:a,continue:()=>(r==null||r(),s),cancelRetry:o,continueRetry:l,canStart:d,start:()=>(d()?p():h().then(p),s)}}var ir,Qf,bh=(Qf=class{constructor(){$(this,ir)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Io(this.gcTime)&&V(this,ir,er.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t!=null?t:mr?1/0:5*60*1e3)}clearGcTimeout(){P(this,ir)&&(er.clearTimeout(P(this,ir)),V(this,ir,void 0))}},ir=new WeakMap,Qf),ar,Br,Tt,or,Qe,ai,lr,Dt,an,qf,hm=(qf=class extends bh{constructor(e){var n;super();$(this,Dt);$(this,ar);$(this,Br);$(this,Tt);$(this,or);$(this,Qe);$(this,ai);$(this,lr);V(this,lr,!1),V(this,ai,e.defaultOptions),this.setOptions(e.options),this.observers=[],V(this,or,e.client),V(this,Tt,P(this,or).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,V(this,ar,xu(this.options)),this.state=(n=e.state)!=null?n:P(this,ar),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=P(this,Qe))==null?void 0:e.promise}setOptions(e){if(this.options={...P(this,ai),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=xu(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),V(this,ar,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,Tt).remove(this)}setData(e,n){const r=_o(this.state.data,e,this.options);return de(this,Dt,an).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){de(this,Dt,an).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,s;const n=(r=P(this,Qe))==null?void 0:r.promise;return(s=P(this,Qe))==null||s.cancel(e),n?n.then(Ze).catch(Ze):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,ar))}isActive(){return this.observers.some(e=>Pt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ia||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Bn(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!yh(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=P(this,Qe))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=P(this,Qe))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),P(this,Tt).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(P(this,Qe)&&(P(this,lr)?P(this,Qe).cancel({revert:!0}):P(this,Qe).cancelRetry()),this.scheduleGc()),P(this,Tt).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Dt,an).call(this,{type:"invalidate"})}async fetch(e,n){var l,u,d,f,y,h,p,m,g,v,S,k;if(this.state.fetchStatus!=="idle"&&((l=P(this,Qe))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,Qe))return P(this,Qe).continueRetry(),P(this,Qe).promise}if(e&&this.setOptions(e),!this.options.queryFn){const j=this.observers.find(A=>A.options.queryFn);j&&this.setOptions(j.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,s=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(V(this,lr,!0),r.signal)})},i=()=>{const j=ph(this.options,n),C=(()=>{const b={client:P(this,or),queryKey:this.queryKey,meta:this.meta};return s(b),b})();return V(this,lr,!1),this.options.persister?this.options.persister(j,C,this):j(C)},o=(()=>{const j={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,or),state:this.state,fetchFn:i};return s(j),j})();(u=this.options.behavior)==null||u.onFetch(o,this),V(this,Br,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=o.fetchOptions)==null?void 0:d.meta))&&de(this,Dt,an).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta}),V(this,Qe,vh({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:j=>{j instanceof Bo&&j.revert&&this.setState({...P(this,Br),fetchStatus:"idle"}),r.abort()},onFail:(j,A)=>{de(this,Dt,an).call(this,{type:"failed",failureCount:j,error:A})},onPause:()=>{de(this,Dt,an).call(this,{type:"pause"})},onContinue:()=>{de(this,Dt,an).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const j=await P(this,Qe).start();if(j===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(j),(h=(y=P(this,Tt).config).onSuccess)==null||h.call(y,j,this),(m=(p=P(this,Tt).config).onSettled)==null||m.call(p,j,this.state.error,this),j}catch(j){if(j instanceof Bo){if(j.silent)return P(this,Qe).promise;if(j.revert){if(this.state.data===void 0)throw j;return this.state.data}}throw de(this,Dt,an).call(this,{type:"error",error:j}),(v=(g=P(this,Tt).config).onError)==null||v.call(g,j,this),(k=(S=P(this,Tt).config).onSettled)==null||k.call(S,this.state.data,j,this),j}finally{this.scheduleGc()}}},ar=new WeakMap,Br=new WeakMap,Tt=new WeakMap,or=new WeakMap,Qe=new WeakMap,ai=new WeakMap,lr=new WeakMap,Dt=new WeakSet,an=function(e){const n=r=>{var s,i;switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...xh(r.data,this.options),fetchMeta:(s=e.meta)!=null?s:null};case"success":const a={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=e.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return V(this,Br,e.manual?a:void 0),a;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),He.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,Tt).notify({query:this,type:"updated",action:e})})},qf);function xh(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gh(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function xu(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var at,me,oi,Xe,ur,Fr,cn,kn,li,Ur,Hr,cr,dr,Tn,Wr,we,js,Fo,Uo,Ho,Wo,Qo,qo,zo,Ah,zf,ym=(zf=class extends es{constructor(e,n){super();$(this,we);$(this,at);$(this,me);$(this,oi);$(this,Xe);$(this,ur);$(this,Fr);$(this,cn);$(this,kn);$(this,li);$(this,Ur);$(this,Hr);$(this,cr);$(this,dr);$(this,Tn);$(this,Wr,new Set);this.options=n,V(this,at,e),V(this,kn,null),V(this,cn,Do()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(P(this,me).addObserver(this),Au(P(this,me),this.options)?de(this,we,js).call(this):this.updateResult(),de(this,we,Wo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Go(P(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Go(P(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,we,Qo).call(this),de(this,we,qo).call(this),P(this,me).removeObserver(this)}setOptions(e){const n=this.options,r=P(this,me);if(this.options=P(this,at).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pt(this.options.enabled,P(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,we,zo).call(this),P(this,me).setOptions(this.options),n._defaulted&&!sa(this.options,n)&&P(this,at).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,me),observer:this});const s=this.hasListeners();s&&wu(P(this,me),r,this.options,n)&&de(this,we,js).call(this),this.updateResult(),s&&(P(this,me)!==r||Pt(this.options.enabled,P(this,me))!==Pt(n.enabled,P(this,me))||Bn(this.options.staleTime,P(this,me))!==Bn(n.staleTime,P(this,me)))&&de(this,we,Fo).call(this);const i=de(this,we,Uo).call(this);s&&(P(this,me)!==r||Pt(this.options.enabled,P(this,me))!==Pt(n.enabled,P(this,me))||i!==P(this,Tn))&&de(this,we,Ho).call(this,i)}getOptimisticResult(e){const n=P(this,at).getQueryCache().build(P(this,at),e),r=this.createResult(n,e);return mm(this,r)&&(V(this,Xe,r),V(this,Fr,this.options),V(this,ur,P(this,me).state)),r}getCurrentResult(){return P(this,Xe)}trackResult(e,n){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&P(this,cn).status==="pending"&&P(this,cn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(e){P(this,Wr).add(e)}getCurrentQuery(){return P(this,me)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=P(this,at).defaultQueryOptions(e),r=P(this,at).getQueryCache().build(P(this,at),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){var n;return de(this,we,js).call(this,{...e,cancelRefetch:(n=e.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),P(this,Xe)))}createResult(e,n){var M;const r=P(this,me),s=this.options,i=P(this,Xe),a=P(this,ur),o=P(this,Fr),u=e!==r?e.state:P(this,oi),{state:d}=e;let f={...d},y=!1,h;if(n._optimisticResults){const _=this.hasListeners(),L=!_&&Au(e,n),T=_&&wu(e,r,n,s);(L||T)&&(f={...f,...xh(d.data,e.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:g}=f;h=f.data;let v=!1;if(n.placeholderData!==void 0&&h===void 0&&g==="pending"){let _;i!=null&&i.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(_=i.data,v=!0):_=typeof n.placeholderData=="function"?n.placeholderData((M=P(this,Hr))==null?void 0:M.state.data,P(this,Hr)):n.placeholderData,_!==void 0&&(g="success",h=_o(i==null?void 0:i.data,_,n),y=!0)}if(n.select&&h!==void 0&&!v)if(i&&h===(a==null?void 0:a.data)&&n.select===P(this,li))h=P(this,Ur);else try{V(this,li,n.select),h=n.select(h),h=_o(i==null?void 0:i.data,h,n),V(this,Ur,h),V(this,kn,null)}catch(_){V(this,kn,_)}P(this,kn)&&(p=P(this,kn),h=P(this,Ur),m=Date.now(),g="error");const S=f.fetchStatus==="fetching",k=g==="pending",j=g==="error",A=k&&S,C=h!==void 0,x={status:g,fetchStatus:f.fetchStatus,isPending:k,isSuccess:g==="success",isError:j,isInitialLoading:A,isLoading:A,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!k,isLoadingError:j&&!C,isPaused:f.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:j&&C,isStale:Bl(e,n),refetch:this.refetch,promise:P(this,cn),isEnabled:Pt(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const _=H=>{x.status==="error"?H.reject(x.error):x.data!==void 0&&H.resolve(x.data)},L=()=>{const H=V(this,cn,x.promise=Do());_(H)},T=P(this,cn);switch(T.status){case"pending":e.queryHash===r.queryHash&&_(T);break;case"fulfilled":(x.status==="error"||x.data!==T.value)&&L();break;case"rejected":(x.status!=="error"||x.error!==T.reason)&&L();break}}return x}updateResult(){const e=P(this,Xe),n=this.createResult(P(this,me),this.options);if(V(this,ur,P(this,me).state),V(this,Fr,this.options),P(this,ur).data!==void 0&&V(this,Hr,P(this,me)),sa(n,e))return;V(this,Xe,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!P(this,Wr).size)return!0;const a=new Set(i!=null?i:P(this,Wr));return this.options.throwOnError&&a.add("error"),Object.keys(P(this,Xe)).some(o=>{const l=o;return P(this,Xe)[l]!==e[l]&&a.has(l)})};de(this,we,Ah).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,we,Wo).call(this)}},at=new WeakMap,me=new WeakMap,oi=new WeakMap,Xe=new WeakMap,ur=new WeakMap,Fr=new WeakMap,cn=new WeakMap,kn=new WeakMap,li=new WeakMap,Ur=new WeakMap,Hr=new WeakMap,cr=new WeakMap,dr=new WeakMap,Tn=new WeakMap,Wr=new WeakMap,we=new WeakSet,js=function(e){de(this,we,zo).call(this);let n=P(this,me).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Ze)),n},Fo=function(){de(this,we,Qo).call(this);const e=Bn(this.options.staleTime,P(this,me));if(mr||P(this,Xe).isStale||!Io(e))return;const r=yh(P(this,Xe).dataUpdatedAt,e)+1;V(this,cr,er.setTimeout(()=>{P(this,Xe).isStale||this.updateResult()},r))},Uo=function(){var e;return(e=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,me)):this.options.refetchInterval)!=null?e:!1},Ho=function(e){de(this,we,qo).call(this),V(this,Tn,e),!(mr||Pt(this.options.enabled,P(this,me))===!1||!Io(P(this,Tn))||P(this,Tn)===0)&&V(this,dr,er.setInterval(()=>{(this.options.refetchIntervalInBackground||Dl.isFocused())&&de(this,we,js).call(this)},P(this,Tn)))},Wo=function(){de(this,we,Fo).call(this),de(this,we,Ho).call(this,de(this,we,Uo).call(this))},Qo=function(){P(this,cr)&&(er.clearTimeout(P(this,cr)),V(this,cr,void 0))},qo=function(){P(this,dr)&&(er.clearInterval(P(this,dr)),V(this,dr,void 0))},zo=function(){const e=P(this,at).getQueryCache().build(P(this,at),this.options);if(e===P(this,me))return;const n=P(this,me);V(this,me,e),V(this,oi,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Ah=function(e){He.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(P(this,Xe))}),P(this,at).getQueryCache().notify({query:P(this,me),type:"observerResultsUpdated"})})},zf);function pm(t,e){return Pt(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Au(t,e){return pm(t,e)||t.state.data!==void 0&&Go(t,e,e.refetchOnMount)}function Go(t,e,n){if(Pt(e.enabled,t)!==!1&&Bn(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&Bl(t,e)}return!1}function wu(t,e,n,r){return(t!==e||Pt(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Bl(t,n)}function Bl(t,e){return Pt(e.enabled,t)!==!1&&t.isStaleByTime(Bn(e.staleTime,t))}function mm(t,e){return!sa(t.getCurrentResult(),e)}function Su(t){return{onFetch:(e,n)=>{var d,f,y,h,p;const r=e.options,s=(y=(f=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:y.direction,i=((h=e.state.data)==null?void 0:h.pages)||[],a=((p=e.state.data)==null?void 0:p.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const u=async()=>{var k;let m=!1;const g=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(e.signal.aborted?m=!0:e.signal.addEventListener("abort",()=>{m=!0}),e.signal)})},v=ph(e.options,e.fetchOptions),S=async(j,A,C)=>{if(m)return Promise.reject();if(A==null&&j.pages.length)return Promise.resolve(j);const x=(()=>{const T={client:e.client,queryKey:e.queryKey,pageParam:A,direction:C?"backward":"forward",meta:e.options.meta};return g(T),T})(),M=await v(x),{maxPages:_}=e.options,L=C?om:am;return{pages:L(j.pages,M,_),pageParams:L(j.pageParams,A,_)}};if(s&&i.length){const j=s==="backward",A=j?gm:Cu,C={pages:i,pageParams:a},b=A(r,C);o=await S(C,b,j)}else{const j=t!=null?t:i.length;do{const A=l===0?(k=a[0])!=null?k:r.initialPageParam:Cu(r,o);if(l>0&&A==null)break;o=await S(o,A),l++}while(l<j)}return o};e.options.persister?e.fetchFn=()=>{var m,g;return(g=(m=e.options).persister)==null?void 0:g.call(m,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function Cu(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function gm(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var ui,Kt,Je,fr,Xt,Cn,Gf,vm=(Gf=class extends bh{constructor(e){super();$(this,Xt);$(this,ui);$(this,Kt);$(this,Je);$(this,fr);V(this,ui,e.client),this.mutationId=e.mutationId,V(this,Je,e.mutationCache),V(this,Kt,[]),this.state=e.state||wh(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){P(this,Kt).includes(e)||(P(this,Kt).push(e),this.clearGcTimeout(),P(this,Je).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){V(this,Kt,P(this,Kt).filter(n=>n!==e)),this.scheduleGc(),P(this,Je).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){P(this,Kt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Je).remove(this))}continue(){var e,n;return(n=(e=P(this,fr))==null?void 0:e.continue())!=null?n:this.execute(this.state.variables)}async execute(e){var a,o,l,u,d,f,y,h,p,m,g,v,S,k,j,A,C,b,x,M,_;const n=()=>{de(this,Xt,Cn).call(this,{type:"continue"})},r={client:P(this,ui),meta:this.options.meta,mutationKey:this.options.mutationKey};V(this,fr,vh({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(L,T)=>{de(this,Xt,Cn).call(this,{type:"failed",failureCount:L,error:T})},onPause:()=>{de(this,Xt,Cn).call(this,{type:"pause"})},onContinue:n,retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Je).canRun(this)}));const s=this.state.status==="pending",i=!P(this,fr).canStart();try{if(s)n();else{de(this,Xt,Cn).call(this,{type:"pending",variables:e,isPaused:i}),await((l=(o=P(this,Je).config).onMutate)==null?void 0:l.call(o,e,this,r));const T=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,e,r));T!==this.state.context&&de(this,Xt,Cn).call(this,{type:"pending",context:T,variables:e,isPaused:i})}const L=await P(this,fr).start();return await((y=(f=P(this,Je).config).onSuccess)==null?void 0:y.call(f,L,e,this.state.context,this,r)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,L,e,this.state.context,r)),await((g=(m=P(this,Je).config).onSettled)==null?void 0:g.call(m,L,null,this.state.variables,this.state.context,this,r)),await((S=(v=this.options).onSettled)==null?void 0:S.call(v,L,null,e,this.state.context,r)),de(this,Xt,Cn).call(this,{type:"success",data:L}),L}catch(L){try{throw await((j=(k=P(this,Je).config).onError)==null?void 0:j.call(k,L,e,this.state.context,this,r)),await((C=(A=this.options).onError)==null?void 0:C.call(A,L,e,this.state.context,r)),await((x=(b=P(this,Je).config).onSettled)==null?void 0:x.call(b,void 0,L,this.state.variables,this.state.context,this,r)),await((_=(M=this.options).onSettled)==null?void 0:_.call(M,void 0,L,e,this.state.context,r)),L}finally{de(this,Xt,Cn).call(this,{type:"error",error:L})}}finally{P(this,Je).runNext(this)}}},ui=new WeakMap,Kt=new WeakMap,Je=new WeakMap,fr=new WeakMap,Xt=new WeakSet,Cn=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),He.batch(()=>{P(this,Kt).forEach(r=>{r.onMutationUpdate(e)}),P(this,Je).notify({mutation:this,type:"updated",action:e})})},Gf);function wh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var dn,Bt,ci,Yf,bm=(Yf=class extends es{constructor(e={}){super();$(this,dn);$(this,Bt);$(this,ci);this.config=e,V(this,dn,new Set),V(this,Bt,new Map),V(this,ci,0)}build(e,n,r){const s=new vm({client:e,mutationCache:this,mutationId:++Si(this,ci)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){P(this,dn).add(e);const n=Oi(e);if(typeof n=="string"){const r=P(this,Bt).get(n);r?r.push(e):P(this,Bt).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(P(this,dn).delete(e)){const n=Oi(e);if(typeof n=="string"){const r=P(this,Bt).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&P(this,Bt).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Oi(e);if(typeof n=="string"){const r=P(this,Bt).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){var r,s;const n=Oi(e);if(typeof n=="string"){const i=(r=P(this,Bt).get(n))==null?void 0:r.find(a=>a!==e&&a.state.isPaused);return(s=i==null?void 0:i.continue())!=null?s:Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{P(this,dn).forEach(e=>{this.notify({type:"removed",mutation:e})}),P(this,dn).clear(),P(this,Bt).clear()})}getAll(){return Array.from(P(this,dn))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>gu(n,r))}findAll(e={}){return this.getAll().filter(n=>gu(e,n))}notify(e){He.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(e.map(n=>n.continue().catch(Ze))))}},dn=new WeakMap,Bt=new WeakMap,ci=new WeakMap,Yf);function Oi(t){var e;return(e=t.options.scope)==null?void 0:e.id}var fn,Pn,ot,hn,gn,Yi,Yo,Vf,xm=(Vf=class extends es{constructor(n,r){super();$(this,gn);$(this,fn);$(this,Pn);$(this,ot);$(this,hn);V(this,fn,n),this.setOptions(r),this.bindMethods(),de(this,gn,Yi).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=P(this,fn).defaultMutationOptions(n),sa(this.options,r)||P(this,fn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:P(this,ot),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&gr(r.mutationKey)!==gr(this.options.mutationKey)?this.reset():((s=P(this,ot))==null?void 0:s.state.status)==="pending"&&P(this,ot).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=P(this,ot))==null||n.removeObserver(this)}onMutationUpdate(n){de(this,gn,Yi).call(this),de(this,gn,Yo).call(this,n)}getCurrentResult(){return P(this,Pn)}reset(){var n;(n=P(this,ot))==null||n.removeObserver(this),V(this,ot,void 0),de(this,gn,Yi).call(this),de(this,gn,Yo).call(this)}mutate(n,r){var s;return V(this,hn,r),(s=P(this,ot))==null||s.removeObserver(this),V(this,ot,P(this,fn).getMutationCache().build(P(this,fn),this.options)),P(this,ot).addObserver(this),P(this,ot).execute(n)}},fn=new WeakMap,Pn=new WeakMap,ot=new WeakMap,hn=new WeakMap,gn=new WeakSet,Yi=function(){var r,s;const n=(s=(r=P(this,ot))==null?void 0:r.state)!=null?s:wh();V(this,Pn,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Yo=function(n){He.batch(()=>{var r,s,i,a,o,l,u,d;if(P(this,hn)&&this.hasListeners()){const f=P(this,Pn).variables,y=P(this,Pn).context,h={client:P(this,fn),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((s=(r=P(this,hn)).onSuccess)==null||s.call(r,n.data,f,y,h),(a=(i=P(this,hn)).onSettled)==null||a.call(i,n.data,null,f,y,h)):(n==null?void 0:n.type)==="error"&&((l=(o=P(this,hn)).onError)==null||l.call(o,n.error,f,y,h),(d=(u=P(this,hn)).onSettled)==null||d.call(u,void 0,n.error,f,y,h))}this.listeners.forEach(f=>{f(P(this,Pn))})})},Vf),Jt,Kf,Am=(Kf=class extends es{constructor(e={}){super();$(this,Jt);this.config=e,V(this,Jt,new Map)}build(e,n,r){var o;const s=n.queryKey,i=(o=n.queryHash)!=null?o:_l(s,n);let a=this.get(i);return a||(a=new hm({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(a)),a}add(e){P(this,Jt).has(e.queryHash)||(P(this,Jt).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=P(this,Jt).get(e.queryHash);n&&(e.destroy(),n===e&&P(this,Jt).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){He.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return P(this,Jt).get(e)}getAll(){return[...P(this,Jt).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>mu(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>mu(e,r)):n}notify(e){He.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){He.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Jt=new WeakMap,Kf),De,Mn,Ln,Qr,qr,In,zr,Gr,Xf,wm=(Xf=class{constructor(t={}){$(this,De);$(this,Mn);$(this,Ln);$(this,Qr);$(this,qr);$(this,In);$(this,zr);$(this,Gr);V(this,De,t.queryCache||new Am),V(this,Mn,t.mutationCache||new bm),V(this,Ln,t.defaultOptions||{}),V(this,Qr,new Map),V(this,qr,new Map),V(this,In,0)}mount(){Si(this,In)._++,P(this,In)===1&&(V(this,zr,Dl.subscribe(async t=>{t&&(await this.resumePausedMutations(),P(this,De).onFocus())})),V(this,Gr,aa.subscribe(async t=>{t&&(await this.resumePausedMutations(),P(this,De).onOnline())})))}unmount(){var t,e;Si(this,In)._--,P(this,In)===0&&((t=P(this,zr))==null||t.call(this),V(this,zr,void 0),(e=P(this,Gr))==null||e.call(this),V(this,Gr,void 0))}isFetching(t){return P(this,De).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return P(this,Mn).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=P(this,De).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=P(this,De).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Bn(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return P(this,De).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=P(this,De).get(r.queryHash),i=s==null?void 0:s.state.data,a=rm(e,i);if(a!==void 0)return P(this,De).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return He.batch(()=>P(this,De).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=P(this,De).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=P(this,De);He.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=P(this,De);return He.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=He.batch(()=>P(this,De).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then(Ze).catch(Ze)}invalidateQueries(t,e={}){return He.batch(()=>{var n,r;return P(this,De).findAll(t).forEach(s=>{s.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(r=(n=t==null?void 0:t.refetchType)!=null?n:t==null?void 0:t.type)!=null?r:"active"},e)})}refetchQueries(t,e={}){var s;const n={...e,cancelRefetch:(s=e.cancelRefetch)!=null?s:!0},r=He.batch(()=>P(this,De).findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Ze)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Ze)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=P(this,De).build(this,e);return n.isStaleByTime(Bn(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ze).catch(Ze)}fetchInfiniteQuery(t){return t.behavior=Su(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ze).catch(Ze)}ensureInfiniteQueryData(t){return t.behavior=Su(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return aa.isOnline()?P(this,Mn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,De)}getMutationCache(){return P(this,Mn)}getDefaultOptions(){return P(this,Ln)}setDefaultOptions(t){V(this,Ln,t)}setQueryDefaults(t,e){P(this,Qr).set(gr(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...P(this,Qr).values()],n={};return e.forEach(r=>{Fs(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){P(this,qr).set(gr(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...P(this,qr).values()],n={};return e.forEach(r=>{Fs(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...P(this,Ln).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=_l(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===ia&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...P(this,Ln).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){P(this,De).clear(),P(this,Mn).clear()}},De=new WeakMap,Mn=new WeakMap,Ln=new WeakMap,Qr=new WeakMap,qr=new WeakMap,In=new WeakMap,zr=new WeakMap,Gr=new WeakMap,Xf),Sh=E.createContext(void 0),Nt=t=>{const e=E.useContext(Sh);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Sm=({client:t,children:e})=>(E.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),c.jsx(Sh.Provider,{value:t,children:e})),Ch=E.createContext(!1),Cm=()=>E.useContext(Ch);Ch.Provider;function jm(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Om=E.createContext(jm()),Em=()=>E.useContext(Om),km=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},Tm=t=>{E.useEffect(()=>{t.clearReset()},[t])},Pm=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:s})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(s&&t.data===void 0||mh(n,[t.error,r])),Mm=t=>{if(t.suspense){const n=s=>s==="static"?s:Math.max(s!=null?s:1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Lm=(t,e)=>t.isLoading&&t.isFetching&&!e,Im=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,ju=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Rm(t,e,n){var f,y,h,p,m;if(process.env.NODE_ENV!=="production"&&(typeof t!="object"||Array.isArray(t)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Cm(),s=Em(),i=Nt(),a=i.defaultQueryOptions(t);(y=(f=i.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||y.call(f,a),process.env.NODE_ENV!=="production"&&(a.queryFn||console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),a._optimisticResults=r?"isRestoring":"optimistic",Mm(a),km(a,s),Tm(s);const o=!i.getQueryCache().get(a.queryHash),[l]=E.useState(()=>new e(i,a)),u=l.getOptimisticResult(a),d=!r&&t.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(g=>{const v=d?l.subscribe(He.batchCalls(g)):Ze;return l.updateResult(),v},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),E.useEffect(()=>{l.setOptions(a)},[a,l]),Im(a,u))throw ju(a,l,s);if(Pm({result:u,errorResetBoundary:s,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((p=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||p.call(h,a,u),a.experimental_prefetchInRender&&!mr&&Lm(u,r)){const g=o?ju(a,l,s):(m=i.getQueryCache().get(a.queryHash))==null?void 0:m.promise;g==null||g.catch(Ze).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function Qn(t,e){return Rm(t,ym)}function xn(t,e){const n=Nt(),[r]=E.useState(()=>new xm(n,t));E.useEffect(()=>{r.setOptions(t)},[r,t]);const s=E.useSyncExternalStore(E.useCallback(a=>r.subscribe(He.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=E.useCallback((a,o)=>{r.mutate(a,o).catch(Ze)},[r]);if(s.error&&mh(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}function jh(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nm}=Object.prototype,{getPrototypeOf:Fl}=Object,{iterator:Oa,toStringTag:Oh}=Symbol,Ea=(t=>e=>{const n=Nm.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ut=t=>(t=t.toLowerCase(),e=>Ea(e)===t),ka=t=>e=>typeof e===t,{isArray:ts}=Array,Us=ka("undefined");function _m(t){return t!==null&&!Us(t)&&t.constructor!==null&&!Us(t.constructor)&&ut(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Eh=Ut("ArrayBuffer");function Dm(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Eh(t.buffer),e}const Bm=ka("string"),ut=ka("function"),kh=ka("number"),Ta=t=>t!==null&&typeof t=="object",Fm=t=>t===!0||t===!1,Vi=t=>{if(Ea(t)!=="object")return!1;const e=Fl(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Oh in t)&&!(Oa in t)},Um=Ut("Date"),Hm=Ut("File"),Wm=Ut("Blob"),Qm=Ut("FileList"),qm=t=>Ta(t)&&ut(t.pipe),zm=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ut(t.append)&&((e=Ea(t))==="formdata"||e==="object"&&ut(t.toString)&&t.toString()==="[object FormData]"))},Gm=Ut("URLSearchParams"),[Ym,Vm,Km,Xm]=["ReadableStream","Request","Response","Headers"].map(Ut),Jm=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hi(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let r,s;if(typeof t!="object"&&(t=[t]),ts(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),a=i.length;let o;for(r=0;r<a;r++)o=i[r],e.call(null,t[o],o,t)}}function Th(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const tr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Ph=t=>!Us(t)&&t!==tr;function Vo(){const{caseless:t}=Ph(this)&&this||{},e={},n=(r,s)=>{const i=t&&Th(e,s)||s;Vi(e[i])&&Vi(r)?e[i]=Vo(e[i],r):Vi(r)?e[i]=Vo({},r):ts(r)?e[i]=r.slice():e[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&hi(arguments[r],n);return e}const Zm=(t,e,n,{allOwnKeys:r}={})=>(hi(e,(s,i)=>{n&&ut(s)?t[i]=jh(s,n):t[i]=s},{allOwnKeys:r}),t),$m=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),eg=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},tg=(t,e,n,r)=>{let s,i,a;const o={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)a=s[i],(!r||r(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=n!==!1&&Fl(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ng=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},rg=t=>{if(!t)return null;if(ts(t))return t;let e=t.length;if(!kh(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},sg=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&Fl(Uint8Array)),ig=(t,e)=>{const r=(t&&t[Oa]).call(t);let s;for(;(s=r.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},ag=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},og=Ut("HTMLFormElement"),lg=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ou=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ug=Ut("RegExp"),Mh=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};hi(n,(s,i)=>{let a;(a=e(s,i,t))!==!1&&(r[i]=a||s)}),Object.defineProperties(t,r)},cg=t=>{Mh(t,(e,n)=>{if(ut(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(ut(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},dg=(t,e)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return ts(t)?r(t):r(String(t).split(e)),n},fg=()=>{},hg=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function yg(t){return!!(t&&ut(t.append)&&t[Oh]==="FormData"&&t[Oa])}const pg=t=>{const e=new Array(10),n=(r,s)=>{if(Ta(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const i=ts(r)?[]:{};return hi(r,(a,o)=>{const l=n(a,s+1);!Us(l)&&(i[o]=l)}),e[s]=void 0,i}}return r};return n(t,0)},mg=Ut("AsyncFunction"),gg=t=>t&&(Ta(t)||ut(t))&&ut(t.then)&&ut(t.catch),Lh=((t,e)=>t?setImmediate:e?((n,r)=>(tr.addEventListener("message",({source:s,data:i})=>{s===tr&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),tr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ut(tr.postMessage)),vg=typeof queueMicrotask!="undefined"?queueMicrotask.bind(tr):typeof process!="undefined"&&process.nextTick||Lh,bg=t=>t!=null&&ut(t[Oa]),B={isArray:ts,isArrayBuffer:Eh,isBuffer:_m,isFormData:zm,isArrayBufferView:Dm,isString:Bm,isNumber:kh,isBoolean:Fm,isObject:Ta,isPlainObject:Vi,isReadableStream:Ym,isRequest:Vm,isResponse:Km,isHeaders:Xm,isUndefined:Us,isDate:Um,isFile:Hm,isBlob:Wm,isRegExp:ug,isFunction:ut,isStream:qm,isURLSearchParams:Gm,isTypedArray:sg,isFileList:Qm,forEach:hi,merge:Vo,extend:Zm,trim:Jm,stripBOM:$m,inherits:eg,toFlatObject:tg,kindOf:Ea,kindOfTest:Ut,endsWith:ng,toArray:rg,forEachEntry:ig,matchAll:ag,isHTMLForm:og,hasOwnProperty:Ou,hasOwnProp:Ou,reduceDescriptors:Mh,freezeMethods:cg,toObjectSet:dg,toCamelCase:lg,noop:fg,toFiniteNumber:hg,findKey:Th,global:tr,isContextDefined:Ph,isSpecCompliantForm:yg,toJSONObject:pg,isAsyncFn:mg,isThenable:gg,setImmediate:Lh,asap:vg,isIterable:bg};function ue(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}B.inherits(ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.status}}});const Ih=ue.prototype,Rh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Rh[t]={value:t}});Object.defineProperties(ue,Rh);Object.defineProperty(Ih,"isAxiosError",{value:!0});ue.from=(t,e,n,r,s,i)=>{const a=Object.create(Ih);return B.toFlatObject(t,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),ue.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};const xg=null;function Ko(t){return B.isPlainObject(t)||B.isArray(t)}function Nh(t){return B.endsWith(t,"[]")?t.slice(0,-2):t}function Eu(t,e,n){return t?t.concat(e).map(function(s,i){return s=Nh(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function Ag(t){return B.isArray(t)&&!t.some(Ko)}const wg=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function Pa(t,e,n){if(!B.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!B.isUndefined(g[m])});const r=n.metaTokens,s=n.visitor||d,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&B.isSpecCompliantForm(e);if(!B.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(B.isDate(p))return p.toISOString();if(B.isBoolean(p))return p.toString();if(!l&&B.isBlob(p))throw new ue("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(p)||B.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,m,g){let v=p;if(p&&!g&&typeof p=="object"){if(B.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(B.isArray(p)&&Ag(p)||(B.isFileList(p)||B.endsWith(m,"[]"))&&(v=B.toArray(p)))return m=Nh(m),v.forEach(function(k,j){!(B.isUndefined(k)||k===null)&&e.append(a===!0?Eu([m],j,i):a===null?m:m+"[]",u(k))}),!1}return Ko(p)?!0:(e.append(Eu(g,m,i),u(p)),!1)}const f=[],y=Object.assign(wg,{defaultVisitor:d,convertValue:u,isVisitable:Ko});function h(p,m){if(!B.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),B.forEach(p,function(v,S){(!(B.isUndefined(v)||v===null)&&s.call(e,v,B.isString(S)?S.trim():S,m,y))===!0&&h(v,m?m.concat(S):[S])}),f.pop()}}if(!B.isObject(t))throw new TypeError("data must be an object");return h(t),e}function ku(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Ul(t,e){this._pairs=[],t&&Pa(t,this,e)}const _h=Ul.prototype;_h.append=function(e,n){this._pairs.push([e,n])};_h.toString=function(e){const n=e?function(r){return e.call(this,r,ku)}:ku;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Sg(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Dh(t,e,n){if(!e)return t;const r=n&&n.encode||Sg;B.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(e,n):i=B.isURLSearchParams(e)?e.toString():new Ul(e,n).toString(r),i){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Tu{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Bh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cg=typeof URLSearchParams!="undefined"?URLSearchParams:Ul,jg=typeof FormData!="undefined"?FormData:null,Og=typeof Blob!="undefined"?Blob:null,Eg={isBrowser:!0,classes:{URLSearchParams:Cg,FormData:jg,Blob:Og},protocols:["http","https","file","blob","url","data"]},Hl=typeof window!="undefined"&&typeof document!="undefined",Xo=typeof navigator=="object"&&navigator||void 0,kg=Hl&&(!Xo||["ReactNative","NativeScript","NS"].indexOf(Xo.product)<0),Tg=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Pg=Hl&&window.location.href||"http://localhost",Mg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hl,hasStandardBrowserEnv:kg,hasStandardBrowserWebWorkerEnv:Tg,navigator:Xo,origin:Pg},Symbol.toStringTag,{value:"Module"})),Ve={...Mg,...Eg};function Lg(t,e){return Pa(t,new Ve.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return Ve.isNode&&B.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Ig(t){return B.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Rg(t){const e={},n=Object.keys(t);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],e[i]=t[i];return e}function Fh(t){function e(n,r,s,i){let a=n[i++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=i>=n.length;return a=!a&&B.isArray(s)?s.length:a,l?(B.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!o):((!s[a]||!B.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],i)&&B.isArray(s[a])&&(s[a]=Rg(s[a])),!o)}if(B.isFormData(t)&&B.isFunction(t.entries)){const n={};return B.forEachEntry(t,(r,s)=>{e(Ig(r),s,n,0)}),n}return null}function Ng(t,e,n){if(B.isString(t))try{return(e||JSON.parse)(t),B.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const yi={transitional:Bh,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=B.isObject(e);if(i&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return s?JSON.stringify(Fh(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e)||B.isReadableStream(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Lg(e,this.formSerializer).toString();if((o=B.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Pa(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Ng(e)):e}],transformResponse:[function(e){const n=this.transitional||yi.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(B.isResponse(e)||B.isReadableStream(e))return e;if(e&&B.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?ue.from(o,ue.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],t=>{yi.headers[t]={}});const _g=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Dg=t=>{const e={};let n,r,s;return t&&t.split(`
13
+ `).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||e[n]&&_g[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Pu=Symbol("internals");function hs(t){return t&&String(t).trim().toLowerCase()}function Ki(t){return t===!1||t==null?t:B.isArray(t)?t.map(Ki):String(t)}function Bg(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Fg=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Za(t,e,n,r,s){if(B.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!B.isString(e)){if(B.isString(r))return e.indexOf(r)!==-1;if(B.isRegExp(r))return r.test(e)}}function Ug(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Hg(t,e){const n=B.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,a){return this[r].call(this,e,s,i,a)},configurable:!0})})}let ct=class{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function i(o,l,u){const d=hs(l);if(!d)throw new Error("header name must be a non-empty string");const f=B.findKey(s,d);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||l]=Ki(o))}const a=(o,l)=>B.forEach(o,(u,d)=>i(u,d,l));if(B.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(B.isString(e)&&(e=e.trim())&&!Fg(e))a(Dg(e),n);else if(B.isObject(e)&&B.isIterable(e)){let o={},l,u;for(const d of e){if(!B.isArray(d))throw TypeError("Object iterator must return a key-value pair");o[u=d[0]]=(l=o[u])?B.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}a(o,n)}else e!=null&&i(n,e,r);return this}get(e,n){if(e=hs(e),e){const r=B.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Bg(s);if(B.isFunction(n))return n.call(this,s,r);if(B.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=hs(e),e){const r=B.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Za(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function i(a){if(a=hs(a),a){const o=B.findKey(r,a);o&&(!n||Za(r,r[o],o,n))&&(delete r[o],s=!0)}}return B.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!e||Za(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,r={};return B.forEach(this,(s,i)=>{const a=B.findKey(r,i);if(a){n[a]=Ki(s),delete n[i];return}const o=e?Ug(i):String(i).trim();o!==i&&delete n[i],n[o]=Ki(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return B.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&B.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
14
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[Pu]=this[Pu]={accessors:{}}).accessors,s=this.prototype;function i(a){const o=hs(a);r[o]||(Hg(s,a),r[o]=!0)}return B.isArray(e)?e.forEach(i):i(e),this}};ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(ct.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});B.freezeMethods(ct);function $a(t,e){const n=this||yi,r=e||n,s=ct.from(r.headers);let i=r.data;return B.forEach(t,function(o){i=o.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function Uh(t){return!!(t&&t.__CANCEL__)}function ns(t,e,n){ue.call(this,t==null?"canceled":t,ue.ERR_CANCELED,e,n),this.name="CanceledError"}B.inherits(ns,ue,{__CANCEL__:!0});function Hh(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new ue("Request failed with status code "+n.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Wg(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Qg(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),d=r[i];a||(a=u),n[s]=l,r[s]=u;let f=i,y=0;for(;f!==s;)y+=n[f++],f=f%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),u-a<e)return;const h=d&&u-d;return h?Math.round(y*1e3/h):void 0}}function qg(t,e){let n=0,r=1e3/e,s,i;const a=(u,d=Date.now())=>{n=d,s=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?a(u,d):(s=u,i||(i=setTimeout(()=>{i=null,a(s)},r-f)))},()=>s&&a(s)]}const oa=(t,e,n=3)=>{let r=0;const s=Qg(50,250);return qg(i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-r,u=s(l),d=a<=o;r=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&d?(o-a)/u:void 0,event:i,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(f)},n)},Mu=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Lu=t=>(...e)=>B.asap(()=>t(...e)),zg=Ve.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Ve.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,Gg=Ve.hasStandardBrowserEnv?{write(t,e,n,r,s,i){const a=[t+"="+encodeURIComponent(e)];B.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),B.isString(r)&&a.push("path="+r),B.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Yg(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Vg(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Wh(t,e,n){let r=!Yg(e);return t&&(r||n==!1)?Vg(t,e):e}const Iu=t=>t instanceof ct?{...t}:t;function vr(t,e){e=e||{};const n={};function r(u,d,f,y){return B.isPlainObject(u)&&B.isPlainObject(d)?B.merge.call({caseless:y},u,d):B.isPlainObject(d)?B.merge({},d):B.isArray(d)?d.slice():d}function s(u,d,f,y){if(B.isUndefined(d)){if(!B.isUndefined(u))return r(void 0,u,f,y)}else return r(u,d,f,y)}function i(u,d){if(!B.isUndefined(d))return r(void 0,d)}function a(u,d){if(B.isUndefined(d)){if(!B.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function o(u,d,f){if(f in e)return r(u,d);if(f in t)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,d,f)=>s(Iu(u),Iu(d),f,!0)};return B.forEach(Object.keys(Object.assign({},t,e)),function(d){const f=l[d]||s,y=f(t[d],e[d],d);B.isUndefined(y)&&f!==o||(n[d]=y)}),n}const Qh=t=>{const e=vr({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:o}=e;e.headers=a=ct.from(a),e.url=Dh(Wh(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(B.isFormData(n)){if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Ve.hasStandardBrowserEnv&&(r&&B.isFunction(r)&&(r=r(e)),r||r!==!1&&zg(e.url))){const u=s&&i&&Gg.read(i);u&&a.set(s,u)}return e},Kg=typeof XMLHttpRequest!="undefined",Xg=Kg&&function(t){return new Promise(function(n,r){const s=Qh(t);let i=s.data;const a=ct.from(s.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=s,d,f,y,h,p;function m(){h&&h(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(s.method.toUpperCase(),s.url,!0),g.timeout=s.timeout;function v(){if(!g)return;const k=ct.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),A={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:k,config:t,request:g};Hh(function(b){n(b),m()},function(b){r(b),m()},A),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(r(new ue("Request aborted",ue.ECONNABORTED,t,g)),g=null)},g.onerror=function(){r(new ue("Network Error",ue.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let j=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const A=s.transitional||Bh;s.timeoutErrorMessage&&(j=s.timeoutErrorMessage),r(new ue(j,A.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,t,g)),g=null},i===void 0&&a.setContentType(null),"setRequestHeader"in g&&B.forEach(a.toJSON(),function(j,A){g.setRequestHeader(A,j)}),B.isUndefined(s.withCredentials)||(g.withCredentials=!!s.withCredentials),o&&o!=="json"&&(g.responseType=s.responseType),u&&([y,p]=oa(u,!0),g.addEventListener("progress",y)),l&&g.upload&&([f,h]=oa(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",h)),(s.cancelToken||s.signal)&&(d=k=>{g&&(r(!k||k.type?new ns(null,t,g):k),g.abort(),g=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const S=Wg(s.url);if(S&&Ve.protocols.indexOf(S)===-1){r(new ue("Unsupported protocol "+S+":",ue.ERR_BAD_REQUEST,t));return}g.send(i||null)})},Jg=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const i=function(u){if(!s){s=!0,o();const d=u instanceof Error?u:this.reason;r.abort(d instanceof ue?d:new ns(d instanceof Error?d.message:d))}};let a=e&&setTimeout(()=>{a=null,i(new ue(`timeout ${e} of ms exceeded`,ue.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>B.asap(o),l}},Zg=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},$g=async function*(t,e){for await(const n of e2(t))yield*Zg(n,e)},e2=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Ru=(t,e,n,r)=>{const s=$g(t,e);let i=0,a,o=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await s.next();if(u){o(),l.close();return}let f=d.byteLength;if(n){let y=i+=f;n(y)}l.enqueue(new Uint8Array(d))}catch(u){throw o(u),u}},cancel(l){return o(l),s.return()}},{highWaterMark:2})},Ma=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qh=Ma&&typeof ReadableStream=="function",t2=Ma&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),zh=(t,...e)=>{try{return!!t(...e)}catch(n){return!1}},n2=qh&&zh(()=>{let t=!1;const e=new Request(Ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Nu=64*1024,Jo=qh&&zh(()=>B.isReadableStream(new Response("").body)),la={stream:Jo&&(t=>t.body)};Ma&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!la[e]&&(la[e]=B.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new ue(`Response type '${e}' is not supported`,ue.ERR_NOT_SUPPORT,r)})})})(new Response);const r2=async t=>{if(t==null)return 0;if(B.isBlob(t))return t.size;if(B.isSpecCompliantForm(t))return(await new Request(Ve.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(B.isArrayBufferView(t)||B.isArrayBuffer(t))return t.byteLength;if(B.isURLSearchParams(t)&&(t=t+""),B.isString(t))return(await t2(t)).byteLength},s2=async(t,e)=>{const n=B.toFiniteNumber(t.getContentLength());return n==null?r2(e):n},i2=Ma&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:i,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:y}=Qh(t);u=u?(u+"").toLowerCase():"text";let h=Jg([s,i&&i.toAbortSignal()],a),p;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&n2&&n!=="get"&&n!=="head"&&(g=await s2(d,r))!==0){let A=new Request(e,{method:"POST",body:r,duplex:"half"}),C;if(B.isFormData(r)&&(C=A.headers.get("content-type"))&&d.setContentType(C),A.body){const[b,x]=Mu(g,oa(Lu(l)));r=Ru(A.body,Nu,b,x)}}B.isString(f)||(f=f?"include":"omit");const v="credentials"in Request.prototype;p=new Request(e,{...y,signal:h,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:v?f:void 0});let S=await fetch(p,y);const k=Jo&&(u==="stream"||u==="response");if(Jo&&(o||k&&m)){const A={};["status","statusText","headers"].forEach(M=>{A[M]=S[M]});const C=B.toFiniteNumber(S.headers.get("content-length")),[b,x]=o&&Mu(C,oa(Lu(o),!0))||[];S=new Response(Ru(S.body,Nu,b,()=>{x&&x(),m&&m()}),A)}u=u||"text";let j=await la[B.findKey(la,u)||"text"](S,t);return!k&&m&&m(),await new Promise((A,C)=>{Hh(A,C,{data:j,headers:ct.from(S.headers),status:S.status,statusText:S.statusText,config:t,request:p})})}catch(v){throw m&&m(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,t,p),{cause:v.cause||v}):ue.from(v,v&&v.code,t,p)}}),Zo={http:xg,xhr:Xg,fetch:i2};B.forEach(Zo,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}});const _u=t=>`- ${t}`,a2=t=>B.isFunction(t)||t===null||t===!1,Gh={getAdapter:t=>{t=B.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let i=0;i<e;i++){n=t[i];let a;if(r=n,!a2(n)&&(r=Zo[(a=String(n)).toLowerCase()],r===void 0))throw new ue(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+i]=r}if(!r){const i=Object.entries(s).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since :
15
+ `+i.map(_u).join(`
16
+ `):" "+_u(i[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Zo};function eo(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ns(null,t)}function Du(t){return eo(t),t.headers=ct.from(t.headers),t.data=$a.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Gh.getAdapter(t.adapter||yi.adapter)(t).then(function(r){return eo(t),r.data=$a.call(t,t.transformResponse,r),r.headers=ct.from(r.headers),r},function(r){return Uh(r)||(eo(t),r&&r.response&&(r.response.data=$a.call(t,t.transformResponse,r.response),r.response.headers=ct.from(r.response.headers))),Promise.reject(r)})}const Yh="1.10.0",La={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{La[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Bu={};La.transitional=function(e,n,r){function s(i,a){return"[Axios v"+Yh+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,o)=>{if(e===!1)throw new ue(s(a," has been removed"+(n?" in "+n:"")),ue.ERR_DEPRECATED);return n&&!Bu[a]&&(Bu[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,a,o):!0}};La.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function o2(t,e,n){if(typeof t!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],a=e[i];if(a){const o=t[i],l=o===void 0||a(o,i,t);if(l!==!0)throw new ue("option "+i+" must be "+l,ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ue("Unknown option "+i,ue.ERR_BAD_OPTION)}}const Xi={assertOptions:o2,validators:La},Wt=Xi.validators;let hr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Tu,response:new Tu}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
17
+ `+i):r.stack=i}catch(a){}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=vr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&Xi.assertOptions(r,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1),s!=null&&(B.isFunction(s)?n.paramsSerializer={serialize:s}:Xi.assertOptions(s,{encode:Wt.function,serialize:Wt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Xi.assertOptions(n,{baseUrl:Wt.spelling("baseURL"),withXsrfToken:Wt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&B.merge(i.common,i[n.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=ct.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,f=0,y;if(!l){const p=[Du.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,u),y=p.length,d=Promise.resolve(n);f<y;)d=d.then(p[f++],p[f++]);return d}y=o.length;let h=n;for(f=0;f<y;){const p=o[f++],m=o[f++];try{h=p(h)}catch(g){m.call(this,g);break}}try{d=Du.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,y=u.length;f<y;)d=d.then(u[f++],u[f++]);return d}getUri(e){e=vr(this.defaults,e);const n=Wh(e.baseURL,e.url,e.allowAbsoluteUrls);return Dh(n,e.params,e.paramsSerializer)}};B.forEach(["delete","get","head","options"],function(e){hr.prototype[e]=function(n,r){return this.request(vr(r||{},{method:e,url:n,data:(r||{}).data}))}});B.forEach(["post","put","patch"],function(e){function n(r){return function(i,a,o){return this.request(vr(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}hr.prototype[e]=n(),hr.prototype[e+"Form"]=n(!0)});let l2=class Vh{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(o=>{r.subscribe(o),i=o}).then(s);return a.cancel=function(){r.unsubscribe(i)},a},e(function(i,a,o){r.reason||(r.reason=new ns(i,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Vh(function(s){e=s}),cancel:e}}};function u2(t){return function(n){return t.apply(null,n)}}function c2(t){return B.isObject(t)&&t.isAxiosError===!0}const $o={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($o).forEach(([t,e])=>{$o[e]=t});function Kh(t){const e=new hr(t),n=jh(hr.prototype.request,e);return B.extend(n,hr.prototype,e,{allOwnKeys:!0}),B.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return Kh(vr(t,s))},n}const Ie=Kh(yi);Ie.Axios=hr;Ie.CanceledError=ns;Ie.CancelToken=l2;Ie.isCancel=Uh;Ie.VERSION=Yh;Ie.toFormData=Pa;Ie.AxiosError=ue;Ie.Cancel=Ie.CanceledError;Ie.all=function(e){return Promise.all(e)};Ie.spread=u2;Ie.isAxiosError=c2;Ie.mergeConfig=vr;Ie.AxiosHeaders=ct;Ie.formToJSON=t=>Fh(B.isHTMLForm(t)?new FormData(t):t);Ie.getAdapter=Gh.getAdapter;Ie.HttpStatusCode=$o;Ie.default=Ie;const{Axios:c8,AxiosError:d8,CanceledError:f8,isCancel:h8,CancelToken:y8,VERSION:p8,all:m8,Cancel:g8,isAxiosError:d2,spread:v8,toFormData:b8,AxiosHeaders:x8,HttpStatusCode:A8,formToJSON:w8,getAdapter:S8,mergeConfig:C8}=Ie,f2={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function Hs(t){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hs(t)}function $e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return ht(S,"_invoke",function(k,j,A){var C,b,x,M=0,_=A||[],L=!1,T={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,I){return C=O,b=0,x=t,T.n=I,a}};function H(R,O){for(b=R,x=O,e=0;!L&&M&&!I&&e<_.length;e++){var I,N=_[e],G=T.p,z=N[2];R>3?(I=z===O)&&(x=N[(b=N[4])?5:(b=3,3)],N[4]=N[5]=t):N[0]<=G&&((I=R<2&&G<N[1])?(b=0,T.v=O,T.n=N[1]):G<z&&(I=R<3||N[0]>O||O>z)&&(N[4]=R,N[5]=O,T.n=z,b=0))}if(I||R>1)return a;throw L=!0,O}return function(R,O,I){if(M>1)throw TypeError("Generator is already running");for(L&&O===1&&H(O,I),b=O,x=I;(e=b<2?t:x)||!L;){C||(b?b<3?(b>1&&(T.n=-1),H(b,x)):T.n=x:T.v=x);try{if(M=2,C){if(b||(R="next"),e=C[R]){if(!(e=e.call(C,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=C.return)&&e.call(C),b<2&&(x=TypeError("The iterator does not provide a '"+R+"' method"),b=1);C=t}else if((e=(L=T.n<0)?x:k.call(j,T))!==a)break}catch(N){C=t,b=1,x=N}finally{M=1}}return{value:e,done:L}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(ht(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(d);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,ht(h,s,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,ht(f,"constructor",u),ht(u,"constructor",l),l.displayName="GeneratorFunction",ht(u,s,"GeneratorFunction"),ht(f),ht(f,s,"Generator"),ht(f,r,function(){return this}),ht(f,"toString",function(){return"[object Generator]"}),($e=function(){return{w:i,m:y}})()}function ht(t,e,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(i){s=0}ht=function(a,o,l,u){if(o)s?s(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var d=function(y,h){ht(a,y,function(p){return this._invoke(y,h,p)})};d("next",0),d("throw",1),d("return",2)}},ht(t,e,n,r)}function Fu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function yr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fu(Object(n),!0).forEach(function(r){h2(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function h2(t,e,n){return(e=y2(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y2(t){var e=p2(t,"string");return Hs(e)=="symbol"?e:e+""}function p2(t,e){if(Hs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Uu(t,e,n,r,s,i,a){try{var o=t[i](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,s)}function br(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function a(l){Uu(i,r,s,a,o,"next",l)}function o(l){Uu(i,r,s,a,o,"throw",l)}a(void 0)})}}var Xh=function(){var e,n;if((e=document)!==null&&e!==void 0&&e.cookie){var r=document.cookie.match(new RegExp("(^| )access_token=([^;]+)"));if(r)return decodeURIComponent(r[2])}return((n=f2)===null||n===void 0?void 0:n.VITE_MYYOAST_ACCESS_TOKEN)||""};function Hu(t){var e;if(typeof document!="undefined"){var n="; ".concat(document.cookie),r=n.split("; ".concat(t,"="));if(r.length===2)return(e=r.pop())===null||e===void 0?void 0:e.split(";").shift()}}var m2="yst-insights-token",rs=Ie.create({withCredentials:!0});rs.interceptors.request.use(function(){var t=br($e().m(function e(n){var r,s;return $e().w(function(i){for(;;)switch(i.n){case 0:return i.n=1,v2();case 1:return r=i.v,i.n=2,Zh();case 2:return s=i.v,n.headers=yr(yr(yr({},n.headers||{}),s?{"X-XSRF-TOKEN":s}:{}),r?{Authorization:"Bearer ".concat(r)}:{}),i.a(2,n)}},e)}));return function(e){return t.apply(this,arguments)}}(),function(t){return Promise.reject(t)},{synchronous:!1});rs.interceptors.response.use(function(t){return t},function(){var t=br($e().m(function e(n){var r;return $e().w(function(s){for(;;)switch(s.n){case 0:return n==null||(r=n.response)===null||r===void 0||r.status,s.a(2,Promise.reject(n))}},e)}));return function(e){return t.apply(this,arguments)}}());function ze(t){return el.apply(this,arguments)}function el(){return el=br($e().m(function t(e){var n;return $e().w(function(r){for(;;)switch(r.n){case 0:return n=yr({},e),delete n.baseURL,r.a(2,rs.request(yr(yr({},n),{},{withCredentials:!0})))}},t)})),el.apply(this,arguments)}function Jh(t){rs.defaults.baseURL=t}function Wu(){return rs.defaults.baseURL}function g2(t){Xh=t}var ys=null;function v2(){return tl.apply(this,arguments)}function tl(){return tl=br($e().m(function t(){var e,n,r,s,i;return $e().w(function(a){for(;;)switch(a.p=a.n){case 0:if(e=Xh(),n=rs.defaults.baseURL,r=b2(e,n),s=sessionStorage.getItem(r),!s){a.n=4;break}if(a.p=1,i=JSON.parse(s),!((i==null?void 0:i.validUntil)>Date.now()&&i.value)){a.n=2;break}return a.a(2,String(i.value));case 2:a.n=4;break;case 3:a.p=3,a.v;case 4:if(!ys){a.n=5;break}return a.a(2,ys);case 5:return ys=br($e().m(function o(){var l,u,d,f,y;return $e().w(function(h){for(;;)switch(h.p=h.n){case 0:return h.p=0,h.n=1,Zh();case 1:return l=h.v,h.n=2,Ie.post(n+"/users/getToken",{},{headers:yr({Authorization:"Bearer "+e},l?{"X-XSRF-TOKEN":l}:{}),withCredentials:!0});case 2:if(u=h.v,d=u.data,!(d!=null&&d.plainTextToken)){h.n=3;break}return sessionStorage.setItem(r,JSON.stringify({value:d.plainTextToken,validUntil:Date.parse(((f=d.accessToken)===null||f===void 0?void 0:f.expires_at)||"")||Date.now()+15*60*1e3})),h.a(2,d.plainTextToken);case 3:h.n=5;break;case 4:h.p=4,y=h.v,Ie.isAxiosError(y)?y.response?console.error("Login failed with status",y.response.status,y.response.data):y.request?console.error("Login request made but no response received",y.request):console.error("Error setting up login request",y.message):console.error("Non-Axios error during login",y);case 5:return h.p=5,ys=null,h.f(5);case 6:return h.a(2,"")}},o,null,[[0,4,5,6]])}))(),a.a(2,ys)}},t,null,[[1,3]])})),tl.apply(this,arguments)}function b2(t,e){var n=Array.from(t+e).reduce(function(r,s){return(r<<5)-r+s.charCodeAt(0)},0);return m2+":"+n}var ps=null;function Zh(){return nl.apply(this,arguments)}function nl(){return nl=br($e().m(function t(){var e;return $e().w(function(n){for(;;)switch(n.n){case 0:if(window.location.hostname===new URL(Wu()||window.location.href).hostname){n.n=1;break}return n.a(2,"");case 1:if(e=Hu("XSRF-TOKEN"),!e){n.n=2;break}return n.a(2,decodeURIComponent(e));case 2:if(!ps){n.n=3;break}return n.a(2,ps);case 3:return ps=br($e().m(function r(){var s;return $e().w(function(i){for(;;)switch(i.p=i.n){case 0:return i.p=0,i.n=1,Ie.get(((s=Wu())===null||s===void 0?void 0:s.replace("/api/v1",""))+"/sanctum/csrf-cookie",{withCredentials:!0});case 1:return i.a(2,decodeURIComponent(Hu("XSRF-TOKEN")||""));case 2:return i.p=2,ps=null,i.f(2);case 3:return i.a(2)}},r,null,[[0,,2,3]])}))(),n.a(2,ps)}},t)})),nl.apply(this,arguments)}function Ws(t){"@babel/helpers - typeof";return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ws(t)}function Qu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function ee(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qu(Object(n),!0).forEach(function(r){x2(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function x2(t,e,n){return(e=A2(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A2(t){var e=w2(t,"string");return Ws(e)=="symbol"?e:e+""}function w2(t,e){if(Ws(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var S2=function(e,n){return ze({url:"/brands/".concat(e,"/analysis"),method:"GET",signal:n})},Wl=function(e){return["/brands/".concat(e,"/analysis")]},C2=function(e,n){var r,s=n!=null?n:{},i=s.query,a=(r=i==null?void 0:i.queryKey)!==null&&r!==void 0?r:Wl(e),o=function(u){var d=u.signal;return S2(e,d)};return ee({queryKey:a,queryFn:o,enabled:!!e},i)};function $h(t,e,n){var r=C2(t,e),s=Qn(r);return s.queryKey=r.queryKey,s}var j2=function(e,n,r){return ze({url:"/brands/".concat(e,"/analysis/").concat(n),method:"GET",signal:r})},$t=function(e,n){return["/brands/".concat(e,"/analysis/").concat(n)]},O2=function(e,n,r){var s,i=r!=null?r:{},a=i.query,o=(s=a==null?void 0:a.queryKey)!==null&&s!==void 0?s:$t(e,n),l=function(d){var f=d.signal;return j2(e,n,f)};return ee({queryKey:o,queryFn:l,enabled:!!(e&&n)},a)};function Ia(t,e,n,r){var s=O2(t,e,n),i=Qn(s);return i.queryKey=s.queryKey,i}var E2=function(e,n){return ze({url:"/brands/".concat(e,"/analysis/").concat(n),method:"DELETE"})},k2=function(e){var n=["deleteSingleAnalysis"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},s=r.mutation,i=function(o){var l=o!=null?o:{},u=l.brandId,d=l.analysisId;return E2(u,d)};return ee({mutationFn:i},s)},T2=function(e,n){var r=k2(e);return xn(r)},P2=function(e,n,r){return ze({url:"/brands/".concat(e,"/analysis/").concat(n,"/status"),method:"GET",signal:r})},yn=function(e,n){return["/brands/".concat(e,"/analysis/").concat(n,"/status")]},M2=function(e,n,r){var s,i=r!=null?r:{},a=i.query,o=(s=a==null?void 0:a.queryKey)!==null&&s!==void 0?s:yn(e,n),l=function(d){var f=d.signal;return P2(e,n,f)};return ee({queryKey:o,queryFn:l,enabled:!!(e&&n)},a)};function L2(t,e,n,r){var s=M2(t,e,n),i=Qn(s);return i.queryKey=s.queryKey,i}var I2=function(e){return ze({url:"/users/logout",method:"POST",signal:e})},R2=function(e){var n=["logout"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},s=r.mutation,i=function(){return I2()};return ee({mutationFn:i},s)},N2=function(e,n){var r=R2(e);return xn(r)},_2=function(e,n){return ze({url:"/brands/".concat(e,"/associated-brands"),method:"GET",signal:n})},ua=function(e){return["/brands/".concat(e,"/associated-brands")]},D2=function(e,n){var r,s=n!=null?n:{},i=s.query,a=(r=i==null?void 0:i.queryKey)!==null&&r!==void 0?r:ua(e),o=function(u){var d=u.signal;return _2(e,d)};return ee({queryKey:a,queryFn:o,enabled:!!e},i)};function B2(t,e,n){var r=D2(t,e),s=Qn(r);return s.queryKey=r.queryKey,s}var F2=function(e,n,r){return ze({url:"/brands/".concat(e,"/associated-brand-groups"),method:"POST",headers:{"Content-Type":"application/json"},data:n,signal:r})},U2=function(e){var n=["createBrandAssociationGroup"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},s=r.mutation,i=function(o){var l=o!=null?o:{},u=l.brandId,d=l.data;return F2(u,d)};return ee({mutationFn:i},s)},ey=function(e,n){var r=U2(e);return xn(r)},H2=function(e,n){return ze({url:"/brands/".concat(e,"/associated-brand-groups/").concat(n),method:"DELETE"})},W2=function(e){var n=["deleteBrandAssociationGroup"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},s=r.mutation,i=function(o){var l=o!=null?o:{},u=l.brandId,d=l.brandGroupId;return H2(u,d)};return ee({mutationFn:i},s)},Q2=function(e,n){var r=W2(e);return xn(r)},q2=function(e){return ze({url:"/brands",method:"GET",signal:e})},Zt=function(){return["/brands"]},z2=function(e){var n,r=e!=null?e:{},s=r.query,i=(n=s==null?void 0:s.queryKey)!==null&&n!==void 0?n:Zt(),a=function(l){var u=l.signal;return q2(u)};return ee({queryKey:i,queryFn:a},s)};function Cr(t,e){var n=z2(t),r=Qn(n);return r.queryKey=n.queryKey,r}var G2=function(e,n){return ze({url:"/brands",method:"POST",headers:{"Content-Type":"application/json"},data:e,signal:n})},Y2=function(e){var n=["createBrand"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},s=r.mutation,i=function(o){var l=o!=null?o:{},u=l.data;return G2(u)};return ee({mutationFn:i},s)},V2=function(e,n){var r=Y2(e);return xn(r)},K2=function(e,n){return ze({url:"/brands/".concat(e),method:"GET",signal:n})},Ra=function(e){return["/brands/".concat(e)]},X2=function(e,n){var r,s=n!=null?n:{},i=s.query,a=(r=i==null?void 0:i.queryKey)!==null&&r!==void 0?r:Ra(e),o=function(u){var d=u.signal;return K2(e,d)};return ee({queryKey:a,queryFn:o,enabled:!!e},i)};function ca(t,e,n){var r=X2(t,e),s=Qn(r);return s.queryKey=r.queryKey,s}var J2=function(e){return ze({url:"/brands/".concat(e),method:"DELETE"})},Z2=function(e){var n=["deleteBrand"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},s=r.mutation,i=function(o){var l=o!=null?o:{},u=l.brandId;return J2(u)};return ee({mutationFn:i},s)},$2=function(e,n){var r=Z2(e);return xn(r)},ev=function(e,n){return ze({url:"/brands/".concat(e,"/settings"),method:"PATCH",headers:{"Content-Type":"application/json"},data:n})},tv=function(e){var n=["updateBrandSettings"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},s=r.mutation,i=function(o){var l=o!=null?o:{},u=l.brandId,d=l.data;return ev(u,d)};return ee({mutationFn:i},s)},ty=function(e,n){var r=tv(e);return xn(r)},nv=function(e,n){return ze({url:"/brands/".concat(e,"/queries"),method:"PUT",headers:{"Content-Type":"application/json"},data:n})},rv=function(e){var n=["updateBrandQueries"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},s=r.mutation,i=function(o){var l=o!=null?o:{},u=l.brandId,d=l.data;return nv(u,d)};return ee({mutationFn:i},s)},sv=function(e,n){var r=rv(e);return xn(r)},iv=function(e,n){return ze({url:"/brands/".concat(e,"/query-suggestions"),method:"GET",signal:n})},av=function(e){return["/brands/".concat(e,"/query-suggestions")]},ov=function(e,n){var r,s=n!=null?n:{},i=s.query,a=(r=i==null?void 0:i.queryKey)!==null&&r!==void 0?r:av(e),o=function(u){var d=u.signal;return iv(e,d)};return ee({queryKey:a,queryFn:o,enabled:!!e},i)};function lv(t,e,n){var r=ov(t,e),s=Qn(r);return s.queryKey=r.queryKey,s}var uv=function(e){return ze({url:"/users/current",method:"GET",signal:e})},Na=function(){return["/users/current"]},cv=function(e){var n,r=e!=null?e:{},s=r.query,i=(n=s==null?void 0:s.queryKey)!==null&&n!==void 0?n:Na(),a=function(l){var u=l.signal;return uv(u)};return ee({queryKey:i,queryFn:a},s)};function pi(t,e){var n=cv(t),r=Qn(n);return r.queryKey=n.queryKey,r}var dv=function(){return ze({url:"/users/data",method:"DELETE"})},fv=function(e){var n=["deleteUserData"],r=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:ee(ee({},e),{},{mutation:ee(ee({},e.mutation),{},{mutationKey:n})}):{mutation:{mutationKey:n}},s=r.mutation,i=function(){return dv()};return ee({mutationFn:i},s)},hv=function(e,n){var r=fv(e);return xn(r)},ny=D.createContext(void 0),yv=function(e){var n,r,s,i,a,o,l=e.children,u=e.brandId,d=e.analysisId,f=e.model,y=e.hostAppProps,h=y===void 0?{}:y,p=Ci("/brands/:brandId"),m=Ci("/brands/:brandId/*"),g=Ci("/brands/:brandId/analysis/:analysisId"),v=Ci("/brands/:brandId/analysis/:analysisId/*"),S=(g==null||(n=g.params)===null||n===void 0?void 0:n.brandId)||(v==null||(r=v.params)===null||r===void 0?void 0:r.brandId)||(m==null||(s=m.params)===null||s===void 0?void 0:s.brandId)||(p==null||(i=p.params)===null||i===void 0?void 0:i.brandId),k=(g==null||(a=g.params)===null||a===void 0?void 0:a.analysisId)||(v==null||(o=v.params)===null||o===void 0?void 0:o.analysisId),j=D.useMemo(function(){return{brandId:S||u||"",analysisId:k||d||"latest",model:f||"openai",hostAppProps:h}},[S,u,k,d,f,h]),A=D.useMemo(function(){return{data:j}},[j]);return c.jsx(ny.Provider,{value:A,children:l})},ry=D.createContext(void 0),pv=function(e){var n=e.children,r=e.setBrandId,s=e.setAnalysisId,i=e.setModel,a=D.useCallback(function(f){r(f),s("latest")},[r,s]),o=D.useCallback(function(f){s(f)},[s]),l=D.useCallback(function(f){i(f)},[i]),u=D.useMemo(function(){return{setBrandId:a,setAnalysisId:o,setModel:l}},[a,o,l]),d=D.useMemo(function(){return{mutations:u}},[u]);return c.jsx(ry.Provider,{value:d,children:n})};function to(t,e){return bv(t)||vv(t,e)||gv(t,e)||mv()}function mv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gv(t,e){if(t){if(typeof t=="string")return qu(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qu(t,e):void 0}}function qu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function vv(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function bv(t){if(Array.isArray(t))return t}var xv=function(e){var n=e.children,r=e.hostAppProps,s=r===void 0?{}:r,i=D.useState(void 0),a=to(i,2),o=a[0],l=a[1],u=D.useState("latest"),d=to(u,2),f=d[0],y=d[1],h=D.useState(void 0),p=to(h,2),m=p[0],g=p[1];return c.jsx(pv,{brandId:o,setBrandId:l,analysisId:f,setAnalysisId:y,model:m,setModel:g,children:c.jsx(yv,{brandId:o,analysisId:f,model:m,hostAppProps:s,children:n})})},Ot=function(){var e=D.useContext(ny);if(e===void 0)throw new Error("useBrandAnalysisData must be used within a BrandAnalysisDataProvider");return e.data},mi=function(){var e=D.useContext(ry);if(e===void 0)throw new Error("useBrandAnalysisMutations must be used within a BrandAnalysisMutationsProvider");return e.mutations},no={exports:{}};/*!
19
19
  Copyright (c) 2018 Jed Watson.
20
20
  Licensed under the MIT License (MIT), see
21
21
  http://jedwatson.github.io/classnames
22
- */var Hu;function pv(){return Hu||(Hu=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var o in s)e.call(s,o)&&s[o]&&(a=i(a,o));return a}function i(s,a){return a?s?s+" "+a:s+a:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(Ja)),Ja.exports}var mv=pv();const te=Gf(mv);var gv=function(e){return T2({mutation:{onSettled:function(){e&&e()}}})};function vv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))}const bv=E.forwardRef(vv);function xv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))}const Av=E.forwardRef(xv);function wv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"}))}const Sv=E.forwardRef(wv);function Cv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"}))}const jv=E.forwardRef(Cv);function Ov(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const Ev=E.forwardRef(Ov);function kv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"}))}const Tv=E.forwardRef(kv);function Pv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"}))}const Mv=E.forwardRef(Pv);function Iv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))}const Zo=E.forwardRef(Iv);function Lv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}const Wu=E.forwardRef(Lv);function Rv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}const Nv=E.forwardRef(Rv);function _v(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}const Dv=E.forwardRef(_v);function Bv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))}const Zh=E.forwardRef(Bv);function Fv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))}const $h=E.forwardRef(Fv);function Uv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 12l3-3 3 3 4-4M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z"}))}const Hv=E.forwardRef(Uv);function Wv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"}))}const Qv=E.forwardRef(Wv);function qv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"}))}const ey=E.forwardRef(qv);function zv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))}const Fl=E.forwardRef(zv);function Gv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}))}const Yv=E.forwardRef(Gv);var Vv=function(){return[{label:"Brand analysis",href:"/",Icon:Hv,isActive:function(n){return n.startsWith("/setup")||n==="/"},showInMenu:!0},{label:"Settings",href:"/settings",Icon:Ev,isActive:function(n){return n.startsWith("/settings")},showInMenu:!0}]},Qu;function Kv(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var qu=function(e){var n=e.className,r=nt(),i=r.pathname,s=Vv();return d.jsx("div",{className:te("yst-flex yst-flex-col yst-gap-10",n),children:d.jsx(w.SidebarNavigation.Sidebar,{children:d.jsx(w.SidebarNavigation.List,{className:"yst-space-y-2",children:s.filter(function(a){return a.showInMenu!==!1}).map(function(a){var o=a.isActive?a.isActive(i):!1;return d.jsx(w.SidebarNavigation.SubmenuItem,{className:te("yst-flex yst-gap-x-3",{"yst-sidebar-navigation__item--active":o}),href:a.href,to:a.href,as:Fn,label:d.jsxs(d.Fragment,{children:[d.jsx(a.Icon,{className:te(Qu||(Qu=Kv(["yst-sidebar-navigation__icon yst-h-6 yst-w-6"])))}),a.label]})},a.label)})})})})};const Xv="data:image/svg+xml,%3csvg%20width='208'%20height='42'%20viewBox='0%200%20208%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='169'%20width='39'%20height='16'%20rx='8'%20fill='%23BFDBFE'/%3e%3cpath%20d='M177.869%2012V4.9541H180.813C182.151%204.9541%20182.957%205.62793%20182.957%206.70703V6.7168C182.957%207.4541%20182.41%208.1084%20181.702%208.2207V8.30859C182.649%208.39648%20183.304%209.08008%20183.304%209.99316V10.0029C183.304%2011.2383%20182.386%2012%20180.882%2012H177.869ZM180.506%205.93555H179.129V7.92285H180.345C181.238%207.92285%20181.712%207.57617%20181.712%206.93652V6.92676C181.712%206.30176%20181.268%205.93555%20180.506%205.93555ZM180.545%208.81641H179.129V11.0186H180.594C181.521%2011.0186%20182.015%2010.6328%20182.015%209.91504V9.90527C182.015%209.19238%20181.507%208.81641%20180.545%208.81641ZM186.834%2012.1074C185.247%2012.1074%20184.285%2011.043%20184.285%209.34375V9.33887C184.285%207.65918%20185.257%206.56055%20186.775%206.56055C188.294%206.56055%20189.231%207.625%20189.231%209.23633V9.63672H185.501C185.516%2010.5938%20186.033%2011.1504%20186.858%2011.1504C187.518%2011.1504%20187.894%2010.8184%20188.011%2010.5742L188.025%2010.54H189.183L189.168%2010.584C188.997%2011.2725%20188.284%2012.1074%20186.834%2012.1074ZM186.79%207.5127C186.111%207.5127%20185.604%207.97168%20185.511%208.82129H188.045C187.962%207.94727%20187.469%207.5127%20186.79%207.5127ZM192.547%2012.0244C191.321%2012.0244%20190.818%2011.6143%20190.818%2010.584V7.60547H189.988V6.66309H190.818V5.35449H192.054V6.66309H193.182V7.60547H192.054V10.2959C192.054%2010.8281%20192.264%2011.0527%20192.771%2011.0527C192.942%2011.0527%20193.035%2011.0479%20193.182%2011.0332V11.9707C193.006%2012.0049%20192.781%2012.0244%20192.547%2012.0244ZM195.848%2012.0879C194.832%2012.0879%20194.095%2011.4629%20194.095%2010.4912V10.4814C194.095%209.5293%20194.822%208.97266%20196.121%208.89453L197.493%208.81152V8.35254C197.493%207.82031%20197.146%207.52734%20196.492%207.52734C195.936%207.52734%20195.574%207.72754%20195.452%208.0791L195.447%208.09863H194.3L194.305%208.05469C194.422%207.15625%20195.281%206.56055%20196.551%206.56055C197.923%206.56055%20198.694%207.22461%20198.694%208.35254V12H197.493V11.2676H197.41C197.117%2011.7852%20196.551%2012.0879%20195.848%2012.0879ZM195.296%2010.4326C195.296%2010.8867%20195.682%2011.1553%20196.219%2011.1553C196.951%2011.1553%20197.493%2010.6768%20197.493%2010.042V9.6123L196.292%209.69043C195.613%209.73438%20195.296%209.9834%20195.296%2010.4229V10.4326Z'%20fill='%231E3A8A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.5037%2019.2842C22.9203%2019.2842%2023.2881%2019.5608%2023.402%2019.9612L24.4143%2023.5057C24.857%2025.0583%2026.071%2026.2724%2027.6236%2026.715L31.1682%2027.7273C31.6629%2027.8705%2031.9526%2028.3881%2031.8094%2028.8828C31.7215%2029.192%2031.4774%2029.4361%2031.1682%2029.524L27.6236%2030.5363C26.071%2030.9789%2024.857%2032.193%2024.4143%2033.7456L23.402%2037.2901C23.2588%2037.7849%2022.7413%2038.0745%2022.2466%2037.9313C21.9373%2037.8434%2021.6932%2037.5993%2021.6053%2037.2901L20.5931%2033.7456C20.1504%2032.193%2018.9364%2030.9789%2017.3838%2030.5363L13.8392%2029.524C13.3445%2029.3808%2013.0548%2028.8633%2013.198%2028.3685C13.2859%2028.0593%2013.53%2027.8152%2013.8392%2027.7273L17.3838%2026.715C18.9364%2026.2724%2020.1504%2025.0583%2020.5931%2023.5057L21.6053%2019.9612C21.7193%2019.5608%2022.0871%2019.2842%2022.5037%2019.2842Z'%20fill='url(%23paint0_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.3742%2012C13.6573%2012%2013.9047%2012.192%2013.9731%2012.4654L14.1846%2013.315C14.3799%2014.0864%2014.9821%2014.6918%2015.7535%2014.8838L16.603%2015.0954C16.9318%2015.1768%2017.1335%2015.512%2017.0522%2015.8407C16.9968%2016.0621%2016.8243%2016.2346%2016.603%2016.2899L15.7535%2016.5015C14.9821%2016.6968%2014.3767%2017.2989%2014.1846%2018.0703L13.9731%2018.9199C13.8917%2019.2486%2013.5564%2019.4504%2013.2277%2019.369C13.0064%2019.3137%2012.8339%2019.1412%2012.7785%2018.9199L12.567%2018.0703C12.3749%2017.2989%2011.7695%2016.6935%2010.9981%2016.5015L10.1486%2016.2899C9.81986%2016.2085%209.61805%2015.8733%209.69943%2015.5446C9.75476%2015.3232%209.92727%2015.1507%2010.1486%2015.0954L10.9981%2014.8838C11.7695%2014.6918%2012.3749%2014.0864%2012.567%2013.315L12.7785%2012.4654C12.8469%2012.192%2013.0943%2012%2013.3774%2012H13.3742Z'%20fill='url(%23paint1_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.39254%2026.8813C6.54226%2026.8813%206.67571%2026.979%206.72453%2027.1189L6.90681%2027.669C6.97516%2027.8773%207.1379%2028.0401%207.34947%2028.1117L7.89954%2028.294C8.08181%2028.3558%208.17946%2028.5543%208.12087%2028.7366C8.08507%2028.8408%208.0037%2028.9222%207.89954%2028.958L7.34947%2029.1402C7.14116%2029.2086%206.97841%2029.3713%206.90681%2029.5829L6.72453%2030.133C6.66269%2030.3152%206.46414%2030.4129%206.28187%2030.3543C6.17771%2030.3185%206.09634%2030.2371%206.06054%2030.133L5.87827%2029.5829C5.80992%2029.3746%205.64392%2029.2118%205.4356%2029.1402L4.88553%2028.958C4.70326%2028.8961%204.60561%2028.6976%204.6642%2028.5153C4.7%2028.4111%204.78138%2028.3298%204.88553%2028.294L5.4356%2028.1117C5.64392%2028.0433%205.80666%2027.8806%205.87827%2027.669L6.06054%2027.1189C6.10936%2026.9757%206.24281%2026.8813%206.39254%2026.8813Z'%20fill='url(%23paint2_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.80904%2033.5596C2.95876%2033.5596%203.09221%2033.6572%203.14104%2033.7972L3.32331%2034.3473C3.39166%2034.5556%203.5544%2034.7183%203.76597%2034.7899L4.31604%2034.9722C4.49832%2035.034%204.59596%2035.2326%204.53737%2035.4148C4.50157%2035.519%204.4202%2035.6004%204.31604%2035.6362L3.76597%2035.8185C3.55766%2035.8868%203.39492%2036.0495%203.32331%2036.2611L3.14104%2036.8112C3.07919%2036.9935%202.88065%2037.0911%202.69837%2037.0325C2.59422%2036.9967%202.51285%2036.9153%202.47704%2036.8112L2.29477%2036.2611C2.22642%2036.0528%202.06042%2035.8901%201.85211%2035.8185L1.30204%2035.6362C1.11976%2035.5743%201.02212%2035.3758%201.0807%2035.1935C1.11651%2035.0894%201.19788%2035.008%201.30204%2034.9722L1.85211%2034.7899C2.06042%2034.7216%202.22316%2034.5588%202.29477%2034.3473L2.47704%2033.7972C2.52587%2033.654%202.65931%2033.5596%202.80904%2033.5596Z'%20fill='url(%23paint3_radial_4548_14216)'/%3e%3cpath%20d='M2.42488%2032.7235C1.94641%2031.4476%201.68277%2030.0676%201.68277%2028.6256C1.68277%2023.5806%204.89532%2019.2712%209.38379%2017.634L8.79466%2016.0586C3.66498%2017.9269%200%2022.8483%200%2028.6256C0%2030.2661%200.296193%2031.835%200.836502%2033.2866L2.42488%2032.7268V32.7235Z'%20fill='url(%23paint4_radial_4548_14216)'/%3e%3cpath%20d='M20.6587%2037.7652C18.6602%2039.3633%2016.1279%2040.3202%2013.3743%2040.3202C10.0023%2040.3202%206.96221%2038.8849%204.82702%2036.5967L3.58691%2037.7359C6.02807%2040.3593%209.51078%2041.9998%2013.3776%2041.9998C16.5218%2041.9998%2019.4121%2040.9159%2021.6938%2039.0997L20.662%2037.7684L20.6587%2037.7652Z'%20fill='url(%23paint5_radial_4548_14216)'/%3e%3cpath%20d='M13.3739%2022.3664C15.0436%2022.3664%2016.5604%2023.0238%2017.6833%2024.0914L18.8095%2022.8383C17.3904%2021.5038%2015.4798%2020.6836%2013.3771%2020.6836C9.89444%2020.6836%206.93902%2022.9262%205.86816%2026.0476L7.44678%2026.627C8.28328%2024.1533%2010.6235%2022.3631%2013.3771%2022.3631L13.3739%2022.3664Z'%20fill='url(%23paint6_radial_4548_14216)'/%3e%3cpath%20d='M17.6737%2033.1658C16.5508%2034.2301%2015.0373%2034.8843%2013.3741%2034.8843C10.6074%2034.8843%208.2574%2033.0811%207.43392%2030.5879L5.84229%2031.1249C6.89035%2034.2822%209.8653%2036.5638%2013.3773%2036.5638C15.4832%2036.5638%2017.3971%2035.7436%2018.8162%2034.4059L17.677%2033.169L17.6737%2033.1658Z'%20fill='url(%23paint7_radial_4548_14216)'/%3e%3cpath%20d='M39.169%2021.2891H43.677C45.7666%2021.2891%2047.2802%2021.595%2048.2111%2022.2037C49.142%2022.8123%2049.6074%2023.7758%2049.6074%2025.0908C49.6074%2025.9761%2049.3796%2026.7149%2048.9206%2027.3041C48.4617%2027.8932%2047.8075%2028.2642%2046.9482%2028.414V28.5181C48.0158%2028.7199%2048.8002%2029.1138%2049.3014%2029.7062C49.8027%2030.2985%2050.0533%2031.0992%2050.0533%2032.1115C50.0533%2033.4753%2049.5781%2034.5429%2048.6244%2035.3143C47.6707%2036.0857%2046.3493%2036.473%2044.6502%2036.473H39.1658V21.2891H39.169ZM41.6525%2027.5645H44.0416C45.0799%2027.5645%2045.8383%2027.3985%2046.3167%2027.0697C46.7952%2026.741%2047.0328%2026.1811%2047.0328%2025.3935C47.0328%2024.6806%2046.7757%2024.1631%2046.2581%2023.8474C45.7406%2023.5284%2044.9236%2023.3689%2043.8007%2023.3689H41.6492V27.5645H41.6525ZM41.6525%2029.5792V34.3867H44.2889C45.3272%2034.3867%2046.1117%2034.1881%2046.6422%2033.791C47.1728%2033.3939%2047.4364%2032.7657%2047.4364%2031.9065C47.4364%2031.1188%2047.1662%2030.5329%2046.6259%2030.1521C46.0856%2029.7713%2045.2654%2029.5792%2044.1653%2029.5792H41.6525Z'%20fill='url(%23paint8_linear_4548_14216)'/%3e%3cpath%20d='M58.7762%2024.7817C59.2677%2024.7817%2059.6713%2024.8175%2059.9902%2024.8859L59.7526%2027.161C59.4076%2027.0764%2059.0463%2027.0374%2058.672%2027.0374C57.6955%2027.0374%2056.9046%2027.3563%2056.2992%2027.9943C55.6938%2028.6322%2055.3911%2029.459%2055.3911%2030.4778V36.4797H52.95V24.9933H54.8606L55.1828%2027.0178H55.3065C55.6873%2026.3311%2056.1853%2025.7908%2056.7972%2025.3871C57.4091%2024.9868%2058.0699%2024.785%2058.7762%2024.785V24.7817Z'%20fill='url(%23paint9_linear_4548_14216)'/%3e%3cpath%20d='M69.309%2036.4734L68.8208%2034.8753H68.7394C68.1861%2035.575%2067.6295%2036.0503%2067.0664%2036.3041C66.5065%2036.558%2065.784%2036.685%2064.9051%2036.685C63.7757%2036.685%2062.8969%2036.379%2062.2622%2035.7703C61.6275%2035.1617%2061.3118%2034.2991%2061.3118%2033.186C61.3118%2032.0012%2061.7512%2031.1094%2062.63%2030.5072C63.5088%2029.9051%2064.8498%2029.5763%2066.6498%2029.521L68.632%2029.4591V28.8472C68.632%2028.1116%2068.4595%2027.5648%2068.1177%2027.2003C67.7759%2026.8357%2067.2421%2026.6534%2066.5228%2026.6534C65.9337%2026.6534%2065.3706%2026.7413%2064.8303%2026.9138C64.29%2027.0864%2063.7692%2027.2914%2063.2712%2027.5258L62.4803%2025.7811C63.1019%2025.4557%2063.7855%2025.2083%2064.5276%2025.039C65.2697%2024.8698%2065.9662%2024.7852%2066.627%2024.7852C68.0884%2024.7852%2069.1918%2025.1041%2069.9339%2025.7421C70.6793%2026.38%2071.0503%2027.3793%2071.0503%2028.7431V36.4799H69.3057L69.309%2036.4734ZM65.6733%2034.8134C66.5586%2034.8134%2067.2714%2034.566%2067.8085%2034.0713C68.3455%2033.5766%2068.6124%2032.8833%2068.6124%2031.9882V30.9922L67.138%2031.054C65.989%2031.0963%2065.1525%2031.2884%2064.6285%2031.6301C64.1044%2031.9719%2063.8441%2032.4992%2063.8441%2033.2055C63.8441%2033.7165%2063.997%2034.1136%2064.2997%2034.3935C64.6057%2034.6734%2065.0614%2034.8134%2065.67%2034.8134H65.6733Z'%20fill='url(%23paint10_linear_4548_14216)'/%3e%3cpath%20d='M84.5646%2036.4732H82.1137V29.4102C82.1137%2028.5248%2081.9347%2027.8641%2081.5799%2027.4279C81.2219%2026.9918%2080.6588%2026.7737%2079.8809%2026.7737C78.8491%2026.7737%2078.0939%2027.0797%2077.6155%2027.6883C77.137%2028.297%2076.8994%2029.319%2076.8994%2030.7512V36.4732H74.4583V24.9868H76.3689L76.7106%2026.4938H76.8343C77.1793%2025.947%2077.6708%2025.5238%2078.3088%2025.2277C78.9467%2024.9315%2079.653%2024.7817%2080.4277%2024.7817C83.1846%2024.7817%2084.5614%2026.1846%2084.5614%2028.987V36.4765L84.5646%2036.4732Z'%20fill='url(%23paint11_linear_4548_14216)'/%3e%3cpath%20d='M91.836%2036.6814C90.4038%2036.6814%2089.2841%2036.1606%2088.4802%2035.1223C87.6762%2034.084%2087.2759%2032.6258%2087.2759%2030.751C87.2759%2028.8762%2087.6827%2027.4018%2088.4965%2026.3537C89.3102%2025.3056%2090.4364%2024.7816%2091.8783%2024.7816C93.3202%2024.7816%2094.5375%2025.3382%2095.3252%2026.4546H95.4489C95.3317%2025.6311%2095.2731%2024.9802%2095.2731%2024.5017V20.3159H97.724V36.4763H95.8134L95.387%2034.9693H95.2731C94.4919%2036.1118%2093.3462%2036.6847%2091.836%2036.6847V36.6814ZM92.4902%2034.709C93.4927%2034.709%2094.225%2034.4258%2094.6807%2033.8627C95.1364%2033.2996%2095.374%2032.3817%2095.387%2031.1156V30.7738C95.387%2029.3254%2095.1527%2028.2969%2094.6807%2027.6882C94.2088%2027.0795%2093.4732%2026.7736%2092.4674%2026.7736C91.6081%2026.7736%2090.9474%2027.1219%2090.4852%2027.8184C90.023%2028.5149%2089.7886%2029.5044%2089.7886%2030.7933C89.7886%2032.0823%2090.0132%2033.0392%2090.4624%2033.7065C90.9116%2034.3737%2091.5886%2034.709%2092.4869%2034.709H92.4902Z'%20fill='url(%23paint12_linear_4548_14216)'/%3e%3cpath%20d='M106.997%2036.473V21.2891H109.481V36.473H106.997Z'%20fill='url(%23paint13_linear_4548_14216)'/%3e%3cpath%20d='M123.334%2036.4732H120.883V29.4102C120.883%2028.5248%20120.704%2027.8641%20120.349%2027.4279C119.991%2026.9918%20119.428%2026.7737%20118.65%2026.7737C117.618%2026.7737%20116.863%2027.0797%20116.385%2027.6883C115.906%2028.297%20115.668%2029.319%20115.668%2030.7512V36.4732H113.227V24.9868H115.138L115.48%2026.4938H115.603C115.948%2025.947%20116.44%2025.5238%20117.078%2025.2277C117.716%2024.9315%20118.422%2024.7817%20119.197%2024.7817C121.954%2024.7817%20123.33%2026.1846%20123.33%2028.987V36.4765L123.334%2036.4732Z'%20fill='url(%23paint14_linear_4548_14216)'/%3e%3cpath%20d='M134.449%2033.2019C134.449%2034.3249%20134.039%2035.1841%20133.222%2035.783C132.405%2036.3819%20131.233%2036.6814%20129.71%2036.6814C128.187%2036.6814%20126.95%2036.4503%20126.022%2035.9848V33.8757C127.373%2034.4974%20128.629%2034.8098%20129.791%2034.8098C131.295%2034.8098%20132.044%2034.3574%20132.044%2033.4493C132.044%2033.1596%20131.959%2032.9155%20131.793%2032.7235C131.627%2032.5314%20131.354%2032.3296%20130.973%2032.1213C130.592%2031.913%20130.062%2031.6786%20129.385%2031.415C128.063%2030.904%20127.168%2030.3897%20126.699%2029.8787C126.231%2029.3677%20126%2028.7004%20126%2027.8835C126%2026.9005%20126.397%2026.1389%20127.188%2025.592C127.982%2025.0485%20129.059%2024.7783%20130.423%2024.7783C131.787%2024.7783%20133.05%2025.0517%20134.254%2025.5986L133.466%2027.4376C132.226%2026.9265%20131.185%2026.6694%20130.342%2026.6694C129.053%2026.6694%20128.411%2027.0372%20128.411%2027.7695C128.411%2028.1308%20128.581%2028.4335%20128.916%2028.6842C129.251%2028.9348%20129.983%2029.2766%20131.113%2029.7127C132.06%2030.0805%20132.75%2030.4158%20133.18%2030.7217C133.609%2031.0277%20133.928%2031.3792%20134.137%2031.7763C134.345%2032.1734%20134.449%2032.6519%20134.449%2033.2052V33.2019Z'%20fill='url(%23paint15_linear_4548_14216)'/%3e%3cpath%20d='M136.939%2021.9434C136.939%2021.5072%20137.059%2021.172%20137.297%2020.9344C137.535%2020.6968%20137.876%2020.5796%20138.319%2020.5796C138.762%2020.5796%20139.081%2020.6968%20139.322%2020.9344C139.562%2021.1687%20139.68%2021.504%20139.68%2021.9434C139.68%2022.3828%20139.559%2022.6855%20139.322%2022.9264C139.084%2023.164%20138.749%2023.2844%20138.319%2023.2844C137.889%2023.2844%20137.535%2023.164%20137.297%2022.9264C137.059%2022.6887%20136.939%2022.36%20136.939%2021.9434ZM139.527%2036.4731H137.085V24.9867H139.527V36.4731Z'%20fill='url(%23paint16_linear_4548_14216)'/%3e%3cpath%20d='M152.715%2024.987V26.328L150.752%2026.6925C150.931%2026.9334%20151.081%2027.2328%20151.198%2027.5843C151.316%2027.9359%20151.374%2028.3102%20151.374%2028.7073C151.374%2029.892%20150.964%2030.8229%20150.147%2031.5C149.33%2032.177%20148.204%2032.5187%20146.772%2032.5187C146.404%2032.5187%20146.072%2032.4927%20145.776%2032.4373C145.248%2032.7628%20144.988%2033.1437%20144.988%2033.5798C144.988%2033.8435%20145.112%2034.0387%20145.356%2034.1722C145.603%2034.3024%20146.052%2034.3707%20146.71%2034.3707H148.715C149.981%2034.3707%20150.945%2034.6409%20151.602%2035.1812C152.259%2035.7215%20152.588%2036.4994%20152.588%2037.5182C152.588%2038.8202%20152.051%2039.8227%20150.977%2040.529C149.903%2041.2353%20148.354%2041.5868%20146.326%2041.5868C144.76%2041.5868%20143.566%2041.3101%20142.742%2040.7568C141.919%2040.2035%20141.505%2039.4125%20141.505%2038.3905C141.505%2037.6842%20141.73%2037.0918%20142.176%2036.6101C142.622%2036.1284%20143.247%2035.7964%20144.051%2035.6076C143.725%2035.4676%20143.455%2035.2463%20143.247%2034.9371C143.035%2034.6279%20142.931%2034.3056%20142.931%2033.9671C142.931%2033.5375%20143.051%2033.173%20143.296%2032.8768C143.54%2032.5806%20143.898%2032.2844%20144.376%2031.9947C143.781%2031.7376%20143.299%2031.3209%20142.928%2030.7416C142.557%2030.1655%20142.371%2029.4884%20142.371%2028.7105C142.371%2027.4639%20142.765%2026.4972%20143.549%2025.8137C144.334%2025.1269%20145.454%2024.7852%20146.908%2024.7852C147.234%2024.7852%20147.576%2024.8079%20147.93%2024.8535C148.289%2024.8991%20148.555%2024.9446%20148.734%2024.9935H152.712L152.715%2024.987ZM143.689%2038.2603C143.689%2038.7876%20143.927%2039.1912%20144.402%2039.4744C144.877%2039.7576%20145.541%2039.9008%20146.401%2039.9008C147.729%2039.9008%20148.721%2039.7087%20149.372%2039.3279C150.023%2038.9471%20150.349%2038.4426%20150.349%2037.8111C150.349%2037.3131%20150.17%2036.9584%20149.815%2036.7468C149.457%2036.5352%20148.796%2036.4311%20147.826%2036.4311H145.978C145.278%2036.4311%20144.721%2036.5971%20144.311%2036.9258C143.898%2037.2546%20143.693%2037.7005%20143.693%2038.2603H143.689ZM144.741%2028.7073C144.741%2029.4266%20144.926%2029.9799%20145.297%2030.3705C145.668%2030.7578%20146.199%2030.9531%20146.892%2030.9531C148.305%2030.9531%20149.011%2030.198%20149.011%2028.6877C149.011%2027.9391%20148.835%2027.363%20148.487%2026.9594C148.139%2026.5558%20147.605%2026.3507%20146.892%2026.3507C146.179%2026.3507%20145.652%2026.5526%20145.288%2026.9529C144.923%2027.3532%20144.741%2027.9391%20144.741%2028.7073Z'%20fill='url(%23paint17_linear_4548_14216)'/%3e%3cpath%20d='M164.95%2036.4729H162.499V29.4099C162.499%2028.5245%20162.32%2027.8638%20161.965%2027.4276C161.607%2026.9915%20161.044%2026.7734%20160.266%2026.7734C159.241%2026.7734%20158.489%2027.0794%20158.007%2027.6913C157.526%2028.3032%20157.285%2029.3317%20157.285%2030.7704V36.4729H154.844V20.3125H157.285V24.4136C157.285%2025.0711%20157.243%2025.7742%20157.161%2026.5228H157.317C157.649%2025.9695%20158.112%2025.5398%20158.704%2025.2339C159.296%2024.9279%20159.986%2024.7782%20160.774%2024.7782C163.557%2024.7782%20164.95%2026.181%20164.95%2028.9835V36.4729Z'%20fill='url(%23paint18_linear_4548_14216)'/%3e%3cpath%20d='M172.625%2034.709C173.221%2034.709%20173.816%2034.6146%20174.412%2034.4291V36.2681C174.142%2036.3853%20173.794%2036.4829%20173.367%2036.5643C172.941%2036.6424%20172.501%2036.6847%20172.042%2036.6847C169.728%2036.6847%20168.573%2035.4674%20168.573%2033.0295V26.8387H167.004V25.7581L168.687%2024.863L169.517%2022.4316H171.024V24.9867H174.295V26.8355H171.024V32.9839C171.024%2033.5731%20171.17%2034.006%20171.466%2034.2859C171.763%2034.5658%20172.147%2034.7058%20172.625%2034.7058V34.709Z'%20fill='url(%23paint19_linear_4548_14216)'/%3e%3cpath%20d='M184.424%2033.2019C184.424%2034.3249%20184.014%2035.1841%20183.197%2035.783C182.38%2036.3819%20181.208%2036.6814%20179.685%2036.6814C178.161%2036.6814%20176.925%2036.4503%20175.997%2035.9848V33.8757C177.348%2034.4974%20178.604%2034.8098%20179.766%2034.8098C181.27%2034.8098%20182.018%2034.3574%20182.018%2033.4493C182.018%2033.1596%20181.934%2032.9155%20181.768%2032.7235C181.602%2032.5314%20181.328%2032.3296%20180.948%2032.1213C180.567%2031.913%20180.036%2031.6786%20179.359%2031.415C178.038%2030.904%20177.143%2030.3897%20176.674%2029.8787C176.205%2029.3677%20175.974%2028.7004%20175.974%2027.8835C175.974%2026.9005%20176.371%2026.1389%20177.162%2025.592C177.956%2025.0485%20179.034%2024.7783%20180.397%2024.7783C181.761%2024.7783%20183.024%2025.0517%20184.228%2025.5986L183.441%2027.4376C182.201%2026.9265%20181.159%2026.6694%20180.316%2026.6694C179.027%2026.6694%20178.386%2027.0372%20178.386%2027.7695C178.386%2028.1308%20178.555%2028.4335%20178.89%2028.6842C179.226%2028.9348%20179.958%2029.2766%20181.088%2029.7127C182.035%2030.0805%20182.725%2030.4158%20183.154%2030.7217C183.584%2031.0277%20183.903%2031.3792%20184.111%2031.7763C184.32%2032.1734%20184.424%2032.6519%20184.424%2033.2052V33.2019Z'%20fill='url(%23paint20_linear_4548_14216)'/%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0672%2015.5248)%20scale(61.1655%2061.1655)'%3e%3cstop%20offset='0.17'%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0676%2015.525)%20scale(61.1655%2061.1655)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint2_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8974)%20scale(61.1655%2061.1654)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint3_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8984)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint4_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8978)%20scale(61.1655%2061.1655)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint5_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8978)%20scale(61.1655%2061.1654)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint6_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0673%2015.5246)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint7_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0675%20-58.8983)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3clinearGradient%20id='paint8_linear_4548_14216'%20x1='27.6858'%20y1='26.9883'%20x2='184.655'%20y2='47.7609'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint9_linear_4548_14216'%20x1='27.7019'%20y1='26.8681'%20x2='184.671'%20y2='47.6374'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint10_linear_4548_14216'%20x1='27.8582'%20y1='25.703'%20x2='184.827'%20y2='46.4723'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint11_linear_4548_14216'%20x1='28.0796'%20y1='24.0657'%20x2='185.049'%20y2='44.835'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint12_linear_4548_14216'%20x1='28.6426'%20y1='19.7724'%20x2='185.612'%20y2='40.5417'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint13_linear_4548_14216'%20x1='28.8281'%20y1='18.376'%20x2='185.794'%20y2='39.1453'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint14_linear_4548_14216'%20x1='28.7407'%20y1='19.0206'%20x2='185.71'%20y2='39.7899'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint15_linear_4548_14216'%20x1='28.9621'%20y1='17.367'%20x2='185.928'%20y2='38.1363'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint16_linear_4548_14216'%20x1='29.382'%20y1='14.187'%20x2='186.351'%20y2='34.9563'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint17_linear_4548_14216'%20x1='28.9585'%20y1='17.3836'%20x2='185.928'%20y2='38.1529'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint18_linear_4548_14216'%20x1='29.7136'%20y1='11.6741'%20x2='186.683'%20y2='32.4466'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint19_linear_4548_14216'%20x1='29.8241'%20y1='10.8313'%20x2='186.794'%20y2='31.6039'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint20_linear_4548_14216'%20x1='29.8206'%20y1='10.867'%20x2='186.79'%20y2='31.6364'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function Jv(t,e){return tb(t)||eb(t,e)||$v(t,e)||Zv()}function Zv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $v(t,e){if(t){if(typeof t=="string")return zu(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zu(t,e):void 0}}function zu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function eb(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function tb(t){if(Array.isArray(t))return t}var nb=function(e){var n=e.className,r=nt(),i=r.pathname,s=Rt(),a=s.hostAppProps,o=a.onLogout,l=D.useState(!1),u=Jv(l,2),c=u[0],f=u[1],y=cs({query:{select:function(C){var A=C.data;return A==null?void 0:A.data}}}),h=y.data,p=y.isLoading,m=gv(o),g=m.mutate,v=m.isPending,S=function(C){if(C.preventDefault(),f(!0),!v)return g()};return d.jsxs("div",{className:te("ystaii-sidemenu"),children:[d.jsx("div",{className:"ystaii-mobile-menu lg:yst-hidden",children:d.jsx(w.SidebarNavigation,{activePath:i,children:d.jsx(w.SidebarNavigation.Mobile,{closeButtonScreenReaderText:"Close sidebar",openButtonScreenReaderText:"Open sidebar",children:d.jsx(qu,{})})})}),d.jsxs("div",{className:te("ystaii-menuHeader","yst-mb-6 yst-mt-10 yst-flex yst-flex-row yst-justify-between yst-px-4","yst-flex-col yst-items-start yst-space-y-12 yst-max-w-2xl yst-mx-auto"),children:[d.jsx(w.Title,{children:d.jsx(Fn,{className:te("yst-outline-none"),to:"/",children:d.jsx("img",{src:Xv,alt:"Yoast",width:"208",height:"42",className:"yst-block"})})}),d.jsxs("div",{className:te("ystaii-userInfoContainer","yst-flex yst-flex-col"),children:[d.jsx("div",{children:d.jsx("b",{children:p?d.jsx(w.SkeletonLoader,{children:"Display name"}):h==null?void 0:h.displayName})}),d.jsx("div",{children:p?d.jsx(w.SkeletonLoader,{children:"loading-email@address.com"}):h==null?void 0:h.email}),d.jsx("div",{children:d.jsx(w.Link,{variant:"primary",className:"yst-no-underline",onClick:S,children:p?d.jsxs(w.SkeletonLoader,{children:["Sign out ",d.jsx("span",{"aria-hidden":"true",children:"→"})]}):c||v?d.jsx(d.Fragment,{children:"Signing out..."}):d.jsxs(d.Fragment,{children:["Sign out ",d.jsx("span",{"aria-hidden":"true",children:"→"})]})})})]})]}),d.jsx("div",{className:te("ystaii-desktopMenu","yst-hidden","lg:yst-mb-0 lg:yst-block lg:yst-w-full lg:yst-shrink-0"),children:d.jsx(w.SidebarNavigation,{activePath:i,children:d.jsx(qu,{className:n})})})]})},rb=["className","href"];function ib(t,e){if(t==null)return{};var n,r,i=sb(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function sb(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var ab=function(e){var n=e.className,r=e.href,i=r===void 0?"#content":r,s=ib(e,rb);return d.jsx("a",{href:i,className:te("yst-absolute yst-left-[10px] yst-z-[100000] yst-block yst-h-12 yst-min-w-[150px] yst-px-[15px] yst-text-[14px] yst-leading-[48px] yst-bg-[var(--bg-color-white)] yst-rounded yst-shadow-md yst-underline yst-text-center yst-outline-none; yst--top-[1000em] focus:yst-top-[10px] focus:yst-text-[var(--text-color-blue)]",n),...s,children:"Skip to main content"})},ob=D.lazy(function(){return Promise.resolve({default:function(){return null}})});function Za(t){var e=t.children,n=t.disable,r=n===void 0?!1:n,i=t.hideNav,s=i===void 0?!1:i,a=t.DebugInfo;return r?e:d.jsxs("div",{className:te("ystaii-layout","yst-block","lg:yst-flex lg:yst-min-h-full lg:yst-overflow-visible"),children:[d.jsx(ab,{children:"Skip to main content"}),!s&&d.jsxs("div",{className:te("ystaii-sidebar","yst-overflow-hidden","lg:yst-flex-grow-1 lg:yst-max-w-[300px] lg:yst-flex-shrink-0 lg:yst-basis-[300px] lg:yst-overflow-visible lg:yst-pl-4"),children:[d.jsx(nb,{}),a&&d.jsx(a,{}),d.jsx(D.Suspense,{fallback:null,children:d.jsx(ob,{})}),d.jsxs("div",{id:"toast-portal",className:"yst-fixed yst-bottom-4 yst-left-4 yst-w-96 yst-space-y-4",children:[d.jsx("div",{id:"hook-toasts"}),d.jsx("div",{id:"tsx-toasts"})]})]}),d.jsx("main",{id:"content",className:te("ystaii-main","yst-mx-4 yst-my-0 yst-flex yst-min-w-0 yst-shrink yst-grow yst-basis-auto yst-px-0 yst-py-6","lg:yst-ml-12 lg:yst-mr-6"),children:d.jsx("div",{className:te("ystaii-main-content","yst-mx-auto yst-flex yst-flex-col yst-gap-8","lg:yst-w-full lg:yst-flex-row"),children:d.jsx("div",{className:"yst-layout-root yst-mx-auto yst-w-full yst-max-w-[1200px] yst-flex-1",children:e})})})]})}function Ai(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return ft(S,"_invoke",function(k,C,A){var j,b,x,M=0,_=A||[],I=!1,P={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,L){return j=O,b=0,x=t,P.n=L,a}};function H(N,O){for(b=N,x=O,e=0;!I&&M&&!L&&e<_.length;e++){var L,R=_[e],Y=P.p,z=R[2];N>3?(L=z===O)&&(x=R[(b=R[4])?5:(b=3,3)],R[4]=R[5]=t):R[0]<=Y&&((L=N<2&&Y<R[1])?(b=0,P.v=O,P.n=R[1]):Y<z&&(L=N<3||R[0]>O||O>z)&&(R[4]=N,R[5]=O,P.n=z,b=0))}if(L||N>1)return a;throw I=!0,O}return function(N,O,L){if(M>1)throw TypeError("Generator is already running");for(I&&O===1&&H(O,L),b=O,x=L;(e=b<2?t:x)||!I;){j||(b?b<3?(b>1&&(P.n=-1),H(b,x)):P.n=x:P.v=x);try{if(M=2,j){if(b||(N="next"),e=j[N]){if(!(e=e.call(j,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=j.return)&&e.call(j),b<2&&(x=TypeError("The iterator does not provide a '"+N+"' method"),b=1);j=t}else if((e=(I=P.n<0)?x:k.call(C,P))!==a)break}catch(R){j=t,b=1,x=R}finally{M=1}}return{value:e,done:I}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(ft(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,ft(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,ft(f,"constructor",u),ft(u,"constructor",l),l.displayName="GeneratorFunction",ft(u,i,"GeneratorFunction"),ft(f),ft(f,i,"Generator"),ft(f,r,function(){return this}),ft(f,"toString",function(){return"[object Generator]"}),(Ai=function(){return{w:s,m:y}})()}function ft(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}ft=function(a,o,l,u){if(o)i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var c=function(y,h){ft(a,y,function(p){return this._invoke(y,h,p)})};c("next",0),c("throw",1),c("return",2)}},ft(t,e,n,r)}function Gu(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function Yu(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Gu(s,r,i,a,o,"next",l)}function o(l){Gu(s,r,i,a,o,"throw",l)}a(void 0)})}}function lb(t,e){return fb(t)||db(t,e)||cb(t,e)||ub()}function ub(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cb(t,e){if(t){if(typeof t=="string")return Vu(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vu(t,e):void 0}}function Vu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function db(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function fb(t){if(Array.isArray(t))return t}var hb=function(e){var n,r=e.className,i=Lt(),s=Ct(),a=D.useState(!1),o=lb(a,2),l=o[0],u=o[1],c=Ar({query:{select:function(A){var j=A.data;return j==null?void 0:j.brands}}}),f=c.data,y=Kh({mutation:{onSettled:function(){i.invalidateQueries({queryKey:[Kt()]})}}}),h=y.mutateAsync,p=y.isPending,m=D.useMemo(function(){var C;return(C=f==null?void 0:f.filter(function(A){var j;return((j=A.settings)===null||j===void 0?void 0:j.showAutomaticAnalysisDisabledNotification)===!0}))!==null&&C!==void 0?C:[]},[f]);D.useEffect(function(){u(m.length!==0)},[m]);var g=function(){var C=Yu(Ai().m(function A(){var j;return Ai().w(function(b){for(;;)switch(b.n){case 0:return j=m.map(function(x){return h({brandId:String(x.id),data:{showAutomaticAnalysisDisabledNotification:!1}})}),b.n=1,Promise.all(j);case 1:u(!1);case 2:return b.a(2)}},A)}));return function(){return C.apply(this,arguments)}}(),v=function(){var C=Yu(Ai().m(function A(){return Ai().w(function(j){for(;;)switch(j.n){case 0:return j.n=1,g();case 1:s("/settings");case 2:return j.a(2)}},A)}));return function(){return C.apply(this,arguments)}}(),S=m.length===1?"One brand has been deactivated":"Multiple brands have been deactivated",k=m.length===1?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"You recently lost a subscription. Because of this, we could not analyze all your active brands."}),d.jsxs("p",{children:["The brand ",d.jsx("b",{children:m==null||(n=m[0])===null||n===void 0?void 0:n.name})," was deactivated, since it was the most recently analyzed."]}),d.jsxs("p",{children:["If you prefer, you can go to ",d.jsx("b",{children:"Settings"})," and deactivate a different brand instead."]})]}):d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"You recently lost a subscription. Because of this, we could not analyze all your active brands."}),d.jsx("p",{children:"The following brands were deactivated, since they were the most recently analyzed:"}),d.jsx("ul",{children:m.map(function(C){return d.jsx("li",{children:d.jsx("b",{children:C.name})},C.id)})}),d.jsxs("p",{children:["If you prefer, you can go to ",d.jsx("b",{children:"Settings"})," and deactivate different brand(s) instead."]})]});return l?d.jsx(w.Modal,{isOpen:l,onClose:v,position:"center",as:"div",className:r,children:d.jsxs(w.Modal.Panel,{children:[d.jsx("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:S})}),d.jsx(w.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:k})]})}),d.jsxs(w.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[d.jsx(w.Button,{variant:"secondary",onClick:v,children:"Close"}),d.jsx(w.Button,{variant:"primary",onClick:v,isLoading:p,disabled:p,children:"Go to settings"})]})]})}):null};const yb=t=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8948 6.33943C17.1675 6.33943 17.4064 6.52012 17.4816 6.78187L18.1436 9.09795C18.4332 10.112 19.226 10.9049 20.2401 11.1945L22.5562 11.8565C22.8804 11.9493 23.0679 12.2871 22.975 12.6113C22.9167 12.814 22.7588 12.9719 22.5562 13.0301L20.2401 13.6921C19.226 13.9817 18.4332 14.7746 18.1436 15.7886L17.4816 18.1047C17.3887 18.4289 17.051 18.6164 16.7267 18.5235C16.5241 18.4652 16.3662 18.3073 16.3079 18.1047L15.646 15.7886C15.3563 14.7746 14.5635 13.9817 13.5494 13.6921L11.2333 13.0301C10.9091 12.9372 10.7217 12.5995 10.8145 12.2753C10.8728 12.0726 11.0307 11.9147 11.2333 11.8565L13.5494 11.1945C14.5635 10.9049 15.3563 10.112 15.646 9.09795L16.3079 6.78187C16.3831 6.52012 16.622 6.33943 16.8948 6.33943Z",fill:"url(#paint0_linear_1940_1302)"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9302 1.57979C11.1151 1.57979 11.2764 1.7056 11.3211 1.8846L11.4596 2.44103C11.5863 2.94596 11.9806 3.33943 12.4847 3.46608L13.0411 3.60456C13.2572 3.65775 13.3881 3.87644 13.3349 4.09175C13.2986 4.23698 13.1855 4.35012 13.0411 4.38559L12.4847 4.52406C11.9797 4.65071 11.5863 5.04503 11.4596 5.54911L11.3211 6.10554C11.2679 6.3217 11.0492 6.45257 10.8339 6.39938C10.6887 6.36307 10.5756 6.24993 10.5401 6.10554L10.4016 5.54911C10.2758 5.04418 9.8815 4.64987 9.37658 4.52406L8.82015 4.38559C8.60399 4.33239 8.47312 4.1137 8.52631 3.89839C8.56262 3.75316 8.67576 3.64002 8.82015 3.60456L9.37658 3.46608C9.8815 3.34027 10.2758 2.94596 10.4016 2.44103L10.5401 1.8846C10.584 1.7056 10.7453 1.57979 10.9302 1.57979Z",fill:"url(#paint1_linear_1940_1302)"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.36896 11.3034C6.4669 11.3034 6.55472 11.3659 6.58511 11.4596L6.70501 11.8193C6.75061 11.9552 6.857 12.0625 6.99294 12.1072L7.35263 12.2271C7.47169 12.2668 7.5367 12.3968 7.49617 12.5159C7.47338 12.5835 7.42018 12.6366 7.35263 12.6594L6.99294 12.7793C6.857 12.8249 6.74976 12.9313 6.70501 13.0673L6.58511 13.427C6.54543 13.546 6.4154 13.611 6.29634 13.5705C6.22879 13.5477 6.1756 13.4945 6.1528 13.427L6.0329 13.0673C5.98731 12.9313 5.88092 12.8241 5.74498 12.7793L5.38528 12.6594C5.26623 12.6198 5.20121 12.4897 5.24174 12.3707C5.26454 12.3031 5.31773 12.2499 5.38528 12.2271L5.74498 12.1072C5.88092 12.0616 5.98815 11.9552 6.0329 11.8193L6.1528 11.4596C6.18404 11.3667 6.27101 11.3034 6.36896 11.3034Z",fill:"url(#paint2_linear_1940_1302)"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.02759 15.6679C4.12553 15.6679 4.21335 15.7304 4.24374 15.8241L4.36364 16.1838C4.40924 16.3197 4.51563 16.427 4.65157 16.4717L5.01126 16.5916C5.13032 16.6313 5.19533 16.7613 5.1548 16.8804C5.13201 16.9479 5.07881 17.0011 5.01126 17.0239L4.65157 17.1438C4.51563 17.1894 4.40839 17.2958 4.36364 17.4318L4.24374 17.7915C4.20406 17.9105 4.07403 17.9755 3.95497 17.935C3.88742 17.9122 3.83423 17.859 3.81143 17.7915L3.69153 17.4318C3.64594 17.2958 3.53955 17.1886 3.40361 17.1438L3.04391 17.0239C2.92486 16.9842 2.85984 16.8542 2.90037 16.7352C2.92317 16.6676 2.97636 16.6144 3.04391 16.5916L3.40361 16.4717C3.53955 16.4261 3.64678 16.3197 3.69153 16.1838L3.81143 15.8241C3.84267 15.7312 3.92964 15.6679 4.02759 15.6679Z",fill:"url(#paint3_linear_1940_1302)"}),E.createElement("path",{d:"M3.77599 15.1216C3.46273 14.2874 3.29133 13.3856 3.29133 12.4433C3.29133 9.14607 5.39124 6.33014 8.3237 5.26287L7.93951 4.23276C4.58742 5.4537 2.19366 8.66901 2.19366 12.4433C2.19366 13.5139 2.38702 14.5398 2.73912 15.488L3.77599 15.1216Z",fill:"url(#paint4_linear_1940_1302)"}),E.createElement("path",{d:"M15.6899 18.4137C14.3837 19.4574 12.7287 20.0822 10.9302 20.0822C8.72816 20.0822 6.74055 19.1449 5.34482 17.6487L4.53424 18.3935C6.12923 20.1075 8.40393 21.179 10.9302 21.179C12.9846 21.179 14.8725 20.4697 16.3645 19.2834L15.6899 18.4129V18.4137Z",fill:"url(#paint5_linear_1940_1302)"}),E.createElement("path",{d:"M10.9302 8.35407C12.0203 8.35407 13.0115 8.78385 13.7453 9.48129L14.4807 8.66311C13.5528 7.79089 12.3048 7.25641 10.931 7.25641C8.65549 7.25641 6.7236 8.72221 6.02448 10.7613L7.05628 11.1396C7.60173 9.52266 9.13171 8.35407 10.931 8.35407H10.9302Z",fill:"url(#paint6_linear_1940_1302)"}),E.createElement("path",{d:"M13.7402 15.4104C13.0073 16.1053 12.0177 16.5325 10.931 16.5325C9.1241 16.5325 7.58906 15.3546 7.04951 13.7259L6.00842 14.0771C6.6932 16.1407 8.63775 17.6302 10.931 17.6302C12.3065 17.6302 13.5561 17.0932 14.4849 16.2193L13.7402 15.4104Z",fill:"url(#paint7_linear_1940_1302)"}),E.createElement("defs",null,E.createElement("linearGradient",{id:"paint0_linear_1940_1302",x1:5.35747,y1:4.15001,x2:20.3929,y2:14.9578,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint1_linear_1940_1302",x1:7.32986,y1:1.40754,x2:22.3653,y2:12.2153,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint2_linear_1940_1302",x1:1.77228,y1:9.13847,x2:16.8077,y2:19.9462,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint3_linear_1940_1302",x1:-1.09428,y1:13.1255,x2:13.9412,y2:23.9333,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint4_linear_1940_1302",x1:2.64455,y1:7.92344,x2:17.68,y2:18.7312,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint5_linear_1940_1302",x1:.172293,y1:11.3642,x2:15.2078,y2:22.172,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint6_linear_1940_1302",x1:4.40247,y1:5.47904,x2:19.4379,y2:16.2868,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint7_linear_1940_1302",x1:1.58821,y1:9.39517,x2:16.6237,y2:20.2029,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})))),pb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2AAAAHoCAYAAAAv7ow4AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAOtaSURBVHgB7L0HgBzFmb/99uYg7SqDhERSAiSiwBYCgYkHlg3YBgsHggPRCQyOdwaDz8afDQf2nYlnsm2CfMYE4z/ZBoRsEBgFQGQQklDWrrRBm/qrt3qqp6q7uqdndtLu/h5YzUx3dXXN7OxMPf1WveW4AgIAAAAAAAAAUHAqCAAAAAAAAABAUYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAAAAQJGAg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4QQQgghZHQYlwoLSEdEUQ0vyeqY2k35qjFGOfrQ57P8PCGEEEIIIaPCuJW4gxC0tkVs+xB1YdW90SFSQUohy88TQgghhBAyOoyr7UQd63tFud7XqNFWQUphKwtwEEIIIYQQMiqMq4AhKmNNjeOD/+gRNgKGOXiMQhJCCCGEEDI6jGulBchXx5RuVRkx2tXOB/9RxCisUa4aIsvPE0IIIYQQMnqMe6k7FIjARkafMOXoWX6eEEIIIYSQ0YMhpwkEFsQOAhFIlp8nhBBCCCFk9KCATSCQhtjeE/c/NmWSEEIIIYQQQkaPFk1HyIQim0ipeXdIRzSWA2jv7VIFOAghhBBCCCGjBwWMEEIIIYQQQsYIpiASQgghhBBCyBhBASOEEEIIIYSQMYICRgghhBBCCCFjBAWMEEIIIYQQQsYIChghhBBCCCGEjBEUMEIIIYQQQggZIyhghBBCCCGEEDJGUMAIIYQQQgghZIyggBFCCCGEEELIGEEBI4QQQgghhJAxggJGCCGEEEIIIWMEBYwQQgghhBBCxggKGCGEEEIIIYSMERQwQgghhBBCCBkjKGCEEEIIIYQQMkZQwAghhBBCCCFkjKCAEUIIIYQQQsgYQQEjhBBCCCGEkDGCAkYIIYQQQgghY8T/B+cQ4pXsw1icAAAAAElFTkSuQmCC";var ti=function(e){var n=e.className,r=n===void 0?"":n,i=e.size,s=i===void 0?6:i;return d.jsx("hr",{className:te("yst-mb-".concat(s," yst-mt-").concat(s),r)})},ty=function(e){var n=e.isOpen,r=e.variant,i=r===void 0?"purchase":r,s=e.onClose,a=Rt(),o=a.hostAppProps.onAddSubscription,l=function(){o==null||o()};return d.jsx(w.Modal,{isOpen:n,onClose:s||function(){},position:"center",as:"div",className:"[&_.yst-modal\\_\\_close-button]:yst-bg-transparent",children:d.jsxs(w.Modal.Panel,{className:te("yst-relative yst-max-w-[512px] yst-rounded-3xl yst-bg-gradient-to-b yst-from-[rgba(166,30,105,0.25)] yst-via-white yst-via-40% yst-to-white yst-px-10",{"yst-pt-10":!!s,"yst-py-10":!s}),hasCloseButton:!!s,children:[d.jsx("img",{src:pb,alt:"Upsell image",className:"yst-mb-6 yst-rounded-lg yst-shadow-lg"}),d.jsxs(w.Modal.Container.Header,{className:"yst-mb-4 yst-space-y-4 yst-text-center",children:[d.jsxs("p",{className:"yst-flex yst-items-center yst-justify-center yst-gap-1 yst-text-center yst-text-xs yst-uppercase yst-text-slate-500",children:[d.jsx(yb,{className:"yst-h-6 yst-w-6"})," Available now - Yoast AI Brand Insights"]}),d.jsx(w.Modal.Title,{as:"h2",className:"yst-pr-8 yst-text-lg yst-font-medium yst-text-slate-900",children:"How does your brand show up in AI responses?"}),i==="trial"?d.jsxs("p",{className:"yst-text-tiny yst-font-normal yst-text-slate-600",children:["Track visibility, control perception, and stay ahead - tools to manage your AI presence are now live."," ",d.jsx("strong",{children:"Try it for free, on us!"})]}):d.jsx("p",{className:"yst-text-tiny yst-font-normal yst-text-slate-600",children:"Track visibility, control perception, and stay ahead - tools to manage your AI presence are now live!"})]}),i==="trial"&&d.jsxs(d.Fragment,{children:[d.jsx(ti,{size:4}),d.jsx(w.Modal.Container.Content,{className:"yst-space-y-4",children:d.jsxs("p",{className:"yst-text-sm yst-italic yst-text-slate-600",children:["By continuing to use this product, you agree to our"," ",d.jsx(w.Link,{href:"https://yoast.com/terms-and-conditions/",target:"_blank",rel:"noopener noreferrer",variant:"default",children:"terms and conditions"})," ","and"," ",d.jsx(w.Link,{href:"https://yoast.com/privacy-policy/",target:"_blank",rel:"noopener noreferrer",variant:"default",children:"privacy notice"}),"."]})})]}),d.jsxs(w.Modal.Container.Footer,{className:"yst-mt-6 yst-flex yst-flex-col yst-gap-2",children:[i==="trial"?d.jsxs(w.Button,{variant:"primary",onClick:l,className:"yst-flex yst-w-full yst-items-center yst-gap-1",children:[d.jsx(ey,{})," Discover Brand Insights now"]}):d.jsxs(w.Button,{variant:"upsell",onClick:l,className:"yst-flex yst-w-full yst-items-center yst-gap-1",children:[d.jsx(Dv,{})," Unlock Yoast AI Brand Insights"]}),!!s&&d.jsx(w.Button,{onClick:s,variant:"tertiary",className:"yst-text-center",children:"Close"})]})]})})},Pa=function(){return d.jsx("div",{className:"yst-flex yst-min-h-screen yst-items-center yst-justify-center",children:d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-3 yst-text-center",children:[d.jsx(w.Spinner,{variant:"primary"}),d.jsx("span",{className:"yst-italic",children:"Just a moment while we get things ready for you..."})]})})};function mb(t,e){return xb(t)||bb(t,e)||vb(t,e)||gb()}function gb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vb(t,e){if(t){if(typeof t=="string")return Ku(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ku(t,e):void 0}}function Ku(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function bb(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function xb(t){if(Array.isArray(t))return t}var Ab={HOME:"/"},wb=function(e){var n,r,i,s=e.hideNav,a=s===void 0?!1:s,o=e.disableLayout,l=o===void 0?!1:o,u=e.DebugInfo,c=nt(),f=Ct(),y=D.useState(!0),h=mb(y,2),p=h[0],m=h[1],g={disable:l,hideNav:a},v=Rt(),S=v.brandId,k=ds(),C=k.setBrandId,A=Ar({query:{refetchOnReconnect:!1,refetchOnWindowFocus:!1,select:function(Y){var z;return Y==null||(z=Y.data)===null||z===void 0?void 0:z.brands}}}),j=A.data,b=A.isLoading,x=A.error,M=A.refetch,_=cs(),I=_.data,P=D.useRef(!1),H=D.useMemo(function(){return j==null?void 0:j.find(function(R){return R.id===S})},[j,S]);D.useEffect(function(){var R;if(!(j===void 0||S)){var Y=(R=j[0])===null||R===void 0?void 0:R.id;Y&&C(Y)}},[j,S,C,f,c.pathname]),D.useEffect(function(){!S||P.current||(P.current=!0)},[H,S,f,c.pathname,j]);var N=D.useCallback(function(){M()},[M]);if(c.pathname!==Ab.HOME&&b)return d.jsx(Za,{...g,children:d.jsx(Pa,{})});if(x)return d.jsx(Za,{...g,children:d.jsx("div",{className:"yst-flex yst-min-h-screen yst-items-center yst-justify-center",children:d.jsxs("div",{className:"yst-space-y-4 yst-text-center",children:[d.jsx("div",{className:"yst-mb-4 yst-text-6xl yst-text-red-600",children:"⚠️"}),d.jsx("h2",{className:"yst-text-xl yst-font-semibold yst-text-slate-900",children:"Something went wrong"}),d.jsx("p",{className:"yst-text-slate-600",children:"We couldn't load your Brand Analysis. Please try again shortly."}),d.jsx(w.Button,{variant:"primary",onClick:N,children:"Retry"})]})})});var O=(I==null||(n=I.data)===null||n===void 0?void 0:n.activeSubscriptions)===0,L=(I==null||(r=I.data)===null||r===void 0?void 0:r.brands)&&(I==null||(i=I.data)===null||i===void 0||(i=i.brands)===null||i===void 0?void 0:i.length)>0;return d.jsxs(Za,{DebugInfo:u,...g,children:[d.jsx(zr,{}),d.jsx(hb,{}),O&&d.jsx(ty,{isOpen:p,onClose:L?function(){m(!1)}:void 0})]})},Zt=function(e){var n=e.title,r=nt();return D.useEffect(function(){document.title=n},[r,n]),null},Sb=function(){var e=va(),n=e.brandId,r=e.analysisId,i=Yh(n,{query:{enabled:!!n,select:function(c){var f=c.data;return(f==null?void 0:f.analyses)||[]}}}),s=i.data,a=i.isLoading,o=i.error;if(a)return d.jsx(Pa,{});if(o)return console.error("Error fetching analyses for validation:",o),d.jsx(kr,{to:"/brands/".concat(n),replace:!0});if(!r||r.trim()==="")return d.jsx(kr,{to:"/brands/".concat(n),replace:!0});if(r==="latest")return d.jsx(zr,{});var l=s==null?void 0:s.some(function(u){return u.id===r});return l?d.jsx(zr,{}):d.jsx(kr,{to:"/brands/".concat(n),replace:!0})},Xu=function(){var e=va(),n=e.brandId,r=Ar({query:{select:function(f){var y=f.data;return y}}}),i=r.data,s=r.isLoading,a=r.error,o=r.isFetched,l=(i==null?void 0:i.brands)||[];if(s||!o)return d.jsx(Pa,{});if(a)return d.jsx(kr,{to:"/",replace:!0});if(!n||n.trim()==="")return d.jsx(kr,{to:"/",replace:!0});var u=l.length>0&&l.some(function(c){return String(c.id)===n});return o&&!u?d.jsx(kr,{to:"/",replace:!0}):d.jsx(zr,{})};function Cb(t){return Eb(t)||Ob(t)||ny(t)||jb()}function jb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ob(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Eb(t){if(Array.isArray(t))return $o(t)}function kb(t,e){return Mb(t)||Pb(t,e)||ny(t,e)||Tb()}function Tb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ny(t,e){if(t){if(typeof t=="string")return $o(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$o(t,e):void 0}}function $o(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Pb(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function Mb(t){if(Array.isArray(t))return t}var Ul=D.createContext(void 0),Ib=function(e){var n=e.children,r=D.useState([]),i=kb(r,2),s=i[0],a=i[1],o=D.useCallback(function(u){a(function(c){return c.filter(function(f){return f.id!==u})})},[]),l=D.useCallback(function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(function(f){var y,h,p=typeof u=="string"?f.some(function(S){return typeof S.message!="string"?!1:S.message===u&&S.variant===(c.variant||"info")}):!1;if(p)return f;var m="toast-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,11)),g=(y=c.duration)!==null&&y!==void 0?y:5e3,v={id:m,message:u,variant:c.variant||"info",duration:g,dismissible:(h=c.dismissible)!==null&&h!==void 0?h:!0};return g>0&&setTimeout(function(){o(m)},g),[].concat(Cb(f),[v])})},[o]);return d.jsx(Ul.Provider,{value:{toasts:s,addToast:l,removeToast:o},children:n})},Lb=function(){var e=D.useContext(Ul);if(!e)return null;var n=e.toasts,r=e.removeToast;if(typeof window=="undefined")return null;var i=document.getElementById("hook-toasts");return i?zf.createPortal(d.jsx("div",{className:te("yst-w-full yst-space-y-4"),"aria-live":"polite","aria-atomic":"true",children:n.map(function(s){var a;return d.jsxs(w.Toast,{className:te("yst-w-full",s.className),id:s.id,variant:s.variant||"info",autoDismiss:s.dismissible?0:(a=s.duration)!==null&&a!==void 0?a:1500,onDismiss:function(){return r(s.id)},isVisible:!0,setIsVisible:function(){},children:[d.jsxs("div",{className:"yst-flex yst-gap-3",children:[d.jsx("div",{className:"yst-flex-shrink-0",children:d.jsx(w.ValidationIcon,{className:"yst-h-5 yst-w-5",variant:s.variant})}),d.jsxs("div",{className:"yst-flex-1",children:[typeof s.title=="string"?d.jsx(w.Title,{title:s.title}):s.title,typeof s.message=="string"?d.jsx("p",{className:"yst-mb-0",children:s.message}):s.message]}),s.dismissible&&d.jsx("div",{children:d.jsx(w.Toast.Close,{className:"yst-p-0 yst-text-slate-400",dismissScreenReaderLabel:"Dismiss"})})]}),s.actions&&d.jsx("div",{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-3",children:d.jsx(s.actions,{dismiss:function(){return r(s.id)}})})]},s.id)})}),i):null},Hl=function(){var e=D.useContext(Ul);if(!e)throw new Error("useToast must be used within a ToastProvider");var n=e.addToast;return D.useCallback(function(r,i){n(r,i)},[n])},Rb={openai:"openai",perplexity:"perplexity",anthropic:"anthropic"},Nb={updating:"updating"},wn={pending:"pending",processing:"processing",completed:"completed",failed:"failed",cancelled:"cancelled"},_b=function(e){return typeof e=="string"&&e!=="latest"&&e.trim().length>0};function Db(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M14.707 12.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l2.293-2.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}const ry=E.forwardRef(Db);function Bb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}const Fb=E.forwardRef(Bb);function Ub(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M5.293 7.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L6.707 7.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const iy=E.forwardRef(Ub);function Hb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}const sy=E.forwardRef(Hb);function Wb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}const Qb=E.forwardRef(Wb);function qb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))}const zb=E.forwardRef(qb);function Gb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"}))}const Ju=E.forwardRef(Gb);function Yb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),E.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))}const ay=E.forwardRef(Yb);function Vb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm14 1a1 1 0 11-2 0 1 1 0 012 0zM2 13a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2v-2zm14 1a1 1 0 11-2 0 1 1 0 012 0z",clipRule:"evenodd"}))}const Kb=E.forwardRef(Vb);function Xb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}const oy=E.forwardRef(Xb);function Bi(t){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bi(t)}var Jb=["children","as","startColor","endColor","angle","disabled","style","className"];function Zu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $u(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zu(Object(n),!0).forEach(function(r){Zb(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Zb(t,e,n){return(e=$b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $b(t){var e=e1(t,"string");return Bi(e)=="symbol"?e:e+""}function e1(t,e){if(Bi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Bi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function t1(t,e){if(t==null)return{};var n,r,i=n1(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function n1(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var Fi=function(e){var n=e.children,r=e.as,i=r===void 0?"span":r,s=e.startColor,a=s===void 0?"#A61E69":s,o=e.endColor,l=o===void 0?"#6366F1":o,u=e.angle,c=u===void 0?102:u,f=e.disabled,y=f===void 0?!1:f,h=e.style,p=h===void 0?{}:h,m=e.className,g=m===void 0?"":m,v=t1(e,Jb),S=$u(y?{display:"inline-block"}:{background:"linear-gradient(".concat(c,"deg, ").concat(a,", ").concat(l,")"),WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"},p);return d.jsx(i,{className:g,style:S,...v,children:n})};function Wl(t){var e=t.children,n=t.nestedInPaperContent,r=n===void 0?!1:n,i=t.className;return d.jsx("div",{className:te("yst-mt-8 yst-flex yst-items-center yst-justify-end yst-gap-6 yst-rounded-bl-lg yst-rounded-br-lg yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6",{"yst-mb-[-2rem] yst-ml-[-2rem] yst-mr-[-2rem]":r},i),children:e})}var r1=function(){var e=Ct();return d.jsx("form",{onSubmit:function(){return e("/setup")},children:d.jsxs(w.Paper,{className:"yst-mx-auto yst-flex yst-max-w-2xl",children:[d.jsx(w.Paper.Header,{children:d.jsxs(w.Title,{size:"1",children:["Welcome to ",d.jsx(Fi,{children:"Yoast AI Brand Insights"}),"!"]})}),d.jsxs(w.Paper.Content,{className:"yst-space-y-8",children:[d.jsxs("div",{className:"yst-space-y-4 *:yst-text-tiny",children:[d.jsx("p",{children:"See how your brand is represented in AI answers."}),d.jsxs("p",{children:[d.jsx("b",{className:"yst-font-medium yst-text-slate-800",children:"Yoast AI Brand Insights"})," ","shows how often your brand appears, how it's described, and how it compares to competitors in tools like ChatGPT."]}),d.jsx("p",{children:"It only takes three simple steps to get your brand insights:"})]}),d.jsx("div",{className:"yst-flex yst-flex-col yst-items-stretch yst-justify-stretch yst-gap-4 yst-pb-8",children:[{title:"1. ADD BRAND INFO",description:"Tell us about your brand and where it's active so we can customize your analysis."},{title:"2. REVIEW QUERIES",description:"Edit or approve the queries generated from your input."},{title:"3. RUN ANALYSIS",description:"Run your queries through relevant AI models to see how your brand shows up."}].map(function(n,r,i){return d.jsxs("div",{className:"yst-relative yst-flex yst-flex-col yst-items-stretch",children:[d.jsxs("div",{className:"yst-flex yst-flex-row yst-items-center yst-justify-stretch yst-gap-6",children:[d.jsx(w.Stepper.Step,{isActive:!0,isComplete:!1,children:d.jsx("span",{className:"yst-hidden",children:r+1})}),d.jsxs("div",{className:"yst-flex yst-flex-1 yst-flex-col yst-gap-2 yst-rounded yst-border yst-border-slate-200 yst-p-6",children:[d.jsx(w.Title,{size:"3",className:"yst-font-semibold yst-uppercase",children:n.title}),d.jsx("p",{className:"yst-my-0 yst-py-0",children:n.description})]})]}),r<i.length-1&&d.jsx("div",{className:"yst-absolute yst-left-[-2px] yst-top-1/2 yst-my-0 yst-ml-[13px] yst-h-full yst-border-l-2 yst-border-l-primary-600"})]},n.title)})})]}),d.jsx(Wl,{className:"yst-justify-end",children:d.jsxs(w.Button,{variant:"primary",onClick:function(){return e("/setup")},className:"yst-gap-1.5",children:["Start your first analysis ",d.jsx(Fb,{})]})})]})})};function Ui(t){return typeof t!="number"?{}:{"yst-text-green-600":t>0,"yst-text-red-600":t<0,"yst-text-gray-400":t===0}}function fs(t){var e=t.score,n=t.total,r=t.suffix,i=t.isLoading,s=i===void 0?!1:i,a=t.className,o=t.hideTotal,l=o===void 0?!1:o,u=t.delta,c=t.deltaFormat,f=c===void 0?"absolute":c,y=t.deltaSuffix,h=t.scoreFormat,p=h===void 0?"absolute":h;return d.jsxs("div",{className:te(a,"yst-font-medium"),children:[d.jsxs("span",{className:"yst-mr-1 yst-text-xl yst-font-bold yst-text-slate-900",children:[s||e===void 0||e===null?"—":e,!s&&e!==void 0&&e!==null&&p==="percentage"?"%":""]}),!l&&n&&n!==0&&n!=="0"&&d.jsxs("span",{className:"yst-text-slate-500",children:["/ ",s?"—":n]}),r&&d.jsxs("span",{className:"yst-text-slate-500",children:[" ",r]}),typeof u=="number"&&!isNaN(u)&&d.jsxs("span",{className:te("yst-ml-2",Ui(u)),children:[u>-1&&"+",u,f==="percentage"&&"%"," ",y]})]})}var i1=["Icon","className","children","position","id"];function s1(t,e){return u1(t)||l1(t,e)||o1(t,e)||a1()}function a1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o1(t,e){if(t){if(typeof t=="string")return ec(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ec(t,e):void 0}}function ec(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function l1(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function u1(t){if(Array.isArray(t))return t}function c1(t,e){if(t==null)return{};var n,r,i=d1(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function d1(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ql(t){var e=t.Icon,n=e===void 0?Nv:e,r=t.className,i=r===void 0?"":r,s=t.children,a=t.position,o=a===void 0?"left":a,l=t.id,u=l===void 0?"":l,c=c1(t,i1),f=D.useState(!1),y=s1(f,2),h=y[0],p=y[1];return s?d.jsxs("div",{className:i||"yst-relative",onMouseEnter:function(){return p(!0)},onMouseLeave:function(){return p(!1)},"aria-describedby":u?"tooltip-button-id":"tooltip-button",...c,children:[d.jsx(n,{className:"yst-relative yst-h-6 yst-w-6 yst-text-slate-400"}),h&&d.jsx(w.Tooltip,{position:o,id:u||"tooltip-button",children:s})]}):null}var hs=function(e){var n=e.title,r=e.tooltip,i=e.size,s=i===void 0?"3":i,a=e.className,o=a===void 0?"":a,l=function(f){var y=typeof f=="string"?f:"tooltip";return"tooltip-".concat(y.toLowerCase().replace(/\s+/g,"-"))},u=l(n);return d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between ".concat(o),children:[d.jsx(w.Title,{size:s,children:n}),d.jsx(Ql,{id:u,children:r})]})},tc=function(e){var n=e.keywords,r=e.badgeClassName;return d.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-2",children:n.map(function(i,s){return i&&d.jsx(w.Badge,{className:r,children:i},s)})})},ly=function(e){var n,r,i,s,a=e.title,o=a===void 0?"Sentiment":a,l=e.tooltip,u=l===void 0?"":l,c=e.data,f=c==null?void 0:c.brandName,y=c==null||(n=c.positivityPercentage)===null||n===void 0?void 0:n.value,h=c==null||(r=c.positivityPercentage)===null||r===void 0||(r=r.previous)===null||r===void 0?void 0:r.difference,p=c==null||(i=c.keywords)===null||i===void 0?void 0:i.positive,m=c==null||(s=c.keywords)===null||s===void 0?void 0:s.negative,g=!c||y===void 0&&h===void 0;return d.jsx(w.Card,{className:"yst-overflow-visible",children:d.jsxs(w.Card.Content,{className:"yst-space-y-8",children:[d.jsx(hs,{title:o,tooltip:u}),d.jsx("div",{className:"yst-space-y-3",children:!g&&d.jsxs(d.Fragment,{children:[d.jsx("p",{children:f||d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-20"})}),d.jsxs("div",{children:[d.jsx("div",{className:"yst-inline-flex",children:d.jsx(fs,{className:"yst-mb-1.5",score:y,scoreFormat:"percentage",suffix:"positive",delta:h})}),d.jsx(w.ProgressBar,{max:100,min:0,progress:y||0,className:te({"yst-bg-red-500":y},"[&>*]:yst-bg-green-500")})]})]})}),g&&d.jsx(w.Alert,{variant:"info",children:"The selected AI model returned no brand sentiment data for your queries. This can happen with some queries or models."}),!!p&&d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(w.Title,{as:"h5",size:"5",children:"Positive keywords"}),d.jsx(tc,{keywords:p,badgeClassName:"yst-bg-green-100 yst-text-green-800"})]}),!!m&&d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(w.Title,{as:"h5",size:"5",children:"Negative keywords"}),d.jsx(tc,{keywords:m,badgeClassName:"yst-bg-red-100 yst-text-red-800"})]})]})})};function Hi(t){"@babel/helpers - typeof";return Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hi(t)}var f1=["data"];function nc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function h1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nc(Object(n),!0).forEach(function(r){y1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function y1(t,e,n){return(e=p1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p1(t){var e=m1(t,"string");return Hi(e)=="symbol"?e:e+""}function m1(t,e){if(Hi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Hi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function g1(t,e){if(t==null)return{};var n,r,i=v1(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function v1(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var Hn=function(e,n,r){var i=Rt(),s=i.brandId,a=i.analysisId,o=i.model,l=s,u=a,c=o,f=Ea(l,u,{query:{enabled:!!l&&!!u,select:function(g){var v=g.data;return v==null?void 0:v.analysis}}}),y=f.data,h=g1(f,f1),p=D.useMemo(function(){if(!y||!c)return null;var m=y.scans||[];return m.find(function(g){return String(g.aiProvider)===String(c)})||null},[y,c]);return h1({data:p},h)};function b1(){var t,e=Hn(),n=e.data;return d.jsx(ly,{title:"Brand sentiment",data:n==null||(t=n.sentiment)===null||t===void 0?void 0:t.own,tooltip:"Percentage of positive versus negative keywords in your query results related to your brand."})}var x1=["children","as","className"];function A1(t,e){if(t==null)return{};var n,r,i=w1(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function w1(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var ys=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var s=e.reduce(function(a,o,l){return a+o+(r[l]||"")},"");return function(a){var o=a.children,l=a.as,u=l===void 0?"div":l,c=a.className,f=c===void 0?"":c,y=A1(a,x1);return d.jsx(u,{className:te(String(s).trim(),f),...y,children:o})}},$a=[{bg:"yst-bg-blue-200",text:"yst-text-blue-900"},{bg:"yst-bg-green-200",text:"yst-text-green-900"},{bg:"yst-bg-purple-200",text:"yst-text-purple-900"},{bg:"yst-bg-pink-200",text:"yst-text-pink-900"},{bg:"yst-bg-yellow-200",text:"yst-text-yellow-900"},{bg:"yst-bg-indigo-200",text:"yst-text-indigo-900"},{bg:"yst-bg-red-200",text:"yst-text-red-900"},{bg:"yst-bg-orange-200",text:"yst-text-orange-900"},{bg:"yst-bg-teal-200",text:"yst-text-teal-900"},{bg:"yst-bg-cyan-200",text:"yst-text-cyan-900"},{bg:"yst-bg-lime-200",text:"yst-text-lime-900"},{bg:"yst-bg-emerald-200",text:"yst-text-emerald-900"},{bg:"yst-bg-sky-200",text:"yst-text-sky-900"},{bg:"yst-bg-violet-200",text:"yst-text-violet-900"},{bg:"yst-bg-fuchsia-200",text:"yst-text-fuchsia-900"},{bg:"yst-bg-rose-200",text:"yst-text-rose-900"},{bg:"yst-bg-amber-200",text:"yst-text-amber-900"}],rc=function(e){if(!e)return $a[0];if(e.toLowerCase()==="other")return{bg:"yst-bg-slate-200",text:"yst-text-slate-900"};for(var n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);n=(n<<5)-n+i,n=n&n}var s=Math.abs(n)%$a.length;return $a[s]};function Wi(t){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wi(t)}var ic;function sc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ac(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sc(Object(n),!0).forEach(function(r){S1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function S1(t,e,n){return(e=C1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C1(t){var e=j1(t,"string");return Wi(e)=="symbol"?e:e+""}function j1(t,e){if(Wi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Wi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function O1(t){return T1(t)||k1(t)||uy(t)||E1()}function E1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
29
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k1(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function T1(t){if(Array.isArray(t))return el(t)}function oc(t,e){return I1(t)||M1(t,e)||uy(t,e)||P1()}function P1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uy(t,e){if(t){if(typeof t=="string")return el(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?el(t,e):void 0}}function el(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function M1(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function I1(t){if(Array.isArray(t))return t}function L1(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var di=ys(ic||(ic=L1(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-slate-400 yst-inline-flex yst-w-20"]))),lc=function(e){var n=e.data,r=e.totalQueries,i=e.isLoading,s=i===void 0?!1:i,a=e.isFirstScan,o=a===void 0?!1:a,l=e.enableCategories,u=l===void 0?!1:l,c=s||!n,f=n||{},y=f.rank,h=f.url,p=f.rootDomain,m=f.category,g=f.impact,v=f.numberOfMentions,S=v==null?void 0:v.value,k=v==null?void 0:v.previous,C=typeof(k==null?void 0:k.difference)=="number"?k.difference:S;return d.jsxs("tr",{className:"yst-flex yst-flex-col yst-py-4 md:yst-table-row md:yst-py-0",children:[d.jsxs(w.Table.Cell,{className:"yst-p-0 yst-py-1 md:yst-ml-0 md:yst-p-2",children:[d.jsx(di,{as:"span",children:"Rank:"}),c?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsx("span",{className:"yst-font-medium yst-text-slate-900",children:y!=null?y:"—"})]}),d.jsx(w.Table.Cell,{className:"yst-break-all yst-p-0 yst-py-1 md:yst-ml-0 md:yst-w-1/2 md:yst-p-2",children:c?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-full"}):d.jsxs(w.Link,{className:"yst-font-medium",href:h||"#",rel:"nofollow noreferrer",target:"_blank",children:[d.jsx("span",{className:"yst-inline yst-break-all",children:h!=null?h:"—"}),d.jsx(ay,{className:"yst-ml-1 yst-inline-block yst-h-4 yst-w-4 yst-align-text-bottom"})]})}),d.jsxs(w.Table.Cell,{className:"yst-p-0 yst-py-1 yst-font-medium md:yst-ml-0 md:yst-p-2",children:[d.jsx(di,{as:"span",children:"Domain:"}),c?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsx("span",{className:"yst-inline yst-break-all yst-font-medium yst-text-slate-900",children:p!=null?p:"—"})]}),u&&d.jsxs(w.Table.Cell,{className:"yst-p-0 yst-py-1 md:yst-ml-0 md:yst-p-2",children:[d.jsx(di,{as:"span",children:"Category:"}),c?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-16"}):d.jsx(w.Badge,{className:te(rc(m||"").bg,rc(m||"").text),children:m!=null?m:"—"})]}),d.jsxs(w.Table.Cell,{className:te("yst-p-0 yst-py-0 md:yst-ml-0 md:yst-p-2","yst-font-medium",{"yst-text-green-600":g==="High","yst-text-yellow-600":g==="Medium","yst-text-red-600":g==="Low"}),children:[d.jsx(di,{as:"span",children:"Impact:"}),c?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-12"}):g!=null?g:"—"]}),d.jsxs(w.Table.Cell,{className:"yst-flex yst-p-0 yst-pt-1 md:yst-ml-0 md:yst-p-2 md:yst-text-right",children:[d.jsx(di,{as:"span",children:"Mentions:"}),c?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):S?d.jsxs("span",{className:"yst-inline-flex yst-justify-start yst-gap-4 md:yst-justify-end",children:[d.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium",children:[d.jsx("span",{className:"yst-whitespace-nowrap yst-text-slate-500",children:S}),d.jsxs("span",{className:"yst-whitespace-nowrap yst-text-slate-900",children:["/ ",r]})]}),!o&&d.jsxs("span",{className:te(Ui(C)),children:[C>-1&&"+",C]})]}):"—"]})]},c?void 0:h)},R1=function(e){var n,r,i,s,a,o=e.enableCategories,l=o===void 0?!1:o,u=D.useState("all"),c=oc(u,2),f=c[0],y=c[1],h=D.useState(1),p=oc(h,2),m=p[0],g=p[1],v=Hn(),S=v.data,k=v.isLoading,C=v.isRefetching,A=S==null?void 0:S.citations,j=(S==null||(n=S.scores)===null||n===void 0||(n=n.standardized)===null||n===void 0?void 0:n.citations)||{},b=Object.hasOwn(j,"previous"),x=A==null||(r=A.list)===null||r===void 0?void 0:r.filter(function(O){return f==="all"?!0:O.category===f}),M=10,_=(x==null?void 0:x.length)||0,I=Math.ceil(_/M),P=(m-1)*M,H=P+M,N=x==null?void 0:x.slice(P,H);return D.useEffect(function(){m>I&&I>0&&g(1)},[I,m,g,f]),d.jsx(w.Card,{className:"yst-overflow-visible md:yst-col-span-2",children:d.jsxs(w.Card.Content,{className:"yst-flex yst-flex-col yst-gap-6",children:[d.jsxs("div",{className:"yst-space-y-4",children:[d.jsx(hs,{title:"Citations",tooltip:"Sources the AI used to support brand mentions in the results."}),d.jsx("p",{children:"This table highlights the most important sources where your brand was cited."}),d.jsx(fs,{score:A==null||(i=A.total)===null||i===void 0?void 0:i.value,suffix:"citations",delta:A==null||(s=A.total)===null||s===void 0||(s=s.previous)===null||s===void 0?void 0:s.difference,deltaSuffix:"since last analysis",isLoading:k,hideTotal:!0})]}),(A==null||(a=A.list)===null||a===void 0?void 0:a.length)===0&&!k&&!C?d.jsx(w.Alert,{children:"The selected AI model returned no citations for your queries. This can happen with some queries or models."}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{children:[l&&d.jsx(w.Select,{className:"yst-mb-4 md:yst-max-w-sm",label:"Filter categories",value:f,onChange:function(O){y(O)},id:"citation-category-filter",options:[{value:"all",label:"All categories"}].concat(O1(A!=null&&A.categories?A.categories.map(function(O){return{value:O,label:O}}):[]))}),d.jsxs(w.Table,{variant:"minimal",children:[d.jsx(w.Table.Head,{className:"yst-font-semibold",children:d.jsxs(w.Table.Row,{children:[d.jsx(w.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-pl-2",children:"#"}),d.jsx(w.Table.Cell,{className:"yst yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2",children:"URL"}),d.jsx(w.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2",children:"Root domain"}),l&&d.jsx(w.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell",children:"Category"}),d.jsx(w.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2",children:"Impact"}),d.jsx(w.Table.Cell,{className:"yst-hidden yst-text-right yst-text-slate-900 md:yst-table-cell",children:"Mentions"})]})}),d.jsx(w.Table.Body,{children:k||C?Array.from({length:5}).map(function(O,L){return d.jsx(lc,{isLoading:!0,enableCategories:l},"skeleton-".concat(L))}):N&&N.length>0?N.map(function(O,L){return d.jsx(lc,{data:ac(ac({},O),{},{rank:P+L+1}),totalQueries:S==null?void 0:S.numberOfQueries,isFirstScan:!b,enableCategories:l},"citation-table-row-".concat(O.url,"-").concat(L))}):d.jsx(w.Table.Row,{children:d.jsxs(w.Table.Cell,{colSpan:l?6:5,className:"yst-py-8 yst-text-center yst-text-slate-500",children:[f==="all"?"No citations found.":'No citations found for the "'.concat(f,'" category.')," ",d.jsx(w.Link,{onClick:function(){return y("all")},children:"Show all categories."})]})},"no-results")})]})]}),x&&x.length>M&&d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-end yst-gap-4",children:[d.jsxs("p",{className:"yst-mb-0",children:["Showing ",P+1," to"," ",H>_?_:H," of"," ",_," results"]}),d.jsx(w.Pagination,{variant:"text",className:"yst-flex-row yst-gap-0",current:m,total:I,onNavigate:g,screenReaderTextPrevious:"Previous page",screenReaderTextNext:"Next page"})]})]})]})})};function N1(t,e){return F1(t)||B1(t,e)||D1(t,e)||_1()}function _1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D1(t,e){if(t){if(typeof t=="string")return uc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uc(t,e):void 0}}function uc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function B1(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function F1(t){if(Array.isArray(t))return t}var cc=function(e){var n,r=e.data,i=e.totalQueries,s=e.isFirstScan,a=s===void 0?!0:s,o=e.isLoading,l=o===void 0?!1:o,u=l||!r,c=r||{},f=c.rank,y=c.brand,h=f==null?void 0:f.previous,p=typeof(h==null?void 0:h.difference)=="number"?h.difference*-1:void 0,m=y==null?void 0:y.numberOfMentions,g=m==null?void 0:m.previous,v=typeof(g==null?void 0:g.difference)=="number"?g.difference:void 0;return d.jsxs(w.Table.Row,{children:[d.jsx(w.Table.Cell,{children:u?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):d.jsxs("span",{className:"yst-flex yst-justify-between yst-gap-4",children:[d.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-2 yst-font-medium",children:[d.jsx("span",{className:"yst-text-slate-500",children:"#"}),d.jsx("span",{className:"yst-text-slate-900",children:f==null?void 0:f.value})]}),!a&&d.jsx("span",{className:te("yst-inline-flex yst-items-center yst-justify-end",Ui(h&&typeof p=="number"?p:0)),children:h&&typeof p=="number"?d.jsxs(d.Fragment,{children:[Math.abs(p),p>0?d.jsx(zb,{className:"yst-h-4 yst-w-4"}):d.jsx(Qb,{className:"yst-h-4 yst-w-4"})]}):d.jsx(Ju,{className:"yst-mx-1 yst-h-4 yst-w-4"})})]})}),d.jsx(w.Table.Cell,{children:u?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsx("span",{className:"yst-font-medium",children:y!=null&&y.isSelf?d.jsx(Fi,{children:y==null?void 0:y.name}):(n=y==null?void 0:y.name)!==null&&n!==void 0?n:"—"})}),d.jsx(w.Table.Cell,{children:u?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):d.jsxs("span",{className:"yst-flex yst-justify-end yst-gap-4",children:[d.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium",children:[d.jsx("span",{className:"yst-text-slate-500",children:m==null?void 0:m.value}),d.jsxs("span",{className:"yst-text-slate-900",children:["/ ",i]})]}),!a&&d.jsx("span",{className:te("yst-ml-auto",Ui(g&&typeof v=="number"?v:0)),children:g&&typeof v=="number"?d.jsxs(d.Fragment,{children:[v>-1&&"+",v]}):d.jsx(Ju,{className:"yst-h-4 yst-w-4"})})]})})]},u||f==null?void 0:f.value)},U1=function(e){var n,r,i=e.className,s=D.useRef(null),a=D.useState(1),o=N1(a,2),l=o[0],u=o[1],c=Hn(),f=c.data,y=c.isLoading,h=c.isRefetching,p=f==null||(n=f.rankings)===null||n===void 0?void 0:n.list,m=(f==null||(r=f.scores)===null||r===void 0||(r=r.standardized)===null||r===void 0?void 0:r.ranking)||{},g=Object.hasOwn(m,"previous"),v=5,S=(p==null?void 0:p.length)||0,k=Math.ceil(S/v),C=(l-1)*v,A=C+v,j=p==null?void 0:p.slice(C,A);return D.useEffect(function(){l>k&&k>0&&u(1)},[k,l,u]),d.jsx(w.Card,{ref:s,className:te("yst-overflow-visible",i),children:d.jsxs(w.Card.Content,{className:"yst-mt-0 yst-space-y-6",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(hs,{title:"Competitor ranking",tooltip:"How often competitors are mentioned in your submitted queries."}),d.jsx("p",{children:"Brands with the most mentions for your prompts."})]}),!y&&!h&&(!p||p.length===0)?d.jsx(w.Alert,{variant:"info",children:"The selected AI model returned no brands for your queries. This can happen with some queries or models."}):d.jsxs(w.Table,{variant:"minimal",children:[d.jsx(w.Table.Head,{children:d.jsxs(w.Table.Row,{children:[d.jsx(w.Table.Cell,{className:"yst-w-20 yst-font-semibold",children:"Rank"}),d.jsx(w.Table.Cell,{className:"yst-font-semibold",children:"Brand"}),d.jsx(w.Table.Cell,{className:"yst-w-20 yst-text-right yst-font-semibold",children:"Mentions"})]})}),d.jsx(w.Table.Body,{children:j&&Array.isArray(j)&&j.length>0?j.map(function(b){var x;return d.jsx(cc,{data:b,totalQueries:f==null?void 0:f.numberOfQueries,isFirstScan:!g},"rank-row-".concat((x=b.rank)===null||x===void 0?void 0:x.value))}):y||h?Array.from({length:v}).map(function(b,x){return d.jsx(cc,{isLoading:!0},"skeleton-".concat(x))}):null})]}),!y&&!h&&p&&p.length>v&&d.jsx(w.Pagination,{current:l,total:k,className:"yst-flex-row",onNavigate:u,screenReaderTextNext:"Next",screenReaderTextPrevious:"Previous",variant:"text"})]})})},H1=function(){var e,n=Hn(),r=n.data,i=r==null||(e=r.sentiment)===null||e===void 0?void 0:e.topCompetitor;return d.jsx(ly,{title:"Competitor sentiment",data:i,tooltip:"Percentage of positive versus negative keywords in your query results related to your competitor's brand."})},W1=function(e){var n=e.brand,r=Ct(),i=ds(),s=i.setBrandId;return(n==null?void 0:n.setupStatus)==="pendingQuerySelection"?d.jsx(w.Alert,{className:"yst-mt-0",children:d.jsxs("div",{className:"yst-max-w-xl yst-space-y-4",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsxs("h3",{className:"yst-font-medium",children:["Finish your analysis for ",(n==null?void 0:n.name)||"Brand ".concat(n==null?void 0:n.id)]}),d.jsx("p",{children:"Your brand is saved, but you haven’t completed the analysis yet. Review your queries and run the analysis to get your brand insights!"})]}),d.jsx("div",{className:"yst-flex yst-justify-start yst-gap-6",children:d.jsx(w.Link,{onClick:function(){n.id?(s(n.id),r("/setup/".concat(n.id,"/queries"))):console.error("Brand ID is missing.")},children:"Review queries"})})]})}):null},Ma=function(e){var n=e.isOpen,r=e.onClose,i=e.onConfirm,s=e.isLoading,a=s===void 0?!1:s,o=e.title,l=e.description,u=e.disabled,c=u===void 0?!1:u,f=e.confirmText,y=f===void 0?"Yes, delete":f,h=e.cancelText,p=h===void 0?"No, go back":h,m=e.className;return d.jsx(w.Modal,{isOpen:n,onClose:r,position:"center",as:"div",className:m,children:d.jsxs(w.Modal.Panel,{children:[d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-red-100",children:d.jsx(Zo,{className:"yst-h-6 yst-w-6 yst-text-red-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:o})}),d.jsx(w.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:typeof l=="string"?d.jsx("p",{children:l}):l})]})]}),d.jsxs(w.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[d.jsx(w.Button,{variant:"secondary",onClick:r,children:p}),d.jsx(w.Button,{variant:"error",onClick:i,isLoading:a,disabled:c,children:y})]})]})})};const cy=6048e5,Q1=864e5,dc=Symbol.for("constructDateFrom");function St(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&dc in t?t[dc](e):t instanceof Date?new t.constructor(e):new Date(e)}function ct(t,e){return St(e||t,t)}function dy(t,e,n){const r=ct(t,n==null?void 0:n.in);if(isNaN(e))return St(t,NaN);if(!e)return r;const i=r.getDate(),s=St(t,r.getTime());s.setMonth(r.getMonth()+e+1,0);const a=s.getDate();return i>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),i),r)}let q1={};function Ia(){return q1}function Qi(t,e){var o,l,u,c,f,y,h,p;const n=Ia(),r=(p=(h=(c=(u=e==null?void 0:e.weekStartsOn)!=null?u:(l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)!=null?c:n.weekStartsOn)!=null?h:(y=(f=n.locale)==null?void 0:f.options)==null?void 0:y.weekStartsOn)!=null?p:0,i=ct(t,e==null?void 0:e.in),s=i.getDay(),a=(s<r?7:0)+s-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function sa(t,e){return Qi(t,{...e,weekStartsOn:1})}function fy(t,e){const n=ct(t,e==null?void 0:e.in),r=n.getFullYear(),i=St(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=sa(i),a=St(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=sa(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function fc(t){const e=ct(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function La(t,...e){const n=St.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function aa(t,e){const n=ct(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function z1(t,e,n){const[r,i]=La(n==null?void 0:n.in,t,e),s=aa(r),a=aa(i),o=+s-fc(s),l=+a-fc(a);return Math.round((o-l)/Q1)}function G1(t,e){const n=fy(t,e),r=St(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),sa(r)}function Y1(t){return St(t,Date.now())}function V1(t,e,n){const[r,i]=La(n==null?void 0:n.in,t,e);return+aa(r)==+aa(i)}function K1(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function X1(t){return!(!K1(t)&&typeof t!="number"||isNaN(+ct(t)))}function J1(t,e){const n=ct(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Z1(t,e){const[n,r]=La(t,e.start,e.end);return{start:n,end:r}}function $1(t,e){const{start:n,end:r}=Z1(e==null?void 0:e.in,t);let i=+n>+r;const s=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let o=1;const l=[];for(;+a<=s;)l.push(St(n,a)),a.setDate(a.getDate()+o),a.setHours(0,0,0,0);return i?l.reverse():l}function ex(t,e){const n=ct(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function tx(t,e){const n=ct(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const nx={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},rx=(t,e,n)=>{let r;const i=nx[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function eo(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const ix={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ax={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ox={date:eo({formats:ix,defaultWidth:"full"}),time:eo({formats:sx,defaultWidth:"full"}),dateTime:eo({formats:ax,defaultWidth:"full"})},lx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ux=(t,e,n,r)=>lx[t];function fi(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=t.formattingValues[o]||t.formattingValues[a]}else{const a=t.defaultWidth,o=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[o]||t.values[a]}const s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}const cx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},dx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hx={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},yx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},px={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},mx=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},gx={ordinalNumber:mx,era:fi({values:cx,defaultWidth:"wide"}),quarter:fi({values:dx,defaultWidth:"wide",argumentCallback:t=>t-1}),month:fi({values:fx,defaultWidth:"wide"}),day:fi({values:hx,defaultWidth:"wide"}),dayPeriod:fi({values:yx,defaultWidth:"wide",formattingValues:px,defaultFormattingWidth:"wide"})};function hi(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;const a=s[0],o=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?bx(o,f=>f.test(a)):vx(o,f=>f.test(a));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=e.slice(a.length);return{value:u,rest:c}}}function vx(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function bx(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function xx(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],s=e.match(t.parsePattern);if(!s)return null;let a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const o=e.slice(i.length);return{value:a,rest:o}}}const Ax=/^(\d+)(th|st|nd|rd)?/i,wx=/\d+/i,Sx={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Cx={any:[/^b/i,/^(a|c)/i]},jx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ox={any:[/1/i,/2/i,/3/i,/4/i]},Ex={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},kx={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Tx={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Px={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Mx={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ix={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Lx={ordinalNumber:xx({matchPattern:Ax,parsePattern:wx,valueCallback:t=>parseInt(t,10)}),era:hi({matchPatterns:Sx,defaultMatchWidth:"wide",parsePatterns:Cx,defaultParseWidth:"any"}),quarter:hi({matchPatterns:jx,defaultMatchWidth:"wide",parsePatterns:Ox,defaultParseWidth:"any",valueCallback:t=>t+1}),month:hi({matchPatterns:Ex,defaultMatchWidth:"wide",parsePatterns:kx,defaultParseWidth:"any"}),day:hi({matchPatterns:Tx,defaultMatchWidth:"wide",parsePatterns:Px,defaultParseWidth:"any"}),dayPeriod:hi({matchPatterns:Mx,defaultMatchWidth:"any",parsePatterns:Ix,defaultParseWidth:"any"})},Rx={code:"en-US",formatDistance:rx,formatLong:ox,formatRelative:ux,localize:gx,match:Lx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nx(t,e){const n=ct(t,e==null?void 0:e.in);return z1(n,tx(n))+1}function _x(t,e){const n=ct(t,e==null?void 0:e.in),r=+sa(n)-+G1(n);return Math.round(r/cy)+1}function hy(t,e){var c,f,y,h,p,m,g,v;const n=ct(t,e==null?void 0:e.in),r=n.getFullYear(),i=Ia(),s=(v=(g=(h=(y=e==null?void 0:e.firstWeekContainsDate)!=null?y:(f=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)!=null?h:i.firstWeekContainsDate)!=null?g:(m=(p=i.locale)==null?void 0:p.options)==null?void 0:m.firstWeekContainsDate)!=null?v:1,a=St((e==null?void 0:e.in)||t,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const o=Qi(a,e),l=St((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=Qi(l,e);return+n>=+o?r+1:+n>=+u?r:r-1}function Dx(t,e){var o,l,u,c,f,y,h,p;const n=Ia(),r=(p=(h=(c=(u=e==null?void 0:e.firstWeekContainsDate)!=null?u:(l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)!=null?c:n.firstWeekContainsDate)!=null?h:(y=(f=n.locale)==null?void 0:f.options)==null?void 0:y.firstWeekContainsDate)!=null?p:1,i=hy(t,e),s=St((e==null?void 0:e.in)||t,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Qi(s,e)}function Bx(t,e){const n=ct(t,e==null?void 0:e.in),r=+Qi(n,e)-+Dx(n,e);return Math.round(r/cy)+1}function Se(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const vn={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return Se(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Se(n+1,2)},d(t,e){return Se(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Se(t.getHours()%12||12,e.length)},H(t,e){return Se(t.getHours(),e.length)},m(t,e){return Se(t.getMinutes(),e.length)},s(t,e){return Se(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Se(i,e.length)}},Sr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hc={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return vn.y(t,e)},Y:function(t,e,n,r){const i=hy(t,r),s=i>0?i:1-i;if(e==="YY"){const a=s%100;return Se(a,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):Se(s,e.length)},R:function(t,e){const n=fy(t);return Se(n,e.length)},u:function(t,e){const n=t.getFullYear();return Se(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Se(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Se(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return vn.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Se(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=Bx(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):Se(i,e.length)},I:function(t,e,n){const r=_x(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):Se(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):vn.d(t,e)},D:function(t,e,n){const r=Nx(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Se(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Se(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Se(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return Se(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=Sr.noon:r===0?i=Sr.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=Sr.evening:r>=12?i=Sr.afternoon:r>=4?i=Sr.morning:i=Sr.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return vn.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):vn.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Se(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):Se(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):vn.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):vn.s(t,e)},S:function(t,e){return vn.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return pc(r);case"XXXX":case"XX":return Vn(r);case"XXXXX":case"XXX":default:return Vn(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return pc(r);case"xxxx":case"xx":return Vn(r);case"xxxxx":case"xxx":default:return Vn(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+yc(r,":");case"OOOO":default:return"GMT"+Vn(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+yc(r,":");case"zzzz":default:return"GMT"+Vn(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return Se(r,e.length)},T:function(t,e,n){return Se(+t,e.length)}};function yc(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+e+Se(s,2)}function pc(t,e){return t%60===0?(t>0?"-":"+")+Se(Math.abs(t)/60,2):Vn(t,e)}function Vn(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Se(Math.trunc(r/60),2),s=Se(r%60,2);return n+i+e+s}const mc=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},yy=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Fx=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return mc(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",mc(r,e)).replace("{{time}}",yy(i,e))},Ux={p:yy,P:Fx},Hx=/^D+$/,Wx=/^Y+$/,Qx=["D","DD","YY","YYYY"];function qx(t){return Hx.test(t)}function zx(t){return Wx.test(t)}function Gx(t,e,n){const r=Yx(t,e,n);if(console.warn(r),Qx.includes(t))throw new RangeError(r)}function Yx(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Vx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xx=/^'([^]*?)'?$/,Jx=/''/g,Zx=/[a-zA-Z]/;function wi(t,e,n){var c,f,y,h,p,m,g,v,S;const r=Ia(),i=(c=r.locale)!=null?c:Rx,s=(p=(h=r.firstWeekContainsDate)!=null?h:(y=(f=r.locale)==null?void 0:f.options)==null?void 0:y.firstWeekContainsDate)!=null?p:1,a=(S=(v=r.weekStartsOn)!=null?v:(g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)!=null?S:0,o=ct(t,n==null?void 0:n.in);if(!X1(o))throw new RangeError("Invalid time value");let l=e.match(Kx).map(k=>{const C=k[0];if(C==="p"||C==="P"){const A=Ux[C];return A(k,i.formatLong)}return k}).join("").match(Vx).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const C=k[0];if(C==="'")return{isToken:!1,value:$x(k)};if(hc[C])return{isToken:!0,value:k};if(C.match(Zx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:k}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return l.map(k=>{if(!k.isToken)return k.value;const C=k.value;(zx(C)||qx(C))&&Gx(C,e,String(t));const A=hc[C[0]];return A(o,C,i.localize,u)}).join("")}function $x(t){const e=t.match(Xx);return e?e[1].replace(Jx,"'"):t}function gc(t,e,n){const[r,i]=La(n==null?void 0:n.in,t,e);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function eA(t,e){return V1(St(t,t),Y1(t))}function tA(t,e,n){return dy(t,-1,n)}function qi(t){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(t)}function to(t,e,n){return(e=nA(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nA(t){var e=rA(t,"string");return qi(e)=="symbol"?e:e+""}function rA(t,e){if(qi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(qi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vc(t,e){return oA(t)||aA(t,e)||sA(t,e)||iA()}function iA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
32
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sA(t,e){if(t){if(typeof t=="string")return bc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bc(t,e):void 0}}function bc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function aA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function oA(t){if(Array.isArray(t))return t}var Ut={selected:{background:"yst-bg-primary-500",text:"yst-text-white",hover:"hover:yst-bg-primary-600"},hasAnalysis:{border:"yst-border-2 yst-border-primary-500",text:"yst-text-slate-900",hover:"hover:yst-bg-primary-50"},today:{underline:"yst-border-b-2 yst-border-slate-400"},indicator:{default:"yst-bg-blue-500"}},lA=function(e){var n=e.analyses,r=e.selectedAnalysisId,i=e.onAnalysisSelect,s=e.isLoading,a=s===void 0?!1:s,o=e.isOpen,l=o===void 0?!1:o,u=e.onClose,c=D.useState(new Date),f=vc(c,2),y=f[0],h=f[1],p=function(x){if(!x)return null;var M=x.slice(0,10),_=M.split("-"),I=vc(_,3),P=I[0],H=I[1],N=I[2],O=Number(P),L=Number(H),R=Number(N);return Number.isNaN(O)||Number.isNaN(L)||Number.isNaN(R)||L<1||L>12||R<1||R>31?null:new Date(O,L-1,R)},m=D.useMemo(function(){var b=new Map;return n.forEach(function(x){var M=p(x.createdAt),_=M?wi(M,"yyyy-MM-dd"):"";_&&(b.has(_)||b.set(_,[]),b.get(_).push(x))}),b},[n]);D.useEffect(function(){if(l&&r){var b=n.find(function(I){return I.id===r});if(b){var x=p(b.createdAt);x&&h(x)}}else if(l&&n.length>0){var M=n.reduce(function(I,P){return new Date(P.createdAt)>new Date(I.createdAt)?P:I}),_=p(M.createdAt);_&&h(_)}},[l,r,n]);var g=D.useMemo(function(){return n.length===0?null:n.reduce(function(b,x){return new Date(x.createdAt)>new Date(b.createdAt)?x:b})},[n]),v=function(){if(g){var x=p(g.createdAt);x&&h(x)}},S=D.useMemo(function(){if(!g)return!1;var b=p(g.createdAt);return b?gc(b,y):!1},[g,y]),k=D.useMemo(function(){var b=ex(y),x=J1(y),M=new Date(b),_=M.getDay(),I=_===0?6:_-1;M.setDate(M.getDate()-I);var P=new Date(x),H=P.getDay(),N=H===0?0:7-H;return P.setDate(P.getDate()+N),$1({start:M,end:P}).map(function(O){var L=wi(O,"yyyy-MM-dd"),R=m.get(L)||[],Y=R.find(function(z){return String(z.id)===String(r)});return{date:L,dateObj:O,isCurrentMonth:gc(O,y),isToday:eA(O),isSelected:!!Y,hasAnalyses:R.length>0,analyses:R}})},[y,m,r]),C=function(){h(function(x){return tA(x)})},A=function(){h(function(x){return dy(x,1)})},j=function(x){if(x.hasAnalyses){if(x.analyses.length===1)i(x.analyses[0].id);else{var M=x.analyses.reduce(function(_,I){return new Date(I.createdAt)>new Date(_.createdAt)?I:_});i(M.id)}u==null||u()}};return l?a?d.jsx("div",{className:"yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg",children:d.jsxs("div",{className:"yst-animate-pulse yst-space-y-4",children:[d.jsx("div",{className:"yst-h-6 yst-rounded yst-bg-slate-200"}),d.jsx("div",{className:"yst-h-48 yst-rounded yst-bg-slate-200"})]})}):d.jsxs("div",{className:"yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-min-w-80 yst-max-w-sm yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg",children:[d.jsxs("div",{className:"yst-mb-6 yst-flex yst-items-center yst-justify-between",children:[d.jsxs("button",{type:"button",onClick:C,className:"yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500",children:[d.jsx("span",{className:"yst-sr-only",children:"Previous month"}),d.jsx(Sv,{className:"yst-h-5 yst-w-5"})]}),d.jsx("h2",{className:"yst-text-sm yst-font-semibold yst-text-slate-900",children:wi(y,"MMMM yyyy")}),d.jsxs("button",{type:"button",onClick:A,className:"yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500",children:[d.jsx("span",{className:"yst-sr-only",children:"Next month"}),d.jsx(jv,{className:"yst-h-5 yst-w-5"})]})]}),d.jsx("div",{className:"yst-mb-0 yst-grid yst-grid-cols-7 yst-gap-x-1",children:["M","T","W","T","F","S","S"].map(function(b,x){return d.jsx("div",{className:"yst-py-2 yst-text-center yst-text-xs yst-font-medium yst-text-slate-500",children:b},"".concat(b,"-").concat(x))})}),d.jsx("div",{className:"yst-grid yst-grid-cols-7 yst-gap-x-1",children:k.map(function(b){return d.jsx("div",{className:"yst-flex yst-items-center yst-justify-center yst-py-1",children:d.jsxs("button",{type:"button",onClick:function(){return j(b)},disabled:!b.hasAnalyses,className:te("yst-relative yst-rounded-full yst-text-sm yst-transition-colors","yst-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center","yst-p-0",{"yst-text-slate-900":b.isCurrentMonth,"yst-text-slate-400":!b.isCurrentMonth},{"focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-blue-500":b.hasAnalyses,"yst-cursor-not-allowed":!b.hasAnalyses,"yst-cursor-pointer":b.hasAnalyses},to({},"".concat(Ut.selected.background," ").concat(Ut.selected.text," ").concat(Ut.selected.hover),b.isSelected),to({},"".concat(Ut.hasAnalysis.border," ").concat(Ut.hasAnalysis.text," ").concat(Ut.hasAnalysis.hover),b.hasAnalyses&&!b.isSelected)),children:[d.jsx("span",{className:te("yst-relative yst-z-10 yst-w-4",to({},Ut.today.underline,b.isToday&&!b.isSelected)),children:wi(b.dateObj,"d")}),b.hasAnalyses&&b.analyses.length>1&&!b.isSelected&&d.jsx("span",{className:te("yst-absolute yst-right-1 yst-top-1 yst-h-2 yst-w-2 yst-rounded-full",Ut.indicator.default)})]})},b.date)})}),d.jsxs("div",{className:"yst-mt-4 yst-flex yst-items-center yst-gap-4 yst-text-xs yst-text-slate-600",children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[d.jsx("div",{className:"yst-h-3 yst-w-3 yst-rounded-full ".concat(Ut.hasAnalysis.border)}),d.jsx("span",{children:"Has analysis"})]}),d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[d.jsx("div",{className:"yst-h-3 yst-w-3 yst-rounded-full ".concat(Ut.selected.background)}),d.jsx("span",{children:"Selected"})]}),d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[d.jsx("div",{className:"yst-h-0.5 yst-w-4 yst-bg-slate-400"}),d.jsx("span",{children:"Today"})]})]}),g&&d.jsx("div",{className:"yst-mt-6",children:d.jsx(w.Button,{onClick:v,className:"yst-w-full",disabled:S,children:"Show latest analysis"})})]}):null};function no(t,e){return fA(t)||dA(t,e)||cA(t,e)||uA()}function uA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cA(t,e){if(t){if(typeof t=="string")return xc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xc(t,e):void 0}}function xc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function dA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function fA(t){if(Array.isArray(t))return t}var hA=function(e){var n=e.analyses,r=e.selectedAnalysisId,i=e.onAnalysisSelect,s=e.isLoading,a=s===void 0?!1:s,o=e.disabled,l=o===void 0?!1:o,u=e.id,c=u===void 0?"analysis-date-select":u,f=D.useState(!1),y=no(f,2),h=y[0],p=y[1],m=D.useState("latest"),g=no(m,2),v=g[0],S=g[1],k=D.useRef(null),C=function(O){if(!O)return null;var L=O.slice(0,10),R=L.split("-"),Y=no(R,3),z=Y[0],F=Y[1],Q=Y[2],U=Number(z),q=Number(F),W=Number(Q);return Number.isNaN(U)||Number.isNaN(q)||Number.isNaN(W)||q<1||q>12||W<1||W>31?null:new Date(U,q-1,W)},A=function(O){var L=C(O.createdAt);return L?L.getTime():-1/0};D.useEffect(function(){if((r==="latest"||!r)&&n.length>0&&!a){var N=n.reduce(function(O,L){return A(L)>A(O)?L:O});i(N.id)}},[n,r,i,a]);var j=D.useMemo(function(){if(r==="latest"||!r){if(n.length>0){var N=n.reduce(function(O,L){return A(L)>A(O)?L:O});return N.id}return"latest"}return r},[r,n,A]);D.useEffect(function(){S(j)},[j]);var b=n.find(function(N){return String(N.id)===String(v)}),x=n.length>0?String(n.reduce(function(N,O){return A(O)>A(N)?O:N}).id):"",M=function(){if(b){var N=C(b.createdAt),O=N?wi(N,"MMMM d, yyyy"):b.createdAt?b.createdAt.slice(0,10):"Unknown date",L=String(b.id)===x?"(latest)":"(older)";return"".concat(O," ").concat(L)}return n.length>0?"Select date...":"No analyses available"}();D.useEffect(function(){var N=function(L){k.current&&!k.current.contains(L.target)&&p(!1)};return h&&document.addEventListener("mousedown",N),function(){document.removeEventListener("mousedown",N)}},[h]);var _=function(){!l&&!a&&p(!h)},I=function(O){S(O),i(O),p(!1)},P=function(){p(!1)},H=function(O){O.key==="Enter"||O.key===" "?(O.preventDefault(),_()):O.key==="Escape"&&p(!1)};return d.jsxs("div",{ref:k,className:"yst-relative",children:[d.jsxs("div",{className:"yst-relative",children:[d.jsx(w.TextInput,{id:c,onClick:_,onKeyDown:H,onChange:function(){},disabled:l||a,value:M,"aria-expanded":h,"aria-haspopup":"true","aria-label":"Select analysis date",className:te("yst-pr-10",{"yst-cursor-default":!l&&!a})}),d.jsx(bv,{className:te("yst-pointer-events-none yst-absolute yst-right-3 yst-top-1/2 yst--translate-y-1/2 yst-transform",{"yst-text-gray-400":l||a})})]}),d.jsx(lA,{analyses:n,selectedAnalysisId:v,onAnalysisSelect:I,isLoading:a,isOpen:h,onClose:P})]})};function py(t){if(t!=null){if(typeof t=="number"){var e=1e12;return t>e?t-Date.now():t}var n=Date.parse(t);if(!Number.isNaN(n))return n-Date.now()}}function yA(t,e){var n=py(t);return n!==void 0&&n>e*60*1e3}var pA=2;function my(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pA,n=py(t);return n!==void 0&&n<=e*60*1e3}function tl(t){if(t==null)return"a future date";var e;if(typeof t=="number"){var n=1e12;t>n?e=t:e=Date.now()+t}else{var r=Date.parse(t);Number.isNaN(r)||(e=r)}if(e===void 0)return"a future date";var i=new Date(e),s={month:"long",day:"numeric"},a={hour:"numeric",minute:"2-digit",hour12:!0},o=i.toLocaleDateString("en-US",s),l=i.toLocaleTimeString("en-US",a);return"".concat(o," at ").concat(l)}function zi(t){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zi(t)}var Ac;function ws(t,e,n){return(e=mA(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mA(t){var e=gA(t,"string");return zi(e)=="symbol"?e:e+""}function gA(t,e){if(zi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(zi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ro(t,e){return AA(t)||xA(t,e)||bA(t,e)||vA()}function vA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bA(t,e){if(t){if(typeof t=="string")return wc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wc(t,e):void 0}}function wc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function xA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function AA(t){if(Array.isArray(t))return t}function nl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return ht(S,"_invoke",function(k,C,A){var j,b,x,M=0,_=A||[],I=!1,P={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,L){return j=O,b=0,x=t,P.n=L,a}};function H(N,O){for(b=N,x=O,e=0;!I&&M&&!L&&e<_.length;e++){var L,R=_[e],Y=P.p,z=R[2];N>3?(L=z===O)&&(x=R[(b=R[4])?5:(b=3,3)],R[4]=R[5]=t):R[0]<=Y&&((L=N<2&&Y<R[1])?(b=0,P.v=O,P.n=R[1]):Y<z&&(L=N<3||R[0]>O||O>z)&&(R[4]=N,R[5]=O,P.n=z,b=0))}if(L||N>1)return a;throw I=!0,O}return function(N,O,L){if(M>1)throw TypeError("Generator is already running");for(I&&O===1&&H(O,L),b=O,x=L;(e=b<2?t:x)||!I;){j||(b?b<3?(b>1&&(P.n=-1),H(b,x)):P.n=x:P.v=x);try{if(M=2,j){if(b||(N="next"),e=j[N]){if(!(e=e.call(j,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=j.return)&&e.call(j),b<2&&(x=TypeError("The iterator does not provide a '"+N+"' method"),b=1);j=t}else if((e=(I=P.n<0)?x:k.call(C,P))!==a)break}catch(R){j=t,b=1,x=R}finally{M=1}}return{value:e,done:I}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(ht(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,ht(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,ht(f,"constructor",u),ht(u,"constructor",l),l.displayName="GeneratorFunction",ht(u,i,"GeneratorFunction"),ht(f),ht(f,i,"Generator"),ht(f,r,function(){return this}),ht(f,"toString",function(){return"[object Generator]"}),(nl=function(){return{w:s,m:y}})()}function ht(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}ht=function(a,o,l,u){if(o)i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var c=function(y,h){ht(a,y,function(p){return this._invoke(y,h,p)})};c("next",0),c("throw",1),c("return",2)}},ht(t,e,n,r)}function Sc(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function wA(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Sc(s,r,i,a,o,"next",l)}function o(l){Sc(s,r,i,a,o,"throw",l)}a(void 0)})}}function SA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var io=ys(Ac||(Ac=SA(["yst-flex-1 yst-space-y-2"]))),CA=function(e){var n,r,i,s,a,o=e.className,l=Rt(),u=l.brandId,c=l.analysisId,f=l.model,y=ds(),h=y.setModel,p=y.setAnalysisId,m=Lt(),g=Ct(),v=Hn(),S=v.data,k=cs({query:{select:function(Te){var be=Te.data;return be}}}),C=k.data,A=k.isLoading,j=C==null?void 0:C.data,b=j==null?void 0:j.displayName,x=Ar({query:{select:function(Te){var be=Te.data;return be==null?void 0:be.brands}}}),M=x.data,_=x.isLoading,I=Yh(u,{query:{enabled:!!u,select:function(Te){var be=Te.data;return be==null?void 0:be.analyses}}}),P=I.data,H=I.isLoading,N=Ea(u,c,{query:{enabled:!!u&&!!c,select:function(Te){var be=Te.data;return be}}}),O=N.data,L=N.isLoading,R=ia(u,{query:{enabled:!!u,select:function(Te){var be=Te.data;return be}}}),Y=R.data,z=S2({mutation:{onSuccess:function(){var he=wA(nl().m(function be(){var K,J;return nl().w(function(ie){for(;;)switch(ie.n){case 0:return ie.n=1,Promise.all([m.invalidateQueries({queryKey:Bl(u)}),m.invalidateQueries({queryKey:Xt(u,c)}),m.invalidateQueries({queryKey:ka(u)})]);case 1:K=(P==null?void 0:P.filter(function(ne){return String(ne.id)!==String(c)}))||[],K.length>0?(J=K.reduce(function(ne,ke){var rt=ne.createdAt?new Date(ne.createdAt).getTime():0,qn=ke.createdAt?new Date(ke.createdAt).getTime():0;return qn>rt?ke:ne}),p(J.id),g("/brands/".concat(u,"/analysis/").concat(J.id))):(p("latest"),g("/brands/".concat(u))),X(!1);case 2:return ie.a(2)}},be)}));function Te(){return he.apply(this,arguments)}return Te}()}}),F=z.mutate,Q=z.isPending,U=D.useState(!1),q=ro(U,2),W=q[0],X=q[1],Z=function(){X(!1)},re=D.useState(!1),ae=ro(re,2),fe=ae[0],oe=ae[1],ve=M==null?void 0:M.find(function(he){return String(he.id)===String(u)}),G=function(Te){switch(Te){case"openai":return"OpenAI";case"perplexity":return"Perplexity";case"anthropic":return"Anthropic";default:return Te||"Unknown"}},Oe=(O==null||(n=O.analysis)===null||n===void 0||(n=n.scans)===null||n===void 0?void 0:n.map(function(he){return{value:he.aiProvider,label:G(he.aiProvider)}}))||[{value:"",label:"Default model"}],Ye=P!=null&&P.some(function(he){return String(he.id)===String(c)})?c:P&&P.length>0?P[0].id:"latest",We=ia(u,{query:{enabled:!!u,select:function(Te){var be=Te.data;return be}}}),Pe=We.data,_e=(Pe==null?void 0:Pe.name)||"your brand",Ie=tl(Pe==null?void 0:Pe.nextScheduledAnalysis),ze=O==null||(r=O.analysis)===null||r===void 0?void 0:r.status,wr=D.useState(!1),Qn=ro(wr,2),Jt=Qn[0],ue=Qn[1];D.useEffect(function(){var he,Te=O==null||(he=O.analysis)===null||he===void 0?void 0:he.id;if(!u||!Te||ze!==wn.completed){ue(!1);return}var be="yst_legal_alert_dismissed_".concat(u,"_").concat(Te);ue(window.localStorage.getItem(be)===null)},[u,O==null||(i=O.analysis)===null||i===void 0?void 0:i.id,ze]);var ce=function(Te){var be;Te.preventDefault();var K=O==null||(be=O.analysis)===null||be===void 0?void 0:be.id;if(!(!u||!K)){var J="yst_legal_alert_dismissed_".concat(u,"_").concat(K);window.localStorage.setItem(J,"true"),ue(!1)}},pe=d.jsxs("div",{className:"yst-max-w-xl yst-space-y-2",children:[d.jsx("p",{className:"yst-font-medium",children:"Your analysis is scheduled"}),d.jsxs("p",{children:["You've completed the setup for"," ",d.jsx("b",{className:"yst-font-medium",children:_e}),". The analysis is scheduled to run on"," ",d.jsx("b",{className:"yst-font-medium",children:Ie}),". You'll see the results here once it's ready. We'll also notify you by email."]})]}),Ee=ws(ws(ws(ws({scheduledFirstAnalysis:{alertContent:pe,alertVariant:"info"}},wn.pending,{alertContent:pe,alertVariant:"info"}),wn.processing,{alertContent:d.jsxs(d.Fragment,{children:["You've completed the setup for ",_e,". The analysis is now processing. You'll see the results here once it's ready. We'll also notify you by email."]}),alertVariant:"info"}),wn.failed,{alertContent:d.jsx(d.Fragment,{children:"Analysis failed. Try restarting the analysis or contact support if the issue persists."}),alertVariant:"danger"}),wn.cancelled,{alertContent:d.jsx(d.Fragment,{children:"Analysis was cancelled. You can restart the analysis when ready."}),alertVariant:"warning"}),ri=!ze&&(Y==null?void 0:Y.setupStatus)==="scheduledFirstAnalysis"?"scheduledFirstAnalysis":ze,ii=(s=Ee[ri])!==null&&s!==void 0?s:{alertContent:null,alertVariant:"info"},si=ii.alertContent,Ha=ii.alertVariant,Wa=!H&&(Y==null?void 0:Y.setupStatus)!=="pendingQuerySelection"&&(P==null?void 0:P.length)===0&&(Y==null?void 0:Y.nextScheduledAnalysis)===null,ms=ze===wn.completed&&S&&["updating","completed"].includes(S.status)&&!S.isUpToDateWithBrandGroups,Qa=(S==null?void 0:S.status)===Nb.updating&&ms===!0,gs=function(){var Te,be,K=(Te=C==null?void 0:C.maxNumberOfActiveBrands)!==null&&Te!==void 0?Te:0,J=(be=C==null?void 0:C.numberOfActiveBrands)!==null&&be!==void 0?be:0,ie=K-J,ne=ie>0;if(!ne){oe(!0);return}g("/setup")};return d.jsxs(d.Fragment,{children:[d.jsx(ty,{isOpen:fe,onClose:function(){return oe(!1)}}),d.jsx(Ma,{isOpen:W,onClose:Z,onConfirm:function(){u&&c&&F({brandId:u,analysisId:c})},isLoading:Q,title:"Delete analysis?",description:d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"This will permanently delete all data associated with this analysis."}),d.jsx("p",{children:"This action cannot be undone."})]}),confirmText:"Yes, delete analysis",cancelText:"No, go back"}),d.jsx(w.Card,{className:te("yst-relative yst-overflow-visible",o),children:d.jsxs(w.Card.Content,{className:"yst-mt-0",children:[d.jsxs("div",{className:"yst-flex yst-flex-1 yst-flex-col yst-flex-wrap yst-items-start yst-justify-between yst-gap-4 md:yst-flex-row xl:yst-items-center",children:[d.jsx("div",{className:"xl:yst-max-w-1/4",children:d.jsxs("div",{className:"yst-flex yst-flex-col xl:yst-flex-row xl:yst-items-baseline xl:yst-gap-2",children:[d.jsx(w.Title,{children:d.jsxs(d.Fragment,{children:[A?d.jsx(w.SkeletonLoader,{className:"yst-inline-block yst-h-8 yst-w-64"}):d.jsxs(d.Fragment,{children:["Hi",b&&" ".concat(b),","]})," "]})}),d.jsx("p",{className:"yst-text-sm yst-font-normal yst-text-slate-600",children:"welcome to your brand analysis!"})]})}),d.jsxs("div",{className:"yst-flex yst-flex-row yst-flex-wrap yst-items-center yst-justify-end yst-gap-4 yst-self-end md:yst-self-start",children:[d.jsxs(w.Button,{variant:"primary",className:"yst-gap-1.5",onClick:gs,disabled:H||_||A,children:[d.jsx($h,{})," Analyze a different brand"]}),d.jsx("div",{className:"yst-relative",children:d.jsxs(w.DropdownMenu,{children:[d.jsx(w.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:"Open brand list options",disabled:H||_||M&&(M==null?void 0:M.length)<1,children:d.jsx(Mv,{})}),d.jsx(w.DropdownMenu.List,{className:"yst-absolute yst-right-0 yst-top-full yst-z-40 yst-mt-2 yst-flex yst-w-64 yst-flex-col yst-justify-start",children:d.jsxs(w.DropdownMenu.ButtonItem,{onClick:function(){return X(!0)},disabled:H||_||(O==null||(a=O.analysis)===null||a===void 0?void 0:a.status)!=="completed"||!P||P.length===0,className:"yst-flex yst-justify-start yst-gap-1.5 yst-text-red-600 hover:yst-bg-red-50",children:[d.jsx(Fl,{className:"yst-h-4 yst-w-4"}),"Delete analysis"]})})]})})]})]}),d.jsx(ti,{}),d.jsxs("form",{className:"yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-center",children:[d.jsxs(io,{children:[d.jsx(w.Label,{htmlFor:"brand-name",children:"Brand"}),d.jsx(w.Select,{onChange:function(he){g("/brands/".concat(he))},id:"brand-name",value:u||"loading",options:M&&M.length>0?M.map(function(he){return{value:he.id,label:he.name}}):[{value:"loading",label:"Loading..."}],disabled:_||!M||M.length<2||!u})]}),d.jsxs(io,{children:[d.jsx(w.Label,{htmlFor:"analysis-date",children:"Analysis date"}),d.jsx(hA,{analyses:P||[],selectedAnalysisId:Ye,onAnalysisSelect:function(he){g("/brands/".concat(u,"/analysis/").concat(String(he)))},isLoading:H,disabled:H||!P||P.length<1,id:"analysis-date"})]}),d.jsxs(io,{children:[d.jsx(w.Label,{htmlFor:"ai-tool",children:"AI model"}),d.jsx(w.Select,{onChange:function(he){Object.values(Rb).includes(he)?h(he):console.error("Invalid AI provider selected:",he)},id:"ai-tool",value:f,options:L||H?[{value:f,label:"Loading..."}]:Oe,disabled:L||H||[{}].length<2})]})]})]})}),d.jsxs("div",{className:"ystaii-alerts yst-space-y-4",children:[Jt&&d.jsx(w.Alert,{children:d.jsxs("div",{className:"yst-flex yst-w-full",children:[d.jsx("div",{className:"yst-max-w-xl yst-space-y-4",children:d.jsx("p",{className:"yst-mb-0",children:"Note: This content was generated by an AI model (see dropdown above) and may contain errors. Please review before acting on it."})}),d.jsx("div",{className:"yst-ml-auto",children:d.jsx(w.Link,{onClick:ce,variant:"default",children:d.jsx(oy,{})})})]})}),ze!==wn.completed&&si&&d.jsx(w.Alert,{className:"md:yst-col-span-2",variant:Ha,children:si}),ms&&d.jsxs(w.Alert,{variant:"warning",children:["Note: This scan is not up to date with your current brand groups.",Qa?d.jsxs(d.Fragment,{children:[" ","We're updating your sentiment analysis to reflect your new brand groups. This may take a few minutes."]}):d.jsx(d.Fragment,{children:" Newer scans will use your newly selected brand groupings."})]})]}),Wa&&d.jsx(w.Alert,{variant:"info",className:"yst-mb-6",children:d.jsx("div",{className:"yst-flex yst-items-start yst-gap-3",children:d.jsxs("div",{className:"yst-flex-1",children:[d.jsx("h3",{className:"yst-mb-2 yst-font-medium yst-text-blue-800",children:"No analyses scheduled"}),d.jsxs("p",{className:"yst-text-bluer-700 yst-mb-0",children:[d.jsx("span",{className:"yst-font-medium yst-text-blue-900",children:ve==null?void 0:ve.name})," ","has not been analyzed yet, and no analyses are scheduled because this brand is set to inactive in your"," ",d.jsx("span",{className:"yst-cursor-pointer yst-font-medium yst-text-blue-900 yst-underline",onClick:function(){return g("/settings")},role:"button",tabIndex:0,onKeyPress:function(he){(he.key==="Enter"||he.key===" ")&&g("/settings")},children:"Settings"}),"."]})]})})}),ve&&d.jsx(W1,{brand:ve},ve.id)]})},jA=function(){var e,n,r,i=Hn(),s=i.data,a=i.isLoading,o=i.isRefetching,l=s==null?void 0:s.mentions;return d.jsx(w.Card,{className:"yst-overflow-visible",children:d.jsxs(w.Card.Content,{className:"yst-space-y-4",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(hs,{title:"Mentions",tooltip:"The queries where your brand was mentioned."}),d.jsx(fs,{score:l==null||(e=l.mentionedInNumberOfQueries)===null||e===void 0?void 0:e.value,total:l==null||(n=l.queriesWithMentions)===null||n===void 0?void 0:n.length,suffix:"queries",isLoading:a||o})]}),!a&&l?d.jsx("ul",{children:l==null||(r=l.queriesWithMentions)===null||r===void 0?void 0:r.map(function(u,c){var f=c===0,y=l.queriesWithMentions&&c===l.queriesWithMentions.length-1;return d.jsxs("li",{className:te("yst-flex yst-flex-row yst-items-center yst-gap-2 yst-border-l yst-border-r yst-border-slate-300 yst-p-4 yst-font-medium yst-text-slate-800",{"yst-rounded-t-lg yst-border-t":f,"yst-rounded-b-lg yst-border-b":y,"yst-border-b":!y}),children:[d.jsx("div",{className:"yst-h-4 yst-w-4",children:u!=null&&u.mentioned?d.jsx(Av,{className:"yst-text-green-500"}):d.jsx(Yv,{className:"yst-text-red-500"})}),d.jsx("span",{className:"yst-justify-start",children:u.query}),d.jsx("span",{className:"yst-ml-auto yst-flex yst-items-end",children:u!=null&&u.mentioned?d.jsx(w.Badge,{className:"yst-bg-green-100 yst-text-green-800",children:"Found"}):d.jsx(w.Badge,{className:"yst-bg-red-100 yst-text-red-800",children:"Not found"})})]},u.query)})}):d.jsx(w.SkeletonLoader,{className:"yst-h-56 yst-w-full"})]})})};/*!
22
+ */var zu;function Av(){return zu||(zu=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(i=s(i,r(o)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var o in i)e.call(i,o)&&i[o]&&(a=s(a,o));return a}function s(i,a){return a?i?i+" "+a:i+a:i}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(no)),no.exports}var wv=Av();const te=Zf(wv);var Sv=function(e){return N2({mutation:{onSettled:function(){e&&e()}}})};function Cv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))}const jv=E.forwardRef(Cv);function Ov(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))}const Ev=E.forwardRef(Ov);function kv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"}))}const Tv=E.forwardRef(kv);function Pv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"}))}const Mv=E.forwardRef(Pv);function Lv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const Iv=E.forwardRef(Lv);function Rv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"}))}const Nv=E.forwardRef(Rv);function _v(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"}))}const Dv=E.forwardRef(_v);function Bv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))}const Ji=E.forwardRef(Bv);function Fv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}const Gu=E.forwardRef(Fv);function Uv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}const Hv=E.forwardRef(Uv);function Wv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}const Qv=E.forwardRef(Wv);function qv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))}const sy=E.forwardRef(qv);function zv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))}const iy=E.forwardRef(zv);function Gv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 12l3-3 3 3 4-4M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z"}))}const Yv=E.forwardRef(Gv);function Vv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"}))}const Kv=E.forwardRef(Vv);function Xv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"}))}const ay=E.forwardRef(Xv);function Jv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))}const Ql=E.forwardRef(Jv);function Zv(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}))}const $v=E.forwardRef(Zv);var eb=function(){return[{label:"Brand analysis",href:"/",Icon:Yv,isActive:function(n){return n.startsWith("/setup")||n==="/"},showInMenu:!0},{label:"Settings",href:"/settings",Icon:Iv,isActive:function(n){return n.startsWith("/settings")},showInMenu:!0}]},Yu;function tb(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Vu=function(e){var n=e.className,r=et(),s=r.pathname,i=eb();return c.jsx("div",{className:te("yst-flex yst-flex-col yst-gap-10",n),children:c.jsx(w.SidebarNavigation.Sidebar,{children:c.jsx(w.SidebarNavigation.List,{className:"yst-space-y-2",children:i.filter(function(a){return a.showInMenu!==!1}).map(function(a){var o=a.isActive?a.isActive(s):!1;return c.jsx(w.SidebarNavigation.SubmenuItem,{className:te("yst-flex yst-gap-x-3",{"yst-sidebar-navigation__item--active":o}),href:a.href,to:a.href,as:Wn,label:c.jsxs(c.Fragment,{children:[c.jsx(a.Icon,{className:te(Yu||(Yu=tb(["yst-sidebar-navigation__icon yst-h-6 yst-w-6"])))}),a.label]})},a.label)})})})})};const nb="data:image/svg+xml,%3csvg%20width='208'%20height='42'%20viewBox='0%200%20208%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='169'%20width='39'%20height='16'%20rx='8'%20fill='%23BFDBFE'/%3e%3cpath%20d='M177.869%2012V4.9541H180.813C182.151%204.9541%20182.957%205.62793%20182.957%206.70703V6.7168C182.957%207.4541%20182.41%208.1084%20181.702%208.2207V8.30859C182.649%208.39648%20183.304%209.08008%20183.304%209.99316V10.0029C183.304%2011.2383%20182.386%2012%20180.882%2012H177.869ZM180.506%205.93555H179.129V7.92285H180.345C181.238%207.92285%20181.712%207.57617%20181.712%206.93652V6.92676C181.712%206.30176%20181.268%205.93555%20180.506%205.93555ZM180.545%208.81641H179.129V11.0186H180.594C181.521%2011.0186%20182.015%2010.6328%20182.015%209.91504V9.90527C182.015%209.19238%20181.507%208.81641%20180.545%208.81641ZM186.834%2012.1074C185.247%2012.1074%20184.285%2011.043%20184.285%209.34375V9.33887C184.285%207.65918%20185.257%206.56055%20186.775%206.56055C188.294%206.56055%20189.231%207.625%20189.231%209.23633V9.63672H185.501C185.516%2010.5938%20186.033%2011.1504%20186.858%2011.1504C187.518%2011.1504%20187.894%2010.8184%20188.011%2010.5742L188.025%2010.54H189.183L189.168%2010.584C188.997%2011.2725%20188.284%2012.1074%20186.834%2012.1074ZM186.79%207.5127C186.111%207.5127%20185.604%207.97168%20185.511%208.82129H188.045C187.962%207.94727%20187.469%207.5127%20186.79%207.5127ZM192.547%2012.0244C191.321%2012.0244%20190.818%2011.6143%20190.818%2010.584V7.60547H189.988V6.66309H190.818V5.35449H192.054V6.66309H193.182V7.60547H192.054V10.2959C192.054%2010.8281%20192.264%2011.0527%20192.771%2011.0527C192.942%2011.0527%20193.035%2011.0479%20193.182%2011.0332V11.9707C193.006%2012.0049%20192.781%2012.0244%20192.547%2012.0244ZM195.848%2012.0879C194.832%2012.0879%20194.095%2011.4629%20194.095%2010.4912V10.4814C194.095%209.5293%20194.822%208.97266%20196.121%208.89453L197.493%208.81152V8.35254C197.493%207.82031%20197.146%207.52734%20196.492%207.52734C195.936%207.52734%20195.574%207.72754%20195.452%208.0791L195.447%208.09863H194.3L194.305%208.05469C194.422%207.15625%20195.281%206.56055%20196.551%206.56055C197.923%206.56055%20198.694%207.22461%20198.694%208.35254V12H197.493V11.2676H197.41C197.117%2011.7852%20196.551%2012.0879%20195.848%2012.0879ZM195.296%2010.4326C195.296%2010.8867%20195.682%2011.1553%20196.219%2011.1553C196.951%2011.1553%20197.493%2010.6768%20197.493%2010.042V9.6123L196.292%209.69043C195.613%209.73438%20195.296%209.9834%20195.296%2010.4229V10.4326Z'%20fill='%231E3A8A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.5037%2019.2842C22.9203%2019.2842%2023.2881%2019.5608%2023.402%2019.9612L24.4143%2023.5057C24.857%2025.0583%2026.071%2026.2724%2027.6236%2026.715L31.1682%2027.7273C31.6629%2027.8705%2031.9526%2028.3881%2031.8094%2028.8828C31.7215%2029.192%2031.4774%2029.4361%2031.1682%2029.524L27.6236%2030.5363C26.071%2030.9789%2024.857%2032.193%2024.4143%2033.7456L23.402%2037.2901C23.2588%2037.7849%2022.7413%2038.0745%2022.2466%2037.9313C21.9373%2037.8434%2021.6932%2037.5993%2021.6053%2037.2901L20.5931%2033.7456C20.1504%2032.193%2018.9364%2030.9789%2017.3838%2030.5363L13.8392%2029.524C13.3445%2029.3808%2013.0548%2028.8633%2013.198%2028.3685C13.2859%2028.0593%2013.53%2027.8152%2013.8392%2027.7273L17.3838%2026.715C18.9364%2026.2724%2020.1504%2025.0583%2020.5931%2023.5057L21.6053%2019.9612C21.7193%2019.5608%2022.0871%2019.2842%2022.5037%2019.2842Z'%20fill='url(%23paint0_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.3742%2012C13.6573%2012%2013.9047%2012.192%2013.9731%2012.4654L14.1846%2013.315C14.3799%2014.0864%2014.9821%2014.6918%2015.7535%2014.8838L16.603%2015.0954C16.9318%2015.1768%2017.1335%2015.512%2017.0522%2015.8407C16.9968%2016.0621%2016.8243%2016.2346%2016.603%2016.2899L15.7535%2016.5015C14.9821%2016.6968%2014.3767%2017.2989%2014.1846%2018.0703L13.9731%2018.9199C13.8917%2019.2486%2013.5564%2019.4504%2013.2277%2019.369C13.0064%2019.3137%2012.8339%2019.1412%2012.7785%2018.9199L12.567%2018.0703C12.3749%2017.2989%2011.7695%2016.6935%2010.9981%2016.5015L10.1486%2016.2899C9.81986%2016.2085%209.61805%2015.8733%209.69943%2015.5446C9.75476%2015.3232%209.92727%2015.1507%2010.1486%2015.0954L10.9981%2014.8838C11.7695%2014.6918%2012.3749%2014.0864%2012.567%2013.315L12.7785%2012.4654C12.8469%2012.192%2013.0943%2012%2013.3774%2012H13.3742Z'%20fill='url(%23paint1_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.39254%2026.8813C6.54226%2026.8813%206.67571%2026.979%206.72453%2027.1189L6.90681%2027.669C6.97516%2027.8773%207.1379%2028.0401%207.34947%2028.1117L7.89954%2028.294C8.08181%2028.3558%208.17946%2028.5543%208.12087%2028.7366C8.08507%2028.8408%208.0037%2028.9222%207.89954%2028.958L7.34947%2029.1402C7.14116%2029.2086%206.97841%2029.3713%206.90681%2029.5829L6.72453%2030.133C6.66269%2030.3152%206.46414%2030.4129%206.28187%2030.3543C6.17771%2030.3185%206.09634%2030.2371%206.06054%2030.133L5.87827%2029.5829C5.80992%2029.3746%205.64392%2029.2118%205.4356%2029.1402L4.88553%2028.958C4.70326%2028.8961%204.60561%2028.6976%204.6642%2028.5153C4.7%2028.4111%204.78138%2028.3298%204.88553%2028.294L5.4356%2028.1117C5.64392%2028.0433%205.80666%2027.8806%205.87827%2027.669L6.06054%2027.1189C6.10936%2026.9757%206.24281%2026.8813%206.39254%2026.8813Z'%20fill='url(%23paint2_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.80904%2033.5596C2.95876%2033.5596%203.09221%2033.6572%203.14104%2033.7972L3.32331%2034.3473C3.39166%2034.5556%203.5544%2034.7183%203.76597%2034.7899L4.31604%2034.9722C4.49832%2035.034%204.59596%2035.2326%204.53737%2035.4148C4.50157%2035.519%204.4202%2035.6004%204.31604%2035.6362L3.76597%2035.8185C3.55766%2035.8868%203.39492%2036.0495%203.32331%2036.2611L3.14104%2036.8112C3.07919%2036.9935%202.88065%2037.0911%202.69837%2037.0325C2.59422%2036.9967%202.51285%2036.9153%202.47704%2036.8112L2.29477%2036.2611C2.22642%2036.0528%202.06042%2035.8901%201.85211%2035.8185L1.30204%2035.6362C1.11976%2035.5743%201.02212%2035.3758%201.0807%2035.1935C1.11651%2035.0894%201.19788%2035.008%201.30204%2034.9722L1.85211%2034.7899C2.06042%2034.7216%202.22316%2034.5588%202.29477%2034.3473L2.47704%2033.7972C2.52587%2033.654%202.65931%2033.5596%202.80904%2033.5596Z'%20fill='url(%23paint3_radial_4548_14216)'/%3e%3cpath%20d='M2.42488%2032.7235C1.94641%2031.4476%201.68277%2030.0676%201.68277%2028.6256C1.68277%2023.5806%204.89532%2019.2712%209.38379%2017.634L8.79466%2016.0586C3.66498%2017.9269%200%2022.8483%200%2028.6256C0%2030.2661%200.296193%2031.835%200.836502%2033.2866L2.42488%2032.7268V32.7235Z'%20fill='url(%23paint4_radial_4548_14216)'/%3e%3cpath%20d='M20.6587%2037.7652C18.6602%2039.3633%2016.1279%2040.3202%2013.3743%2040.3202C10.0023%2040.3202%206.96221%2038.8849%204.82702%2036.5967L3.58691%2037.7359C6.02807%2040.3593%209.51078%2041.9998%2013.3776%2041.9998C16.5218%2041.9998%2019.4121%2040.9159%2021.6938%2039.0997L20.662%2037.7684L20.6587%2037.7652Z'%20fill='url(%23paint5_radial_4548_14216)'/%3e%3cpath%20d='M13.3739%2022.3664C15.0436%2022.3664%2016.5604%2023.0238%2017.6833%2024.0914L18.8095%2022.8383C17.3904%2021.5038%2015.4798%2020.6836%2013.3771%2020.6836C9.89444%2020.6836%206.93902%2022.9262%205.86816%2026.0476L7.44678%2026.627C8.28328%2024.1533%2010.6235%2022.3631%2013.3771%2022.3631L13.3739%2022.3664Z'%20fill='url(%23paint6_radial_4548_14216)'/%3e%3cpath%20d='M17.6737%2033.1658C16.5508%2034.2301%2015.0373%2034.8843%2013.3741%2034.8843C10.6074%2034.8843%208.2574%2033.0811%207.43392%2030.5879L5.84229%2031.1249C6.89035%2034.2822%209.8653%2036.5638%2013.3773%2036.5638C15.4832%2036.5638%2017.3971%2035.7436%2018.8162%2034.4059L17.677%2033.169L17.6737%2033.1658Z'%20fill='url(%23paint7_radial_4548_14216)'/%3e%3cpath%20d='M39.169%2021.2891H43.677C45.7666%2021.2891%2047.2802%2021.595%2048.2111%2022.2037C49.142%2022.8123%2049.6074%2023.7758%2049.6074%2025.0908C49.6074%2025.9761%2049.3796%2026.7149%2048.9206%2027.3041C48.4617%2027.8932%2047.8075%2028.2642%2046.9482%2028.414V28.5181C48.0158%2028.7199%2048.8002%2029.1138%2049.3014%2029.7062C49.8027%2030.2985%2050.0533%2031.0992%2050.0533%2032.1115C50.0533%2033.4753%2049.5781%2034.5429%2048.6244%2035.3143C47.6707%2036.0857%2046.3493%2036.473%2044.6502%2036.473H39.1658V21.2891H39.169ZM41.6525%2027.5645H44.0416C45.0799%2027.5645%2045.8383%2027.3985%2046.3167%2027.0697C46.7952%2026.741%2047.0328%2026.1811%2047.0328%2025.3935C47.0328%2024.6806%2046.7757%2024.1631%2046.2581%2023.8474C45.7406%2023.5284%2044.9236%2023.3689%2043.8007%2023.3689H41.6492V27.5645H41.6525ZM41.6525%2029.5792V34.3867H44.2889C45.3272%2034.3867%2046.1117%2034.1881%2046.6422%2033.791C47.1728%2033.3939%2047.4364%2032.7657%2047.4364%2031.9065C47.4364%2031.1188%2047.1662%2030.5329%2046.6259%2030.1521C46.0856%2029.7713%2045.2654%2029.5792%2044.1653%2029.5792H41.6525Z'%20fill='url(%23paint8_linear_4548_14216)'/%3e%3cpath%20d='M58.7762%2024.7817C59.2677%2024.7817%2059.6713%2024.8175%2059.9902%2024.8859L59.7526%2027.161C59.4076%2027.0764%2059.0463%2027.0374%2058.672%2027.0374C57.6955%2027.0374%2056.9046%2027.3563%2056.2992%2027.9943C55.6938%2028.6322%2055.3911%2029.459%2055.3911%2030.4778V36.4797H52.95V24.9933H54.8606L55.1828%2027.0178H55.3065C55.6873%2026.3311%2056.1853%2025.7908%2056.7972%2025.3871C57.4091%2024.9868%2058.0699%2024.785%2058.7762%2024.785V24.7817Z'%20fill='url(%23paint9_linear_4548_14216)'/%3e%3cpath%20d='M69.309%2036.4734L68.8208%2034.8753H68.7394C68.1861%2035.575%2067.6295%2036.0503%2067.0664%2036.3041C66.5065%2036.558%2065.784%2036.685%2064.9051%2036.685C63.7757%2036.685%2062.8969%2036.379%2062.2622%2035.7703C61.6275%2035.1617%2061.3118%2034.2991%2061.3118%2033.186C61.3118%2032.0012%2061.7512%2031.1094%2062.63%2030.5072C63.5088%2029.9051%2064.8498%2029.5763%2066.6498%2029.521L68.632%2029.4591V28.8472C68.632%2028.1116%2068.4595%2027.5648%2068.1177%2027.2003C67.7759%2026.8357%2067.2421%2026.6534%2066.5228%2026.6534C65.9337%2026.6534%2065.3706%2026.7413%2064.8303%2026.9138C64.29%2027.0864%2063.7692%2027.2914%2063.2712%2027.5258L62.4803%2025.7811C63.1019%2025.4557%2063.7855%2025.2083%2064.5276%2025.039C65.2697%2024.8698%2065.9662%2024.7852%2066.627%2024.7852C68.0884%2024.7852%2069.1918%2025.1041%2069.9339%2025.7421C70.6793%2026.38%2071.0503%2027.3793%2071.0503%2028.7431V36.4799H69.3057L69.309%2036.4734ZM65.6733%2034.8134C66.5586%2034.8134%2067.2714%2034.566%2067.8085%2034.0713C68.3455%2033.5766%2068.6124%2032.8833%2068.6124%2031.9882V30.9922L67.138%2031.054C65.989%2031.0963%2065.1525%2031.2884%2064.6285%2031.6301C64.1044%2031.9719%2063.8441%2032.4992%2063.8441%2033.2055C63.8441%2033.7165%2063.997%2034.1136%2064.2997%2034.3935C64.6057%2034.6734%2065.0614%2034.8134%2065.67%2034.8134H65.6733Z'%20fill='url(%23paint10_linear_4548_14216)'/%3e%3cpath%20d='M84.5646%2036.4732H82.1137V29.4102C82.1137%2028.5248%2081.9347%2027.8641%2081.5799%2027.4279C81.2219%2026.9918%2080.6588%2026.7737%2079.8809%2026.7737C78.8491%2026.7737%2078.0939%2027.0797%2077.6155%2027.6883C77.137%2028.297%2076.8994%2029.319%2076.8994%2030.7512V36.4732H74.4583V24.9868H76.3689L76.7106%2026.4938H76.8343C77.1793%2025.947%2077.6708%2025.5238%2078.3088%2025.2277C78.9467%2024.9315%2079.653%2024.7817%2080.4277%2024.7817C83.1846%2024.7817%2084.5614%2026.1846%2084.5614%2028.987V36.4765L84.5646%2036.4732Z'%20fill='url(%23paint11_linear_4548_14216)'/%3e%3cpath%20d='M91.836%2036.6814C90.4038%2036.6814%2089.2841%2036.1606%2088.4802%2035.1223C87.6762%2034.084%2087.2759%2032.6258%2087.2759%2030.751C87.2759%2028.8762%2087.6827%2027.4018%2088.4965%2026.3537C89.3102%2025.3056%2090.4364%2024.7816%2091.8783%2024.7816C93.3202%2024.7816%2094.5375%2025.3382%2095.3252%2026.4546H95.4489C95.3317%2025.6311%2095.2731%2024.9802%2095.2731%2024.5017V20.3159H97.724V36.4763H95.8134L95.387%2034.9693H95.2731C94.4919%2036.1118%2093.3462%2036.6847%2091.836%2036.6847V36.6814ZM92.4902%2034.709C93.4927%2034.709%2094.225%2034.4258%2094.6807%2033.8627C95.1364%2033.2996%2095.374%2032.3817%2095.387%2031.1156V30.7738C95.387%2029.3254%2095.1527%2028.2969%2094.6807%2027.6882C94.2088%2027.0795%2093.4732%2026.7736%2092.4674%2026.7736C91.6081%2026.7736%2090.9474%2027.1219%2090.4852%2027.8184C90.023%2028.5149%2089.7886%2029.5044%2089.7886%2030.7933C89.7886%2032.0823%2090.0132%2033.0392%2090.4624%2033.7065C90.9116%2034.3737%2091.5886%2034.709%2092.4869%2034.709H92.4902Z'%20fill='url(%23paint12_linear_4548_14216)'/%3e%3cpath%20d='M106.997%2036.473V21.2891H109.481V36.473H106.997Z'%20fill='url(%23paint13_linear_4548_14216)'/%3e%3cpath%20d='M123.334%2036.4732H120.883V29.4102C120.883%2028.5248%20120.704%2027.8641%20120.349%2027.4279C119.991%2026.9918%20119.428%2026.7737%20118.65%2026.7737C117.618%2026.7737%20116.863%2027.0797%20116.385%2027.6883C115.906%2028.297%20115.668%2029.319%20115.668%2030.7512V36.4732H113.227V24.9868H115.138L115.48%2026.4938H115.603C115.948%2025.947%20116.44%2025.5238%20117.078%2025.2277C117.716%2024.9315%20118.422%2024.7817%20119.197%2024.7817C121.954%2024.7817%20123.33%2026.1846%20123.33%2028.987V36.4765L123.334%2036.4732Z'%20fill='url(%23paint14_linear_4548_14216)'/%3e%3cpath%20d='M134.449%2033.2019C134.449%2034.3249%20134.039%2035.1841%20133.222%2035.783C132.405%2036.3819%20131.233%2036.6814%20129.71%2036.6814C128.187%2036.6814%20126.95%2036.4503%20126.022%2035.9848V33.8757C127.373%2034.4974%20128.629%2034.8098%20129.791%2034.8098C131.295%2034.8098%20132.044%2034.3574%20132.044%2033.4493C132.044%2033.1596%20131.959%2032.9155%20131.793%2032.7235C131.627%2032.5314%20131.354%2032.3296%20130.973%2032.1213C130.592%2031.913%20130.062%2031.6786%20129.385%2031.415C128.063%2030.904%20127.168%2030.3897%20126.699%2029.8787C126.231%2029.3677%20126%2028.7004%20126%2027.8835C126%2026.9005%20126.397%2026.1389%20127.188%2025.592C127.982%2025.0485%20129.059%2024.7783%20130.423%2024.7783C131.787%2024.7783%20133.05%2025.0517%20134.254%2025.5986L133.466%2027.4376C132.226%2026.9265%20131.185%2026.6694%20130.342%2026.6694C129.053%2026.6694%20128.411%2027.0372%20128.411%2027.7695C128.411%2028.1308%20128.581%2028.4335%20128.916%2028.6842C129.251%2028.9348%20129.983%2029.2766%20131.113%2029.7127C132.06%2030.0805%20132.75%2030.4158%20133.18%2030.7217C133.609%2031.0277%20133.928%2031.3792%20134.137%2031.7763C134.345%2032.1734%20134.449%2032.6519%20134.449%2033.2052V33.2019Z'%20fill='url(%23paint15_linear_4548_14216)'/%3e%3cpath%20d='M136.939%2021.9434C136.939%2021.5072%20137.059%2021.172%20137.297%2020.9344C137.535%2020.6968%20137.876%2020.5796%20138.319%2020.5796C138.762%2020.5796%20139.081%2020.6968%20139.322%2020.9344C139.562%2021.1687%20139.68%2021.504%20139.68%2021.9434C139.68%2022.3828%20139.559%2022.6855%20139.322%2022.9264C139.084%2023.164%20138.749%2023.2844%20138.319%2023.2844C137.889%2023.2844%20137.535%2023.164%20137.297%2022.9264C137.059%2022.6887%20136.939%2022.36%20136.939%2021.9434ZM139.527%2036.4731H137.085V24.9867H139.527V36.4731Z'%20fill='url(%23paint16_linear_4548_14216)'/%3e%3cpath%20d='M152.715%2024.987V26.328L150.752%2026.6925C150.931%2026.9334%20151.081%2027.2328%20151.198%2027.5843C151.316%2027.9359%20151.374%2028.3102%20151.374%2028.7073C151.374%2029.892%20150.964%2030.8229%20150.147%2031.5C149.33%2032.177%20148.204%2032.5187%20146.772%2032.5187C146.404%2032.5187%20146.072%2032.4927%20145.776%2032.4373C145.248%2032.7628%20144.988%2033.1437%20144.988%2033.5798C144.988%2033.8435%20145.112%2034.0387%20145.356%2034.1722C145.603%2034.3024%20146.052%2034.3707%20146.71%2034.3707H148.715C149.981%2034.3707%20150.945%2034.6409%20151.602%2035.1812C152.259%2035.7215%20152.588%2036.4994%20152.588%2037.5182C152.588%2038.8202%20152.051%2039.8227%20150.977%2040.529C149.903%2041.2353%20148.354%2041.5868%20146.326%2041.5868C144.76%2041.5868%20143.566%2041.3101%20142.742%2040.7568C141.919%2040.2035%20141.505%2039.4125%20141.505%2038.3905C141.505%2037.6842%20141.73%2037.0918%20142.176%2036.6101C142.622%2036.1284%20143.247%2035.7964%20144.051%2035.6076C143.725%2035.4676%20143.455%2035.2463%20143.247%2034.9371C143.035%2034.6279%20142.931%2034.3056%20142.931%2033.9671C142.931%2033.5375%20143.051%2033.173%20143.296%2032.8768C143.54%2032.5806%20143.898%2032.2844%20144.376%2031.9947C143.781%2031.7376%20143.299%2031.3209%20142.928%2030.7416C142.557%2030.1655%20142.371%2029.4884%20142.371%2028.7105C142.371%2027.4639%20142.765%2026.4972%20143.549%2025.8137C144.334%2025.1269%20145.454%2024.7852%20146.908%2024.7852C147.234%2024.7852%20147.576%2024.8079%20147.93%2024.8535C148.289%2024.8991%20148.555%2024.9446%20148.734%2024.9935H152.712L152.715%2024.987ZM143.689%2038.2603C143.689%2038.7876%20143.927%2039.1912%20144.402%2039.4744C144.877%2039.7576%20145.541%2039.9008%20146.401%2039.9008C147.729%2039.9008%20148.721%2039.7087%20149.372%2039.3279C150.023%2038.9471%20150.349%2038.4426%20150.349%2037.8111C150.349%2037.3131%20150.17%2036.9584%20149.815%2036.7468C149.457%2036.5352%20148.796%2036.4311%20147.826%2036.4311H145.978C145.278%2036.4311%20144.721%2036.5971%20144.311%2036.9258C143.898%2037.2546%20143.693%2037.7005%20143.693%2038.2603H143.689ZM144.741%2028.7073C144.741%2029.4266%20144.926%2029.9799%20145.297%2030.3705C145.668%2030.7578%20146.199%2030.9531%20146.892%2030.9531C148.305%2030.9531%20149.011%2030.198%20149.011%2028.6877C149.011%2027.9391%20148.835%2027.363%20148.487%2026.9594C148.139%2026.5558%20147.605%2026.3507%20146.892%2026.3507C146.179%2026.3507%20145.652%2026.5526%20145.288%2026.9529C144.923%2027.3532%20144.741%2027.9391%20144.741%2028.7073Z'%20fill='url(%23paint17_linear_4548_14216)'/%3e%3cpath%20d='M164.95%2036.4729H162.499V29.4099C162.499%2028.5245%20162.32%2027.8638%20161.965%2027.4276C161.607%2026.9915%20161.044%2026.7734%20160.266%2026.7734C159.241%2026.7734%20158.489%2027.0794%20158.007%2027.6913C157.526%2028.3032%20157.285%2029.3317%20157.285%2030.7704V36.4729H154.844V20.3125H157.285V24.4136C157.285%2025.0711%20157.243%2025.7742%20157.161%2026.5228H157.317C157.649%2025.9695%20158.112%2025.5398%20158.704%2025.2339C159.296%2024.9279%20159.986%2024.7782%20160.774%2024.7782C163.557%2024.7782%20164.95%2026.181%20164.95%2028.9835V36.4729Z'%20fill='url(%23paint18_linear_4548_14216)'/%3e%3cpath%20d='M172.625%2034.709C173.221%2034.709%20173.816%2034.6146%20174.412%2034.4291V36.2681C174.142%2036.3853%20173.794%2036.4829%20173.367%2036.5643C172.941%2036.6424%20172.501%2036.6847%20172.042%2036.6847C169.728%2036.6847%20168.573%2035.4674%20168.573%2033.0295V26.8387H167.004V25.7581L168.687%2024.863L169.517%2022.4316H171.024V24.9867H174.295V26.8355H171.024V32.9839C171.024%2033.5731%20171.17%2034.006%20171.466%2034.2859C171.763%2034.5658%20172.147%2034.7058%20172.625%2034.7058V34.709Z'%20fill='url(%23paint19_linear_4548_14216)'/%3e%3cpath%20d='M184.424%2033.2019C184.424%2034.3249%20184.014%2035.1841%20183.197%2035.783C182.38%2036.3819%20181.208%2036.6814%20179.685%2036.6814C178.161%2036.6814%20176.925%2036.4503%20175.997%2035.9848V33.8757C177.348%2034.4974%20178.604%2034.8098%20179.766%2034.8098C181.27%2034.8098%20182.018%2034.3574%20182.018%2033.4493C182.018%2033.1596%20181.934%2032.9155%20181.768%2032.7235C181.602%2032.5314%20181.328%2032.3296%20180.948%2032.1213C180.567%2031.913%20180.036%2031.6786%20179.359%2031.415C178.038%2030.904%20177.143%2030.3897%20176.674%2029.8787C176.205%2029.3677%20175.974%2028.7004%20175.974%2027.8835C175.974%2026.9005%20176.371%2026.1389%20177.162%2025.592C177.956%2025.0485%20179.034%2024.7783%20180.397%2024.7783C181.761%2024.7783%20183.024%2025.0517%20184.228%2025.5986L183.441%2027.4376C182.201%2026.9265%20181.159%2026.6694%20180.316%2026.6694C179.027%2026.6694%20178.386%2027.0372%20178.386%2027.7695C178.386%2028.1308%20178.555%2028.4335%20178.89%2028.6842C179.226%2028.9348%20179.958%2029.2766%20181.088%2029.7127C182.035%2030.0805%20182.725%2030.4158%20183.154%2030.7217C183.584%2031.0277%20183.903%2031.3792%20184.111%2031.7763C184.32%2032.1734%20184.424%2032.6519%20184.424%2033.2052V33.2019Z'%20fill='url(%23paint20_linear_4548_14216)'/%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0672%2015.5248)%20scale(61.1655%2061.1655)'%3e%3cstop%20offset='0.17'%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0676%2015.525)%20scale(61.1655%2061.1655)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint2_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8974)%20scale(61.1655%2061.1654)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint3_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8984)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint4_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8978)%20scale(61.1655%2061.1655)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint5_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8978)%20scale(61.1655%2061.1654)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint6_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0673%2015.5246)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint7_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0675%20-58.8983)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3clinearGradient%20id='paint8_linear_4548_14216'%20x1='27.6858'%20y1='26.9883'%20x2='184.655'%20y2='47.7609'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint9_linear_4548_14216'%20x1='27.7019'%20y1='26.8681'%20x2='184.671'%20y2='47.6374'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint10_linear_4548_14216'%20x1='27.8582'%20y1='25.703'%20x2='184.827'%20y2='46.4723'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint11_linear_4548_14216'%20x1='28.0796'%20y1='24.0657'%20x2='185.049'%20y2='44.835'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint12_linear_4548_14216'%20x1='28.6426'%20y1='19.7724'%20x2='185.612'%20y2='40.5417'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint13_linear_4548_14216'%20x1='28.8281'%20y1='18.376'%20x2='185.794'%20y2='39.1453'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint14_linear_4548_14216'%20x1='28.7407'%20y1='19.0206'%20x2='185.71'%20y2='39.7899'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint15_linear_4548_14216'%20x1='28.9621'%20y1='17.367'%20x2='185.928'%20y2='38.1363'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint16_linear_4548_14216'%20x1='29.382'%20y1='14.187'%20x2='186.351'%20y2='34.9563'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint17_linear_4548_14216'%20x1='28.9585'%20y1='17.3836'%20x2='185.928'%20y2='38.1529'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint18_linear_4548_14216'%20x1='29.7136'%20y1='11.6741'%20x2='186.683'%20y2='32.4466'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint19_linear_4548_14216'%20x1='29.8241'%20y1='10.8313'%20x2='186.794'%20y2='31.6039'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint20_linear_4548_14216'%20x1='29.8206'%20y1='10.867'%20x2='186.79'%20y2='31.6364'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function rb(t,e){return ob(t)||ab(t,e)||ib(t,e)||sb()}function sb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ib(t,e){if(t){if(typeof t=="string")return Ku(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ku(t,e):void 0}}function Ku(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ab(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function ob(t){if(Array.isArray(t))return t}var lb=function(e){var n=e.className,r=et(),s=r.pathname,i=Ot(),a=i.hostAppProps,o=a.onLogout,l=D.useState(!1),u=rb(l,2),d=u[0],f=u[1],y=pi({query:{select:function(j){var A=j.data;return A==null?void 0:A.data}}}),h=y.data,p=y.isLoading,m=Sv(o),g=m.mutate,v=m.isPending,S=function(j){if(j.preventDefault(),f(!0),!v)return g()};return c.jsxs("div",{className:te("ystaii-sidemenu"),children:[c.jsx("div",{className:"ystaii-mobile-menu lg:yst-hidden",children:c.jsx(w.SidebarNavigation,{activePath:s,children:c.jsx(w.SidebarNavigation.Mobile,{closeButtonScreenReaderText:"Close sidebar",openButtonScreenReaderText:"Open sidebar",children:c.jsx(Vu,{})})})}),c.jsxs("div",{className:te("ystaii-menuHeader","yst-mb-6 yst-mt-10 yst-flex yst-flex-row yst-justify-between yst-px-4","yst-flex-col yst-items-start yst-space-y-12 yst-max-w-2xl yst-mx-auto"),children:[c.jsx(w.Title,{children:c.jsx(Wn,{className:te("yst-outline-none"),to:"/",children:c.jsx("img",{src:nb,alt:"Yoast",width:"208",height:"42",className:"yst-block"})})}),c.jsxs("div",{className:te("ystaii-userInfoContainer","yst-flex yst-flex-col"),children:[c.jsx("div",{children:c.jsx("b",{children:p?c.jsx(w.SkeletonLoader,{children:"Display name"}):h==null?void 0:h.displayName})}),c.jsx("div",{children:p?c.jsx(w.SkeletonLoader,{children:"loading-email@address.com"}):h==null?void 0:h.email}),c.jsx("div",{children:c.jsx(w.Link,{variant:"primary",className:"yst-no-underline",onClick:S,children:p?c.jsxs(w.SkeletonLoader,{children:["Sign out ",c.jsx("span",{"aria-hidden":"true",children:"→"})]}):d||v?c.jsx(c.Fragment,{children:"Signing out..."}):c.jsxs(c.Fragment,{children:["Sign out ",c.jsx("span",{"aria-hidden":"true",children:"→"})]})})})]})]}),c.jsx("div",{className:te("ystaii-desktopMenu","yst-hidden","lg:yst-mb-0 lg:yst-block lg:yst-w-full lg:yst-shrink-0"),children:c.jsx(w.SidebarNavigation,{activePath:s,children:c.jsx(Vu,{className:n})})})]})},ub=["className","href"];function cb(t,e){if(t==null)return{};var n,r,s=db(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function db(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var fb=function(e){var n=e.className,r=e.href,s=r===void 0?"#content":r,i=cb(e,ub);return c.jsx("a",{href:s,className:te("yst-absolute yst-left-[10px] yst-z-[100000] yst-block yst-h-12 yst-min-w-[150px] yst-px-[15px] yst-text-[14px] yst-leading-[48px] yst-bg-[var(--bg-color-white)] yst-rounded yst-shadow-md yst-underline yst-text-center yst-outline-none; yst--top-[1000em] focus:yst-top-[10px] focus:yst-text-[var(--text-color-blue)]",n),...i,children:"Skip to main content"})},hb=D.lazy(function(){return Promise.resolve({default:function(){return null}})});function ro(t){var e=t.children,n=t.disable,r=n===void 0?!1:n,s=t.hideNav,i=s===void 0?!1:s,a=t.DebugInfo;return r?e:c.jsxs("div",{className:te("ystaii-layout","yst-block","lg:yst-flex lg:yst-min-h-full lg:yst-overflow-visible"),children:[c.jsx(fb,{children:"Skip to main content"}),!i&&c.jsxs("div",{className:te("ystaii-sidebar","yst-overflow-hidden","lg:yst-flex-grow-1 lg:yst-max-w-[300px] lg:yst-flex-shrink-0 lg:yst-basis-[300px] lg:yst-overflow-visible lg:yst-pl-4"),children:[c.jsx(lb,{}),a&&c.jsx(a,{}),c.jsx(D.Suspense,{fallback:null,children:c.jsx(hb,{})}),c.jsxs("div",{id:"toast-portal",className:"yst-fixed yst-bottom-4 yst-left-4 yst-w-96 yst-space-y-4",children:[c.jsx("div",{id:"hook-toasts"}),c.jsx("div",{id:"tsx-toasts"})]})]}),c.jsx("main",{id:"content",className:te("ystaii-main","yst-mx-4 yst-my-0 yst-flex yst-min-w-0 yst-shrink yst-grow yst-basis-auto yst-px-0 yst-py-6","lg:yst-ml-12 lg:yst-mr-6"),children:c.jsx("div",{className:te("ystaii-main-content","yst-mx-auto yst-flex yst-flex-col yst-gap-8","lg:yst-w-full lg:yst-flex-row"),children:c.jsx("div",{className:"yst-layout-root yst-mx-auto yst-w-full yst-max-w-[1200px] yst-flex-1",children:e})})})]})}function Os(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return yt(S,"_invoke",function(k,j,A){var C,b,x,M=0,_=A||[],L=!1,T={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,I){return C=O,b=0,x=t,T.n=I,a}};function H(R,O){for(b=R,x=O,e=0;!L&&M&&!I&&e<_.length;e++){var I,N=_[e],G=T.p,z=N[2];R>3?(I=z===O)&&(x=N[(b=N[4])?5:(b=3,3)],N[4]=N[5]=t):N[0]<=G&&((I=R<2&&G<N[1])?(b=0,T.v=O,T.n=N[1]):G<z&&(I=R<3||N[0]>O||O>z)&&(N[4]=R,N[5]=O,T.n=z,b=0))}if(I||R>1)return a;throw L=!0,O}return function(R,O,I){if(M>1)throw TypeError("Generator is already running");for(L&&O===1&&H(O,I),b=O,x=I;(e=b<2?t:x)||!L;){C||(b?b<3?(b>1&&(T.n=-1),H(b,x)):T.n=x:T.v=x);try{if(M=2,C){if(b||(R="next"),e=C[R]){if(!(e=e.call(C,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=C.return)&&e.call(C),b<2&&(x=TypeError("The iterator does not provide a '"+R+"' method"),b=1);C=t}else if((e=(L=T.n<0)?x:k.call(j,T))!==a)break}catch(N){C=t,b=1,x=N}finally{M=1}}return{value:e,done:L}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(yt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(d);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,yt(h,s,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,yt(f,"constructor",u),yt(u,"constructor",l),l.displayName="GeneratorFunction",yt(u,s,"GeneratorFunction"),yt(f),yt(f,s,"Generator"),yt(f,r,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(Os=function(){return{w:i,m:y}})()}function yt(t,e,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(i){s=0}yt=function(a,o,l,u){if(o)s?s(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var d=function(y,h){yt(a,y,function(p){return this._invoke(y,h,p)})};d("next",0),d("throw",1),d("return",2)}},yt(t,e,n,r)}function Xu(t,e,n,r,s,i,a){try{var o=t[i](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,s)}function Ju(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function a(l){Xu(i,r,s,a,o,"next",l)}function o(l){Xu(i,r,s,a,o,"throw",l)}a(void 0)})}}function yb(t,e){return vb(t)||gb(t,e)||mb(t,e)||pb()}function pb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mb(t,e){if(t){if(typeof t=="string")return Zu(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zu(t,e):void 0}}function Zu(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function gb(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function vb(t){if(Array.isArray(t))return t}var bb=function(e){var n,r=e.className,s=Nt(),i=dt(),a=D.useState(!1),o=yb(a,2),l=o[0],u=o[1],d=Cr({query:{select:function(A){var C=A.data;return C==null?void 0:C.brands}}}),f=d.data,y=ty({mutation:{onSettled:function(){s.invalidateQueries({queryKey:[Zt()]})}}}),h=y.mutateAsync,p=y.isPending,m=D.useMemo(function(){var j;return(j=f==null?void 0:f.filter(function(A){var C;return((C=A.settings)===null||C===void 0?void 0:C.showAutomaticAnalysisDisabledNotification)===!0}))!==null&&j!==void 0?j:[]},[f]);D.useEffect(function(){u(m.length!==0)},[m]);var g=function(){var j=Ju(Os().m(function A(){var C;return Os().w(function(b){for(;;)switch(b.n){case 0:return C=m.map(function(x){return h({brandId:String(x.id),data:{showAutomaticAnalysisDisabledNotification:!1}})}),b.n=1,Promise.all(C);case 1:u(!1);case 2:return b.a(2)}},A)}));return function(){return j.apply(this,arguments)}}(),v=function(){var j=Ju(Os().m(function A(){return Os().w(function(C){for(;;)switch(C.n){case 0:return C.n=1,g();case 1:i("/settings");case 2:return C.a(2)}},A)}));return function(){return j.apply(this,arguments)}}(),S=m.length===1?"One brand has been deactivated":"Multiple brands have been deactivated",k=m.length===1?c.jsxs(c.Fragment,{children:[c.jsx("p",{children:"You recently lost a subscription. Because of this, we could not analyze all your active brands."}),c.jsxs("p",{children:["The brand ",c.jsx("b",{children:m==null||(n=m[0])===null||n===void 0?void 0:n.name})," was deactivated, since it was the most recently analyzed."]}),c.jsxs("p",{children:["If you prefer, you can go to ",c.jsx("b",{children:"Settings"})," and deactivate a different brand instead."]})]}):c.jsxs(c.Fragment,{children:[c.jsx("p",{children:"You recently lost a subscription. Because of this, we could not analyze all your active brands."}),c.jsx("p",{children:"The following brands were deactivated, since they were the most recently analyzed:"}),c.jsx("ul",{children:m.map(function(j){return c.jsx("li",{children:c.jsx("b",{children:j.name})},j.id)})}),c.jsxs("p",{children:["If you prefer, you can go to ",c.jsx("b",{children:"Settings"})," and deactivate different brand(s) instead."]})]});return l?c.jsx(w.Modal,{isOpen:l,onClose:v,position:"center",as:"div",className:r,children:c.jsxs(w.Modal.Panel,{children:[c.jsx("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:c.jsxs("div",{className:"yst-flex-1",children:[c.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:c.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:S})}),c.jsx(w.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:k})]})}),c.jsxs(w.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[c.jsx(w.Button,{variant:"secondary",onClick:v,children:"Close"}),c.jsx(w.Button,{variant:"primary",onClick:v,isLoading:p,disabled:p,children:"Go to settings"})]})]})}):null};const xb=t=>E.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8948 6.33943C17.1675 6.33943 17.4064 6.52012 17.4816 6.78187L18.1436 9.09795C18.4332 10.112 19.226 10.9049 20.2401 11.1945L22.5562 11.8565C22.8804 11.9493 23.0679 12.2871 22.975 12.6113C22.9167 12.814 22.7588 12.9719 22.5562 13.0301L20.2401 13.6921C19.226 13.9817 18.4332 14.7746 18.1436 15.7886L17.4816 18.1047C17.3887 18.4289 17.051 18.6164 16.7267 18.5235C16.5241 18.4652 16.3662 18.3073 16.3079 18.1047L15.646 15.7886C15.3563 14.7746 14.5635 13.9817 13.5494 13.6921L11.2333 13.0301C10.9091 12.9372 10.7217 12.5995 10.8145 12.2753C10.8728 12.0726 11.0307 11.9147 11.2333 11.8565L13.5494 11.1945C14.5635 10.9049 15.3563 10.112 15.646 9.09795L16.3079 6.78187C16.3831 6.52012 16.622 6.33943 16.8948 6.33943Z",fill:"url(#paint0_linear_1940_1302)"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9302 1.57979C11.1151 1.57979 11.2764 1.7056 11.3211 1.8846L11.4596 2.44103C11.5863 2.94596 11.9806 3.33943 12.4847 3.46608L13.0411 3.60456C13.2572 3.65775 13.3881 3.87644 13.3349 4.09175C13.2986 4.23698 13.1855 4.35012 13.0411 4.38559L12.4847 4.52406C11.9797 4.65071 11.5863 5.04503 11.4596 5.54911L11.3211 6.10554C11.2679 6.3217 11.0492 6.45257 10.8339 6.39938C10.6887 6.36307 10.5756 6.24993 10.5401 6.10554L10.4016 5.54911C10.2758 5.04418 9.8815 4.64987 9.37658 4.52406L8.82015 4.38559C8.60399 4.33239 8.47312 4.1137 8.52631 3.89839C8.56262 3.75316 8.67576 3.64002 8.82015 3.60456L9.37658 3.46608C9.8815 3.34027 10.2758 2.94596 10.4016 2.44103L10.5401 1.8846C10.584 1.7056 10.7453 1.57979 10.9302 1.57979Z",fill:"url(#paint1_linear_1940_1302)"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.36896 11.3034C6.4669 11.3034 6.55472 11.3659 6.58511 11.4596L6.70501 11.8193C6.75061 11.9552 6.857 12.0625 6.99294 12.1072L7.35263 12.2271C7.47169 12.2668 7.5367 12.3968 7.49617 12.5159C7.47338 12.5835 7.42018 12.6366 7.35263 12.6594L6.99294 12.7793C6.857 12.8249 6.74976 12.9313 6.70501 13.0673L6.58511 13.427C6.54543 13.546 6.4154 13.611 6.29634 13.5705C6.22879 13.5477 6.1756 13.4945 6.1528 13.427L6.0329 13.0673C5.98731 12.9313 5.88092 12.8241 5.74498 12.7793L5.38528 12.6594C5.26623 12.6198 5.20121 12.4897 5.24174 12.3707C5.26454 12.3031 5.31773 12.2499 5.38528 12.2271L5.74498 12.1072C5.88092 12.0616 5.98815 11.9552 6.0329 11.8193L6.1528 11.4596C6.18404 11.3667 6.27101 11.3034 6.36896 11.3034Z",fill:"url(#paint2_linear_1940_1302)"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.02759 15.6679C4.12553 15.6679 4.21335 15.7304 4.24374 15.8241L4.36364 16.1838C4.40924 16.3197 4.51563 16.427 4.65157 16.4717L5.01126 16.5916C5.13032 16.6313 5.19533 16.7613 5.1548 16.8804C5.13201 16.9479 5.07881 17.0011 5.01126 17.0239L4.65157 17.1438C4.51563 17.1894 4.40839 17.2958 4.36364 17.4318L4.24374 17.7915C4.20406 17.9105 4.07403 17.9755 3.95497 17.935C3.88742 17.9122 3.83423 17.859 3.81143 17.7915L3.69153 17.4318C3.64594 17.2958 3.53955 17.1886 3.40361 17.1438L3.04391 17.0239C2.92486 16.9842 2.85984 16.8542 2.90037 16.7352C2.92317 16.6676 2.97636 16.6144 3.04391 16.5916L3.40361 16.4717C3.53955 16.4261 3.64678 16.3197 3.69153 16.1838L3.81143 15.8241C3.84267 15.7312 3.92964 15.6679 4.02759 15.6679Z",fill:"url(#paint3_linear_1940_1302)"}),E.createElement("path",{d:"M3.77599 15.1216C3.46273 14.2874 3.29133 13.3856 3.29133 12.4433C3.29133 9.14607 5.39124 6.33014 8.3237 5.26287L7.93951 4.23276C4.58742 5.4537 2.19366 8.66901 2.19366 12.4433C2.19366 13.5139 2.38702 14.5398 2.73912 15.488L3.77599 15.1216Z",fill:"url(#paint4_linear_1940_1302)"}),E.createElement("path",{d:"M15.6899 18.4137C14.3837 19.4574 12.7287 20.0822 10.9302 20.0822C8.72816 20.0822 6.74055 19.1449 5.34482 17.6487L4.53424 18.3935C6.12923 20.1075 8.40393 21.179 10.9302 21.179C12.9846 21.179 14.8725 20.4697 16.3645 19.2834L15.6899 18.4129V18.4137Z",fill:"url(#paint5_linear_1940_1302)"}),E.createElement("path",{d:"M10.9302 8.35407C12.0203 8.35407 13.0115 8.78385 13.7453 9.48129L14.4807 8.66311C13.5528 7.79089 12.3048 7.25641 10.931 7.25641C8.65549 7.25641 6.7236 8.72221 6.02448 10.7613L7.05628 11.1396C7.60173 9.52266 9.13171 8.35407 10.931 8.35407H10.9302Z",fill:"url(#paint6_linear_1940_1302)"}),E.createElement("path",{d:"M13.7402 15.4104C13.0073 16.1053 12.0177 16.5325 10.931 16.5325C9.1241 16.5325 7.58906 15.3546 7.04951 13.7259L6.00842 14.0771C6.6932 16.1407 8.63775 17.6302 10.931 17.6302C12.3065 17.6302 13.5561 17.0932 14.4849 16.2193L13.7402 15.4104Z",fill:"url(#paint7_linear_1940_1302)"}),E.createElement("defs",null,E.createElement("linearGradient",{id:"paint0_linear_1940_1302",x1:5.35747,y1:4.15001,x2:20.3929,y2:14.9578,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint1_linear_1940_1302",x1:7.32986,y1:1.40754,x2:22.3653,y2:12.2153,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint2_linear_1940_1302",x1:1.77228,y1:9.13847,x2:16.8077,y2:19.9462,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint3_linear_1940_1302",x1:-1.09428,y1:13.1255,x2:13.9412,y2:23.9333,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint4_linear_1940_1302",x1:2.64455,y1:7.92344,x2:17.68,y2:18.7312,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint5_linear_1940_1302",x1:.172293,y1:11.3642,x2:15.2078,y2:22.172,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint6_linear_1940_1302",x1:4.40247,y1:5.47904,x2:19.4379,y2:16.2868,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})),E.createElement("linearGradient",{id:"paint7_linear_1940_1302",x1:1.58821,y1:9.39517,x2:16.6237,y2:20.2029,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"})))),Ab="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2AAAAHoCAYAAAAv7ow4AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAOtaSURBVHgB7L0HgBzFmb/99uYg7SqDhERSAiSiwBYCgYkHlg3YBgsHggPRCQyOdwaDz8afDQf2nYlnsm2CfMYE4z/ZBoRsEBgFQGQQklDWrrRBm/qrt3qqp6q7uqdndtLu/h5YzUx3dXXN7OxMPf1WveW4AgIAAAAAAAAAUHAqCAAAAAAAAABAUYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAAAAQJGAgAEAAAAAAABAkYCAAQAAAAAAAECRgIABAAAAAA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BASOEEEIIIYSQMYICRgghhBBCCCFjBAWMEEIIIYQQQsYIChghhBBCCCGEjBEUMEIIIYQQQggZIyhghBBCCCGEEDJGUMAIIYQQQgghZIyggBFCCCGEEELIGEEBI4QQQgghhJAxggJGCCGEEEIIIWMEBYwQQgghhBBCxggKGCGEEEIIIYSMERQwQgghhBBCCBkjKGCEEEIIIYQQMkZQwAghhBBCCCFkjKCAEUIIIYQQQsgYQQEjhBBCCCGEkDGCAkYIIYQQQgghY8T/B+cQ4pXsw1icAAAAAElFTkSuQmCC";var ss=function(e){var n=e.className,r=n===void 0?"":n,s=e.size,i=s===void 0?6:s;return c.jsx("hr",{className:te("yst-mb-".concat(i," yst-mt-").concat(i),r)})},oy=function(e){var n=e.isOpen,r=e.variant,s=r===void 0?"purchase":r,i=e.onClose,a=Ot(),o=a.hostAppProps.onAddSubscription,l=function(){o==null||o()};return c.jsx(w.Modal,{isOpen:n,onClose:i||function(){},position:"center",as:"div",className:"[&_.yst-modal\\_\\_close-button]:yst-bg-transparent",children:c.jsxs(w.Modal.Panel,{className:te("yst-relative yst-max-w-[512px] yst-rounded-3xl yst-bg-gradient-to-b yst-from-[rgba(166,30,105,0.25)] yst-via-white yst-via-40% yst-to-white yst-px-10",{"yst-pt-10":!!i,"yst-py-10":!i}),hasCloseButton:!!i,children:[c.jsx("img",{src:Ab,alt:"Upsell image",className:"yst-mb-6 yst-rounded-lg yst-shadow-lg"}),c.jsxs(w.Modal.Container.Header,{className:"yst-mb-4 yst-space-y-4 yst-text-center",children:[c.jsxs("p",{className:"yst-flex yst-items-center yst-justify-center yst-gap-1 yst-text-center yst-text-xs yst-uppercase yst-text-slate-500",children:[c.jsx(xb,{className:"yst-h-6 yst-w-6"})," Available now - Yoast AI Brand Insights"]}),c.jsx(w.Modal.Title,{as:"h2",className:"yst-pr-8 yst-text-lg yst-font-medium yst-text-slate-900",children:"How does your brand show up in AI responses?"}),s==="trial"?c.jsxs("p",{className:"yst-text-tiny yst-font-normal yst-text-slate-600",children:["Track visibility, control perception, and stay ahead - tools to manage your AI presence are now live."," ",c.jsx("strong",{children:"Try it for free, on us!"})]}):c.jsx("p",{className:"yst-text-tiny yst-font-normal yst-text-slate-600",children:"Track visibility, control perception, and stay ahead - tools to manage your AI presence are now live!"})]}),s==="trial"&&c.jsxs(c.Fragment,{children:[c.jsx(ss,{size:4}),c.jsx(w.Modal.Container.Content,{className:"yst-space-y-4",children:c.jsxs("p",{className:"yst-text-sm yst-italic yst-text-slate-600",children:["By continuing to use this product, you agree to our"," ",c.jsx(w.Link,{href:"https://yoast.com/terms-and-conditions/",target:"_blank",rel:"noopener noreferrer",variant:"default",children:"terms and conditions"})," ","and"," ",c.jsx(w.Link,{href:"https://yoast.com/privacy-policy/",target:"_blank",rel:"noopener noreferrer",variant:"default",children:"privacy notice"}),"."]})})]}),c.jsxs(w.Modal.Container.Footer,{className:"yst-mt-6 yst-flex yst-flex-col yst-gap-2",children:[s==="trial"?c.jsxs(w.Button,{variant:"primary",onClick:l,className:"yst-flex yst-w-full yst-items-center yst-gap-1",children:[c.jsx(ay,{})," Discover Brand Insights now"]}):c.jsxs(w.Button,{variant:"upsell",onClick:l,className:"yst-flex yst-w-full yst-items-center yst-gap-1",children:[c.jsx(Qv,{})," Unlock Yoast AI Brand Insights"]}),!!i&&c.jsx(w.Button,{onClick:i,variant:"tertiary",className:"yst-text-center",children:"Close"})]})]})})},_a=function(){return c.jsx("div",{className:"yst-flex yst-min-h-screen yst-items-center yst-justify-center",children:c.jsxs("div",{className:"yst-flex yst-items-center yst-gap-3 yst-text-center",children:[c.jsx(w.Spinner,{variant:"primary"}),c.jsx("span",{className:"yst-italic",children:"Just a moment while we get things ready for you..."})]})})};function wb(t,e){return Ob(t)||jb(t,e)||Cb(t,e)||Sb()}function Sb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cb(t,e){if(t){if(typeof t=="string")return $u(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$u(t,e):void 0}}function $u(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function jb(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function Ob(t){if(Array.isArray(t))return t}var Eb={HOME:"/"},kb=function(e){var n,r,s,i=e.hideNav,a=i===void 0?!1:i,o=e.disableLayout,l=o===void 0?!1:o,u=e.DebugInfo,d=et(),f=dt(),y=D.useState(!0),h=wb(y,2),p=h[0],m=h[1],g={disable:l,hideNav:a},v=Ot(),S=v.brandId,k=mi(),j=k.setBrandId,A=Cr({query:{refetchOnReconnect:!1,refetchOnWindowFocus:!1,select:function(G){var z;return G==null||(z=G.data)===null||z===void 0?void 0:z.brands}}}),C=A.data,b=A.isLoading,x=A.error,M=A.refetch,_=pi(),L=_.data,T=D.useRef(!1),H=D.useMemo(function(){return C==null?void 0:C.find(function(N){return N.id===S})},[C,S]);D.useEffect(function(){var N;if(!(C===void 0||S)){var G=(N=C[0])===null||N===void 0?void 0:N.id;G&&j(G)}},[C,S,j,f,d.pathname]),D.useEffect(function(){!S||T.current||(T.current=!0)},[H,S,f,d.pathname,C]);var R=D.useCallback(function(){M()},[M]);if(d.pathname!==Eb.HOME&&b)return c.jsx(ro,{...g,children:c.jsx(_a,{})});if(x)return c.jsx(ro,{...g,children:c.jsx("div",{className:"yst-flex yst-min-h-screen yst-items-center yst-justify-center",children:c.jsxs("div",{className:"yst-space-y-4 yst-text-center",children:[c.jsx("div",{className:"yst-mb-4 yst-text-6xl yst-text-red-600",children:"⚠️"}),c.jsx("h2",{className:"yst-text-xl yst-font-semibold yst-text-slate-900",children:"Something went wrong"}),c.jsx("p",{className:"yst-text-slate-600",children:"We couldn't load your Brand Analysis. Please try again shortly."}),c.jsx(w.Button,{variant:"primary",onClick:R,children:"Retry"})]})})});var O=(L==null||(n=L.data)===null||n===void 0?void 0:n.activeSubscriptions)===0,I=(L==null||(r=L.data)===null||r===void 0?void 0:r.brands)&&(L==null||(s=L.data)===null||s===void 0||(s=s.brands)===null||s===void 0?void 0:s.length)>0;return c.jsxs(ro,{DebugInfo:u,...g,children:[c.jsx(Vr,{}),c.jsx(bb,{}),O&&c.jsx(oy,{isOpen:p,onClose:I?function(){m(!1)}:void 0})]})},tn=function(e){var n=e.title,r=et();return D.useEffect(function(){document.title=n},[r,n]),null},Tb=function(){var e=Ca(),n=e.brandId,r=e.analysisId,s=$h(n,{query:{enabled:!!n,select:function(d){var f=d.data;return(f==null?void 0:f.analyses)||[]}}}),i=s.data,a=s.isLoading,o=s.error;if(a)return c.jsx(_a,{});if(o)return console.error("Error fetching analyses for validation:",o),c.jsx(Mr,{to:"/brands/".concat(n),replace:!0});if(!r||r.trim()==="")return c.jsx(Mr,{to:"/brands/".concat(n),replace:!0});if(r==="latest")return c.jsx(Vr,{});var l=i==null?void 0:i.some(function(u){return u.id===r});return l?c.jsx(Vr,{}):c.jsx(Mr,{to:"/brands/".concat(n),replace:!0})},ec=function(){var e=Ca(),n=e.brandId,r=Cr({query:{select:function(f){var y=f.data;return y}}}),s=r.data,i=r.isLoading,a=r.error,o=r.isFetched,l=(s==null?void 0:s.brands)||[];if(i||!o)return c.jsx(_a,{});if(a)return c.jsx(Mr,{to:"/",replace:!0});if(!n||n.trim()==="")return c.jsx(Mr,{to:"/",replace:!0});var u=l.length>0&&l.some(function(d){return String(d.id)===n});return o&&!u?c.jsx(Mr,{to:"/",replace:!0}):c.jsx(Vr,{})};function Pb(t){return Ib(t)||Lb(t)||ly(t)||Mb()}function Mb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lb(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ib(t){if(Array.isArray(t))return rl(t)}function Rb(t,e){return Db(t)||_b(t,e)||ly(t,e)||Nb()}function Nb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ly(t,e){if(t){if(typeof t=="string")return rl(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rl(t,e):void 0}}function rl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _b(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function Db(t){if(Array.isArray(t))return t}var ql=D.createContext(void 0),Bb=function(e){var n=e.children,r=D.useState([]),s=Rb(r,2),i=s[0],a=s[1],o=D.useCallback(function(u){a(function(d){return d.filter(function(f){return f.id!==u})})},[]),l=D.useCallback(function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(function(f){var y,h,p=typeof u=="string"?f.some(function(S){return typeof S.message!="string"?!1:S.message===u&&S.variant===(d.variant||"info")}):!1;if(p)return f;var m="toast-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,11)),g=(y=d.duration)!==null&&y!==void 0?y:5e3,v={id:m,message:u,variant:d.variant||"info",duration:g,dismissible:(h=d.dismissible)!==null&&h!==void 0?h:!0};return g>0&&setTimeout(function(){o(m)},g),[].concat(Pb(f),[v])})},[o]);return c.jsx(ql.Provider,{value:{toasts:i,addToast:l,removeToast:o},children:n})},Fb=function(){var e=D.useContext(ql);if(!e)return null;var n=e.toasts,r=e.removeToast;if(typeof window=="undefined")return null;var s=document.getElementById("hook-toasts");return s?Jf.createPortal(c.jsx("div",{className:te("yst-w-full yst-space-y-4"),"aria-live":"polite","aria-atomic":"true",children:n.map(function(i){var a;return c.jsxs(w.Toast,{className:te("yst-w-full",i.className),id:i.id,variant:i.variant||"info",autoDismiss:i.dismissible?0:(a=i.duration)!==null&&a!==void 0?a:1500,onDismiss:function(){return r(i.id)},isVisible:!0,setIsVisible:function(){},children:[c.jsxs("div",{className:"yst-flex yst-gap-3",children:[c.jsx("div",{className:"yst-flex-shrink-0",children:c.jsx(w.ValidationIcon,{className:"yst-h-5 yst-w-5",variant:i.variant})}),c.jsxs("div",{className:"yst-flex-1",children:[typeof i.title=="string"?c.jsx(w.Title,{title:i.title}):i.title,typeof i.message=="string"?c.jsx("p",{className:"yst-mb-0",children:i.message}):i.message]}),i.dismissible&&c.jsx("div",{children:c.jsx(w.Toast.Close,{className:"yst-p-0 yst-text-slate-400",dismissScreenReaderLabel:"Dismiss"})})]}),i.actions&&c.jsx("div",{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-3",children:c.jsx(i.actions,{dismiss:function(){return r(i.id)}})})]},i.id)})}),s):null},zl=function(){var e=D.useContext(ql);if(!e)throw new Error("useToast must be used within a ToastProvider");var n=e.addToast;return D.useCallback(function(r,s){n(r,s)},[n])},Ub={openai:"openai",perplexity:"perplexity",anthropic:"anthropic"},Hb={updating:"updating"},jn={pending:"pending",processing:"processing",completed:"completed",failed:"failed",cancelled:"cancelled"},Wb=function(e){return typeof e=="string"&&e!=="latest"&&e.trim().length>0};function Qb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M14.707 12.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l2.293-2.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}const uy=E.forwardRef(Qb);function qb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}const zb=E.forwardRef(qb);function Gb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M5.293 7.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L6.707 7.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const cy=E.forwardRef(Gb);function Yb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}const dy=E.forwardRef(Yb);function Vb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}const Kb=E.forwardRef(Vb);function Xb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))}const Jb=E.forwardRef(Xb);function Zb(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"}))}const tc=E.forwardRef(Zb);function $b(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),E.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))}const fy=E.forwardRef($b);function e1(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm14 1a1 1 0 11-2 0 1 1 0 012 0zM2 13a2 2 0 012-2h12a2 2 0 012 2v2a2 2 0 01-2 2H4a2 2 0 01-2-2v-2zm14 1a1 1 0 11-2 0 1 1 0 012 0z",clipRule:"evenodd"}))}const t1=E.forwardRef(e1);function n1(t,e){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e},t),E.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}const hy=E.forwardRef(n1);function Qs(t){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qs(t)}var r1=["children","as","startColor","endColor","angle","disabled","style","className"];function nc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function rc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nc(Object(n),!0).forEach(function(r){s1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function s1(t,e,n){return(e=i1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i1(t){var e=a1(t,"string");return Qs(e)=="symbol"?e:e+""}function a1(t,e){if(Qs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function o1(t,e){if(t==null)return{};var n,r,s=l1(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function l1(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var qs=function(e){var n=e.children,r=e.as,s=r===void 0?"span":r,i=e.startColor,a=i===void 0?"#A61E69":i,o=e.endColor,l=o===void 0?"#6366F1":o,u=e.angle,d=u===void 0?102:u,f=e.disabled,y=f===void 0?!1:f,h=e.style,p=h===void 0?{}:h,m=e.className,g=m===void 0?"":m,v=o1(e,r1),S=rc(y?{display:"inline-block"}:{background:"linear-gradient(".concat(d,"deg, ").concat(a,", ").concat(l,")"),WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"},p);return c.jsx(s,{className:g,style:S,...v,children:n})};function Gl(t){var e=t.children,n=t.nestedInPaperContent,r=n===void 0?!1:n,s=t.className;return c.jsx("div",{className:te("yst-mt-8 yst-flex yst-items-center yst-justify-end yst-gap-6 yst-rounded-bl-lg yst-rounded-br-lg yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6",{"yst-mb-[-2rem] yst-ml-[-2rem] yst-mr-[-2rem]":r},s),children:e})}var u1=function(){var e=dt();return c.jsx("form",{onSubmit:function(){return e("/setup")},children:c.jsxs(w.Paper,{className:"yst-mx-auto yst-flex yst-max-w-2xl",children:[c.jsx(w.Paper.Header,{children:c.jsxs(w.Title,{size:"1",children:["Welcome to ",c.jsx(qs,{children:"Yoast AI Brand Insights"}),"!"]})}),c.jsxs(w.Paper.Content,{className:"yst-space-y-8",children:[c.jsxs("div",{className:"yst-space-y-4 *:yst-text-tiny",children:[c.jsx("p",{children:"See how your brand is represented in AI answers."}),c.jsxs("p",{children:[c.jsx("b",{className:"yst-font-medium yst-text-slate-800",children:"Yoast AI Brand Insights"})," ","shows how often your brand appears, how it's described, and how it compares to competitors in tools like ChatGPT."]}),c.jsx("p",{children:"It only takes three simple steps to get your brand insights:"})]}),c.jsx("div",{className:"yst-flex yst-flex-col yst-items-stretch yst-justify-stretch yst-gap-4 yst-pb-8",children:[{title:"1. ADD BRAND INFO",description:"Tell us about your brand and where it's active so we can customize your analysis."},{title:"2. REVIEW QUERIES",description:"Edit or approve the queries generated from your input."},{title:"3. RUN ANALYSIS",description:"Run your queries through relevant AI models to see how your brand shows up."}].map(function(n,r,s){return c.jsxs("div",{className:"yst-relative yst-flex yst-flex-col yst-items-stretch",children:[c.jsxs("div",{className:"yst-flex yst-flex-row yst-items-center yst-justify-stretch yst-gap-6",children:[c.jsx(w.Stepper.Step,{isActive:!0,isComplete:!1,children:c.jsx("span",{className:"yst-hidden",children:r+1})}),c.jsxs("div",{className:"yst-flex yst-flex-1 yst-flex-col yst-gap-2 yst-rounded yst-border yst-border-slate-200 yst-p-6",children:[c.jsx(w.Title,{size:"3",className:"yst-font-semibold yst-uppercase",children:n.title}),c.jsx("p",{className:"yst-my-0 yst-py-0",children:n.description})]})]}),r<s.length-1&&c.jsx("div",{className:"yst-absolute yst-left-[-2px] yst-top-1/2 yst-my-0 yst-ml-[13px] yst-h-full yst-border-l-2 yst-border-l-primary-600"})]},n.title)})})]}),c.jsx(Gl,{className:"yst-justify-end",children:c.jsxs(w.Button,{variant:"primary",onClick:function(){return e("/setup")},className:"yst-gap-1.5",children:["Start your first analysis ",c.jsx(zb,{})]})})]})})};function zs(t){return typeof t!="number"?{}:{"yst-text-green-600":t>0,"yst-text-red-600":t<0,"yst-text-gray-400":t===0}}function gi(t){var e=t.score,n=t.total,r=t.suffix,s=t.isLoading,i=s===void 0?!1:s,a=t.className,o=t.hideTotal,l=o===void 0?!1:o,u=t.delta,d=t.deltaFormat,f=d===void 0?"absolute":d,y=t.deltaSuffix,h=t.scoreFormat,p=h===void 0?"absolute":h;return c.jsxs("div",{className:te(a,"yst-font-medium"),children:[c.jsxs("span",{className:"yst-mr-1 yst-text-xl yst-font-bold yst-text-slate-900",children:[i||e===void 0||e===null?"—":e,!i&&e!==void 0&&e!==null&&p==="percentage"?"%":""]}),!l&&n&&n!==0&&n!=="0"&&c.jsxs("span",{className:"yst-text-slate-500",children:["/ ",i?"—":n]}),r&&c.jsxs("span",{className:"yst-text-slate-500",children:[" ",r]}),typeof u=="number"&&!isNaN(u)&&c.jsxs("span",{className:te("yst-ml-2",zs(u)),children:[u>-1&&"+",u,f==="percentage"&&"%"," ",y]})]})}var c1=["Icon","className","children","position","id"];function d1(t,e){return p1(t)||y1(t,e)||h1(t,e)||f1()}function f1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h1(t,e){if(t){if(typeof t=="string")return sc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sc(t,e):void 0}}function sc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function y1(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function p1(t){if(Array.isArray(t))return t}function m1(t,e){if(t==null)return{};var n,r,s=g1(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function g1(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Yl(t){var e=t.Icon,n=e===void 0?Hv:e,r=t.className,s=r===void 0?"":r,i=t.children,a=t.position,o=a===void 0?"left":a,l=t.id,u=l===void 0?"":l,d=m1(t,c1),f=D.useState(!1),y=d1(f,2),h=y[0],p=y[1];return i?c.jsxs("div",{className:s||"yst-relative",onMouseEnter:function(){return p(!0)},onMouseLeave:function(){return p(!1)},"aria-describedby":u?"tooltip-button-id":"tooltip-button",...d,children:[c.jsx(n,{className:"yst-relative yst-h-6 yst-w-6 yst-text-slate-400"}),h&&c.jsx(w.Tooltip,{position:o,id:u||"tooltip-button",children:i})]}):null}var vi=function(e){var n=e.title,r=e.tooltip,s=e.size,i=s===void 0?"3":s,a=e.className,o=a===void 0?"":a,l=function(f){var y=typeof f=="string"?f:"tooltip";return"tooltip-".concat(y.toLowerCase().replace(/\s+/g,"-"))},u=l(n);return c.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between ".concat(o),children:[c.jsx(w.Title,{size:i,children:n}),c.jsx(Yl,{id:u,children:r})]})},ic=function(e){var n=e.keywords,r=e.badgeClassName;return c.jsx("div",{className:"yst-flex yst-flex-wrap yst-gap-2",children:n.map(function(s,i){return s&&c.jsx(w.Badge,{className:r,children:s},i)})})},yy=function(e){var n,r,s,i,a=e.title,o=a===void 0?"Sentiment":a,l=e.tooltip,u=l===void 0?"":l,d=e.data,f=d==null?void 0:d.brandName,y=d==null||(n=d.positivityPercentage)===null||n===void 0?void 0:n.value,h=d==null||(r=d.positivityPercentage)===null||r===void 0||(r=r.previous)===null||r===void 0?void 0:r.difference,p=d==null||(s=d.keywords)===null||s===void 0?void 0:s.positive,m=d==null||(i=d.keywords)===null||i===void 0?void 0:i.negative,g=!d||y===void 0&&h===void 0;return c.jsx(w.Card,{className:"yst-overflow-visible",children:c.jsxs(w.Card.Content,{className:"yst-space-y-8",children:[c.jsx(vi,{title:o,tooltip:u}),c.jsx("div",{className:"yst-space-y-3",children:!g&&c.jsxs(c.Fragment,{children:[c.jsx("p",{children:f||c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-20"})}),c.jsxs("div",{children:[c.jsx("div",{className:"yst-inline-flex",children:c.jsx(gi,{className:"yst-mb-1.5",score:y,scoreFormat:"percentage",suffix:"positive",delta:h})}),c.jsx(w.ProgressBar,{max:100,min:0,progress:y||0,className:te({"yst-bg-red-500":y},"[&>*]:yst-bg-green-500")})]})]})}),g&&c.jsx(w.Alert,{variant:"info",children:"The selected AI model returned no brand sentiment data for your queries. This can happen with some queries or models."}),!!p&&c.jsxs("div",{className:"yst-space-y-2",children:[c.jsx(w.Title,{as:"h5",size:"5",children:"Positive keywords"}),c.jsx(ic,{keywords:p,badgeClassName:"yst-bg-green-100 yst-text-green-800"})]}),!!m&&c.jsxs("div",{className:"yst-space-y-2",children:[c.jsx(w.Title,{as:"h5",size:"5",children:"Negative keywords"}),c.jsx(ic,{keywords:m,badgeClassName:"yst-bg-red-100 yst-text-red-800"})]})]})})};function Gs(t){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gs(t)}var v1=["data"];function ac(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function b1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ac(Object(n),!0).forEach(function(r){x1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function x1(t,e,n){return(e=A1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A1(t){var e=w1(t,"string");return Gs(e)=="symbol"?e:e+""}function w1(t,e){if(Gs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function S1(t,e){if(t==null)return{};var n,r,s=C1(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function C1(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var qn=function(e,n,r){var s=Ot(),i=s.brandId,a=s.analysisId,o=s.model,l=i,u=a,d=o,f=Ia(l,u,{query:{enabled:!!l&&!!u,select:function(g){var v=g.data;return v==null?void 0:v.analysis}}}),y=f.data,h=S1(f,v1),p=D.useMemo(function(){if(!y||!d)return null;var m=y.scans||[];return m.find(function(g){return String(g.aiProvider)===String(d)})||null},[y,d]);return b1({data:p},h)};function j1(){var t,e=qn(),n=e.data;return c.jsx(yy,{title:"Brand sentiment",data:n==null||(t=n.sentiment)===null||t===void 0?void 0:t.own,tooltip:"Percentage of positive versus negative keywords in your query results related to your brand."})}var O1=["children","as","className"];function E1(t,e){if(t==null)return{};var n,r,s=k1(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function k1(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var bi=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];var i=e.reduce(function(a,o,l){return a+o+(r[l]||"")},"");return function(a){var o=a.children,l=a.as,u=l===void 0?"div":l,d=a.className,f=d===void 0?"":d,y=E1(a,O1);return c.jsx(u,{className:te(String(i).trim(),f),...y,children:o})}},so=[{bg:"yst-bg-blue-200",text:"yst-text-blue-900"},{bg:"yst-bg-green-200",text:"yst-text-green-900"},{bg:"yst-bg-purple-200",text:"yst-text-purple-900"},{bg:"yst-bg-pink-200",text:"yst-text-pink-900"},{bg:"yst-bg-yellow-200",text:"yst-text-yellow-900"},{bg:"yst-bg-indigo-200",text:"yst-text-indigo-900"},{bg:"yst-bg-red-200",text:"yst-text-red-900"},{bg:"yst-bg-orange-200",text:"yst-text-orange-900"},{bg:"yst-bg-teal-200",text:"yst-text-teal-900"},{bg:"yst-bg-cyan-200",text:"yst-text-cyan-900"},{bg:"yst-bg-lime-200",text:"yst-text-lime-900"},{bg:"yst-bg-emerald-200",text:"yst-text-emerald-900"},{bg:"yst-bg-sky-200",text:"yst-text-sky-900"},{bg:"yst-bg-violet-200",text:"yst-text-violet-900"},{bg:"yst-bg-fuchsia-200",text:"yst-text-fuchsia-900"},{bg:"yst-bg-rose-200",text:"yst-text-rose-900"},{bg:"yst-bg-amber-200",text:"yst-text-amber-900"}],oc=function(e){if(!e)return so[0];if(e.toLowerCase()==="other")return{bg:"yst-bg-slate-200",text:"yst-text-slate-900"};for(var n=0,r=0;r<e.length;r++){var s=e.charCodeAt(r);n=(n<<5)-n+s,n=n&n}var i=Math.abs(n)%so.length;return so[i]};function Ys(t){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ys(t)}var lc;function uc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function cc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uc(Object(n),!0).forEach(function(r){T1(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uc(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function T1(t,e,n){return(e=P1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P1(t){var e=M1(t,"string");return Ys(e)=="symbol"?e:e+""}function M1(t,e){if(Ys(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function L1(t){return N1(t)||R1(t)||py(t)||I1()}function I1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R1(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function N1(t){if(Array.isArray(t))return sl(t)}function dc(t,e){return B1(t)||D1(t,e)||py(t,e)||_1()}function _1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function py(t,e){if(t){if(typeof t=="string")return sl(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sl(t,e):void 0}}function sl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function D1(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function B1(t){if(Array.isArray(t))return t}function F1(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var ms=bi(lc||(lc=F1(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-slate-400 yst-inline-flex yst-w-20"]))),fc=function(e){var n=e.data,r=e.totalQueries,s=e.isLoading,i=s===void 0?!1:s,a=e.isFirstScan,o=a===void 0?!1:a,l=e.enableCategories,u=l===void 0?!1:l,d=i||!n,f=n||{},y=f.rank,h=f.url,p=f.rootDomain,m=f.category,g=f.impact,v=f.numberOfMentions,S=v==null?void 0:v.value,k=v==null?void 0:v.previous,j=typeof(k==null?void 0:k.difference)=="number"?k.difference:S;return c.jsxs("tr",{className:"yst-flex yst-flex-col yst-py-4 md:yst-table-row md:yst-py-0",children:[c.jsxs(w.Table.Cell,{className:"yst-p-0 yst-py-1 md:yst-ml-0 md:yst-p-2",children:[c.jsx(ms,{as:"span",children:"Rank:"}),d?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):c.jsx("span",{className:"yst-font-medium yst-text-slate-900",children:y!=null?y:"—"})]}),c.jsx(w.Table.Cell,{className:"yst-break-all yst-p-0 yst-py-1 md:yst-ml-0 md:yst-w-1/2 md:yst-p-2",children:d?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-full"}):c.jsxs(w.Link,{className:"yst-font-medium",href:h||"#",rel:"nofollow noreferrer",target:"_blank",children:[c.jsx("span",{className:"yst-inline yst-break-all",children:h!=null?h:"—"}),c.jsx(fy,{className:"yst-ml-1 yst-inline-block yst-h-4 yst-w-4 yst-align-text-bottom"})]})}),c.jsxs(w.Table.Cell,{className:"yst-p-0 yst-py-1 yst-font-medium md:yst-ml-0 md:yst-p-2",children:[c.jsx(ms,{as:"span",children:"Domain:"}),d?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):c.jsx("span",{className:"yst-inline yst-break-all yst-font-medium yst-text-slate-900",children:p!=null?p:"—"})]}),u&&c.jsxs(w.Table.Cell,{className:"yst-p-0 yst-py-1 md:yst-ml-0 md:yst-p-2",children:[c.jsx(ms,{as:"span",children:"Category:"}),d?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-16"}):c.jsx(w.Badge,{className:te(oc(m||"").bg,oc(m||"").text),children:m!=null?m:"—"})]}),c.jsxs(w.Table.Cell,{className:te("yst-p-0 yst-py-0 md:yst-ml-0 md:yst-p-2","yst-font-medium",{"yst-text-green-600":g==="High","yst-text-yellow-600":g==="Medium","yst-text-red-600":g==="Low"}),children:[c.jsx(ms,{as:"span",children:"Impact:"}),d?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-12"}):g!=null?g:"—"]}),c.jsxs(w.Table.Cell,{className:"yst-flex yst-p-0 yst-pt-1 md:yst-ml-0 md:yst-p-2 md:yst-text-right",children:[c.jsx(ms,{as:"span",children:"Mentions:"}),d?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):S?c.jsxs("span",{className:"yst-inline-flex yst-justify-start yst-gap-4 md:yst-justify-end",children:[c.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium",children:[c.jsx("span",{className:"yst-whitespace-nowrap yst-text-slate-500",children:S}),c.jsxs("span",{className:"yst-whitespace-nowrap yst-text-slate-900",children:["/ ",r]})]}),!o&&c.jsxs("span",{className:te(zs(j)),children:[j>-1&&"+",j]})]}):"—"]})]},d?void 0:h)},U1=function(e){var n,r,s,i,a,o=e.enableCategories,l=o===void 0?!1:o,u=D.useState("all"),d=dc(u,2),f=d[0],y=d[1],h=D.useState(1),p=dc(h,2),m=p[0],g=p[1],v=qn(),S=v.data,k=v.isLoading,j=v.isRefetching,A=S==null?void 0:S.citations,C=(S==null||(n=S.scores)===null||n===void 0||(n=n.standardized)===null||n===void 0?void 0:n.citations)||{},b=Object.hasOwn(C,"previous"),x=A==null||(r=A.list)===null||r===void 0?void 0:r.filter(function(O){return f==="all"?!0:O.category===f}),M=10,_=(x==null?void 0:x.length)||0,L=Math.ceil(_/M),T=(m-1)*M,H=T+M,R=x==null?void 0:x.slice(T,H);return D.useEffect(function(){m>L&&L>0&&g(1)},[L,m,g,f]),c.jsx(w.Card,{className:"yst-overflow-visible md:yst-col-span-2",children:c.jsxs(w.Card.Content,{className:"yst-flex yst-flex-col yst-gap-6",children:[c.jsxs("div",{className:"yst-space-y-4",children:[c.jsx(vi,{title:"Citations",tooltip:"Sources the AI used to support brand mentions in the results."}),c.jsx("p",{children:"This table highlights the most important sources where your brand was cited."}),c.jsx(gi,{score:A==null||(s=A.total)===null||s===void 0?void 0:s.value,suffix:"citations",delta:A==null||(i=A.total)===null||i===void 0||(i=i.previous)===null||i===void 0?void 0:i.difference,deltaSuffix:"since last analysis",isLoading:k,hideTotal:!0})]}),(A==null||(a=A.list)===null||a===void 0?void 0:a.length)===0&&!k&&!j?c.jsx(w.Alert,{children:"The selected AI model returned no citations for your queries. This can happen with some queries or models."}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{children:[l&&c.jsx(w.Select,{className:"yst-mb-4 md:yst-max-w-sm",label:"Filter categories",value:f,onChange:function(O){y(O)},id:"citation-category-filter",options:[{value:"all",label:"All categories"}].concat(L1(A!=null&&A.categories?A.categories.map(function(O){return{value:O,label:O}}):[]))}),c.jsxs(w.Table,{variant:"minimal",children:[c.jsx(w.Table.Head,{className:"yst-font-semibold",children:c.jsxs(w.Table.Row,{children:[c.jsx(w.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-pl-2",children:"#"}),c.jsx(w.Table.Cell,{className:"yst yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2",children:"URL"}),c.jsx(w.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2",children:"Root domain"}),l&&c.jsx(w.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell",children:"Category"}),c.jsx(w.Table.Cell,{className:"yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2",children:"Impact"}),c.jsx(w.Table.Cell,{className:"yst-hidden yst-text-right yst-text-slate-900 md:yst-table-cell",children:"Mentions"})]})}),c.jsx(w.Table.Body,{children:k||j?Array.from({length:5}).map(function(O,I){return c.jsx(fc,{isLoading:!0,enableCategories:l},"skeleton-".concat(I))}):R&&R.length>0?R.map(function(O,I){return c.jsx(fc,{data:cc(cc({},O),{},{rank:T+I+1}),totalQueries:S==null?void 0:S.numberOfQueries,isFirstScan:!b,enableCategories:l},"citation-table-row-".concat(O.url,"-").concat(I))}):c.jsx(w.Table.Row,{children:c.jsxs(w.Table.Cell,{colSpan:l?6:5,className:"yst-py-8 yst-text-center yst-text-slate-500",children:[f==="all"?"No citations found.":'No citations found for the "'.concat(f,'" category.')," ",c.jsx(w.Link,{onClick:function(){return y("all")},children:"Show all categories."})]})},"no-results")})]})]}),x&&x.length>M&&c.jsxs("div",{className:"yst-flex yst-items-center yst-justify-end yst-gap-4",children:[c.jsxs("p",{className:"yst-mb-0",children:["Showing ",T+1," to"," ",H>_?_:H," of"," ",_," results"]}),c.jsx(w.Pagination,{variant:"text",className:"yst-flex-row yst-gap-0",current:m,total:L,onNavigate:g,screenReaderTextPrevious:"Previous page",screenReaderTextNext:"Next page"})]})]})]})})};function H1(t,e){return z1(t)||q1(t,e)||Q1(t,e)||W1()}function W1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q1(t,e){if(t){if(typeof t=="string")return hc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hc(t,e):void 0}}function hc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function q1(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function z1(t){if(Array.isArray(t))return t}var yc=function(e){var n,r=e.data,s=e.totalQueries,i=e.isFirstScan,a=i===void 0?!0:i,o=e.isLoading,l=o===void 0?!1:o,u=l||!r,d=r||{},f=d.rank,y=d.brand,h=f==null?void 0:f.previous,p=typeof(h==null?void 0:h.difference)=="number"?h.difference*-1:void 0,m=y==null?void 0:y.numberOfMentions,g=m==null?void 0:m.previous,v=typeof(g==null?void 0:g.difference)=="number"?g.difference:void 0;return c.jsxs(w.Table.Row,{children:[c.jsx(w.Table.Cell,{children:u?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):c.jsxs("span",{className:"yst-flex yst-justify-between yst-gap-4",children:[c.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-2 yst-font-medium",children:[c.jsx("span",{className:"yst-text-slate-500",children:"#"}),c.jsx("span",{className:"yst-text-slate-900",children:f==null?void 0:f.value})]}),!a&&c.jsx("span",{className:te("yst-inline-flex yst-items-center yst-justify-end",zs(h&&typeof p=="number"?p:0)),children:h&&typeof p=="number"?c.jsxs(c.Fragment,{children:[Math.abs(p),p>0?c.jsx(Jb,{className:"yst-h-4 yst-w-4"}):c.jsx(Kb,{className:"yst-h-4 yst-w-4"})]}):c.jsx(tc,{className:"yst-mx-1 yst-h-4 yst-w-4"})})]})}),c.jsx(w.Table.Cell,{children:u?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):c.jsx("span",{className:"yst-font-medium",children:y!=null&&y.isSelf?c.jsx(qs,{children:y==null?void 0:y.name}):(n=y==null?void 0:y.name)!==null&&n!==void 0?n:"—"})}),c.jsx(w.Table.Cell,{children:u?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-8"}):c.jsxs("span",{className:"yst-flex yst-justify-end yst-gap-4",children:[c.jsxs("span",{className:"yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium",children:[c.jsx("span",{className:"yst-text-slate-500",children:m==null?void 0:m.value}),c.jsxs("span",{className:"yst-text-slate-900",children:["/ ",s]})]}),!a&&c.jsx("span",{className:te("yst-ml-auto",zs(g&&typeof v=="number"?v:0)),children:g&&typeof v=="number"?c.jsxs(c.Fragment,{children:[v>-1&&"+",v]}):c.jsx(tc,{className:"yst-h-4 yst-w-4"})})]})})]},u||f==null?void 0:f.value)},G1=function(e){var n,r,s=e.className,i=D.useRef(null),a=D.useState(1),o=H1(a,2),l=o[0],u=o[1],d=qn(),f=d.data,y=d.isLoading,h=d.isRefetching,p=f==null||(n=f.rankings)===null||n===void 0?void 0:n.list,m=(f==null||(r=f.scores)===null||r===void 0||(r=r.standardized)===null||r===void 0?void 0:r.ranking)||{},g=Object.hasOwn(m,"previous"),v=5,S=(p==null?void 0:p.length)||0,k=Math.ceil(S/v),j=(l-1)*v,A=j+v,C=p==null?void 0:p.slice(j,A);return D.useEffect(function(){l>k&&k>0&&u(1)},[k,l,u]),c.jsx(w.Card,{ref:i,className:te("yst-overflow-visible",s),children:c.jsxs(w.Card.Content,{className:"yst-mt-0 yst-space-y-6",children:[c.jsxs("div",{className:"yst-space-y-2",children:[c.jsx(vi,{title:"Competitor ranking",tooltip:"How often competitors are mentioned in your submitted queries."}),c.jsx("p",{children:"Brands with the most mentions for your prompts."})]}),!y&&!h&&(!p||p.length===0)?c.jsx(w.Alert,{variant:"info",children:"The selected AI model returned no brands for your queries. This can happen with some queries or models."}):c.jsxs(w.Table,{variant:"minimal",children:[c.jsx(w.Table.Head,{children:c.jsxs(w.Table.Row,{children:[c.jsx(w.Table.Cell,{className:"yst-w-20 yst-font-semibold",children:"Rank"}),c.jsx(w.Table.Cell,{className:"yst-font-semibold",children:"Brand"}),c.jsx(w.Table.Cell,{className:"yst-w-20 yst-text-right yst-font-semibold",children:"Mentions"})]})}),c.jsx(w.Table.Body,{children:C&&Array.isArray(C)&&C.length>0?C.map(function(b){var x;return c.jsx(yc,{data:b,totalQueries:f==null?void 0:f.numberOfQueries,isFirstScan:!g},"rank-row-".concat((x=b.rank)===null||x===void 0?void 0:x.value))}):y||h?Array.from({length:v}).map(function(b,x){return c.jsx(yc,{isLoading:!0},"skeleton-".concat(x))}):null})]}),!y&&!h&&p&&p.length>v&&c.jsx(w.Pagination,{current:l,total:k,className:"yst-flex-row",onNavigate:u,screenReaderTextNext:"Next",screenReaderTextPrevious:"Previous",variant:"text"})]})})},Y1=function(){var e,n=qn(),r=n.data,s=r==null||(e=r.sentiment)===null||e===void 0?void 0:e.topCompetitor;return c.jsx(yy,{title:"Competitor sentiment",data:s,tooltip:"Percentage of positive versus negative keywords in your query results related to your competitor's brand."})},V1=function(e){var n=e.brand,r=dt(),s=mi(),i=s.setBrandId;return(n==null?void 0:n.setupStatus)==="pendingQuerySelection"?c.jsx(w.Alert,{className:"yst-mt-0",children:c.jsxs("div",{className:"yst-max-w-xl yst-space-y-4",children:[c.jsxs("div",{className:"yst-space-y-2",children:[c.jsxs("h3",{className:"yst-font-medium",children:["Finish your analysis for ",(n==null?void 0:n.name)||"Brand ".concat(n==null?void 0:n.id)]}),c.jsx("p",{children:"Your brand is saved, but you haven’t completed the analysis yet. Review your queries and run the analysis to get your brand insights!"})]}),c.jsx("div",{className:"yst-flex yst-justify-start yst-gap-6",children:c.jsx(w.Link,{onClick:function(){n.id?(i(n.id),r("/setup/".concat(n.id,"/queries"))):console.error("Brand ID is missing.")},children:"Review queries"})})]})}):null},Da=function(e){var n=e.isOpen,r=e.onClose,s=e.onConfirm,i=e.isLoading,a=i===void 0?!1:i,o=e.title,l=e.description,u=e.disabled,d=u===void 0?!1:u,f=e.confirmText,y=f===void 0?"Yes, delete":f,h=e.cancelText,p=h===void 0?"No, go back":h,m=e.className;return c.jsx(w.Modal,{isOpen:n,onClose:r,position:"center",as:"div",className:m,children:c.jsxs(w.Modal.Panel,{children:[c.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[c.jsx("div",{children:c.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-red-100",children:c.jsx(Ji,{className:"yst-h-6 yst-w-6 yst-text-red-600"})})}),c.jsxs("div",{className:"yst-flex-1",children:[c.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:c.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:o})}),c.jsx(w.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:typeof l=="string"?c.jsx("p",{children:l}):l})]})]}),c.jsxs(w.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[c.jsx(w.Button,{variant:"secondary",onClick:r,children:p}),c.jsx(w.Button,{variant:"error",onClick:s,isLoading:a,disabled:d,children:y})]})]})})};const my=6048e5,K1=864e5,pc=Symbol.for("constructDateFrom");function jt(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&pc in t?t[pc](e):t instanceof Date?new t.constructor(e):new Date(e)}function ft(t,e){return jt(e||t,t)}function gy(t,e,n){const r=ft(t,n==null?void 0:n.in);if(isNaN(e))return jt(t,NaN);if(!e)return r;const s=r.getDate(),i=jt(t,r.getTime());i.setMonth(r.getMonth()+e+1,0);const a=i.getDate();return s>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),s),r)}let X1={};function Ba(){return X1}function Vs(t,e){var o,l,u,d,f,y,h,p;const n=Ba(),r=(p=(h=(d=(u=e==null?void 0:e.weekStartsOn)!=null?u:(l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)!=null?d:n.weekStartsOn)!=null?h:(y=(f=n.locale)==null?void 0:f.options)==null?void 0:y.weekStartsOn)!=null?p:0,s=ft(t,e==null?void 0:e.in),i=s.getDay(),a=(i<r?7:0)+i-r;return s.setDate(s.getDate()-a),s.setHours(0,0,0,0),s}function da(t,e){return Vs(t,{...e,weekStartsOn:1})}function vy(t,e){const n=ft(t,e==null?void 0:e.in),r=n.getFullYear(),s=jt(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const i=da(s),a=jt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=da(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function mc(t){const e=ft(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Fa(t,...e){const n=jt.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function fa(t,e){const n=ft(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function J1(t,e,n){const[r,s]=Fa(n==null?void 0:n.in,t,e),i=fa(r),a=fa(s),o=+i-mc(i),l=+a-mc(a);return Math.round((o-l)/K1)}function Z1(t,e){const n=vy(t,e),r=jt(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),da(r)}function $1(t){return jt(t,Date.now())}function ex(t,e,n){const[r,s]=Fa(n==null?void 0:n.in,t,e);return+fa(r)==+fa(s)}function tx(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function nx(t){return!(!tx(t)&&typeof t!="number"||isNaN(+ft(t)))}function rx(t,e){const n=ft(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function sx(t,e){const[n,r]=Fa(t,e.start,e.end);return{start:n,end:r}}function ix(t,e){const{start:n,end:r}=sx(e==null?void 0:e.in,t);let s=+n>+r;const i=s?+n:+r,a=s?r:n;a.setHours(0,0,0,0);let o=1;const l=[];for(;+a<=i;)l.push(jt(n,a)),a.setDate(a.getDate()+o),a.setHours(0,0,0,0);return s?l.reverse():l}function ax(t,e){const n=ft(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function ox(t,e){const n=ft(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const lx={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ux=(t,e,n)=>{let r;const s=lx[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function io(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const cx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hx={date:io({formats:cx,defaultWidth:"full"}),time:io({formats:dx,defaultWidth:"full"}),dateTime:io({formats:fx,defaultWidth:"full"})},yx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},px=(t,e,n,r)=>yx[t];function gs(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,o=n!=null&&n.width?String(n.width):a;s=t.formattingValues[o]||t.formattingValues[a]}else{const a=t.defaultWidth,o=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[o]||t.values[a]}const i=t.argumentCallback?t.argumentCallback(e):e;return s[i]}}const mx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bx={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ax={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wx=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Sx={ordinalNumber:wx,era:gs({values:mx,defaultWidth:"wide"}),quarter:gs({values:gx,defaultWidth:"wide",argumentCallback:t=>t-1}),month:gs({values:vx,defaultWidth:"wide"}),day:gs({values:bx,defaultWidth:"wide"}),dayPeriod:gs({values:xx,defaultWidth:"wide",formattingValues:Ax,defaultFormattingWidth:"wide"})};function vs(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(s);if(!i)return null;const a=i[0],o=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?jx(o,f=>f.test(a)):Cx(o,f=>f.test(a));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=e.slice(a.length);return{value:u,rest:d}}}function Cx(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function jx(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Ox(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],i=e.match(t.parsePattern);if(!i)return null;let a=t.valueCallback?t.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const o=e.slice(s.length);return{value:a,rest:o}}}const Ex=/^(\d+)(th|st|nd|rd)?/i,kx=/\d+/i,Tx={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Px={any:[/^b/i,/^(a|c)/i]},Mx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Lx={any:[/1/i,/2/i,/3/i,/4/i]},Ix={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Rx={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nx={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_x={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Dx={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Bx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Fx={ordinalNumber:Ox({matchPattern:Ex,parsePattern:kx,valueCallback:t=>parseInt(t,10)}),era:vs({matchPatterns:Tx,defaultMatchWidth:"wide",parsePatterns:Px,defaultParseWidth:"any"}),quarter:vs({matchPatterns:Mx,defaultMatchWidth:"wide",parsePatterns:Lx,defaultParseWidth:"any",valueCallback:t=>t+1}),month:vs({matchPatterns:Ix,defaultMatchWidth:"wide",parsePatterns:Rx,defaultParseWidth:"any"}),day:vs({matchPatterns:Nx,defaultMatchWidth:"wide",parsePatterns:_x,defaultParseWidth:"any"}),dayPeriod:vs({matchPatterns:Dx,defaultMatchWidth:"any",parsePatterns:Bx,defaultParseWidth:"any"})},Ux={code:"en-US",formatDistance:ux,formatLong:hx,formatRelative:px,localize:Sx,match:Fx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Hx(t,e){const n=ft(t,e==null?void 0:e.in);return J1(n,ox(n))+1}function Wx(t,e){const n=ft(t,e==null?void 0:e.in),r=+da(n)-+Z1(n);return Math.round(r/my)+1}function by(t,e){var d,f,y,h,p,m,g,v;const n=ft(t,e==null?void 0:e.in),r=n.getFullYear(),s=Ba(),i=(v=(g=(h=(y=e==null?void 0:e.firstWeekContainsDate)!=null?y:(f=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)!=null?h:s.firstWeekContainsDate)!=null?g:(m=(p=s.locale)==null?void 0:p.options)==null?void 0:m.firstWeekContainsDate)!=null?v:1,a=jt((e==null?void 0:e.in)||t,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const o=Vs(a,e),l=jt((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=Vs(l,e);return+n>=+o?r+1:+n>=+u?r:r-1}function Qx(t,e){var o,l,u,d,f,y,h,p;const n=Ba(),r=(p=(h=(d=(u=e==null?void 0:e.firstWeekContainsDate)!=null?u:(l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)!=null?d:n.firstWeekContainsDate)!=null?h:(y=(f=n.locale)==null?void 0:f.options)==null?void 0:y.firstWeekContainsDate)!=null?p:1,s=by(t,e),i=jt((e==null?void 0:e.in)||t,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),Vs(i,e)}function qx(t,e){const n=ft(t,e==null?void 0:e.in),r=+Vs(n,e)-+Qx(n,e);return Math.round(r/my)+1}function Ce(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const An={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return Ce(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Ce(n+1,2)},d(t,e){return Ce(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Ce(t.getHours()%12||12,e.length)},H(t,e){return Ce(t.getHours(),e.length)},m(t,e){return Ce(t.getMinutes(),e.length)},s(t,e){return Ce(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Ce(s,e.length)}},Or={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gc={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return An.y(t,e)},Y:function(t,e,n,r){const s=by(t,r),i=s>0?s:1-s;if(e==="YY"){const a=i%100;return Ce(a,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ce(i,e.length)},R:function(t,e){const n=vy(t);return Ce(n,e.length)},u:function(t,e){const n=t.getFullYear();return Ce(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Ce(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Ce(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return An.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Ce(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const s=qx(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):Ce(s,e.length)},I:function(t,e,n){const r=Wx(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):Ce(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):An.d(t,e)},D:function(t,e,n){const r=Hx(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ce(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const s=t.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Ce(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const s=t.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Ce(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return Ce(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let s;switch(r===12?s=Or.noon:r===0?s=Or.midnight:s=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let s;switch(r>=17?s=Or.evening:r>=12?s=Or.afternoon:r>=4?s=Or.morning:s=Or.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return An.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):An.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ce(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ce(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):An.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):An.s(t,e)},S:function(t,e){return An.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return bc(r);case"XXXX":case"XX":return Jn(r);case"XXXXX":case"XXX":default:return Jn(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return bc(r);case"xxxx":case"xx":return Jn(r);case"xxxxx":case"xxx":default:return Jn(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+vc(r,":");case"OOOO":default:return"GMT"+Jn(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+vc(r,":");case"zzzz":default:return"GMT"+Jn(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return Ce(r,e.length)},T:function(t,e,n){return Ce(+t,e.length)}};function vc(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+e+Ce(i,2)}function bc(t,e){return t%60===0?(t>0?"-":"+")+Ce(Math.abs(t)/60,2):Jn(t,e)}function Jn(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Ce(Math.trunc(r/60),2),i=Ce(r%60,2);return n+s+e+i}const xc=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},xy=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},zx=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return xc(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",xc(r,e)).replace("{{time}}",xy(s,e))},Gx={p:xy,P:zx},Yx=/^D+$/,Vx=/^Y+$/,Kx=["D","DD","YY","YYYY"];function Xx(t){return Yx.test(t)}function Jx(t){return Vx.test(t)}function Zx(t,e,n){const r=$x(t,e,n);if(console.warn(r),Kx.includes(t))throw new RangeError(r)}function $x(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const eA=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tA=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nA=/^'([^]*?)'?$/,rA=/''/g,sA=/[a-zA-Z]/;function Es(t,e,n){var d,f,y,h,p,m,g,v,S;const r=Ba(),s=(d=r.locale)!=null?d:Ux,i=(p=(h=r.firstWeekContainsDate)!=null?h:(y=(f=r.locale)==null?void 0:f.options)==null?void 0:y.firstWeekContainsDate)!=null?p:1,a=(S=(v=r.weekStartsOn)!=null?v:(g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)!=null?S:0,o=ft(t,n==null?void 0:n.in);if(!nx(o))throw new RangeError("Invalid time value");let l=e.match(tA).map(k=>{const j=k[0];if(j==="p"||j==="P"){const A=Gx[j];return A(k,s.formatLong)}return k}).join("").match(eA).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const j=k[0];if(j==="'")return{isToken:!1,value:iA(k)};if(gc[j])return{isToken:!0,value:k};if(j.match(sA))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return{isToken:!1,value:k}});s.localize.preprocessor&&(l=s.localize.preprocessor(o,l));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:s};return l.map(k=>{if(!k.isToken)return k.value;const j=k.value;(Jx(j)||Xx(j))&&Zx(j,e,String(t));const A=gc[j[0]];return A(o,j,s.localize,u)}).join("")}function iA(t){const e=t.match(nA);return e?e[1].replace(rA,"'"):t}function Ac(t,e,n){const[r,s]=Fa(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function aA(t,e){return ex(jt(t,t),$1(t))}function oA(t,e,n){return gy(t,-1,n)}function Ks(t){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ks(t)}function ao(t,e,n){return(e=lA(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lA(t){var e=uA(t,"string");return Ks(e)=="symbol"?e:e+""}function uA(t,e){if(Ks(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wc(t,e){return hA(t)||fA(t,e)||dA(t,e)||cA()}function cA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
32
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dA(t,e){if(t){if(typeof t=="string")return Sc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sc(t,e):void 0}}function Sc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function fA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function hA(t){if(Array.isArray(t))return t}var Qt={selected:{background:"yst-bg-primary-500",text:"yst-text-white",hover:"hover:yst-bg-primary-600"},hasAnalysis:{border:"yst-border-2 yst-border-primary-500",text:"yst-text-slate-900",hover:"hover:yst-bg-primary-50"},today:{underline:"yst-border-b-2 yst-border-slate-400"},indicator:{default:"yst-bg-blue-500"}},yA=function(e){var n=e.analyses,r=e.selectedAnalysisId,s=e.onAnalysisSelect,i=e.isLoading,a=i===void 0?!1:i,o=e.isOpen,l=o===void 0?!1:o,u=e.onClose,d=D.useState(new Date),f=wc(d,2),y=f[0],h=f[1],p=function(x){if(!x)return null;var M=x.slice(0,10),_=M.split("-"),L=wc(_,3),T=L[0],H=L[1],R=L[2],O=Number(T),I=Number(H),N=Number(R);return Number.isNaN(O)||Number.isNaN(I)||Number.isNaN(N)||I<1||I>12||N<1||N>31?null:new Date(O,I-1,N)},m=D.useMemo(function(){var b=new Map;return n.forEach(function(x){var M=p(x.createdAt),_=M?Es(M,"yyyy-MM-dd"):"";_&&(b.has(_)||b.set(_,[]),b.get(_).push(x))}),b},[n]);D.useEffect(function(){if(l&&r){var b=n.find(function(L){return L.id===r});if(b){var x=p(b.createdAt);x&&h(x)}}else if(l&&n.length>0){var M=n.reduce(function(L,T){return new Date(T.createdAt)>new Date(L.createdAt)?T:L}),_=p(M.createdAt);_&&h(_)}},[l,r,n]);var g=D.useMemo(function(){return n.length===0?null:n.reduce(function(b,x){return new Date(x.createdAt)>new Date(b.createdAt)?x:b})},[n]),v=function(){if(g){var x=p(g.createdAt);x&&h(x)}},S=D.useMemo(function(){if(!g)return!1;var b=p(g.createdAt);return b?Ac(b,y):!1},[g,y]),k=D.useMemo(function(){var b=ax(y),x=rx(y),M=new Date(b),_=M.getDay(),L=_===0?6:_-1;M.setDate(M.getDate()-L);var T=new Date(x),H=T.getDay(),R=H===0?0:7-H;return T.setDate(T.getDate()+R),ix({start:M,end:T}).map(function(O){var I=Es(O,"yyyy-MM-dd"),N=m.get(I)||[],G=N.find(function(z){return String(z.id)===String(r)});return{date:I,dateObj:O,isCurrentMonth:Ac(O,y),isToday:aA(O),isSelected:!!G,hasAnalyses:N.length>0,analyses:N}})},[y,m,r]),j=function(){h(function(x){return oA(x)})},A=function(){h(function(x){return gy(x,1)})},C=function(x){if(x.hasAnalyses){if(x.analyses.length===1)s(x.analyses[0].id);else{var M=x.analyses.reduce(function(_,L){return new Date(L.createdAt)>new Date(_.createdAt)?L:_});s(M.id)}u==null||u()}};return l?a?c.jsx("div",{className:"yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg",children:c.jsxs("div",{className:"yst-animate-pulse yst-space-y-4",children:[c.jsx("div",{className:"yst-h-6 yst-rounded yst-bg-slate-200"}),c.jsx("div",{className:"yst-h-48 yst-rounded yst-bg-slate-200"})]})}):c.jsxs("div",{className:"yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-min-w-80 yst-max-w-sm yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg",children:[c.jsxs("div",{className:"yst-mb-6 yst-flex yst-items-center yst-justify-between",children:[c.jsxs("button",{type:"button",onClick:j,className:"yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500",children:[c.jsx("span",{className:"yst-sr-only",children:"Previous month"}),c.jsx(Tv,{className:"yst-h-5 yst-w-5"})]}),c.jsx("h2",{className:"yst-text-sm yst-font-semibold yst-text-slate-900",children:Es(y,"MMMM yyyy")}),c.jsxs("button",{type:"button",onClick:A,className:"yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500",children:[c.jsx("span",{className:"yst-sr-only",children:"Next month"}),c.jsx(Mv,{className:"yst-h-5 yst-w-5"})]})]}),c.jsx("div",{className:"yst-mb-0 yst-grid yst-grid-cols-7 yst-gap-x-1",children:["M","T","W","T","F","S","S"].map(function(b,x){return c.jsx("div",{className:"yst-py-2 yst-text-center yst-text-xs yst-font-medium yst-text-slate-500",children:b},"".concat(b,"-").concat(x))})}),c.jsx("div",{className:"yst-grid yst-grid-cols-7 yst-gap-x-1",children:k.map(function(b){return c.jsx("div",{className:"yst-flex yst-items-center yst-justify-center yst-py-1",children:c.jsxs("button",{type:"button",onClick:function(){return C(b)},disabled:!b.hasAnalyses,className:te("yst-relative yst-rounded-full yst-text-sm yst-transition-colors","yst-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center","yst-p-0",{"yst-text-slate-900":b.isCurrentMonth,"yst-text-slate-400":!b.isCurrentMonth},{"focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-blue-500":b.hasAnalyses,"yst-cursor-not-allowed":!b.hasAnalyses,"yst-cursor-pointer":b.hasAnalyses},ao({},"".concat(Qt.selected.background," ").concat(Qt.selected.text," ").concat(Qt.selected.hover),b.isSelected),ao({},"".concat(Qt.hasAnalysis.border," ").concat(Qt.hasAnalysis.text," ").concat(Qt.hasAnalysis.hover),b.hasAnalyses&&!b.isSelected)),children:[c.jsx("span",{className:te("yst-relative yst-z-10 yst-w-4",ao({},Qt.today.underline,b.isToday&&!b.isSelected)),children:Es(b.dateObj,"d")}),b.hasAnalyses&&b.analyses.length>1&&!b.isSelected&&c.jsx("span",{className:te("yst-absolute yst-right-1 yst-top-1 yst-h-2 yst-w-2 yst-rounded-full",Qt.indicator.default)})]})},b.date)})}),c.jsxs("div",{className:"yst-mt-4 yst-flex yst-items-center yst-gap-4 yst-text-xs yst-text-slate-600",children:[c.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[c.jsx("div",{className:"yst-h-3 yst-w-3 yst-rounded-full ".concat(Qt.hasAnalysis.border)}),c.jsx("span",{children:"Has analysis"})]}),c.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[c.jsx("div",{className:"yst-h-3 yst-w-3 yst-rounded-full ".concat(Qt.selected.background)}),c.jsx("span",{children:"Selected"})]}),c.jsxs("div",{className:"yst-flex yst-items-center yst-gap-1",children:[c.jsx("div",{className:"yst-h-0.5 yst-w-4 yst-bg-slate-400"}),c.jsx("span",{children:"Today"})]})]}),g&&c.jsx("div",{className:"yst-mt-6",children:c.jsx(w.Button,{onClick:v,className:"yst-w-full",disabled:S,children:"Show latest analysis"})})]}):null};function oo(t,e){return vA(t)||gA(t,e)||mA(t,e)||pA()}function pA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mA(t,e){if(t){if(typeof t=="string")return Cc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cc(t,e):void 0}}function Cc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function gA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function vA(t){if(Array.isArray(t))return t}var bA=function(e){var n=e.analyses,r=e.selectedAnalysisId,s=e.onAnalysisSelect,i=e.isLoading,a=i===void 0?!1:i,o=e.disabled,l=o===void 0?!1:o,u=e.id,d=u===void 0?"analysis-date-select":u,f=D.useState(!1),y=oo(f,2),h=y[0],p=y[1],m=D.useState("latest"),g=oo(m,2),v=g[0],S=g[1],k=D.useRef(null),j=function(O){if(!O)return null;var I=O.slice(0,10),N=I.split("-"),G=oo(N,3),z=G[0],F=G[1],q=G[2],U=Number(z),W=Number(F),Q=Number(q);return Number.isNaN(U)||Number.isNaN(W)||Number.isNaN(Q)||W<1||W>12||Q<1||Q>31?null:new Date(U,W-1,Q)},A=function(O){var I=j(O.createdAt);return I?I.getTime():-1/0};D.useEffect(function(){if((r==="latest"||!r)&&n.length>0&&!a){var R=n.reduce(function(O,I){return A(I)>A(O)?I:O});s(R.id)}},[n,r,s,a]);var C=D.useMemo(function(){if(r==="latest"||!r){if(n.length>0){var R=n.reduce(function(O,I){return A(I)>A(O)?I:O});return R.id}return"latest"}return r},[r,n,A]);D.useEffect(function(){S(C)},[C]);var b=n.find(function(R){return String(R.id)===String(v)}),x=n.length>0?String(n.reduce(function(R,O){return A(O)>A(R)?O:R}).id):"",M=function(){if(b){var R=j(b.createdAt),O=R?Es(R,"MMMM d, yyyy"):b.createdAt?b.createdAt.slice(0,10):"Unknown date",I=String(b.id)===x?"(latest)":"(older)";return"".concat(O," ").concat(I)}return n.length>0?"Select date...":"No analyses available"}();D.useEffect(function(){var R=function(I){k.current&&!k.current.contains(I.target)&&p(!1)};return h&&document.addEventListener("mousedown",R),function(){document.removeEventListener("mousedown",R)}},[h]);var _=function(){!l&&!a&&p(!h)},L=function(O){S(O),s(O),p(!1)},T=function(){p(!1)},H=function(O){O.key==="Enter"||O.key===" "?(O.preventDefault(),_()):O.key==="Escape"&&p(!1)};return c.jsxs("div",{ref:k,className:"yst-relative",children:[c.jsxs("div",{className:"yst-relative",children:[c.jsx(w.TextInput,{id:d,onClick:_,onKeyDown:H,onChange:function(){},disabled:l||a,value:M,"aria-expanded":h,"aria-haspopup":"true","aria-label":"Select analysis date",className:te("yst-pr-10",{"yst-cursor-default":!l&&!a})}),c.jsx(jv,{className:te("yst-pointer-events-none yst-absolute yst-right-3 yst-top-1/2 yst--translate-y-1/2 yst-transform",{"yst-text-gray-400":l||a})})]}),c.jsx(yA,{analyses:n,selectedAnalysisId:v,onAnalysisSelect:L,isLoading:a,isOpen:h,onClose:T})]})};function Ay(t){if(t!=null){if(typeof t=="number"){var e=1e12;return t>e?t-Date.now():t}var n=Date.parse(t);if(!Number.isNaN(n))return n-Date.now()}}function xA(t,e){var n=Ay(t);return n!==void 0&&n>e*60*1e3}var AA=2;function wy(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:AA,n=Ay(t);return n!==void 0&&n<=e*60*1e3}function il(t){if(t==null)return"a future date";var e;if(typeof t=="number"){var n=1e12;t>n?e=t:e=Date.now()+t}else{var r=Date.parse(t);Number.isNaN(r)||(e=r)}if(e===void 0)return"a future date";var s=new Date(e),i={month:"long",day:"numeric"},a={hour:"numeric",minute:"2-digit",hour12:!0},o=s.toLocaleDateString("en-US",i),l=s.toLocaleTimeString("en-US",a);return"".concat(o," at ").concat(l)}function Xs(t){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(t)}var jc;function Ei(t,e,n){return(e=wA(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wA(t){var e=SA(t,"string");return Xs(e)=="symbol"?e:e+""}function SA(t,e){if(Xs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lo(t,e){return EA(t)||OA(t,e)||jA(t,e)||CA()}function CA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jA(t,e){if(t){if(typeof t=="string")return Oc(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oc(t,e):void 0}}function Oc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function OA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function EA(t){if(Array.isArray(t))return t}function al(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return pt(S,"_invoke",function(k,j,A){var C,b,x,M=0,_=A||[],L=!1,T={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,I){return C=O,b=0,x=t,T.n=I,a}};function H(R,O){for(b=R,x=O,e=0;!L&&M&&!I&&e<_.length;e++){var I,N=_[e],G=T.p,z=N[2];R>3?(I=z===O)&&(x=N[(b=N[4])?5:(b=3,3)],N[4]=N[5]=t):N[0]<=G&&((I=R<2&&G<N[1])?(b=0,T.v=O,T.n=N[1]):G<z&&(I=R<3||N[0]>O||O>z)&&(N[4]=R,N[5]=O,T.n=z,b=0))}if(I||R>1)return a;throw L=!0,O}return function(R,O,I){if(M>1)throw TypeError("Generator is already running");for(L&&O===1&&H(O,I),b=O,x=I;(e=b<2?t:x)||!L;){C||(b?b<3?(b>1&&(T.n=-1),H(b,x)):T.n=x:T.v=x);try{if(M=2,C){if(b||(R="next"),e=C[R]){if(!(e=e.call(C,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=C.return)&&e.call(C),b<2&&(x=TypeError("The iterator does not provide a '"+R+"' method"),b=1);C=t}else if((e=(L=T.n<0)?x:k.call(j,T))!==a)break}catch(N){C=t,b=1,x=N}finally{M=1}}return{value:e,done:L}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(pt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(d);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,pt(h,s,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,pt(f,"constructor",u),pt(u,"constructor",l),l.displayName="GeneratorFunction",pt(u,s,"GeneratorFunction"),pt(f),pt(f,s,"Generator"),pt(f,r,function(){return this}),pt(f,"toString",function(){return"[object Generator]"}),(al=function(){return{w:i,m:y}})()}function pt(t,e,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(i){s=0}pt=function(a,o,l,u){if(o)s?s(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var d=function(y,h){pt(a,y,function(p){return this._invoke(y,h,p)})};d("next",0),d("throw",1),d("return",2)}},pt(t,e,n,r)}function Ec(t,e,n,r,s,i,a){try{var o=t[i](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,s)}function kA(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function a(l){Ec(i,r,s,a,o,"next",l)}function o(l){Ec(i,r,s,a,o,"throw",l)}a(void 0)})}}function TA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var uo=bi(jc||(jc=TA(["yst-flex-1 yst-space-y-2"]))),PA=function(e){var n,r,s,i,a,o=e.className,l=Ot(),u=l.brandId,d=l.analysisId,f=l.model,y=mi(),h=y.setModel,p=y.setAnalysisId,m=Nt(),g=dt(),v=qn(),S=v.data,k=pi({query:{select:function(ke){var Se=ke.data;return Se}}}),j=k.data,A=k.isLoading,C=j==null?void 0:j.data,b=C==null?void 0:C.displayName,x=Cr({query:{select:function(ke){var Se=ke.data;return Se==null?void 0:Se.brands}}}),M=x.data,_=x.isLoading,L=$h(u,{query:{enabled:!!u,select:function(ke){var Se=ke.data;return Se==null?void 0:Se.analyses}}}),T=L.data,H=L.isLoading,R=Ia(u,d,{query:{enabled:!!u&&!!d,select:function(ke){var Se=ke.data;return Se}}}),O=R.data,I=R.isLoading,N=ca(u,{query:{enabled:!!u,select:function(ke){var Se=ke.data;return Se}}}),G=N.data,z=T2({mutation:{onSuccess:function(){var fe=kA(al().m(function Se(){var _t,en;return al().w(function(Yn){for(;;)switch(Yn.n){case 0:return Yn.n=1,Promise.all([m.invalidateQueries({queryKey:Wl(u)}),m.invalidateQueries({queryKey:$t(u,d)}),m.invalidateQueries({queryKey:Ra(u)})]);case 1:_t=(T==null?void 0:T.filter(function(Ht){return String(Ht.id)!==String(d)}))||[],_t.length>0?(en=_t.reduce(function(Ht,X){var Z=Ht.createdAt?new Date(Ht.createdAt).getTime():0,ie=X.createdAt?new Date(X.createdAt).getTime():0;return ie>Z?X:Ht}),p(en.id),g("/brands/".concat(u,"/analysis/").concat(en.id))):(p("latest"),g("/brands/".concat(u))),K(!1);case 2:return Yn.a(2)}},Se)}));function ke(){return fe.apply(this,arguments)}return ke}()}}),F=z.mutate,q=z.isPending,U=D.useState(!1),W=lo(U,2),Q=W[0],K=W[1],J=function(){K(!1)},ne=D.useState(!1),se=lo(ne,2),he=se[0],oe=se[1],Ee=M==null?void 0:M.find(function(fe){return String(fe.id)===String(u)}),Y=function(ke){switch(ke){case"openai":return"OpenAI";case"perplexity":return"Perplexity";case"anthropic":return"Anthropic";default:return ke||"Unknown"}},Fe=(O==null||(n=O.analysis)===null||n===void 0||(n=n.scans)===null||n===void 0?void 0:n.map(function(fe){return{value:fe.aiProvider,label:Y(fe.aiProvider)}}))||[{value:"",label:"Default model"}],tt=T!=null&&T.some(function(fe){return String(fe.id)===String(d)})?d:T&&T.length>0?T[0].id:"latest",nt=ca(u,{query:{enabled:!!u,select:function(ke){var Se=ke.data;return Se}}}),ye=nt.data,be=(ye==null?void 0:ye.name)||"your brand",rt=il(ye==null?void 0:ye.nextScheduledAnalysis),Ne=O==null||(r=O.analysis)===null||r===void 0?void 0:r.status,jr=D.useState(!1),Gn=lo(jr,2),_e=Gn[0],ae=Gn[1];D.useEffect(function(){var fe,ke=O==null||(fe=O.analysis)===null||fe===void 0?void 0:fe.id;if(!u||!ke||Ne!==jn.completed){ae(!1);return}var Se="yst_legal_alert_dismissed_".concat(u,"_").concat(ke);ae(window.localStorage.getItem(Se)===null)},[u,O==null||(s=O.analysis)===null||s===void 0?void 0:s.id,Ne]);var le=function(ke){var Se;ke.preventDefault();var _t=O==null||(Se=O.analysis)===null||Se===void 0?void 0:Se.id;if(!(!u||!_t)){var en="yst_legal_alert_dismissed_".concat(u,"_").concat(_t);window.localStorage.setItem(en,"true"),ae(!1)}},ge=c.jsxs("div",{className:"yst-max-w-xl yst-space-y-2",children:[c.jsx("p",{className:"yst-font-medium",children:"Your analysis is scheduled"}),c.jsxs("p",{children:["You've completed the setup for"," ",c.jsx("b",{className:"yst-font-medium",children:be}),". The analysis is scheduled to run on"," ",c.jsx("b",{className:"yst-font-medium",children:rt}),". You'll see the results here once it's ready. We'll also notify you by email."]})]}),Te=Ei(Ei(Ei(Ei({scheduledFirstAnalysis:{alertContent:ge,alertVariant:"info"}},jn.pending,{alertContent:ge,alertVariant:"info"}),jn.processing,{alertContent:c.jsxs(c.Fragment,{children:["You've completed the setup for ",be,". The analysis is now processing. You'll see the results here once it's ready. We'll also notify you by email."]}),alertVariant:"info"}),jn.failed,{alertContent:c.jsx(c.Fragment,{children:"Analysis failed. Try restarting the analysis or contact support if the issue persists."}),alertVariant:"danger"}),jn.cancelled,{alertContent:c.jsx(c.Fragment,{children:"Analysis was cancelled. You can restart the analysis when ready."}),alertVariant:"warning"}),Ya=!Ne&&(G==null?void 0:G.setupStatus)==="scheduledFirstAnalysis"?"scheduledFirstAnalysis":Ne,Ai=(i=Te[Ya])!==null&&i!==void 0?i:{alertContent:null,alertVariant:"info"},as=Ai.alertContent,os=Ai.alertVariant,ls=!H&&(G==null?void 0:G.setupStatus)!=="pendingQuerySelection"&&(T==null?void 0:T.length)===0&&(G==null?void 0:G.nextScheduledAnalysis)===null,us=Ne===jn.completed&&S&&["updating","completed"].includes(S.status)&&!S.isUpToDateWithBrandGroups,wi=(S==null?void 0:S.status)===Hb.updating&&us===!0,Va=function(){var ke,Se,_t=(ke=j==null?void 0:j.maxNumberOfActiveBrands)!==null&&ke!==void 0?ke:0,en=(Se=j==null?void 0:j.numberOfActiveBrands)!==null&&Se!==void 0?Se:0,Yn=_t-en,Ht=Yn>0;if(!Ht){oe(!0);return}g("/setup")};return c.jsxs(c.Fragment,{children:[c.jsx(oy,{isOpen:he,onClose:function(){return oe(!1)}}),c.jsx(Da,{isOpen:Q,onClose:J,onConfirm:function(){u&&d&&F({brandId:u,analysisId:d})},isLoading:q,title:"Delete analysis?",description:c.jsxs(c.Fragment,{children:[c.jsx("p",{children:"This will permanently delete all data associated with this analysis."}),c.jsx("p",{children:"This action cannot be undone."})]}),confirmText:"Yes, delete analysis",cancelText:"No, go back"}),c.jsx(w.Card,{className:te("yst-relative yst-overflow-visible",o),children:c.jsxs(w.Card.Content,{className:"yst-mt-0",children:[c.jsxs("div",{className:"yst-flex yst-flex-1 yst-flex-col yst-flex-wrap yst-items-start yst-justify-between yst-gap-4 md:yst-flex-row xl:yst-items-center",children:[c.jsx("div",{className:"xl:yst-max-w-1/4",children:c.jsxs("div",{className:"yst-flex yst-flex-col xl:yst-flex-row xl:yst-items-baseline xl:yst-gap-2",children:[c.jsx(w.Title,{children:c.jsxs(c.Fragment,{children:[A?c.jsx(w.SkeletonLoader,{className:"yst-inline-block yst-h-8 yst-w-64"}):c.jsxs(c.Fragment,{children:["Hi",b&&" ".concat(b),","]})," "]})}),c.jsx("p",{className:"yst-text-sm yst-font-normal yst-text-slate-600",children:"welcome to your brand analysis!"})]})}),c.jsxs("div",{className:"yst-flex yst-flex-row yst-flex-wrap yst-items-center yst-justify-end yst-gap-4 yst-self-end md:yst-self-start",children:[c.jsxs(w.Button,{variant:"primary",className:"yst-gap-1.5",onClick:Va,disabled:H||_||A,children:[c.jsx(iy,{})," Analyze a different brand"]}),c.jsx("div",{className:"yst-relative",children:c.jsxs(w.DropdownMenu,{children:[c.jsx(w.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:"Open brand list options",disabled:H||_||M&&(M==null?void 0:M.length)<1,children:c.jsx(Dv,{})}),c.jsx(w.DropdownMenu.List,{className:"yst-absolute yst-right-0 yst-top-full yst-z-40 yst-mt-2 yst-flex yst-w-64 yst-flex-col yst-justify-start",children:c.jsxs(w.DropdownMenu.ButtonItem,{onClick:function(){return K(!0)},disabled:H||_||(O==null||(a=O.analysis)===null||a===void 0?void 0:a.status)!=="completed"||!T||T.length===0,className:"yst-flex yst-justify-start yst-gap-1.5 yst-text-red-600 hover:yst-bg-red-50",children:[c.jsx(Ql,{className:"yst-h-4 yst-w-4"}),"Delete analysis"]})})]})})]})]}),c.jsx(ss,{}),c.jsxs("form",{className:"yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-center",children:[c.jsxs(uo,{children:[c.jsx(w.Label,{htmlFor:"brand-name",children:"Brand"}),c.jsx(w.Select,{onChange:function(fe){g("/brands/".concat(fe))},id:"brand-name",value:u||"loading",options:M&&M.length>0?M.map(function(fe){return{value:fe.id,label:fe.name}}):[{value:"loading",label:"Loading..."}],disabled:_||!M||M.length<2||!u})]}),c.jsxs(uo,{children:[c.jsx(w.Label,{htmlFor:"analysis-date",children:"Analysis date"}),c.jsx(bA,{analyses:T||[],selectedAnalysisId:tt,onAnalysisSelect:function(fe){g("/brands/".concat(u,"/analysis/").concat(String(fe)))},isLoading:H,disabled:H||!T||T.length<1,id:"analysis-date"})]}),c.jsxs(uo,{children:[c.jsx(w.Label,{htmlFor:"ai-tool",children:"AI model"}),c.jsx(w.Select,{onChange:function(fe){Object.values(Ub).includes(fe)?h(fe):console.error("Invalid AI provider selected:",fe)},id:"ai-tool",value:f,options:I||H?[{value:f,label:"Loading..."}]:Fe,disabled:I||H||[{}].length<2})]})]})]})}),c.jsxs("div",{className:"ystaii-alerts yst-space-y-4",children:[_e&&c.jsx(w.Alert,{children:c.jsxs("div",{className:"yst-flex yst-w-full",children:[c.jsx("div",{className:"yst-max-w-xl yst-space-y-4",children:c.jsx("p",{className:"yst-mb-0",children:"Note: This content was generated by an AI model (see dropdown above) and may contain errors. Please review before acting on it."})}),c.jsx("div",{className:"yst-ml-auto",children:c.jsx(w.Link,{onClick:le,variant:"default",children:c.jsx(hy,{})})})]})}),Ne!==jn.completed&&as&&c.jsx(w.Alert,{className:"md:yst-col-span-2",variant:os,children:as}),us&&c.jsxs(w.Alert,{variant:"warning",children:["Note: This scan is not up to date with your current brand groups.",wi?c.jsxs(c.Fragment,{children:[" ","We're updating your sentiment analysis to reflect your new brand groups. This may take a few minutes."]}):c.jsx(c.Fragment,{children:" Newer scans will use your newly selected brand groupings."})]})]}),ls&&c.jsx(w.Alert,{variant:"info",className:"yst-mb-6",children:c.jsx("div",{className:"yst-flex yst-items-start yst-gap-3",children:c.jsxs("div",{className:"yst-flex-1",children:[c.jsx("h3",{className:"yst-mb-2 yst-font-medium yst-text-blue-800",children:"No analyses scheduled"}),c.jsxs("p",{className:"yst-text-bluer-700 yst-mb-0",children:[c.jsx("span",{className:"yst-font-medium yst-text-blue-900",children:Ee==null?void 0:Ee.name})," ","has not been analyzed yet, and no analyses are scheduled because this brand is set to inactive in your"," ",c.jsx("span",{className:"yst-cursor-pointer yst-font-medium yst-text-blue-900 yst-underline",onClick:function(){return g("/settings")},role:"button",tabIndex:0,onKeyPress:function(fe){(fe.key==="Enter"||fe.key===" ")&&g("/settings")},children:"Settings"}),"."]})]})})}),Ee&&c.jsx(V1,{brand:Ee},Ee.id)]})},MA=function(){var e,n,r,s=qn(),i=s.data,a=s.isLoading,o=s.isRefetching,l=i==null?void 0:i.mentions;return c.jsx(w.Card,{className:"yst-overflow-visible",children:c.jsxs(w.Card.Content,{className:"yst-space-y-4",children:[c.jsxs("div",{className:"yst-space-y-2",children:[c.jsx(vi,{title:"Mentions",tooltip:"The queries where your brand was mentioned."}),c.jsx(gi,{score:l==null||(e=l.mentionedInNumberOfQueries)===null||e===void 0?void 0:e.value,total:l==null||(n=l.queriesWithMentions)===null||n===void 0?void 0:n.length,suffix:"queries",isLoading:a||o})]}),!a&&l?c.jsx("ul",{children:l==null||(r=l.queriesWithMentions)===null||r===void 0?void 0:r.map(function(u,d){var f=d===0,y=l.queriesWithMentions&&d===l.queriesWithMentions.length-1;return c.jsxs("li",{className:te("yst-flex yst-flex-row yst-items-center yst-gap-2 yst-border-l yst-border-r yst-border-slate-300 yst-p-4 yst-font-medium yst-text-slate-800",{"yst-rounded-t-lg yst-border-t":f,"yst-rounded-b-lg yst-border-b":y,"yst-border-b":!y}),children:[c.jsx("div",{className:"yst-h-4 yst-w-4",children:u!=null&&u.mentioned?c.jsx(Ev,{className:"yst-text-green-500"}):c.jsx($v,{className:"yst-text-red-500"})}),c.jsx("span",{className:"yst-justify-start",children:u.query}),c.jsx("span",{className:"yst-ml-auto yst-flex yst-items-end",children:u!=null&&u.mentioned?c.jsx(w.Badge,{className:"yst-bg-green-100 yst-text-green-800",children:"Found"}):c.jsx(w.Badge,{className:"yst-bg-red-100 yst-text-red-800",children:"Not found"})})]},u.query)})}):c.jsx(w.SkeletonLoader,{className:"yst-h-56 yst-w-full"})]})})};/*!
35
35
  * @kurkle/color v0.3.4
36
36
  * https://github.com/kurkle/color#readme
37
37
  * (c) 2024 Jukka Kurkela
38
38
  * Released under the MIT License
39
- */function ps(t){return t+.5|0}const Mn=(t,e,n)=>Math.max(Math.min(t,n),e);function Si(t){return Mn(ps(t*2.55),0,255)}function _n(t){return Mn(ps(t*255),0,255)}function an(t){return Mn(ps(t/2.55)/100,0,1)}function Cc(t){return Mn(ps(t*100),0,100)}const jt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},rl=[..."0123456789ABCDEF"],OA=t=>rl[t&15],EA=t=>rl[(t&240)>>4]+rl[t&15],Ss=t=>(t&240)>>4===(t&15),kA=t=>Ss(t.r)&&Ss(t.g)&&Ss(t.b)&&Ss(t.a);function TA(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&jt[t[1]]*17,g:255&jt[t[2]]*17,b:255&jt[t[3]]*17,a:e===5?jt[t[4]]*17:255}:(e===7||e===9)&&(n={r:jt[t[1]]<<4|jt[t[2]],g:jt[t[3]]<<4|jt[t[4]],b:jt[t[5]]<<4|jt[t[6]],a:e===9?jt[t[7]]<<4|jt[t[8]]:255})),n}const PA=(t,e)=>t<255?e(t):"";function MA(t){var e=kA(t)?OA:EA;return t?"#"+e(t.r)+e(t.g)+e(t.b)+PA(t.a,e):void 0}const IA=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function gy(t,e,n){const r=e*Math.min(n,1-n),i=(s,a=(s+t/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function LA(t,e,n){const r=(i,s=(i+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function RA(t,e,n){const r=gy(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function NA(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}function ql(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=(s+a)/2;let l,u,c;return s!==a&&(c=s-a,u=o>.5?c/(2-s-a):c/(s+a),l=NA(n,r,i,c,s),l=l*60+.5),[l|0,u||0,o]}function zl(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(_n)}function Gl(t,e,n){return zl(gy,t,e,n)}function _A(t,e,n){return zl(RA,t,e,n)}function DA(t,e,n){return zl(LA,t,e,n)}function vy(t){return(t%360+360)%360}function BA(t){const e=IA.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?Si(+e[5]):_n(+e[5]));const i=vy(+e[2]),s=+e[3]/100,a=+e[4]/100;return e[1]==="hwb"?r=_A(i,s,a):e[1]==="hsv"?r=DA(i,s,a):r=Gl(i,s,a),{r:r[0],g:r[1],b:r[2],a:n}}function FA(t,e){var n=ql(t);n[0]=vy(n[0]+e),n=Gl(n),t.r=n[0],t.g=n[1],t.b=n[2]}function UA(t){if(!t)return;const e=ql(t),n=e[0],r=Cc(e[1]),i=Cc(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${an(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const jc={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Oc={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function HA(){const t={},e=Object.keys(Oc),n=Object.keys(jc);let r,i,s,a,o;for(r=0;r<e.length;r++){for(a=o=e[r],i=0;i<n.length;i++)s=n[i],o=o.replace(s,jc[s]);s=parseInt(Oc[a],16),t[o]=[s>>16&255,s>>8&255,s&255]}return t}let Cs;function WA(t){Cs||(Cs=HA(),Cs.transparent=[0,0,0,0]);const e=Cs[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const QA=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function qA(t){const e=QA.exec(t);let n=255,r,i,s;if(e){if(e[7]!==r){const a=+e[7];n=e[8]?Si(a):Mn(a*255,0,255)}return r=+e[1],i=+e[3],s=+e[5],r=255&(e[2]?Si(r):Mn(r,0,255)),i=255&(e[4]?Si(i):Mn(i,0,255)),s=255&(e[6]?Si(s):Mn(s,0,255)),{r,g:i,b:s,a:n}}}function zA(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${an(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const so=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Cr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function GA(t,e,n){const r=Cr(an(t.r)),i=Cr(an(t.g)),s=Cr(an(t.b));return{r:_n(so(r+n*(Cr(an(e.r))-r))),g:_n(so(i+n*(Cr(an(e.g))-i))),b:_n(so(s+n*(Cr(an(e.b))-s))),a:t.a+n*(e.a-t.a)}}function js(t,e,n){if(t){let r=ql(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Gl(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function by(t,e){return t&&Object.assign(e||{},t)}function Ec(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=_n(t[3]))):(e=by(t,{r:0,g:0,b:0,a:1}),e.a=_n(e.a)),e}function YA(t){return t.charAt(0)==="r"?qA(t):BA(t)}class Gi{constructor(e){if(e instanceof Gi)return e;const n=typeof e;let r;n==="object"?r=Ec(e):n==="string"&&(r=TA(e)||WA(e)||YA(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=by(this._rgb);return e&&(e.a=an(e.a)),e}set rgb(e){this._rgb=Ec(e)}rgbString(){return this._valid?zA(this._rgb):void 0}hexString(){return this._valid?MA(this._rgb):void 0}hslString(){return this._valid?UA(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let s;const a=n===s?.5:n,o=2*a-1,l=r.a-i.a,u=((o*l===-1?o:(o+l)/(1+o*l))+1)/2;s=1-u,r.r=255&u*r.r+s*i.r+.5,r.g=255&u*r.g+s*i.g+.5,r.b=255&u*r.b+s*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=GA(this._rgb,e._rgb,n)),this}clone(){return new Gi(this.rgb)}alpha(e){return this._rgb.a=_n(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=ps(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return js(this._rgb,2,e),this}darken(e){return js(this._rgb,2,-e),this}saturate(e){return js(this._rgb,1,e),this}desaturate(e){return js(this._rgb,1,-e),this}rotate(e){return FA(this._rgb,e),this}}/*!
39
+ */function xi(t){return t+.5|0}const Rn=(t,e,n)=>Math.max(Math.min(t,n),e);function ks(t){return Rn(xi(t*2.55),0,255)}function Fn(t){return Rn(xi(t*255),0,255)}function un(t){return Rn(xi(t/2.55)/100,0,1)}function kc(t){return Rn(xi(t*100),0,100)}const Et={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ol=[..."0123456789ABCDEF"],LA=t=>ol[t&15],IA=t=>ol[(t&240)>>4]+ol[t&15],ki=t=>(t&240)>>4===(t&15),RA=t=>ki(t.r)&&ki(t.g)&&ki(t.b)&&ki(t.a);function NA(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Et[t[1]]*17,g:255&Et[t[2]]*17,b:255&Et[t[3]]*17,a:e===5?Et[t[4]]*17:255}:(e===7||e===9)&&(n={r:Et[t[1]]<<4|Et[t[2]],g:Et[t[3]]<<4|Et[t[4]],b:Et[t[5]]<<4|Et[t[6]],a:e===9?Et[t[7]]<<4|Et[t[8]]:255})),n}const _A=(t,e)=>t<255?e(t):"";function DA(t){var e=RA(t)?LA:IA;return t?"#"+e(t.r)+e(t.g)+e(t.b)+_A(t.a,e):void 0}const BA=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Sy(t,e,n){const r=e*Math.min(n,1-n),s=(i,a=(i+t/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[s(0),s(8),s(4)]}function FA(t,e,n){const r=(s,i=(s+t/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function UA(t,e,n){const r=Sy(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)r[s]*=1-e-n,r[s]+=e;return r}function HA(t,e,n,r,s){return t===s?(e-n)/r+(e<n?6:0):e===s?(n-t)/r+2:(t-e)/r+4}function Vl(t){const n=t.r/255,r=t.g/255,s=t.b/255,i=Math.max(n,r,s),a=Math.min(n,r,s),o=(i+a)/2;let l,u,d;return i!==a&&(d=i-a,u=o>.5?d/(2-i-a):d/(i+a),l=HA(n,r,s,d,i),l=l*60+.5),[l|0,u||0,o]}function Kl(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Fn)}function Xl(t,e,n){return Kl(Sy,t,e,n)}function WA(t,e,n){return Kl(UA,t,e,n)}function QA(t,e,n){return Kl(FA,t,e,n)}function Cy(t){return(t%360+360)%360}function qA(t){const e=BA.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?ks(+e[5]):Fn(+e[5]));const s=Cy(+e[2]),i=+e[3]/100,a=+e[4]/100;return e[1]==="hwb"?r=WA(s,i,a):e[1]==="hsv"?r=QA(s,i,a):r=Xl(s,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function zA(t,e){var n=Vl(t);n[0]=Cy(n[0]+e),n=Xl(n),t.r=n[0],t.g=n[1],t.b=n[2]}function GA(t){if(!t)return;const e=Vl(t),n=e[0],r=kc(e[1]),s=kc(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${s}%, ${un(t.a)})`:`hsl(${n}, ${r}%, ${s}%)`}const Tc={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Pc={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function YA(){const t={},e=Object.keys(Pc),n=Object.keys(Tc);let r,s,i,a,o;for(r=0;r<e.length;r++){for(a=o=e[r],s=0;s<n.length;s++)i=n[s],o=o.replace(i,Tc[i]);i=parseInt(Pc[a],16),t[o]=[i>>16&255,i>>8&255,i&255]}return t}let Ti;function VA(t){Ti||(Ti=YA(),Ti.transparent=[0,0,0,0]);const e=Ti[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const KA=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function XA(t){const e=KA.exec(t);let n=255,r,s,i;if(e){if(e[7]!==r){const a=+e[7];n=e[8]?ks(a):Rn(a*255,0,255)}return r=+e[1],s=+e[3],i=+e[5],r=255&(e[2]?ks(r):Rn(r,0,255)),s=255&(e[4]?ks(s):Rn(s,0,255)),i=255&(e[6]?ks(i):Rn(i,0,255)),{r,g:s,b:i,a:n}}}function JA(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${un(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const co=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Er=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function ZA(t,e,n){const r=Er(un(t.r)),s=Er(un(t.g)),i=Er(un(t.b));return{r:Fn(co(r+n*(Er(un(e.r))-r))),g:Fn(co(s+n*(Er(un(e.g))-s))),b:Fn(co(i+n*(Er(un(e.b))-i))),a:t.a+n*(e.a-t.a)}}function Pi(t,e,n){if(t){let r=Vl(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Xl(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function jy(t,e){return t&&Object.assign(e||{},t)}function Mc(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Fn(t[3]))):(e=jy(t,{r:0,g:0,b:0,a:1}),e.a=Fn(e.a)),e}function $A(t){return t.charAt(0)==="r"?XA(t):qA(t)}class Js{constructor(e){if(e instanceof Js)return e;const n=typeof e;let r;n==="object"?r=Mc(e):n==="string"&&(r=NA(e)||VA(e)||$A(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=jy(this._rgb);return e&&(e.a=un(e.a)),e}set rgb(e){this._rgb=Mc(e)}rgbString(){return this._valid?JA(this._rgb):void 0}hexString(){return this._valid?DA(this._rgb):void 0}hslString(){return this._valid?GA(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,s=e.rgb;let i;const a=n===i?.5:n,o=2*a-1,l=r.a-s.a,u=((o*l===-1?o:(o+l)/(1+o*l))+1)/2;i=1-u,r.r=255&u*r.r+i*s.r+.5,r.g=255&u*r.g+i*s.g+.5,r.b=255&u*r.b+i*s.b+.5,r.a=a*r.a+(1-a)*s.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=ZA(this._rgb,e._rgb,n)),this}clone(){return new Js(this.rgb)}alpha(e){return this._rgb.a=Fn(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=xi(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Pi(this._rgb,2,e),this}darken(e){return Pi(this._rgb,2,-e),this}saturate(e){return Pi(this._rgb,1,e),this}desaturate(e){return Pi(this._rgb,1,-e),this}rotate(e){return zA(this._rgb,e),this}}/*!
40
40
  * Chart.js v4.5.1
41
41
  * https://www.chartjs.org
42
42
  * (c) 2025 Chart.js Contributors
43
43
  * Released under the MIT License
44
- */function $t(){}const VA=(()=>{let t=0;return()=>t++})();function je(t){return t==null}function Ne(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ge(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function qe(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Ht(t,e){return qe(t)?t:e}function ye(t,e){return typeof t=="undefined"?e:t}const KA=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Me(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Ce(t,e,n,r){let i,s,a;if(Ne(t))for(s=t.length,i=0;i<s;i++)e.call(n,t[i],i);else if(ge(t))for(a=Object.keys(t),s=a.length,i=0;i<s;i++)e.call(n,t[a[i]],a[i])}function oa(t,e){let n,r,i,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],s=e[n],i.datasetIndex!==s.datasetIndex||i.index!==s.index)return!1;return!0}function la(t){if(Ne(t))return t.map(la);if(ge(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=la(t[n[i]]);return e}return t}function xy(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function XA(t,e,n,r){if(!xy(t))return;const i=e[t],s=n[t];ge(i)&&ge(s)?Yi(i,s,r):e[t]=la(s)}function Yi(t,e,n){const r=Ne(e)?e:[e],i=r.length;if(!ge(t))return t;n=n||{};const s=n.merger||XA;let a;for(let o=0;o<i;++o){if(a=r[o],!ge(a))continue;const l=Object.keys(a);for(let u=0,c=l.length;u<c;++u)s(l[u],t,a,n)}return t}function Pi(t,e){return Yi(t,e,{merger:JA})}function JA(t,e,n){if(!xy(t))return;const r=e[t],i=n[t];ge(r)&&ge(i)?Pi(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=la(i))}const kc={"":t=>t,x:t=>t.x,y:t=>t.y};function ZA(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function $A(t){const e=ZA(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function Vi(t,e){return(kc[e]||(kc[e]=$A(e)))(t)}function Yl(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ua=t=>typeof t!="undefined",Bn=t=>typeof t=="function",Tc=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function e3(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Fe=Math.PI,wt=2*Fe,t3=wt+Fe,ca=Number.POSITIVE_INFINITY,n3=Fe/180,At=Fe/2,zn=Fe/4,Pc=Fe*2/3,Ay=Math.log10,Gr=Math.sign;function Mi(t,e,n){return Math.abs(t-e)<n}function Mc(t){const e=Math.round(t);t=Mi(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Ay(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function r3(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((i,s)=>i-s).pop(),e}function i3(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Ki(t){return!i3(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function s3(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function a3(t,e,n){let r,i,s;for(r=0,i=t.length;r<i;r++)s=t[r][n],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function In(t){return t*(Fe/180)}function Vl(t){return t*(180/Fe)}function Ic(t){if(!qe(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function o3(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let s=Math.atan2(r,n);return s<-.5*Fe&&(s+=wt),{angle:s,distance:i}}function il(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function l3(t,e){return(t-e+t3)%wt-Fe}function xt(t){return(t%wt+wt)%wt}function wy(t,e,n,r){const i=xt(t),s=xt(e),a=xt(n),o=xt(s-i),l=xt(a-i),u=xt(i-s),c=xt(i-a);return i===s||i===a||r&&s===a||o>l&&u<c}function Tt(t,e,n){return Math.max(e,Math.min(n,t))}function u3(t){return Tt(t,-32768,32767)}function Er(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Kl(t,e,n){n=n||(a=>t[a]<e);let r=t.length-1,i=0,s;for(;r-i>1;)s=i+r>>1,n(s)?i=s:r=s;return{lo:i,hi:r}}const $n=(t,e,n,r)=>Kl(t,n,r?i=>{const s=t[i][e];return s<n||s===n&&t[i+1][e]===n}:i=>t[i][e]<n),c3=(t,e,n)=>Kl(t,n,r=>t[r][e]>=n);function d3(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}const Sy=["push","pop","shift","splice","unshift"];function f3(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Sy.forEach(n=>{const r="_onData"+Yl(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const a=i.apply(this,s);return t._chartjs.listeners.forEach(o=>{typeof o[r]=="function"&&o[r](...s)}),a}})})}function Lc(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(Sy.forEach(s=>{delete t[s]}),delete t._chartjs)}function h3(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Cy=function(){return typeof window=="undefined"?function(t){return t()}:window.requestAnimationFrame}();function jy(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Cy.call(window,()=>{r=!1,t.apply(e,n)}))}}function y3(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Xl=t=>t==="start"?"left":t==="end"?"right":"center",Ke=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,p3=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e;function m3(t,e,n){const r=e.length;let i=0,s=r;if(t._sorted){const{iScale:a,vScale:o,_parsed:l}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,c=a.axis,{min:f,max:y,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(i=Math.min($n(l,c,f).lo,n?r:$n(e,c,a.getPixelForValue(f)).lo),u){const m=l.slice(0,i+1).reverse().findIndex(g=>!je(g[o.axis]));i-=Math.max(0,m)}i=Tt(i,0,r-1)}if(p){let m=Math.max($n(l,a.axis,y,!0).hi+1,n?0:$n(e,c,a.getPixelForValue(y),!0).hi+1);if(u){const g=l.slice(m-1).findIndex(v=>!je(v[o.axis]));m+=Math.max(0,g)}s=Tt(m,i,r)-i}else s=r-i}return{start:i,count:s}}function g3(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const s=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),s}const Os=t=>t===0||t===1,Rc=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*wt/n)),Nc=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*wt/n)+1,Ii={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*At)+1,easeOutSine:t=>Math.sin(t*At),easeInOutSine:t=>-.5*(Math.cos(Fe*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Os(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Os(t)?t:Rc(t,.075,.3),easeOutElastic:t=>Os(t)?t:Nc(t,.075,.3),easeInOutElastic(t){return Os(t)?t:t<.5?.5*Rc(t*2,.1125,.45):.5+.5*Nc(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Ii.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Ii.easeInBounce(t*2)*.5:Ii.easeOutBounce(t*2-1)*.5+.5};function Jl(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function _c(t){return Jl(t)?t:new Gi(t)}function ao(t){return Jl(t)?t:new Gi(t).saturate(.5).darken(.1).hexString()}const v3=["x","y","borderWidth","radius","tension"],b3=["color","borderColor","backgroundColor"];function x3(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:b3},numbers:{type:"number",properties:v3}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function A3(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Dc=new Map;function w3(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Dc.get(n);return r||(r=new Intl.NumberFormat(t,e),Dc.set(n,r)),r}function Oy(t,e,n){return w3(e,n).format(t)}const S3={values(t){return Ne(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let i,s=t;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),s=C3(t,n)}const a=Ay(Math.abs(s)),o=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),Oy(t,r,l)}};function C3(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Zl={formatters:S3};function j3(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Zl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const gr=Object.create(null),sl=Object.create(null);function Li(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;r<i;++r){const s=n[r];t=t[s]||(t[s]=Object.create(null))}return t}function oo(t,e,n){return typeof e=="string"?Yi(Li(t,e),n):Yi(Li(t,""),e)}class O3{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>ao(i.backgroundColor),this.hoverBorderColor=(r,i)=>ao(i.borderColor),this.hoverColor=(r,i)=>ao(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return oo(this,e,n)}get(e){return Li(this,e)}describe(e,n){return oo(sl,e,n)}override(e,n){return oo(gr,e,n)}route(e,n,r,i){const s=Li(this,e),a=Li(this,r),o="_"+n;Object.defineProperties(s,{[o]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[o],u=a[i];return ge(l)?Object.assign({},u,l):ye(l,u)},set(l){this[o]=l}}})}apply(e){e.forEach(n=>n(this))}}var Be=new O3({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[x3,A3,j3]);function E3(t){return!t||je(t.size)||je(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function da(t,e,n,r,i){let s=e[i];return s||(s=e[i]=t.measureText(i).width,n.push(i)),s>r&&(r=s),r}function k3(t,e,n,r){r=r||{};let i=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},s=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const o=n.length;let l,u,c,f,y;for(l=0;l<o;l++)if(f=n[l],f!=null&&!Ne(f))a=da(t,i,s,a,f);else if(Ne(f))for(u=0,c=f.length;u<c;u++)y=f[u],y!=null&&!Ne(y)&&(a=da(t,i,s,a,y));t.restore();const h=s.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[s[l]];s.splice(0,h)}return a}function Gn(t,e,n){const r=t.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function Bc(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function al(t,e,n,r){Ey(t,e,n,r,null)}function Ey(t,e,n,r,i){let s,a,o,l,u,c,f,y;const h=e.pointStyle,p=e.rotation,m=e.radius;let g=(p||0)*n3;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(g),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(m)||m<=0)){switch(t.beginPath(),h){default:i?t.ellipse(n,r,i/2,m,0,0,wt):t.arc(n,r,m,0,wt),t.closePath();break;case"triangle":c=i?i/2:m,t.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=Pc,t.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),g+=Pc,t.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*m),t.closePath();break;case"rectRounded":u=m*.516,l=m-u,a=Math.cos(g+zn)*l,f=Math.cos(g+zn)*(i?i/2-u:l),o=Math.sin(g+zn)*l,y=Math.sin(g+zn)*(i?i/2-u:l),t.arc(n-f,r-o,u,g-Fe,g-At),t.arc(n+y,r-a,u,g-At,g),t.arc(n+f,r+o,u,g,g+At),t.arc(n-y,r+a,u,g+At,g+Fe),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,c=i?i/2:l,t.rect(n-c,r-l,2*c,2*l);break}g+=zn;case"rectRot":f=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,y=Math.sin(g)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+y,r-a),t.lineTo(n+f,r+o),t.lineTo(n-y,r+a),t.closePath();break;case"crossRot":g+=zn;case"cross":f=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,y=Math.sin(g)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+y,r-a),t.lineTo(n-y,r+a);break;case"star":f=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,y=Math.sin(g)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+y,r-a),t.lineTo(n-y,r+a),g+=zn,f=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,y=Math.sin(g)*(i?i/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+y,r-a),t.lineTo(n-y,r+a);break;case"line":a=i?i/2:Math.cos(g)*m,o=Math.sin(g)*m,t.moveTo(n-a,r-o),t.lineTo(n+a,r+o);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(g)*(i?i/2:m),r+Math.sin(g)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function fn(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Ra(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Na(t){t.restore()}function T3(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);if(i==="middle"){const s=(e.x+n.x)/2;t.lineTo(s,e.y),t.lineTo(s,n.y)}else i==="after"!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function P3(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function M3(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),je(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function I3(t,e,n,r,i){if(i.strikethrough||i.underline){const s=t.measureText(r),a=e-s.actualBoundingBoxLeft,o=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,u=n+s.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,c),t.lineTo(o,c),t.stroke()}}function L3(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function vr(t,e,n,r,i,s={}){const a=Ne(e)?e:[e],o=s.strokeWidth>0&&s.strokeColor!=="";let l,u;for(t.save(),t.font=i.string,M3(t,s),l=0;l<a.length;++l)u=a[l],s.backdrop&&L3(t,s.backdrop),o&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),je(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(u,n,r,s.maxWidth)),t.fillText(u,n,r,s.maxWidth),I3(t,n,r,u,s),r+=Number(i.lineHeight);t.restore()}function fa(t,e){const{x:n,y:r,w:i,h:s,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*Fe,Fe,!0),t.lineTo(n,r+s-a.bottomLeft),t.arc(n+a.bottomLeft,r+s-a.bottomLeft,a.bottomLeft,Fe,At,!0),t.lineTo(n+i-a.bottomRight,r+s),t.arc(n+i-a.bottomRight,r+s-a.bottomRight,a.bottomRight,At,0,!0),t.lineTo(n+i,r+a.topRight),t.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-At,!0),t.lineTo(n+a.topLeft,r)}const R3=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,N3=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function _3(t,e){const n=(""+t).match(R3);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const D3=t=>+t||0;function ky(t,e){const n={},r=ge(e),i=r?Object.keys(e):e,s=ge(t)?r?a=>ye(t[a],t[e[a]]):a=>t[a]:()=>t;for(const a of i)n[a]=D3(s(a));return n}function B3(t){return ky(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Tr(t){return ky(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Je(t){const e=B3(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function He(t,e){t=t||{},e=e||Be.font;let n=ye(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=ye(t.style,e.style);r&&!(""+r).match(N3)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:ye(t.family,e.family),lineHeight:_3(ye(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:ye(t.weight,e.weight),string:""};return i.string=E3(i),i}function Es(t,e,n,r){let i,s,a;for(i=0,s=t.length;i<s;++i)if(a=t[i],a!==void 0&&a!==void 0)return a}function F3(t,e,n){const{min:r,max:i}=t,s=KA(e,(i-r)/2),a=(o,l)=>n&&o===0?0:o+l;return{min:a(r,-Math.abs(s)),max:a(i,s)}}function Wn(t,e){return Object.assign(Object.create(t),e)}function $l(t,e=[""],n,r,i=()=>t[0]){const s=n||t;typeof r=="undefined"&&(r=Iy("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:r,_getTarget:i,override:o=>$l([o,...t],e,s,r)};return new Proxy(a,{deleteProperty(o,l){return delete o[l],delete o._keys,delete t[0][l],!0},get(o,l){return Py(o,l,()=>Y3(l,e,t,o))},getOwnPropertyDescriptor(o,l){return Reflect.getOwnPropertyDescriptor(o._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(o,l){return Uc(o).includes(l)},ownKeys(o){return Uc(o)},set(o,l,u){const c=o._storage||(o._storage=i());return o[l]=c[l]=u,delete o._keys,!0}})}function Yr(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ty(t,r),setContext:s=>Yr(t,s,n,r),override:s=>Yr(t.override(s),e,n,r)};return new Proxy(i,{deleteProperty(s,a){return delete s[a],delete t[a],!0},get(s,a,o){return Py(s,a,()=>H3(s,a,o))},getOwnPropertyDescriptor(s,a){return s._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(s,a,o){return t[a]=o,delete s[a],!0}})}function Ty(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Bn(n)?n:()=>n,isIndexable:Bn(r)?r:()=>r}}const U3=(t,e)=>t?t+Yl(e):e,eu=(t,e)=>ge(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Py(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function H3(t,e,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:a}=t;let o=r[e];return Bn(o)&&a.isScriptable(e)&&(o=W3(e,o,t,n)),Ne(o)&&o.length&&(o=Q3(e,o,t,a.isIndexable)),eu(e,o)&&(o=Yr(o,i,s&&s[e],a)),o}function W3(t,e,n,r){const{_proxy:i,_context:s,_subProxy:a,_stack:o}=n;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);o.add(t);let l=e(s,a||r);return o.delete(t),eu(t,l)&&(l=tu(i._scopes,i,t,l)),l}function Q3(t,e,n,r){const{_proxy:i,_context:s,_subProxy:a,_descriptors:o}=n;if(typeof s.index!="undefined"&&r(t))return e[s.index%e.length];if(ge(e[0])){const l=e,u=i._scopes.filter(c=>c!==l);e=[];for(const c of l){const f=tu(u,i,t,c);e.push(Yr(f,s,a&&a[t],o))}}return e}function My(t,e,n){return Bn(t)?t(e,n):t}const q3=(t,e)=>t===!0?e:typeof t=="string"?Vi(e,t):void 0;function z3(t,e,n,r,i){for(const s of e){const a=q3(n,s);if(a){t.add(a);const o=My(a._fallback,n,i);if(typeof o!="undefined"&&o!==n&&o!==r)return o}else if(a===!1&&typeof r!="undefined"&&n!==r)return null}return!1}function tu(t,e,n,r){const i=e._rootScopes,s=My(e._fallback,n,r),a=[...t,...i],o=new Set;o.add(r);let l=Fc(o,a,n,s||n,r);return l===null||typeof s!="undefined"&&s!==n&&(l=Fc(o,a,s,l,r),l===null)?!1:$l(Array.from(o),[""],i,s,()=>G3(e,n,r))}function Fc(t,e,n,r,i){for(;n;)n=z3(t,e,n,r,i);return n}function G3(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return Ne(i)&&ge(n)?n:i||{}}function Y3(t,e,n,r){let i;for(const s of e)if(i=Iy(U3(s,t),n),typeof i!="undefined")return eu(t,i)?tu(n,r,t,i):i}function Iy(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r!="undefined")return r}}function Uc(t){let e=t._keys;return e||(e=t._keys=V3(t._scopes)),e}function V3(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}function K3(t,e,n,r){const{iScale:i}=t,{key:s="r"}=this._parsing,a=new Array(r);let o,l,u,c;for(o=0,l=r;o<l;++o)u=o+n,c=e[u],a[o]={r:i.parse(Vi(c,s),u)};return a}const X3=Number.EPSILON||1e-14,Vr=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ly=t=>t==="x"?"y":"x";function J3(t,e,n,r){const i=t.skip?e:t,s=e,a=n.skip?e:n,o=il(s,i),l=il(a,s);let u=o/(o+l),c=l/(o+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const f=r*u,y=r*c;return{previous:{x:s.x-f*(a.x-i.x),y:s.y-f*(a.y-i.y)},next:{x:s.x+y*(a.x-i.x),y:s.y+y*(a.y-i.y)}}}function Z3(t,e,n){const r=t.length;let i,s,a,o,l,u=Vr(t,0);for(let c=0;c<r-1;++c)if(l=u,u=Vr(t,c+1),!(!l||!u)){if(Mi(e[c],0,X3)){n[c]=n[c+1]=0;continue}i=n[c]/e[c],s=n[c+1]/e[c],o=Math.pow(i,2)+Math.pow(s,2),!(o<=9)&&(a=3/Math.sqrt(o),n[c]=i*a*e[c],n[c+1]=s*a*e[c])}}function $3(t,e,n="x"){const r=Ly(n),i=t.length;let s,a,o,l=Vr(t,0);for(let u=0;u<i;++u){if(a=o,o=l,l=Vr(t,u+1),!o)continue;const c=o[n],f=o[r];a&&(s=(c-a[n])/3,o[`cp1${n}`]=c-s,o[`cp1${r}`]=f-s*e[u]),l&&(s=(l[n]-c)/3,o[`cp2${n}`]=c+s,o[`cp2${r}`]=f+s*e[u])}}function ew(t,e="x"){const n=Ly(e),r=t.length,i=Array(r).fill(0),s=Array(r);let a,o,l,u=Vr(t,0);for(a=0;a<r;++a)if(o=l,l=u,u=Vr(t,a+1),!!l){if(u){const c=u[e]-l[e];i[a]=c!==0?(u[n]-l[n])/c:0}s[a]=o?u?Gr(i[a-1])!==Gr(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}Z3(t,i,s),$3(t,s,e)}function ks(t,e,n){return Math.max(Math.min(t,n),e)}function tw(t,e){let n,r,i,s,a,o=fn(t[0],e);for(n=0,r=t.length;n<r;++n)a=s,s=o,o=n<r-1&&fn(t[n+1],e),s&&(i=t[n],a&&(i.cp1x=ks(i.cp1x,e.left,e.right),i.cp1y=ks(i.cp1y,e.top,e.bottom)),o&&(i.cp2x=ks(i.cp2x,e.left,e.right),i.cp2y=ks(i.cp2y,e.top,e.bottom)))}function nw(t,e,n,r,i){let s,a,o,l;if(e.spanGaps&&(t=t.filter(u=>!u.skip)),e.cubicInterpolationMode==="monotone")ew(t,i);else{let u=r?t[t.length-1]:t[0];for(s=0,a=t.length;s<a;++s)o=t[s],l=J3(u,o,t[Math.min(s+1,a-(r?0:1))%a],e.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,u=o}e.capBezierPoints&&tw(t,n)}function nu(){return typeof window!="undefined"&&typeof document!="undefined"}function ru(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function ha(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const _a=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function rw(t,e){return _a(t).getPropertyValue(e)}const iw=["top","right","bottom","left"];function fr(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const s=iw[i];r[s]=parseFloat(t[e+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const sw=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function aw(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:s}=r;let a=!1,o,l;if(sw(i,s,t.target))o=i,l=s;else{const u=e.getBoundingClientRect();o=r.clientX-u.left,l=r.clientY-u.top,a=!0}return{x:o,y:l,box:a}}function Kn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=_a(n),s=i.boxSizing==="border-box",a=fr(i,"padding"),o=fr(i,"border","width"),{x:l,y:u,box:c}=aw(t,n),f=a.left+(c&&o.left),y=a.top+(c&&o.top);let{width:h,height:p}=e;return s&&(h-=a.width+o.width,p-=a.height+o.height),{x:Math.round((l-f)/h*n.width/r),y:Math.round((u-y)/p*n.height/r)}}function ow(t,e,n){let r,i;if(e===void 0||n===void 0){const s=t&&ru(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const a=s.getBoundingClientRect(),o=_a(s),l=fr(o,"border","width"),u=fr(o,"padding");e=a.width-u.width-l.width,n=a.height-u.height-l.height,r=ha(o.maxWidth,s,"clientWidth"),i=ha(o.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:r||ca,maxHeight:i||ca}}const Ln=t=>Math.round(t*10)/10;function lw(t,e,n,r){const i=_a(t),s=fr(i,"margin"),a=ha(i.maxWidth,t,"clientWidth")||ca,o=ha(i.maxHeight,t,"clientHeight")||ca,l=ow(t,e,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const y=fr(i,"border","width"),h=fr(i,"padding");u-=h.width+y.width,c-=h.height+y.height}return u=Math.max(0,u-s.width),c=Math.max(0,r?u/r:c-s.height),u=Ln(Math.min(u,a,l.maxWidth)),c=Ln(Math.min(c,o,l.maxHeight)),u&&!c&&(c=Ln(u/2)),(e!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Ln(Math.floor(c*r))),{width:u,height:c}}function Hc(t,e,n){const r=e||1,i=Ln(t.height*r),s=Ln(t.width*r);t.height=Ln(t.height),t.width=Ln(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||a.height!==i||a.width!==s?(t.currentDevicePixelRatio=r,a.height=i,a.width=s,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const uw=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};nu()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function Wc(t,e){const n=rw(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Xn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function cw(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:r==="middle"?n<.5?t.y:e.y:r==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function dw(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},a=Xn(t,i,n),o=Xn(i,s,n),l=Xn(s,e,n),u=Xn(a,o,n),c=Xn(o,l,n);return Xn(u,c,n)}const fw=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},hw=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Pr(t,e,n){return t?fw(e,n):hw()}function Ry(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Ny(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function _y(t){return t==="angle"?{between:wy,compare:l3,normalize:xt}:{between:Er,compare:(e,n)=>e-n,normalize:e=>e}}function Qc({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:i}}function yw(t,e,n){const{property:r,start:i,end:s}=n,{between:a,normalize:o}=_y(r),l=e.length;let{start:u,end:c,loop:f}=t,y,h;if(f){for(u+=l,c+=l,y=0,h=l;y<h&&a(o(e[u%l][r]),i,s);++y)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:f,style:t.style}}function Dy(t,e,n){if(!n)return[t];const{property:r,start:i,end:s}=n,a=e.length,{compare:o,between:l,normalize:u}=_y(r),{start:c,end:f,loop:y,style:h}=yw(t,e,n),p=[];let m=!1,g=null,v,S,k;const C=()=>l(i,k,v)&&o(i,k)!==0,A=()=>o(s,v)===0||l(s,k,v),j=()=>m||C(),b=()=>!m||A();for(let x=c,M=c;x<=f;++x)S=e[x%a],!S.skip&&(v=u(S[r]),v!==k&&(m=l(v,i,s),g===null&&j()&&(g=o(v,i)===0?x:M),g!==null&&b()&&(p.push(Qc({start:g,end:x,loop:y,count:a,style:h})),g=null),M=x,k=v));return g!==null&&p.push(Qc({start:g,end:f,loop:y,count:a,style:h})),p}function By(t,e){const n=[],r=t.segments;for(let i=0;i<r.length;i++){const s=Dy(r[i],t.points,e);s.length&&n.push(...s)}return n}function pw(t,e,n,r){let i=0,s=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(s+=i);s>i&&t[s%e].skip;)s--;return s%=e,{start:i,end:s}}function mw(t,e,n,r){const i=t.length,s=[];let a=e,o=t[e],l;for(l=e+1;l<=n;++l){const u=t[l%i];u.skip||u.stop?o.skip||(r=!1,s.push({start:e%i,end:(l-1)%i,loop:r}),e=a=u.stop?l:null):(a=l,o.skip&&(e=l)),o=u}return a!==null&&s.push({start:e%i,end:a%i,loop:r}),s}function gw(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const s=!!t._loop,{start:a,end:o}=pw(n,i,s,r);if(r===!0)return qc(t,[{start:a,end:o,loop:s}],n,e);const l=o<a?o+i:o,u=!!t._fullLoop&&a===0&&o===i-1;return qc(t,mw(n,a,l,u),n,e)}function qc(t,e,n,r){return!r||!r.setContext||!n?e:vw(t,e,n,r)}function vw(t,e,n,r){const i=t._chart.getContext(),s=zc(t.options),{_datasetIndex:a,options:{spanGaps:o}}=t,l=n.length,u=[];let c=s,f=e[0].start,y=f;function h(p,m,g,v){const S=o?-1:1;if(p!==m){for(p+=l;n[p%l].skip;)p-=S;for(;n[m%l].skip;)m+=S;p%l!==m%l&&(u.push({start:p%l,end:m%l,loop:g,style:v}),c=v,f=m%l)}}for(const p of e){f=o?f:p.start;let m=n[f%l],g;for(y=f+1;y<=p.end;y++){const v=n[y%l];g=zc(r.setContext(Wn(i,{type:"segment",p0:m,p1:v,p0DataIndex:(y-1)%l,p1DataIndex:y%l,datasetIndex:a}))),bw(g,c)&&h(f,y-1,p.loop,c),m=v,c=g}f<y-1&&h(f,y-1,p.loop,c)}return u}function zc(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function bw(t,e){if(!e)return!1;const n=[],r=function(i,s){return Jl(s)?(n.includes(s)||n.push(s),n.indexOf(s)):s};return JSON.stringify(t,r)!==JSON.stringify(e,r)}function Ts(t,e,n){return t.options.clip?t[n]:e[n]}function xw(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Ts(n,e,"left"),right:Ts(n,e,"right"),top:Ts(r,e,"top"),bottom:Ts(r,e,"bottom")}:e}function Fy(t,e){const n=e._clip;if(n.disabled)return!1;const r=xw(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
44
+ */function nn(){}const e3=(()=>{let t=0;return()=>t++})();function Oe(t){return t==null}function Re(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ve(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function qe(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function qt(t,e){return qe(t)?t:e}function pe(t,e){return typeof t=="undefined"?e:t}const t3=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Me(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function je(t,e,n,r){let s,i,a;if(Re(t))for(i=t.length,s=0;s<i;s++)e.call(n,t[s],s);else if(ve(t))for(a=Object.keys(t),i=a.length,s=0;s<i;s++)e.call(n,t[a[s]],a[s])}function ha(t,e){let n,r,s,i;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(s=t[n],i=e[n],s.datasetIndex!==i.datasetIndex||s.index!==i.index)return!1;return!0}function ya(t){if(Re(t))return t.map(ya);if(ve(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let s=0;for(;s<r;++s)e[n[s]]=ya(t[n[s]]);return e}return t}function Oy(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function n3(t,e,n,r){if(!Oy(t))return;const s=e[t],i=n[t];ve(s)&&ve(i)?Zs(s,i,r):e[t]=ya(i)}function Zs(t,e,n){const r=Re(e)?e:[e],s=r.length;if(!ve(t))return t;n=n||{};const i=n.merger||n3;let a;for(let o=0;o<s;++o){if(a=r[o],!ve(a))continue;const l=Object.keys(a);for(let u=0,d=l.length;u<d;++u)i(l[u],t,a,n)}return t}function Ns(t,e){return Zs(t,e,{merger:r3})}function r3(t,e,n){if(!Oy(t))return;const r=e[t],s=n[t];ve(r)&&ve(s)?Ns(r,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ya(s))}const Lc={"":t=>t,x:t=>t.x,y:t=>t.y};function s3(t){const e=t.split("."),n=[];let r="";for(const s of e)r+=s,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function i3(t){const e=s3(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function $s(t,e){return(Lc[e]||(Lc[e]=i3(e)))(t)}function Jl(t){return t.charAt(0).toUpperCase()+t.slice(1)}const pa=t=>typeof t!="undefined",Hn=t=>typeof t=="function",Ic=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function a3(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ue=Math.PI,Ct=2*Ue,o3=Ct+Ue,ma=Number.POSITIVE_INFINITY,l3=Ue/180,St=Ue/2,Vn=Ue/4,Rc=Ue*2/3,Ey=Math.log10,Kr=Math.sign;function _s(t,e,n){return Math.abs(t-e)<n}function Nc(t){const e=Math.round(t);t=_s(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Ey(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function u3(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((s,i)=>s-i).pop(),e}function c3(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function ei(t){return!c3(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function d3(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function f3(t,e,n){let r,s,i;for(r=0,s=t.length;r<s;r++)i=t[r][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function Nn(t){return t*(Ue/180)}function Zl(t){return t*(180/Ue)}function _c(t){if(!qe(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function h3(t,e){const n=e.x-t.x,r=e.y-t.y,s=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*Ue&&(i+=Ct),{angle:i,distance:s}}function ll(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function y3(t,e){return(t-e+o3)%Ct-Ue}function wt(t){return(t%Ct+Ct)%Ct}function ky(t,e,n,r){const s=wt(t),i=wt(e),a=wt(n),o=wt(i-s),l=wt(a-s),u=wt(s-i),d=wt(s-a);return s===i||s===a||r&&i===a||o>l&&u<d}function Mt(t,e,n){return Math.max(e,Math.min(n,t))}function p3(t){return Mt(t,-32768,32767)}function Tr(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function $l(t,e,n){n=n||(a=>t[a]<e);let r=t.length-1,s=0,i;for(;r-s>1;)i=s+r>>1,n(i)?s=i:r=i;return{lo:s,hi:r}}const nr=(t,e,n,r)=>$l(t,n,r?s=>{const i=t[s][e];return i<n||i===n&&t[s+1][e]===n}:s=>t[s][e]<n),m3=(t,e,n)=>$l(t,n,r=>t[r][e]>=n);function g3(t,e,n){let r=0,s=t.length;for(;r<s&&t[r]<e;)r++;for(;s>r&&t[s-1]>n;)s--;return r>0||s<t.length?t.slice(r,s):t}const Ty=["push","pop","shift","splice","unshift"];function v3(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Ty.forEach(n=>{const r="_onData"+Jl(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...i){const a=s.apply(this,i);return t._chartjs.listeners.forEach(o=>{typeof o[r]=="function"&&o[r](...i)}),a}})})}function Dc(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,s=r.indexOf(e);s!==-1&&r.splice(s,1),!(r.length>0)&&(Ty.forEach(i=>{delete t[i]}),delete t._chartjs)}function b3(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Py=function(){return typeof window=="undefined"?function(t){return t()}:window.requestAnimationFrame}();function My(t,e){let n=[],r=!1;return function(...s){n=s,r||(r=!0,Py.call(window,()=>{r=!1,t.apply(e,n)}))}}function x3(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const eu=t=>t==="start"?"left":t==="end"?"right":"center",Ye=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,A3=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e;function w3(t,e,n){const r=e.length;let s=0,i=r;if(t._sorted){const{iScale:a,vScale:o,_parsed:l}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:f,max:y,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(s=Math.min(nr(l,d,f).lo,n?r:nr(e,d,a.getPixelForValue(f)).lo),u){const m=l.slice(0,s+1).reverse().findIndex(g=>!Oe(g[o.axis]));s-=Math.max(0,m)}s=Mt(s,0,r-1)}if(p){let m=Math.max(nr(l,a.axis,y,!0).hi+1,n?0:nr(e,d,a.getPixelForValue(y),!0).hi+1);if(u){const g=l.slice(m-1).findIndex(v=>!Oe(v[o.axis]));m+=Math.max(0,g)}i=Mt(m,s,r)-s}else i=r-s}return{start:s,count:i}}function S3(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,s={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=s,!0;const i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,s),i}const Mi=t=>t===0||t===1,Bc=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ct/n)),Fc=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ct/n)+1,Ds={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*St)+1,easeOutSine:t=>Math.sin(t*St),easeInOutSine:t=>-.5*(Math.cos(Ue*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Mi(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Mi(t)?t:Bc(t,.075,.3),easeOutElastic:t=>Mi(t)?t:Fc(t,.075,.3),easeInOutElastic(t){return Mi(t)?t:t<.5?.5*Bc(t*2,.1125,.45):.5+.5*Fc(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Ds.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Ds.easeInBounce(t*2)*.5:Ds.easeOutBounce(t*2-1)*.5+.5};function tu(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Uc(t){return tu(t)?t:new Js(t)}function fo(t){return tu(t)?t:new Js(t).saturate(.5).darken(.1).hexString()}const C3=["x","y","borderWidth","radius","tension"],j3=["color","borderColor","backgroundColor"];function O3(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:j3},numbers:{type:"number",properties:C3}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function E3(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Hc=new Map;function k3(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Hc.get(n);return r||(r=new Intl.NumberFormat(t,e),Hc.set(n,r)),r}function Ly(t,e,n){return k3(e,n).format(t)}const T3={values(t){return Re(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let s,i=t;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(s="scientific"),i=P3(t,n)}const a=Ey(Math.abs(i)),o=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:s,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),Ly(t,r,l)}};function P3(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var nu={formatters:T3};function M3(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:nu.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const xr=Object.create(null),ul=Object.create(null);function Bs(t,e){if(!e)return t;const n=e.split(".");for(let r=0,s=n.length;r<s;++r){const i=n[r];t=t[i]||(t[i]=Object.create(null))}return t}function ho(t,e,n){return typeof e=="string"?Zs(Bs(t,e),n):Zs(Bs(t,""),e)}class L3{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,s)=>fo(s.backgroundColor),this.hoverBorderColor=(r,s)=>fo(s.borderColor),this.hoverColor=(r,s)=>fo(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return ho(this,e,n)}get(e){return Bs(this,e)}describe(e,n){return ho(ul,e,n)}override(e,n){return ho(xr,e,n)}route(e,n,r,s){const i=Bs(this,e),a=Bs(this,r),o="_"+n;Object.defineProperties(i,{[o]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[o],u=a[s];return ve(l)?Object.assign({},u,l):pe(l,u)},set(l){this[o]=l}}})}apply(e){e.forEach(n=>n(this))}}var Be=new L3({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[O3,E3,M3]);function I3(t){return!t||Oe(t.size)||Oe(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ga(t,e,n,r,s){let i=e[s];return i||(i=e[s]=t.measureText(s).width,n.push(s)),i>r&&(r=i),r}function R3(t,e,n,r){r=r||{};let s=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(s=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const o=n.length;let l,u,d,f,y;for(l=0;l<o;l++)if(f=n[l],f!=null&&!Re(f))a=ga(t,s,i,a,f);else if(Re(f))for(u=0,d=f.length;u<d;u++)y=f[u],y!=null&&!Re(y)&&(a=ga(t,s,i,a,y));t.restore();const h=i.length/2;if(h>n.length){for(l=0;l<h;l++)delete s[i[l]];i.splice(0,h)}return a}function Kn(t,e,n){const r=t.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((e-s)*r)/r+s}function Wc(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function cl(t,e,n,r){Iy(t,e,n,r,null)}function Iy(t,e,n,r,s){let i,a,o,l,u,d,f,y;const h=e.pointStyle,p=e.rotation,m=e.radius;let g=(p||0)*l3;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(g),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(m)||m<=0)){switch(t.beginPath(),h){default:s?t.ellipse(n,r,s/2,m,0,0,Ct):t.arc(n,r,m,0,Ct),t.closePath();break;case"triangle":d=s?s/2:m,t.moveTo(n+Math.sin(g)*d,r-Math.cos(g)*m),g+=Rc,t.lineTo(n+Math.sin(g)*d,r-Math.cos(g)*m),g+=Rc,t.lineTo(n+Math.sin(g)*d,r-Math.cos(g)*m),t.closePath();break;case"rectRounded":u=m*.516,l=m-u,a=Math.cos(g+Vn)*l,f=Math.cos(g+Vn)*(s?s/2-u:l),o=Math.sin(g+Vn)*l,y=Math.sin(g+Vn)*(s?s/2-u:l),t.arc(n-f,r-o,u,g-Ue,g-St),t.arc(n+y,r-a,u,g-St,g),t.arc(n+f,r+o,u,g,g+St),t.arc(n-y,r+a,u,g+St,g+Ue),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,d=s?s/2:l,t.rect(n-d,r-l,2*d,2*l);break}g+=Vn;case"rectRot":f=Math.cos(g)*(s?s/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,y=Math.sin(g)*(s?s/2:m),t.moveTo(n-f,r-o),t.lineTo(n+y,r-a),t.lineTo(n+f,r+o),t.lineTo(n-y,r+a),t.closePath();break;case"crossRot":g+=Vn;case"cross":f=Math.cos(g)*(s?s/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,y=Math.sin(g)*(s?s/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+y,r-a),t.lineTo(n-y,r+a);break;case"star":f=Math.cos(g)*(s?s/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,y=Math.sin(g)*(s?s/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+y,r-a),t.lineTo(n-y,r+a),g+=Vn,f=Math.cos(g)*(s?s/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,y=Math.sin(g)*(s?s/2:m),t.moveTo(n-f,r-o),t.lineTo(n+f,r+o),t.moveTo(n+y,r-a),t.lineTo(n-y,r+a);break;case"line":a=s?s/2:Math.cos(g)*m,o=Math.sin(g)*m,t.moveTo(n-a,r-o),t.lineTo(n+a,r+o);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(g)*(s?s/2:m),r+Math.sin(g)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function pn(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Ua(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ha(t){t.restore()}function N3(t,e,n,r,s){if(!e)return t.lineTo(n.x,n.y);if(s==="middle"){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else s==="after"!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function _3(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function D3(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Oe(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function B3(t,e,n,r,s){if(s.strikethrough||s.underline){const i=t.measureText(r),a=e-i.actualBoundingBoxLeft,o=e+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,u=n+i.actualBoundingBoxDescent,d=s.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(a,d),t.lineTo(o,d),t.stroke()}}function F3(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Ar(t,e,n,r,s,i={}){const a=Re(e)?e:[e],o=i.strokeWidth>0&&i.strokeColor!=="";let l,u;for(t.save(),t.font=s.string,D3(t,i),l=0;l<a.length;++l)u=a[l],i.backdrop&&F3(t,i.backdrop),o&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),Oe(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(u,n,r,i.maxWidth)),t.fillText(u,n,r,i.maxWidth),B3(t,n,r,u,i),r+=Number(s.lineHeight);t.restore()}function va(t,e){const{x:n,y:r,w:s,h:i,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*Ue,Ue,!0),t.lineTo(n,r+i-a.bottomLeft),t.arc(n+a.bottomLeft,r+i-a.bottomLeft,a.bottomLeft,Ue,St,!0),t.lineTo(n+s-a.bottomRight,r+i),t.arc(n+s-a.bottomRight,r+i-a.bottomRight,a.bottomRight,St,0,!0),t.lineTo(n+s,r+a.topRight),t.arc(n+s-a.topRight,r+a.topRight,a.topRight,0,-St,!0),t.lineTo(n+a.topLeft,r)}const U3=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,H3=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function W3(t,e){const n=(""+t).match(U3);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const Q3=t=>+t||0;function Ry(t,e){const n={},r=ve(e),s=r?Object.keys(e):e,i=ve(t)?r?a=>pe(t[a],t[e[a]]):a=>t[a]:()=>t;for(const a of s)n[a]=Q3(i(a));return n}function q3(t){return Ry(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Lr(t){return Ry(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ke(t){const e=q3(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function We(t,e){t=t||{},e=e||Be.font;let n=pe(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=pe(t.style,e.style);r&&!(""+r).match(H3)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const s={family:pe(t.family,e.family),lineHeight:W3(pe(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:pe(t.weight,e.weight),string:""};return s.string=I3(s),s}function Li(t,e,n,r){let s,i,a;for(s=0,i=t.length;s<i;++s)if(a=t[s],a!==void 0&&a!==void 0)return a}function z3(t,e,n){const{min:r,max:s}=t,i=t3(e,(s-r)/2),a=(o,l)=>n&&o===0?0:o+l;return{min:a(r,-Math.abs(i)),max:a(s,i)}}function zn(t,e){return Object.assign(Object.create(t),e)}function ru(t,e=[""],n,r,s=()=>t[0]){const i=n||t;typeof r=="undefined"&&(r=By("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:s,override:o=>ru([o,...t],e,i,r)};return new Proxy(a,{deleteProperty(o,l){return delete o[l],delete o._keys,delete t[0][l],!0},get(o,l){return _y(o,l,()=>$3(l,e,t,o))},getOwnPropertyDescriptor(o,l){return Reflect.getOwnPropertyDescriptor(o._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(o,l){return qc(o).includes(l)},ownKeys(o){return qc(o)},set(o,l,u){const d=o._storage||(o._storage=s());return o[l]=d[l]=u,delete o._keys,!0}})}function Xr(t,e,n,r){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ny(t,r),setContext:i=>Xr(t,i,n,r),override:i=>Xr(t.override(i),e,n,r)};return new Proxy(s,{deleteProperty(i,a){return delete i[a],delete t[a],!0},get(i,a,o){return _y(i,a,()=>Y3(i,a,o))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(i,a,o){return t[a]=o,delete i[a],!0}})}function Ny(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:r,isScriptable:Hn(n)?n:()=>n,isIndexable:Hn(r)?r:()=>r}}const G3=(t,e)=>t?t+Jl(e):e,su=(t,e)=>ve(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function _y(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function Y3(t,e,n){const{_proxy:r,_context:s,_subProxy:i,_descriptors:a}=t;let o=r[e];return Hn(o)&&a.isScriptable(e)&&(o=V3(e,o,t,n)),Re(o)&&o.length&&(o=K3(e,o,t,a.isIndexable)),su(e,o)&&(o=Xr(o,s,i&&i[e],a)),o}function V3(t,e,n,r){const{_proxy:s,_context:i,_subProxy:a,_stack:o}=n;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);o.add(t);let l=e(i,a||r);return o.delete(t),su(t,l)&&(l=iu(s._scopes,s,t,l)),l}function K3(t,e,n,r){const{_proxy:s,_context:i,_subProxy:a,_descriptors:o}=n;if(typeof i.index!="undefined"&&r(t))return e[i.index%e.length];if(ve(e[0])){const l=e,u=s._scopes.filter(d=>d!==l);e=[];for(const d of l){const f=iu(u,s,t,d);e.push(Xr(f,i,a&&a[t],o))}}return e}function Dy(t,e,n){return Hn(t)?t(e,n):t}const X3=(t,e)=>t===!0?e:typeof t=="string"?$s(e,t):void 0;function J3(t,e,n,r,s){for(const i of e){const a=X3(n,i);if(a){t.add(a);const o=Dy(a._fallback,n,s);if(typeof o!="undefined"&&o!==n&&o!==r)return o}else if(a===!1&&typeof r!="undefined"&&n!==r)return null}return!1}function iu(t,e,n,r){const s=e._rootScopes,i=Dy(e._fallback,n,r),a=[...t,...s],o=new Set;o.add(r);let l=Qc(o,a,n,i||n,r);return l===null||typeof i!="undefined"&&i!==n&&(l=Qc(o,a,i,l,r),l===null)?!1:ru(Array.from(o),[""],s,i,()=>Z3(e,n,r))}function Qc(t,e,n,r,s){for(;n;)n=J3(t,e,n,r,s);return n}function Z3(t,e,n){const r=t._getTarget();e in r||(r[e]={});const s=r[e];return Re(s)&&ve(n)?n:s||{}}function $3(t,e,n,r){let s;for(const i of e)if(s=By(G3(i,t),n),typeof s!="undefined")return su(t,s)?iu(n,r,t,s):s}function By(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r!="undefined")return r}}function qc(t){let e=t._keys;return e||(e=t._keys=ew(t._scopes)),e}function ew(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(r);return Array.from(e)}function tw(t,e,n,r){const{iScale:s}=t,{key:i="r"}=this._parsing,a=new Array(r);let o,l,u,d;for(o=0,l=r;o<l;++o)u=o+n,d=e[u],a[o]={r:s.parse($s(d,i),u)};return a}const nw=Number.EPSILON||1e-14,Jr=(t,e)=>e<t.length&&!t[e].skip&&t[e],Fy=t=>t==="x"?"y":"x";function rw(t,e,n,r){const s=t.skip?e:t,i=e,a=n.skip?e:n,o=ll(i,s),l=ll(a,i);let u=o/(o+l),d=l/(o+l);u=isNaN(u)?0:u,d=isNaN(d)?0:d;const f=r*u,y=r*d;return{previous:{x:i.x-f*(a.x-s.x),y:i.y-f*(a.y-s.y)},next:{x:i.x+y*(a.x-s.x),y:i.y+y*(a.y-s.y)}}}function sw(t,e,n){const r=t.length;let s,i,a,o,l,u=Jr(t,0);for(let d=0;d<r-1;++d)if(l=u,u=Jr(t,d+1),!(!l||!u)){if(_s(e[d],0,nw)){n[d]=n[d+1]=0;continue}s=n[d]/e[d],i=n[d+1]/e[d],o=Math.pow(s,2)+Math.pow(i,2),!(o<=9)&&(a=3/Math.sqrt(o),n[d]=s*a*e[d],n[d+1]=i*a*e[d])}}function iw(t,e,n="x"){const r=Fy(n),s=t.length;let i,a,o,l=Jr(t,0);for(let u=0;u<s;++u){if(a=o,o=l,l=Jr(t,u+1),!o)continue;const d=o[n],f=o[r];a&&(i=(d-a[n])/3,o[`cp1${n}`]=d-i,o[`cp1${r}`]=f-i*e[u]),l&&(i=(l[n]-d)/3,o[`cp2${n}`]=d+i,o[`cp2${r}`]=f+i*e[u])}}function aw(t,e="x"){const n=Fy(e),r=t.length,s=Array(r).fill(0),i=Array(r);let a,o,l,u=Jr(t,0);for(a=0;a<r;++a)if(o=l,l=u,u=Jr(t,a+1),!!l){if(u){const d=u[e]-l[e];s[a]=d!==0?(u[n]-l[n])/d:0}i[a]=o?u?Kr(s[a-1])!==Kr(s[a])?0:(s[a-1]+s[a])/2:s[a-1]:s[a]}sw(t,s,i),iw(t,i,e)}function Ii(t,e,n){return Math.max(Math.min(t,n),e)}function ow(t,e){let n,r,s,i,a,o=pn(t[0],e);for(n=0,r=t.length;n<r;++n)a=i,i=o,o=n<r-1&&pn(t[n+1],e),i&&(s=t[n],a&&(s.cp1x=Ii(s.cp1x,e.left,e.right),s.cp1y=Ii(s.cp1y,e.top,e.bottom)),o&&(s.cp2x=Ii(s.cp2x,e.left,e.right),s.cp2y=Ii(s.cp2y,e.top,e.bottom)))}function lw(t,e,n,r,s){let i,a,o,l;if(e.spanGaps&&(t=t.filter(u=>!u.skip)),e.cubicInterpolationMode==="monotone")aw(t,s);else{let u=r?t[t.length-1]:t[0];for(i=0,a=t.length;i<a;++i)o=t[i],l=rw(u,o,t[Math.min(i+1,a-(r?0:1))%a],e.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,u=o}e.capBezierPoints&&ow(t,n)}function au(){return typeof window!="undefined"&&typeof document!="undefined"}function ou(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function ba(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const Wa=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function uw(t,e){return Wa(t).getPropertyValue(e)}const cw=["top","right","bottom","left"];function pr(t,e,n){const r={};n=n?"-"+n:"";for(let s=0;s<4;s++){const i=cw[s];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const dw=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function fw(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:s,offsetY:i}=r;let a=!1,o,l;if(dw(s,i,t.target))o=s,l=i;else{const u=e.getBoundingClientRect();o=r.clientX-u.left,l=r.clientY-u.top,a=!0}return{x:o,y:l,box:a}}function Zn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,s=Wa(n),i=s.boxSizing==="border-box",a=pr(s,"padding"),o=pr(s,"border","width"),{x:l,y:u,box:d}=fw(t,n),f=a.left+(d&&o.left),y=a.top+(d&&o.top);let{width:h,height:p}=e;return i&&(h-=a.width+o.width,p-=a.height+o.height),{x:Math.round((l-f)/h*n.width/r),y:Math.round((u-y)/p*n.height/r)}}function hw(t,e,n){let r,s;if(e===void 0||n===void 0){const i=t&&ou(t);if(!i)e=t.clientWidth,n=t.clientHeight;else{const a=i.getBoundingClientRect(),o=Wa(i),l=pr(o,"border","width"),u=pr(o,"padding");e=a.width-u.width-l.width,n=a.height-u.height-l.height,r=ba(o.maxWidth,i,"clientWidth"),s=ba(o.maxHeight,i,"clientHeight")}}return{width:e,height:n,maxWidth:r||ma,maxHeight:s||ma}}const _n=t=>Math.round(t*10)/10;function yw(t,e,n,r){const s=Wa(t),i=pr(s,"margin"),a=ba(s.maxWidth,t,"clientWidth")||ma,o=ba(s.maxHeight,t,"clientHeight")||ma,l=hw(t,e,n);let{width:u,height:d}=l;if(s.boxSizing==="content-box"){const y=pr(s,"border","width"),h=pr(s,"padding");u-=h.width+y.width,d-=h.height+y.height}return u=Math.max(0,u-i.width),d=Math.max(0,r?u/r:d-i.height),u=_n(Math.min(u,a,l.maxWidth)),d=_n(Math.min(d,o,l.maxHeight)),u&&!d&&(d=_n(u/2)),(e!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,u=_n(Math.floor(d*r))),{width:u,height:d}}function zc(t,e,n){const r=e||1,s=_n(t.height*r),i=_n(t.width*r);t.height=_n(t.height),t.width=_n(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||a.height!==s||a.width!==i?(t.currentDevicePixelRatio=r,a.height=s,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const pw=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};au()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function Gc(t,e){const n=uw(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function $n(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function mw(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:r==="middle"?n<.5?t.y:e.y:r==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function gw(t,e,n,r){const s={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=$n(t,s,n),o=$n(s,i,n),l=$n(i,e,n),u=$n(a,o,n),d=$n(o,l,n);return $n(u,d,n)}const vw=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},bw=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ir(t,e,n){return t?vw(e,n):bw()}function Uy(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Hy(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Wy(t){return t==="angle"?{between:ky,compare:y3,normalize:wt}:{between:Tr,compare:(e,n)=>e-n,normalize:e=>e}}function Yc({start:t,end:e,count:n,loop:r,style:s}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:s}}function xw(t,e,n){const{property:r,start:s,end:i}=n,{between:a,normalize:o}=Wy(r),l=e.length;let{start:u,end:d,loop:f}=t,y,h;if(f){for(u+=l,d+=l,y=0,h=l;y<h&&a(o(e[u%l][r]),s,i);++y)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:t.style}}function Qy(t,e,n){if(!n)return[t];const{property:r,start:s,end:i}=n,a=e.length,{compare:o,between:l,normalize:u}=Wy(r),{start:d,end:f,loop:y,style:h}=xw(t,e,n),p=[];let m=!1,g=null,v,S,k;const j=()=>l(s,k,v)&&o(s,k)!==0,A=()=>o(i,v)===0||l(i,k,v),C=()=>m||j(),b=()=>!m||A();for(let x=d,M=d;x<=f;++x)S=e[x%a],!S.skip&&(v=u(S[r]),v!==k&&(m=l(v,s,i),g===null&&C()&&(g=o(v,s)===0?x:M),g!==null&&b()&&(p.push(Yc({start:g,end:x,loop:y,count:a,style:h})),g=null),M=x,k=v));return g!==null&&p.push(Yc({start:g,end:f,loop:y,count:a,style:h})),p}function qy(t,e){const n=[],r=t.segments;for(let s=0;s<r.length;s++){const i=Qy(r[s],t.points,e);i.length&&n.push(...i)}return n}function Aw(t,e,n,r){let s=0,i=e-1;if(n&&!r)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,n&&(i+=s);i>s&&t[i%e].skip;)i--;return i%=e,{start:s,end:i}}function ww(t,e,n,r){const s=t.length,i=[];let a=e,o=t[e],l;for(l=e+1;l<=n;++l){const u=t[l%s];u.skip||u.stop?o.skip||(r=!1,i.push({start:e%s,end:(l-1)%s,loop:r}),e=a=u.stop?l:null):(a=l,o.skip&&(e=l)),o=u}return a!==null&&i.push({start:e%s,end:a%s,loop:r}),i}function Sw(t,e){const n=t.points,r=t.options.spanGaps,s=n.length;if(!s)return[];const i=!!t._loop,{start:a,end:o}=Aw(n,s,i,r);if(r===!0)return Vc(t,[{start:a,end:o,loop:i}],n,e);const l=o<a?o+s:o,u=!!t._fullLoop&&a===0&&o===s-1;return Vc(t,ww(n,a,l,u),n,e)}function Vc(t,e,n,r){return!r||!r.setContext||!n?e:Cw(t,e,n,r)}function Cw(t,e,n,r){const s=t._chart.getContext(),i=Kc(t.options),{_datasetIndex:a,options:{spanGaps:o}}=t,l=n.length,u=[];let d=i,f=e[0].start,y=f;function h(p,m,g,v){const S=o?-1:1;if(p!==m){for(p+=l;n[p%l].skip;)p-=S;for(;n[m%l].skip;)m+=S;p%l!==m%l&&(u.push({start:p%l,end:m%l,loop:g,style:v}),d=v,f=m%l)}}for(const p of e){f=o?f:p.start;let m=n[f%l],g;for(y=f+1;y<=p.end;y++){const v=n[y%l];g=Kc(r.setContext(zn(s,{type:"segment",p0:m,p1:v,p0DataIndex:(y-1)%l,p1DataIndex:y%l,datasetIndex:a}))),jw(g,d)&&h(f,y-1,p.loop,d),m=v,d=g}f<y-1&&h(f,y-1,p.loop,d)}return u}function Kc(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function jw(t,e){if(!e)return!1;const n=[],r=function(s,i){return tu(i)?(n.includes(i)||n.push(i),n.indexOf(i)):i};return JSON.stringify(t,r)!==JSON.stringify(e,r)}function Ri(t,e,n){return t.options.clip?t[n]:e[n]}function Ow(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Ri(n,e,"left"),right:Ri(n,e,"right"),top:Ri(r,e,"top"),bottom:Ri(r,e,"bottom")}:e}function zy(t,e){const n=e._clip;if(n.disabled)return!1;const r=Ow(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
45
45
  * Chart.js v4.5.1
46
46
  * https://www.chartjs.org
47
47
  * (c) 2025 Chart.js Contributors
48
48
  * Released under the MIT License
49
- */class Aw{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,i){const s=n.listeners[i],a=n.duration;s.forEach(o=>o({chart:e,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Cy.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let a=s.length-1,o=!1,l;for(;a>=0;--a)l=s[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),o=!0):(s[a]=s[s.length-1],s.pop());o&&(i.draw(),this._notify(i,r,e,"progress")),s.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var rn=new Aw;const Gc="transparent",ww={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=_c(t||Gc),i=r.valid&&_c(e||Gc);return i&&i.valid?i.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class Sw{constructor(e,n,r,i){const s=n[r];i=Es([e.to,i,s,e.from]);const a=Es([e.from,s,i]);this._active=!0,this._fn=e.fn||ww[e.type||typeof a],this._easing=Ii[e.easing]||Ii.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,a=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=Es([e.to,n,i,e.from]),this._from=Es([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,s=this._from,a=this._loop,o=this._to;let l;if(this._active=s!==o&&(a||n<r),!this._active){this._target[i]=o,this._notify(!0);return}if(n<0){this._target[i]=s;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(s,o,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class Uy{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!ge(e))return;const n=Object.keys(Be.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const s=e[i];if(!ge(s))return;const a={};for(const o of n)a[o]=s[o];(Ne(s.properties)&&s.properties||[i]).forEach(o=>{(o===i||!r.has(o))&&r.set(o,a)})})}_animateOptions(e,n){const r=n.options,i=jw(e,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&Cw(e.options.$animations,r).then(()=>{e.options=r},()=>{}),s}_createAnimations(e,n){const r=this._properties,i=[],s=e.$animations||(e.$animations={}),a=Object.keys(n),o=Date.now();let l;for(l=a.length-1;l>=0;--l){const u=a[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(e,n));continue}const c=n[u];let f=s[u];const y=r.get(u);if(f)if(y&&f.active()){f.update(y,c,o);continue}else f.cancel();if(!y||!y.duration){e[u]=c;continue}s[u]=f=new Sw(y,e,u,c),i.push(f)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return rn.add(this._chart,r),!0}}function Cw(t,e){const n=[],r=Object.keys(e);for(let i=0;i<r.length;i++){const s=t[r[i]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function jw(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Yc(t,e){const n=t&&t.options||{},r=n.reverse,i=n.min===void 0?e:0,s=n.max===void 0?e:0;return{start:r?s:i,end:r?i:s}}function Ow(t,e,n){if(n===!1)return!1;const r=Yc(t,n),i=Yc(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function Ew(t){let e,n,r,i;return ge(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i,disabled:t===!1}}function Hy(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,s;for(i=0,s=r.length;i<s;++i)n.push(r[i].index);return n}function Vc(t,e,n,r={}){const i=t.keys,s=r.mode==="single";let a,o,l,u;if(e===null)return;let c=!1;for(a=0,o=i.length;a<o;++a){if(l=+i[a],l===n){if(c=!0,r.all)continue;break}u=t.values[l],qe(u)&&(s||e===0||Gr(e)===Gr(u))&&(e+=u)}return!c&&!r.all?0:e}function kw(t,e){const{iScale:n,vScale:r}=e,i=n.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",a=Object.keys(t),o=new Array(a.length);let l,u,c;for(l=0,u=a.length;l<u;++l)c=a[l],o[l]={[i]:c,[s]:t[c]};return o}function lo(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function Tw(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function Pw(t){const{min:e,max:n,minDefined:r,maxDefined:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function Mw(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Kc(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const s=t[i.index];if(n&&s>0||!n&&s<0)return i.index}return null}function Xc(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:s,vScale:a,index:o}=r,l=s.axis,u=a.axis,c=Tw(s,a,r),f=e.length;let y;for(let h=0;h<f;++h){const p=e[h],{[l]:m,[u]:g}=p,v=p._stacks||(p._stacks={});y=v[u]=Mw(i,c,m),y[o]=g,y._top=Kc(y,a,!0,r.type),y._bottom=Kc(y,a,!1,r.type);const S=y._visualValues||(y._visualValues={});S[o]=g}}function uo(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function Iw(t,e){return Wn(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Lw(t,e,n){return Wn(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function yi(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const s=i._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const co=t=>t==="reset"||t==="none",Jc=(t,e)=>e?t:Object.assign({},t),Rw=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Hy(n,!0),values:null};class Mr{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=lo(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&yi(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,y,h,p)=>f==="x"?y:f==="r"?p:h,s=n.xAxisID=ye(r.xAxisID,uo(e,"x")),a=n.yAxisID=ye(r.yAxisID,uo(e,"y")),o=n.rAxisID=ye(r.rAxisID,uo(e,"r")),l=n.indexAxis,u=n.iAxisID=i(l,s,a,o),c=n.vAxisID=i(l,a,s,o);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(o),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Lc(this._data,this),e._stacked&&yi(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(ge(n)){const i=this._cachedMeta;this._data=kw(n,i)}else if(r!==n){if(r){Lc(r,this);const i=this._cachedMeta;yi(i),i._parsed=[]}n&&Object.isExtensible(n)&&f3(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const s=n._stacked;n._stacked=lo(n.vScale,n),n.stack!==r.stack&&(i=!0,yi(n),n.stack=r.stack),this._resyncElements(e),(i||s!==n._stacked)&&(Xc(this,n._parsed),n._stacked=lo(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:a}=r,o=s.axis;let l=e===0&&n===i.length?!0:r._sorted,u=e>0&&r._parsed[e-1],c,f,y;if(this._parsing===!1)r._parsed=i,r._sorted=!0,y=i;else{Ne(i[e])?y=this.parseArrayData(r,i,e,n):ge(i[e])?y=this.parseObjectData(r,i,e,n):y=this.parsePrimitiveData(r,i,e,n);const h=()=>f[o]===null||u&&f[o]<u[o];for(c=0;c<n;++c)r._parsed[c+e]=f=y[c],l&&(h()&&(l=!1),u=f);r._sorted=l}a&&Xc(this,y)}parsePrimitiveData(e,n,r,i){const{iScale:s,vScale:a}=e,o=s.axis,l=a.axis,u=s.getLabels(),c=s===a,f=new Array(i);let y,h,p;for(y=0,h=i;y<h;++y)p=y+r,f[y]={[o]:c||s.parse(u[p],p),[l]:a.parse(n[p],p)};return f}parseArrayData(e,n,r,i){const{xScale:s,yScale:a}=e,o=new Array(i);let l,u,c,f;for(l=0,u=i;l<u;++l)c=l+r,f=n[c],o[l]={x:s.parse(f[0],c),y:a.parse(f[1],c)};return o}parseObjectData(e,n,r,i){const{xScale:s,yScale:a}=e,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,f,y,h;for(c=0,f=i;c<f;++c)y=c+r,h=n[y],u[c]={x:s.parse(Vi(h,o),y),y:a.parse(Vi(h,l),y)};return u}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const i=this.chart,s=this._cachedMeta,a=n[e.axis],o={keys:Hy(i,!0),values:n._stacks[e.axis]._visualValues};return Vc(o,a,s.index,{mode:r})}updateRangeFromParsed(e,n,r,i){const s=r[n.axis];let a=s===null?NaN:s;const o=i&&r._stacks[n.axis];i&&o&&(i.values=o,a=Vc(i,s,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,n){const r=this._cachedMeta,i=r._parsed,s=r._sorted&&e===r.iScale,a=i.length,o=this._getOtherScale(e),l=Rw(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:f}=Pw(o);let y,h;function p(){h=i[y];const m=h[o.axis];return!qe(h[e.axis])||c>m||f<m}for(y=0;y<a&&!(!p()&&(this.updateRangeFromParsed(u,e,h,l),s));++y);if(s){for(y=a-1;y>=0;--y)if(!p()){this.updateRangeFromParsed(u,e,h,l);break}}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,s,a;for(i=0,s=n.length;i<s;++i)a=n[i][e.axis],qe(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,i=n.vScale,s=this.getParsed(e);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=Ew(ye(this.options.clip,Ow(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],s=n.chartArea,a=[],o=this._drawStart||0,l=this._drawCount||i.length-o,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(e,s,o,l),c=o;c<o+l;++c){const f=i[c];f.hidden||(f.active&&u?a.push(f):f.draw(e,s))}for(c=0;c<a.length;++c)a[c].draw(e,s)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const i=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const a=this._cachedMeta.data[e];s=a.$context||(a.$context=Lw(this.getContext(),e,a)),s.parsed=this.getParsed(e),s.raw=i.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=Iw(this.chart.getContext(),this.index)),s.dataset=i,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=r,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const i=n==="active",s=this._cachedDataOpts,a=e+"-"+n,o=s[a],l=this.enableOptionSharing&&ua(r);if(o)return Jc(o,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),f=i?[`${e}Hover`,"hover",e,""]:[e,""],y=u.getOptionScopes(this.getDataset(),c),h=Object.keys(Be.elements[e]),p=()=>this.getContext(r,i,n),m=u.resolveNamedOptions(y,h,p,f);return m.$shared&&(m.$shared=l,s[a]=Object.freeze(Jc(m,l))),m}_resolveAnimations(e,n,r){const i=this.chart,s=this._cachedDataOpts,a=`animation-${n}`,o=s[a];if(o)return o;let l;if(i.options.animation!==!1){const c=this.chart.config,f=c.datasetAnimationScopeKeys(this._type,n),y=c.getOptionScopes(this.getDataset(),f);l=c.createResolver(y,this.getContext(e,r,n))}const u=new Uy(i,l&&l.animations);return l&&l._cacheable&&(s[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||co(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,s=this.getSharedOptions(r),a=this.includeOptions(n,s)||s!==i;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:a}}updateElement(e,n,r,i){co(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!co(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const s=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[o,l,u]of this._syncList)this[o](l,u);this._syncList=[];const i=r.length,s=n.length,a=Math.min(s,i);a&&this.parse(0,a),s>i?this._insertElements(i,s-i,e):s<i&&this._removeElements(s,i-s)}_insertElements(e,n,r=!0){const i=this._cachedMeta,s=i.data,a=e+n;let o;const l=u=>{for(u.length+=n,o=u.length-1;o>=a;o--)u[o]=u[o-n]};for(l(s),o=e;o<a;++o)s[o]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(e,n),r&&this.updateElements(s,e,n,"reset")}updateElements(e,n,r,i){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(e,n);r._stacked&&yi(r,i)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,i]=e;this[n](r,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}se(Mr,"defaults",{}),se(Mr,"datasetElementType",null),se(Mr,"dataElementType",null);class Gs extends Mr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=n,a=this.chart._animationsDisabled;let{start:o,count:l}=m3(n,i,a);this._drawStart=o,this._drawCount=l,g3(n)&&(o=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:u},e),this.updateElements(i,o,l,e)}updateElements(e,n,r,i){const s=i==="reset",{iScale:a,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:f}=this._getSharedOptions(n,i),y=a.axis,h=o.axis,{spanGaps:p,segment:m}=this.options,g=Ki(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||s||i==="none",S=n+r,k=e.length;let C=n>0&&this.getParsed(n-1);for(let A=0;A<k;++A){const j=e[A],b=v?j:{};if(A<n||A>=S){b.skip=!0;continue}const x=this.getParsed(A),M=je(x[h]),_=b[y]=a.getPixelForValue(x[y],A),I=b[h]=s||M?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,x,l):x[h],A);b.skip=isNaN(_)||isNaN(I)||M,b.stop=A>0&&Math.abs(x[y]-C[y])>g,m&&(b.parsed=x,b.raw=u.data[A]),f&&(b.options=c||this.resolveDataElementOptions(A,j.active?"active":i)),v||this.updateElement(j,A,b,i),C=x}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}se(Gs,"id","line"),se(Gs,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),se(Gs,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ys extends Mr{getLabelAndValue(e){const n=this._cachedMeta.vScale,r=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(e,n,r,i){return K3.bind(this)(e,n,r,i)}update(e){const n=this._cachedMeta,r=n.dataset,i=n.data||[],s=n.iScale.getLabels();if(r.points=i,e!=="resize"){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===i.length,options:a};this.updateElement(r,void 0,o,e)}this.updateElements(i,0,i.length,e)}updateElements(e,n,r,i){const s=this._cachedMeta.rScale,a=i==="reset";for(let o=n;o<n+r;o++){const l=e[o],u=this.resolveDataElementOptions(o,l.active?"active":i),c=s.getPointPositionForValue(o,this.getParsed(o).r),f=a?s.xCenter:c.x,y=a?s.yCenter:c.y,h={x:f,y,angle:c.angle,skip:isNaN(f)||isNaN(y),options:u};this.updateElement(l,o,h,i)}}}se(Ys,"id","radar"),se(Ys,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),se(Ys,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});function Yn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class iu{constructor(e){se(this,"options");this.options=e||{}}static override(e){Object.assign(iu.prototype,e)}init(){}formats(){return Yn()}parse(){return Yn()}format(){return Yn()}add(){return Yn()}diff(){return Yn()}startOf(){return Yn()}endOf(){return Yn()}}var Nw={_date:iu};function _w(t,e,n,r){const{controller:i,data:s,_sorted:a}=t,o=i._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(o&&e===o.axis&&e!=="r"&&a&&s.length){const u=o._reversePixels?c3:$n;if(r){if(i._sharedOptions){const c=s[0],f=typeof c.getRange=="function"&&c.getRange(e);if(f){const y=u(s,e,n-f),h=u(s,e,n+f);return{lo:y.lo,hi:h.hi}}}}else{const c=u(s,e,n);if(l){const{vScale:f}=i._cachedMeta,{_parsed:y}=t,h=y.slice(0,c.lo+1).reverse().findIndex(m=>!je(m[f.axis]));c.lo-=Math.max(0,h);const p=y.slice(c.hi).findIndex(m=>!je(m[f.axis]));c.hi+=Math.max(0,p)}return c}}return{lo:0,hi:s.length-1}}function Da(t,e,n,r,i){const s=t.getSortedVisibleDatasetMetas(),a=n[e];for(let o=0,l=s.length;o<l;++o){const{index:u,data:c}=s[o],{lo:f,hi:y}=_w(s[o],e,a,i);for(let h=f;h<=y;++h){const p=c[h];p.skip||r(p,u,h)}}}function Dw(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,i){const s=e?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}function fo(t,e,n,r,i){const s=[];return!i&&!t.isPointInArea(e)||Da(t,n,e,function(o,l,u){!i&&!fn(o,t.chartArea,0)||o.inRange(e.x,e.y,r)&&s.push({element:o,datasetIndex:l,index:u})},!0),s}function Bw(t,e,n,r){let i=[];function s(a,o,l){const{startAngle:u,endAngle:c}=a.getProps(["startAngle","endAngle"],r),{angle:f}=o3(a,{x:e.x,y:e.y});wy(f,u,c)&&i.push({element:a,datasetIndex:o,index:l})}return Da(t,n,e,s),i}function Fw(t,e,n,r,i,s){let a=[];const o=Dw(n);let l=Number.POSITIVE_INFINITY;function u(c,f,y){const h=c.inRange(e.x,e.y,i);if(r&&!h)return;const p=c.getCenterPoint(i);if(!(!!s||t.isPointInArea(p))&&!h)return;const g=o(e,p);g<l?(a=[{element:c,datasetIndex:f,index:y}],l=g):g===l&&a.push({element:c,datasetIndex:f,index:y})}return Da(t,n,e,u),a}function ho(t,e,n,r,i,s){return!s&&!t.isPointInArea(e)?[]:n==="r"&&!r?Bw(t,e,n,i):Fw(t,e,n,r,i,s)}function Zc(t,e,n,r,i){const s=[],a=n==="x"?"inXRange":"inYRange";let o=!1;return Da(t,n,e,(l,u,c)=>{l[a]&&l[a](e[n],i)&&(s.push({element:l,datasetIndex:u,index:c}),o=o||l.inRange(e.x,e.y,i))}),r&&!o?[]:s}var Uw={modes:{index(t,e,n,r){const i=Kn(e,t),s=n.axis||"x",a=n.includeInvisible||!1,o=n.intersect?fo(t,i,s,r,a):ho(t,i,s,!1,r,a),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const c=o[0].index,f=u.data[c];f&&!f.skip&&l.push({element:f,datasetIndex:u.index,index:c})}),l):[]},dataset(t,e,n,r){const i=Kn(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;let o=n.intersect?fo(t,i,s,r,a):ho(t,i,s,!1,r,a);if(o.length>0){const l=o[0].datasetIndex,u=t.getDatasetMeta(l).data;o=[];for(let c=0;c<u.length;++c)o.push({element:u[c],datasetIndex:l,index:c})}return o},point(t,e,n,r){const i=Kn(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return fo(t,i,s,r,a)},nearest(t,e,n,r){const i=Kn(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return ho(t,i,s,n.intersect,r,a)},x(t,e,n,r){const i=Kn(e,t);return Zc(t,i,"x",n.intersect,r)},y(t,e,n,r){const i=Kn(e,t);return Zc(t,i,"y",n.intersect,r)}}};const Wy=["left","top","right","bottom"];function pi(t,e){return t.filter(n=>n.pos===e)}function $c(t,e){return t.filter(n=>Wy.indexOf(n.pos)===-1&&n.box.axis===e)}function mi(t,e){return t.sort((n,r)=>{const i=e?r:n,s=e?n:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function Hw(t){const e=[];let n,r,i,s,a,o;for(n=0,r=(t||[]).length;n<r;++n)i=t[n],{position:s,options:{stack:a,stackWeight:o=1}}=i,e.push({index:n,box:i,pos:s,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&s+a,stackWeight:o});return e}function Ww(t){const e={};for(const n of t){const{stack:r,pos:i,stackWeight:s}=n;if(!r||!Wy.includes(i))continue;const a=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return e}function Qw(t,e){const n=Ww(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let s,a,o;for(s=0,a=t.length;s<a;++s){o=t[s];const{fullSize:l}=o.box,u=n[o.stack],c=u&&o.stackWeight/u.weight;o.horizontal?(o.width=c?c*r:l&&e.availableWidth,o.height=i):(o.width=r,o.height=c?c*i:l&&e.availableHeight)}return n}function qw(t){const e=Hw(t),n=mi(e.filter(u=>u.box.fullSize),!0),r=mi(pi(e,"left"),!0),i=mi(pi(e,"right")),s=mi(pi(e,"top"),!0),a=mi(pi(e,"bottom")),o=$c(e,"x"),l=$c(e,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:i.concat(l).concat(a).concat(o),chartArea:pi(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:s.concat(a).concat(o)}}function ed(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Qy(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function zw(t,e,n,r){const{pos:i,box:s}=n,a=t.maxPadding;if(!ge(i)){n.size&&(t[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?s.height:s.width),n.size=f.size/f.count,t[i]+=n.size}s.getPadding&&Qy(a,s.getPadding());const o=Math.max(0,e.outerWidth-ed(a,t,"left","right")),l=Math.max(0,e.outerHeight-ed(a,t,"top","bottom")),u=o!==t.w,c=l!==t.h;return t.w=o,t.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function Gw(t){const e=t.maxPadding;function n(r){const i=Math.max(e[r]-t[r],0);return t[r]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Yw(t,e){const n=e.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{s[a]=Math.max(e[a],n[a])}),s}return r(t?["left","right"]:["top","bottom"])}function Ci(t,e,n,r){const i=[];let s,a,o,l,u,c;for(s=0,a=t.length,u=0;s<a;++s){o=t[s],l=o.box,l.update(o.width||e.w,o.height||e.h,Yw(o.horizontal,e));const{same:f,other:y}=zw(e,n,o,r);u|=f&&i.length,c=c||y,l.fullSize||i.push(o)}return u&&Ci(i,e,n,r)||c}function Ps(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function td(t,e,n,r){const i=n.padding;let{x:s,y:a}=e;for(const o of t){const l=o.box,u=r[o.stack]||{placed:0,weight:1},c=o.stackWeight/u.weight||1;if(o.horizontal){const f=e.w*c,y=u.size||l.height;ua(u.start)&&(a=u.start),l.fullSize?Ps(l,i.left,a,n.outerWidth-i.right-i.left,y):Ps(l,e.left+u.placed,a,f,y),u.start=a,u.placed+=f,a=l.bottom}else{const f=e.h*c,y=u.size||l.width;ua(u.start)&&(s=u.start),l.fullSize?Ps(l,s,i.top,y,n.outerHeight-i.bottom-i.top):Ps(l,s,e.top+u.placed,y,f),u.start=s,u.placed+=f,s=l.right}}e.x=s,e.y=a}var Pt={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const i=Je(t.options.layout.padding),s=Math.max(e-i.width,0),a=Math.max(n-i.height,0),o=qw(t.boxes),l=o.vertical,u=o.horizontal;Ce(t.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const c=l.reduce((m,g)=>g.box.options&&g.box.options.display===!1?m:m+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/c,hBoxMaxHeight:a/2}),y=Object.assign({},i);Qy(y,Je(r));const h=Object.assign({maxPadding:y,w:s,h:a,x:i.left,y:i.top},i),p=Qw(l.concat(u),f);Ci(o.fullSize,h,f,p),Ci(l,h,f,p),Ci(u,h,f,p)&&Ci(l,h,f,p),Gw(h),td(o.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,td(o.rightAndBottom,h,f,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Ce(o.chartArea,m=>{const g=m.box;Object.assign(g,t.chartArea),g.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class qy{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class Vw extends qy{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Vs="$chartjs",Kw={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nd=t=>t===null||t==="";function Xw(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[Vs]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",nd(i)){const s=Wc(t,"width");s!==void 0&&(t.width=s)}if(nd(r))if(t.style.height==="")t.height=t.width/(e||2);else{const s=Wc(t,"height");s!==void 0&&(t.height=s)}return t}const zy=uw?{passive:!0}:!1;function Jw(t,e,n){t&&t.addEventListener(e,n,zy)}function Zw(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,zy)}function $w(t,e){const n=Kw[t.type]||t.type,{x:r,y:i}=Kn(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:i!==void 0?i:null}}function ya(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function eS(t,e,n){const r=t.canvas,i=new MutationObserver(s=>{let a=!1;for(const o of s)a=a||ya(o.addedNodes,r),a=a&&!ya(o.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function tS(t,e,n){const r=t.canvas,i=new MutationObserver(s=>{let a=!1;for(const o of s)a=a||ya(o.removedNodes,r),a=a&&!ya(o.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Xi=new Map;let rd=0;function Gy(){const t=window.devicePixelRatio;t!==rd&&(rd=t,Xi.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function nS(t,e){Xi.size||window.addEventListener("resize",Gy),Xi.set(t,e)}function rS(t){Xi.delete(t),Xi.size||window.removeEventListener("resize",Gy)}function iS(t,e,n){const r=t.canvas,i=r&&ru(r);if(!i)return;const s=jy((o,l)=>{const u=i.clientWidth;n(o,l),u<i.clientWidth&&n()},window),a=new ResizeObserver(o=>{const l=o[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||s(u,c)});return a.observe(i),nS(t,s),a}function yo(t,e,n){n&&n.disconnect(),e==="resize"&&rS(t)}function sS(t,e,n){const r=t.canvas,i=jy(s=>{t.ctx!==null&&n($w(s,t))},t);return Jw(r,e,i),i}class aS extends qy{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(Xw(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[Vs])return!1;const r=n[Vs].initial;["height","width"].forEach(s=>{const a=r[s];je(a)?n.removeAttribute(s):n.setAttribute(s,a)});const i=r.style||{};return Object.keys(i).forEach(s=>{n.style[s]=i[s]}),n.width=n.width,delete n[Vs],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),a={attach:eS,detach:tS,resize:iS}[n]||sS;i[n]=a(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];if(!i)return;({attach:yo,detach:yo,resize:yo}[n]||Zw)(e,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return lw(e,n,r,i)}isAttached(e){const n=e&&ru(e);return!!(n&&n.isConnected)}}function oS(t){return!nu()||typeof OffscreenCanvas!="undefined"&&t instanceof OffscreenCanvas?Vw:aS}class mn{constructor(){se(this,"x");se(this,"y");se(this,"active",!1);se(this,"options");se(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Ki(this.x)&&Ki(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const i={};return e.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}}se(mn,"defaults",{}),se(mn,"defaultRoutes");function lS(t,e){const n=t.options.ticks,r=uS(t),i=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?dS(e):[],a=s.length,o=s[0],l=s[a-1],u=[];if(a>i)return fS(e,u,s,a/i),u;const c=cS(s,e,i);if(a>0){let f,y;const h=a>1?Math.round((l-o)/(a-1)):null;for(Ms(e,u,c,je(h)?0:o-h,o),f=0,y=a-1;f<y;f++)Ms(e,u,c,s[f],s[f+1]);return Ms(e,u,c,l,je(h)?e.length:l+h),u}return Ms(e,u,c),u}function uS(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}function cS(t,e,n){const r=hS(t),i=e.length/n;if(!r)return Math.max(i,1);const s=r3(r);for(let a=0,o=s.length-1;a<o;a++){const l=s[a];if(l>i)return l}return Math.max(i,1)}function dS(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function fS(t,e,n,r){let i=0,s=n[0],a;for(r=Math.ceil(r),a=0;a<t.length;a++)a===s&&(e.push(t[a]),i++,s=n[i*r])}function Ms(t,e,n,r,i){const s=ye(r,0),a=Math.min(ye(i,t.length),t.length);let o=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=s;c<0;)o++,c=Math.round(s+o*n);for(u=Math.max(s,0);u<a;u++)u===c&&(e.push(t[u]),o++,c=Math.round(s+o*n))}function hS(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const yS=t=>t==="left"?"right":t==="right"?"left":t,id=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,sd=(t,e)=>Math.min(e||t,t);function ad(t,e){const n=[],r=t.length/e,i=t.length;let s=0;for(;s<i;s+=r)n.push(t[Math.floor(s)]);return n}function pS(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),s=t._startPixel,a=t._endPixel,o=1e-6;let l=t.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-s,a-l):e===0?u=(t.getPixelForTick(1)-l)/2:u=(l-t.getPixelForTick(i-1))/2,l+=i<e?u:-u,l<s-o||l>a+o)))return l}function mS(t,e){Ce(t,n=>{const r=n.gc,i=r.length/2;let s;if(i>e){for(s=0;s<i;++s)delete n.data[r[s]];r.splice(0,i)}})}function gi(t){return t.drawTicks?t.tickLength:0}function od(t,e){if(!t.display)return 0;const n=He(t.font,e),r=Je(t.padding);return(Ne(t.text)?t.text.length:1)*n.lineHeight+r.height}function gS(t,e){return Wn(t,{scale:e,type:"scale"})}function vS(t,e,n){return Wn(t,{tick:n,index:e,type:"tick"})}function bS(t,e,n){let r=Xl(t);return(n&&e!=="right"||!n&&e==="right")&&(r=yS(r)),r}function xS(t,e,n,r){const{top:i,left:s,bottom:a,right:o,chart:l}=t,{chartArea:u,scales:c}=l;let f=0,y,h,p;const m=a-i,g=o-s;if(t.isHorizontal()){if(h=Ke(r,s,o),ge(n)){const v=Object.keys(n)[0],S=n[v];p=c[v].getPixelForValue(S)+m-e}else n==="center"?p=(u.bottom+u.top)/2+m-e:p=id(t,n,e);y=o-s}else{if(ge(n)){const v=Object.keys(n)[0],S=n[v];h=c[v].getPixelForValue(S)-g+e}else n==="center"?h=(u.left+u.right)/2-g+e:h=id(t,n,e);p=Ke(r,a,i),f=n==="left"?-At:At}return{titleX:h,titleY:p,maxWidth:y,rotation:f}}class ni extends mn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return e=Ht(e,Number.POSITIVE_INFINITY),n=Ht(n,Number.NEGATIVE_INFINITY),r=Ht(r,Number.POSITIVE_INFINITY),i=Ht(i,Number.NEGATIVE_INFINITY),{min:Ht(e,r),max:Ht(n,i),minDefined:qe(e),maxDefined:qe(n)}}getMinMax(e){let{min:n,max:r,minDefined:i,maxDefined:s}=this.getUserBounds(),a;if(i&&s)return{min:n,max:r};const o=this.getMatchingVisibleMetas();for(let l=0,u=o.length;l<u;++l)a=o[l].controller.getMinMax(this,e),i||(n=Math.min(n,a.min)),s||(r=Math.max(r,a.max));return n=s&&n>r?r:n,r=i&&n>r?n:r,{min:Ht(n,Ht(r,n)),max:Ht(r,Ht(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Me(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:s,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=F3(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?ad(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=lS(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Me(this.options.afterUpdate,[this])}beforeSetDimensions(){Me(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Me(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Me(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Me(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,i,s;for(r=0,i=e.length;r<i;r++)s=e[r],s.label=Me(n.callback,[s.value,r,e],this)}afterTickToLabelConversion(){Me(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Me(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=sd(this.ticks.length,e.ticks.maxTicksLimit),i=n.minRotation||0,s=n.maxRotation;let a=i,o,l,u;if(!this._isVisible()||!n.display||i>=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),f=c.widest.width,y=c.highest.height,h=Tt(this.chart.width-f,0,this.maxWidth);o=e.offset?this.maxWidth/r:h/(r-1),f+6>o&&(o=h/(r-(e.offset?.5:1)),l=this.maxHeight-gi(e.grid)-n.padding-od(e.title,this.chart.options.font),u=Math.sqrt(f*f+y*y),a=Vl(Math.min(Math.asin(Tt((c.highest.height+6)/o,-1,1)),Math.asin(Tt(l/u,-1,1))-Math.asin(Tt(y/u,-1,1)))),a=Math.max(i,Math.min(s,a))),this.labelRotation=a}afterCalculateLabelRotation(){Me(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Me(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:s}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){const l=od(i,n.options.font);if(o?(e.width=this.maxWidth,e.height=gi(s)+l):(e.height=this.maxHeight,e.width=gi(s)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:f,highest:y}=this._getLabelSizes(),h=r.padding*2,p=In(this.labelRotation),m=Math.cos(p),g=Math.sin(p);if(o){const v=r.mirror?0:g*f.width+m*y.height;e.height=Math.min(this.maxHeight,e.height+v+h)}else{const v=r.mirror?0:m*f.width+g*y.height;e.width=Math.min(this.maxWidth,e.width+v+h)}this._calculatePadding(u,c,g,m)}}this._handleMargins(),o?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:s,padding:a},position:o}=this.options,l=this.labelRotation!==0,u=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let y=0,h=0;l?u?(y=i*e.width,h=r*n.height):(y=r*e.height,h=i*n.width):s==="start"?h=n.width:s==="end"?y=e.width:s!=="inner"&&(y=e.width/2,h=n.width/2),this.paddingLeft=Math.max((y-c+a)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-f+a)*this.width/(this.width-f),0)}else{let c=n.height/2,f=e.height/2;s==="start"?(c=0,f=e.height):s==="end"&&(c=n.height,f=0),this.paddingTop=c+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Me(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)je(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=ad(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:i,_longestTextCache:s}=this,a=[],o=[],l=Math.floor(n/sd(n,r));let u=0,c=0,f,y,h,p,m,g,v,S,k,C,A;for(f=0;f<n;f+=l){if(p=e[f].label,m=this._resolveTickFontOptions(f),i.font=g=m.string,v=s[g]=s[g]||{data:{},gc:[]},S=m.lineHeight,k=C=0,!je(p)&&!Ne(p))k=da(i,v.data,v.gc,k,p),C=S;else if(Ne(p))for(y=0,h=p.length;y<h;++y)A=p[y],!je(A)&&!Ne(A)&&(k=da(i,v.data,v.gc,k,A),C+=S);a.push(k),o.push(C),u=Math.max(k,u),c=Math.max(C,c)}mS(s,n);const j=a.indexOf(u),b=o.indexOf(c),x=M=>({width:a[M]||0,height:o[M]||0});return{first:x(0),last:x(n-1),widest:x(j),highest:x(b),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return u3(this._alignToPixels?Gn(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=vS(this.getContext(),e,r))}return this.$context||(this.$context=gS(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=In(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),s=this._getLabelSizes(),a=e.autoSkipPadding||0,o=s?s.widest.width+a:0,l=s?s.highest.height+a:0;return this.isHorizontal()?l*r>o*i?o/r:l/i:l*i<o*r?l/r:o/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:s,position:a,border:o}=i,l=s.offset,u=this.isHorizontal(),f=this.ticks.length+(l?1:0),y=gi(s),h=[],p=o.setContext(this.getContext()),m=p.display?p.width:0,g=m/2,v=function(L){return Gn(r,L,m)};let S,k,C,A,j,b,x,M,_,I,P,H;if(a==="top")S=v(this.bottom),b=this.bottom-y,M=S-g,I=v(e.top)+g,H=e.bottom;else if(a==="bottom")S=v(this.top),I=e.top,H=v(e.bottom)-g,b=S+g,M=this.top+y;else if(a==="left")S=v(this.right),j=this.right-y,x=S-g,_=v(e.left)+g,P=e.right;else if(a==="right")S=v(this.left),_=e.left,P=v(e.right)-g,j=S+g,x=this.left+y;else if(n==="x"){if(a==="center")S=v((e.top+e.bottom)/2+.5);else if(ge(a)){const L=Object.keys(a)[0],R=a[L];S=v(this.chart.scales[L].getPixelForValue(R))}I=e.top,H=e.bottom,b=S+g,M=b+y}else if(n==="y"){if(a==="center")S=v((e.left+e.right)/2);else if(ge(a)){const L=Object.keys(a)[0],R=a[L];S=v(this.chart.scales[L].getPixelForValue(R))}j=S-g,x=j-y,_=e.left,P=e.right}const N=ye(i.ticks.maxTicksLimit,f),O=Math.max(1,Math.ceil(f/N));for(k=0;k<f;k+=O){const L=this.getContext(k),R=s.setContext(L),Y=o.setContext(L),z=R.lineWidth,F=R.color,Q=Y.dash||[],U=Y.dashOffset,q=R.tickWidth,W=R.tickColor,X=R.tickBorderDash||[],Z=R.tickBorderDashOffset;C=pS(this,k,l),C!==void 0&&(A=Gn(r,C,z),u?j=x=_=P=A:b=M=I=H=A,h.push({tx1:j,ty1:b,tx2:x,ty2:M,x1:_,y1:I,x2:P,y2:H,width:z,color:F,borderDash:Q,borderDashOffset:U,tickWidth:q,tickColor:W,tickBorderDash:X,tickBorderDashOffset:Z}))}return this._ticksLength=f,this._borderValue=S,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:i,ticks:s}=r,a=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:u,padding:c,mirror:f}=s,y=gi(r.grid),h=y+c,p=f?-c:h,m=-In(this.labelRotation),g=[];let v,S,k,C,A,j,b,x,M,_,I,P,H="middle";if(i==="top")j=this.bottom-p,b=this._getXAxisLabelAlignment();else if(i==="bottom")j=this.top+p,b=this._getXAxisLabelAlignment();else if(i==="left"){const O=this._getYAxisLabelAlignment(y);b=O.textAlign,A=O.x}else if(i==="right"){const O=this._getYAxisLabelAlignment(y);b=O.textAlign,A=O.x}else if(n==="x"){if(i==="center")j=(e.top+e.bottom)/2+h;else if(ge(i)){const O=Object.keys(i)[0],L=i[O];j=this.chart.scales[O].getPixelForValue(L)+h}b=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")A=(e.left+e.right)/2-h;else if(ge(i)){const O=Object.keys(i)[0],L=i[O];A=this.chart.scales[O].getPixelForValue(L)}b=this._getYAxisLabelAlignment(y).textAlign}n==="y"&&(l==="start"?H="top":l==="end"&&(H="bottom"));const N=this._getLabelSizes();for(v=0,S=o.length;v<S;++v){k=o[v],C=k.label;const O=s.setContext(this.getContext(v));x=this.getPixelForTick(v)+s.labelOffset,M=this._resolveTickFontOptions(v),_=M.lineHeight,I=Ne(C)?C.length:1;const L=I/2,R=O.color,Y=O.textStrokeColor,z=O.textStrokeWidth;let F=b;a?(A=x,b==="inner"&&(v===S-1?F=this.options.reverse?"left":"right":v===0?F=this.options.reverse?"right":"left":F="center"),i==="top"?u==="near"||m!==0?P=-I*_+_/2:u==="center"?P=-N.highest.height/2-L*_+_:P=-N.highest.height+_/2:u==="near"||m!==0?P=_/2:u==="center"?P=N.highest.height/2-L*_:P=N.highest.height-I*_,f&&(P*=-1),m!==0&&!O.showLabelBackdrop&&(A+=_/2*Math.sin(m))):(j=x,P=(1-I)*_/2);let Q;if(O.showLabelBackdrop){const U=Je(O.backdropPadding),q=N.heights[v],W=N.widths[v];let X=P-U.top,Z=0-U.left;switch(H){case"middle":X-=q/2;break;case"bottom":X-=q;break}switch(b){case"center":Z-=W/2;break;case"right":Z-=W;break;case"inner":v===S-1?Z-=W:v>0&&(Z-=W/2);break}Q={left:Z,top:X,width:W+U.width,height:q+U.height,color:O.backdropColor}}g.push({label:C,font:M,textOffset:P,options:{rotation:m,color:R,strokeColor:Y,strokeWidth:z,textAlign:F,textBaseline:H,translation:[A,j],backdrop:Q}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-In(this.labelRotation))return e==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:i,padding:s}}=this.options,a=this._getLabelSizes(),o=e+s,l=a.widest.width;let u,c;return n==="left"?i?(c=this.right+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-o,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+o,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:i,width:s,height:a}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,i,s,a),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(s=>s.value===e);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,a;const o=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(s=0,a=i.length;s<a;++s){const l=i[s];n.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:i}}=this,s=r.setContext(this.getContext()),a=r.display?s.width:0;if(!a)return;const o=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,f,y;this.isHorizontal()?(u=Gn(e,this.left,a)-a/2,c=Gn(e,this.right,o)+o/2,f=y=l):(f=Gn(e,this.top,a)-a/2,y=Gn(e,this.bottom,o)+o/2,u=c=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(u,f),n.lineTo(c,y),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Ra(r,i);const s=this.getLabelItems(e);for(const a of s){const o=a.options,l=a.font,u=a.label,c=a.textOffset;vr(r,u,0,c,l,o)}i&&Na(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const s=He(r.font),a=Je(r.padding),o=r.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||ge(n)?(l+=a.bottom,Ne(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:u,titleY:c,maxWidth:f,rotation:y}=xS(this,l,n,o);vr(e,r.text,0,0,s,{color:r.color,maxWidth:f,rotation:y,textAlign:bS(o,n,i),textBaseline:"middle",translation:[u,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=ye(e.grid&&e.grid.z,-1),i=ye(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==ni.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,a;for(s=0,a=n.length;s<a;++s){const o=n[s];o[r]===this.id&&(!e||o.type===e)&&i.push(o)}return i}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return He(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Is{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;SS(n)&&(r=this.register(n));const i=this.items,s=e.id,a=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in i||(i[s]=e,AS(e,a,r),this.override&&Be.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,i=this.scope;r in n&&delete n[r],i&&r in Be[i]&&(delete Be[i][r],this.override&&delete gr[r])}}function AS(t,e,n){const r=Yi(Object.create(null),[n?Be.get(n):{},Be.get(e),t.defaults]);Be.set(e,r),t.defaultRoutes&&wS(e,t.defaultRoutes),t.descriptors&&Be.describe(e,t.descriptors)}function wS(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),i=r.pop(),s=[t].concat(r).join("."),a=e[n].split("."),o=a.pop(),l=a.join(".");Be.route(s,i,l,o)})}function SS(t){return"id"in t&&"defaults"in t}class CS{constructor(){this.controllers=new Is(Mr,"datasets",!0),this.elements=new Is(mn,"elements"),this.plugins=new Is(Object,"plugins"),this.scales=new Is(ni,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(e,s,i):Ce(i,a=>{const o=r||this._getRegistryForType(a);this._exec(e,o,a)})})}_exec(e,n,r){const i=Yl(e);Me(r["before"+i],[],r),n[e](r),Me(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const i=n.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return i}}var qt=new CS;class jS{constructor(){this._init=void 0}notify(e,n,r,i){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const s=i?this._descriptors(e).filter(i):this._descriptors(e),a=this._notify(s,e,n,r);return n==="afterDestroy"&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),a}_notify(e,n,r,i){i=i||{};for(const s of e){const a=s.plugin,o=a[r],l=[n,i,s.options];if(Me(o,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){je(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,i=ye(r.options&&r.options.plugins,{}),s=OS(r);return i===!1&&!n?[]:kS(e,s,i,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,i=(s,a)=>s.filter(o=>!a.some(l=>o.plugin.id===l.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function OS(t){const e={},n=[],r=Object.keys(qt.plugins.items);for(let s=0;s<r.length;s++)n.push(qt.getPlugin(r[s]));const i=t.plugins||[];for(let s=0;s<i.length;s++){const a=i[s];n.indexOf(a)===-1&&(n.push(a),e[a.id]=!0)}return{plugins:n,localIds:e}}function ES(t,e){return!e&&t===!1?null:t===!0?{}:t}function kS(t,{plugins:e,localIds:n},r,i){const s=[],a=t.getContext();for(const o of e){const l=o.id,u=ES(r[l],i);u!==null&&s.push({plugin:o,options:TS(t.config,{plugin:o,local:n[l]},u,a)})}return s}function TS(t,{plugin:e,local:n},r,i){const s=t.pluginScopeKeys(e),a=t.getOptionScopes(r,s);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ol(t,e){const n=Be.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function PS(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function MS(t,e){return t===e?"_index_":"_value_"}function ld(t){if(t==="x"||t==="y"||t==="r")return t}function IS(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function ll(t,...e){if(ld(t))return t;for(const n of e){const r=n.axis||IS(n.position)||t.length>1&&ld(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function ud(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function LS(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return ud(t,"x",n[0])||ud(t,"y",n[0])}return{}}function RS(t,e){const n=gr[t.type]||{scales:{}},r=e.scales||{},i=ol(t.type,e),s=Object.create(null);return Object.keys(r).forEach(a=>{const o=r[a];if(!ge(o))return console.error(`Invalid scale configuration for scale: ${a}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=ll(a,o,LS(a,t),Be.scales[o.type]),u=MS(l,i),c=n.scales||{};s[a]=Pi(Object.create(null),[{axis:l},o,c[l],c[u]])}),t.data.datasets.forEach(a=>{const o=a.type||t.type,l=a.indexAxis||ol(o,e),c=(gr[o]||{}).scales||{};Object.keys(c).forEach(f=>{const y=PS(f,l),h=a[y+"AxisID"]||y;s[h]=s[h]||Object.create(null),Pi(s[h],[{axis:y},r[h],c[f]])})}),Object.keys(s).forEach(a=>{const o=s[a];Pi(o,[Be.scales[o.type],Be.scale])}),s}function Yy(t){const e=t.options||(t.options={});e.plugins=ye(e.plugins,{}),e.scales=RS(t,e)}function Vy(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function NS(t){return t=t||{},t.data=Vy(t.data),Yy(t),t}const cd=new Map,Ky=new Set;function Ls(t,e){let n=cd.get(t);return n||(n=e(),cd.set(t,n),Ky.add(n)),n}const vi=(t,e,n)=>{const r=Vi(e,n);r!==void 0&&t.add(r)};class _S{constructor(e){this._config=NS(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Vy(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Yy(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Ls(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Ls(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Ls(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Ls(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:s}=this,a=this._cachedScopes(e,r),o=a.get(n);if(o)return o;const l=new Set;n.forEach(c=>{e&&(l.add(e),c.forEach(f=>vi(l,e,f))),c.forEach(f=>vi(l,i,f)),c.forEach(f=>vi(l,gr[s]||{},f)),c.forEach(f=>vi(l,Be,f)),c.forEach(f=>vi(l,sl,f))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),Ky.has(n)&&a.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,gr[n]||{},Be.datasets[n]||{},{type:n},Be,sl]}resolveNamedOptions(e,n,r,i=[""]){const s={$shared:!0},{resolver:a,subPrefixes:o}=dd(this._resolverCache,e,i);let l=a;if(BS(a,n)){s.$shared=!1,r=Bn(r)?r():r;const u=this.createResolver(e,r,o);l=Yr(a,r,u)}for(const u of n)s[u]=l[u];return s}createResolver(e,n,r=[""],i){const{resolver:s}=dd(this._resolverCache,e,r);return ge(n)?Yr(s,n,void 0,i):s}}function dd(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let s=r.get(i);return s||(s={resolver:$l(e,n),subPrefixes:n.filter(o=>!o.toLowerCase().includes("hover"))},r.set(i,s)),s}const DS=t=>ge(t)&&Object.getOwnPropertyNames(t).some(e=>Bn(t[e]));function BS(t,e){const{isScriptable:n,isIndexable:r}=Ty(t);for(const i of e){const s=n(i),a=r(i),o=(a||s)&&t[i];if(s&&(Bn(o)||DS(o))||a&&Ne(o))return!0}return!1}var FS="4.5.1";const US=["top","bottom","left","right","chartArea"];function fd(t,e){return t==="top"||t==="bottom"||US.indexOf(t)===-1&&e==="x"}function hd(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function yd(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Me(n&&n.onComplete,[t],e)}function HS(t){const e=t.chart,n=e.options.animation;Me(n&&n.onProgress,[t],e)}function Xy(t){return nu()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Ks={},pd=t=>{const e=Xy(t);return Object.values(Ks).filter(n=>n.canvas===e).pop()};function WS(t,e,n){const r=Object.keys(t);for(const i of r){const s=+i;if(s>=e){const a=t[i];delete t[i],(n>0||s>e)&&(t[s+n]=a)}}}function QS(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}var xn;let Ba=(xn=class{static register(...e){qt.add(...e),md()}static unregister(...e){qt.remove(...e),md()}constructor(e,n){const r=this.config=new _S(n),i=Xy(e),s=pd(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||oS(i)),this.platform.updateConfig(r);const o=this.platform.acquireContext(i,a.aspectRatio),l=o&&o.canvas,u=l&&l.height,c=l&&l.width;if(this.id=VA(),this.ctx=o,this.canvas=l,this.width=c,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jS,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=y3(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],Ks[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}rn.listen(this,"complete",yd),rn.listen(this,"progress",HS),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:i,_aspectRatio:s}=this;return je(e)?n&&s?s:i?r/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return qt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Hc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Bc(this.canvas,this.ctx),this}stop(){return rn.stop(this),this}resize(e,n){rn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,e,n,s),o=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Hc(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),Me(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ce(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((a,o)=>(a[o]=!1,a),{});let s=[];n&&(s=s.concat(Object.keys(n).map(a=>{const o=n[a],l=ll(a,o),u=l==="r",c=l==="x";return{options:o,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Ce(s,a=>{const o=a.options,l=o.id,u=ll(l,o),c=ye(o.type,a.dtype);(o.position===void 0||fd(o.position,u)!==fd(a.dposition))&&(o.position=a.dposition),i[l]=!0;let f=null;if(l in r&&r[l].type===c)f=r[l];else{const y=qt.getScale(c);f=new y({id:l,type:c,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(o,e)}),Ce(i,(a,o)=>{a||delete r[o]}),Ce(r,a=>{Pt.configure(this,a,a.options),Pt.addBox(this,a)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((i,s)=>i.index-s.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(hd("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,i)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const s=n[r];let a=this.getDatasetMeta(r);const o=s.type||this.config.type;if(a.type&&a.type!==o&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=o,a.indexAxis=s.indexAxis||ol(o,this.options),a.order=s.order||0,a.index=r,a.label=""+s.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=qt.getController(o),{datasetElementType:u,dataElementType:c}=Be.datasets[o];Object.assign(l,{dataElementType:qt.getElement(c),datasetElementType:u&&qt.getElement(u)}),a.controller=new l(this,r),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){Ce(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:f}=this.getDatasetMeta(u),y=!i&&s.indexOf(f)===-1;f.buildOrUpdateElements(y),a=Math.max(+f.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||Ce(s,u=>{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(hd("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Ce(this.scales,e=>{Pt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!Tc(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of n){const a=r==="_removeElements"?-s:s;WS(e,i,a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(e.filter(a=>a[0]===s).map((a,o)=>o+","+a.splice(1).join(","))),i=r(0);for(let s=1;s<n;s++)if(!Tc(i,r(s)))return;return Array.from(i).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Pt.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ce(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Bn(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),i={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(rn.has(this)?this.attached&&!rn.running(this)&&rn.start(this):(this.draw(),yd({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let i,s;for(i=0,s=n.length;i<s;++i){const a=n[i];(!e||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},i=Fy(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&Ra(n,i),e.controller.draw(),i&&Na(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return fn(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,i){const s=Uw.modes[n];return typeof s=="function"?s(this,e,r,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let i=r.filter(s=>s&&s._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Wn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const i=r?"show":"hide",s=this.getDatasetMeta(e),a=s.controller._resolveAnimations(void 0,i);ua(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),a.update(s,{visible:r}),this.update(o=>o.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),rn.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Bc(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Ks[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(s,a)=>{n.addEventListener(this,s,a),e[s]=a},i=(s,a,o)=>{s.offsetX=a,s.offsetY=o,this._eventHandler(s)};Ce(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),e[l]=u},i=(l,u)=>{e[l]&&(n.removeEventListener(this,l,u),delete e[l])},s=(l,u)=>{this.canvas&&this.resize(l,u)};let a;const o=()=>{i("attach",o),this.attached=!0,this.resize(),r("resize",s),r("detach",a)};a=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",o)},n.isAttached(this.canvas)?o():a()}unbindEvents(){Ce(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Ce(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const i=r?"set":"remove";let s,a,o,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),o=0,l=e.length;o<l;++o){a=e[o];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:s,index:a})=>{const o=this.getDatasetMeta(s);if(!o)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:o.data[a],index:a}});!oa(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const i=this.options.hover,s=(l,u)=>l.filter(c=>!u.some(f=>c.datasetIndex===f.datasetIndex&&c.index===f.index)),a=s(n,e),o=r?e:s(e,n);a.length&&this.updateHoverStyle(a,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:i=[],options:s}=this,a=n,o=this._getActiveElements(e,i,r,a),l=e3(e),u=QS(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Me(s.onHover,[e,o,this],this),l&&Me(s.onClick,[e,o,this],this));const c=!oa(o,i);return(c||n)&&(this._active=o,this._updateHoverStyles(o,i,n)),this._lastEvent=u,c}_getActiveElements(e,n,r,i){if(e.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,i)}},se(xn,"defaults",Be),se(xn,"instances",Ks),se(xn,"overrides",gr),se(xn,"registry",qt),se(xn,"version",FS),se(xn,"getChart",pd),xn);function md(){return Ce(Ba.instances,t=>t._plugins.invalidate())}function Jy(t,e,n=e){t.lineCap=ye(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ye(n.borderDash,e.borderDash)),t.lineDashOffset=ye(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ye(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ye(n.borderWidth,e.borderWidth),t.strokeStyle=ye(n.borderColor,e.borderColor)}function qS(t,e,n){t.lineTo(n.x,n.y)}function zS(t){return t.stepped?T3:t.tension||t.cubicInterpolationMode==="monotone"?P3:qS}function Zy(t,e,n={}){const r=t.length,{start:i=0,end:s=r-1}=n,{start:a,end:o}=e,l=Math.max(i,a),u=Math.min(s,o),c=i<a&&s<a||i>o&&s>o;return{count:r,start:l,loop:e.loop,ilen:u<l&&!c?r+u-l:u-l}}function GS(t,e,n,r){const{points:i,options:s}=e,{count:a,start:o,loop:l,ilen:u}=Zy(i,n,r),c=zS(s);let{move:f=!0,reverse:y}=r||{},h,p,m;for(h=0;h<=u;++h)p=i[(o+(y?u-h:h))%a],!p.skip&&(f?(t.moveTo(p.x,p.y),f=!1):c(t,m,p,y,s.stepped),m=p);return l&&(p=i[(o+(y?u:0))%a],c(t,m,p,y,s.stepped)),!!l}function YS(t,e,n,r){const i=e.points,{count:s,start:a,ilen:o}=Zy(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,f=0,y,h,p,m,g,v;const S=C=>(a+(u?o-C:C))%s,k=()=>{m!==g&&(t.lineTo(c,g),t.lineTo(c,m),t.lineTo(c,v))};for(l&&(h=i[S(0)],t.moveTo(h.x,h.y)),y=0;y<=o;++y){if(h=i[S(y)],h.skip)continue;const C=h.x,A=h.y,j=C|0;j===p?(A<m?m=A:A>g&&(g=A),c=(f*c+C)/++f):(k(),t.lineTo(C,A),p=j,f=0,m=g=A),v=A}k()}function ul(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?YS:GS}function VS(t){return t.stepped?cw:t.tension||t.cubicInterpolationMode==="monotone"?dw:Xn}function KS(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),Jy(t,e.options),t.stroke(i)}function XS(t,e,n,r){const{segments:i,options:s}=e,a=ul(e);for(const o of i)Jy(t,s,o.style),t.beginPath(),a(t,e,o,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}const JS=typeof Path2D=="function";function ZS(t,e,n,r){JS&&!e.options.segment?KS(t,e,n,r):XS(t,e,n,r)}class Rn extends mn{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;nw(this._points,r,e,i,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=gw(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,r=e.length;return r&&n[e[r-1].end]}interpolate(e,n){const r=this.options,i=e[n],s=this.points,a=By(this,{property:n,start:i,end:i});if(!a.length)return;const o=[],l=VS(r);let u,c;for(u=0,c=a.length;u<c;++u){const{start:f,end:y}=a[u],h=s[f],p=s[y];if(h===p){o.push(h);continue}const m=Math.abs((i-h[n])/(p[n]-h[n])),g=l(h,p,m,r.stepped);g[n]=e[n],o.push(g)}return o.length===1?o[0]:o}pathSegment(e,n,r){return ul(this)(e,this,n,r)}path(e,n,r){const i=this.segments,s=ul(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const o of i)a&=s(e,this,o,{start:n,end:n+r-1});return!!a}draw(e,n,r,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(e.save(),ZS(e,this,r,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}se(Rn,"id","line"),se(Rn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),se(Rn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),se(Rn,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function gd(t,e,n,r){const i=t.options,{[n]:s}=t.getProps([n],r);return Math.abs(e-s)<i.radius+i.hitRadius}class Xs extends mn{constructor(n){super();se(this,"parsed");se(this,"skip");se(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const s=this.options,{x:a,y:o}=this.getProps(["x","y"],i);return Math.pow(n-a,2)+Math.pow(r-o,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(n,r){return gd(this,n,"x",r)}inYRange(n,r){return gd(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!fn(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,al(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}se(Xs,"id","point"),se(Xs,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),se(Xs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function $S(t,e,n){const r=t.segments,i=t.points,s=e.points,a=[];for(const o of r){let{start:l,end:u}=o;u=Fa(l,u,i);const c=cl(n,i[l],i[u],o.loop);if(!e.segments){a.push({source:o,target:c,start:i[l],end:i[u]});continue}const f=By(e,c);for(const y of f){const h=cl(n,s[y.start],s[y.end],y.loop),p=Dy(o,i,h);for(const m of p)a.push({source:m,target:y,start:{[n]:vd(c,h,"start",Math.max)},end:{[n]:vd(c,h,"end",Math.min)}})}}return a}function cl(t,e,n,r){if(r)return;let i=e[t],s=n[t];return t==="angle"&&(i=xt(i),s=xt(s)),{property:t,start:i,end:s}}function eC(t,e){const{x:n=null,y:r=null}=t||{},i=e.points,s=[];return e.segments.forEach(({start:a,end:o})=>{o=Fa(a,o,i);const l=i[a],u=i[o];r!==null?(s.push({x:l.x,y:r}),s.push({x:u.x,y:r})):n!==null&&(s.push({x:n,y:l.y}),s.push({x:n,y:u.y}))}),s}function Fa(t,e,n){for(;e>t;e--){const r=n[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function vd(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function $y(t,e){let n=[],r=!1;return Ne(t)?(r=!0,n=t):n=eC(t,e),n.length?new Rn({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function bd(t){return t&&t.fill!==!1}function tC(t,e,n){let i=t[e].fill;const s=[e];let a;if(!n)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!qe(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;s.push(i),i=a.fill}return!1}function nC(t,e,n){const r=aC(t);if(ge(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return qe(i)&&Math.floor(i)===i?rC(r[0],e,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function rC(t,e,n,r){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=r?!1:n}function iC(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:ge(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function sC(t,e,n){let r;return t==="start"?r=n:t==="end"?r=e.options.reverse?e.min:e.max:ge(t)?r=t.value:r=e.getBaseValue(),r}function aC(t){const e=t.options,n=e.fill;let r=ye(n&&n.target,n);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function oC(t){const{scale:e,index:n,line:r}=t,i=[],s=r.segments,a=r.points,o=lC(e,n);o.push($y({x:null,y:e.bottom},r));for(let l=0;l<s.length;l++){const u=s[l];for(let c=u.start;c<=u.end;c++)uC(i,a[c],o)}return new Rn({points:i,options:{}})}function lC(t,e){const n=[],r=t.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const s=r[i];if(s.index===e)break;s.hidden||n.unshift(s.dataset)}return n}function uC(t,e,n){const r=[];for(let i=0;i<n.length;i++){const s=n[i],{first:a,last:o,point:l}=cC(s,e,"x");if(!(!l||a&&o)){if(a)r.unshift(l);else if(t.push(l),!o)break}}t.push(...r)}function cC(t,e,n){const r=t.interpolate(e,n);if(!r)return{};const i=r[n],s=t.segments,a=t.points;let o=!1,l=!1;for(let u=0;u<s.length;u++){const c=s[u],f=a[c.start][n],y=a[c.end][n];if(Er(i,f,y)){o=i===f,l=i===y;break}}return{first:o,last:l,point:r}}class e0{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,r){const{x:i,y:s,radius:a}=this;return n=n||{start:0,end:wt},e.arc(i,s,a,n.end,n.start,!0),!r.bounds}interpolate(e){const{x:n,y:r,radius:i}=this,s=e.angle;return{x:n+Math.cos(s)*i,y:r+Math.sin(s)*i,angle:s}}}function dC(t){const{chart:e,fill:n,line:r}=t;if(qe(n))return fC(e,n);if(n==="stack")return oC(t);if(n==="shape")return!0;const i=hC(t);return i instanceof e0?i:$y(i,r)}function fC(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function hC(t){return(t.scale||{}).getPointPositionForValue?pC(t):yC(t)}function yC(t){const{scale:e={},fill:n}=t,r=iC(n,e);if(qe(r)){const i=e.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function pC(t){const{scale:e,fill:n}=t,r=e.options,i=e.getLabels().length,s=r.reverse?e.max:e.min,a=sC(n,e,s),o=[];if(r.grid.circular){const l=e.getPointPositionForValue(0,s);return new e0({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(a)})}for(let l=0;l<i;++l)o.push(e.getPointPositionForValue(l,a));return o}function po(t,e,n){const r=dC(e),{chart:i,index:s,line:a,scale:o,axis:l}=e,u=a.options,c=u.fill,f=u.backgroundColor,{above:y=f,below:h=f}=c||{},p=i.getDatasetMeta(s),m=Fy(i,p);r&&a.points.length&&(Ra(t,n),mC(t,{line:a,target:r,above:y,below:h,area:n,scale:o,axis:l,clip:m}),Na(t))}function mC(t,e){const{line:n,target:r,above:i,below:s,area:a,scale:o,clip:l}=e,u=n._loop?"angle":e.axis;t.save();let c=s;s!==i&&(u==="x"?(xd(t,r,a.top),mo(t,{line:n,target:r,color:i,scale:o,property:u,clip:l}),t.restore(),t.save(),xd(t,r,a.bottom)):u==="y"&&(Ad(t,r,a.left),mo(t,{line:n,target:r,color:s,scale:o,property:u,clip:l}),t.restore(),t.save(),Ad(t,r,a.right),c=i)),mo(t,{line:n,target:r,color:c,scale:o,property:u,clip:l}),t.restore()}function xd(t,e,n){const{segments:r,points:i}=e;let s=!0,a=!1;t.beginPath();for(const o of r){const{start:l,end:u}=o,c=i[l],f=i[Fa(l,u,i)];s?(t.moveTo(c.x,c.y),s=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,o,{move:a}),a?t.closePath():t.lineTo(f.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Ad(t,e,n){const{segments:r,points:i}=e;let s=!0,a=!1;t.beginPath();for(const o of r){const{start:l,end:u}=o,c=i[l],f=i[Fa(l,u,i)];s?(t.moveTo(c.x,c.y),s=!1):(t.lineTo(n,c.y),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,o,{move:a}),a?t.closePath():t.lineTo(n,f.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function mo(t,e){const{line:n,target:r,property:i,color:s,scale:a,clip:o}=e,l=$S(n,r,i);for(const{source:u,target:c,start:f,end:y}of l){const{style:{backgroundColor:h=s}={}}=u,p=r!==!0;t.save(),t.fillStyle=h,gC(t,a,o,p&&cl(i,f,y)),t.beginPath();const m=!!n.pathSegment(t,u);let g;if(p){m?t.closePath():wd(t,r,y,i);const v=!!r.pathSegment(t,c,{move:m,reverse:!0});g=m&&v,g||wd(t,r,f,i)}t.closePath(),t.fill(g?"evenodd":"nonzero"),t.restore()}}function gC(t,e,n,r){const i=e.chart.chartArea,{property:s,start:a,end:o}=r||{};if(s==="x"||s==="y"){let l,u,c,f;s==="x"?(l=a,u=i.top,c=o,f=i.bottom):(l=i.left,u=a,c=i.right,f=o),t.beginPath(),n&&(l=Math.max(l,n.left),c=Math.min(c,n.right),u=Math.max(u,n.top),f=Math.min(f,n.bottom)),t.rect(l,u,c-l,f-u),t.clip()}}function wd(t,e,n,r){const i=e.interpolate(n,r);i&&t.lineTo(i.x,i.y)}var vC={id:"filler",afterDatasetsUpdate(t,e,n){const r=(t.data.datasets||[]).length,i=[];let s,a,o,l;for(a=0;a<r;++a)s=t.getDatasetMeta(a),o=s.dataset,l=null,o&&o.options&&o instanceof Rn&&(l={visible:t.isDatasetVisible(a),index:a,fill:nC(o,a,r),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:o}),s.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],!(!l||l.fill===!1)&&(l.fill=tC(i,a,n.propagate))},beforeDraw(t,e,n){const r=n.drawTime==="beforeDraw",i=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let a=i.length-1;a>=0;--a){const o=i[a].$filler;o&&(o.line.updateControlPoints(s,o.axis),r&&o.fill&&po(t.ctx,o,s))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=t.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const s=r[i].$filler;bd(s)&&po(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;!bd(r)||n.drawTime!=="beforeDatasetDraw"||po(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Sd=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},bC=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Cd extends mn{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Me(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,i=He(r.font),s=i.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=Sd(r,s);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(a,s,o,l)+10):(c=this.maxHeight,u=this._fitCols(a,i,o,l)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,i){const{ctx:s,maxWidth:a,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+o;let f=e;s.textAlign="left",s.textBaseline="middle";let y=-1,h=-c;return this.legendItems.forEach((p,m)=>{const g=r+n/2+s.measureText(p.text).width;(m===0||u[u.length-1]+g+2*o>a)&&(f+=c,u[u.length-(m>0?0:1)]=0,h+=c,y++),l[m]={left:0,top:h,row:y,width:g,height:i},u[u.length-1]+=g+o}),f}_fitCols(e,n,r,i){const{ctx:s,maxHeight:a,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=a-e;let f=o,y=0,h=0,p=0,m=0;return this.legendItems.forEach((g,v)=>{const{itemWidth:S,itemHeight:k}=xC(r,n,s,g,i);v>0&&h+k+2*o>c&&(f+=y+o,u.push({width:y,height:h}),p+=y+o,m++,y=h=0),l[v]={left:p,top:h,col:m,width:S,height:k},y=Math.max(y,S),h+=k+o}),f+=y,u.push({width:y,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:s}}=this,a=Pr(s,this.left,this.width);if(this.isHorizontal()){let o=0,l=Ke(r,this.left+i,this.right-this.lineWidths[o]);for(const u of n)o!==u.row&&(o=u.row,l=Ke(r,this.left+i,this.right-this.lineWidths[o])),u.top+=this.top+e+i,u.left=a.leftForLtr(a.x(l),u.width),l+=u.width+i}else{let o=0,l=Ke(r,this.top+e+i,this.bottom-this.columnSizes[o].height);for(const u of n)u.col!==o&&(o=u.col,l=Ke(r,this.top+e+i,this.bottom-this.columnSizes[o].height)),u.top=l,u.left+=this.left+i,u.left=a.leftForLtr(a.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Ra(e,this),this._draw(),Na(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:i}=this,{align:s,labels:a}=e,o=Be.color,l=Pr(e.rtl,this.left,this.width),u=He(a.font),{padding:c}=a,f=u.size,y=f/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:p,boxHeight:m,itemHeight:g}=Sd(a,f),v=function(j,b,x){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;i.save();const M=ye(x.lineWidth,1);if(i.fillStyle=ye(x.fillStyle,o),i.lineCap=ye(x.lineCap,"butt"),i.lineDashOffset=ye(x.lineDashOffset,0),i.lineJoin=ye(x.lineJoin,"miter"),i.lineWidth=M,i.strokeStyle=ye(x.strokeStyle,o),i.setLineDash(ye(x.lineDash,[])),a.usePointStyle){const _={radius:m*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:M},I=l.xPlus(j,p/2),P=b+y;Ey(i,_,I,P,a.pointStyleWidth&&p)}else{const _=b+Math.max((f-m)/2,0),I=l.leftForLtr(j,p),P=Tr(x.borderRadius);i.beginPath(),Object.values(P).some(H=>H!==0)?fa(i,{x:I,y:_,w:p,h:m,radius:P}):i.rect(I,_,p,m),i.fill(),M!==0&&i.stroke()}i.restore()},S=function(j,b,x){vr(i,x.text,j,b+g/2,u,{strikethrough:x.hidden,textAlign:l.textAlign(x.textAlign)})},k=this.isHorizontal(),C=this._computeTitleHeight();k?h={x:Ke(s,this.left+c,this.right-r[0]),y:this.top+c+C,line:0}:h={x:this.left+c,y:Ke(s,this.top+C+c,this.bottom-n[0].height),line:0},Ry(this.ctx,e.textDirection);const A=g+c;this.legendItems.forEach((j,b)=>{i.strokeStyle=j.fontColor,i.fillStyle=j.fontColor;const x=i.measureText(j.text).width,M=l.textAlign(j.textAlign||(j.textAlign=a.textAlign)),_=p+y+x;let I=h.x,P=h.y;l.setWidth(this.width),k?b>0&&I+_+c>this.right&&(P=h.y+=A,h.line++,I=h.x=Ke(s,this.left+c,this.right-r[h.line])):b>0&&P+A>this.bottom&&(I=h.x=I+n[h.line].width+c,h.line++,P=h.y=Ke(s,this.top+C+c,this.bottom-n[h.line].height));const H=l.x(I);if(v(H,P,j),I=p3(M,I+p+y,k?I+_:this.right,e.rtl),S(l.x(I),P,j),k)h.x+=_+c;else if(typeof j.text!="string"){const N=u.lineHeight;h.y+=t0(j,N)+c}else h.y+=A}),Ny(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=He(n.font),i=Je(n.padding);if(!n.display)return;const s=Pr(e.rtl,this.left,this.width),a=this.ctx,o=n.position,l=r.size/2,u=i.top+l;let c,f=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),c=this.top+u,f=Ke(e.align,f,this.right-y);else{const p=this.columnSizes.reduce((m,g)=>Math.max(m,g.height),0);c=u+Ke(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const h=Ke(o,f,f+y);a.textAlign=s.textAlign(Xl(o)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,vr(a,n.text,h,c,r)}_computeTitleHeight(){const e=this.options.title,n=He(e.font),r=Je(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,i,s;if(Er(e,this.left,this.right)&&Er(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(i=s[r],Er(e,i.left,i.left+i.width)&&Er(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!SC(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,s=bC(i,r);i&&!s&&Me(n.onLeave,[e,i,this],this),this._hoveredItem=r,r&&!s&&Me(n.onHover,[e,r,this],this)}else r&&Me(n.onClick,[e,r,this],this)}}function xC(t,e,n,r,i){const s=AC(r,t,e,n),a=wC(i,r,e.lineHeight);return{itemWidth:s,itemHeight:a}}function AC(t,e,n,r){let i=t.text;return i&&typeof i!="string"&&(i=i.reduce((s,a)=>s.length>a.length?s:a)),e+n.size/2+r.measureText(i).width}function wC(t,e,n){let r=t;return typeof e.text!="string"&&(r=t0(e,n)),r}function t0(t,e){const n=t.text?t.text.length:0;return e*n}function SC(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var CC={id:"legend",_element:Cd,start(t,e,n){const r=t.legend=new Cd({ctx:t.ctx,options:n,chart:t});Pt.configure(t,r,n),Pt.addBox(t,r)},stop(t){Pt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Pt.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:s,useBorderRadius:a,borderRadius:o}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=Je(u.borderWidth);return{text:e[l.index].label,fillStyle:u.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:a&&(o||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class n0 extends mn{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=Ne(r.text)?r.text.length:1;this._padding=Je(r.padding);const s=i*He(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:i,right:s,options:a}=this,o=a.align;let l=0,u,c,f;return this.isHorizontal()?(c=Ke(o,r,s),f=n+e,u=s-r):(a.position==="left"?(c=r+e,f=Ke(o,i,n),l=Fe*-.5):(c=s-e,f=Ke(o,n,i),l=Fe*.5),u=i-n),{titleX:c,titleY:f,maxWidth:u,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=He(n.font),s=r.lineHeight/2+this._padding.top,{titleX:a,titleY:o,maxWidth:l,rotation:u}=this._drawArgs(s);vr(e,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Xl(n.align),textBaseline:"middle",translation:[a,o]})}}function jC(t,e){const n=new n0({ctx:t.ctx,options:e,chart:t});Pt.configure(t,n,e),Pt.addBox(t,n),t.titleBlock=n}var OC={id:"title",_element:n0,start(t,e,n){jC(t,n)},stop(t){const e=t.titleBlock;Pt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;Pt.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ji={average(t){if(!t.length)return!1;let e,n,r=new Set,i=0,s=0;for(e=0,n=t.length;e<n;++e){const o=t[e].element;if(o&&o.hasValue()){const l=o.tooltipPosition();r.add(l.x),i+=l.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((o,l)=>o+l)/r.size,y:i/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,i=Number.POSITIVE_INFINITY,s,a,o;for(s=0,a=t.length;s<a;++s){const l=t[s].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=il(e,u);c<i&&(i=c,o=l)}}if(o){const l=o.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Qt(t,e){return e&&(Ne(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function sn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
49
+ */class Ew{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,s){const i=n.listeners[s],a=n.duration;i.forEach(o=>o({chart:e,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Py.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,s)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,o=!1,l;for(;a>=0;--a)l=i[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(s.draw(),this._notify(s,r,e,"progress")),i.length||(r.running=!1,this._notify(s,r,e,"complete"),r.initial=!1),n+=i.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,s)=>Math.max(r,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let s=r.length-1;for(;s>=0;--s)r[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var on=new Ew;const Xc="transparent",kw={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=Uc(t||Xc),s=r.valid&&Uc(e||Xc);return s&&s.valid?s.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class Tw{constructor(e,n,r,s){const i=n[r];s=Li([e.to,s,i,e.from]);const a=Li([e.from,i,s]);this._active=!0,this._fn=e.fn||kw[e.type||typeof a],this._easing=Ds[e.easing]||Ds.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=a,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const s=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Li([e.to,n,s,e.from]),this._from=Li([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,s=this._prop,i=this._from,a=this._loop,o=this._to;let l;if(this._active=i!==o&&(a||n<r),!this._active){this._target[s]=o,this._notify(!0);return}if(n<0){this._target[s]=i;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(i,o,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let s=0;s<r.length;s++)r[s][n]()}}class Gy{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!ve(e))return;const n=Object.keys(Be.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const i=e[s];if(!ve(i))return;const a={};for(const o of n)a[o]=i[o];(Re(i.properties)&&i.properties||[s]).forEach(o=>{(o===s||!r.has(o))&&r.set(o,a)})})}_animateOptions(e,n){const r=n.options,s=Mw(e,r);if(!s)return[];const i=this._createAnimations(s,r);return r.$shared&&Pw(e.options.$animations,r).then(()=>{e.options=r},()=>{}),i}_createAnimations(e,n){const r=this._properties,s=[],i=e.$animations||(e.$animations={}),a=Object.keys(n),o=Date.now();let l;for(l=a.length-1;l>=0;--l){const u=a[l];if(u.charAt(0)==="$")continue;if(u==="options"){s.push(...this._animateOptions(e,n));continue}const d=n[u];let f=i[u];const y=r.get(u);if(f)if(y&&f.active()){f.update(y,d,o);continue}else f.cancel();if(!y||!y.duration){e[u]=d;continue}i[u]=f=new Tw(y,e,u,d),s.push(f)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return on.add(this._chart,r),!0}}function Pw(t,e){const n=[],r=Object.keys(e);for(let s=0;s<r.length;s++){const i=t[r[s]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function Mw(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Jc(t,e){const n=t&&t.options||{},r=n.reverse,s=n.min===void 0?e:0,i=n.max===void 0?e:0;return{start:r?i:s,end:r?s:i}}function Lw(t,e,n){if(n===!1)return!1;const r=Jc(t,n),s=Jc(e,n);return{top:s.end,right:r.end,bottom:s.start,left:r.start}}function Iw(t){let e,n,r,s;return ve(t)?(e=t.top,n=t.right,r=t.bottom,s=t.left):e=n=r=s=t,{top:e,right:n,bottom:r,left:s,disabled:t===!1}}function Yy(t,e){const n=[],r=t._getSortedDatasetMetas(e);let s,i;for(s=0,i=r.length;s<i;++s)n.push(r[s].index);return n}function Zc(t,e,n,r={}){const s=t.keys,i=r.mode==="single";let a,o,l,u;if(e===null)return;let d=!1;for(a=0,o=s.length;a<o;++a){if(l=+s[a],l===n){if(d=!0,r.all)continue;break}u=t.values[l],qe(u)&&(i||e===0||Kr(e)===Kr(u))&&(e+=u)}return!d&&!r.all?0:e}function Rw(t,e){const{iScale:n,vScale:r}=e,s=n.axis==="x"?"x":"y",i=r.axis==="x"?"x":"y",a=Object.keys(t),o=new Array(a.length);let l,u,d;for(l=0,u=a.length;l<u;++l)d=a[l],o[l]={[s]:d,[i]:t[d]};return o}function yo(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function Nw(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function _w(t){const{min:e,max:n,minDefined:r,maxDefined:s}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function Dw(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function $c(t,e,n,r){for(const s of e.getMatchingVisibleMetas(r).reverse()){const i=t[s.index];if(n&&i>0||!n&&i<0)return s.index}return null}function ed(t,e){const{chart:n,_cachedMeta:r}=t,s=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:o}=r,l=i.axis,u=a.axis,d=Nw(i,a,r),f=e.length;let y;for(let h=0;h<f;++h){const p=e[h],{[l]:m,[u]:g}=p,v=p._stacks||(p._stacks={});y=v[u]=Dw(s,d,m),y[o]=g,y._top=$c(y,a,!0,r.type),y._bottom=$c(y,a,!1,r.type);const S=y._visualValues||(y._visualValues={});S[o]=g}}function po(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function Bw(t,e){return zn(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Fw(t,e,n){return zn(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function bs(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const s of e){const i=s._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const mo=t=>t==="reset"||t==="none",td=(t,e)=>e?t:Object.assign({},t),Uw=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Yy(n,!0),values:null};class Rr{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=yo(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&bs(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),s=(f,y,h,p)=>f==="x"?y:f==="r"?p:h,i=n.xAxisID=pe(r.xAxisID,po(e,"x")),a=n.yAxisID=pe(r.yAxisID,po(e,"y")),o=n.rAxisID=pe(r.rAxisID,po(e,"r")),l=n.indexAxis,u=n.iAxisID=s(l,i,a,o),d=n.vAxisID=s(l,a,i,o);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(o),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Dc(this._data,this),e._stacked&&bs(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(ve(n)){const s=this._cachedMeta;this._data=Rw(n,s)}else if(r!==n){if(r){Dc(r,this);const s=this._cachedMeta;bs(s),s._parsed=[]}n&&Object.isExtensible(n)&&v3(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let s=!1;this._dataCheck();const i=n._stacked;n._stacked=yo(n.vScale,n),n.stack!==r.stack&&(s=!0,bs(n),n.stack=r.stack),this._resyncElements(e),(s||i!==n._stacked)&&(ed(this,n._parsed),n._stacked=yo(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:s}=this,{iScale:i,_stacked:a}=r,o=i.axis;let l=e===0&&n===s.length?!0:r._sorted,u=e>0&&r._parsed[e-1],d,f,y;if(this._parsing===!1)r._parsed=s,r._sorted=!0,y=s;else{Re(s[e])?y=this.parseArrayData(r,s,e,n):ve(s[e])?y=this.parseObjectData(r,s,e,n):y=this.parsePrimitiveData(r,s,e,n);const h=()=>f[o]===null||u&&f[o]<u[o];for(d=0;d<n;++d)r._parsed[d+e]=f=y[d],l&&(h()&&(l=!1),u=f);r._sorted=l}a&&ed(this,y)}parsePrimitiveData(e,n,r,s){const{iScale:i,vScale:a}=e,o=i.axis,l=a.axis,u=i.getLabels(),d=i===a,f=new Array(s);let y,h,p;for(y=0,h=s;y<h;++y)p=y+r,f[y]={[o]:d||i.parse(u[p],p),[l]:a.parse(n[p],p)};return f}parseArrayData(e,n,r,s){const{xScale:i,yScale:a}=e,o=new Array(s);let l,u,d,f;for(l=0,u=s;l<u;++l)d=l+r,f=n[d],o[l]={x:i.parse(f[0],d),y:a.parse(f[1],d)};return o}parseObjectData(e,n,r,s){const{xScale:i,yScale:a}=e,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=new Array(s);let d,f,y,h;for(d=0,f=s;d<f;++d)y=d+r,h=n[y],u[d]={x:i.parse($s(h,o),y),y:a.parse($s(h,l),y)};return u}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const s=this.chart,i=this._cachedMeta,a=n[e.axis],o={keys:Yy(s,!0),values:n._stacks[e.axis]._visualValues};return Zc(o,a,i.index,{mode:r})}updateRangeFromParsed(e,n,r,s){const i=r[n.axis];let a=i===null?NaN:i;const o=s&&r._stacks[n.axis];s&&o&&(s.values=o,a=Zc(s,i,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,n){const r=this._cachedMeta,s=r._parsed,i=r._sorted&&e===r.iScale,a=s.length,o=this._getOtherScale(e),l=Uw(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=_w(o);let y,h;function p(){h=s[y];const m=h[o.axis];return!qe(h[e.axis])||d>m||f<m}for(y=0;y<a&&!(!p()&&(this.updateRangeFromParsed(u,e,h,l),i));++y);if(i){for(y=a-1;y>=0;--y)if(!p()){this.updateRangeFromParsed(u,e,h,l);break}}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let s,i,a;for(s=0,i=n.length;s<i;++s)a=n[s][e.axis],qe(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,s=n.vScale,i=this.getParsed(e);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:s?""+s.getLabelForValue(i[s.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=Iw(pe(this.options.clip,Lw(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,s=r.data||[],i=n.chartArea,a=[],o=this._drawStart||0,l=this._drawCount||s.length-o,u=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(e,i,o,l),d=o;d<o+l;++d){const f=s[d];f.hidden||(f.active&&u?a.push(f):f.draw(e,i))}for(d=0;d<a.length;++d)a[d].draw(e,i)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const s=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const a=this._cachedMeta.data[e];i=a.$context||(a.$context=Fw(this.getContext(),e,a)),i.parsed=this.getParsed(e),i.raw=s.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=Bw(this.chart.getContext(),this.index)),i.dataset=s,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=r,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const s=n==="active",i=this._cachedDataOpts,a=e+"-"+n,o=i[a],l=this.enableOptionSharing&&pa(r);if(o)return td(o,l);const u=this.chart.config,d=u.datasetElementScopeKeys(this._type,e),f=s?[`${e}Hover`,"hover",e,""]:[e,""],y=u.getOptionScopes(this.getDataset(),d),h=Object.keys(Be.elements[e]),p=()=>this.getContext(r,s,n),m=u.resolveNamedOptions(y,h,p,f);return m.$shared&&(m.$shared=l,i[a]=Object.freeze(td(m,l))),m}_resolveAnimations(e,n,r){const s=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,o=i[a];if(o)return o;let l;if(s.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),y=d.getOptionScopes(this.getDataset(),f);l=d.createResolver(y,this.getContext(e,r,n))}const u=new Gy(s,l&&l.animations);return l&&l._cacheable&&(i[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||mo(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),s=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==s;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(e,n,r,s){mo(s)?Object.assign(e,r):this._resolveAnimations(n,s).update(e,r)}updateSharedOptions(e,n,r){e&&!mo(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,s){e.active=s;const i=this.getStyle(n,s);this._resolveAnimations(n,r,s).update(e,{options:!s&&this.getSharedOptions(i)||i})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[o,l,u]of this._syncList)this[o](l,u);this._syncList=[];const s=r.length,i=n.length,a=Math.min(i,s);a&&this.parse(0,a),i>s?this._insertElements(s,i-s,e):i<s&&this._removeElements(i,s-i)}_insertElements(e,n,r=!0){const s=this._cachedMeta,i=s.data,a=e+n;let o;const l=u=>{for(u.length+=n,o=u.length-1;o>=a;o--)u[o]=u[o-n]};for(l(i),o=e;o<a;++o)i[o]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(e,n),r&&this.updateElements(i,e,n,"reset")}updateElements(e,n,r,s){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const s=r._parsed.splice(e,n);r._stacked&&bs(r,s)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,s]=e;this[n](r,s)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}re(Rr,"defaults",{}),re(Rr,"datasetElementType",null),re(Rr,"dataElementType",null);class Zi extends Rr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:s=[],_dataset:i}=n,a=this.chart._animationsDisabled;let{start:o,count:l}=w3(n,s,a);this._drawStart=o,this._drawCount=l,S3(n)&&(o=0,l=s.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=s;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:u},e),this.updateElements(s,o,l,e)}updateElements(e,n,r,s){const i=s==="reset",{iScale:a,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,s),y=a.axis,h=o.axis,{spanGaps:p,segment:m}=this.options,g=ei(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||i||s==="none",S=n+r,k=e.length;let j=n>0&&this.getParsed(n-1);for(let A=0;A<k;++A){const C=e[A],b=v?C:{};if(A<n||A>=S){b.skip=!0;continue}const x=this.getParsed(A),M=Oe(x[h]),_=b[y]=a.getPixelForValue(x[y],A),L=b[h]=i||M?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,x,l):x[h],A);b.skip=isNaN(_)||isNaN(L)||M,b.stop=A>0&&Math.abs(x[y]-j[y])>g,m&&(b.parsed=x,b.raw=u.data[A]),f&&(b.options=d||this.resolveDataElementOptions(A,C.active?"active":s)),v||this.updateElement(C,A,b,s),j=x}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return r;const i=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(r,i,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}re(Zi,"id","line"),re(Zi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),re(Zi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class $i extends Rr{getLabelAndValue(e){const n=this._cachedMeta.vScale,r=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(e,n,r,s){return tw.bind(this)(e,n,r,s)}update(e){const n=this._cachedMeta,r=n.dataset,s=n.data||[],i=n.iScale.getLabels();if(r.points=s,e!=="resize"){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);const o={_loop:!0,_fullLoop:i.length===s.length,options:a};this.updateElement(r,void 0,o,e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,r,s){const i=this._cachedMeta.rScale,a=s==="reset";for(let o=n;o<n+r;o++){const l=e[o],u=this.resolveDataElementOptions(o,l.active?"active":s),d=i.getPointPositionForValue(o,this.getParsed(o).r),f=a?i.xCenter:d.x,y=a?i.yCenter:d.y,h={x:f,y,angle:d.angle,skip:isNaN(f)||isNaN(y),options:u};this.updateElement(l,o,h,s)}}}re($i,"id","radar"),re($i,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),re($i,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});function Xn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class lu{constructor(e){re(this,"options");this.options=e||{}}static override(e){Object.assign(lu.prototype,e)}init(){}formats(){return Xn()}parse(){return Xn()}format(){return Xn()}add(){return Xn()}diff(){return Xn()}startOf(){return Xn()}endOf(){return Xn()}}var Hw={_date:lu};function Ww(t,e,n,r){const{controller:s,data:i,_sorted:a}=t,o=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(o&&e===o.axis&&e!=="r"&&a&&i.length){const u=o._reversePixels?m3:nr;if(r){if(s._sharedOptions){const d=i[0],f=typeof d.getRange=="function"&&d.getRange(e);if(f){const y=u(i,e,n-f),h=u(i,e,n+f);return{lo:y.lo,hi:h.hi}}}}else{const d=u(i,e,n);if(l){const{vScale:f}=s._cachedMeta,{_parsed:y}=t,h=y.slice(0,d.lo+1).reverse().findIndex(m=>!Oe(m[f.axis]));d.lo-=Math.max(0,h);const p=y.slice(d.hi).findIndex(m=>!Oe(m[f.axis]));d.hi+=Math.max(0,p)}return d}}return{lo:0,hi:i.length-1}}function Qa(t,e,n,r,s){const i=t.getSortedVisibleDatasetMetas(),a=n[e];for(let o=0,l=i.length;o<l;++o){const{index:u,data:d}=i[o],{lo:f,hi:y}=Ww(i[o],e,a,s);for(let h=f;h<=y;++h){const p=d[h];p.skip||r(p,u,h)}}}function Qw(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,s){const i=e?Math.abs(r.x-s.x):0,a=n?Math.abs(r.y-s.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}function go(t,e,n,r,s){const i=[];return!s&&!t.isPointInArea(e)||Qa(t,n,e,function(o,l,u){!s&&!pn(o,t.chartArea,0)||o.inRange(e.x,e.y,r)&&i.push({element:o,datasetIndex:l,index:u})},!0),i}function qw(t,e,n,r){let s=[];function i(a,o,l){const{startAngle:u,endAngle:d}=a.getProps(["startAngle","endAngle"],r),{angle:f}=h3(a,{x:e.x,y:e.y});ky(f,u,d)&&s.push({element:a,datasetIndex:o,index:l})}return Qa(t,n,e,i),s}function zw(t,e,n,r,s,i){let a=[];const o=Qw(n);let l=Number.POSITIVE_INFINITY;function u(d,f,y){const h=d.inRange(e.x,e.y,s);if(r&&!h)return;const p=d.getCenterPoint(s);if(!(!!i||t.isPointInArea(p))&&!h)return;const g=o(e,p);g<l?(a=[{element:d,datasetIndex:f,index:y}],l=g):g===l&&a.push({element:d,datasetIndex:f,index:y})}return Qa(t,n,e,u),a}function vo(t,e,n,r,s,i){return!i&&!t.isPointInArea(e)?[]:n==="r"&&!r?qw(t,e,n,s):zw(t,e,n,r,s,i)}function nd(t,e,n,r,s){const i=[],a=n==="x"?"inXRange":"inYRange";let o=!1;return Qa(t,n,e,(l,u,d)=>{l[a]&&l[a](e[n],s)&&(i.push({element:l,datasetIndex:u,index:d}),o=o||l.inRange(e.x,e.y,s))}),r&&!o?[]:i}var Gw={modes:{index(t,e,n,r){const s=Zn(e,t),i=n.axis||"x",a=n.includeInvisible||!1,o=n.intersect?go(t,s,i,r,a):vo(t,s,i,!1,r,a),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const d=o[0].index,f=u.data[d];f&&!f.skip&&l.push({element:f,datasetIndex:u.index,index:d})}),l):[]},dataset(t,e,n,r){const s=Zn(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;let o=n.intersect?go(t,s,i,r,a):vo(t,s,i,!1,r,a);if(o.length>0){const l=o[0].datasetIndex,u=t.getDatasetMeta(l).data;o=[];for(let d=0;d<u.length;++d)o.push({element:u[d],datasetIndex:l,index:d})}return o},point(t,e,n,r){const s=Zn(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;return go(t,s,i,r,a)},nearest(t,e,n,r){const s=Zn(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;return vo(t,s,i,n.intersect,r,a)},x(t,e,n,r){const s=Zn(e,t);return nd(t,s,"x",n.intersect,r)},y(t,e,n,r){const s=Zn(e,t);return nd(t,s,"y",n.intersect,r)}}};const Vy=["left","top","right","bottom"];function xs(t,e){return t.filter(n=>n.pos===e)}function rd(t,e){return t.filter(n=>Vy.indexOf(n.pos)===-1&&n.box.axis===e)}function As(t,e){return t.sort((n,r)=>{const s=e?r:n,i=e?n:r;return s.weight===i.weight?s.index-i.index:s.weight-i.weight})}function Yw(t){const e=[];let n,r,s,i,a,o;for(n=0,r=(t||[]).length;n<r;++n)s=t[n],{position:i,options:{stack:a,stackWeight:o=1}}=s,e.push({index:n,box:s,pos:i,horizontal:s.isHorizontal(),weight:s.weight,stack:a&&i+a,stackWeight:o});return e}function Vw(t){const e={};for(const n of t){const{stack:r,pos:s,stackWeight:i}=n;if(!r||!Vy.includes(s))continue;const a=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=i}return e}function Kw(t,e){const n=Vw(t),{vBoxMaxWidth:r,hBoxMaxHeight:s}=e;let i,a,o;for(i=0,a=t.length;i<a;++i){o=t[i];const{fullSize:l}=o.box,u=n[o.stack],d=u&&o.stackWeight/u.weight;o.horizontal?(o.width=d?d*r:l&&e.availableWidth,o.height=s):(o.width=r,o.height=d?d*s:l&&e.availableHeight)}return n}function Xw(t){const e=Yw(t),n=As(e.filter(u=>u.box.fullSize),!0),r=As(xs(e,"left"),!0),s=As(xs(e,"right")),i=As(xs(e,"top"),!0),a=As(xs(e,"bottom")),o=rd(e,"x"),l=rd(e,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:s.concat(l).concat(a).concat(o),chartArea:xs(e,"chartArea"),vertical:r.concat(s).concat(l),horizontal:i.concat(a).concat(o)}}function sd(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Ky(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Jw(t,e,n,r){const{pos:s,box:i}=n,a=t.maxPadding;if(!ve(s)){n.size&&(t[s]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,t[s]+=n.size}i.getPadding&&Ky(a,i.getPadding());const o=Math.max(0,e.outerWidth-sd(a,t,"left","right")),l=Math.max(0,e.outerHeight-sd(a,t,"top","bottom")),u=o!==t.w,d=l!==t.h;return t.w=o,t.h=l,n.horizontal?{same:u,other:d}:{same:d,other:u}}function Zw(t){const e=t.maxPadding;function n(r){const s=Math.max(e[r]-t[r],0);return t[r]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function $w(t,e){const n=e.maxPadding;function r(s){const i={left:0,top:0,right:0,bottom:0};return s.forEach(a=>{i[a]=Math.max(e[a],n[a])}),i}return r(t?["left","right"]:["top","bottom"])}function Ts(t,e,n,r){const s=[];let i,a,o,l,u,d;for(i=0,a=t.length,u=0;i<a;++i){o=t[i],l=o.box,l.update(o.width||e.w,o.height||e.h,$w(o.horizontal,e));const{same:f,other:y}=Jw(e,n,o,r);u|=f&&s.length,d=d||y,l.fullSize||s.push(o)}return u&&Ts(s,e,n,r)||d}function Ni(t,e,n,r,s){t.top=n,t.left=e,t.right=e+r,t.bottom=n+s,t.width=r,t.height=s}function id(t,e,n,r){const s=n.padding;let{x:i,y:a}=e;for(const o of t){const l=o.box,u=r[o.stack]||{placed:0,weight:1},d=o.stackWeight/u.weight||1;if(o.horizontal){const f=e.w*d,y=u.size||l.height;pa(u.start)&&(a=u.start),l.fullSize?Ni(l,s.left,a,n.outerWidth-s.right-s.left,y):Ni(l,e.left+u.placed,a,f,y),u.start=a,u.placed+=f,a=l.bottom}else{const f=e.h*d,y=u.size||l.width;pa(u.start)&&(i=u.start),l.fullSize?Ni(l,i,s.top,y,n.outerHeight-s.bottom-s.top):Ni(l,i,e.top+u.placed,y,f),u.start=i,u.placed+=f,i=l.right}}e.x=i,e.y=a}var Lt={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const s=Ke(t.options.layout.padding),i=Math.max(e-s.width,0),a=Math.max(n-s.height,0),o=Xw(t.boxes),l=o.vertical,u=o.horizontal;je(t.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const d=l.reduce((m,g)=>g.box.options&&g.box.options.display===!1?m:m+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),y=Object.assign({},s);Ky(y,Ke(r));const h=Object.assign({maxPadding:y,w:i,h:a,x:s.left,y:s.top},s),p=Kw(l.concat(u),f);Ts(o.fullSize,h,f,p),Ts(l,h,f,p),Ts(u,h,f,p)&&Ts(l,h,f,p),Zw(h),id(o.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,id(o.rightAndBottom,h,f,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},je(o.chartArea,m=>{const g=m.box;Object.assign(g,t.chartArea),g.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Xy{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,s){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):r)}}isAttached(e){return!0}updateConfig(e){}}class eS extends Xy{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ea="$chartjs",tS={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ad=t=>t===null||t==="";function nS(t,e){const n=t.style,r=t.getAttribute("height"),s=t.getAttribute("width");if(t[ea]={initial:{height:r,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ad(s)){const i=Gc(t,"width");i!==void 0&&(t.width=i)}if(ad(r))if(t.style.height==="")t.height=t.width/(e||2);else{const i=Gc(t,"height");i!==void 0&&(t.height=i)}return t}const Jy=pw?{passive:!0}:!1;function rS(t,e,n){t&&t.addEventListener(e,n,Jy)}function sS(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Jy)}function iS(t,e){const n=tS[t.type]||t.type,{x:r,y:s}=Zn(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:s!==void 0?s:null}}function xa(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function aS(t,e,n){const r=t.canvas,s=new MutationObserver(i=>{let a=!1;for(const o of i)a=a||xa(o.addedNodes,r),a=a&&!xa(o.removedNodes,r);a&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function oS(t,e,n){const r=t.canvas,s=new MutationObserver(i=>{let a=!1;for(const o of i)a=a||xa(o.removedNodes,r),a=a&&!xa(o.addedNodes,r);a&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const ti=new Map;let od=0;function Zy(){const t=window.devicePixelRatio;t!==od&&(od=t,ti.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function lS(t,e){ti.size||window.addEventListener("resize",Zy),ti.set(t,e)}function uS(t){ti.delete(t),ti.size||window.removeEventListener("resize",Zy)}function cS(t,e,n){const r=t.canvas,s=r&&ou(r);if(!s)return;const i=My((o,l)=>{const u=s.clientWidth;n(o,l),u<s.clientWidth&&n()},window),a=new ResizeObserver(o=>{const l=o[0],u=l.contentRect.width,d=l.contentRect.height;u===0&&d===0||i(u,d)});return a.observe(s),lS(t,i),a}function bo(t,e,n){n&&n.disconnect(),e==="resize"&&uS(t)}function dS(t,e,n){const r=t.canvas,s=My(i=>{t.ctx!==null&&n(iS(i,t))},t);return rS(r,e,s),s}class fS extends Xy{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(nS(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[ea])return!1;const r=n[ea].initial;["height","width"].forEach(i=>{const a=r[i];Oe(a)?n.removeAttribute(i):n.setAttribute(i,a)});const s=r.style||{};return Object.keys(s).forEach(i=>{n.style[i]=s[i]}),n.width=n.width,delete n[ea],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),a={attach:aS,detach:oS,resize:cS}[n]||dS;s[n]=a(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),s=r[n];if(!s)return;({attach:bo,detach:bo,resize:bo}[n]||sS)(e,n,s),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,s){return yw(e,n,r,s)}isAttached(e){const n=e&&ou(e);return!!(n&&n.isConnected)}}function hS(t){return!au()||typeof OffscreenCanvas!="undefined"&&t instanceof OffscreenCanvas?eS:fS}class bn{constructor(){re(this,"x");re(this,"y");re(this,"active",!1);re(this,"options");re(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return ei(this.x)&&ei(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const s={};return e.forEach(i=>{s[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),s}}re(bn,"defaults",{}),re(bn,"defaultRoutes");function yS(t,e){const n=t.options.ticks,r=pS(t),s=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?gS(e):[],a=i.length,o=i[0],l=i[a-1],u=[];if(a>s)return vS(e,u,i,a/s),u;const d=mS(i,e,s);if(a>0){let f,y;const h=a>1?Math.round((l-o)/(a-1)):null;for(_i(e,u,d,Oe(h)?0:o-h,o),f=0,y=a-1;f<y;f++)_i(e,u,d,i[f],i[f+1]);return _i(e,u,d,l,Oe(h)?e.length:l+h),u}return _i(e,u,d),u}function pS(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(r,s))}function mS(t,e,n){const r=bS(t),s=e.length/n;if(!r)return Math.max(s,1);const i=u3(r);for(let a=0,o=i.length-1;a<o;a++){const l=i[a];if(l>s)return l}return Math.max(s,1)}function gS(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function vS(t,e,n,r){let s=0,i=n[0],a;for(r=Math.ceil(r),a=0;a<t.length;a++)a===i&&(e.push(t[a]),s++,i=n[s*r])}function _i(t,e,n,r,s){const i=pe(r,0),a=Math.min(pe(s,t.length),t.length);let o=0,l,u,d;for(n=Math.ceil(n),s&&(l=s-r,n=l/Math.floor(l/n)),d=i;d<0;)o++,d=Math.round(i+o*n);for(u=Math.max(i,0);u<a;u++)u===d&&(e.push(t[u]),o++,d=Math.round(i+o*n))}function bS(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const xS=t=>t==="left"?"right":t==="right"?"left":t,ld=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,ud=(t,e)=>Math.min(e||t,t);function cd(t,e){const n=[],r=t.length/e,s=t.length;let i=0;for(;i<s;i+=r)n.push(t[Math.floor(i)]);return n}function AS(t,e,n){const r=t.ticks.length,s=Math.min(e,r-1),i=t._startPixel,a=t._endPixel,o=1e-6;let l=t.getPixelForTick(s),u;if(!(n&&(r===1?u=Math.max(l-i,a-l):e===0?u=(t.getPixelForTick(1)-l)/2:u=(l-t.getPixelForTick(s-1))/2,l+=s<e?u:-u,l<i-o||l>a+o)))return l}function wS(t,e){je(t,n=>{const r=n.gc,s=r.length/2;let i;if(s>e){for(i=0;i<s;++i)delete n.data[r[i]];r.splice(0,s)}})}function ws(t){return t.drawTicks?t.tickLength:0}function dd(t,e){if(!t.display)return 0;const n=We(t.font,e),r=Ke(t.padding);return(Re(t.text)?t.text.length:1)*n.lineHeight+r.height}function SS(t,e){return zn(t,{scale:e,type:"scale"})}function CS(t,e,n){return zn(t,{tick:n,index:e,type:"tick"})}function jS(t,e,n){let r=eu(t);return(n&&e!=="right"||!n&&e==="right")&&(r=xS(r)),r}function OS(t,e,n,r){const{top:s,left:i,bottom:a,right:o,chart:l}=t,{chartArea:u,scales:d}=l;let f=0,y,h,p;const m=a-s,g=o-i;if(t.isHorizontal()){if(h=Ye(r,i,o),ve(n)){const v=Object.keys(n)[0],S=n[v];p=d[v].getPixelForValue(S)+m-e}else n==="center"?p=(u.bottom+u.top)/2+m-e:p=ld(t,n,e);y=o-i}else{if(ve(n)){const v=Object.keys(n)[0],S=n[v];h=d[v].getPixelForValue(S)-g+e}else n==="center"?h=(u.left+u.right)/2-g+e:h=ld(t,n,e);p=Ye(r,a,s),f=n==="left"?-St:St}return{titleX:h,titleY:p,maxWidth:y,rotation:f}}class is extends bn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:s}=this;return e=qt(e,Number.POSITIVE_INFINITY),n=qt(n,Number.NEGATIVE_INFINITY),r=qt(r,Number.POSITIVE_INFINITY),s=qt(s,Number.NEGATIVE_INFINITY),{min:qt(e,r),max:qt(n,s),minDefined:qe(e),maxDefined:qe(n)}}getMinMax(e){let{min:n,max:r,minDefined:s,maxDefined:i}=this.getUserBounds(),a;if(s&&i)return{min:n,max:r};const o=this.getMatchingVisibleMetas();for(let l=0,u=o.length;l<u;++l)a=o[l].controller.getMinMax(this,e),s||(n=Math.min(n,a.min)),i||(r=Math.max(r,a.max));return n=i&&n>r?r:n,r=s&&n>r?n:r,{min:qt(n,qt(r,n)),max:qt(r,qt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Me(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:s,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=z3(this,i,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?cd(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=yS(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Me(this.options.afterUpdate,[this])}beforeSetDimensions(){Me(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Me(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Me(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Me(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,s,i;for(r=0,s=e.length;r<s;r++)i=e[r],i.label=Me(n.callback,[i.value,r,e],this)}afterTickToLabelConversion(){Me(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Me(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=ud(this.ticks.length,e.ticks.maxTicksLimit),s=n.minRotation||0,i=n.maxRotation;let a=s,o,l,u;if(!this._isVisible()||!n.display||s>=i||r<=1||!this.isHorizontal()){this.labelRotation=s;return}const d=this._getLabelSizes(),f=d.widest.width,y=d.highest.height,h=Mt(this.chart.width-f,0,this.maxWidth);o=e.offset?this.maxWidth/r:h/(r-1),f+6>o&&(o=h/(r-(e.offset?.5:1)),l=this.maxHeight-ws(e.grid)-n.padding-dd(e.title,this.chart.options.font),u=Math.sqrt(f*f+y*y),a=Zl(Math.min(Math.asin(Mt((d.highest.height+6)/o,-1,1)),Math.asin(Mt(l/u,-1,1))-Math.asin(Mt(y/u,-1,1)))),a=Math.max(s,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){Me(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Me(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:s,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){const l=dd(s,n.options.font);if(o?(e.width=this.maxWidth,e.height=ws(i)+l):(e.height=this.maxHeight,e.width=ws(i)+l),r.display&&this.ticks.length){const{first:u,last:d,widest:f,highest:y}=this._getLabelSizes(),h=r.padding*2,p=Nn(this.labelRotation),m=Math.cos(p),g=Math.sin(p);if(o){const v=r.mirror?0:g*f.width+m*y.height;e.height=Math.min(this.maxHeight,e.height+v+h)}else{const v=r.mirror?0:m*f.width+g*y.height;e.width=Math.min(this.maxWidth,e.width+v+h)}this._calculatePadding(u,d,g,m)}}this._handleMargins(),o?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,s){const{ticks:{align:i,padding:a},position:o}=this.options,l=this.labelRotation!==0,u=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let y=0,h=0;l?u?(y=s*e.width,h=r*n.height):(y=r*e.height,h=s*n.width):i==="start"?h=n.width:i==="end"?y=e.width:i!=="inner"&&(y=e.width/2,h=n.width/2),this.paddingLeft=Math.max((y-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=e.height/2;i==="start"?(d=0,f=e.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Me(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)Oe(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=cd(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:s,_longestTextCache:i}=this,a=[],o=[],l=Math.floor(n/ud(n,r));let u=0,d=0,f,y,h,p,m,g,v,S,k,j,A;for(f=0;f<n;f+=l){if(p=e[f].label,m=this._resolveTickFontOptions(f),s.font=g=m.string,v=i[g]=i[g]||{data:{},gc:[]},S=m.lineHeight,k=j=0,!Oe(p)&&!Re(p))k=ga(s,v.data,v.gc,k,p),j=S;else if(Re(p))for(y=0,h=p.length;y<h;++y)A=p[y],!Oe(A)&&!Re(A)&&(k=ga(s,v.data,v.gc,k,A),j+=S);a.push(k),o.push(j),u=Math.max(k,u),d=Math.max(j,d)}wS(i,n);const C=a.indexOf(u),b=o.indexOf(d),x=M=>({width:a[M]||0,height:o[M]||0});return{first:x(0),last:x(n-1),widest:x(C),highest:x(b),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return p3(this._alignToPixels?Kn(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=CS(this.getContext(),e,r))}return this.$context||(this.$context=SS(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Nn(this.labelRotation),r=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,l=i?i.highest.height+a:0;return this.isHorizontal()?l*r>o*s?o/r:l/s:l*s<o*r?l/r:o/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,s=this.options,{grid:i,position:a,border:o}=s,l=i.offset,u=this.isHorizontal(),f=this.ticks.length+(l?1:0),y=ws(i),h=[],p=o.setContext(this.getContext()),m=p.display?p.width:0,g=m/2,v=function(I){return Kn(r,I,m)};let S,k,j,A,C,b,x,M,_,L,T,H;if(a==="top")S=v(this.bottom),b=this.bottom-y,M=S-g,L=v(e.top)+g,H=e.bottom;else if(a==="bottom")S=v(this.top),L=e.top,H=v(e.bottom)-g,b=S+g,M=this.top+y;else if(a==="left")S=v(this.right),C=this.right-y,x=S-g,_=v(e.left)+g,T=e.right;else if(a==="right")S=v(this.left),_=e.left,T=v(e.right)-g,C=S+g,x=this.left+y;else if(n==="x"){if(a==="center")S=v((e.top+e.bottom)/2+.5);else if(ve(a)){const I=Object.keys(a)[0],N=a[I];S=v(this.chart.scales[I].getPixelForValue(N))}L=e.top,H=e.bottom,b=S+g,M=b+y}else if(n==="y"){if(a==="center")S=v((e.left+e.right)/2);else if(ve(a)){const I=Object.keys(a)[0],N=a[I];S=v(this.chart.scales[I].getPixelForValue(N))}C=S-g,x=C-y,_=e.left,T=e.right}const R=pe(s.ticks.maxTicksLimit,f),O=Math.max(1,Math.ceil(f/R));for(k=0;k<f;k+=O){const I=this.getContext(k),N=i.setContext(I),G=o.setContext(I),z=N.lineWidth,F=N.color,q=G.dash||[],U=G.dashOffset,W=N.tickWidth,Q=N.tickColor,K=N.tickBorderDash||[],J=N.tickBorderDashOffset;j=AS(this,k,l),j!==void 0&&(A=Kn(r,j,z),u?C=x=_=T=A:b=M=L=H=A,h.push({tx1:C,ty1:b,tx2:x,ty2:M,x1:_,y1:L,x2:T,y2:H,width:z,color:F,borderDash:q,borderDashOffset:U,tickWidth:W,tickColor:Q,tickBorderDash:K,tickBorderDashOffset:J}))}return this._ticksLength=f,this._borderValue=S,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:s,ticks:i}=r,a=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:u,padding:d,mirror:f}=i,y=ws(r.grid),h=y+d,p=f?-d:h,m=-Nn(this.labelRotation),g=[];let v,S,k,j,A,C,b,x,M,_,L,T,H="middle";if(s==="top")C=this.bottom-p,b=this._getXAxisLabelAlignment();else if(s==="bottom")C=this.top+p,b=this._getXAxisLabelAlignment();else if(s==="left"){const O=this._getYAxisLabelAlignment(y);b=O.textAlign,A=O.x}else if(s==="right"){const O=this._getYAxisLabelAlignment(y);b=O.textAlign,A=O.x}else if(n==="x"){if(s==="center")C=(e.top+e.bottom)/2+h;else if(ve(s)){const O=Object.keys(s)[0],I=s[O];C=this.chart.scales[O].getPixelForValue(I)+h}b=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")A=(e.left+e.right)/2-h;else if(ve(s)){const O=Object.keys(s)[0],I=s[O];A=this.chart.scales[O].getPixelForValue(I)}b=this._getYAxisLabelAlignment(y).textAlign}n==="y"&&(l==="start"?H="top":l==="end"&&(H="bottom"));const R=this._getLabelSizes();for(v=0,S=o.length;v<S;++v){k=o[v],j=k.label;const O=i.setContext(this.getContext(v));x=this.getPixelForTick(v)+i.labelOffset,M=this._resolveTickFontOptions(v),_=M.lineHeight,L=Re(j)?j.length:1;const I=L/2,N=O.color,G=O.textStrokeColor,z=O.textStrokeWidth;let F=b;a?(A=x,b==="inner"&&(v===S-1?F=this.options.reverse?"left":"right":v===0?F=this.options.reverse?"right":"left":F="center"),s==="top"?u==="near"||m!==0?T=-L*_+_/2:u==="center"?T=-R.highest.height/2-I*_+_:T=-R.highest.height+_/2:u==="near"||m!==0?T=_/2:u==="center"?T=R.highest.height/2-I*_:T=R.highest.height-L*_,f&&(T*=-1),m!==0&&!O.showLabelBackdrop&&(A+=_/2*Math.sin(m))):(C=x,T=(1-L)*_/2);let q;if(O.showLabelBackdrop){const U=Ke(O.backdropPadding),W=R.heights[v],Q=R.widths[v];let K=T-U.top,J=0-U.left;switch(H){case"middle":K-=W/2;break;case"bottom":K-=W;break}switch(b){case"center":J-=Q/2;break;case"right":J-=Q;break;case"inner":v===S-1?J-=Q:v>0&&(J-=Q/2);break}q={left:J,top:K,width:Q+U.width,height:W+U.height,color:O.backdropColor}}g.push({label:j,font:M,textOffset:T,options:{rotation:m,color:N,strokeColor:G,strokeWidth:z,textAlign:F,textBaseline:H,translation:[A,C],backdrop:q}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Nn(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:s,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,l=a.widest.width;let u,d;return n==="left"?s?(d=this.right+i,r==="near"?u="left":r==="center"?(u="center",d+=l/2):(u="right",d+=l)):(d=this.right-o,r==="near"?u="right":r==="center"?(u="center",d-=l/2):(u="left",d=this.left)):n==="right"?s?(d=this.left+i,r==="near"?u="right":r==="center"?(u="center",d-=l/2):(u="left",d-=l)):(d=this.left+o,r==="near"?u="left":r==="center"?(u="center",d+=l/2):(u="right",d=this.right)):u="right",{textAlign:u,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:s,width:i,height:a}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,s,i,a),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(i=>i.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,a;const o=(l,u,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=s.length;i<a;++i){const l=s[i];n.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:s}}=this,i=r.setContext(this.getContext()),a=r.display?i.width:0;if(!a)return;const o=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,d,f,y;this.isHorizontal()?(u=Kn(e,this.left,a)-a/2,d=Kn(e,this.right,o)+o/2,f=y=l):(f=Kn(e,this.top,a)-a/2,y=Kn(e,this.bottom,o)+o/2,u=d=l),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(u,f),n.lineTo(d,y),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,s=this._computeLabelArea();s&&Ua(r,s);const i=this.getLabelItems(e);for(const a of i){const o=a.options,l=a.font,u=a.label,d=a.textOffset;Ar(r,u,0,d,l,o)}s&&Ha(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:s}}=this;if(!r.display)return;const i=We(r.font),a=Ke(r.padding),o=r.align;let l=i.lineHeight/2;n==="bottom"||n==="center"||ve(n)?(l+=a.bottom,Re(r.text)&&(l+=i.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:u,titleY:d,maxWidth:f,rotation:y}=OS(this,l,n,o);Ar(e,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:y,textAlign:jS(o,n,s),textBaseline:"middle",translation:[u,d]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=pe(e.grid&&e.grid.z,-1),s=pe(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==is.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",s=[];let i,a;for(i=0,a=n.length;i<a;++i){const o=n[i];o[r]===this.id&&(!e||o.type===e)&&s.push(o)}return s}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return We(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Di{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;TS(n)&&(r=this.register(n));const s=this.items,i=e.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in s||(s[i]=e,ES(e,a,r),this.override&&Be.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,s=this.scope;r in n&&delete n[r],s&&r in Be[s]&&(delete Be[s][r],this.override&&delete xr[r])}}function ES(t,e,n){const r=Zs(Object.create(null),[n?Be.get(n):{},Be.get(e),t.defaults]);Be.set(e,r),t.defaultRoutes&&kS(e,t.defaultRoutes),t.descriptors&&Be.describe(e,t.descriptors)}function kS(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),s=r.pop(),i=[t].concat(r).join("."),a=e[n].split("."),o=a.pop(),l=a.join(".");Be.route(i,s,l,o)})}function TS(t){return"id"in t&&"defaults"in t}class PS{constructor(){this.controllers=new Di(Rr,"datasets",!0),this.elements=new Di(bn,"elements"),this.plugins=new Di(Object,"plugins"),this.scales=new Di(is,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(s=>{const i=r||this._getRegistryForType(s);r||i.isForType(s)||i===this.plugins&&s.id?this._exec(e,i,s):je(s,a=>{const o=r||this._getRegistryForType(a);this._exec(e,o,a)})})}_exec(e,n,r){const s=Jl(e);Me(r["before"+s],[],r),n[e](r),Me(r["after"+s],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const s=n.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return s}}var Yt=new PS;class MS{constructor(){this._init=void 0}notify(e,n,r,s){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const i=s?this._descriptors(e).filter(s):this._descriptors(e),a=this._notify(i,e,n,r);return n==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),a}_notify(e,n,r,s){s=s||{};for(const i of e){const a=i.plugin,o=a[r],l=[n,s,i.options];if(Me(o,l,a)===!1&&s.cancelable)return!1}return!0}invalidate(){Oe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,s=pe(r.options&&r.options.plugins,{}),i=LS(r);return s===!1&&!n?[]:RS(e,i,s,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,s=(i,a)=>i.filter(o=>!a.some(l=>o.plugin.id===l.plugin.id));this._notify(s(n,r),e,"stop"),this._notify(s(r,n),e,"start")}}function LS(t){const e={},n=[],r=Object.keys(Yt.plugins.items);for(let i=0;i<r.length;i++)n.push(Yt.getPlugin(r[i]));const s=t.plugins||[];for(let i=0;i<s.length;i++){const a=s[i];n.indexOf(a)===-1&&(n.push(a),e[a.id]=!0)}return{plugins:n,localIds:e}}function IS(t,e){return!e&&t===!1?null:t===!0?{}:t}function RS(t,{plugins:e,localIds:n},r,s){const i=[],a=t.getContext();for(const o of e){const l=o.id,u=IS(r[l],s);u!==null&&i.push({plugin:o,options:NS(t.config,{plugin:o,local:n[l]},u,a)})}return i}function NS(t,{plugin:e,local:n},r,s){const i=t.pluginScopeKeys(e),a=t.getOptionScopes(r,i);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function dl(t,e){const n=Be.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function _S(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function DS(t,e){return t===e?"_index_":"_value_"}function fd(t){if(t==="x"||t==="y"||t==="r")return t}function BS(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function fl(t,...e){if(fd(t))return t;for(const n of e){const r=n.axis||BS(n.position)||t.length>1&&fd(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function hd(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function FS(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return hd(t,"x",n[0])||hd(t,"y",n[0])}return{}}function US(t,e){const n=xr[t.type]||{scales:{}},r=e.scales||{},s=dl(t.type,e),i=Object.create(null);return Object.keys(r).forEach(a=>{const o=r[a];if(!ve(o))return console.error(`Invalid scale configuration for scale: ${a}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=fl(a,o,FS(a,t),Be.scales[o.type]),u=DS(l,s),d=n.scales||{};i[a]=Ns(Object.create(null),[{axis:l},o,d[l],d[u]])}),t.data.datasets.forEach(a=>{const o=a.type||t.type,l=a.indexAxis||dl(o,e),d=(xr[o]||{}).scales||{};Object.keys(d).forEach(f=>{const y=_S(f,l),h=a[y+"AxisID"]||y;i[h]=i[h]||Object.create(null),Ns(i[h],[{axis:y},r[h],d[f]])})}),Object.keys(i).forEach(a=>{const o=i[a];Ns(o,[Be.scales[o.type],Be.scale])}),i}function $y(t){const e=t.options||(t.options={});e.plugins=pe(e.plugins,{}),e.scales=US(t,e)}function e0(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function HS(t){return t=t||{},t.data=e0(t.data),$y(t),t}const yd=new Map,t0=new Set;function Bi(t,e){let n=yd.get(t);return n||(n=e(),yd.set(t,n),t0.add(n)),n}const Ss=(t,e,n)=>{const r=$s(e,n);r!==void 0&&t.add(r)};class WS{constructor(e){this._config=HS(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=e0(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),$y(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Bi(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Bi(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Bi(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Bi(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let s=r.get(e);return(!s||n)&&(s=new Map,r.set(e,s)),s}getOptionScopes(e,n,r){const{options:s,type:i}=this,a=this._cachedScopes(e,r),o=a.get(n);if(o)return o;const l=new Set;n.forEach(d=>{e&&(l.add(e),d.forEach(f=>Ss(l,e,f))),d.forEach(f=>Ss(l,s,f)),d.forEach(f=>Ss(l,xr[i]||{},f)),d.forEach(f=>Ss(l,Be,f)),d.forEach(f=>Ss(l,ul,f))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),t0.has(n)&&a.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,xr[n]||{},Be.datasets[n]||{},{type:n},Be,ul]}resolveNamedOptions(e,n,r,s=[""]){const i={$shared:!0},{resolver:a,subPrefixes:o}=pd(this._resolverCache,e,s);let l=a;if(qS(a,n)){i.$shared=!1,r=Hn(r)?r():r;const u=this.createResolver(e,r,o);l=Xr(a,r,u)}for(const u of n)i[u]=l[u];return i}createResolver(e,n,r=[""],s){const{resolver:i}=pd(this._resolverCache,e,r);return ve(n)?Xr(i,n,void 0,s):i}}function pd(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const s=n.join();let i=r.get(s);return i||(i={resolver:ru(e,n),subPrefixes:n.filter(o=>!o.toLowerCase().includes("hover"))},r.set(s,i)),i}const QS=t=>ve(t)&&Object.getOwnPropertyNames(t).some(e=>Hn(t[e]));function qS(t,e){const{isScriptable:n,isIndexable:r}=Ny(t);for(const s of e){const i=n(s),a=r(s),o=(a||i)&&t[s];if(i&&(Hn(o)||QS(o))||a&&Re(o))return!0}return!1}var zS="4.5.1";const GS=["top","bottom","left","right","chartArea"];function md(t,e){return t==="top"||t==="bottom"||GS.indexOf(t)===-1&&e==="x"}function gd(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function vd(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Me(n&&n.onComplete,[t],e)}function YS(t){const e=t.chart,n=e.options.animation;Me(n&&n.onProgress,[t],e)}function n0(t){return au()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ta={},bd=t=>{const e=n0(t);return Object.values(ta).filter(n=>n.canvas===e).pop()};function VS(t,e,n){const r=Object.keys(t);for(const s of r){const i=+s;if(i>=e){const a=t[s];delete t[s],(n>0||i>e)&&(t[i+n]=a)}}}function KS(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}var Sn;let qa=(Sn=class{static register(...e){Yt.add(...e),xd()}static unregister(...e){Yt.remove(...e),xd()}constructor(e,n){const r=this.config=new WS(n),s=n0(e),i=bd(s);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||hS(s)),this.platform.updateConfig(r);const o=this.platform.acquireContext(s,a.aspectRatio),l=o&&o.canvas,u=l&&l.height,d=l&&l.width;if(this.id=e3(),this.ctx=o,this.canvas=l,this.width=d,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new MS,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=x3(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],ta[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}on.listen(this,"complete",vd),on.listen(this,"progress",YS),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:s,_aspectRatio:i}=this;return Oe(e)?n&&i?i:s?r/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Yt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():zc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Wc(this.canvas,this.ctx),this}stop(){return on.stop(this),this}resize(e,n){on.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,s=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(s,e,n,i),o=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,zc(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),Me(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};je(n,(r,s)=>{r.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,s=Object.keys(r).reduce((a,o)=>(a[o]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const o=n[a],l=fl(a,o),u=l==="r",d=l==="x";return{options:o,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),je(i,a=>{const o=a.options,l=o.id,u=fl(l,o),d=pe(o.type,a.dtype);(o.position===void 0||md(o.position,u)!==md(a.dposition))&&(o.position=a.dposition),s[l]=!0;let f=null;if(l in r&&r[l].type===d)f=r[l];else{const y=Yt.getScale(d);f=new y({id:l,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(o,e)}),je(s,(a,o)=>{a||delete r[o]}),je(r,a=>{Lt.configure(this,a,a.options),Lt.addBox(this,a)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((s,i)=>s.index-i.index),r>n){for(let s=n;s<r;++s)this._destroyDatasetMeta(s);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(gd("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,s)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,s;for(this._removeUnreferencedMetasets(),r=0,s=n.length;r<s;r++){const i=n[r];let a=this.getDatasetMeta(r);const o=i.type||this.config.type;if(a.type&&a.type!==o&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=o,a.indexAxis=i.indexAxis||dl(o,this.options),a.order=i.order||0,a.index=r,a.label=""+i.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=Yt.getController(o),{datasetElementType:u,dataElementType:d}=Be.datasets[o];Object.assign(l,{dataElementType:Yt.getElement(d),datasetElementType:u&&Yt.getElement(u)}),a.controller=new l(this,r),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){je(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,d=this.data.datasets.length;u<d;u++){const{controller:f}=this.getDatasetMeta(u),y=!s&&i.indexOf(f)===-1;f.buildOrUpdateElements(y),a=Math.max(+f.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),s||je(i,u=>{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(gd("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){je(this.scales,e=>{Lt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!Ic(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:s,count:i}of n){const a=r==="_removeElements"?-i:i;VS(e,s,a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(e.filter(a=>a[0]===i).map((a,o)=>o+","+a.splice(1).join(","))),s=r(0);for(let i=1;i<n;i++)if(!Ic(s,r(i)))return;return Array.from(s).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Lt.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],je(this.boxes,s=>{r&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,i)=>{s._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Hn(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),s={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(r.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(on.has(this)?this.attached&&!on.running(this)&&on.start(this):(this.draw(),vd({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let s,i;for(s=0,i=n.length;s<i;++s){const a=n[s];(!e||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},s=zy(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&Ua(n,s),e.controller.draw(),s&&Ha(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return pn(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,s){const i=Gw.modes[n];return typeof i=="function"?i(this,e,r,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let s=r.filter(i=>i&&i._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(s)),s}getContext(){return this.$context||(this.$context=zn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const s=r?"show":"hide",i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,s);pa(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),a.update(i,{visible:r}),this.update(o=>o.datasetIndex===e?s:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),on.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Wc(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ta[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(i,a)=>{n.addEventListener(this,i,a),e[i]=a},s=(i,a,o)=>{i.offsetX=a,i.offsetY=o,this._eventHandler(i)};je(this.options.events,i=>r(i,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),e[l]=u},s=(l,u)=>{e[l]&&(n.removeEventListener(this,l,u),delete e[l])},i=(l,u)=>{this.canvas&&this.resize(l,u)};let a;const o=()=>{s("attach",o),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,s("resize",i),this._stop(),this._resize(0,0),r("attach",o)},n.isAttached(this.canvas)?o():a()}unbindEvents(){je(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},je(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const s=r?"set":"remove";let i,a,o,l;for(n==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+s+"DatasetHoverStyle"]()),o=0,l=e.length;o<l;++o){a=e[o];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[s+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:i,index:a})=>{const o=this.getDatasetMeta(i);if(!o)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:o.data[a],index:a}});!ha(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const s=this.options.hover,i=(l,u)=>l.filter(d=>!u.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,e),o=r?e:i(e,n);a.length&&this.updateHoverStyle(a,s.mode,!1),o.length&&s.mode&&this.updateHoverStyle(o,s.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,s)===!1)return;const i=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,s),(i||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:s=[],options:i}=this,a=n,o=this._getActiveElements(e,s,r,a),l=a3(e),u=KS(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Me(i.onHover,[e,o,this],this),l&&Me(i.onClick,[e,o,this],this));const d=!ha(o,s);return(d||n)&&(this._active=o,this._updateHoverStyles(o,s,n)),this._lastEvent=u,d}_getActiveElements(e,n,r,s){if(e.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,s)}},re(Sn,"defaults",Be),re(Sn,"instances",ta),re(Sn,"overrides",xr),re(Sn,"registry",Yt),re(Sn,"version",zS),re(Sn,"getChart",bd),Sn);function xd(){return je(qa.instances,t=>t._plugins.invalidate())}function r0(t,e,n=e){t.lineCap=pe(n.borderCapStyle,e.borderCapStyle),t.setLineDash(pe(n.borderDash,e.borderDash)),t.lineDashOffset=pe(n.borderDashOffset,e.borderDashOffset),t.lineJoin=pe(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=pe(n.borderWidth,e.borderWidth),t.strokeStyle=pe(n.borderColor,e.borderColor)}function XS(t,e,n){t.lineTo(n.x,n.y)}function JS(t){return t.stepped?N3:t.tension||t.cubicInterpolationMode==="monotone"?_3:XS}function s0(t,e,n={}){const r=t.length,{start:s=0,end:i=r-1}=n,{start:a,end:o}=e,l=Math.max(s,a),u=Math.min(i,o),d=s<a&&i<a||s>o&&i>o;return{count:r,start:l,loop:e.loop,ilen:u<l&&!d?r+u-l:u-l}}function ZS(t,e,n,r){const{points:s,options:i}=e,{count:a,start:o,loop:l,ilen:u}=s0(s,n,r),d=JS(i);let{move:f=!0,reverse:y}=r||{},h,p,m;for(h=0;h<=u;++h)p=s[(o+(y?u-h:h))%a],!p.skip&&(f?(t.moveTo(p.x,p.y),f=!1):d(t,m,p,y,i.stepped),m=p);return l&&(p=s[(o+(y?u:0))%a],d(t,m,p,y,i.stepped)),!!l}function $S(t,e,n,r){const s=e.points,{count:i,start:a,ilen:o}=s0(s,n,r),{move:l=!0,reverse:u}=r||{};let d=0,f=0,y,h,p,m,g,v;const S=j=>(a+(u?o-j:j))%i,k=()=>{m!==g&&(t.lineTo(d,g),t.lineTo(d,m),t.lineTo(d,v))};for(l&&(h=s[S(0)],t.moveTo(h.x,h.y)),y=0;y<=o;++y){if(h=s[S(y)],h.skip)continue;const j=h.x,A=h.y,C=j|0;C===p?(A<m?m=A:A>g&&(g=A),d=(f*d+j)/++f):(k(),t.lineTo(j,A),p=C,f=0,m=g=A),v=A}k()}function hl(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?$S:ZS}function eC(t){return t.stepped?mw:t.tension||t.cubicInterpolationMode==="monotone"?gw:$n}function tC(t,e,n,r){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,r)&&s.closePath()),r0(t,e.options),t.stroke(s)}function nC(t,e,n,r){const{segments:s,options:i}=e,a=hl(e);for(const o of s)r0(t,i,o.style),t.beginPath(),a(t,e,o,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}const rC=typeof Path2D=="function";function sC(t,e,n,r){rC&&!e.options.segment?tC(t,e,n,r):nC(t,e,n,r)}class Dn extends bn{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const s=r.spanGaps?this._loop:this._fullLoop;lw(this._points,r,e,s,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Sw(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,r=e.length;return r&&n[e[r-1].end]}interpolate(e,n){const r=this.options,s=e[n],i=this.points,a=qy(this,{property:n,start:s,end:s});if(!a.length)return;const o=[],l=eC(r);let u,d;for(u=0,d=a.length;u<d;++u){const{start:f,end:y}=a[u],h=i[f],p=i[y];if(h===p){o.push(h);continue}const m=Math.abs((s-h[n])/(p[n]-h[n])),g=l(h,p,m,r.stepped);g[n]=e[n],o.push(g)}return o.length===1?o[0]:o}pathSegment(e,n,r){return hl(this)(e,this,n,r)}path(e,n,r){const s=this.segments,i=hl(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const o of s)a&=i(e,this,o,{start:n,end:n+r-1});return!!a}draw(e,n,r,s){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),sC(e,this,r,s),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}re(Dn,"id","line"),re(Dn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),re(Dn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),re(Dn,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Ad(t,e,n,r){const s=t.options,{[n]:i}=t.getProps([n],r);return Math.abs(e-i)<s.radius+s.hitRadius}class na extends bn{constructor(n){super();re(this,"parsed");re(this,"skip");re(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,s){const i=this.options,{x:a,y:o}=this.getProps(["x","y"],s);return Math.pow(n-a,2)+Math.pow(r-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,r){return Ad(this,n,"x",r)}inYRange(n,r){return Ad(this,n,"y",r)}getCenterPoint(n){const{x:r,y:s}=this.getProps(["x","y"],n);return{x:r,y:s}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const s=r&&n.borderWidth||0;return(r+s)*2}draw(n,r){const s=this.options;this.skip||s.radius<.1||!pn(this,r,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,cl(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}re(na,"id","point"),re(na,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),re(na,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function iC(t,e,n){const r=t.segments,s=t.points,i=e.points,a=[];for(const o of r){let{start:l,end:u}=o;u=za(l,u,s);const d=yl(n,s[l],s[u],o.loop);if(!e.segments){a.push({source:o,target:d,start:s[l],end:s[u]});continue}const f=qy(e,d);for(const y of f){const h=yl(n,i[y.start],i[y.end],y.loop),p=Qy(o,s,h);for(const m of p)a.push({source:m,target:y,start:{[n]:wd(d,h,"start",Math.max)},end:{[n]:wd(d,h,"end",Math.min)}})}}return a}function yl(t,e,n,r){if(r)return;let s=e[t],i=n[t];return t==="angle"&&(s=wt(s),i=wt(i)),{property:t,start:s,end:i}}function aC(t,e){const{x:n=null,y:r=null}=t||{},s=e.points,i=[];return e.segments.forEach(({start:a,end:o})=>{o=za(a,o,s);const l=s[a],u=s[o];r!==null?(i.push({x:l.x,y:r}),i.push({x:u.x,y:r})):n!==null&&(i.push({x:n,y:l.y}),i.push({x:n,y:u.y}))}),i}function za(t,e,n){for(;e>t;e--){const r=n[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function wd(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function i0(t,e){let n=[],r=!1;return Re(t)?(r=!0,n=t):n=aC(t,e),n.length?new Dn({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Sd(t){return t&&t.fill!==!1}function oC(t,e,n){let s=t[e].fill;const i=[e];let a;if(!n)return s;for(;s!==!1&&i.indexOf(s)===-1;){if(!qe(s))return s;if(a=t[s],!a)return!1;if(a.visible)return s;i.push(s),s=a.fill}return!1}function lC(t,e,n){const r=fC(t);if(ve(r))return isNaN(r.value)?!1:r;let s=parseFloat(r);return qe(s)&&Math.floor(s)===s?uC(r[0],e,s,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function uC(t,e,n,r){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=r?!1:n}function cC(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:ve(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function dC(t,e,n){let r;return t==="start"?r=n:t==="end"?r=e.options.reverse?e.min:e.max:ve(t)?r=t.value:r=e.getBaseValue(),r}function fC(t){const e=t.options,n=e.fill;let r=pe(n&&n.target,n);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function hC(t){const{scale:e,index:n,line:r}=t,s=[],i=r.segments,a=r.points,o=yC(e,n);o.push(i0({x:null,y:e.bottom},r));for(let l=0;l<i.length;l++){const u=i[l];for(let d=u.start;d<=u.end;d++)pC(s,a[d],o)}return new Dn({points:s,options:{}})}function yC(t,e){const n=[],r=t.getMatchingVisibleMetas("line");for(let s=0;s<r.length;s++){const i=r[s];if(i.index===e)break;i.hidden||n.unshift(i.dataset)}return n}function pC(t,e,n){const r=[];for(let s=0;s<n.length;s++){const i=n[s],{first:a,last:o,point:l}=mC(i,e,"x");if(!(!l||a&&o)){if(a)r.unshift(l);else if(t.push(l),!o)break}}t.push(...r)}function mC(t,e,n){const r=t.interpolate(e,n);if(!r)return{};const s=r[n],i=t.segments,a=t.points;let o=!1,l=!1;for(let u=0;u<i.length;u++){const d=i[u],f=a[d.start][n],y=a[d.end][n];if(Tr(s,f,y)){o=s===f,l=s===y;break}}return{first:o,last:l,point:r}}class a0{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,r){const{x:s,y:i,radius:a}=this;return n=n||{start:0,end:Ct},e.arc(s,i,a,n.end,n.start,!0),!r.bounds}interpolate(e){const{x:n,y:r,radius:s}=this,i=e.angle;return{x:n+Math.cos(i)*s,y:r+Math.sin(i)*s,angle:i}}}function gC(t){const{chart:e,fill:n,line:r}=t;if(qe(n))return vC(e,n);if(n==="stack")return hC(t);if(n==="shape")return!0;const s=bC(t);return s instanceof a0?s:i0(s,r)}function vC(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function bC(t){return(t.scale||{}).getPointPositionForValue?AC(t):xC(t)}function xC(t){const{scale:e={},fill:n}=t,r=cC(n,e);if(qe(r)){const s=e.isHorizontal();return{x:s?r:null,y:s?null:r}}return null}function AC(t){const{scale:e,fill:n}=t,r=e.options,s=e.getLabels().length,i=r.reverse?e.max:e.min,a=dC(n,e,i),o=[];if(r.grid.circular){const l=e.getPointPositionForValue(0,i);return new a0({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(a)})}for(let l=0;l<s;++l)o.push(e.getPointPositionForValue(l,a));return o}function xo(t,e,n){const r=gC(e),{chart:s,index:i,line:a,scale:o,axis:l}=e,u=a.options,d=u.fill,f=u.backgroundColor,{above:y=f,below:h=f}=d||{},p=s.getDatasetMeta(i),m=zy(s,p);r&&a.points.length&&(Ua(t,n),wC(t,{line:a,target:r,above:y,below:h,area:n,scale:o,axis:l,clip:m}),Ha(t))}function wC(t,e){const{line:n,target:r,above:s,below:i,area:a,scale:o,clip:l}=e,u=n._loop?"angle":e.axis;t.save();let d=i;i!==s&&(u==="x"?(Cd(t,r,a.top),Ao(t,{line:n,target:r,color:s,scale:o,property:u,clip:l}),t.restore(),t.save(),Cd(t,r,a.bottom)):u==="y"&&(jd(t,r,a.left),Ao(t,{line:n,target:r,color:i,scale:o,property:u,clip:l}),t.restore(),t.save(),jd(t,r,a.right),d=s)),Ao(t,{line:n,target:r,color:d,scale:o,property:u,clip:l}),t.restore()}function Cd(t,e,n){const{segments:r,points:s}=e;let i=!0,a=!1;t.beginPath();for(const o of r){const{start:l,end:u}=o,d=s[l],f=s[za(l,u,s)];i?(t.moveTo(d.x,d.y),i=!1):(t.lineTo(d.x,n),t.lineTo(d.x,d.y)),a=!!e.pathSegment(t,o,{move:a}),a?t.closePath():t.lineTo(f.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function jd(t,e,n){const{segments:r,points:s}=e;let i=!0,a=!1;t.beginPath();for(const o of r){const{start:l,end:u}=o,d=s[l],f=s[za(l,u,s)];i?(t.moveTo(d.x,d.y),i=!1):(t.lineTo(n,d.y),t.lineTo(d.x,d.y)),a=!!e.pathSegment(t,o,{move:a}),a?t.closePath():t.lineTo(n,f.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function Ao(t,e){const{line:n,target:r,property:s,color:i,scale:a,clip:o}=e,l=iC(n,r,s);for(const{source:u,target:d,start:f,end:y}of l){const{style:{backgroundColor:h=i}={}}=u,p=r!==!0;t.save(),t.fillStyle=h,SC(t,a,o,p&&yl(s,f,y)),t.beginPath();const m=!!n.pathSegment(t,u);let g;if(p){m?t.closePath():Od(t,r,y,s);const v=!!r.pathSegment(t,d,{move:m,reverse:!0});g=m&&v,g||Od(t,r,f,s)}t.closePath(),t.fill(g?"evenodd":"nonzero"),t.restore()}}function SC(t,e,n,r){const s=e.chart.chartArea,{property:i,start:a,end:o}=r||{};if(i==="x"||i==="y"){let l,u,d,f;i==="x"?(l=a,u=s.top,d=o,f=s.bottom):(l=s.left,u=a,d=s.right,f=o),t.beginPath(),n&&(l=Math.max(l,n.left),d=Math.min(d,n.right),u=Math.max(u,n.top),f=Math.min(f,n.bottom)),t.rect(l,u,d-l,f-u),t.clip()}}function Od(t,e,n,r){const s=e.interpolate(n,r);s&&t.lineTo(s.x,s.y)}var CC={id:"filler",afterDatasetsUpdate(t,e,n){const r=(t.data.datasets||[]).length,s=[];let i,a,o,l;for(a=0;a<r;++a)i=t.getDatasetMeta(a),o=i.dataset,l=null,o&&o.options&&o instanceof Dn&&(l={visible:t.isDatasetVisible(a),index:a,fill:lC(o,a,r),chart:t,axis:i.controller.options.indexAxis,scale:i.vScale,line:o}),i.$filler=l,s.push(l);for(a=0;a<r;++a)l=s[a],!(!l||l.fill===!1)&&(l.fill=oC(s,a,n.propagate))},beforeDraw(t,e,n){const r=n.drawTime==="beforeDraw",s=t.getSortedVisibleDatasetMetas(),i=t.chartArea;for(let a=s.length-1;a>=0;--a){const o=s[a].$filler;o&&(o.line.updateControlPoints(i,o.axis),r&&o.fill&&xo(t.ctx,o,i))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=t.getSortedVisibleDatasetMetas();for(let s=r.length-1;s>=0;--s){const i=r[s].$filler;Sd(i)&&xo(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;!Sd(r)||n.drawTime!=="beforeDatasetDraw"||xo(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ed=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},jC=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class kd extends bn{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Me(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,s)=>e.sort(r,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,s=We(r.font),i=s.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=Ed(r,i);let u,d;n.font=s.string,this.isHorizontal()?(u=this.maxWidth,d=this._fitRows(a,i,o,l)+10):(d=this.maxHeight,u=this._fitCols(a,s,o,l)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,s){const{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],d=s+o;let f=e;i.textAlign="left",i.textBaseline="middle";let y=-1,h=-d;return this.legendItems.forEach((p,m)=>{const g=r+n/2+i.measureText(p.text).width;(m===0||u[u.length-1]+g+2*o>a)&&(f+=d,u[u.length-(m>0?0:1)]=0,h+=d,y++),l[m]={left:0,top:h,row:y,width:g,height:s},u[u.length-1]+=g+o}),f}_fitCols(e,n,r,s){const{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],d=a-e;let f=o,y=0,h=0,p=0,m=0;return this.legendItems.forEach((g,v)=>{const{itemWidth:S,itemHeight:k}=OC(r,n,i,g,s);v>0&&h+k+2*o>d&&(f+=y+o,u.push({width:y,height:h}),p+=y+o,m++,y=h=0),l[v]={left:p,top:h,col:m,width:S,height:k},y=Math.max(y,S),h+=k+o}),f+=y,u.push({width:y,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:s},rtl:i}}=this,a=Ir(i,this.left,this.width);if(this.isHorizontal()){let o=0,l=Ye(r,this.left+s,this.right-this.lineWidths[o]);for(const u of n)o!==u.row&&(o=u.row,l=Ye(r,this.left+s,this.right-this.lineWidths[o])),u.top+=this.top+e+s,u.left=a.leftForLtr(a.x(l),u.width),l+=u.width+s}else{let o=0,l=Ye(r,this.top+e+s,this.bottom-this.columnSizes[o].height);for(const u of n)u.col!==o&&(o=u.col,l=Ye(r,this.top+e+s,this.bottom-this.columnSizes[o].height)),u.top=l,u.left+=this.left+s,u.left=a.leftForLtr(a.x(u.left),u.width),l+=u.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Ua(e,this),this._draw(),Ha(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:s}=this,{align:i,labels:a}=e,o=Be.color,l=Ir(e.rtl,this.left,this.width),u=We(a.font),{padding:d}=a,f=u.size,y=f/2;let h;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=u.string;const{boxWidth:p,boxHeight:m,itemHeight:g}=Ed(a,f),v=function(C,b,x){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;s.save();const M=pe(x.lineWidth,1);if(s.fillStyle=pe(x.fillStyle,o),s.lineCap=pe(x.lineCap,"butt"),s.lineDashOffset=pe(x.lineDashOffset,0),s.lineJoin=pe(x.lineJoin,"miter"),s.lineWidth=M,s.strokeStyle=pe(x.strokeStyle,o),s.setLineDash(pe(x.lineDash,[])),a.usePointStyle){const _={radius:m*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:M},L=l.xPlus(C,p/2),T=b+y;Iy(s,_,L,T,a.pointStyleWidth&&p)}else{const _=b+Math.max((f-m)/2,0),L=l.leftForLtr(C,p),T=Lr(x.borderRadius);s.beginPath(),Object.values(T).some(H=>H!==0)?va(s,{x:L,y:_,w:p,h:m,radius:T}):s.rect(L,_,p,m),s.fill(),M!==0&&s.stroke()}s.restore()},S=function(C,b,x){Ar(s,x.text,C,b+g/2,u,{strikethrough:x.hidden,textAlign:l.textAlign(x.textAlign)})},k=this.isHorizontal(),j=this._computeTitleHeight();k?h={x:Ye(i,this.left+d,this.right-r[0]),y:this.top+d+j,line:0}:h={x:this.left+d,y:Ye(i,this.top+j+d,this.bottom-n[0].height),line:0},Uy(this.ctx,e.textDirection);const A=g+d;this.legendItems.forEach((C,b)=>{s.strokeStyle=C.fontColor,s.fillStyle=C.fontColor;const x=s.measureText(C.text).width,M=l.textAlign(C.textAlign||(C.textAlign=a.textAlign)),_=p+y+x;let L=h.x,T=h.y;l.setWidth(this.width),k?b>0&&L+_+d>this.right&&(T=h.y+=A,h.line++,L=h.x=Ye(i,this.left+d,this.right-r[h.line])):b>0&&T+A>this.bottom&&(L=h.x=L+n[h.line].width+d,h.line++,T=h.y=Ye(i,this.top+j+d,this.bottom-n[h.line].height));const H=l.x(L);if(v(H,T,C),L=A3(M,L+p+y,k?L+_:this.right,e.rtl),S(l.x(L),T,C),k)h.x+=_+d;else if(typeof C.text!="string"){const R=u.lineHeight;h.y+=o0(C,R)+d}else h.y+=A}),Hy(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=We(n.font),s=Ke(n.padding);if(!n.display)return;const i=Ir(e.rtl,this.left,this.width),a=this.ctx,o=n.position,l=r.size/2,u=s.top+l;let d,f=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),d=this.top+u,f=Ye(e.align,f,this.right-y);else{const p=this.columnSizes.reduce((m,g)=>Math.max(m,g.height),0);d=u+Ye(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const h=Ye(o,f,f+y);a.textAlign=i.textAlign(eu(o)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,Ar(a,n.text,h,d,r)}_computeTitleHeight(){const e=this.options.title,n=We(e.font),r=Ke(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,s,i;if(Tr(e,this.left,this.right)&&Tr(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(s=i[r],Tr(e,s.left,s.left+s.width)&&Tr(n,s.top,s.top+s.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!TC(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,i=jC(s,r);s&&!i&&Me(n.onLeave,[e,s,this],this),this._hoveredItem=r,r&&!i&&Me(n.onHover,[e,r,this],this)}else r&&Me(n.onClick,[e,r,this],this)}}function OC(t,e,n,r,s){const i=EC(r,t,e,n),a=kC(s,r,e.lineHeight);return{itemWidth:i,itemHeight:a}}function EC(t,e,n,r){let s=t.text;return s&&typeof s!="string"&&(s=s.reduce((i,a)=>i.length>a.length?i:a)),e+n.size/2+r.measureText(s).width}function kC(t,e,n){let r=t;return typeof e.text!="string"&&(r=o0(e,n)),r}function o0(t,e){const n=t.text?t.text.length:0;return e*n}function TC(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var PC={id:"legend",_element:kd,start(t,e,n){const r=t.legend=new kd({ctx:t.ctx,options:n,chart:t});Lt.configure(t,r,n),Lt.addBox(t,r)},stop(t){Lt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Lt.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,s=n.chart;s.isDatasetVisible(r)?(s.hide(r),e.hidden=!0):(s.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:s,color:i,useBorderRadius:a,borderRadius:o}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),d=Ke(u.borderWidth);return{text:e[l.index].label,fillStyle:u.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:s||u.textAlign,borderRadius:a&&(o||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class l0 extends bn{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const s=Re(r.text)?r.text.length:1;this._padding=Ke(r.padding);const i=s*We(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:s,right:i,options:a}=this,o=a.align;let l=0,u,d,f;return this.isHorizontal()?(d=Ye(o,r,i),f=n+e,u=i-r):(a.position==="left"?(d=r+e,f=Ye(o,s,n),l=Ue*-.5):(d=i-e,f=Ye(o,n,s),l=Ue*.5),u=s-n),{titleX:d,titleY:f,maxWidth:u,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=We(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:o,maxWidth:l,rotation:u}=this._drawArgs(i);Ar(e,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:eu(n.align),textBaseline:"middle",translation:[a,o]})}}function MC(t,e){const n=new l0({ctx:t.ctx,options:e,chart:t});Lt.configure(t,n,e),Lt.addBox(t,n),t.titleBlock=n}var LC={id:"title",_element:l0,start(t,e,n){MC(t,n)},stop(t){const e=t.titleBlock;Lt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;Lt.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ps={average(t){if(!t.length)return!1;let e,n,r=new Set,s=0,i=0;for(e=0,n=t.length;e<n;++e){const o=t[e].element;if(o&&o.hasValue()){const l=o.tooltipPosition();r.add(l.x),s+=l.y,++i}}return i===0||r.size===0?!1:{x:[...r].reduce((o,l)=>o+l)/r.size,y:s/i}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,s=Number.POSITIVE_INFINITY,i,a,o;for(i=0,a=t.length;i<a;++i){const l=t[i].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),d=ll(e,u);d<s&&(s=d,o=l)}}if(o){const l=o.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Gt(t,e){return e&&(Re(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function ln(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
50
50
  `)>-1?t.split(`
51
- `):t}function EC(t,e){const{element:n,datasetIndex:r,index:i}=e,s=t.getDatasetMeta(r).controller,{label:a,value:o}=s.getLabelAndValue(i);return{chart:t,label:a,parsed:s.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:o,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function jd(t,e){const n=t.chart.ctx,{body:r,footer:i,title:s}=t,{boxWidth:a,boxHeight:o}=e,l=He(e.bodyFont),u=He(e.titleFont),c=He(e.footerFont),f=s.length,y=i.length,h=r.length,p=Je(e.padding);let m=p.height,g=0,v=r.reduce((C,A)=>C+A.before.length+A.lines.length+A.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,f&&(m+=f*u.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),v){const C=e.displayColors?Math.max(o,l.lineHeight):l.lineHeight;m+=h*C+(v-h)*l.lineHeight+(v-1)*e.bodySpacing}y&&(m+=e.footerMarginTop+y*c.lineHeight+(y-1)*e.footerSpacing);let S=0;const k=function(C){g=Math.max(g,n.measureText(C).width+S)};return n.save(),n.font=u.string,Ce(t.title,k),n.font=l.string,Ce(t.beforeBody.concat(t.afterBody),k),S=e.displayColors?a+2+e.boxPadding:0,Ce(r,C=>{Ce(C.before,k),Ce(C.lines,k),Ce(C.after,k)}),S=0,n.font=c.string,Ce(t.footer,k),n.restore(),g+=p.width,{width:g,height:m}}function kC(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function TC(t,e,n,r){const{x:i,width:s}=r,a=n.caretSize+n.caretPadding;if(t==="left"&&i+s+a>e.width||t==="right"&&i-s-a<0)return!0}function PC(t,e,n,r){const{x:i,width:s}=n,{width:a,chartArea:{left:o,right:l}}=t;let u="center";return r==="center"?u=i<=(o+l)/2?"left":"right":i<=s/2?u="left":i>=a-s/2&&(u="right"),TC(u,t,e,n)&&(u="center"),u}function Od(t,e,n){const r=n.yAlign||e.yAlign||kC(t,n);return{xAlign:n.xAlign||e.xAlign||PC(t,e,n,r),yAlign:r}}function MC(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function IC(t,e,n){let{y:r,height:i}=t;return e==="top"?r+=n:e==="bottom"?r-=i+n:r-=i/2,r}function Ed(t,e,n,r){const{caretSize:i,caretPadding:s,cornerRadius:a}=t,{xAlign:o,yAlign:l}=n,u=i+s,{topLeft:c,topRight:f,bottomLeft:y,bottomRight:h}=Tr(a);let p=MC(e,o);const m=IC(e,l,u);return l==="center"?o==="left"?p+=u:o==="right"&&(p-=u):o==="left"?p-=Math.max(c,y)+i:o==="right"&&(p+=Math.max(f,h)+i),{x:Tt(p,0,r.width-e.width),y:Tt(m,0,r.height-e.height)}}function Rs(t,e,n){const r=Je(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function kd(t){return Qt([],sn(t))}function LC(t,e,n){return Wn(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Td(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const r0={beforeTitle:$t,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:$t,beforeBody:$t,beforeLabel:$t,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return je(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:$t,afterBody:$t,beforeFooter:$t,footer:$t,afterFooter:$t};function it(t,e,n,r){const i=t[e].call(n,r);return typeof i=="undefined"?r0[e].call(n,r):i}class dl extends mn{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,s=new Uy(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=LC(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,i=it(r,"beforeTitle",this,e),s=it(r,"title",this,e),a=it(r,"afterTitle",this,e);let o=[];return o=Qt(o,sn(i)),o=Qt(o,sn(s)),o=Qt(o,sn(a)),o}getBeforeBody(e,n){return kd(it(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,i=[];return Ce(e,s=>{const a={before:[],lines:[],after:[]},o=Td(r,s);Qt(a.before,sn(it(o,"beforeLabel",this,s))),Qt(a.lines,it(o,"label",this,s)),Qt(a.after,sn(it(o,"afterLabel",this,s))),i.push(a)}),i}getAfterBody(e,n){return kd(it(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,i=it(r,"beforeFooter",this,e),s=it(r,"footer",this,e),a=it(r,"afterFooter",this,e);let o=[];return o=Qt(o,sn(i)),o=Qt(o,sn(s)),o=Qt(o,sn(a)),o}_createItems(e){const n=this._active,r=this.chart.data,i=[],s=[],a=[];let o=[],l,u;for(l=0,u=n.length;l<u;++l)o.push(EC(this.chart,n[l]));return e.filter&&(o=o.filter((c,f,y)=>e.filter(c,f,y,r))),e.itemSort&&(o=o.sort((c,f)=>e.itemSort(c,f,r))),Ce(o,c=>{const f=Td(e.callbacks,c);i.push(it(f,"labelColor",this,c)),s.push(it(f,"labelPointStyle",this,c)),a.push(it(f,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=o,o}update(e,n){const r=this.options.setContext(this.getContext()),i=this._active;let s,a=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const o=ji[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=jd(this,r),u=Object.assign({},o,l),c=Od(this.chart,r,u),f=Ed(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,s={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=a,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,i){const s=this.getCaretPosition(e,r,i);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,r){const{xAlign:i,yAlign:s}=this,{caretSize:a,cornerRadius:o}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:f}=Tr(o),{x:y,y:h}=e,{width:p,height:m}=n;let g,v,S,k,C,A;return s==="center"?(C=h+m/2,i==="left"?(g=y,v=g-a,k=C+a,A=C-a):(g=y+p,v=g+a,k=C-a,A=C+a),S=g):(i==="left"?v=y+Math.max(l,c)+a:i==="right"?v=y+p-Math.max(u,f)-a:v=this.caretX,s==="top"?(k=h,C=k-a,g=v-a,S=v+a):(k=h+m,C=k+a,g=v+a,S=v-a),A=k),{x1:g,x2:v,x3:S,y1:k,y2:C,y3:A}}drawTitle(e,n,r){const i=this.title,s=i.length;let a,o,l;if(s){const u=Pr(r.rtl,this.x,this.width);for(e.x=Rs(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",a=He(r.titleFont),o=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<s;++l)n.fillText(i[l],u.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,l+1===s&&(e.y+=r.titleMarginBottom-o)}}_drawColorBox(e,n,r,i,s){const a=this.labelColors[r],o=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=s,c=He(s.bodyFont),f=Rs(this,"left",s),y=i.x(f),h=l<c.lineHeight?(c.lineHeight-l)/2:0,p=n.y+h;if(s.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},g=i.leftForLtr(y,u)+u/2,v=p+l/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,al(e,m,g,v),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,al(e,m,g,v)}else{e.lineWidth=ge(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const m=i.leftForLtr(y,u),g=i.leftForLtr(i.xPlus(y,1),u-2),v=Tr(a.borderRadius);Object.values(v).some(S=>S!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,fa(e,{x:m,y:p,w:u,h:l,radius:v}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),fa(e,{x:g,y:p+1,w:u-2,h:l-2,radius:v}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(m,p,u,l),e.strokeRect(m,p,u,l),e.fillStyle=a.backgroundColor,e.fillRect(g,p+1,u-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:i}=this,{bodySpacing:s,bodyAlign:a,displayColors:o,boxHeight:l,boxWidth:u,boxPadding:c}=r,f=He(r.bodyFont);let y=f.lineHeight,h=0;const p=Pr(r.rtl,this.x,this.width),m=function(x){n.fillText(x,p.x(e.x+h),e.y+y/2),e.y+=y+s},g=p.textAlign(a);let v,S,k,C,A,j,b;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,e.x=Rs(this,g,r),n.fillStyle=r.bodyColor,Ce(this.beforeBody,m),h=o&&g!=="right"?a==="center"?u/2+c:u+2+c:0,C=0,j=i.length;C<j;++C){for(v=i[C],S=this.labelTextColors[C],n.fillStyle=S,Ce(v.before,m),k=v.lines,o&&k.length&&(this._drawColorBox(n,e,C,p,r),y=Math.max(f.lineHeight,l)),A=0,b=k.length;A<b;++A)m(k[A]),y=f.lineHeight;Ce(v.after,m)}h=0,y=f.lineHeight,Ce(this.afterBody,m),e.y-=s}drawFooter(e,n,r){const i=this.footer,s=i.length;let a,o;if(s){const l=Pr(r.rtl,this.x,this.width);for(e.x=Rs(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=He(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,o=0;o<s;++o)n.fillText(i[o],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+r.footerSpacing}}drawBackground(e,n,r,i){const{xAlign:s,yAlign:a}=this,{x:o,y:l}=e,{width:u,height:c}=r,{topLeft:f,topRight:y,bottomLeft:h,bottomRight:p}=Tr(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(o+f,l),a==="top"&&this.drawCaret(e,n,r,i),n.lineTo(o+u-y,l),n.quadraticCurveTo(o+u,l,o+u,l+y),a==="center"&&s==="right"&&this.drawCaret(e,n,r,i),n.lineTo(o+u,l+c-p),n.quadraticCurveTo(o+u,l+c,o+u-p,l+c),a==="bottom"&&this.drawCaret(e,n,r,i),n.lineTo(o+h,l+c),n.quadraticCurveTo(o,l+c,o,l+c-h),a==="center"&&s==="left"&&this.drawCaret(e,n,r,i),n.lineTo(o,l+f),n.quadraticCurveTo(o,l,o+f,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const a=ji[e.position].call(this,this._active,this._eventPosition);if(!a)return;const o=this._size=jd(this,e),l=Object.assign({},a,this._size),u=Od(n,e,l),c=Ed(e,l,u,n);(i._to!==c.x||s._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Je(n.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&o&&(e.save(),e.globalAlpha=r,this.drawBackground(s,e,i,n),Ry(e,n.textDirection),s.y+=a.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),Ny(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,i=e.map(({datasetIndex:o,index:l})=>{const u=this.chart.getDatasetMeta(o);if(!u)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:u.data[l],index:l}}),s=!oa(r,i),a=this._positionChanged(i,n);(s||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],a=this._getActiveElements(e,s,n,r),o=this._positionChanged(a,e),l=n||!oa(a,s)||o;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,i){const s=this.options;if(e.type==="mouseout")return[];if(!i)return n.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const a=this.chart.getElementsAtEventForMode(e,s.mode,s,r);return s.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:r,caretY:i,options:s}=this,a=ji[s.position].call(this,e,n);return a!==!1&&(r!==a.x||i!==a.y)}}se(dl,"positioners",ji);var RC={id:"tooltip",_element:dl,positioners:ji,afterInit(t,e,n){n&&(t.tooltip=new dl({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:r0},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const NC=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function _C(t,e,n,r){const i=t.indexOf(e);if(i===-1)return NC(t,e,n,r);const s=t.lastIndexOf(e);return i!==s?n:i}const DC=(t,e)=>t===null?null:Tt(Math.round(t),0,e);function Pd(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class fl extends ni{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:s}of n)r[i]===s&&r.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(je(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:_C(r,e,ye(n,e),this._addedLabels),DC(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,i=[];let s=this.getLabels();s=e===0&&n===s.length-1?s:s.slice(e,n+1),this._valueRange=Math.max(s.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=e;a<=n;a++)i.push({value:a});return i}getLabelForValue(e){return Pd.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}se(fl,"id","category"),se(fl,"defaults",{ticks:{callback:Pd}});function BC(t,e){const n=[],{bounds:i,step:s,min:a,max:o,precision:l,count:u,maxTicks:c,maxDigits:f,includeBounds:y}=t,h=s||1,p=c-1,{min:m,max:g}=e,v=!je(a),S=!je(o),k=!je(u),C=(g-m)/(f+1);let A=Mc((g-m)/p/h)*h,j,b,x,M;if(A<1e-14&&!v&&!S)return[{value:m},{value:g}];M=Math.ceil(g/A)-Math.floor(m/A),M>p&&(A=Mc(M*A/p/h)*h),je(l)||(j=Math.pow(10,l),A=Math.ceil(A*j)/j),i==="ticks"?(b=Math.floor(m/A)*A,x=Math.ceil(g/A)*A):(b=m,x=g),v&&S&&s&&s3((o-a)/s,A/1e3)?(M=Math.round(Math.min((o-a)/A,c)),A=(o-a)/M,b=a,x=o):k?(b=v?a:b,x=S?o:x,M=u-1,A=(x-b)/M):(M=(x-b)/A,Mi(M,Math.round(M),A/1e3)?M=Math.round(M):M=Math.ceil(M));const _=Math.max(Ic(A),Ic(b));j=Math.pow(10,je(l)?_:l),b=Math.round(b*j)/j,x=Math.round(x*j)/j;let I=0;for(v&&(y&&b!==a?(n.push({value:a}),b<a&&I++,Mi(Math.round((b+I*A)*j)/j,a,Md(a,C,t))&&I++):b<a&&I++);I<M;++I){const P=Math.round((b+I*A)*j)/j;if(S&&P>o)break;n.push({value:P})}return S&&y&&x!==o?n.length&&Mi(n[n.length-1].value,o,Md(o,C,t))?n[n.length-1].value=o:n.push({value:o}):(!S||x===o)&&n.push({value:x}),n}function Md(t,e,{horizontal:n,minRotation:r}){const i=In(r),s=(n?Math.sin(i):Math.cos(i))||.001,a=.75*e*(""+t).length;return Math.min(e/s,a)}class hl extends ni{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return je(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const a=l=>i=n?i:l,o=l=>s=r?s:l;if(e){const l=Gr(i),u=Gr(s);l<0&&u<0?o(0):l>0&&u>0&&a(0)}if(i===s){let l=s===0?1:Math.abs(s*.05);o(s+l),e||a(i-l)}this.min=i,this.max=s}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,a=BC(i,s);return e.bounds==="ticks"&&a3(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-n)/Math.max(e.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return Oy(e,this.chart.options.locale,this.options.ticks.format)}}class yl extends hl{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=qe(e)?e:0,this.max=qe(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=In(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}se(yl,"id","linear"),se(yl,"defaults",{ticks:{callback:Zl.formatters.numeric}});function pl(t){const e=t.ticks;if(e.display&&t.display){const n=Je(e.backdropPadding);return ye(e.font&&e.font.size,Be.font.size)+n.height}return 0}function FC(t,e,n){return n=Ne(n)?n:[n],{w:k3(t,e.string,n),h:n.length*e.lineHeight}}function Id(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function UC(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],s=t._pointLabels.length,a=t.options.pointLabels,o=a.centerPointLabels?Fe/s:0;for(let l=0;l<s;l++){const u=a.setContext(t.getPointLabelContext(l));i[l]=u.padding;const c=t.getPointPosition(l,t.drawingArea+i[l],o),f=He(u.font),y=FC(t.ctx,f,t._pointLabels[l]);r[l]=y;const h=xt(t.getIndexAngle(l)+o),p=Math.round(Vl(h)),m=Id(p,c.x,y.w,0,180),g=Id(p,c.y,y.h,90,270);HC(n,e,h,m,g)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=qC(t,r,i)}function HC(t,e,n,r,i){const s=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let o=0,l=0;r.start<e.l?(o=(e.l-r.start)/s,t.l=Math.min(t.l,e.l-o)):r.end>e.r&&(o=(r.end-e.r)/s,t.r=Math.max(t.r,e.r+o)),i.start<e.t?(l=(e.t-i.start)/a,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function WC(t,e,n){const r=t.drawingArea,{extra:i,additionalAngle:s,padding:a,size:o}=n,l=t.getPointPosition(e,r+i+a,s),u=Math.round(Vl(xt(l.angle+At))),c=YC(l.y,o.h,u),f=zC(u),y=GC(l.x,o.w,f);return{visible:!0,x:l.x,y:c,textAlign:f,left:y,top:c,right:y+o.w,bottom:c+o.h}}function QC(t,e){if(!e)return!0;const{left:n,top:r,right:i,bottom:s}=t;return!(fn({x:n,y:r},e)||fn({x:n,y:s},e)||fn({x:i,y:r},e)||fn({x:i,y:s},e))}function qC(t,e,n){const r=[],i=t._pointLabels.length,s=t.options,{centerPointLabels:a,display:o}=s.pointLabels,l={extra:pl(s)/2,additionalAngle:a?Fe/i:0};let u;for(let c=0;c<i;c++){l.padding=n[c],l.size=e[c];const f=WC(t,c,l);r.push(f),o==="auto"&&(f.visible=QC(f,u),f.visible&&(u=f))}return r}function zC(t){return t===0||t===180?"center":t<180?"left":"right"}function GC(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function YC(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function VC(t,e,n){const{left:r,top:i,right:s,bottom:a}=n,{backdropColor:o}=e;if(!je(o)){const l=Tr(e.borderRadius),u=Je(e.backdropPadding);t.fillStyle=o;const c=r-u.left,f=i-u.top,y=s-r+u.width,h=a-i+u.height;Object.values(l).some(p=>p!==0)?(t.beginPath(),fa(t,{x:c,y:f,w:y,h,radius:l}),t.fill()):t.fillRect(c,f,y,h)}}function KC(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const s=t._pointLabelItems[i];if(!s.visible)continue;const a=r.setContext(t.getPointLabelContext(i));VC(n,a,s);const o=He(a.font),{x:l,y:u,textAlign:c}=s;vr(n,t._pointLabels[i],l,u+o.lineHeight/2,o,{color:a.color,textAlign:c,textBaseline:"middle"})}}function i0(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,wt);else{let s=t.getPointPosition(0,e);i.moveTo(s.x,s.y);for(let a=1;a<r;a++)s=t.getPointPosition(a,e),i.lineTo(s.x,s.y)}}function XC(t,e,n,r,i){const s=t.ctx,a=e.circular,{color:o,lineWidth:l}=e;!a&&!r||!o||!l||n<0||(s.save(),s.strokeStyle=o,s.lineWidth=l,s.setLineDash(i.dash||[]),s.lineDashOffset=i.dashOffset,s.beginPath(),i0(t,n,a,r),s.closePath(),s.stroke(),s.restore())}function JC(t,e,n){return Wn(t,{label:n,index:e,type:"pointLabel"})}class Oi extends hl{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Je(pl(this.options)/2),n=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=qe(e)&&!isNaN(e)?e:0,this.max=qe(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/pl(this.options))}generateTickLabels(e){hl.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,r)=>{const i=Me(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?UC(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,i))}getIndexAngle(e){const n=wt/(this._pointLabels.length||1),r=this.options.startAngle||0;return xt(e*n+In(r))}getDistanceFromCenterForValue(e){if(je(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(je(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const r=n[e];return JC(this.getContext(),e,r)}}getPointPosition(e,n,r=0){const i=this.getIndexAngle(e)-At+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:r,right:i,bottom:s}=this._pointLabelItems[e];return{left:n,top:r,right:i,bottom:s}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),i0(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:r,grid:i,border:s}=n,a=this._pointLabels.length;let o,l,u;if(n.pointLabels.display&&KC(this,a),i.display&&this.ticks.forEach((c,f)=>{if(f!==0||f===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const y=this.getContext(f),h=i.setContext(y),p=s.setContext(y);XC(this,h,l,a,p)}}),r.display){for(e.save(),o=a-1;o>=0;o--){const c=r.setContext(this.getPointLabelContext(o)),{color:f,lineWidth:y}=c;!y||!f||(e.lineWidth=y,e.strokeStyle=f,e.setLineDash(c.borderDash),e.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),u=this.getPointPosition(o,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(u.x,u.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=He(u.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){e.font=c.string,a=e.measureText(o.label).width,e.fillStyle=u.backdropColor;const f=Je(u.backdropPadding);e.fillRect(-a/2-f.left,-s-c.size/2-f.top,a+f.width,c.size+f.height)}vr(e,o.label,0,-s,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),e.restore()}drawTitle(){}}se(Oi,"id","radialLinear"),se(Oi,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Zl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),se(Oi,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),se(Oi,"descriptors",{angleLines:{_fallback:"grid"}});const Ua={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ot=Object.keys(Ua);function Ld(t,e){return t-e}function Rd(t,e){if(je(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:s}=t._parseOpts;let a=e;return typeof r=="function"&&(a=r(a)),qe(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Ki(s)||s===!0)?n.startOf(a,"isoWeek",s):n.startOf(a,i)),+a)}function Nd(t,e,n,r){const i=ot.length;for(let s=ot.indexOf(t);s<i-1;++s){const a=Ua[ot[s]],o=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-e)/(o*a.size))<=r)return ot[s]}return ot[i-1]}function ZC(t,e,n,r,i){for(let s=ot.length-1;s>=ot.indexOf(n);s--){const a=ot[s];if(Ua[a].common&&t._adapter.diff(i,r,a)>=e-1)return a}return ot[n?ot.indexOf(n):0]}function $C(t){for(let e=ot.indexOf(t)+1,n=ot.length;e<n;++e)if(Ua[ot[e]].common)return ot[e]}function _d(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:i}=Kl(n,e),s=n[r]>=e?n[r]:n[i];t[s]=!0}}function e5(t,e,n,r){const i=t._adapter,s=+i.startOf(e[0].value,r),a=e[e.length-1].value;let o,l;for(o=s;o<=a;o=+i.add(o,1,r))l=n[o],l>=0&&(e[l].major=!0);return e}function Dd(t,e,n){const r=[],i={},s=e.length;let a,o;for(a=0;a<s;++a)o=e[a],i[o]=a,r.push({value:o,major:!1});return s===0||!n?r:e5(t,r,i,n)}class pa extends ni{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),i=this._adapter=new Nw._date(e.adapters.date);i.init(n),Pi(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Rd(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:i,max:s,minDefined:a,maxDefined:o}=this.getUserBounds();function l(u){!a&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!o&&!isNaN(u.max)&&(s=Math.max(s,u.max))}(!a||!o)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=qe(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),s=qe(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,s-1),this.max=Math.max(i+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const s=this.min,a=this.max,o=d3(i,s,a);return this._unit=n.unit||(r.autoSkip?Nd(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):ZC(this,o.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:$C(this._unit),this.initOffsets(i),e.reverse&&o.reverse(),Dd(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,i,s;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?r=s:r=(s-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=Tt(n,0,a),r=Tt(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,s=i.time,a=s.unit||Nd(s.minUnit,n,r,this._getLabelCapacity(n)),o=ye(i.ticks.stepSize,1),l=a==="week"?s.isoWeekday:!1,u=Ki(l)||l===!0,c={};let f=n,y,h;if(u&&(f=+e.startOf(f,"isoWeek",l)),f=+e.startOf(f,u?"day":a),e.diff(r,n,a)>1e5*o)throw new Error(n+" and "+r+" are too far apart with stepSize of "+o+" "+a);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(y=f,h=0;y<r;y=+e.add(y,o,a),h++)_d(c,y,p);return(y===r||i.bounds==="ticks"||h===1)&&_d(c,y,p),Object.keys(c).sort(Ld).map(m=>+m)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const i=this.options.time.displayFormats,s=this._unit,a=n||i[s];return this._adapter.format(e,a)}_tickFormatFunction(e,n,r,i){const s=this.options,a=s.ticks.callback;if(a)return Me(a,[e,n,r],this);const o=s.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&o[l],f=u&&o[u],y=r[n],h=u&&f&&y&&y.major;return this._adapter.format(e,i||(h?f:c))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],i.label=this._tickFormatFunction(i.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,i=In(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(i),a=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:r*s+o*a,h:r*a+o*s}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,s=this._tickFormatFunction(e,0,Dd(this,[e],this._majorUnit),i),a=this._getLabelSize(s),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)e=e.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)e.push(Rd(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return h3(e.sort(Ld))}}se(pa,"id","time"),se(pa,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Ns(t,e,n){let r=0,i=t.length-1,s,a,o,l;n?(e>=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=$n(t,"pos",e)),{pos:s,time:o}=t[r],{pos:a,time:l}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=$n(t,"time",e)),{time:s,pos:o}=t[r],{time:a,pos:l}=t[i]);const u=a-s;return u?o+(l-o)*(e-s)/u:o}class Bd extends pa{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Ns(n,this.min),this._tableRange=Ns(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],s=[];let a,o,l,u,c;for(a=0,o=e.length;a<o;++a)u=e[a],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,o=i.length;a<o;++a)c=i[a+1],l=i[a-1],u=i[a],Math.round((c+l)/2)!==u&&s.push({time:u,pos:a/(o-1)});return s}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,s)=>i-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Ns(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Ns(this._table,r*this._tableRange+this._minPos,!0)}}se(Bd,"id","timeseries"),se(Bd,"defaults",pa.defaults);const s0="label";function Fd(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function t5(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function a0(t,e){t.labels=e}function o0(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s0;const r=[];t.datasets=e.map(i=>{const s=t.datasets.find(a=>a[n]===i[n]);return!s||!i.data||r.includes(s)?{...i}:(r.push(s),Object.assign(s,i),s)})}function n5(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s0;const n={labels:[],datasets:[]};return a0(n,t.labels),o0(n,t.datasets,e),n}function r5(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:a,data:o,options:l,plugins:u=[],fallbackContent:c,updateMode:f,...y}=t,h=D.useRef(null),p=D.useRef(null),m=()=>{h.current&&(p.current=new Ba(h.current,{type:a,data:n5(o,s),options:l&&{...l},plugins:u}),Fd(e,p.current))},g=()=>{Fd(e,null),p.current&&(p.current.destroy(),p.current=null)};return D.useEffect(()=>{!i&&p.current&&l&&t5(p.current,l)},[i,l]),D.useEffect(()=>{!i&&p.current&&a0(p.current.config.data,o.labels)},[i,o.labels]),D.useEffect(()=>{!i&&p.current&&o.datasets&&o0(p.current.config.data,o.datasets,s)},[i,o.datasets]),D.useEffect(()=>{p.current&&(i?(g(),setTimeout(m)):p.current.update(f))},[i,l,o.labels,o.datasets,f]),D.useEffect(()=>{p.current&&(g(),setTimeout(m))},[a]),D.useEffect(()=>(m(),()=>g()),[]),D.createElement("canvas",{ref:h,role:"img",height:n,width:r,...y},c)}const i5=D.forwardRef(r5);function l0(t,e){return Ba.register(e),D.forwardRef((n,r)=>D.createElement(i5,{...n,ref:r,type:t}))}const s5=l0("line",Gs),a5=l0("radar",Ys);Ba.register(fl,yl,Oi,Rn,Xs,vC,OC,RC,CC);var ml={elements:{line:{backgroundColor:"rgba(166, 30, 105, 0.2)",borderColor:"rgba(166, 30, 105, 1)",borderWidth:4},point:{backgroundColor:"rgba(166, 30, 105, 1)",borderColor:"rgba(255,255,255, .9)",borderWidth:2,radius:5,hoverRadius:6,hoverBorderWidth:3}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{mode:"index",intersect:!1}},interaction:{mode:"nearest",axis:"x",intersect:!1}},o5=function(e){var n=e.chart.ctx,r=e.chart.chartArea;if(!r)return"rgba(166, 30, 105, 0.1)";var i=(r.left+r.right)/2,s=(r.top+r.bottom)/2,a=Math.min((r.right-r.left)/2,(r.bottom-r.top)/2),o=n.createRadialGradient(i,s,0,i,s,a);return o.addColorStop(0,"rgba(255, 255, 255, 0.4)"),o.addColorStop(.3,"rgba(255, 255, 255, 0.4)"),o.addColorStop(1,"rgba(166, 30, 105, 0.2)"),o};function Ud(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Hd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ud(Object(n),!0).forEach(function(r){l5(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ud(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function l5(t,e,n){return(e=u5(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u5(t){var e=c5(t,"string");return Kr(e)=="symbol"?e:e+""}function c5(t,e){if(Kr(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Kr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Kr(t){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr(t)}function d5(t){var e=new Date(t);return isNaN(e.getTime())?String(t):e.toLocaleString("en-US",{month:"short",day:"numeric"})}var f5=function(){var e,n,r,i,s=Hn(),a=s.data,o=s.isLoading,l=s.isRefetching,u=a==null?void 0:a.mentions,c=u==null||(e=u.mentionedInNumberOfQueries)===null||e===void 0||(e=e.previous)===null||e===void 0?void 0:e.difference,f=u==null?void 0:u.chart,y=Array.isArray(f==null?void 0:f.labels)?f.labels:f!=null&&f.labels&&Kr(f.labels)==="object"?Object.values(f.labels):[],h=y.map(function(v){return d5(String(v))}),p=a==null?void 0:a.numberOfQueries;if(!p){var m=0;Array.isArray(f==null?void 0:f.datasets)&&f.datasets.forEach(function(v){Array.isArray(v==null?void 0:v.data)&&v.data.forEach(function(S){typeof S=="number"&&S>m&&(m=S)})}),p=m+2}var g=Hd(Hd({},ml),{},{responsive:!0,maintainAspectRatio:!1,scales:{x:{display:!0,title:{display:!1,text:"Date"},grid:{display:!1}},y:{display:!0,title:{display:!1,text:"Number of Mentions"},beginAtZero:!0,max:p,ticks:{stepSize:1}}}});return d.jsx(w.Card,{className:"yst-overflow-visible",children:d.jsxs(w.Card.Content,{className:"yst-space-y-4",children:[d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(hs,{title:"Mentions progress",tooltip:"Tracks how your brand mentions have changed over time across the same query set."}),d.jsx(fs,{score:u==null||(n=u.mentionedInNumberOfQueries)===null||n===void 0?void 0:n.value,total:a==null?void 0:a.numberOfQueries,delta:c,deltaSuffix:"since last analysis",suffix:"queries",isLoading:o||l})]}),Array.isArray(f==null||(r=f.datasets)===null||r===void 0?void 0:r.data)&&(f==null||(i=f.datasets)===null||i===void 0?void 0:i.data.length)<2?d.jsx(w.Alert,{variant:"info",children:"One more analysis needed to show more insights."}):d.jsx("div",{className:"yst-h-72",children:d.jsx(s5,{data:function(){var v={labels:h,datasets:[f==null?void 0:f.datasets]};return v}(),options:g})})]})})};function _s(t){var e=t.value,n=e===void 0?"—":e,r=t.label,i=t.tooltip,s=t.className,a=t.borderBottom,o=a===void 0?!1:a,l=t.borderRight,u=l===void 0?!1:l,c=t.delta,f=t.tooltipPosition,y=f===void 0?"left":f;return d.jsxs("div",{className:te("yst-relative yst-flex yst-flex-col yst-items-center yst-gap-1 yst-p-4 yst-text-center",o&&"yst-border-b yst-border-slate-200",u&&"yst-border-r yst-border-slate-200",s),children:[d.jsx("p",{className:"yst-text-2xl yst-font-bold yst-text-slate-900",children:n}),d.jsx("p",{className:"yst-text-tiny yst-text-slate-600",children:r}),typeof c=="number"&&d.jsxs("p",{className:te("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold",Ui(c)),children:[c>0?d.jsx(iy,{}):c<0?d.jsx(ry,{}):null,c>-1e-6&&"+",c]}),i&&d.jsx(Ql,{id:"tooltip-".concat(r.replace(/\s+/g,"-").toLowerCase()),className:"yst-absolute yst-right-2 yst-top-2",position:y,children:i})]})}function h5(t){var e=t.children,n=t.className;return d.jsx("div",{className:te("yst-grid yst-w-full yst-grid-cols-2 yst-gap-0 yst-rounded-lg",n),children:e})}function y5(t){return t>0?"yst-text-green-600":t<0?"yst-text-red-600":"yst-text-slate-500"}function p5(t){var e=t.current,n=t.previous,r=t.className;if(typeof n!="number")return null;var i=e-n,s=i>0,a=i<0,o="".concat(i>0?"+":"").concat(i.toFixed(1),"%");return d.jsxs("div",{className:te("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold",y5(i),r),"aria-label":s?"Visibility increased by ".concat(o):a?"Visibility decreased by ".concat(o):"No change in visibility",children:[s&&d.jsx(iy,{className:"yst-w-4 yst-h-4"}),a&&d.jsx(ry,{className:"yst-w-4 yst-h-4"}),o]})}function Ji(t){"@babel/helpers - typeof";return Ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ji(t)}function m5(t,e){return x5(t)||b5(t,e)||v5(t,e)||g5()}function g5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
52
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v5(t,e){if(t){if(typeof t=="string")return Wd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wd(t,e):void 0}}function Wd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function b5(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function x5(t){if(Array.isArray(t))return t}function Qd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ds(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qd(Object(n),!0).forEach(function(r){A5(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qd(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function A5(t,e,n){return(e=w5(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w5(t){var e=S5(t,"string");return Ji(e)=="symbol"?e:e+""}function S5(t,e){if(Ji(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ji(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function C5(){var t,e,n,r,i,s,a,o,l,u,c,f,y,h,p,m,g,v,S,k,C,A,j,b,x=Rt(),M=x.brandId,_=x.analysisId,I=Ea(M,_,{query:{select:function(_e){var Ie=_e.data;return Ie},enabled:!!M&&!!_}}),P=I.data,H=I.isLoading,N=P==null||(t=P.analysis)===null||t===void 0?void 0:t.scans,O=Array.isArray(N)&&N.length>0?N.reduce(function(Pe,_e){if(!Pe)return _e;if(!(_e!=null&&_e.finishedAt)||!(Pe!=null&&Pe.finishedAt))return Pe;var Ie=new Date(_e.finishedAt),ze=new Date(Pe.finishedAt);return Ie>ze?_e:Pe},N[0]):void 0,L=O==null||(e=O.scores)===null||e===void 0?void 0:e.standardized,R=(n=O==null||(r=O.mentions)===null||r===void 0||(r=r.mentionedInNumberOfQueries)===null||r===void 0?void 0:r.value)!==null&&n!==void 0?n:0,Y=O==null||(i=O.mentions)===null||i===void 0||(i=i.mentionedInNumberOfQueries)===null||i===void 0||(i=i.previous)===null||i===void 0?void 0:i.difference,z=(s=O==null||(a=O.scores)===null||a===void 0||(a=a.standardized)===null||a===void 0||(a=a.citations)===null||a===void 0?void 0:a.value)!==null&&s!==void 0?s:0,F=(o=O==null||(l=O.citations)===null||l===void 0||(l=l.total)===null||l===void 0?void 0:l.value)!==null&&o!==void 0?o:0,Q=O==null||(u=O.citations)===null||u===void 0||(u=u.total)===null||u===void 0||(u=u.previous)===null||u===void 0?void 0:u.difference,U=O==null||(c=O.rankings)===null||c===void 0||(c=c.list)===null||c===void 0?void 0:c.find(function(Pe){var _e;return((_e=Pe.brand)===null||_e===void 0?void 0:_e.isSelf)===!0}),q=(f=U==null||(y=U.rank)===null||y===void 0?void 0:y.value)!==null&&f!==void 0?f:"—",W=U==null||(h=U.rank)===null||h===void 0||(h=h.previous)===null||h===void 0?void 0:h.difference;W&&(W=W*-1);var X=(p=L==null||(m=L.visibility)===null||m===void 0?void 0:m.value)!==null&&p!==void 0?p:0,Z=L==null||(g=L.visibility)===null||g===void 0||(g=g.previous)===null||g===void 0?void 0:g.value,re=(v=L==null||(S=L.ranking)===null||S===void 0?void 0:S.value)!==null&&v!==void 0?v:0,ae=(k=L==null||(C=L.sentiment)===null||C===void 0?void 0:C.value)!==null&&k!==void 0?k:0,fe=(A=L==null||(j=L.mentions)===null||j===void 0?void 0:j.value)!==null&&A!==void 0?A:0,oe={labels:["Mentions","Ranking","Citations","Sentiment"],datasets:[{data:[fe,re,z,ae],backgroundColor:o5,pointBackgroundColor:"rgba(166, 30, 105, 1)"}]},ve=Ds(Ds({},ml),{},{plugins:Ds(Ds({},ml.plugins),{},{tooltip:{mode:"point",intersect:!0,callbacks:{label:function(_e){var Ie=_e.label||"",ze=_e.parsed.r||0;return"".concat(Ie,": ").concat(ze,"%")}}}}),interaction:{mode:"point",intersect:!0},scales:{r:{beginAtZero:!0,min:0,max:100,ticks:{stepSize:20}}}}),G=D.useState(typeof window!="undefined"&&window.innerWidth<800?"top":"left"),Oe=m5(G,2),Ye=Oe[0],We=Oe[1];return D.useEffect(function(){function Pe(){We(window.innerWidth<800?"top":"left")}return window.addEventListener("resize",Pe),function(){return window.removeEventListener("resize",Pe)}},[]),d.jsx(w.Card,{className:"yst-overflow-visible md:yst-col-span-2",children:d.jsxs(w.Card.Content,{children:[d.jsx(w.Title,{size:"3",className:"yst-mb-2",children:"AI Visibility Index (AIVI)"}),d.jsx(fs,{score:X,total:100,isLoading:H}),d.jsx(p5,{current:X,previous:Z,className:"yst-mb-4"}),d.jsxs("div",{className:"yst-flex yst-flex-col yst-items-center yst-justify-around yst-justify-items-center yst-gap-8 md:yst-flex-row",children:[d.jsxs("div",{className:"yst-radar-chart-container yst-relative yst-aspect-square yst-h-full yst-w-full md:yst-flex md:yst-w-1/2 md:yst-items-center md:yst-justify-center",children:[d.jsx(a5,{data:oe,options:ve}),d.jsx(Ql,{id:"tooltip-radar-chart",className:"yst-absolute yst-right-2 yst-top-2",position:"left",children:"The AI Visibility Index (AIVI) shows how visible your brand is across major AI platforms like ChatGPT, based on mentions, citations, sentiment, and rankings."})]}),d.jsx("div",{className:"yst-mt-6 yst-w-full md:yst-mt-0 md:yst-flex md:yst-w-1/2 md:yst-items-center",children:d.jsxs(h5,{children:[d.jsx(_s,{value:R,label:"Mentions",tooltip:"Mentions show how often your brand appears in AI-generated answers to the questions we send to LLMs.",borderBottom:!0,borderRight:!0,delta:Y,tooltipPosition:Ye}),d.jsx(_s,{value:typeof q=="number"&&Number.isFinite(q)&&q>0?d.jsxs(d.Fragment,{children:["#",q,q===1&&" 🏆"]}):"—",label:"Competitor ranking",tooltip:"Ranking shows the position your brand is mentioned in AI-generated answers—whether in a numbered list or the order of appearance in full-text responses.",borderBottom:!0,delta:W}),d.jsx(_s,{value:F,label:"Citations",tooltip:"Citations are the source links found in AI-generated answers. They form the basis for mentions, sentiment, and ranking insights.",borderRight:!0,delta:Q,tooltipPosition:Ye}),d.jsx(_s,{value:ae?"".concat(ae,"%"):"—",label:"Positive sentiment",tooltip:"Sentiment reflects how positively, neutrally, or negatively your brand is mentioned in AI-generated answers, based on the cited sources.",delta:O==null||(b=O.scores)===null||b===void 0||(b=b.standardized)===null||b===void 0||(b=b.sentiment)===null||b===void 0||(b=b.previous)===null||b===void 0?void 0:b.difference})]})})]})]})})}const j5="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.652%2015.0488C2.3816%2015.0488%201.348%2014.0152%201.348%2012.7448V5.22476C1.348%203.95436%202.3816%202.92075%203.652%202.92075H9.5912L9.9304%202.07275H3.652C1.9144%202.07275%200.5%203.48716%200.5%205.22476V12.7448C0.5%2014.4824%201.9144%2015.8968%203.652%2015.8968H3.6776V15.0488H3.652Z'%20fill='%23A61E69'/%3e%3cpath%20d='M16.5%205.22468C16.5%203.74948%2015.4824%202.51428%2014.1096%202.17188L13.812%202.97188C14.8584%203.18628%2015.6488%204.11748%2015.6488%205.22788V15.0519H9.16236C9.00236%2015.3527%208.83276%2015.6375%208.65356%2015.8999H16.4968V5.22468H16.5Z'%20fill='%23A61E69'/%3e%3cpath%20d='M11.5815%200.140137L8.03267%209.99614L6.28867%204.53374H4.15747L6.82307%2011.3785C7.06947%2012.0121%207.06947%2012.7129%206.82307%2013.3497C6.56387%2014.0121%206.10627%2014.8025%204.82947%2015.0361L4.77187%2015.0457V16.8633H4.84547C5.91107%2016.8185%206.73667%2016.4665%207.44387%2015.7561C8.16387%2015.0329%208.78147%2013.9065%209.38947%2012.2137L13.8919%200.140137H11.5815Z'%20fill='%23A61E69'/%3e%3c/svg%3e";var O5=function(){var e,n=Hn(),r=n.data,i=n.isLoading,s=n.isRefetching;if(i&&!s||(r==null||(e=r.mentions)===null||e===void 0||(e=e.mentionedInNumberOfQueries)===null||e===void 0?void 0:e.value)!==0)return null;var a=[{title:"Activate llms.txt",description:"Make sure AI systems know where to look and which pages matter most.",link:{url:"https://yoast.com/features/llms-txt/",text:"Set up llms.txt in Yoast SEO"}},{title:"Adopt an LLM-friendly content structure",description:"Start with clear definitions or TL;DRs, use subheadings, and format answers so LLMs can lift them directly.",link:{url:"https://yoast.com/yoast-seo-premium-september-9-2025/",text:"Learn how to generate AI summaries"}},{title:"Simplify writing and readability",description:"Use shorter sentences, plain language, and one idea per paragraph. This makes it easier for AI systems to recognize and quote your content."}];return d.jsx(w.Card,{className:"yst-overflow-visible yst-p-8 md:yst-col-span-2 yst-text-slate-800",children:d.jsxs(w.Card.Content,{className:"yst-max-w-2xl",children:[d.jsx(w.Title,{size:"2",className:"yst-mb-2 yst-text-slate-900",children:"We couldn't find your brand in this brand analysis..."}),d.jsx("p",{className:"yst-text-slate-600",children:"This means LLMs may not yet be surfacing your site in answers. Don't worry, here are some steps you can take today to boost your AI visibility:"}),d.jsx("ol",{className:"yst-my-0 yst-list-none yst-divide-y yst-divide-slate-200 [counter-reset:list-counter]",children:a.map(function(o,l){return d.jsx("li",{className:"yst-relative yst-py-4 last:yst-pb-0 [counter-increment:list-counter] before:yst-absolute before:yst-left-0 before:yst-font-semibold before:yst-text-slate-800 before:yst-content-[counter(list-counter)'.']",children:d.jsxs("div",{className:"yst-ml-4 yst-text-slate-600",children:[d.jsx("strong",{className:"yst-font-medium yst-text-slate-800",children:o.title}),d.jsx("br",{}),o.description,o.link&&d.jsxs(d.Fragment,{children:[d.jsx("br",{}),d.jsx("span",{className:"yst-mt-2 yst-block",children:d.jsxs("a",{href:o.link.url,target:"_blank",rel:"noopener noreferrer",className:"yst-font-medium",children:[o.link.text,d.jsx(Wu,{className:"yst-ml-1 yst-inline yst-h-3 yst-w-3"})]})})]})]})},l)})}),d.jsx(ti,{size:4,className:"yst-pt-0"}),d.jsxs("p",{className:"yst-text-slate-600",children:["Want to go deeper? →"," ",d.jsxs("a",{href:"https://yoast.com/how-to-optimize-content-for-llms/",target:"_blank",rel:"noopener noreferrer",className:"yst-font-medium",children:["Read our full guide on optimizing content for LLMs",d.jsx(Wu,{className:"yst-ml-1 yst-inline yst-h-3 yst-w-3"})]})]})]})})};function E5(t,e){return M5(t)||P5(t,e)||T5(t,e)||k5()}function k5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T5(t,e){if(t){if(typeof t=="string")return qd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qd(t,e):void 0}}function qd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function P5(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function M5(t){if(Array.isArray(t))return t}var go=function(){var e=Rt(),n=e.brandId,r=e.analysisId,i=Ar({query:{select:function(x){var M=x.data;return M==null?void 0:M.brands}}}),s=i.data,a=i.isLoading,o=Ea(n,r,{query:{enabled:!!n&&_b(r),select:function(x){var M=x.data;return M==null?void 0:M.analysis}}}),l=o.data,u=o.isLoading,c=l==null?void 0:l.status,f=a||u,y=s&&(s==null?void 0:s.length)>0,h=!f&&l&&c===wn.completed,p=D.useState(!1),m=E5(p,2),g=m[0],v=m[1],S=D.useRef(null),k=D.useRef(void 0),C=localStorage.getItem("yst_congratulations_toast_seen")==="true";D.useEffect(function(){return h&&!k.current&&!C&&(S.current=setTimeout(function(){v(!0),localStorage.setItem("yst_congratulations_toast_seen","true")},1e4)),!h&&k.current&&(v(!1),S.current&&(clearTimeout(S.current),S.current=null)),k.current=h,function(){S.current&&(clearTimeout(S.current),S.current=null)}},[h,C]);function A(b){var x=b.children;if(typeof window=="undefined")return null;var M=document.getElementById("tsx-toasts");return M?zf.createPortal(x,M):null}var j=function(x){var M=x.isVisible,_=x.setIsVisible,I=function(){_(!1)};return d.jsxs(w.Toast,{id:"toast",isVisible:M,setIsVisible:function(P){P||_(!1)},children:[d.jsxs("div",{className:"yst-mb-3 yst-flex yst-items-start yst-gap-3",children:[d.jsx("img",{src:j5}),d.jsxs("div",{className:"yst-grow",children:[d.jsx(w.Title,{size:"3",className:"yst-mb-1",children:"Congratulations on your first analysis!"}),"You’ve completed your brand analysis. We’d love to hear what you think."]}),d.jsx(w.Button,{variant:"tertiary",onClick:I,children:d.jsx(oy,{})})]}),d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-4",children:[d.jsx(w.Button,{variant:"tertiary",onClick:I,children:"Dismiss"}),d.jsxs(w.Button,{as:"a",href:"https://www.surveymonkey.com/r/HGSB8DL",target:"_blank",children:["Give feedback",d.jsx(ay,{className:"yst-ml-2"})]})]})]})};return a?d.jsx(Pa,{}):y?d.jsxs("div",{className:"yst-space-y-4",children:[d.jsx(CA,{}),h&&d.jsxs("div",{className:"yst-space-y-4",children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between",children:[d.jsx(w.Title,{size:"2",children:"Your brand analysis"}),d.jsxs(w.Button,{as:Fn,variant:"secondary",to:"/brands/".concat(n,"/brand-list"),className:te("yst-gap-1.5"),disabled:!n,children:[d.jsx(Zh,{})," Edit brand list"]})]}),d.jsxs("div",{className:"yst-grid yst-grid-cols-1 yst-gap-4 md:yst-grid-cols-2",children:[d.jsx(O5,{}),d.jsx(C5,{}),d.jsx(jA,{}),d.jsx(f5,{}),d.jsx(U1,{}),d.jsx(R1,{}),d.jsx(b1,{}),d.jsx(H1,{})]}),d.jsx(A,{children:d.jsx(j,{isVisible:g,setIsVisible:v})})]})]}):d.jsx(r1,{})};function u0(t){var e=t.children,n=t.description,r=t.title;return d.jsxs(w.Card.Header,{className:"yst-h-auto yst-flex-col yst-items-start yst-gap-0 yst-border-b-[1px] yst-border-b-slate-200 yst-bg-white yst-py-8",children:[r&&d.jsx(w.Title,{className:te({"yst-mb-3":n||e}),children:r}),n&&d.jsx("p",{children:n}),e]})}var I5=function(){return d.jsx(w.Card,{className:"yst-mb-4",children:d.jsxs(w.Card.Content,{className:"yst-flex yst-flex-col yst-gap-8",children:[d.jsx(w.Title,{size:"2",children:"Query - Best fish restaurant in Nijmegen"}),d.jsxs("div",{children:[d.jsx("p",{children:"AI Response:"}),d.jsx(w.Link,{href:"#todo",children:"Show more"})]}),d.jsxs("div",{children:[d.jsx("p",{children:"Extracted brands:"}),d.jsx(w.Badge,{children:"Example"}),d.jsx(w.Badge,{children:"Example"}),d.jsx(w.Badge,{children:"Example"}),d.jsx(w.Badge,{children:"Example"}),d.jsx(w.Badge,{children:"Example"})]}),d.jsxs(w.Table,{children:[d.jsx(w.Table.Head,{children:d.jsxs(w.Table.Row,{children:[d.jsx(w.Table.Header,{children:"URL"}),d.jsx(w.Table.Header,{children:"Associated brand"})]})}),d.jsxs(w.Table.Body,{children:[d.jsxs(w.Table.Row,{children:[d.jsx(w.Table.Cell,{children:d.jsx(w.Link,{href:"https://example.com",target:"_blank",children:"https://example.com"})}),d.jsx(w.Table.Cell,{children:"Example Brand"})]}),d.jsxs(w.Table.Row,{children:[d.jsx(w.Table.Cell,{children:d.jsx(w.Link,{href:"https://example2.com",target:"_blank",children:"https://example2.com"})}),d.jsx(w.Table.Cell,{children:"Example Brand 2"})]})]})]})]})})},L5=function(){return d.jsxs(w.Card,{children:[d.jsx(u0,{title:"Query history"}),d.jsx(w.Card,{className:"yst-mb-4",children:d.jsxs(w.Card.Content,{children:[d.jsxs("p",{className:"yst-mb-8",children:["Manna Fish Restaurant - Analysis performed on:"," ",d.jsx(w.Badge,{children:"2025-04-08 12:31:21"})]}),[0,1,2,3,4].map(function(e){return d.jsx(I5,{},e)})]})})]})},R5=D.lazy(function(){return Promise.resolve().then(()=>v6)}),N5=D.lazy(function(){return Promise.resolve().then(()=>G6)}),_5=D.lazy(function(){return Promise.resolve().then(()=>K6)}),D5=D.lazy(function(){return Promise.resolve().then(()=>u4)}),B5=D.lazy(function(){return Promise.resolve().then(()=>E4)}),F5=D.lazy(function(){return Promise.resolve().then(()=>G4)}),U5=new mm({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,staleTime:1e3*60*5},mutations:{retry:!1}}}),H5=D.lazy(function(){return Promise.resolve({default:function(){return null}})}),en=function(){return d.jsx("div",{className:"yst-flex yst-min-h-[200px] yst-items-center yst-justify-center",children:d.jsxs("div",{className:"yst-w-full yst-max-w-md yst-space-y-3",children:[d.jsx(w.SkeletonLoader,{className:"yst-h-8 yst-w-3/4"}),d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-full"}),d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-2/3"})]})})},W5=function(e){var n=e.hideNav,r=n===void 0?!1:n,i=e.disableLayout,s=i===void 0?!1:i,a=e.DebugInfo;return d.jsx(pp,{children:d.jsxs(Ve,{element:d.jsx(wb,{hideNav:r,disableLayout:s,DebugInfo:a}),children:[d.jsxs(Ve,{path:"/",element:d.jsx(zr,{}),children:[d.jsx(Ve,{index:!0,element:d.jsxs(D.Suspense,{fallback:d.jsx(en,{}),children:[d.jsx(Zt,{title:"AI Brand Insights"}),d.jsx(go,{})]})}),d.jsxs(Ve,{path:"brands/:brandId",element:d.jsx(Xu,{}),children:[d.jsx(Ve,{index:!0,element:d.jsx(go,{})}),d.jsx(Ve,{path:"brand-list",element:d.jsxs(D.Suspense,{fallback:d.jsx(en,{}),children:[d.jsx(Zt,{title:"Brands - AI Brand Insights"}),d.jsx(R5,{})]})}),d.jsx(Ve,{path:"analysis/:analysisId",element:d.jsx(Sb,{}),children:d.jsx(Ve,{index:!0,element:d.jsxs(D.Suspense,{fallback:d.jsx(en,{}),children:[d.jsx(Zt,{title:"Analysis - AI Brand Insights"}),d.jsx(go,{})]})})})]}),d.jsxs(Ve,{path:"/setup",element:d.jsxs(D.Suspense,{fallback:d.jsx(en,{}),children:[d.jsx(Zt,{title:"Setup brand - AI Brand Insights"}),d.jsx(_5,{})]}),children:[d.jsx(Ve,{index:!0,element:d.jsxs(D.Suspense,{fallback:d.jsx(en,{}),children:[d.jsx(Zt,{title:"AI Brand Insights"}),d.jsx(D5,{})]})}),d.jsxs(Ve,{path:":brandId",element:d.jsx(Xu,{}),children:[d.jsx(Ve,{path:"queries",element:d.jsxs(D.Suspense,{fallback:d.jsx(en,{}),children:[d.jsx(Zt,{title:"Setup queries - AI Brand Insights"}),d.jsx(B5,{})]})}),d.jsx(Ve,{path:"analysis",element:d.jsxs(D.Suspense,{fallback:d.jsx(en,{}),children:[d.jsx(Zt,{title:"Analysis - AI Brand Insights"}),d.jsx(F5,{})]})})]})]})]}),d.jsx(Ve,{path:"/settings",element:d.jsxs(D.Suspense,{fallback:d.jsx(en,{}),children:[d.jsx(Zt,{title:"Settings - AI Brand Insights"}),d.jsx(N5,{})]})}),d.jsx(Ve,{path:"/query-history",element:d.jsxs(D.Suspense,{fallback:d.jsx(en,{}),children:[d.jsx(Zt,{title:"Query history - AI Brand Insights"}),d.jsx(L5,{})]})}),!1]})})},Q5=function(e){var n=e.DebugInfo,r=e.hostAppProps;return d.jsxs(gm,{client:U5,children:[d.jsx(Ib,{children:d.jsxs(yv,{hostAppProps:r,children:[d.jsx(W5,{DebugInfo:n}),d.jsx(Lb,{})]})}),d.jsx(D.Suspense,{fallback:null,children:d.jsx(H5,{initialIsOpen:!1})})]})};function q5(t){var e=t.subpath,n=e===void 0?"/":e,r=t.onNavigate,i=Ct(),s=nt(),a=D.useRef(n),o=D.useRef(null),l=D.useRef(!1),u="".concat(s.pathname).concat(s.search).concat(s.hash),c=D.useCallback(r,[r]);return D.useEffect(function(){if(n===u){a.current=n;return}l.current||n!==a.current&&(a.current=n,o.current=n,l.current=!0,i(n,{replace:!0}),setTimeout(function(){l.current=!1},10))},[n,u,i]),D.useEffect(function(){l.current||u!==n&&u!==o.current&&(o.current=u,c(u))},[u,n,c]),null}function z5(t,e){return K5(t)||V5(t,e)||Y5(t,e)||G5()}function G5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y5(t,e){if(t){if(typeof t=="string")return zd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zd(t,e):void 0}}function zd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function V5(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function K5(t){if(Array.isArray(t))return t}var X5=function(e){var n=e.isRtl,r=n===void 0?!1:n,i=e.className,s=e.style,a=e.token,o=a===void 0?"":a,l=e.apiUrl,u=e.DebugInfo,c=e.basename,f=c===void 0?"/":c,y=e.subpath,h=y===void 0?"/":y,p=e.onNavigate,m=p===void 0?function(){}:p,g=e.onLogout,v=g===void 0?function(){}:g,S=e.onAddSubscription,k=S===void 0?function(){}:S,C=function(I,P){var H=I.endsWith("/")?I.slice(0,-1):I,N=P.startsWith("/")?P:"/".concat(P);return H+N||"/"},A=D.useState(!!(o||l)),j=z5(A,2),b=j[0],x=j[1],M={onAddSubscription:k,onLogout:v,onNavigate:m,DebugInfo:u,basename:f,subpath:h};return D.useEffect(function(){l&&zh(l),d2(typeof o!="function"?function(){return o}:o),x(!1)},[l,o]),b?d.jsx("div",{className:i,style:s,children:d.jsx(w.Spinner,{})}):d.jsx("div",{className:i,style:s,children:d.jsxs(hp,{initialEntries:[C(f,h)],basename:f||"/",children:[d.jsx(q5,{subpath:h,onNavigate:m}),d.jsx(w.Root,{context:{isRtl:r},children:d.jsx(Q5,{DebugInfo:u,hostAppProps:M})})]})})};function c0(t){var e=t.children,n=t.description,r=t.title;return d.jsxs(w.Paper.Header,{children:[r&&d.jsx(w.Title,{className:te({"yst-mb-3":n||e}),children:r}),n&&(typeof n=="string"?d.jsx("p",{children:n}):n),e]})}function gl(t){"@babel/helpers - typeof";return gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gl(t)}function Ei(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return yt(S,"_invoke",function(k,C,A){var j,b,x,M=0,_=A||[],I=!1,P={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,L){return j=O,b=0,x=t,P.n=L,a}};function H(N,O){for(b=N,x=O,e=0;!I&&M&&!L&&e<_.length;e++){var L,R=_[e],Y=P.p,z=R[2];N>3?(L=z===O)&&(x=R[(b=R[4])?5:(b=3,3)],R[4]=R[5]=t):R[0]<=Y&&((L=N<2&&Y<R[1])?(b=0,P.v=O,P.n=R[1]):Y<z&&(L=N<3||R[0]>O||O>z)&&(R[4]=N,R[5]=O,P.n=z,b=0))}if(L||N>1)return a;throw I=!0,O}return function(N,O,L){if(M>1)throw TypeError("Generator is already running");for(I&&O===1&&H(O,L),b=O,x=L;(e=b<2?t:x)||!I;){j||(b?b<3?(b>1&&(P.n=-1),H(b,x)):P.n=x:P.v=x);try{if(M=2,j){if(b||(N="next"),e=j[N]){if(!(e=e.call(j,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=j.return)&&e.call(j),b<2&&(x=TypeError("The iterator does not provide a '"+N+"' method"),b=1);j=t}else if((e=(I=P.n<0)?x:k.call(C,P))!==a)break}catch(R){j=t,b=1,x=R}finally{M=1}}return{value:e,done:I}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(yt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,yt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,yt(f,"constructor",u),yt(u,"constructor",l),l.displayName="GeneratorFunction",yt(u,i,"GeneratorFunction"),yt(f),yt(f,i,"Generator"),yt(f,r,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(Ei=function(){return{w:s,m:y}})()}function yt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}yt=function(a,o,l,u){if(o)i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var c=function(y,h){yt(a,y,function(p){return this._invoke(y,h,p)})};c("next",0),c("throw",1),c("return",2)}},yt(t,e,n,r)}function Gd(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function Yd(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Gd(s,r,i,a,o,"next",l)}function o(l){Gd(s,r,i,a,o,"throw",l)}a(void 0)})}}function vo(t,e){return e6(t)||$5(t,e)||Z5(t,e)||J5()}function J5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z5(t,e){if(t){if(typeof t=="string")return Vd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vd(t,e):void 0}}function Vd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function $5(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function e6(t){if(Array.isArray(t))return t}var t6=function(e){var n=e.isOpen,r=e.onClose,i=e.groupToEdit,s=e.allBrands,a=Rt(),o=a.brandId,l=a.analysisId,u=D.useState(""),c=vo(u,2),f=c[0],y=c[1],h=D.useState([]),p=vo(h,2),m=p[0],g=p[1],v=D.useState(!1),S=vo(v,2),k=S[0],C=S[1],A=Lt();D.useEffect(function(){if(n&&i&&i.type==="group"){var z;y(String(i.name||""));var F=((z=i.groupedBrands)===null||z===void 0?void 0:z.map(function(Q){return String(Q.id||"")}))||[];g(F)}},[n,i]);var j=Vh({mutation:{onSuccess:function(){var z=Yd(Ei().m(function Q(){return Ei().w(function(U){for(;;)switch(U.n){case 0:return U.n=1,Promise.all([A.invalidateQueries({queryKey:ra(o)}),A.invalidateQueries({queryKey:dn(o,"latest")}),A.invalidateQueries({queryKey:Xt(o,"latest")}),A.invalidateQueries({queryKey:dn(o,l)}),A.invalidateQueries({queryKey:Xt(o,l)})]);case 1:N();case 2:return U.a(2)}},Q)}));function F(){return z.apply(this,arguments)}return F}(),onError:function(F){console.error("Error creating brand group:",F)}}}),b=j.mutate,x=j.isPending,M=D2({mutation:{onSuccess:function(){var z=Yd(Ei().m(function Q(){return Ei().w(function(U){for(;;)switch(U.n){case 0:return U.n=1,Promise.all([A.invalidateQueries({queryKey:ra(o)}),A.invalidateQueries({queryKey:dn(o,"latest")}),A.invalidateQueries({queryKey:Xt(o,"latest")}),A.invalidateQueries({queryKey:dn(o,l)}),A.invalidateQueries({queryKey:Xt(o,l)})]);case 1:N(),R();case 2:return U.a(2)}},Q)}));function F(){return z.apply(this,arguments)}return F}(),onError:function(F){console.error("Error deleting brand group:",F),window.alert("An error occurred while ungrouping the brands. Please try again later.")}}}),_=M.mutate,I=M.isPending,P=typeof(i==null?void 0:i.id)=="string"&&i.id.length>0||typeof(i==null?void 0:i.id)=="number"&&!isNaN(i.id),H=function(){!f.trim()||!P||b({brandId:o,data:{groupName:f.trim(),brandIds:m}})},N=function(){y(""),g([]),r()},O=function(){return m.map(function(F){if(i&&i.type==="group"){var Q,U=(Q=i.groupedBrands)===null||Q===void 0?void 0:Q.find(function(W){return String(W.id)===F});if(U)return U.name||""}var q=s.find(function(W){return String(W.id)===F});return q?q.type==="group"?"Group: ".concat(q.name):q.name||"":""}).filter(Boolean)},L=function(){C(!0)},R=function(){return C(!1)},Y=function(){if(!P){console.error("Invalid groupId provided for ungrouping. groupToEdit?.id: ".concat(i==null?void 0:i.id," (type: ").concat(gl(i==null?void 0:i.id),")")),R();return}_({brandId:o,brandGroupId:i.id})};return!i||i.type!=="group"?null:d.jsxs(d.Fragment,{children:[d.jsx(w.Modal,{isOpen:n,onClose:k?function(){}:N,as:"div",children:d.jsx(w.Modal.Panel,{children:d.jsxs(w.Modal.Container,{children:[d.jsx(w.Modal.Container.Header,{className:"yst-mb-4",children:d.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Edit brand group"})}),d.jsxs(w.Modal.Container.Content,{className:"yst-mb-8 yst-space-y-4",children:[d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"Update the group name or ungroup brands by removing their tags."}),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"editGroupName",className:"yst-mb-2 yst-block yst-text-sm yst-font-medium",children:"Group name"}),d.jsx(w.TextInput,{id:"editGroupName",value:f,onChange:function(z){return y(z.target.value)},placeholder:"Enter group name",className:"yst-w-full"})]}),d.jsxs("div",{children:[d.jsx(w.TagField,{readOnly:!0,id:"editGroupedBrands",label:"Grouped brands",tags:O(),onRemoveTag:function(z){if(m.length<2)return C(!0);g(function(F){return F.filter(function(Q,U){return U!==z})})},onAddTag:function(){}}),m.length===0?d.jsx("p",{className:"yst-mt-2 yst-text-sm",children:'Click "Ungroup brands" to remove this group.'}):d.jsx("p",{className:"yst-mt-2 yst-text-sm yst-italic yst-text-gray-500",children:"Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped."})]})]}),d.jsx(w.Modal.Container.Footer,{children:d.jsxs("div",{className:"yst-flex yst-w-full yst-items-center yst-justify-between",children:[d.jsx("div",{className:"yst-flex yst-justify-start",children:d.jsx(w.Button,{variant:"tertiary",onClick:L,disabled:x||!P,className:"yst-text-red-600",children:"Ungroup brands"})}),d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[d.jsx(w.Button,{variant:"secondary",onClick:N,children:"Cancel"}),d.jsx(w.Button,{variant:"primary",onClick:H,disabled:!f.trim()||x,isLoading:x,children:x?"Saving...":"Save changes"})]})]})})]})})}),d.jsx(Ma,{isOpen:k,onClose:R,onConfirm:Y,disabled:!P||I,isLoading:I,title:"Ungroup this brand group?",description:d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"The group will be removed, but the brands inside will remain in your brand list."}),d.jsx("p",{children:"This action cannot be undone. To create a new group with these brands, simply select them and create a new group."})]}),confirmText:"Yes, ungroup"})]})};function vl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return pt(S,"_invoke",function(k,C,A){var j,b,x,M=0,_=A||[],I=!1,P={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,L){return j=O,b=0,x=t,P.n=L,a}};function H(N,O){for(b=N,x=O,e=0;!I&&M&&!L&&e<_.length;e++){var L,R=_[e],Y=P.p,z=R[2];N>3?(L=z===O)&&(x=R[(b=R[4])?5:(b=3,3)],R[4]=R[5]=t):R[0]<=Y&&((L=N<2&&Y<R[1])?(b=0,P.v=O,P.n=R[1]):Y<z&&(L=N<3||R[0]>O||O>z)&&(R[4]=N,R[5]=O,P.n=z,b=0))}if(L||N>1)return a;throw I=!0,O}return function(N,O,L){if(M>1)throw TypeError("Generator is already running");for(I&&O===1&&H(O,L),b=O,x=L;(e=b<2?t:x)||!I;){j||(b?b<3?(b>1&&(P.n=-1),H(b,x)):P.n=x:P.v=x);try{if(M=2,j){if(b||(N="next"),e=j[N]){if(!(e=e.call(j,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=j.return)&&e.call(j),b<2&&(x=TypeError("The iterator does not provide a '"+N+"' method"),b=1);j=t}else if((e=(I=P.n<0)?x:k.call(C,P))!==a)break}catch(R){j=t,b=1,x=R}finally{M=1}}return{value:e,done:I}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(pt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,pt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,pt(f,"constructor",u),pt(u,"constructor",l),l.displayName="GeneratorFunction",pt(u,i,"GeneratorFunction"),pt(f),pt(f,i,"Generator"),pt(f,r,function(){return this}),pt(f,"toString",function(){return"[object Generator]"}),(vl=function(){return{w:s,m:y}})()}function pt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}pt=function(a,o,l,u){if(o)i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var c=function(y,h){pt(a,y,function(p){return this._invoke(y,h,p)})};c("next",0),c("throw",1),c("return",2)}},pt(t,e,n,r)}function Kd(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function n6(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Kd(s,r,i,a,o,"next",l)}function o(l){Kd(s,r,i,a,o,"throw",l)}a(void 0)})}}function Xd(t,e){return a6(t)||s6(t,e)||i6(t,e)||r6()}function r6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i6(t,e){if(t){if(typeof t=="string")return Jd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jd(t,e):void 0}}function Jd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function a6(t){if(Array.isArray(t))return t}var o6=function(e){var n=e.isOpen,r=e.onClose,i=e.brandId,s=e.brandsToGroup,a=e.onGroupCreated,o=Lt(),l=Rt(),u=l.analysisId,c=D.useState(""),f=Xd(c,2),y=f[0],h=f[1],p=D.useState([]),m=Xd(p,2),g=m[0],v=m[1];D.useEffect(function(){if(n&&s.length>0){var x,M=(x=s[0])===null||x===void 0?void 0:x.name;h(String(M||"New Group")),v(s.map(function(_){var I;return String((I=_.id)!==null&&I!==void 0?I:"")}))}},[n,s]);var S=Vh({mutation:{onSuccess:function(){var x=n6(vl().m(function _(){return vl().w(function(I){for(;;)switch(I.n){case 0:return I.n=1,Promise.all([o.invalidateQueries({queryKey:ra(i)}),o.invalidateQueries({queryKey:Bl(i)}),o.invalidateQueries({queryKey:dn(i,"latest")}),o.invalidateQueries({queryKey:Xt(i,"latest")}),o.invalidateQueries({queryKey:dn(i,u)}),o.invalidateQueries({queryKey:Xt(i,u)})]);case 1:a==null||a(),A();case 2:return I.a(2)}},_)}));function M(){return x.apply(this,arguments)}return M}(),onError:function(M){console.error("Error creating group:",M)}}}),k=S.mutate,C=S.isPending,A=function(){h(""),v([]),r()},j=function(){if(!(!y.trim()||g.length===0)){var M=g.flatMap(function(_){var I=s.find(function(P){return String(P.id)===_});return I&&I.type==="group"&&Array.isArray(I.groupedBrands)?I.groupedBrands.map(function(P){return String(P.id)}):_});k({brandId:i,data:{groupName:y.trim(),brandIds:M.filter(function(_){return _!==""})}})}},b=function(M){v(function(_){return _.filter(function(I){return I!==M})})};return d.jsx(w.Modal,{isOpen:n,onClose:A,children:d.jsx(w.Modal.Panel,{children:d.jsxs(w.Modal.Container,{children:[d.jsx(w.Modal.Container.Header,{children:d.jsx(w.Modal.Title,{children:"Edit brand group"})}),d.jsxs(w.Modal.Container.Content,{className:"yst-space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{htmlFor:"groupName",className:"yst-mb-2 yst-block yst-text-sm yst-font-medium",children:"Group name"}),d.jsx(w.TextInput,{id:"groupName",value:y,onChange:function(x){return h(x.target.value)},placeholder:"Enter group name",className:"yst-w-full"})]}),d.jsxs("div",{children:[d.jsx(w.TagField,{readOnly:!0,id:"groupedBrands",label:"Brands in group (".concat(g.length,")"),tags:g.map(function(x){var M=s.find(function(_){return String(_.id)===x});return M?M.type==="group"?"Group: ".concat(M.name):M.name||"":""}).filter(Boolean),onRemoveTag:function(x){var M=g.find(function(_){var I=s.find(function(H){return String(H.id)===_});if(!I)return!1;var P=I.type==="group"?"Group: ".concat(I.name):I.name||"";return P===x});M&&b(M)},onAddTag:function(){}}),g.length===0&&d.jsx("p",{className:"yst-text-sm yst-italic yst-text-gray-500",children:"No brands selected"})]}),d.jsx("p",{children:"Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped."})]}),d.jsx(w.Modal.Container.Footer,{className:"yst-pt-4",children:d.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[d.jsx(w.Button,{variant:"secondary",onClick:A,disabled:C,children:"Cancel"}),d.jsx(w.Button,{variant:"primary",onClick:j,disabled:!y.trim()||g.length===0||C,children:C?"Saving...":"Save group"})]})})]})})})};function Zi(t){"@babel/helpers - typeof";return Zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zi(t)}function Zd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $d(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zd(Object(n),!0).forEach(function(r){d0(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function d0(t,e,n){return(e=l6(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l6(t){var e=u6(t,"string");return Zi(e)=="symbol"?e:e+""}function u6(t,e){if(Zi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Zi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function c6(t){return h6(t)||f6(t)||f0(t)||d6()}function d6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f6(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function h6(t){if(Array.isArray(t))return bl(t)}function Wt(t,e){return m6(t)||p6(t,e)||f0(t,e)||y6()}function y6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f0(t,e){if(t){if(typeof t=="string")return bl(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bl(t,e):void 0}}function bl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function p6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function m6(t){if(Array.isArray(t))return t}var g6=function(){var e,n=Ct(),r=D.useState(!1),i=Wt(r,2),s=i[0],a=i[1],o=D.useState({}),l=Wt(o,2),u=l[0],c=l[1],f=D.useState(""),y=Wt(f,2),h=y[0],p=y[1],m=D.useState(1),g=Wt(m,2),v=g[0],S=g[1],k=D.useState({}),C=Wt(k,2),A=C[0],j=C[1],b=D.useState(!1),x=Wt(b,2),M=x[0],_=x[1],I=D.useState(!1),P=Wt(I,2),H=P[0],N=P[1],O=D.useState(null),L=Wt(O,2),R=L[0],Y=L[1],z=Rt(),F=z.brandId;function Q(ue){return String(ue.id)}var U=I2(F,{query:{enabled:!!F}}),q=U.data,W=U.isLoading,X=10,Z=(q==null||(e=q.data)===null||e===void 0?void 0:e.associatedBrands.filter(function(ue){var ce,pe;return h?((ce=(pe=ue.name)===null||pe===void 0?void 0:pe.toLowerCase())!==null&&ce!==void 0?ce:"").includes(h.toLowerCase()):!0}))||[],re=Math.ceil(Z.length/X),ae=(v-1)*X,fe=c6(Z).sort(function(ue,ce){return ue.type==="group"&&ce.type!=="group"?-1:ue.type!=="group"&&ce.type==="group"?1:0}),oe=fe.slice(ae,ae+X),ve=function(ce){var pe=Z.find(function(Ee){return Q(Ee)===ce});pe&&pe.type==="group"&&(Y(pe),N(!0))},G=Object.entries(A).filter(function(ue){var ce=Wt(ue,2),pe=ce[1];return pe}).map(function(ue){var ce=Wt(ue,1),pe=ce[0];return pe}),Oe=function(){_(!0)},Ye=function(ce){p(ce.target.value),S(1)},We=function(ce){j(function(pe){return $d($d({},pe),{},d0({},ce,!pe[ce]))})},Pe=function(){n("/")},_e=function(){j({}),c({}),a(!1)},Ie=function(){_(!1)},ze=function(){j({}),S(1),p("")},wr=function(){N(!1),Y(null)},Qn=function(ce,pe){return ce in u?!!u[ce]:!pe.isHidden},Jt=[{Header:"Brand name",accessor:"name",Cell:function(ce){var pe=ce.value,Ee=ce.row;return d.jsx("span",{className:"yst-font-medium yst-text-slate-900",children:d.jsxs("div",{className:"yst-flex yst-items-center yst-gap-2",children:[d.jsx(w.Checkbox,{id:"brand-checkbox-".concat(Ee.id),checked:!!A[Q(Ee)],onChange:function(){return We(Q(Ee))},value:Q(Ee),label:Ee.isSelf?d.jsx(Fi,{children:pe}):pe,name:"brand-checkbox-".concat(Ee.id),disabled:!Qn(Q(Ee),Ee)}),Ee.type==="group"&&d.jsx(Kb,{className:"yst-h-4 yst-w-4 yst-text-slate-400"})]})})},LoadingComponent:function(ce){var pe=ce.id,Ee=pe===void 0?"":pe;return d.jsxs("div",{className:"yst-flex",children:[d.jsx(w.Checkbox,{id:"loading-row-checkbox-".concat(Ee),value:"loading",label:"",disabled:!0,name:"brand-checkbox-".concat(Ee)})," ",d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-32",id:"loading-row-skeleton-".concat(Ee)})]})}},{Header:"Actions",accessor:"id",Cell:function(ce){var pe=ce.value,Ee=ce.row;return d.jsx(d.Fragment,{children:Ee.type==="group"?d.jsxs(w.Button,{variant:"tertiary",size:"small",onClick:function(){return ve(String(pe!=null?pe:""))},className:"yst-gap-1.5 yst-px-0",disabled:!Qn(Q(Ee),Ee),children:[d.jsx(Zh,{className:"yst-h-4 yst-w-4"}),"Edit group"]}):void 0})},LoadingComponent:function(){return d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-24"})}}];return d.jsxs(w.Paper,{className:"yst-mx-auto yst-max-w-2xl",children:[d.jsx(c0,{title:"Brand list ".concat(""),children:d.jsx("p",{children:"These are the brands found in responses to your example prompts. Group related brands to improve your analysis. You can rename or exclude irrelevant brands, and new brands will be added automatically if they appear in future analysis runs."})}),d.jsxs(w.Paper.Content,{children:[d.jsx("div",{className:"yst-mb-6",children:d.jsx(w.TextInput,{id:"brand-search",label:"Search brands",placeholder:"Search brands",value:h,onChange:Ye})}),d.jsx("div",{className:"yst-mb-6",children:d.jsxs(w.Table,{columns:Jt,className:"yst-w-full",variant:"minimal",children:[d.jsx(w.Table.Head,{children:d.jsx(w.Table.Row,{children:Jt.map(function(ue){return d.jsx(w.Table.Header,{children:ue.Header},ue.accessor)})})}),d.jsx(w.Table.Body,{children:W?[1,2,3].map(function(ue,ce){return d.jsx(w.Table.Row,{children:Jt.map(function(pe,Ee){return d.jsx(w.Table.Cell,{children:d.jsx(pe.LoadingComponent,{id:"skeleton-".concat(ce,"-").concat(Ee)},pe.accessor)},"cell-".concat(Ee))})},ce)}):oe.length===0?d.jsx(w.Table.Row,{children:d.jsx(w.Table.Cell,{colSpan:Jt.length,children:d.jsxs("div",{className:"yst-py-12 yst-text-center",children:[d.jsx("h3",{className:"yst-mt-4 yst-text-lg yst-font-medium yst-text-slate-900",children:"No brands found"}),d.jsx("p",{className:"yst-mt-2 yst-text-sm yst-text-slate-500",children:h?'No brands match "'.concat(h,'". Try a different search term.'):"No brands have been found yet. Run an analysis to discover brands."}),h&&d.jsx(w.Button,{variant:"secondary",size:"small",onClick:function(){p(""),S(1)},className:"yst-mt-4",children:"Clear search"})]})})}):oe.map(function(ue){return d.jsx(w.Table.Row,{children:Jt.map(function(ce){return d.jsx(w.Table.Cell,{children:ce.Cell?ce.Cell({value:ue[ce.accessor],row:ue}):ue[ce.accessor]},ce.accessor)})},ue.id)})})]})}),d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between",children:[d.jsxs(w.Button,{variant:"secondary",onClick:Oe,className:"yst-mb-0 yst-gap-2",disabled:G.length<2,children:[d.jsx(Qv,{})," Group brands"]}),d.jsx(w.Pagination,{variant:"text",current:v,total:re,onNavigate:S,className:"yst-flex-row",screenReaderTextPrevious:"Previous page",screenReaderTextNext:"Next page"})]})]}),d.jsx(Wl,{children:d.jsx("div",{className:"yst-flex yst-items-center yst-justify-end yst-gap-4",children:s?d.jsxs(d.Fragment,{children:[d.jsx(w.Button,{variant:"secondary",className:"yst-mb-0",onClick:_e,children:"Discard changes"}),d.jsx(w.Button,{variant:"primary",className:"yst-mb-0",onClick:Pe,children:"Save changes"})]}):d.jsx(w.Button,{as:Fn,to:"/brands/".concat(F),variant:"tertiary",className:"yst-mb-0",children:"Return to analysis"})})}),d.jsx(o6,{isOpen:M,onClose:Ie,brandId:F,brandsToGroup:Z.filter(function(ue){return G.includes(Q(ue))}),onGroupCreated:ze}),d.jsx(t6,{isOpen:H,onClose:wr,groupToEdit:R,allBrands:Z})]})};const v6=Object.freeze(Object.defineProperty({__proto__:null,default:g6},Symbol.toStringTag,{value:"Module"}));function b6(t,e){return S6(t)||w6(t,e)||A6(t,e)||x6()}function x6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A6(t,e){if(t){if(typeof t=="string")return ef(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ef(t,e):void 0}}function ef(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function w6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function S6(t){if(Array.isArray(t))return t}var C6=function(e){var n=e.isOpen,r=e.onClose,i=Lt(),s=Hl(),a=D.useState(""),o=b6(a,2),l=o[0],u=o[1],c=ov({mutation:{onSettled:function(){i.clear()},onSuccess:function(){r(),s("Successfully deleted all data.",{variant:"success"})},onError:function(){i.clear(),s("Failed to delete all data. Please try again later.",{variant:"error"})}}}),f=c.mutate,y=c.isPending;return D.useEffect(function(){n&&u("")},[n]),d.jsx(Ma,{isOpen:n,onClose:r,onConfirm:function(){f()},isLoading:y,disabled:l!=="DELETE ALL",title:"Delete all data?",description:d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"This will permanently erase all brands, analysis results, and queries from your account."}),d.jsx("p",{children:"This action cannot be undone."}),d.jsx(w.TextField,{id:"delete-all-confirmation",label:"To confirm, please type DELETE ALL:",value:l,onChange:function(h){return u(h.target.value)}}),d.jsx("p",{children:d.jsx("em",{children:"This is to make sure you understand this action is permanent."})})]}),confirmText:"Yes, delete all data",cancelText:"No, go back"})};function xl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return mt(S,"_invoke",function(k,C,A){var j,b,x,M=0,_=A||[],I=!1,P={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,L){return j=O,b=0,x=t,P.n=L,a}};function H(N,O){for(b=N,x=O,e=0;!I&&M&&!L&&e<_.length;e++){var L,R=_[e],Y=P.p,z=R[2];N>3?(L=z===O)&&(x=R[(b=R[4])?5:(b=3,3)],R[4]=R[5]=t):R[0]<=Y&&((L=N<2&&Y<R[1])?(b=0,P.v=O,P.n=R[1]):Y<z&&(L=N<3||R[0]>O||O>z)&&(R[4]=N,R[5]=O,P.n=z,b=0))}if(L||N>1)return a;throw I=!0,O}return function(N,O,L){if(M>1)throw TypeError("Generator is already running");for(I&&O===1&&H(O,L),b=O,x=L;(e=b<2?t:x)||!I;){j||(b?b<3?(b>1&&(P.n=-1),H(b,x)):P.n=x:P.v=x);try{if(M=2,j){if(b||(N="next"),e=j[N]){if(!(e=e.call(j,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=j.return)&&e.call(j),b<2&&(x=TypeError("The iterator does not provide a '"+N+"' method"),b=1);j=t}else if((e=(I=P.n<0)?x:k.call(C,P))!==a)break}catch(R){j=t,b=1,x=R}finally{M=1}}return{value:e,done:I}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(mt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,mt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,mt(f,"constructor",u),mt(u,"constructor",l),l.displayName="GeneratorFunction",mt(u,i,"GeneratorFunction"),mt(f),mt(f,i,"Generator"),mt(f,r,function(){return this}),mt(f,"toString",function(){return"[object Generator]"}),(xl=function(){return{w:s,m:y}})()}function mt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}mt=function(a,o,l,u){if(o)i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var c=function(y,h){mt(a,y,function(p){return this._invoke(y,h,p)})};c("next",0),c("throw",1),c("return",2)}},mt(t,e,n,r)}function tf(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function j6(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){tf(s,r,i,a,o,"next",l)}function o(l){tf(s,r,i,a,o,"throw",l)}a(void 0)})}}function O6(t,e){return P6(t)||T6(t,e)||k6(t,e)||E6()}function E6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
60
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k6(t,e){if(t){if(typeof t=="string")return nf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nf(t,e):void 0}}function nf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function T6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function P6(t){if(Array.isArray(t))return t}var M6=function(e){var n=e.isOpen,r=e.brandId,i=e.onClose,s=e.brandName,a=Lt(),o=Hl(),l=D.useState(""),u=O6(l,2),c=u[0],f=u[1],y=Y2({mutation:{onSuccess:function(){var m=j6(xl().m(function v(){return xl().w(function(S){for(;;)switch(S.n){case 0:return S.n=1,Promise.all([a.invalidateQueries({queryKey:Kt()}),a.invalidateQueries({queryKey:Ta()})]);case 1:o("Brand deleted successfully",{variant:"success"}),i();case 2:return S.a(2)}},v)}));function g(){return m.apply(this,arguments)}return g}(),onError:function(g){var v=g instanceof Error?g.message:"Please try again later.";o("Failed to delete brand. ".concat(v),{variant:"error"})}}}),h=y.mutate,p=y.isPending;return D.useEffect(function(){n&&f("")},[n]),d.jsx(Ma,{isOpen:n,onClose:i,onConfirm:function(){if(!s){console.error("Brand name is required for deletion confirmation");return}h({brandId:r})},isLoading:p,disabled:c.toLowerCase()!==(s==null?void 0:s.toLowerCase()),title:"Delete brand?",description:d.jsxs(d.Fragment,{children:[d.jsx("p",{children:"This will permanently delete all data associated with this brand, including past analyses and query history."}),d.jsx("p",{children:"This action cannot be undone."}),d.jsx(w.TextField,{id:"delete-modal-brand-name-confirmation",label:"To confirm, please type your brand name ".concat(s,":"),value:c,onChange:function(m){return f(m.target.value)}}),d.jsx("p",{children:d.jsx("em",{children:"This is to make sure you understand this action is permanent."})})]}),confirmText:"Yes, delete brand",cancelText:"No, go back"})};function $i(t){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$i(t)}function ki(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return gt(S,"_invoke",function(k,C,A){var j,b,x,M=0,_=A||[],I=!1,P={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,L){return j=O,b=0,x=t,P.n=L,a}};function H(N,O){for(b=N,x=O,e=0;!I&&M&&!L&&e<_.length;e++){var L,R=_[e],Y=P.p,z=R[2];N>3?(L=z===O)&&(x=R[(b=R[4])?5:(b=3,3)],R[4]=R[5]=t):R[0]<=Y&&((L=N<2&&Y<R[1])?(b=0,P.v=O,P.n=R[1]):Y<z&&(L=N<3||R[0]>O||O>z)&&(R[4]=N,R[5]=O,P.n=z,b=0))}if(L||N>1)return a;throw I=!0,O}return function(N,O,L){if(M>1)throw TypeError("Generator is already running");for(I&&O===1&&H(O,L),b=O,x=L;(e=b<2?t:x)||!I;){j||(b?b<3?(b>1&&(P.n=-1),H(b,x)):P.n=x:P.v=x);try{if(M=2,j){if(b||(N="next"),e=j[N]){if(!(e=e.call(j,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=j.return)&&e.call(j),b<2&&(x=TypeError("The iterator does not provide a '"+N+"' method"),b=1);j=t}else if((e=(I=P.n<0)?x:k.call(C,P))!==a)break}catch(R){j=t,b=1,x=R}finally{M=1}}return{value:e,done:I}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(gt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,gt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,gt(f,"constructor",u),gt(u,"constructor",l),l.displayName="GeneratorFunction",gt(u,i,"GeneratorFunction"),gt(f),gt(f,i,"Generator"),gt(f,r,function(){return this}),gt(f,"toString",function(){return"[object Generator]"}),(ki=function(){return{w:s,m:y}})()}function gt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}gt=function(a,o,l,u){if(o)i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var c=function(y,h){gt(a,y,function(p){return this._invoke(y,h,p)})};c("next",0),c("throw",1),c("return",2)}},gt(t,e,n,r)}function rf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function bn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rf(Object(n),!0).forEach(function(r){I6(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function I6(t,e,n){return(e=L6(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L6(t){var e=R6(t,"string");return $i(e)=="symbol"?e:e+""}function R6(t,e){if($i(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if($i(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sf(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function af(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){sf(s,r,i,a,o,"next",l)}function o(l){sf(s,r,i,a,o,"throw",l)}a(void 0)})}}function N6(t,e){return F6(t)||B6(t,e)||D6(t,e)||_6()}function _6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D6(t,e){if(t){if(typeof t=="string")return of(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?of(t,e):void 0}}function of(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function B6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function F6(t){if(Array.isArray(t))return t}var U6=function(e){var n,r,i=e.brand,s=e.isLast,a=e.onDelete,o=i.id,l=Rt(),u=l.hostAppProps,c=l.analysisId,f=u.onAddSubscription,y=Ct(),h=ds(),p=h.setBrandId,m=D.useState(!1),g=N6(m,2),v=g[0],S=g[1],k=Lt(),C=cs({query:{select:function(O){var L=O.data;return L},staleTime:5*1e3,refetchOnWindowFocus:!0,refetchInterval:30*1e3}}),A=C.data,j=Kh({mutation:{onMutate:function(){var N=af(ki().m(function L(R){var Y,z,F;return ki().w(function(Q){for(;;)switch(Q.n){case 0:return Y=R.brandId,z=R.data,Q.n=1,k.cancelQueries({queryKey:Kt()});case 1:return F=k.getQueryData(Kt()),k.setQueryData(Kt(),function(U){var q,W;return U&&bn(bn({},U),{},{data:bn(bn({},U.data),{},{brands:((q=(W=U.data)===null||W===void 0?void 0:W.brands)!==null&&q!==void 0?q:[]).map(function(X){return X.id===Y?bn(bn({},X),{},{settings:bn(bn({},X.settings),{},{enableAutomaticAnalysis:z.enableAutomaticAnalysis})}):X})})})}),Q.a(2,{previous:F})}},L)}));function O(L){return N.apply(this,arguments)}return O}(),onSuccess:function(){if(i&&i.settings&&i.settings.enableAutomaticAnalysis===!1)return S(!1);S(!P)},onError:function(O,L,R){R!=null&&R.previous&&k.setQueryData(Kt(),R.previous)},onSettled:function(){var N=af(ki().m(function L(){return ki().w(function(R){for(;;)switch(R.n){case 0:return R.n=1,Promise.all([k.invalidateQueries({queryKey:Kt()}),k.invalidateQueries({queryKey:Ta()}),k.invalidateQueries({queryKey:ka(o)}),k.invalidateQueries({queryKey:dn(o,"latest")}),k.invalidateQueries({queryKey:Xt(o,"latest")}),k.invalidateQueries({queryKey:dn(o,c)}),k.invalidateQueries({queryKey:Xt(o,c)})]);case 1:return R.a(2)}},L)}));function O(){return N.apply(this,arguments)}return O}()}}),b=j.mutate,x=j.isPending,M=function(O){b({brandId:o,data:{enableAutomaticAnalysis:O}})},_=function(O){if(O){if(!I)return S(!0);if(!P)return M(!0);S(!0)}else M(!1)},I=Number(A==null?void 0:A.maxNumberOfActiveBrands)-Number(A==null?void 0:A.numberOfActiveBrands)>0||!!(i!=null&&(n=i.settings)!==null&&n!==void 0&&n.enableAutomaticAnalysis),P=my(i==null?void 0:i.firstNextAnalysisOpportunity),H=(i==null?void 0:i.setupStatus)==="pendingQuerySelection";return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:te("yst-flex yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-4 yst-py-4 yst-text-slate-800",{"yst-border-b-[1px] yst-border-b-slate-200":!s}),children:[d.jsx(w.Toggle,{id:"toggle-brand-".concat(i==null?void 0:i.id),checked:i==null||(r=i.settings)===null||r===void 0?void 0:r.enableAutomaticAnalysis,screenReaderLabel:"Enable or disable automatic analysis for this brand",onChange:_,disabled:(i==null?void 0:i.id)==="loading"||x}),d.jsxs("div",{className:"yst-font-medium",children:[(i==null?void 0:i.id)==="loading"?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-32"}):i==null?void 0:i.name,H&&d.jsx("div",{children:d.jsx(w.Link,{variant:"primary",onClick:function(){i.id?(p(i.id),y("/setup/".concat(i.id,"/queries"))):console.error("Brand ID is missing.")},children:"Finish setup"})}),(i==null?void 0:i.nextScheduledAnalysis)&&d.jsxs("div",{className:"yst-font-normal yst-italic yst-text-slate-500",children:["Next analysis:"," ",tl(i.nextScheduledAnalysis)]})]}),d.jsx("div",{className:"yst-ml-auto yst-flex yst-flex-row yst-items-center yst-justify-end yst-gap-2 yst-text-slate-800",children:(i==null?void 0:i.id)==="loading"?d.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):d.jsxs(w.Button,{size:"small",variant:"tertiary",className:"yst-gap-1 yst-text-red-600 *:hover:yst-text-red-700",onClick:function(){i!=null&&i.id&&a(i.id)},disabled:(i==null?void 0:i.id)==="loading",children:[d.jsx(Fl,{})," Delete brand"]})})]}),d.jsx(w.Modal,{isOpen:v,onClose:function(){return S(!1)},position:"center",as:"div",className:te({"yst-mx-auto yst-max-w-xl":I}),children:I?d.jsx(w.Modal.Panel,{children:P?d.jsxs(d.Fragment,{children:[d.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Start brand analysis now?"})}),d.jsxs(w.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:[d.jsx("p",{children:"Activating this brand will immediately start a new analysis."}),d.jsx("p",{children:"This will use one of your weekly analyses included in your subscription."})]}),d.jsxs(w.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[d.jsx(w.Button,{variant:"secondary",onClick:function(){return S(!1)},children:"Cancel"}),d.jsx(w.Button,{variant:"primary",onClick:function(){M(!0)},isLoading:x,children:"Yes, start analysis"})]})]}):d.jsxs(d.Fragment,{children:[d.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Automatic analysis enabled"})}),d.jsxs(w.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:[d.jsx("p",{children:"You've turned on the weekly automatic analysis for this brand."}),d.jsxs("p",{children:["The next analysis will run on"," ",d.jsx("span",{className:"yst-font-medium",children:tl(i==null?void 0:i.nextScheduledAnalysis)||"the next analysis cycle"}),"."]})]}),d.jsx(w.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:d.jsx(w.Button,{variant:"primary",onClick:function(){return S(!1)},children:"Got it"})})]})}):d.jsxs(w.Modal.Panel,{children:[d.jsx("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(w.Modal.Title,{as:"h3",className:"yst-text-center yst-text-lg yst-font-medium",children:"You've reached your active brand limit"})}),d.jsx(w.Modal.Container.Content,{children:d.jsx("p",{className:"yst-text-center",children:"Each subscription lets you activate 1 brand. Add another subscription or deactivate an existing brand to activate this brand."})})]})}),d.jsx(w.Modal.Container.Footer,{children:d.jsxs("div",{className:"yst-flex yst-flex-col yst-justify-stretch yst-gap-2",children:[f&&d.jsxs(w.Button,{variant:"upsell",className:"yst-flex yst-gap-1",onClick:f,children:[d.jsx($h,{}),"Add a subscription"]}),d.jsx(w.Button,{variant:"tertiary",className:"",onClick:function(){return S(!1)},children:"Manage active brands"})]})})]})})]})},lf,uf,cf;function bo(t,e){return q6(t)||Q6(t,e)||W6(t,e)||H6()}function H6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
62
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W6(t,e){if(t){if(typeof t=="string")return df(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?df(t,e):void 0}}function df(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Q6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function q6(t){if(Array.isArray(t))return t}function su(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var ff=ys(lf||(lf=su(["xl:yst-w-1/3"]))),hf=ys(uf||(uf=su(["xl:yst-w-2/3"]))),yf=ys(cf||(cf=su(["yst-flex yst-flex-col yst-gap-8 xl:yst-flex-row"]))),z6=function(){var e,n,r,i,s=D.useState(!1),a=bo(s,2),o=a[0],l=a[1],u=D.useState(!1),c=bo(u,2),f=c[0],y=c[1],h=D.useState(null),p=bo(h,2),m=p[0],g=p[1],v=cs({query:{select:function(b){var x=b.data;return x}}}),S=v.data,k=Ar({query:{select:function(b){var x=b.data;return x==null?void 0:x.brands},staleTime:5*1e3,refetchOnWindowFocus:!0,refetchInterval:30*1e3}}),C=k.data,A=C==null?void 0:C.find(function(j){return j.id===m});return d.jsxs("form",{children:[d.jsxs(w.Card,{children:[d.jsx(u0,{title:"Settings",description:"Manage your brand settings and data. You can update analysis preferences or delete brands from your account."}),d.jsxs(w.Card.Content,{children:[d.jsxs(yf,{children:[d.jsxs(ff,{className:"yst-space-y-2",children:[d.jsx(w.Title,{size:"4",children:"Brands"}),d.jsxs("p",{children:["You have"," ",d.jsxs("b",{children:[(e=S==null?void 0:S.activeSubscriptions)!==null&&e!==void 0?e:"—"," subscription(s)"]}),". This gives you up to"," ",d.jsxs("b",{children:[(n=S==null?void 0:S.maxNumberOfActiveBrands)!==null&&n!==void 0?n:"—"," active brand(s)"]}),", for which we’ll automatically run a weekly analysis."]}),d.jsx("p",{children:"You can activate or deactivate brands anytime, or permanently delete a brand and all its data."})]}),d.jsxs(hf,{children:[C&&d.jsxs("p",{className:"yst-flex yst-w-full yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-2 yst-border-b-[1px] yst-border-b-slate-200 yst-py-4 yst-font-medium yst-text-slate-800",children:["Active brands: ",(r=S==null?void 0:S.numberOfActiveBrands)!==null&&r!==void 0?r:"—"," of"," ",(i=S==null?void 0:S.maxNumberOfActiveBrands)!==null&&i!==void 0?i:"—"]}),C&&C.length===0&&d.jsxs("p",{className:"yst-mt-4 yst-text-slate-500",children:["No brands found. Please"," ",d.jsx(w.Link,{as:Fn,to:"/setup",children:"add a brand"})," ","to start analyzing."]}),(C!=null?C:[{id:"loading",name:"Loading..."}]).map(function(j,b,x){return d.jsx(U6,{brand:j,isLast:b===x.length-1,onDelete:function(M){g(M),l(!0)}},j.id)})]})]}),d.jsx(ti,{}),d.jsxs(yf,{children:[d.jsxs(ff,{className:"yst-space-y-2",children:[d.jsx(w.Title,{size:"4",children:"Delete all data"}),d.jsx("p",{children:"Permanently delete all brands, analysis results, and query history from your account."})]}),d.jsxs(hf,{className:"yst-space-y-4",children:[d.jsxs(w.Button,{variant:"error",onClick:function(){y(!0)},disabled:(C==null?void 0:C.length)===0,children:[d.jsx(Fl,{})," Delete all data"]}),d.jsx("p",{children:d.jsxs("i",{children:[d.jsx("b",{children:"Note:"})," This will erase everything and cannot be reversed."]})})]})]})]})]}),d.jsx(M6,{isOpen:o,onClose:function(){l(!1),g(null)},brandId:m||"",brandName:A==null?void 0:A.name}),d.jsx(C6,{isOpen:f,onClose:function(){y(!1)}})]})};const G6=Object.freeze(Object.defineProperty({__proto__:null,default:z6},Symbol.toStringTag,{value:"Module"}));function ma(t){"@babel/helpers - typeof";return ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ma(t)}var Al=[{path:"/setup",id:1,title:"Brand & location info",description:"Enter a few basic details about your brand so we can generate relevant queries people might use in AI models like ChatGPT. This helps us analyze how visible your brand is in their responses."},{path:"/setup/:brandId/queries",id:2,title:"Queries",description:"Review the queries we've generated from your brand info. These are phrases people might type into AI models that could trigger your brand to appear."},{path:"/setup/:brandId/analysis",id:3,title:"Analysis",description:"We're checking how your brand shows up in AI. Your queries will now be tested in ChatGPT. This process should take around 5 minutes."}],Y6=function(e){return Al.find(function(n){return!!qr(n.path,e)})||Al[0]};function V6(){var t=nt(),e=Y6(t.pathname);return d.jsxs(w.Paper,{className:"yst-mx-auto yst-max-w-2xl",children:[d.jsx(c0,{title:d.jsx(h0,{currentStep:e,steps:Al}),description:e.description}),d.jsx(w.Paper.Content,{children:d.jsx(zr,{})})]})}var h0=function(e){var n=e.title,r=e.currentStep,i=e.steps;return d.jsxs("span",{className:"yst-inline-flex yst-flex-row yst-gap-4",children:[d.jsxs("span",{className:"yst-tracking-[.2em] yst-text-slate-400",children:[d.jsx("span",{className:"yst-text-slate-900",children:ma(r)==="object"?r.id:r}),"/",Array.isArray(i)?i.length:i]}),d.jsx("span",{children:ma(r)==="object"?r.title:n||"Step ".concat(r)})]})};const K6=Object.freeze(Object.defineProperty({__proto__:null,SetupPaperTitle:h0,default:V6},Symbol.toStringTag,{value:"Module"}));var y0=function(e){var n=e.onBack,r=e.variant,i=r===void 0?"ai":r,s=e.buttonText,a=e.onButtonClick,o=e.isButtonDisabled,l=o===void 0?!1:o,u=e.isLoading,c=u===void 0?!1:u;return d.jsx(Wl,{nestedInPaperContent:!0,children:d.jsxs("div",{className:te({"yst-flex yst-flex-1 yst-flex-col yst-items-start yst-justify-between yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-between":n}),children:[n&&d.jsx(w.Button,{variant:"tertiary",onClick:n,className:"yst-no-underline",children:"← Back"}),d.jsx("div",{className:te("yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-end"),children:d.jsxs(w.Button,{onClick:a,variant:i==="ai"?"primary":i,className:"yst-gap-1.5",style:i==="ai"?{background:"linear-gradient(102deg, #A61E69 0%, #6366F1 100%)",color:"#fff"}:{},disabled:l,type:"submit",isLoading:c,children:[i==="ai"&&d.jsx(ey,{}),s]})})]})})},X6=[{value:"US",label:"United States"},{value:"GB",label:"United Kingdom"},{value:"CA",label:"Canada"},{value:"AU",label:"Australia"},{value:"DE",label:"Germany"},{value:"FR",label:"France"},{value:"NL",label:"Netherlands"}],J6=[{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"PW",label:"Belau"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire, Saint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"CV",label:"Cape Verde"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo (Brazzaville)"},{value:"CD",label:"Congo (Kinshasa)"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czech Republic"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"CI",label:"Ivory Coast"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"XK",label:"Kosovo"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Laos"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MK",label:"North Macedonia"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia"},{value:"MD",label:"Moldova"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MP",label:"Northern Mariana Islands"},{value:"KP",label:"North Korea"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PS",label:"Palestinian Territory"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Reunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russia"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"SX",label:"Saint Martin (Dutch part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"SM",label:"San Marino"},{value:"ST",label:"São Tomé and Príncipe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia/Sandwich Islands"},{value:"KR",label:"South Korea"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SZ",label:"Eswatini"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syria"},{value:"TW",label:"Taiwan"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"UM",label:"United States (US) Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VA",label:"Vatican"},{value:"VE",label:"Venezuela"},{value:"VN",label:"Vietnam"},{value:"VG",label:"Virgin Islands (British)"},{value:"VI",label:"Virgin Islands (US)"},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"WS",label:"Samoa"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],xo=[].concat(X6,J6,[{value:"OTHER",label:"Other"}]),Z6=[{value:"en",label:"English"},{value:"es",label:"Spanish"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"zh",label:"Chinese (Mandarin)"},{value:"ja",label:"Japanese"}],$6=[{value:"sq",label:"Albanian"},{value:"am",label:"Amharic"},{value:"ar",label:"Arabic"},{value:"hy",label:"Armenian"},{value:"bn",label:"Bengali"},{value:"bs",label:"Bosnian"},{value:"bg",label:"Bulgarian"},{value:"my",label:"Burmese"},{value:"ca",label:"Catalan"},{value:"hr",label:"Croatian"},{value:"cs",label:"Czech"},{value:"da",label:"Danish"},{value:"nl",label:"Dutch"},{value:"et",label:"Estonian"},{value:"fi",label:"Finnish"},{value:"ka",label:"Georgian"},{value:"el",label:"Greek"},{value:"gu",label:"Gujarati"},{value:"hi",label:"Hindi"},{value:"hu",label:"Hungarian"},{value:"is",label:"Icelandic"},{value:"id",label:"Indonesian"},{value:"it",label:"Italian"},{value:"kn",label:"Kannada"},{value:"kk",label:"Kazakh"},{value:"ko",label:"Korean"},{value:"lv",label:"Latvian"},{value:"lt",label:"Lithuanian"},{value:"mk",label:"Macedonian"},{value:"ms",label:"Malay"},{value:"ml",label:"Malayalam"},{value:"mr",label:"Marathi"},{value:"mn",label:"Mongolian"},{value:"no",label:"Norwegian"},{value:"fa",label:"Persian"},{value:"pl",label:"Polish"},{value:"pt",label:"Portuguese"},{value:"pa",label:"Punjabi"},{value:"ro",label:"Romanian"},{value:"ru",label:"Russian"},{value:"sr",label:"Serbian"},{value:"sk",label:"Slovak"},{value:"sl",label:"Slovenian"},{value:"so",label:"Somali"},{value:"sw",label:"Swahili"},{value:"sv",label:"Swedish"},{value:"tl",label:"Tagalog"},{value:"ta",label:"Tamil"},{value:"te",label:"Telugu"},{value:"th",label:"Thai"},{value:"tr",label:"Turkish"},{value:"uk",label:"Ukrainian"},{value:"ur",label:"Urdu"},{value:"vi",label:"Vietnamese"}],e4=[].concat(Z6,$6);function Dn(t){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(t)}function pf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function mf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pf(Object(n),!0).forEach(function(r){p0(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function p0(t,e,n){return(e=t4(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function t4(t){var e=n4(t,"string");return Dn(e)=="symbol"?e:e+""}function n4(t,e){if(Dn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Dn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return vt(S,"_invoke",function(k,C,A){var j,b,x,M=0,_=A||[],I=!1,P={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,L){return j=O,b=0,x=t,P.n=L,a}};function H(N,O){for(b=N,x=O,e=0;!I&&M&&!L&&e<_.length;e++){var L,R=_[e],Y=P.p,z=R[2];N>3?(L=z===O)&&(x=R[(b=R[4])?5:(b=3,3)],R[4]=R[5]=t):R[0]<=Y&&((L=N<2&&Y<R[1])?(b=0,P.v=O,P.n=R[1]):Y<z&&(L=N<3||R[0]>O||O>z)&&(R[4]=N,R[5]=O,P.n=z,b=0))}if(L||N>1)return a;throw I=!0,O}return function(N,O,L){if(M>1)throw TypeError("Generator is already running");for(I&&O===1&&H(O,L),b=O,x=L;(e=b<2?t:x)||!I;){j||(b?b<3?(b>1&&(P.n=-1),H(b,x)):P.n=x:P.v=x);try{if(M=2,j){if(b||(N="next"),e=j[N]){if(!(e=e.call(j,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=j.return)&&e.call(j),b<2&&(x=TypeError("The iterator does not provide a '"+N+"' method"),b=1);j=t}else if((e=(I=P.n<0)?x:k.call(C,P))!==a)break}catch(R){j=t,b=1,x=R}finally{M=1}}return{value:e,done:I}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(vt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,vt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,vt(f,"constructor",u),vt(u,"constructor",l),l.displayName="GeneratorFunction",vt(u,i,"GeneratorFunction"),vt(f),vt(f,i,"Generator"),vt(f,r,function(){return this}),vt(f,"toString",function(){return"[object Generator]"}),(wl=function(){return{w:s,m:y}})()}function vt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}vt=function(a,o,l,u){if(o)i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var c=function(y,h){vt(a,y,function(p){return this._invoke(y,h,p)})};c("next",0),c("throw",1),c("return",2)}},vt(t,e,n,r)}function gf(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function r4(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){gf(s,r,i,a,o,"next",l)}function o(l){gf(s,r,i,a,o,"throw",l)}a(void 0)})}}function jr(t,e){return o4(t)||a4(t,e)||s4(t,e)||i4()}function i4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
63
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s4(t,e){if(t){if(typeof t=="string")return vf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vf(t,e):void 0}}function vf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a4(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function o4(t){if(Array.isArray(t))return t}var l4=function(){var e=Ct(),n=ds(),r=Lt(),i=D.useState(),s=jr(i,2),a=s[0],o=s[1],l=D.useState(!1),u=jr(l,2),c=u[0],f=u[1],y=D.useState({name:"",url:"",description:"",language:"en",isLocal:!1,country:void 0,region:""}),h=jr(y,2),p=h[0],m=h[1],g=D.useState(null),v=jr(g,2),S=v[0],k=v[1],C=D.useState(""),A=jr(C,2),j=A[0],b=A[1],x=D.useMemo(function(){var U;if(!p.country)return"";var q=xo.find(function(W){return W.value===p.country});return(U=q==null?void 0:q.label)!==null&&U!==void 0?U:""},[p.country]),M=D.useMemo(function(){var U=j.trim().toLowerCase();return U?xo.filter(function(q){var W=q.label.toLowerCase().includes(U),X=q.value.toLowerCase().includes(U);return W||X}):xo},[j]),_=W2({mutation:{onSuccess:function(){var U=r4(wl().m(function W(X){var Z;return wl().w(function(re){for(;;)switch(re.n){case 0:return Z=X.data.id,re.n=1,Promise.all([r.invalidateQueries({queryKey:Ta()}),r.invalidateQueries({queryKey:Kt()})]);case 1:Z&&n.setBrandId(Z),X!=null&&X.status&&X.status>=200&&X.status<300&&Z&&(n.setBrandId(Z),o(Z));case 2:return re.a(2)}},W)}));function q(W){return U.apply(this,arguments)}return q}(),onError:function(){f(!1)}}}),I=_.mutate,P=_.isPending,H=_.error,N=Ar({query:{enabled:!!a,select:function(q){var W=q.data;return W==null?void 0:W.brands},refetchInterval:function(q){var W;return((q==null||(W=q.state)===null||W===void 0||(W=W.data)===null||W===void 0||(W=W.data)===null||W===void 0?void 0:W.brands)||[]).find(function(X){return X.id===a})?!1:2*1e3}}}),O=N.data;D.useEffect(function(){a&&O!==null&&O!==void 0&&O.find(function(U){return U.id===a})&&e("/setup/".concat(a,"/queries"),{replace:!0})},[a,O,e]);var L=function(q,W){m(function(X){return mf(mf({},X),{},p0({},q,W))})},R=function(q){b(q.target.value)},Y=function(q){L("country",q!=null?q:void 0),b("")},z=function(q){if(q.preventDefault(),k(null),p.description.length>250){k("Your brand description is too long. Please keep it within the 250-character limit."),f(!1);return}f(!0);var W=p.url;W&&!/^https?:\/\//i.test(W)&&(W="https://".concat(W)),I({data:{name:p.name,url:W,description:p.description,focusLanguage:p.language,country:p.country,regionOrCity:p.region}})};function F(U){return Dn(U)==="object"&&U!==null&&"response"in U&&Dn(U.response)==="object"&&U.response!==void 0&&"data"in U.response}var Q=F(H)?H.response.data.errors:void 0;return d.jsxs("form",{onSubmit:z,children:[d.jsxs("div",{className:"yst-space-y-6",children:[d.jsx(w.Title,{size:"2",children:"Brand info"}),!!H&&d.jsx(w.Alert,{variant:"error",title:"Error",isVisible:!!H,children:d.jsx("ul",{children:Q&&Dn(Q)==="object"?Object.entries(Q).flatMap(function(U){var q=jr(U,2),W=q[0],X=q[1];return Array.isArray(X)?X.map(function(Z,re){return d.jsx("li",{children:Z},"".concat(W,"-").concat(re))}):null}):"There was an error creating the brand."})}),S&&d.jsx(w.Alert,{variant:"error",title:"Error",isVisible:!!S,children:d.jsx("ul",{children:d.jsx("li",{children:"Your brand description is too long. Please keep it within the 250-character limit."})})}),d.jsx(w.TextField,{id:"name",label:"Brand name",value:p.name,onChange:function(U){return L("name",U.target.value)},maxLength:255}),d.jsx(w.TextField,{id:"url",label:"Website URL (optional)",placeholder:"Example: https://yourwebsite.com",value:p.url,maxLength:247,onChange:function(U){return L("url",U.target.value)}}),d.jsxs("div",{id:"brand-description-textarea",children:[d.jsx(w.TextareaField,{id:"brand-description",label:"Brand description",value:p.description,onChange:function(U){var q=U.target.value;L("description",q)},...p.description.length>250?{validation:{variant:"error",message:"Your brand description is too long. Please keep it within the 250-character limit."}}:{},placeholder:"e.g. We design eco-friendly yoga mats for busy professionals who want sustainable gear that’s durable, stylish and kind to the planet."}),d.jsxs("div",{className:"yst-mt-1 yst-flex",children:[d.jsxs("div",{className:"yst-flex-grow yst-flex-col",children:[p.description.length>250&&d.jsx("div",{className:"yst-mb-2 yst-text-red-500",children:"Your brand description is too long. Please keep it within the 250-character limit."}),"Tell us about your brand: what you do, who it’s for and what makes it special."]}),d.jsxs("div",{className:te("yst-ml-6 yst-mt-[-4px] yst-text-xs",{"yst-text-slate-500":p.description.length<=250,"yst-text-red-500":p.description.length>250}),children:[p.description.length,"/250"]})]})]}),d.jsxs("div",{className:"yst-space-y-2",children:[d.jsx(w.Select,{className:"yst-max-w-sm",id:"language-select",label:"Target language",value:p.language,onChange:function(U){return L("language",U)},options:e4.map(function(U){return{label:U.label,value:U.value}})}),d.jsx("p",{children:"The main language your brand uses to communicate or create content."})]})]}),d.jsx(ti,{}),d.jsxs("div",{className:"yst-space-y-6",children:[d.jsx(w.Title,{size:"2",children:"Location info"}),d.jsx("p",{children:"Specify a location to enhance the accuracy of the analysis."}),d.jsx(w.Autocomplete,{className:"yst-max-w-sm",id:"country-select",label:"Target country (optional)",value:p.country||null,nullable:!0,placeholder:"Search countries...",onQueryChange:R,onChange:Y,selectedLabel:x,children:M.map(function(U){return d.jsx(w.Autocomplete.Option,{value:U.value,children:U.label},U.value)})}),p.country&&d.jsx(w.TextField,{id:"region",label:"Target city, state, or region (optional)",value:p.region,onChange:function(U){return L("region",U.target.value)},description:`Enter a city, state, or region to narrow down the analysis. For
64
- example: California, Bavaria, or Paris.`,maxLength:255})]}),d.jsx(y0,{onBack:function(){return e(-1)},buttonText:"Generate queries",isButtonDisabled:P||!!a||c,isLoading:P||!!a})]})};const u4=Object.freeze(Object.defineProperty({__proto__:null,default:l4},Symbol.toStringTag,{value:"Module"})),bf=t=>E.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},E.createElement("path",{d:"M3.33284 2V4.66667M1.99951 3.33333H4.66618M3.99951 11.3333V14M2.66618 12.6667H5.33284M8.66618 2L10.19 6.57143L13.9995 8L10.19 9.42857L8.66618 14L7.14237 9.42857L3.33284 8L7.14237 6.57143L8.66618 2Z",stroke:"url(#paint0_linear_3891_2757)",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("defs",null,E.createElement("linearGradient",{id:"paint0_linear_3891_2757",x1:1.99951,y1:2,x2:15.3308,y2:3.72773,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"}))));function es(t){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},es(t)}function c4(t){return h4(t)||f4(t)||m0(t)||d4()}function d4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
65
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f4(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function h4(t){if(Array.isArray(t))return Cl(t)}function xf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ot(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xf(Object(n),!0).forEach(function(r){y4(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function y4(t,e,n){return(e=p4(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p4(t){var e=m4(t,"string");return es(e)=="symbol"?e:e+""}function m4(t,e){if(es(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Sl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return bt(S,"_invoke",function(k,C,A){var j,b,x,M=0,_=A||[],I=!1,P={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,L){return j=O,b=0,x=t,P.n=L,a}};function H(N,O){for(b=N,x=O,e=0;!I&&M&&!L&&e<_.length;e++){var L,R=_[e],Y=P.p,z=R[2];N>3?(L=z===O)&&(x=R[(b=R[4])?5:(b=3,3)],R[4]=R[5]=t):R[0]<=Y&&((L=N<2&&Y<R[1])?(b=0,P.v=O,P.n=R[1]):Y<z&&(L=N<3||R[0]>O||O>z)&&(R[4]=N,R[5]=O,P.n=z,b=0))}if(L||N>1)return a;throw I=!0,O}return function(N,O,L){if(M>1)throw TypeError("Generator is already running");for(I&&O===1&&H(O,L),b=O,x=L;(e=b<2?t:x)||!I;){j||(b?b<3?(b>1&&(P.n=-1),H(b,x)):P.n=x:P.v=x);try{if(M=2,j){if(b||(N="next"),e=j[N]){if(!(e=e.call(j,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=j.return)&&e.call(j),b<2&&(x=TypeError("The iterator does not provide a '"+N+"' method"),b=1);j=t}else if((e=(I=P.n<0)?x:k.call(C,P))!==a)break}catch(R){j=t,b=1,x=R}finally{M=1}}return{value:e,done:I}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(bt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(c);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,bt(h,i,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,bt(f,"constructor",u),bt(u,"constructor",l),l.displayName="GeneratorFunction",bt(u,i,"GeneratorFunction"),bt(f),bt(f,i,"Generator"),bt(f,r,function(){return this}),bt(f,"toString",function(){return"[object Generator]"}),(Sl=function(){return{w:s,m:y}})()}function bt(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(s){i=0}bt=function(a,o,l,u){if(o)i?i(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var c=function(y,h){bt(a,y,function(p){return this._invoke(y,h,p)})};c("next",0),c("throw",1),c("return",2)}},bt(t,e,n,r)}function Af(t,e,n,r,i,s,a){try{var o=t[s](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,i)}function g4(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function a(l){Af(s,r,i,a,o,"next",l)}function o(l){Af(s,r,i,a,o,"throw",l)}a(void 0)})}}function tn(t,e){return x4(t)||b4(t,e)||m0(t,e)||v4()}function v4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
66
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m0(t,e){if(t){if(typeof t=="string")return Cl(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cl(t,e):void 0}}function Cl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function b4(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function x4(t){if(Array.isArray(t))return t}var Or=5,Ti="Generating...",A4="Re-generating...",w4=100,S4=800,C4=["******************************","***********************","*******************************************************","***********************************************","***************************************************************","*******************************************************","*******************************************************","***********************************************"],j4=Array.from({length:Or},function(t,e){return{id:"query-".concat(e),text:Ti,isRegenerating:!0}}),O4=function(){var e,n,r,i=va(),s=i.brandId,a="/setup/".concat(s,"/analysis"),o=Ct(),l=Lt(),u=Hl(),c=D.useRef(!1),f=D.useState(j4),y=tn(f,2),h=y[0],p=y[1],m=D.useState(!1),g=tn(m,2),v=g[0],S=g[1],k=D.useState([]),C=tn(k,2),A=C[0],j=C[1],b=D.useState([]),x=tn(b,2),M=x[0],_=x[1],I=D.useState(!1),P=tn(I,2),H=P[0],N=P[1],O=D.useState(null),L=tn(O,2),R=L[0],Y=L[1],z=D.useState(!1),F=tn(z,2),Q=F[0],U=F[1],q=D.useState(!1),W=tn(q,2),X=W[0],Z=W[1],re=D.useState(null),ae=tn(re,2),fe=ae[0],oe=ae[1],ve=nv(s||"",{query:{enabled:!!s}}),G=ve.data,Oe=ve.isRefetching,Ye=ve.error,We=ve.isError,Pe=ve.refetch,_e=ia(s||"",{query:{enabled:!!s}}),Ie=_e.data,ze=D.useCallback(function(K){var J;if(!(Ie!=null&&(J=Ie.data)!==null&&J!==void 0&&J.name))return!1;var ie=Ie.data.name.toLowerCase().trim();return ie?K.toLowerCase().includes(ie):!1},[Ie==null||(e=Ie.data)===null||e===void 0?void 0:e.name]),wr=D.useCallback(function(){return h.some(function(K){return ze(K.text)})},[h,ze]),Qn=function(){U(!1)},Jt=function(){U(!1),s&&Ee({brandId:s,data:{queries:h.map(function(J){return J.text})}})},ue=function(){U(!1);var J=h.findIndex(function(ie){return ze(ie.text)});J!==-1&&setTimeout(function(){var ie=document.getElementById("query-text-".concat(J));ie&&(ie.focus(),ie.select())},w4)};function ce(K){var J,ie,ne,ke="Moderation error: one or more queries flagged by OpenAI moderation endpoint.",rt=K==null||(J=K.response)===null||J===void 0||(J=J.data)===null||J===void 0?void 0:J.flagged_queries;return(K==null||(ie=K.response)===null||ie===void 0?void 0:ie.status)===422&&(K==null||(ne=K.response)===null||ne===void 0||(ne=ne.data)===null||ne===void 0?void 0:ne.error)===ke&&Array.isArray(rt)?{flaggedQueries:rt}:null}var pe=Z2({mutation:{onSuccess:function(){var K=g4(Sl().m(function ie(ne){return Sl().w(function(ke){for(;;)switch(ke.n){case 0:if(Y(null),!(ne!=null&&ne.status&&ne.status>=200&&ne.status<300)){ke.n=2;break}return ke.n=1,Promise.all([l.invalidateQueries({queryKey:ka(s||"")}),l.invalidateQueries({queryKey:Kt()})]);case 1:o(a);case 2:return ke.a(2)}},ie)}));function J(ie){return K.apply(this,arguments)}return J}(),onError:function(J){var ie,ne,ke=ce(J);if(ke){oe({flaggedQueries:ke.flaggedQueries});return}if((J==null||(ie=J.response)===null||ie===void 0||(ie=ie.data)===null||ie===void 0?void 0:ie.message)==="Cannot update queries for a brand that has existing analyses."){o(a,{replace:!0});return}var rt=(J==null||(ne=J.response)===null||ne===void 0||(ne=ne.data)===null||ne===void 0?void 0:ne.message)||(J==null?void 0:J.message)||"An unexpected error occurred.";Y(rt)}}}),Ee=pe.mutate,ri=pe.isPending;D.useEffect(function(){s||o("/setup",{replace:!0})},[s,o,u]),D.useEffect(function(){var K;!(Ie!=null&&(K=Ie.data)!==null&&K!==void 0&&K.setupStatus)||c.current||(c.current=!0,Ie.data.setupStatus!=="pendingQuerySelection"&&(u("Queries cannot be changed for a brand with a pending analysis.",{variant:"warning"}),o(a,{replace:!0})))},[Ie==null||(n=Ie.data)===null||n===void 0?void 0:n.setupStatus,s,o,a,u]),D.useEffect(function(){var K;if(G!=null&&(K=G.data)!==null&&K!==void 0&&K.queries&&Array.isArray(G.data.queries)){var J=G.data.queries.slice(0,Or);p(J.map(function(ie,ne){return{id:"query-".concat(ne),text:ie,isRegenerating:!1}})),_(G.data.queries.slice(Or))}else We&&(p(Array.from({length:Or},function(ie,ne){return{id:"query-".concat(ne),text:"",isRegenerating:!1}})),_([]))},[G,We]);var ii=D.useCallback(function(K){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;setTimeout(function(){p(function(ie){return ie.map(function(ne,ke){var rt=A.indexOf(ke.toString());return rt>=0&&K[rt]?Ot(Ot({},ne),{},{text:K[rt],isRegenerating:!1}):Ot(Ot({},ne),{},{isRegenerating:!1})})}),j([]),N(!1),S(!1),J&&_(function(ie){var ne=new Set(K);return ie.filter(function(ke){return!ne.has(ke)})})},S4)},[A]);D.useEffect(function(){if(H&&!Oe){var K;if(G!=null&&(K=G.data)!==null&&K!==void 0&&K.queries&&Array.isArray(G.data.queries)){var J=G.data.queries.slice(0,Or),ie=A.map(Number);p(function(ne){return ne.map(function(ke,rt){var qn=ie.indexOf(rt);return Ot(Ot({},ke),{},{text:qn>=0&&J[qn]?J[qn]:ke.text,isRegenerating:!1})})}),j([]),N(!1),S(!1)}else We&&(p(function(ne){return ne.map(function(ke){return Ot(Ot({},ke),{},{isRegenerating:!1})})}),j([]),N(!1),S(!1))}},[G,Oe,H,A,We]);var si=D.useCallback(function(K,J){var ie=new Set(J);return M.filter(function(ne){return!ie.has(ne)}).slice(0,K)},[M]),Ha=D.useMemo(function(){return Oe||h.length===0||h.some(function(K){return K.isRegenerating||K.text===Ti&&!We||K.text.trim()===""})||v},[Oe,h,v,We]),Wa=Oe||h.some(function(K){return K.text===Ti})&&!We,ms=D.useCallback(function(K){var J=K.toString();j(function(ie){return ie.includes(J)?ie.filter(function(ne){return ne!==J}):[].concat(c4(ie),[J])})},[]),Qa=D.useCallback(function(K,J){p(function(ie){return ie.map(function(ne,ke){return ke===K?Ot(Ot({},ne),{},{text:J}):ne})})},[]),gs=function(){S(!v),j([])},he=D.useCallback(function(){if(!(Oe||A.length===0)){p(function(ke){return ke.map(function(rt,qn){return Ot(Ot({},rt),{},{isRegenerating:A.includes(qn.toString())})})});var K=h.map(function(ke){return ke.text}),J=A.length,ie=si(J,K),ne=ie.length>=J;ne?ii(ie,!0):(N(!0),Pe())}},[Oe,A,Pe,h,si,ii]),Te=D.useCallback(function(K){if(K.preventDefault(),oe(null),!!s){if(wr()){U(!0);return}Ee({brandId:s,data:{queries:h.map(function(J){return J.text})}})}},[s,h,Ee,wr]),be=function(){Z(!0)};return d.jsxs("div",{children:[fe&&d.jsxs(w.Alert,{className:"yst-mb-4",variant:"error",children:[d.jsx("strong",{children:"Moderation Error"}),d.jsxs("div",{className:"yst-mt-2",children:[d.jsx("span",{children:"Some of your queries include content that our AI moderation system can’t process."}),d.jsx("br",{}),d.jsx("span",{children:"These queries were flagged and won’t be saved:"}),d.jsx("ul",{className:"yst-ml-4 yst-list-disc",children:fe.flaggedQueries.map(function(K,J){return d.jsx("li",{children:K.query},J)})}),d.jsx("br",{}),d.jsx("span",{children:"Edit or replace them to continue."})]})]}),R&&d.jsx(w.Alert,{className:"yst-mb-4",variant:"error",children:R}),d.jsxs("form",{onSubmit:Te,children:[d.jsxs("div",{className:"yst-mb-8",children:[d.jsx(w.Title,{size:"2",className:"yst-mb-2",children:"Your queries"}),d.jsxs("div",{className:"yst-space-y-4",children:[d.jsx("p",{children:"You can edit your queries or regenerate new ones with AI."}),d.jsx("div",{className:te("yst-flex yst-gap-2",v?"yst-justify-end":"yst-justify-start"),children:v?d.jsxs(d.Fragment,{children:[d.jsx(w.Button,{size:"small",variant:"secondary",onClick:gs,children:"Done"}),d.jsxs(w.Button,{variant:"secondary",size:"small",onClick:he,className:"yst-gap-1",isLoading:Oe||H,disabled:H||Oe||A.length===0,children:[d.jsx(bf,{"aria-hidden":"true"}),"Regenerate selected queries"]})]}):d.jsxs(w.Button,{size:"small",variant:"secondary",onClick:gs,className:"yst-gap-1.5",disabled:Wa||We,children:[d.jsx(Tv,{}),"Select queries to regenerate"]})})]})]}),d.jsx("div",{className:"yst-mb-8",children:h.length===0?C4.map(function(K,J){return d.jsx("div",{className:te("yst-mb-4 yst-cursor-pointer yst-rounded yst-border yst-border-slate-300 yst-p-3 yst-transition-colors","yst-bg-white"),children:d.jsx(w.SkeletonLoader,{children:K||"Example placeholder query for demonstration purposes."})},"placeholder-query-".concat(J))}):h.slice(0,Or).map(function(K,J){var ie=K.isRegenerating?K.text===Ti?Ti:A4:K.text;return d.jsx("div",{className:te("yst-mb-4"),children:d.jsxs("div",{className:"yst-flex yst-gap-2",children:[v&&d.jsx("div",{className:"yst-flex yst-items-center",children:d.jsx(w.Checkbox,{id:"query-regenerate-".concat(J),name:"query-regenerate-".concat(J),value:J.toString(),checked:A.includes(J.toString()),onChange:function(){return ms(J)},disabled:Oe})}),d.jsx("div",{className:"yst-flex-1",children:d.jsx(w.TextField,{id:"query-text-".concat(J),label:"Query ".concat(J+1),type:"text",value:ie,onChange:function(ne){K.isRegenerating||Qa(J,ne.target.value)},placeholder:"Enter your query...",className:"yst-w-full",disabled:K.isRegenerating,required:!0,minLength:3,maxLength:255,validation:ze(K.text)?{variant:"warning",message:"For more accurate insights, avoid using your brand name in the query."}:void 0})})]})},K.id)})}),d.jsx(y0,{buttonText:"Run analysis (~ 5 minutes)",isButtonDisabled:Ha,isLoading:ri})]}),d.jsx(w.Modal,{isOpen:We&&s2(Ye)&&(Ye==null||(r=Ye.response)===null||r===void 0?void 0:r.status)===429&&!X,onClose:be,position:"center",as:"div",children:d.jsx(w.Modal.Panel,{children:d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-red-100",children:d.jsx(Zo,{className:"yst-h-6 yst-w-6 yst-text-red-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Query regeneration limit reached"})}),d.jsx(w.Modal.Container.Content,{className:"yst-mb-6 yst-space-y-3",children:d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"You’ve used all your query regenerations for this brand analysis, but you can still edit your queries manually."})}),d.jsx(w.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:d.jsx(w.Button,{variant:"primary",onClick:be,children:"Edit queries manually"})})]})]})})}),d.jsx(w.Modal,{isOpen:Q,onClose:Qn,position:"center",as:"div",children:d.jsx(w.Modal.Panel,{children:d.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[d.jsx("div",{children:d.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-100",children:d.jsx(Zo,{className:"yst-h-6 yst-w-6 yst-text-amber-600"})})}),d.jsxs("div",{className:"yst-flex-1",children:[d.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:d.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Brand name detected in your queries"})}),d.jsxs(w.Modal.Container.Content,{className:"yst-mb-6 yst-space-y-3",children:[d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"We found your brand name in one or more of your queries. Using your brand name in queries often show more mentions and more positive sentiment, which can skew your results."}),d.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"For more balanced results, remove your brand name or make the queries more general."})]}),d.jsxs(w.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:[d.jsxs(w.Button,{onClick:Jt,variant:"secondary",className:"yst-gap-1.5",disabled:ri,isLoading:ri,children:[d.jsx(bf,{}),"Run analysis anyway"]}),d.jsx(w.Button,{variant:"primary",onClick:ue,children:"Review and edit queries"})]})]})]})})})]})};const E4=Object.freeze(Object.defineProperty({__proto__:null,default:O4},Symbol.toStringTag,{value:"Module"}));var Bs={exports:{}},Fs={exports:{}},xe={};/** @license React v16.13.1
51
+ `):t}function IC(t,e){const{element:n,datasetIndex:r,index:s}=e,i=t.getDatasetMeta(r).controller,{label:a,value:o}=i.getLabelAndValue(s);return{chart:t,label:a,parsed:i.getParsed(s),raw:t.data.datasets[r].data[s],formattedValue:o,dataset:i.getDataset(),dataIndex:s,datasetIndex:r,element:n}}function Td(t,e){const n=t.chart.ctx,{body:r,footer:s,title:i}=t,{boxWidth:a,boxHeight:o}=e,l=We(e.bodyFont),u=We(e.titleFont),d=We(e.footerFont),f=i.length,y=s.length,h=r.length,p=Ke(e.padding);let m=p.height,g=0,v=r.reduce((j,A)=>j+A.before.length+A.lines.length+A.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,f&&(m+=f*u.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),v){const j=e.displayColors?Math.max(o,l.lineHeight):l.lineHeight;m+=h*j+(v-h)*l.lineHeight+(v-1)*e.bodySpacing}y&&(m+=e.footerMarginTop+y*d.lineHeight+(y-1)*e.footerSpacing);let S=0;const k=function(j){g=Math.max(g,n.measureText(j).width+S)};return n.save(),n.font=u.string,je(t.title,k),n.font=l.string,je(t.beforeBody.concat(t.afterBody),k),S=e.displayColors?a+2+e.boxPadding:0,je(r,j=>{je(j.before,k),je(j.lines,k),je(j.after,k)}),S=0,n.font=d.string,je(t.footer,k),n.restore(),g+=p.width,{width:g,height:m}}function RC(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function NC(t,e,n,r){const{x:s,width:i}=r,a=n.caretSize+n.caretPadding;if(t==="left"&&s+i+a>e.width||t==="right"&&s-i-a<0)return!0}function _C(t,e,n,r){const{x:s,width:i}=n,{width:a,chartArea:{left:o,right:l}}=t;let u="center";return r==="center"?u=s<=(o+l)/2?"left":"right":s<=i/2?u="left":s>=a-i/2&&(u="right"),NC(u,t,e,n)&&(u="center"),u}function Pd(t,e,n){const r=n.yAlign||e.yAlign||RC(t,n);return{xAlign:n.xAlign||e.xAlign||_C(t,e,n,r),yAlign:r}}function DC(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function BC(t,e,n){let{y:r,height:s}=t;return e==="top"?r+=n:e==="bottom"?r-=s+n:r-=s/2,r}function Md(t,e,n,r){const{caretSize:s,caretPadding:i,cornerRadius:a}=t,{xAlign:o,yAlign:l}=n,u=s+i,{topLeft:d,topRight:f,bottomLeft:y,bottomRight:h}=Lr(a);let p=DC(e,o);const m=BC(e,l,u);return l==="center"?o==="left"?p+=u:o==="right"&&(p-=u):o==="left"?p-=Math.max(d,y)+s:o==="right"&&(p+=Math.max(f,h)+s),{x:Mt(p,0,r.width-e.width),y:Mt(m,0,r.height-e.height)}}function Fi(t,e,n){const r=Ke(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function Ld(t){return Gt([],ln(t))}function FC(t,e,n){return zn(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Id(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const u0={beforeTitle:nn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:nn,beforeBody:nn,beforeLabel:nn,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Oe(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:nn,afterBody:nn,beforeFooter:nn,footer:nn,afterFooter:nn};function it(t,e,n,r){const s=t[e].call(n,r);return typeof s=="undefined"?u0[e].call(n,r):s}class pl extends bn{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),s=r.enabled&&n.options.animation&&r.animations,i=new Gy(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=FC(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,s=it(r,"beforeTitle",this,e),i=it(r,"title",this,e),a=it(r,"afterTitle",this,e);let o=[];return o=Gt(o,ln(s)),o=Gt(o,ln(i)),o=Gt(o,ln(a)),o}getBeforeBody(e,n){return Ld(it(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,s=[];return je(e,i=>{const a={before:[],lines:[],after:[]},o=Id(r,i);Gt(a.before,ln(it(o,"beforeLabel",this,i))),Gt(a.lines,it(o,"label",this,i)),Gt(a.after,ln(it(o,"afterLabel",this,i))),s.push(a)}),s}getAfterBody(e,n){return Ld(it(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,s=it(r,"beforeFooter",this,e),i=it(r,"footer",this,e),a=it(r,"afterFooter",this,e);let o=[];return o=Gt(o,ln(s)),o=Gt(o,ln(i)),o=Gt(o,ln(a)),o}_createItems(e){const n=this._active,r=this.chart.data,s=[],i=[],a=[];let o=[],l,u;for(l=0,u=n.length;l<u;++l)o.push(IC(this.chart,n[l]));return e.filter&&(o=o.filter((d,f,y)=>e.filter(d,f,y,r))),e.itemSort&&(o=o.sort((d,f)=>e.itemSort(d,f,r))),je(o,d=>{const f=Id(e.callbacks,d);s.push(it(f,"labelColor",this,d)),i.push(it(f,"labelPointStyle",this,d)),a.push(it(f,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,n){const r=this.options.setContext(this.getContext()),s=this._active;let i,a=[];if(!s.length)this.opacity!==0&&(i={opacity:0});else{const o=Ps[r.position].call(this,s,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=Td(this,r),u=Object.assign({},o,l),d=Pd(this.chart,r,u),f=Md(r,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,s){const i=this.getCaretPosition(e,r,s);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(e,n,r){const{xAlign:s,yAlign:i}=this,{caretSize:a,cornerRadius:o}=r,{topLeft:l,topRight:u,bottomLeft:d,bottomRight:f}=Lr(o),{x:y,y:h}=e,{width:p,height:m}=n;let g,v,S,k,j,A;return i==="center"?(j=h+m/2,s==="left"?(g=y,v=g-a,k=j+a,A=j-a):(g=y+p,v=g+a,k=j-a,A=j+a),S=g):(s==="left"?v=y+Math.max(l,d)+a:s==="right"?v=y+p-Math.max(u,f)-a:v=this.caretX,i==="top"?(k=h,j=k-a,g=v-a,S=v+a):(k=h+m,j=k+a,g=v+a,S=v-a),A=k),{x1:g,x2:v,x3:S,y1:k,y2:j,y3:A}}drawTitle(e,n,r){const s=this.title,i=s.length;let a,o,l;if(i){const u=Ir(r.rtl,this.x,this.width);for(e.x=Fi(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",a=We(r.titleFont),o=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<i;++l)n.fillText(s[l],u.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,l+1===i&&(e.y+=r.titleMarginBottom-o)}}_drawColorBox(e,n,r,s,i){const a=this.labelColors[r],o=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=i,d=We(i.bodyFont),f=Fi(this,"left",i),y=s.x(f),h=l<d.lineHeight?(d.lineHeight-l)/2:0,p=n.y+h;if(i.usePointStyle){const m={radius:Math.min(u,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},g=s.leftForLtr(y,u)+u/2,v=p+l/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,cl(e,m,g,v),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,cl(e,m,g,v)}else{e.lineWidth=ve(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const m=s.leftForLtr(y,u),g=s.leftForLtr(s.xPlus(y,1),u-2),v=Lr(a.borderRadius);Object.values(v).some(S=>S!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,va(e,{x:m,y:p,w:u,h:l,radius:v}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),va(e,{x:g,y:p+1,w:u-2,h:l-2,radius:v}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(m,p,u,l),e.strokeRect(m,p,u,l),e.fillStyle=a.backgroundColor,e.fillRect(g,p+1,u-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:s}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:l,boxWidth:u,boxPadding:d}=r,f=We(r.bodyFont);let y=f.lineHeight,h=0;const p=Ir(r.rtl,this.x,this.width),m=function(x){n.fillText(x,p.x(e.x+h),e.y+y/2),e.y+=y+i},g=p.textAlign(a);let v,S,k,j,A,C,b;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,e.x=Fi(this,g,r),n.fillStyle=r.bodyColor,je(this.beforeBody,m),h=o&&g!=="right"?a==="center"?u/2+d:u+2+d:0,j=0,C=s.length;j<C;++j){for(v=s[j],S=this.labelTextColors[j],n.fillStyle=S,je(v.before,m),k=v.lines,o&&k.length&&(this._drawColorBox(n,e,j,p,r),y=Math.max(f.lineHeight,l)),A=0,b=k.length;A<b;++A)m(k[A]),y=f.lineHeight;je(v.after,m)}h=0,y=f.lineHeight,je(this.afterBody,m),e.y-=i}drawFooter(e,n,r){const s=this.footer,i=s.length;let a,o;if(i){const l=Ir(r.rtl,this.x,this.width);for(e.x=Fi(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=We(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,o=0;o<i;++o)n.fillText(s[o],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+r.footerSpacing}}drawBackground(e,n,r,s){const{xAlign:i,yAlign:a}=this,{x:o,y:l}=e,{width:u,height:d}=r,{topLeft:f,topRight:y,bottomLeft:h,bottomRight:p}=Lr(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(o+f,l),a==="top"&&this.drawCaret(e,n,r,s),n.lineTo(o+u-y,l),n.quadraticCurveTo(o+u,l,o+u,l+y),a==="center"&&i==="right"&&this.drawCaret(e,n,r,s),n.lineTo(o+u,l+d-p),n.quadraticCurveTo(o+u,l+d,o+u-p,l+d),a==="bottom"&&this.drawCaret(e,n,r,s),n.lineTo(o+h,l+d),n.quadraticCurveTo(o,l+d,o,l+d-h),a==="center"&&i==="left"&&this.drawCaret(e,n,r,s),n.lineTo(o,l+f),n.quadraticCurveTo(o,l,o+f,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,s=r&&r.x,i=r&&r.y;if(s||i){const a=Ps[e.position].call(this,this._active,this._eventPosition);if(!a)return;const o=this._size=Td(this,e),l=Object.assign({},a,this._size),u=Pd(n,e,l),d=Md(e,l,u,n);(s._to!==d.x||i._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Ke(n.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&o&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,s,n),Uy(e,n.textDirection),i.y+=a.top,this.drawTitle(i,e,n),this.drawBody(i,e,n),this.drawFooter(i,e,n),Hy(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,s=e.map(({datasetIndex:o,index:l})=>{const u=this.chart.getDatasetMeta(o);if(!u)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:u.data[l],index:l}}),i=!ha(r,s),a=this._positionChanged(s,n);(i||a)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,i=this._active||[],a=this._getActiveElements(e,i,n,r),o=this._positionChanged(a,e),l=n||!ha(a,i)||o;return l&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,s){const i=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const a=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:r,caretY:s,options:i}=this,a=Ps[i.position].call(this,e,n);return a!==!1&&(r!==a.x||s!==a.y)}}re(pl,"positioners",Ps);var UC={id:"tooltip",_element:pl,positioners:Ps,afterInit(t,e,n){n&&(t.tooltip=new pl({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:u0},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const HC=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function WC(t,e,n,r){const s=t.indexOf(e);if(s===-1)return HC(t,e,n,r);const i=t.lastIndexOf(e);return s!==i?n:s}const QC=(t,e)=>t===null?null:Mt(Math.round(t),0,e);function Rd(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class ml extends is{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:s,label:i}of n)r[s]===i&&r.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Oe(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:WC(r,e,pe(n,e),this._addedLabels),QC(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(s=this.getLabels().length-1)),this.min=r,this.max=s}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,s=[];let i=this.getLabels();i=e===0&&n===i.length-1?i:i.slice(e,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=e;a<=n;a++)s.push({value:a});return s}getLabelForValue(e){return Rd.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}re(ml,"id","category"),re(ml,"defaults",{ticks:{callback:Rd}});function qC(t,e){const n=[],{bounds:s,step:i,min:a,max:o,precision:l,count:u,maxTicks:d,maxDigits:f,includeBounds:y}=t,h=i||1,p=d-1,{min:m,max:g}=e,v=!Oe(a),S=!Oe(o),k=!Oe(u),j=(g-m)/(f+1);let A=Nc((g-m)/p/h)*h,C,b,x,M;if(A<1e-14&&!v&&!S)return[{value:m},{value:g}];M=Math.ceil(g/A)-Math.floor(m/A),M>p&&(A=Nc(M*A/p/h)*h),Oe(l)||(C=Math.pow(10,l),A=Math.ceil(A*C)/C),s==="ticks"?(b=Math.floor(m/A)*A,x=Math.ceil(g/A)*A):(b=m,x=g),v&&S&&i&&d3((o-a)/i,A/1e3)?(M=Math.round(Math.min((o-a)/A,d)),A=(o-a)/M,b=a,x=o):k?(b=v?a:b,x=S?o:x,M=u-1,A=(x-b)/M):(M=(x-b)/A,_s(M,Math.round(M),A/1e3)?M=Math.round(M):M=Math.ceil(M));const _=Math.max(_c(A),_c(b));C=Math.pow(10,Oe(l)?_:l),b=Math.round(b*C)/C,x=Math.round(x*C)/C;let L=0;for(v&&(y&&b!==a?(n.push({value:a}),b<a&&L++,_s(Math.round((b+L*A)*C)/C,a,Nd(a,j,t))&&L++):b<a&&L++);L<M;++L){const T=Math.round((b+L*A)*C)/C;if(S&&T>o)break;n.push({value:T})}return S&&y&&x!==o?n.length&&_s(n[n.length-1].value,o,Nd(o,j,t))?n[n.length-1].value=o:n.push({value:o}):(!S||x===o)&&n.push({value:x}),n}function Nd(t,e,{horizontal:n,minRotation:r}){const s=Nn(r),i=(n?Math.sin(s):Math.cos(s))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}class gl extends is{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Oe(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:s,max:i}=this;const a=l=>s=n?s:l,o=l=>i=r?i:l;if(e){const l=Kr(s),u=Kr(i);l<0&&u<0?o(0):l>0&&u>0&&a(0)}if(s===i){let l=i===0?1:Math.abs(i*.05);o(i+l),e||a(s-l)}this.min=s,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,s;return r?(s=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const s={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=qC(s,i);return e.bounds==="ticks"&&f3(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const s=(r-n)/Math.max(e.length-1,1)/2;n-=s,r+=s}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return Ly(e,this.chart.options.locale,this.options.ticks.format)}}class vl extends gl{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=qe(e)?e:0,this.max=qe(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Nn(this.options.ticks.minRotation),s=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/s))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}re(vl,"id","linear"),re(vl,"defaults",{ticks:{callback:nu.formatters.numeric}});function bl(t){const e=t.ticks;if(e.display&&t.display){const n=Ke(e.backdropPadding);return pe(e.font&&e.font.size,Be.font.size)+n.height}return 0}function zC(t,e,n){return n=Re(n)?n:[n],{w:R3(t,e.string,n),h:n.length*e.lineHeight}}function _d(t,e,n,r,s){return t===r||t===s?{start:e-n/2,end:e+n/2}:t<r||t>s?{start:e-n,end:e}:{start:e,end:e+n}}function GC(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],s=[],i=t._pointLabels.length,a=t.options.pointLabels,o=a.centerPointLabels?Ue/i:0;for(let l=0;l<i;l++){const u=a.setContext(t.getPointLabelContext(l));s[l]=u.padding;const d=t.getPointPosition(l,t.drawingArea+s[l],o),f=We(u.font),y=zC(t.ctx,f,t._pointLabels[l]);r[l]=y;const h=wt(t.getIndexAngle(l)+o),p=Math.round(Zl(h)),m=_d(p,d.x,y.w,0,180),g=_d(p,d.y,y.h,90,270);YC(n,e,h,m,g)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=XC(t,r,s)}function YC(t,e,n,r,s){const i=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let o=0,l=0;r.start<e.l?(o=(e.l-r.start)/i,t.l=Math.min(t.l,e.l-o)):r.end>e.r&&(o=(r.end-e.r)/i,t.r=Math.max(t.r,e.r+o)),s.start<e.t?(l=(e.t-s.start)/a,t.t=Math.min(t.t,e.t-l)):s.end>e.b&&(l=(s.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function VC(t,e,n){const r=t.drawingArea,{extra:s,additionalAngle:i,padding:a,size:o}=n,l=t.getPointPosition(e,r+s+a,i),u=Math.round(Zl(wt(l.angle+St))),d=$C(l.y,o.h,u),f=JC(u),y=ZC(l.x,o.w,f);return{visible:!0,x:l.x,y:d,textAlign:f,left:y,top:d,right:y+o.w,bottom:d+o.h}}function KC(t,e){if(!e)return!0;const{left:n,top:r,right:s,bottom:i}=t;return!(pn({x:n,y:r},e)||pn({x:n,y:i},e)||pn({x:s,y:r},e)||pn({x:s,y:i},e))}function XC(t,e,n){const r=[],s=t._pointLabels.length,i=t.options,{centerPointLabels:a,display:o}=i.pointLabels,l={extra:bl(i)/2,additionalAngle:a?Ue/s:0};let u;for(let d=0;d<s;d++){l.padding=n[d],l.size=e[d];const f=VC(t,d,l);r.push(f),o==="auto"&&(f.visible=KC(f,u),f.visible&&(u=f))}return r}function JC(t){return t===0||t===180?"center":t<180?"left":"right"}function ZC(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function $C(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function e5(t,e,n){const{left:r,top:s,right:i,bottom:a}=n,{backdropColor:o}=e;if(!Oe(o)){const l=Lr(e.borderRadius),u=Ke(e.backdropPadding);t.fillStyle=o;const d=r-u.left,f=s-u.top,y=i-r+u.width,h=a-s+u.height;Object.values(l).some(p=>p!==0)?(t.beginPath(),va(t,{x:d,y:f,w:y,h,radius:l}),t.fill()):t.fillRect(d,f,y,h)}}function t5(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let s=e-1;s>=0;s--){const i=t._pointLabelItems[s];if(!i.visible)continue;const a=r.setContext(t.getPointLabelContext(s));e5(n,a,i);const o=We(a.font),{x:l,y:u,textAlign:d}=i;Ar(n,t._pointLabels[s],l,u+o.lineHeight/2,o,{color:a.color,textAlign:d,textBaseline:"middle"})}}function c0(t,e,n,r){const{ctx:s}=t;if(n)s.arc(t.xCenter,t.yCenter,e,0,Ct);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let a=1;a<r;a++)i=t.getPointPosition(a,e),s.lineTo(i.x,i.y)}}function n5(t,e,n,r,s){const i=t.ctx,a=e.circular,{color:o,lineWidth:l}=e;!a&&!r||!o||!l||n<0||(i.save(),i.strokeStyle=o,i.lineWidth=l,i.setLineDash(s.dash||[]),i.lineDashOffset=s.dashOffset,i.beginPath(),c0(t,n,a,r),i.closePath(),i.stroke(),i.restore())}function r5(t,e,n){return zn(t,{label:n,index:e,type:"pointLabel"})}class Ms extends gl{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Ke(bl(this.options)/2),n=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=qe(e)&&!isNaN(e)?e:0,this.max=qe(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/bl(this.options))}generateTickLabels(e){gl.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,r)=>{const s=Me(this.options.pointLabels.callback,[n,r],this);return s||s===0?s:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?GC(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,s){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,s))}getIndexAngle(e){const n=Ct/(this._pointLabels.length||1),r=this.options.startAngle||0;return wt(e*n+Nn(r))}getDistanceFromCenterForValue(e){if(Oe(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Oe(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const r=n[e];return r5(this.getContext(),e,r)}}getPointPosition(e,n,r=0){const s=this.getIndexAngle(e)-St+r;return{x:Math.cos(s)*n+this.xCenter,y:Math.sin(s)*n+this.yCenter,angle:s}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:r,right:s,bottom:i}=this._pointLabelItems[e];return{left:n,top:r,right:s,bottom:i}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),c0(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:r,grid:s,border:i}=n,a=this._pointLabels.length;let o,l,u;if(n.pointLabels.display&&t5(this,a),s.display&&this.ticks.forEach((d,f)=>{if(f!==0||f===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);const y=this.getContext(f),h=s.setContext(y),p=i.setContext(y);n5(this,h,l,a,p)}}),r.display){for(e.save(),o=a-1;o>=0;o--){const d=r.setContext(this.getPointLabelContext(o)),{color:f,lineWidth:y}=d;!y||!f||(e.lineWidth=y,e.strokeStyle=f,e.setLineDash(d.borderDash),e.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),u=this.getPointPosition(o,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(u.x,u.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const s=this.getIndexAngle(0);let i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(s),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),d=We(u.font);if(i=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){e.font=d.string,a=e.measureText(o.label).width,e.fillStyle=u.backdropColor;const f=Ke(u.backdropPadding);e.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}Ar(e,o.label,0,-i,d,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),e.restore()}drawTitle(){}}re(Ms,"id","radialLinear"),re(Ms,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:nu.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),re(Ms,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),re(Ms,"descriptors",{angleLines:{_fallback:"grid"}});const Ga={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},lt=Object.keys(Ga);function Dd(t,e){return t-e}function Bd(t,e){if(Oe(e))return null;const n=t._adapter,{parser:r,round:s,isoWeekday:i}=t._parseOpts;let a=e;return typeof r=="function"&&(a=r(a)),qe(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(s&&(a=s==="week"&&(ei(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,s)),+a)}function Fd(t,e,n,r){const s=lt.length;for(let i=lt.indexOf(t);i<s-1;++i){const a=Ga[lt[i]],o=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-e)/(o*a.size))<=r)return lt[i]}return lt[s-1]}function s5(t,e,n,r,s){for(let i=lt.length-1;i>=lt.indexOf(n);i--){const a=lt[i];if(Ga[a].common&&t._adapter.diff(s,r,a)>=e-1)return a}return lt[n?lt.indexOf(n):0]}function i5(t){for(let e=lt.indexOf(t)+1,n=lt.length;e<n;++e)if(Ga[lt[e]].common)return lt[e]}function Ud(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:s}=$l(n,e),i=n[r]>=e?n[r]:n[s];t[i]=!0}}function a5(t,e,n,r){const s=t._adapter,i=+s.startOf(e[0].value,r),a=e[e.length-1].value;let o,l;for(o=i;o<=a;o=+s.add(o,1,r))l=n[o],l>=0&&(e[l].major=!0);return e}function Hd(t,e,n){const r=[],s={},i=e.length;let a,o;for(a=0;a<i;++a)o=e[a],s[o]=a,r.push({value:o,major:!1});return i===0||!n?r:a5(t,r,s,n)}class Aa extends is{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),s=this._adapter=new Hw._date(e.adapters.date);s.init(n),Ns(r.displayFormats,s.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Bd(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:s,max:i,minDefined:a,maxDefined:o}=this.getUserBounds();function l(u){!a&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!o&&!isNaN(u.max)&&(i=Math.max(i,u.max))}(!a||!o)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=qe(s)&&!isNaN(s)?s:+n.startOf(Date.now(),r),i=qe(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(s,i-1),this.max=Math.max(s+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,s=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const i=this.min,a=this.max,o=g3(s,i,a);return this._unit=n.unit||(r.autoSkip?Fd(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):s5(this,o.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:i5(this._unit),this.initOffsets(s),e.reverse&&o.reverse(),Hd(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,s,i;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?r=i:r=(i-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=Mt(n,0,a),r=Mt(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,s=this.options,i=s.time,a=i.unit||Fd(i.minUnit,n,r,this._getLabelCapacity(n)),o=pe(s.ticks.stepSize,1),l=a==="week"?i.isoWeekday:!1,u=ei(l)||l===!0,d={};let f=n,y,h;if(u&&(f=+e.startOf(f,"isoWeek",l)),f=+e.startOf(f,u?"day":a),e.diff(r,n,a)>1e5*o)throw new Error(n+" and "+r+" are too far apart with stepSize of "+o+" "+a);const p=s.ticks.source==="data"&&this.getDataTimestamps();for(y=f,h=0;y<r;y=+e.add(y,o,a),h++)Ud(d,y,p);return(y===r||s.bounds==="ticks"||h===1)&&Ud(d,y,p),Object.keys(d).sort(Dd).map(m=>+m)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,i=this._unit,a=n||s[i];return this._adapter.format(e,a)}_tickFormatFunction(e,n,r,s){const i=this.options,a=i.ticks.callback;if(a)return Me(a,[e,n,r],this);const o=i.time.displayFormats,l=this._unit,u=this._majorUnit,d=l&&o[l],f=u&&o[u],y=r[n],h=u&&f&&y&&y.major;return this._adapter.format(e,s||(h?f:d))}generateTickLabels(e){let n,r,s;for(n=0,r=e.length;n<r;++n)s=e[n],s.label=this._tickFormatFunction(s.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,s=Nn(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(s),a=Math.sin(s),o=this._resolveTickFontOptions(0).size;return{w:r*i+o*a,h:r*a+o*i}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,s=r[n.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Hd(this,[e],this._majorUnit),s),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,r=s.length;n<r;++n)e=e.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const s=this.getLabels();for(n=0,r=s.length;n<r;++n)e.push(Bd(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return b3(e.sort(Dd))}}re(Aa,"id","time"),re(Aa,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Ui(t,e,n){let r=0,s=t.length-1,i,a,o,l;n?(e>=t[r].pos&&e<=t[s].pos&&({lo:r,hi:s}=nr(t,"pos",e)),{pos:i,time:o}=t[r],{pos:a,time:l}=t[s]):(e>=t[r].time&&e<=t[s].time&&({lo:r,hi:s}=nr(t,"time",e)),{time:i,pos:o}=t[r],{time:a,pos:l}=t[s]);const u=a-i;return u?o+(l-o)*(e-i)/u:o}class Wd extends Aa{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Ui(n,this.min),this._tableRange=Ui(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,s=[],i=[];let a,o,l,u,d;for(a=0,o=e.length;a<o;++a)u=e[a],u>=n&&u<=r&&s.push(u);if(s.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,o=s.length;a<o;++a)d=s[a+1],l=s[a-1],u=s[a],Math.round((d+l)/2)!==u&&i.push({time:u,pos:a/(o-1)});return i}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((s,i)=>s-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Ui(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Ui(this._table,r*this._tableRange+this._minPos,!0)}}re(Wd,"id","timeseries"),re(Wd,"defaults",Aa.defaults);const d0="label";function Qd(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function o5(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function f0(t,e){t.labels=e}function h0(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d0;const r=[];t.datasets=e.map(s=>{const i=t.datasets.find(a=>a[n]===s[n]);return!i||!s.data||r.includes(i)?{...s}:(r.push(i),Object.assign(i,s),i)})}function l5(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d0;const n={labels:[],datasets:[]};return f0(n,t.labels),h0(n,t.datasets,e),n}function u5(t,e){const{height:n=150,width:r=300,redraw:s=!1,datasetIdKey:i,type:a,data:o,options:l,plugins:u=[],fallbackContent:d,updateMode:f,...y}=t,h=D.useRef(null),p=D.useRef(null),m=()=>{h.current&&(p.current=new qa(h.current,{type:a,data:l5(o,i),options:l&&{...l},plugins:u}),Qd(e,p.current))},g=()=>{Qd(e,null),p.current&&(p.current.destroy(),p.current=null)};return D.useEffect(()=>{!s&&p.current&&l&&o5(p.current,l)},[s,l]),D.useEffect(()=>{!s&&p.current&&f0(p.current.config.data,o.labels)},[s,o.labels]),D.useEffect(()=>{!s&&p.current&&o.datasets&&h0(p.current.config.data,o.datasets,i)},[s,o.datasets]),D.useEffect(()=>{p.current&&(s?(g(),setTimeout(m)):p.current.update(f))},[s,l,o.labels,o.datasets,f]),D.useEffect(()=>{p.current&&(g(),setTimeout(m))},[a]),D.useEffect(()=>(m(),()=>g()),[]),D.createElement("canvas",{ref:h,role:"img",height:n,width:r,...y},d)}const c5=D.forwardRef(u5);function y0(t,e){return qa.register(e),D.forwardRef((n,r)=>D.createElement(c5,{...n,ref:r,type:t}))}const d5=y0("line",Zi),f5=y0("radar",$i);qa.register(ml,vl,Ms,Dn,na,CC,LC,UC,PC);var xl={elements:{line:{backgroundColor:"rgba(166, 30, 105, 0.2)",borderColor:"rgba(166, 30, 105, 1)",borderWidth:4},point:{backgroundColor:"rgba(166, 30, 105, 1)",borderColor:"rgba(255,255,255, .9)",borderWidth:2,radius:5,hoverRadius:6,hoverBorderWidth:3}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{mode:"index",intersect:!1}},interaction:{mode:"nearest",axis:"x",intersect:!1}},h5=function(e){var n=e.chart.ctx,r=e.chart.chartArea;if(!r)return"rgba(166, 30, 105, 0.1)";var s=(r.left+r.right)/2,i=(r.top+r.bottom)/2,a=Math.min((r.right-r.left)/2,(r.bottom-r.top)/2),o=n.createRadialGradient(s,i,0,s,i,a);return o.addColorStop(0,"rgba(255, 255, 255, 0.4)"),o.addColorStop(.3,"rgba(255, 255, 255, 0.4)"),o.addColorStop(1,"rgba(166, 30, 105, 0.2)"),o};function qd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function zd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qd(Object(n),!0).forEach(function(r){y5(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qd(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function y5(t,e,n){return(e=p5(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p5(t){var e=m5(t,"string");return Zr(e)=="symbol"?e:e+""}function m5(t,e){if(Zr(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Zr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zr(t){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zr(t)}function g5(t){var e=new Date(t);return isNaN(e.getTime())?String(t):e.toLocaleString("en-US",{month:"short",day:"numeric"})}var v5=function(){var e,n,r,s,i=qn(),a=i.data,o=i.isLoading,l=i.isRefetching,u=a==null?void 0:a.mentions,d=u==null||(e=u.mentionedInNumberOfQueries)===null||e===void 0||(e=e.previous)===null||e===void 0?void 0:e.difference,f=u==null?void 0:u.chart,y=Array.isArray(f==null?void 0:f.labels)?f.labels:f!=null&&f.labels&&Zr(f.labels)==="object"?Object.values(f.labels):[],h=y.map(function(v){return g5(String(v))}),p=a==null?void 0:a.numberOfQueries;if(!p){var m=0;Array.isArray(f==null?void 0:f.datasets)&&f.datasets.forEach(function(v){Array.isArray(v==null?void 0:v.data)&&v.data.forEach(function(S){typeof S=="number"&&S>m&&(m=S)})}),p=m+2}var g=zd(zd({},xl),{},{responsive:!0,maintainAspectRatio:!1,scales:{x:{display:!0,title:{display:!1,text:"Date"},grid:{display:!1}},y:{display:!0,title:{display:!1,text:"Number of Mentions"},beginAtZero:!0,max:p,ticks:{stepSize:1}}}});return c.jsx(w.Card,{className:"yst-overflow-visible",children:c.jsxs(w.Card.Content,{className:"yst-space-y-4",children:[c.jsxs("div",{className:"yst-space-y-2",children:[c.jsx(vi,{title:"Mentions progress",tooltip:"Tracks how your brand mentions have changed over time across the same query set."}),c.jsx(gi,{score:u==null||(n=u.mentionedInNumberOfQueries)===null||n===void 0?void 0:n.value,total:a==null?void 0:a.numberOfQueries,delta:d,deltaSuffix:"since last analysis",suffix:"queries",isLoading:o||l})]}),Array.isArray(f==null||(r=f.datasets)===null||r===void 0?void 0:r.data)&&(f==null||(s=f.datasets)===null||s===void 0?void 0:s.data.length)<2?c.jsx(w.Alert,{variant:"info",children:"One more analysis needed to show more insights."}):c.jsx("div",{className:"yst-h-72",children:c.jsx(d5,{data:function(){var v={labels:h,datasets:[f==null?void 0:f.datasets]};return v}(),options:g})})]})})};function Hi(t){var e=t.value,n=e===void 0?"—":e,r=t.label,s=t.tooltip,i=t.className,a=t.borderBottom,o=a===void 0?!1:a,l=t.borderRight,u=l===void 0?!1:l,d=t.delta,f=t.tooltipPosition,y=f===void 0?"left":f;return c.jsxs("div",{className:te("yst-relative yst-flex yst-flex-col yst-items-center yst-gap-1 yst-p-4 yst-text-center",o&&"yst-border-b yst-border-slate-200",u&&"yst-border-r yst-border-slate-200",i),children:[c.jsx("p",{className:"yst-text-2xl yst-font-bold yst-text-slate-900",children:n}),c.jsx("p",{className:"yst-text-tiny yst-text-slate-600",children:r}),typeof d=="number"&&c.jsxs("p",{className:te("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold",zs(d)),children:[d>0?c.jsx(cy,{}):d<0?c.jsx(uy,{}):null,d>-1e-6&&"+",d]}),s&&c.jsx(Yl,{id:"tooltip-".concat(r.replace(/\s+/g,"-").toLowerCase()),className:"yst-absolute yst-right-2 yst-top-2",position:y,children:s})]})}function b5(t){var e=t.children,n=t.className;return c.jsx("div",{className:te("yst-grid yst-w-full yst-grid-cols-2 yst-gap-0 yst-rounded-lg",n),children:e})}function x5(t){return t>0?"yst-text-green-600":t<0?"yst-text-red-600":"yst-text-slate-500"}function A5(t){var e=t.current,n=t.previous,r=t.className;if(typeof n!="number")return null;var s=e-n,i=s>0,a=s<0,o="".concat(s>0?"+":"").concat(s.toFixed(1),"%");return c.jsxs("div",{className:te("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold",x5(s),r),"aria-label":i?"Visibility increased by ".concat(o):a?"Visibility decreased by ".concat(o):"No change in visibility",children:[i&&c.jsx(cy,{className:"yst-w-4 yst-h-4"}),a&&c.jsx(uy,{className:"yst-w-4 yst-h-4"}),o]})}function ni(t){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ni(t)}function w5(t,e){return O5(t)||j5(t,e)||C5(t,e)||S5()}function S5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
52
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C5(t,e){if(t){if(typeof t=="string")return Gd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gd(t,e):void 0}}function Gd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function j5(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function O5(t){if(Array.isArray(t))return t}function Yd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Wi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yd(Object(n),!0).forEach(function(r){E5(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function E5(t,e,n){return(e=k5(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k5(t){var e=T5(t,"string");return ni(e)=="symbol"?e:e+""}function T5(t,e){if(ni(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ni(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function P5(){var t,e,n,r,s,i,a,o,l,u,d,f,y,h,p,m,g,v,S,k,j,A,C,b,x=Ot(),M=x.brandId,_=x.analysisId,L=Ia(M,_,{query:{select:function(be){var rt=be.data;return rt},enabled:!!M&&!!_}}),T=L.data,H=L.isLoading,R=T==null||(t=T.analysis)===null||t===void 0?void 0:t.scans,O=Array.isArray(R)&&R.length>0?R.reduce(function(ye,be){if(!ye)return be;if(!(be!=null&&be.finishedAt)||!(ye!=null&&ye.finishedAt))return ye;var rt=new Date(be.finishedAt),Ne=new Date(ye.finishedAt);return rt>Ne?be:ye},R[0]):void 0,I=O==null||(e=O.scores)===null||e===void 0?void 0:e.standardized,N=(n=O==null||(r=O.mentions)===null||r===void 0||(r=r.mentionedInNumberOfQueries)===null||r===void 0?void 0:r.value)!==null&&n!==void 0?n:0,G=O==null||(s=O.mentions)===null||s===void 0||(s=s.mentionedInNumberOfQueries)===null||s===void 0||(s=s.previous)===null||s===void 0?void 0:s.difference,z=(i=O==null||(a=O.scores)===null||a===void 0||(a=a.standardized)===null||a===void 0||(a=a.citations)===null||a===void 0?void 0:a.value)!==null&&i!==void 0?i:0,F=(o=O==null||(l=O.citations)===null||l===void 0||(l=l.total)===null||l===void 0?void 0:l.value)!==null&&o!==void 0?o:0,q=O==null||(u=O.citations)===null||u===void 0||(u=u.total)===null||u===void 0||(u=u.previous)===null||u===void 0?void 0:u.difference,U=O==null||(d=O.rankings)===null||d===void 0||(d=d.list)===null||d===void 0?void 0:d.find(function(ye){var be;return((be=ye.brand)===null||be===void 0?void 0:be.isSelf)===!0}),W=(f=U==null||(y=U.rank)===null||y===void 0?void 0:y.value)!==null&&f!==void 0?f:"—",Q=U==null||(h=U.rank)===null||h===void 0||(h=h.previous)===null||h===void 0?void 0:h.difference;Q&&(Q=Q*-1);var K=(p=I==null||(m=I.visibility)===null||m===void 0?void 0:m.value)!==null&&p!==void 0?p:0,J=I==null||(g=I.visibility)===null||g===void 0||(g=g.previous)===null||g===void 0?void 0:g.value,ne=(v=I==null||(S=I.ranking)===null||S===void 0?void 0:S.value)!==null&&v!==void 0?v:0,se=(k=I==null||(j=I.sentiment)===null||j===void 0?void 0:j.value)!==null&&k!==void 0?k:0,he=(A=I==null||(C=I.mentions)===null||C===void 0?void 0:C.value)!==null&&A!==void 0?A:0,oe={labels:["Mentions","Ranking","Citations","Sentiment"],datasets:[{data:[he,ne,z,se],backgroundColor:h5,pointBackgroundColor:"rgba(166, 30, 105, 1)"}]},Ee=Wi(Wi({},xl),{},{plugins:Wi(Wi({},xl.plugins),{},{tooltip:{mode:"point",intersect:!0,callbacks:{label:function(be){var rt=be.label||"",Ne=be.parsed.r||0;return"".concat(rt,": ").concat(Ne,"%")}}}}),interaction:{mode:"point",intersect:!0},scales:{r:{beginAtZero:!0,min:0,max:100,ticks:{stepSize:20}}}}),Y=D.useState(typeof window!="undefined"&&window.innerWidth<800?"top":"left"),Fe=w5(Y,2),tt=Fe[0],nt=Fe[1];return D.useEffect(function(){function ye(){nt(window.innerWidth<800?"top":"left")}return window.addEventListener("resize",ye),function(){return window.removeEventListener("resize",ye)}},[]),c.jsx(w.Card,{className:"yst-overflow-visible md:yst-col-span-2",children:c.jsxs(w.Card.Content,{children:[c.jsx(w.Title,{size:"3",className:"yst-mb-2",children:"AI Visibility Index (AIVI)"}),c.jsx(gi,{score:K,total:100,isLoading:H}),c.jsx(A5,{current:K,previous:J,className:"yst-mb-4"}),c.jsxs("div",{className:"yst-flex yst-flex-col yst-items-center yst-justify-around yst-justify-items-center yst-gap-8 md:yst-flex-row",children:[c.jsxs("div",{className:"yst-radar-chart-container yst-relative yst-aspect-square yst-h-full yst-w-full md:yst-flex md:yst-w-1/2 md:yst-items-center md:yst-justify-center",children:[c.jsx(f5,{data:oe,options:Ee}),c.jsx(Yl,{id:"tooltip-radar-chart",className:"yst-absolute yst-right-2 yst-top-2",position:"left",children:"The AI Visibility Index (AIVI) shows how visible your brand is across major AI platforms like ChatGPT, based on mentions, citations, sentiment, and rankings."})]}),c.jsx("div",{className:"yst-mt-6 yst-w-full md:yst-mt-0 md:yst-flex md:yst-w-1/2 md:yst-items-center",children:c.jsxs(b5,{children:[c.jsx(Hi,{value:N,label:"Mentions",tooltip:"Mentions show how often your brand appears in AI-generated answers to the questions we send to LLMs.",borderBottom:!0,borderRight:!0,delta:G,tooltipPosition:tt}),c.jsx(Hi,{value:typeof W=="number"&&Number.isFinite(W)&&W>0?c.jsxs(c.Fragment,{children:["#",W,W===1&&" 🏆"]}):"—",label:"Competitor ranking",tooltip:"Ranking shows the position your brand is mentioned in AI-generated answers—whether in a numbered list or the order of appearance in full-text responses.",borderBottom:!0,delta:Q}),c.jsx(Hi,{value:F,label:"Citations",tooltip:"Citations are the source links found in AI-generated answers. They form the basis for mentions, sentiment, and ranking insights.",borderRight:!0,delta:q,tooltipPosition:tt}),c.jsx(Hi,{value:se?"".concat(se,"%"):"—",label:"Positive sentiment",tooltip:"Sentiment reflects how positively, neutrally, or negatively your brand is mentioned in AI-generated answers, based on the cited sources.",delta:O==null||(b=O.scores)===null||b===void 0||(b=b.standardized)===null||b===void 0||(b=b.sentiment)===null||b===void 0||(b=b.previous)===null||b===void 0?void 0:b.difference})]})})]})]})})}const M5="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.652%2015.0488C2.3816%2015.0488%201.348%2014.0152%201.348%2012.7448V5.22476C1.348%203.95436%202.3816%202.92075%203.652%202.92075H9.5912L9.9304%202.07275H3.652C1.9144%202.07275%200.5%203.48716%200.5%205.22476V12.7448C0.5%2014.4824%201.9144%2015.8968%203.652%2015.8968H3.6776V15.0488H3.652Z'%20fill='%23A61E69'/%3e%3cpath%20d='M16.5%205.22468C16.5%203.74948%2015.4824%202.51428%2014.1096%202.17188L13.812%202.97188C14.8584%203.18628%2015.6488%204.11748%2015.6488%205.22788V15.0519H9.16236C9.00236%2015.3527%208.83276%2015.6375%208.65356%2015.8999H16.4968V5.22468H16.5Z'%20fill='%23A61E69'/%3e%3cpath%20d='M11.5815%200.140137L8.03267%209.99614L6.28867%204.53374H4.15747L6.82307%2011.3785C7.06947%2012.0121%207.06947%2012.7129%206.82307%2013.3497C6.56387%2014.0121%206.10627%2014.8025%204.82947%2015.0361L4.77187%2015.0457V16.8633H4.84547C5.91107%2016.8185%206.73667%2016.4665%207.44387%2015.7561C8.16387%2015.0329%208.78147%2013.9065%209.38947%2012.2137L13.8919%200.140137H11.5815Z'%20fill='%23A61E69'/%3e%3c/svg%3e";var L5=function(){var e,n=qn(),r=n.data,s=n.isLoading,i=n.isRefetching;if(s&&!i||(r==null||(e=r.mentions)===null||e===void 0||(e=e.mentionedInNumberOfQueries)===null||e===void 0?void 0:e.value)!==0)return null;var a=[{title:"Activate llms.txt",description:"Make sure AI systems know where to look and which pages matter most.",link:{url:"https://yoast.com/features/llms-txt/",text:"Set up llms.txt in Yoast SEO"}},{title:"Adopt an LLM-friendly content structure",description:"Start with clear definitions or TL;DRs, use subheadings, and format answers so LLMs can lift them directly.",link:{url:"https://yoast.com/yoast-seo-premium-september-9-2025/",text:"Learn how to generate AI summaries"}},{title:"Simplify writing and readability",description:"Use shorter sentences, plain language, and one idea per paragraph. This makes it easier for AI systems to recognize and quote your content."}];return c.jsx(w.Card,{className:"yst-overflow-visible yst-p-8 md:yst-col-span-2 yst-text-slate-800",children:c.jsxs(w.Card.Content,{className:"yst-max-w-2xl",children:[c.jsx(w.Title,{size:"2",className:"yst-mb-2 yst-text-slate-900",children:"We couldn't find your brand in this brand analysis..."}),c.jsx("p",{className:"yst-text-slate-600",children:"This means LLMs may not yet be surfacing your site in answers. Don't worry, here are some steps you can take today to boost your AI visibility:"}),c.jsx("ol",{className:"yst-my-0 yst-list-none yst-divide-y yst-divide-slate-200 [counter-reset:list-counter]",children:a.map(function(o,l){return c.jsx("li",{className:"yst-relative yst-py-4 last:yst-pb-0 [counter-increment:list-counter] before:yst-absolute before:yst-left-0 before:yst-font-semibold before:yst-text-slate-800 before:yst-content-[counter(list-counter)'.']",children:c.jsxs("div",{className:"yst-ml-4 yst-text-slate-600",children:[c.jsx("strong",{className:"yst-font-medium yst-text-slate-800",children:o.title}),c.jsx("br",{}),o.description,o.link&&c.jsxs(c.Fragment,{children:[c.jsx("br",{}),c.jsx("span",{className:"yst-mt-2 yst-block",children:c.jsxs("a",{href:o.link.url,target:"_blank",rel:"noopener noreferrer",className:"yst-font-medium",children:[o.link.text,c.jsx(Gu,{className:"yst-ml-1 yst-inline yst-h-3 yst-w-3"})]})})]})]})},l)})}),c.jsx(ss,{size:4,className:"yst-pt-0"}),c.jsxs("p",{className:"yst-text-slate-600",children:["Want to go deeper? →"," ",c.jsxs("a",{href:"https://yoast.com/how-to-optimize-content-for-llms/",target:"_blank",rel:"noopener noreferrer",className:"yst-font-medium",children:["Read our full guide on optimizing content for LLMs",c.jsx(Gu,{className:"yst-ml-1 yst-inline yst-h-3 yst-w-3"})]})]})]})})};function I5(t,e){return D5(t)||_5(t,e)||N5(t,e)||R5()}function R5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N5(t,e){if(t){if(typeof t=="string")return Vd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vd(t,e):void 0}}function Vd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _5(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function D5(t){if(Array.isArray(t))return t}var wo=function(){var e=Ot(),n=e.brandId,r=e.analysisId,s=Cr({query:{select:function(x){var M=x.data;return M==null?void 0:M.brands}}}),i=s.data,a=s.isLoading,o=Ia(n,r,{query:{enabled:!!n&&Wb(r),select:function(x){var M=x.data;return M==null?void 0:M.analysis}}}),l=o.data,u=o.isLoading,d=l==null?void 0:l.status,f=a||u,y=i&&(i==null?void 0:i.length)>0,h=!f&&l&&d===jn.completed,p=D.useState(!1),m=I5(p,2),g=m[0],v=m[1],S=D.useRef(null),k=D.useRef(void 0),j=localStorage.getItem("yst_congratulations_toast_seen")==="true";D.useEffect(function(){return h&&!k.current&&!j&&(S.current=setTimeout(function(){v(!0),localStorage.setItem("yst_congratulations_toast_seen","true")},1e4)),!h&&k.current&&(v(!1),S.current&&(clearTimeout(S.current),S.current=null)),k.current=h,function(){S.current&&(clearTimeout(S.current),S.current=null)}},[h,j]);function A(b){var x=b.children;if(typeof window=="undefined")return null;var M=document.getElementById("tsx-toasts");return M?Jf.createPortal(x,M):null}var C=function(x){var M=x.isVisible,_=x.setIsVisible,L=function(){_(!1)};return c.jsxs(w.Toast,{id:"toast",isVisible:M,setIsVisible:function(T){T||_(!1)},children:[c.jsxs("div",{className:"yst-mb-3 yst-flex yst-items-start yst-gap-3",children:[c.jsx("img",{src:M5}),c.jsxs("div",{className:"yst-grow",children:[c.jsx(w.Title,{size:"3",className:"yst-mb-1",children:"Congratulations on your first analysis!"}),"You’ve completed your brand analysis. We’d love to hear what you think."]}),c.jsx(w.Button,{variant:"tertiary",onClick:L,children:c.jsx(hy,{})})]}),c.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-4",children:[c.jsx(w.Button,{variant:"tertiary",onClick:L,children:"Dismiss"}),c.jsxs(w.Button,{as:"a",href:"https://www.surveymonkey.com/r/HGSB8DL",target:"_blank",children:["Give feedback",c.jsx(fy,{className:"yst-ml-2"})]})]})]})};return a?c.jsx(_a,{}):y?c.jsxs("div",{className:"yst-space-y-4",children:[c.jsx(PA,{}),h&&c.jsxs("div",{className:"yst-space-y-4",children:[c.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between",children:[c.jsx(w.Title,{size:"2",children:"Your brand analysis"}),c.jsxs(w.Button,{as:Wn,variant:"secondary",to:"/brands/".concat(n,"/brand-list"),className:te("yst-gap-1.5"),disabled:!n,children:[c.jsx(sy,{})," Edit brand list"]})]}),c.jsxs("div",{className:"yst-grid yst-grid-cols-1 yst-gap-4 md:yst-grid-cols-2",children:[c.jsx(L5,{}),c.jsx(P5,{}),c.jsx(MA,{}),c.jsx(v5,{}),c.jsx(G1,{}),c.jsx(U1,{}),c.jsx(j1,{}),c.jsx(Y1,{})]}),c.jsx(A,{children:c.jsx(C,{isVisible:g,setIsVisible:v})})]})]}):c.jsx(u1,{})};function p0(t){var e=t.children,n=t.description,r=t.title;return c.jsxs(w.Card.Header,{className:"yst-h-auto yst-flex-col yst-items-start yst-gap-0 yst-border-b-[1px] yst-border-b-slate-200 yst-bg-white yst-py-8",children:[r&&c.jsx(w.Title,{className:te({"yst-mb-3":n||e}),children:r}),n&&c.jsx("p",{children:n}),e]})}var B5=function(){return c.jsx(w.Card,{className:"yst-mb-4",children:c.jsxs(w.Card.Content,{className:"yst-flex yst-flex-col yst-gap-8",children:[c.jsx(w.Title,{size:"2",children:"Query - Best fish restaurant in Nijmegen"}),c.jsxs("div",{children:[c.jsx("p",{children:"AI Response:"}),c.jsx(w.Link,{href:"#todo",children:"Show more"})]}),c.jsxs("div",{children:[c.jsx("p",{children:"Extracted brands:"}),c.jsx(w.Badge,{children:"Example"}),c.jsx(w.Badge,{children:"Example"}),c.jsx(w.Badge,{children:"Example"}),c.jsx(w.Badge,{children:"Example"}),c.jsx(w.Badge,{children:"Example"})]}),c.jsxs(w.Table,{children:[c.jsx(w.Table.Head,{children:c.jsxs(w.Table.Row,{children:[c.jsx(w.Table.Header,{children:"URL"}),c.jsx(w.Table.Header,{children:"Associated brand"})]})}),c.jsxs(w.Table.Body,{children:[c.jsxs(w.Table.Row,{children:[c.jsx(w.Table.Cell,{children:c.jsx(w.Link,{href:"https://example.com",target:"_blank",children:"https://example.com"})}),c.jsx(w.Table.Cell,{children:"Example Brand"})]}),c.jsxs(w.Table.Row,{children:[c.jsx(w.Table.Cell,{children:c.jsx(w.Link,{href:"https://example2.com",target:"_blank",children:"https://example2.com"})}),c.jsx(w.Table.Cell,{children:"Example Brand 2"})]})]})]})]})})},F5=function(){return c.jsxs(w.Card,{children:[c.jsx(p0,{title:"Query history"}),c.jsx(w.Card,{className:"yst-mb-4",children:c.jsxs(w.Card.Content,{children:[c.jsxs("p",{className:"yst-mb-8",children:["Manna Fish Restaurant - Analysis performed on:"," ",c.jsx(w.Badge,{children:"2025-04-08 12:31:21"})]}),[0,1,2,3,4].map(function(e){return c.jsx(B5,{},e)})]})})]})},U5=D.lazy(function(){return Promise.resolve().then(()=>C6)}),H5=D.lazy(function(){return Promise.resolve().then(()=>s4)}),W5=D.lazy(function(){return Promise.resolve().then(()=>o4)}),Q5=D.lazy(function(){return Promise.resolve().then(()=>A4)}),q5=D.lazy(function(){return Promise.resolve().then(()=>U4)}),z5=D.lazy(function(){return Promise.resolve().then(()=>i8)}),G5=new wm({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,staleTime:1e3*60*5},mutations:{retry:!1}}}),Y5=D.lazy(function(){return Promise.resolve({default:function(){return null}})}),rn=function(){return c.jsx("div",{className:"yst-flex yst-min-h-[200px] yst-items-center yst-justify-center",children:c.jsxs("div",{className:"yst-w-full yst-max-w-md yst-space-y-3",children:[c.jsx(w.SkeletonLoader,{className:"yst-h-8 yst-w-3/4"}),c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-full"}),c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-2/3"})]})})},V5=function(e){var n=e.hideNav,r=n===void 0?!1:n,s=e.disableLayout,i=s===void 0?!1:s,a=e.DebugInfo;return c.jsx(Ap,{children:c.jsxs(Ge,{element:c.jsx(kb,{hideNav:r,disableLayout:i,DebugInfo:a}),children:[c.jsxs(Ge,{path:"/",element:c.jsx(Vr,{}),children:[c.jsx(Ge,{index:!0,element:c.jsxs(D.Suspense,{fallback:c.jsx(rn,{}),children:[c.jsx(tn,{title:"AI Brand Insights"}),c.jsx(wo,{})]})}),c.jsxs(Ge,{path:"brands/:brandId",element:c.jsx(ec,{}),children:[c.jsx(Ge,{index:!0,element:c.jsx(wo,{})}),c.jsx(Ge,{path:"brand-list",element:c.jsxs(D.Suspense,{fallback:c.jsx(rn,{}),children:[c.jsx(tn,{title:"Brands - AI Brand Insights"}),c.jsx(U5,{})]})}),c.jsx(Ge,{path:"analysis/:analysisId",element:c.jsx(Tb,{}),children:c.jsx(Ge,{index:!0,element:c.jsxs(D.Suspense,{fallback:c.jsx(rn,{}),children:[c.jsx(tn,{title:"Analysis - AI Brand Insights"}),c.jsx(wo,{})]})})})]}),c.jsxs(Ge,{path:"/setup",element:c.jsxs(D.Suspense,{fallback:c.jsx(rn,{}),children:[c.jsx(tn,{title:"Setup brand - AI Brand Insights"}),c.jsx(W5,{})]}),children:[c.jsx(Ge,{index:!0,element:c.jsxs(D.Suspense,{fallback:c.jsx(rn,{}),children:[c.jsx(tn,{title:"AI Brand Insights"}),c.jsx(Q5,{})]})}),c.jsxs(Ge,{path:":brandId",element:c.jsx(ec,{}),children:[c.jsx(Ge,{path:"queries",element:c.jsxs(D.Suspense,{fallback:c.jsx(rn,{}),children:[c.jsx(tn,{title:"Setup queries - AI Brand Insights"}),c.jsx(q5,{})]})}),c.jsx(Ge,{path:"analysis",element:c.jsxs(D.Suspense,{fallback:c.jsx(rn,{}),children:[c.jsx(tn,{title:"Analysis - AI Brand Insights"}),c.jsx(z5,{})]})})]})]})]}),c.jsx(Ge,{path:"/settings",element:c.jsxs(D.Suspense,{fallback:c.jsx(rn,{}),children:[c.jsx(tn,{title:"Settings - AI Brand Insights"}),c.jsx(H5,{})]})}),c.jsx(Ge,{path:"/query-history",element:c.jsxs(D.Suspense,{fallback:c.jsx(rn,{}),children:[c.jsx(tn,{title:"Query history - AI Brand Insights"}),c.jsx(F5,{})]})}),!1]})})},K5=function(e){var n=e.DebugInfo,r=e.hostAppProps;return c.jsxs(Sm,{client:G5,children:[c.jsx(Bb,{children:c.jsxs(xv,{hostAppProps:r,children:[c.jsx(V5,{DebugInfo:n}),c.jsx(Fb,{})]})}),c.jsx(D.Suspense,{fallback:null,children:c.jsx(Y5,{initialIsOpen:!1})})]})};function X5(t){var e=t.subpath,n=e===void 0?"/":e,r=t.onNavigate,s=dt(),i=et(),a=D.useRef(n),o=D.useRef(null),l=D.useRef(!1),u="".concat(i.pathname).concat(i.search).concat(i.hash),d=D.useCallback(r,[r]);return D.useEffect(function(){if(n===u){a.current=n;return}l.current||n!==a.current&&(a.current=n,o.current=n,l.current=!0,s(n,{replace:!0}),setTimeout(function(){l.current=!1},10))},[n,u,s]),D.useEffect(function(){l.current||u!==n&&u!==o.current&&(o.current=u,d(u))},[u,n,d]),null}function J5(t,e){return t6(t)||e6(t,e)||$5(t,e)||Z5()}function Z5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $5(t,e){if(t){if(typeof t=="string")return Kd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kd(t,e):void 0}}function Kd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function t6(t){if(Array.isArray(t))return t}var n6=function(e){var n=e.isRtl,r=n===void 0?!1:n,s=e.className,i=e.style,a=e.token,o=a===void 0?"":a,l=e.apiUrl,u=e.DebugInfo,d=e.basename,f=d===void 0?"/":d,y=e.subpath,h=y===void 0?"/":y,p=e.onNavigate,m=p===void 0?function(){}:p,g=e.onLogout,v=g===void 0?function(){}:g,S=e.onAddSubscription,k=S===void 0?function(){}:S,j=function(L,T){var H=L.endsWith("/")?L.slice(0,-1):L,R=T.startsWith("/")?T:"/".concat(T);return H+R||"/"},A=D.useState(!!(o||l)),C=J5(A,2),b=C[0],x=C[1],M={onAddSubscription:k,onLogout:v,onNavigate:m,DebugInfo:u,basename:f,subpath:h};return D.useEffect(function(){l&&Jh(l),g2(typeof o!="function"?function(){return o}:o),x(!1)},[l,o]),b?c.jsx("div",{className:s,style:i,children:c.jsx(w.Spinner,{})}):c.jsx("div",{className:s,style:i,children:c.jsxs(bp,{initialEntries:[j(f,h)],basename:f||"/",children:[c.jsx(X5,{subpath:h,onNavigate:m}),c.jsx(w.Root,{context:{isRtl:r},children:c.jsx(K5,{DebugInfo:u,hostAppProps:M})})]})})};function m0(t){var e=t.children,n=t.description,r=t.title;return c.jsxs(w.Paper.Header,{children:[r&&c.jsx(w.Title,{className:te({"yst-mb-3":n||e}),children:r}),n&&(typeof n=="string"?c.jsx("p",{children:n}):n),e]})}function Al(t){"@babel/helpers - typeof";return Al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Al(t)}function Ls(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return mt(S,"_invoke",function(k,j,A){var C,b,x,M=0,_=A||[],L=!1,T={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,I){return C=O,b=0,x=t,T.n=I,a}};function H(R,O){for(b=R,x=O,e=0;!L&&M&&!I&&e<_.length;e++){var I,N=_[e],G=T.p,z=N[2];R>3?(I=z===O)&&(x=N[(b=N[4])?5:(b=3,3)],N[4]=N[5]=t):N[0]<=G&&((I=R<2&&G<N[1])?(b=0,T.v=O,T.n=N[1]):G<z&&(I=R<3||N[0]>O||O>z)&&(N[4]=R,N[5]=O,T.n=z,b=0))}if(I||R>1)return a;throw L=!0,O}return function(R,O,I){if(M>1)throw TypeError("Generator is already running");for(L&&O===1&&H(O,I),b=O,x=I;(e=b<2?t:x)||!L;){C||(b?b<3?(b>1&&(T.n=-1),H(b,x)):T.n=x:T.v=x);try{if(M=2,C){if(b||(R="next"),e=C[R]){if(!(e=e.call(C,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=C.return)&&e.call(C),b<2&&(x=TypeError("The iterator does not provide a '"+R+"' method"),b=1);C=t}else if((e=(L=T.n<0)?x:k.call(j,T))!==a)break}catch(N){C=t,b=1,x=N}finally{M=1}}return{value:e,done:L}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(mt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(d);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,mt(h,s,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,mt(f,"constructor",u),mt(u,"constructor",l),l.displayName="GeneratorFunction",mt(u,s,"GeneratorFunction"),mt(f),mt(f,s,"Generator"),mt(f,r,function(){return this}),mt(f,"toString",function(){return"[object Generator]"}),(Ls=function(){return{w:i,m:y}})()}function mt(t,e,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(i){s=0}mt=function(a,o,l,u){if(o)s?s(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var d=function(y,h){mt(a,y,function(p){return this._invoke(y,h,p)})};d("next",0),d("throw",1),d("return",2)}},mt(t,e,n,r)}function Xd(t,e,n,r,s,i,a){try{var o=t[i](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,s)}function Jd(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function a(l){Xd(i,r,s,a,o,"next",l)}function o(l){Xd(i,r,s,a,o,"throw",l)}a(void 0)})}}function So(t,e){return a6(t)||i6(t,e)||s6(t,e)||r6()}function r6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s6(t,e){if(t){if(typeof t=="string")return Zd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zd(t,e):void 0}}function Zd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function i6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function a6(t){if(Array.isArray(t))return t}var o6=function(e){var n=e.isOpen,r=e.onClose,s=e.groupToEdit,i=e.allBrands,a=Ot(),o=a.brandId,l=a.analysisId,u=D.useState(""),d=So(u,2),f=d[0],y=d[1],h=D.useState([]),p=So(h,2),m=p[0],g=p[1],v=D.useState(!1),S=So(v,2),k=S[0],j=S[1],A=Nt();D.useEffect(function(){if(n&&s&&s.type==="group"){var z;y(String(s.name||""));var F=((z=s.groupedBrands)===null||z===void 0?void 0:z.map(function(q){return String(q.id||"")}))||[];g(F)}},[n,s]);var C=ey({mutation:{onSuccess:function(){var z=Jd(Ls().m(function q(){return Ls().w(function(U){for(;;)switch(U.n){case 0:return U.n=1,Promise.all([A.invalidateQueries({queryKey:ua(o)}),A.invalidateQueries({queryKey:yn(o,"latest")}),A.invalidateQueries({queryKey:$t(o,"latest")}),A.invalidateQueries({queryKey:yn(o,l)}),A.invalidateQueries({queryKey:$t(o,l)})]);case 1:R();case 2:return U.a(2)}},q)}));function F(){return z.apply(this,arguments)}return F}(),onError:function(F){console.error("Error creating brand group:",F)}}}),b=C.mutate,x=C.isPending,M=Q2({mutation:{onSuccess:function(){var z=Jd(Ls().m(function q(){return Ls().w(function(U){for(;;)switch(U.n){case 0:return U.n=1,Promise.all([A.invalidateQueries({queryKey:ua(o)}),A.invalidateQueries({queryKey:yn(o,"latest")}),A.invalidateQueries({queryKey:$t(o,"latest")}),A.invalidateQueries({queryKey:yn(o,l)}),A.invalidateQueries({queryKey:$t(o,l)})]);case 1:R(),N();case 2:return U.a(2)}},q)}));function F(){return z.apply(this,arguments)}return F}(),onError:function(F){console.error("Error deleting brand group:",F),window.alert("An error occurred while ungrouping the brands. Please try again later.")}}}),_=M.mutate,L=M.isPending,T=typeof(s==null?void 0:s.id)=="string"&&s.id.length>0||typeof(s==null?void 0:s.id)=="number"&&!isNaN(s.id),H=function(){!f.trim()||!T||b({brandId:o,data:{groupName:f.trim(),brandIds:m}})},R=function(){y(""),g([]),r()},O=function(){return m.map(function(F){if(s&&s.type==="group"){var q,U=(q=s.groupedBrands)===null||q===void 0?void 0:q.find(function(Q){return String(Q.id)===F});if(U)return U.name||""}var W=i.find(function(Q){return String(Q.id)===F});return W?W.type==="group"?"Group: ".concat(W.name):W.name||"":""}).filter(Boolean)},I=function(){j(!0)},N=function(){return j(!1)},G=function(){if(!T){console.error("Invalid groupId provided for ungrouping. groupToEdit?.id: ".concat(s==null?void 0:s.id," (type: ").concat(Al(s==null?void 0:s.id),")")),N();return}_({brandId:o,brandGroupId:s.id})};return!s||s.type!=="group"?null:c.jsxs(c.Fragment,{children:[c.jsx(w.Modal,{isOpen:n,onClose:k?function(){}:R,as:"div",children:c.jsx(w.Modal.Panel,{children:c.jsxs(w.Modal.Container,{children:[c.jsx(w.Modal.Container.Header,{className:"yst-mb-4",children:c.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Edit brand group"})}),c.jsxs(w.Modal.Container.Content,{className:"yst-mb-8 yst-space-y-4",children:[c.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"Update the group name or ungroup brands by removing their tags."}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"editGroupName",className:"yst-mb-2 yst-block yst-text-sm yst-font-medium",children:"Group name"}),c.jsx(w.TextInput,{id:"editGroupName",value:f,onChange:function(z){return y(z.target.value)},placeholder:"Enter group name",className:"yst-w-full"})]}),c.jsxs("div",{children:[c.jsx(w.TagField,{readOnly:!0,id:"editGroupedBrands",label:"Grouped brands",tags:O(),onRemoveTag:function(z){if(m.length<2)return j(!0);g(function(F){return F.filter(function(q,U){return U!==z})})},onAddTag:function(){}}),m.length===0?c.jsx("p",{className:"yst-mt-2 yst-text-sm",children:'Click "Ungroup brands" to remove this group.'}):c.jsx("p",{className:"yst-mt-2 yst-text-sm yst-italic yst-text-gray-500",children:"Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped."})]})]}),c.jsx(w.Modal.Container.Footer,{children:c.jsxs("div",{className:"yst-flex yst-w-full yst-items-center yst-justify-between",children:[c.jsx("div",{className:"yst-flex yst-justify-start",children:c.jsx(w.Button,{variant:"tertiary",onClick:I,disabled:x||!T,className:"yst-text-red-600",children:"Ungroup brands"})}),c.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[c.jsx(w.Button,{variant:"secondary",onClick:R,children:"Cancel"}),c.jsx(w.Button,{variant:"primary",onClick:H,disabled:!f.trim()||x,isLoading:x,children:x?"Saving...":"Save changes"})]})]})})]})})}),c.jsx(Da,{isOpen:k,onClose:N,onConfirm:G,disabled:!T||L,isLoading:L,title:"Ungroup this brand group?",description:c.jsxs(c.Fragment,{children:[c.jsx("p",{children:"The group will be removed, but the brands inside will remain in your brand list."}),c.jsx("p",{children:"This action cannot be undone. To create a new group with these brands, simply select them and create a new group."})]}),confirmText:"Yes, ungroup"})]})};function wl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return gt(S,"_invoke",function(k,j,A){var C,b,x,M=0,_=A||[],L=!1,T={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,I){return C=O,b=0,x=t,T.n=I,a}};function H(R,O){for(b=R,x=O,e=0;!L&&M&&!I&&e<_.length;e++){var I,N=_[e],G=T.p,z=N[2];R>3?(I=z===O)&&(x=N[(b=N[4])?5:(b=3,3)],N[4]=N[5]=t):N[0]<=G&&((I=R<2&&G<N[1])?(b=0,T.v=O,T.n=N[1]):G<z&&(I=R<3||N[0]>O||O>z)&&(N[4]=R,N[5]=O,T.n=z,b=0))}if(I||R>1)return a;throw L=!0,O}return function(R,O,I){if(M>1)throw TypeError("Generator is already running");for(L&&O===1&&H(O,I),b=O,x=I;(e=b<2?t:x)||!L;){C||(b?b<3?(b>1&&(T.n=-1),H(b,x)):T.n=x:T.v=x);try{if(M=2,C){if(b||(R="next"),e=C[R]){if(!(e=e.call(C,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=C.return)&&e.call(C),b<2&&(x=TypeError("The iterator does not provide a '"+R+"' method"),b=1);C=t}else if((e=(L=T.n<0)?x:k.call(j,T))!==a)break}catch(N){C=t,b=1,x=N}finally{M=1}}return{value:e,done:L}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(gt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(d);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,gt(h,s,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,gt(f,"constructor",u),gt(u,"constructor",l),l.displayName="GeneratorFunction",gt(u,s,"GeneratorFunction"),gt(f),gt(f,s,"Generator"),gt(f,r,function(){return this}),gt(f,"toString",function(){return"[object Generator]"}),(wl=function(){return{w:i,m:y}})()}function gt(t,e,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(i){s=0}gt=function(a,o,l,u){if(o)s?s(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var d=function(y,h){gt(a,y,function(p){return this._invoke(y,h,p)})};d("next",0),d("throw",1),d("return",2)}},gt(t,e,n,r)}function $d(t,e,n,r,s,i,a){try{var o=t[i](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,s)}function l6(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function a(l){$d(i,r,s,a,o,"next",l)}function o(l){$d(i,r,s,a,o,"throw",l)}a(void 0)})}}function ef(t,e){return f6(t)||d6(t,e)||c6(t,e)||u6()}function u6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c6(t,e){if(t){if(typeof t=="string")return tf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tf(t,e):void 0}}function tf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function f6(t){if(Array.isArray(t))return t}var h6=function(e){var n=e.isOpen,r=e.onClose,s=e.brandId,i=e.brandsToGroup,a=e.onGroupCreated,o=Nt(),l=Ot(),u=l.analysisId,d=D.useState(""),f=ef(d,2),y=f[0],h=f[1],p=D.useState([]),m=ef(p,2),g=m[0],v=m[1];D.useEffect(function(){if(n&&i.length>0){var M,_=(M=i[0])===null||M===void 0?void 0:M.name;h(String(_||"New Group")),v(i.map(function(L){var T;return String((T=L.id)!==null&&T!==void 0?T:"")}))}},[n,i]);var S=ey({mutation:{onSuccess:function(){var M=l6(wl().m(function L(){return wl().w(function(T){for(;;)switch(T.n){case 0:return T.n=1,Promise.all([o.invalidateQueries({queryKey:ua(s)}),o.invalidateQueries({queryKey:Wl(s)}),o.invalidateQueries({queryKey:yn(s,"latest")}),o.invalidateQueries({queryKey:$t(s,"latest")}),o.invalidateQueries({queryKey:yn(s,u)}),o.invalidateQueries({queryKey:$t(s,u)})]);case 1:a==null||a(),A();case 2:return T.a(2)}},L)}));function _(){return M.apply(this,arguments)}return _}(),onError:function(_){console.error("Error creating group:",_)}}}),k=S.mutate,j=S.isPending,A=function(){h(""),v([]),r()},C=function(){if(!(!y.trim()||g.length===0)){var _=g.flatMap(function(L){var T=i.find(function(H){return String(H.id)===L});return T&&T.type==="group"&&Array.isArray(T.groupedBrands)?T.groupedBrands.map(function(H){return String(H.id)}):L});k({brandId:s,data:{groupName:y.trim(),brandIds:_.filter(function(L){return L!==""})}})}},b=function(_){v(function(L){var T=L.filter(function(H){return H!==_});return T.length===0&&A(),T})},x=g.map(function(M){var _=i.find(function(L){return String(L.id)===M});return _?_.type==="group"?"Group: ".concat(_.name):_.name||"":""}).filter(Boolean);return c.jsx(w.Modal,{isOpen:n,onClose:A,children:c.jsx(w.Modal.Panel,{children:c.jsxs(w.Modal.Container,{children:[c.jsx(w.Modal.Container.Header,{children:c.jsx(w.Modal.Title,{children:"Create brand group"})}),c.jsxs(w.Modal.Container.Content,{className:"yst-space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{htmlFor:"groupName",className:"yst-mb-2 yst-block yst-text-sm yst-font-medium",children:"Group name"}),c.jsx(w.TextInput,{id:"groupName",value:y,onChange:function(M){return h(M.target.value)},placeholder:"Enter group name",className:"yst-w-full"})]}),c.jsxs("div",{children:[c.jsx(w.TagField,{readOnly:!0,id:"groupedBrands",label:"Brands in group (".concat(g.length,")"),tags:x,onRemoveTag:function(M){var _=g[M];_&&b(_)},onAddTag:function(){}}),g.length===0&&c.jsx("p",{className:"yst-text-sm yst-italic yst-text-gray-500",children:"No brands selected"})]}),c.jsx("p",{children:"Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped."})]}),c.jsx(w.Modal.Container.Footer,{className:"yst-pt-4",children:c.jsxs("div",{className:"yst-flex yst-justify-end yst-gap-2",children:[c.jsx(w.Button,{variant:"secondary",onClick:A,disabled:j,children:"Cancel"}),c.jsx(w.Button,{variant:"primary",onClick:C,disabled:!y.trim()||g.length===0||j,children:j?"Saving...":"Save group"})]})})]})})})};function ri(t){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(t)}function nf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function rf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nf(Object(n),!0).forEach(function(r){g0(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function g0(t,e,n){return(e=y6(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y6(t){var e=p6(t,"string");return ri(e)=="symbol"?e:e+""}function p6(t,e){if(ri(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ri(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function m6(t){return b6(t)||v6(t)||v0(t)||g6()}function g6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v6(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function b6(t){if(Array.isArray(t))return Sl(t)}function zt(t,e){return w6(t)||A6(t,e)||v0(t,e)||x6()}function x6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v0(t,e){if(t){if(typeof t=="string")return Sl(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sl(t,e):void 0}}function Sl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function A6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function w6(t){if(Array.isArray(t))return t}var S6=function(){var e,n=dt(),r=D.useState(!1),s=zt(r,2),i=s[0],a=s[1],o=D.useState({}),l=zt(o,2),u=l[0],d=l[1],f=D.useState(""),y=zt(f,2),h=y[0],p=y[1],m=D.useState(1),g=zt(m,2),v=g[0],S=g[1],k=D.useState({}),j=zt(k,2),A=j[0],C=j[1],b=D.useState(!1),x=zt(b,2),M=x[0],_=x[1],L=D.useState(!1),T=zt(L,2),H=T[0],R=T[1],O=D.useState(null),I=zt(O,2),N=I[0],G=I[1],z=Ot(),F=z.brandId;function q(ae){return String(ae.id)}var U=B2(F,{query:{enabled:!!F}}),W=U.data,Q=U.isLoading,K=10,J=(W==null||(e=W.data)===null||e===void 0?void 0:e.associatedBrands.filter(function(ae){var le,ge;return h?((le=(ge=ae.name)===null||ge===void 0?void 0:ge.toLowerCase())!==null&&le!==void 0?le:"").includes(h.toLowerCase()):!0}))||[],ne=Math.ceil(J.length/K),se=(v-1)*K,he=m6(J).sort(function(ae,le){return ae.type==="group"&&le.type!=="group"?-1:ae.type!=="group"&&le.type==="group"?1:0}),oe=he.slice(se,se+K),Ee=function(le){var ge=J.find(function(Te){return q(Te)===le});ge&&ge.type==="group"&&(G(ge),R(!0))},Y=Object.entries(A).filter(function(ae){var le=zt(ae,2),ge=le[1];return ge}).map(function(ae){var le=zt(ae,1),ge=le[0];return ge}),Fe=function(){_(!0)},tt=function(le){p(le.target.value),S(1)},nt=function(le){C(function(ge){return rf(rf({},ge),{},g0({},le,!ge[le]))})},ye=function(){n("/")},be=function(){C({}),d({}),a(!1)},rt=function(){_(!1)},Ne=function(){C({}),S(1),p("")},jr=function(){R(!1),G(null)},Gn=function(le,ge){return le in u?!!u[le]:!ge.isHidden},_e=[{Header:"Brand name",accessor:"name",Cell:function(le){var ge=le.value,Te=le.row;return c.jsx("span",{className:"yst-font-medium yst-text-slate-900",children:c.jsxs("div",{className:"yst-flex yst-items-center yst-gap-2",children:[c.jsx(w.Checkbox,{id:"brand-checkbox-".concat(Te.id),checked:!!A[q(Te)],onChange:function(){return nt(q(Te))},value:q(Te),label:Te.isSelf?c.jsx(qs,{children:ge}):ge,name:"brand-checkbox-".concat(Te.id),disabled:!Gn(q(Te),Te)}),Te.type==="group"&&c.jsx(t1,{className:"yst-h-4 yst-w-4 yst-text-slate-400"})]})})},LoadingComponent:function(le){var ge=le.id,Te=ge===void 0?"":ge;return c.jsxs("div",{className:"yst-flex",children:[c.jsx(w.Checkbox,{id:"loading-row-checkbox-".concat(Te),value:"loading",label:"",disabled:!0,name:"brand-checkbox-".concat(Te)})," ",c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-32",id:"loading-row-skeleton-".concat(Te)})]})}},{Header:"Actions",accessor:"id",Cell:function(le){var ge=le.value,Te=le.row;return c.jsx(c.Fragment,{children:Te.type==="group"?c.jsxs(w.Button,{variant:"tertiary",size:"small",onClick:function(){return Ee(String(ge!=null?ge:""))},className:"yst-gap-1.5 yst-px-0",disabled:!Gn(q(Te),Te),children:[c.jsx(sy,{className:"yst-h-4 yst-w-4"}),"Edit group"]}):void 0})},LoadingComponent:function(){return c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-24"})}}];return c.jsxs(w.Paper,{className:"yst-mx-auto yst-max-w-2xl",children:[c.jsx(m0,{title:"Brand list ".concat(""),children:c.jsx("p",{children:"These are the brands found in responses to your example prompts. Group related brands to improve your analysis. You can rename or exclude irrelevant brands, and new brands will be added automatically if they appear in future analysis runs."})}),c.jsxs(w.Paper.Content,{children:[c.jsx("div",{className:"yst-mb-6",children:c.jsx(w.TextInput,{id:"brand-search",label:"Search brands",placeholder:"Search brands",value:h,onChange:tt})}),c.jsx("div",{className:"yst-mb-6",children:c.jsxs(w.Table,{columns:_e,className:"yst-w-full",variant:"minimal",children:[c.jsx(w.Table.Head,{children:c.jsx(w.Table.Row,{children:_e.map(function(ae){return c.jsx(w.Table.Header,{children:ae.Header},ae.accessor)})})}),c.jsx(w.Table.Body,{children:Q?[1,2,3].map(function(ae,le){return c.jsx(w.Table.Row,{children:_e.map(function(ge,Te){return c.jsx(w.Table.Cell,{children:c.jsx(ge.LoadingComponent,{id:"skeleton-".concat(le,"-").concat(Te)},ge.accessor)},"cell-".concat(Te))})},le)}):oe.length===0?c.jsx(w.Table.Row,{children:c.jsx(w.Table.Cell,{colSpan:_e.length,children:c.jsxs("div",{className:"yst-py-12 yst-text-center",children:[c.jsx("h3",{className:"yst-mt-4 yst-text-lg yst-font-medium yst-text-slate-900",children:"No brands found"}),c.jsx("p",{className:"yst-mt-2 yst-text-sm yst-text-slate-500",children:h?'No brands match "'.concat(h,'". Try a different search term.'):"No brands have been found yet. Run an analysis to discover brands."}),h&&c.jsx(w.Button,{variant:"secondary",size:"small",onClick:function(){p(""),S(1)},className:"yst-mt-4",children:"Clear search"})]})})}):oe.map(function(ae){return c.jsx(w.Table.Row,{children:_e.map(function(le){return c.jsx(w.Table.Cell,{children:le.Cell?le.Cell({value:ae[le.accessor],row:ae}):ae[le.accessor]},le.accessor)})},ae.id)})})]})}),c.jsxs("div",{className:"yst-flex yst-items-center yst-justify-between",children:[c.jsxs(w.Button,{variant:"secondary",onClick:Fe,className:"yst-mb-0 yst-gap-2",disabled:Y.length<2,children:[c.jsx(Kv,{})," Group brands"]}),c.jsx(w.Pagination,{variant:"text",current:v,total:ne,onNavigate:S,className:"yst-flex-row",screenReaderTextPrevious:"Previous page",screenReaderTextNext:"Next page"})]})]}),c.jsx(Gl,{children:c.jsx("div",{className:"yst-flex yst-items-center yst-justify-end yst-gap-4",children:i?c.jsxs(c.Fragment,{children:[c.jsx(w.Button,{variant:"secondary",className:"yst-mb-0",onClick:be,children:"Discard changes"}),c.jsx(w.Button,{variant:"primary",className:"yst-mb-0",onClick:ye,children:"Save changes"})]}):c.jsx(w.Button,{as:Wn,to:"/brands/".concat(F),variant:"tertiary",className:"yst-mb-0",children:"Return to analysis"})})}),c.jsx(h6,{isOpen:M,onClose:rt,brandId:F,brandsToGroup:J.filter(function(ae){return Y.includes(q(ae))}),onGroupCreated:Ne}),c.jsx(o6,{isOpen:H,onClose:jr,groupToEdit:N,allBrands:J})]})};const C6=Object.freeze(Object.defineProperty({__proto__:null,default:S6},Symbol.toStringTag,{value:"Module"}));var j6=function(){var e=Ot(),n=e.hostAppProps.basename,r=D.useCallback(function(a){if(!n||!a.startsWith(n))return a;var o=a.slice(n.length);return o||"/"},[n]),s=D.useCallback(function(a){if(!n)return a;var o=a.startsWith("/")?a:"/".concat(a);return"".concat(n).concat(o)},[n]),i=D.useCallback(function(a){return n?a.startsWith(n):a.startsWith("/")&&!a.startsWith("//")},[n]);return{basename:n||"",stripBasename:r,addBasename:s,isWithinBasename:i}};function sf(t,e){return T6(t)||k6(t,e)||E6(t,e)||O6()}function O6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
59
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E6(t,e){if(t){if(typeof t=="string")return af(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?af(t,e):void 0}}function af(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function k6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function T6(t){if(Array.isArray(t))return t}var P6=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.shouldBlock,r=n===void 0?!0:n,s=e.onConfirmLeave,i=e.onCancelLeave,a=dt(),o=j6(),l=o.basename,u=o.stripBasename,d=D.useState(!1),f=sf(d,2),y=f[0],h=f[1],p=D.useState(null),m=sf(p,2),g=m[0],v=m[1];D.useEffect(function(){if(r){var C=function(x){var M=x.target,_=M.closest("a");if(_){var L=_.getAttribute("href");if(L&&L.startsWith("/")&&!L.startsWith("//")){var T=window.location.pathname,H=u(L),R=u(T);H!==R&&(x.preventDefault(),x.stopPropagation(),v(H),h(!0))}}};return document.addEventListener("click",C,!0),function(){return document.removeEventListener("click",C,!0)}}},[r,u]),D.useEffect(function(){if(r){var C=function(x){x.preventDefault(),v(-1),h(!0),window.history.pushState(null,"",window.location.href)};return window.addEventListener("popstate",C),function(){return window.removeEventListener("popstate",C)}}},[r]),D.useEffect(function(){if(r){var C=function(x){x.preventDefault(),x.returnValue=""};return window.addEventListener("beforeunload",C),function(){return window.removeEventListener("beforeunload",C)}}},[r]);var S=D.useCallback(function(C){if(typeof C=="number")a(C);else{var b=l&&C.startsWith(l)?u(C):C;a(b)}},[a,u,l]),k=D.useCallback(function(){g!==null&&(h(!1),s==null||s(),setTimeout(function(){S(g),v(null)},0))},[g,S,s]),j=D.useCallback(function(){h(!1),v(null),i==null||i()},[i]),A=D.useCallback(function(C){r?(v(C),h(!0)):S(C)},[r,S]);return{showModal:y,pendingNavigation:g,confirmLeave:k,cancelLeave:j,navigateAway:A}};function M6(t,e){return N6(t)||R6(t,e)||I6(t,e)||L6()}function L6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
60
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I6(t,e){if(t){if(typeof t=="string")return of(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?of(t,e):void 0}}function of(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function R6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function N6(t){if(Array.isArray(t))return t}var _6=function(e){var n=e.isOpen,r=e.onClose,s=Nt(),i=zl(),a=D.useState(""),o=M6(a,2),l=o[0],u=o[1],d=hv({mutation:{onSettled:function(){s.clear()},onSuccess:function(){r(),i("Successfully deleted all data.",{variant:"success"})},onError:function(){s.clear(),i("Failed to delete all data. Please try again later.",{variant:"error"})}}}),f=d.mutate,y=d.isPending;return D.useEffect(function(){n&&u("")},[n]),c.jsx(Da,{isOpen:n,onClose:r,onConfirm:function(){f()},isLoading:y,disabled:l!=="DELETE ALL",title:"Delete all data?",description:c.jsxs(c.Fragment,{children:[c.jsx("p",{children:"This will permanently erase all brands, analysis results, and queries from your account."}),c.jsx("p",{children:"This action cannot be undone."}),c.jsx(w.TextField,{id:"delete-all-confirmation",label:"To confirm, please type DELETE ALL:",value:l,onChange:function(h){return u(h.target.value)}}),c.jsx("p",{children:c.jsx("em",{children:"This is to make sure you understand this action is permanent."})})]}),confirmText:"Yes, delete all data",cancelText:"No, go back"})};function Cl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return vt(S,"_invoke",function(k,j,A){var C,b,x,M=0,_=A||[],L=!1,T={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,I){return C=O,b=0,x=t,T.n=I,a}};function H(R,O){for(b=R,x=O,e=0;!L&&M&&!I&&e<_.length;e++){var I,N=_[e],G=T.p,z=N[2];R>3?(I=z===O)&&(x=N[(b=N[4])?5:(b=3,3)],N[4]=N[5]=t):N[0]<=G&&((I=R<2&&G<N[1])?(b=0,T.v=O,T.n=N[1]):G<z&&(I=R<3||N[0]>O||O>z)&&(N[4]=R,N[5]=O,T.n=z,b=0))}if(I||R>1)return a;throw L=!0,O}return function(R,O,I){if(M>1)throw TypeError("Generator is already running");for(L&&O===1&&H(O,I),b=O,x=I;(e=b<2?t:x)||!L;){C||(b?b<3?(b>1&&(T.n=-1),H(b,x)):T.n=x:T.v=x);try{if(M=2,C){if(b||(R="next"),e=C[R]){if(!(e=e.call(C,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=C.return)&&e.call(C),b<2&&(x=TypeError("The iterator does not provide a '"+R+"' method"),b=1);C=t}else if((e=(L=T.n<0)?x:k.call(j,T))!==a)break}catch(N){C=t,b=1,x=N}finally{M=1}}return{value:e,done:L}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(vt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(d);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,vt(h,s,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,vt(f,"constructor",u),vt(u,"constructor",l),l.displayName="GeneratorFunction",vt(u,s,"GeneratorFunction"),vt(f),vt(f,s,"Generator"),vt(f,r,function(){return this}),vt(f,"toString",function(){return"[object Generator]"}),(Cl=function(){return{w:i,m:y}})()}function vt(t,e,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(i){s=0}vt=function(a,o,l,u){if(o)s?s(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var d=function(y,h){vt(a,y,function(p){return this._invoke(y,h,p)})};d("next",0),d("throw",1),d("return",2)}},vt(t,e,n,r)}function lf(t,e,n,r,s,i,a){try{var o=t[i](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,s)}function D6(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function a(l){lf(i,r,s,a,o,"next",l)}function o(l){lf(i,r,s,a,o,"throw",l)}a(void 0)})}}function B6(t,e){return W6(t)||H6(t,e)||U6(t,e)||F6()}function F6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U6(t,e){if(t){if(typeof t=="string")return uf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uf(t,e):void 0}}function uf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function H6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function W6(t){if(Array.isArray(t))return t}var Q6=function(e){var n=e.isOpen,r=e.brandId,s=e.onClose,i=e.brandName,a=Nt(),o=zl(),l=D.useState(""),u=B6(l,2),d=u[0],f=u[1],y=$2({mutation:{onSuccess:function(){var m=D6(Cl().m(function v(){return Cl().w(function(S){for(;;)switch(S.n){case 0:return S.n=1,Promise.all([a.invalidateQueries({queryKey:Zt()}),a.invalidateQueries({queryKey:Na()})]);case 1:o("Brand deleted successfully",{variant:"success"}),s();case 2:return S.a(2)}},v)}));function g(){return m.apply(this,arguments)}return g}(),onError:function(g){var v=g instanceof Error?g.message:"Please try again later.";o("Failed to delete brand. ".concat(v),{variant:"error"})}}}),h=y.mutate,p=y.isPending;return D.useEffect(function(){n&&f("")},[n]),c.jsx(Da,{isOpen:n,onClose:s,onConfirm:function(){if(!i){console.error("Brand name is required for deletion confirmation");return}h({brandId:r})},isLoading:p,disabled:d.toLowerCase()!==(i==null?void 0:i.toLowerCase()),title:"Delete brand?",description:c.jsxs(c.Fragment,{children:[c.jsx("p",{children:"This will permanently delete all data associated with this brand, including past analyses and query history."}),c.jsx("p",{children:"This action cannot be undone."}),c.jsx(w.TextField,{id:"delete-modal-brand-name-confirmation",label:"To confirm, please type your brand name ".concat(i,":"),value:d,onChange:function(m){return f(m.target.value)}}),c.jsx("p",{children:c.jsx("em",{children:"This is to make sure you understand this action is permanent."})})]}),confirmText:"Yes, delete brand",cancelText:"No, go back"})};function si(t){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},si(t)}function Is(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return bt(S,"_invoke",function(k,j,A){var C,b,x,M=0,_=A||[],L=!1,T={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,I){return C=O,b=0,x=t,T.n=I,a}};function H(R,O){for(b=R,x=O,e=0;!L&&M&&!I&&e<_.length;e++){var I,N=_[e],G=T.p,z=N[2];R>3?(I=z===O)&&(x=N[(b=N[4])?5:(b=3,3)],N[4]=N[5]=t):N[0]<=G&&((I=R<2&&G<N[1])?(b=0,T.v=O,T.n=N[1]):G<z&&(I=R<3||N[0]>O||O>z)&&(N[4]=R,N[5]=O,T.n=z,b=0))}if(I||R>1)return a;throw L=!0,O}return function(R,O,I){if(M>1)throw TypeError("Generator is already running");for(L&&O===1&&H(O,I),b=O,x=I;(e=b<2?t:x)||!L;){C||(b?b<3?(b>1&&(T.n=-1),H(b,x)):T.n=x:T.v=x);try{if(M=2,C){if(b||(R="next"),e=C[R]){if(!(e=e.call(C,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=C.return)&&e.call(C),b<2&&(x=TypeError("The iterator does not provide a '"+R+"' method"),b=1);C=t}else if((e=(L=T.n<0)?x:k.call(j,T))!==a)break}catch(N){C=t,b=1,x=N}finally{M=1}}return{value:e,done:L}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(bt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(d);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,bt(h,s,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,bt(f,"constructor",u),bt(u,"constructor",l),l.displayName="GeneratorFunction",bt(u,s,"GeneratorFunction"),bt(f),bt(f,s,"Generator"),bt(f,r,function(){return this}),bt(f,"toString",function(){return"[object Generator]"}),(Is=function(){return{w:i,m:y}})()}function bt(t,e,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(i){s=0}bt=function(a,o,l,u){if(o)s?s(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var d=function(y,h){bt(a,y,function(p){return this._invoke(y,h,p)})};d("next",0),d("throw",1),d("return",2)}},bt(t,e,n,r)}function cf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function wn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cf(Object(n),!0).forEach(function(r){q6(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function q6(t,e,n){return(e=z6(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z6(t){var e=G6(t,"string");return si(e)=="symbol"?e:e+""}function G6(t,e){if(si(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(si(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function df(t,e,n,r,s,i,a){try{var o=t[i](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,s)}function ff(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function a(l){df(i,r,s,a,o,"next",l)}function o(l){df(i,r,s,a,o,"throw",l)}a(void 0)})}}function Y6(t,e){return J6(t)||X6(t,e)||K6(t,e)||V6()}function V6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
62
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K6(t,e){if(t){if(typeof t=="string")return hf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hf(t,e):void 0}}function hf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function X6(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function J6(t){if(Array.isArray(t))return t}var Z6=function(e){var n,r,s=e.brand,i=e.isLast,a=e.onDelete,o=s.id,l=Ot(),u=l.hostAppProps,d=l.analysisId,f=u.onAddSubscription,y=dt(),h=mi(),p=h.setBrandId,m=D.useState(!1),g=Y6(m,2),v=g[0],S=g[1],k=Nt(),j=pi({query:{select:function(O){var I=O.data;return I},staleTime:5*1e3,refetchOnWindowFocus:!0,refetchInterval:30*1e3}}),A=j.data,C=ty({mutation:{onMutate:function(){var R=ff(Is().m(function I(N){var G,z,F;return Is().w(function(q){for(;;)switch(q.n){case 0:return G=N.brandId,z=N.data,q.n=1,k.cancelQueries({queryKey:Zt()});case 1:return F=k.getQueryData(Zt()),k.setQueryData(Zt(),function(U){var W,Q;return U&&wn(wn({},U),{},{data:wn(wn({},U.data),{},{brands:((W=(Q=U.data)===null||Q===void 0?void 0:Q.brands)!==null&&W!==void 0?W:[]).map(function(K){return K.id===G?wn(wn({},K),{},{settings:wn(wn({},K.settings),{},{enableAutomaticAnalysis:z.enableAutomaticAnalysis})}):K})})})}),q.a(2,{previous:F})}},I)}));function O(I){return R.apply(this,arguments)}return O}(),onSuccess:function(){if(s&&s.settings&&s.settings.enableAutomaticAnalysis===!1)return S(!1);S(!T)},onError:function(O,I,N){N!=null&&N.previous&&k.setQueryData(Zt(),N.previous)},onSettled:function(){var R=ff(Is().m(function I(){return Is().w(function(N){for(;;)switch(N.n){case 0:return N.n=1,Promise.all([k.invalidateQueries({queryKey:Zt()}),k.invalidateQueries({queryKey:Na()}),k.invalidateQueries({queryKey:Ra(o)}),k.invalidateQueries({queryKey:yn(o,"latest")}),k.invalidateQueries({queryKey:$t(o,"latest")}),k.invalidateQueries({queryKey:yn(o,d)}),k.invalidateQueries({queryKey:$t(o,d)})]);case 1:return N.a(2)}},I)}));function O(){return R.apply(this,arguments)}return O}()}}),b=C.mutate,x=C.isPending,M=function(O){b({brandId:o,data:{enableAutomaticAnalysis:O}})},_=function(O){if(O){if(!L)return S(!0);if(!T)return M(!0);S(!0)}else M(!1)},L=Number(A==null?void 0:A.maxNumberOfActiveBrands)-Number(A==null?void 0:A.numberOfActiveBrands)>0||!!(s!=null&&(n=s.settings)!==null&&n!==void 0&&n.enableAutomaticAnalysis),T=wy(s==null?void 0:s.firstNextAnalysisOpportunity),H=(s==null?void 0:s.setupStatus)==="pendingQuerySelection";return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:te("yst-flex yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-4 yst-py-4 yst-text-slate-800",{"yst-border-b-[1px] yst-border-b-slate-200":!i}),children:[c.jsx(w.Toggle,{id:"toggle-brand-".concat(s==null?void 0:s.id),checked:s==null||(r=s.settings)===null||r===void 0?void 0:r.enableAutomaticAnalysis,screenReaderLabel:"Enable or disable automatic analysis for this brand",onChange:_,disabled:(s==null?void 0:s.id)==="loading"||x}),c.jsxs("div",{className:"yst-font-medium",children:[(s==null?void 0:s.id)==="loading"?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-32"}):s==null?void 0:s.name,H&&c.jsx("div",{children:c.jsx(w.Link,{variant:"primary",onClick:function(){s.id?(p(s.id),y("/setup/".concat(s.id,"/queries"))):console.error("Brand ID is missing.")},children:"Finish setup"})}),(s==null?void 0:s.nextScheduledAnalysis)&&c.jsxs("div",{className:"yst-font-normal yst-italic yst-text-slate-500",children:["Next analysis:"," ",il(s.nextScheduledAnalysis)]})]}),c.jsx("div",{className:"yst-ml-auto yst-flex yst-flex-row yst-items-center yst-justify-end yst-gap-2 yst-text-slate-800",children:(s==null?void 0:s.id)==="loading"?c.jsx(w.SkeletonLoader,{className:"yst-h-6 yst-w-24"}):c.jsxs(w.Button,{size:"small",variant:"tertiary",className:"yst-gap-1 yst-text-red-600 *:hover:yst-text-red-700",onClick:function(){s!=null&&s.id&&a(s.id)},disabled:(s==null?void 0:s.id)==="loading",children:[c.jsx(Ql,{})," Delete brand"]})})]}),c.jsx(w.Modal,{isOpen:v,onClose:function(){return S(!1)},position:"center",as:"div",className:te({"yst-mx-auto yst-max-w-xl":L}),children:L?c.jsx(w.Modal.Panel,{children:T?c.jsxs(c.Fragment,{children:[c.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:c.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Start brand analysis now?"})}),c.jsxs(w.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:[c.jsx("p",{children:"Activating this brand will immediately start a new analysis."}),c.jsx("p",{children:"This will use one of your weekly analyses included in your subscription."})]}),c.jsxs(w.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:[c.jsx(w.Button,{variant:"secondary",onClick:function(){return S(!1)},children:"Cancel"}),c.jsx(w.Button,{variant:"primary",onClick:function(){M(!0)},isLoading:x,children:"Yes, start analysis"})]})]}):c.jsxs(c.Fragment,{children:[c.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:c.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Automatic analysis enabled"})}),c.jsxs(w.Modal.Container.Content,{className:"yst-mb-4 yst-space-y-3",children:[c.jsx("p",{children:"You've turned on the weekly automatic analysis for this brand."}),c.jsxs("p",{children:["The next analysis will run on"," ",c.jsx("span",{className:"yst-font-medium",children:il(s==null?void 0:s.nextScheduledAnalysis)||"the next analysis cycle"}),"."]})]}),c.jsx(w.Modal.Container.Footer,{className:"yst-mt-3 yst-flex yst-justify-end yst-gap-2",children:c.jsx(w.Button,{variant:"primary",onClick:function(){return S(!1)},children:"Got it"})})]})}):c.jsxs(w.Modal.Panel,{children:[c.jsx("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:c.jsxs("div",{className:"yst-flex-1",children:[c.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:c.jsx(w.Modal.Title,{as:"h3",className:"yst-text-center yst-text-lg yst-font-medium",children:"You've reached your active brand limit"})}),c.jsx(w.Modal.Container.Content,{children:c.jsx("p",{className:"yst-text-center",children:"Each subscription lets you activate 1 brand. Add another subscription or deactivate an existing brand to activate this brand."})})]})}),c.jsx(w.Modal.Container.Footer,{children:c.jsxs("div",{className:"yst-flex yst-flex-col yst-justify-stretch yst-gap-2",children:[f&&c.jsxs(w.Button,{variant:"upsell",className:"yst-flex yst-gap-1",onClick:f,children:[c.jsx(iy,{}),"Add a subscription"]}),c.jsx(w.Button,{variant:"tertiary",className:"",onClick:function(){return S(!1)},children:"Manage active brands"})]})})]})})]})},yf,pf,mf;function Co(t,e){return n4(t)||t4(t,e)||e4(t,e)||$6()}function $6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
63
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e4(t,e){if(t){if(typeof t=="string")return gf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gf(t,e):void 0}}function gf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function t4(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function n4(t){if(Array.isArray(t))return t}function uu(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var vf=bi(yf||(yf=uu(["xl:yst-w-1/3"]))),bf=bi(pf||(pf=uu(["xl:yst-w-2/3"]))),xf=bi(mf||(mf=uu(["yst-flex yst-flex-col yst-gap-8 xl:yst-flex-row"]))),r4=function(){var e,n,r,s,i=D.useState(!1),a=Co(i,2),o=a[0],l=a[1],u=D.useState(!1),d=Co(u,2),f=d[0],y=d[1],h=D.useState(null),p=Co(h,2),m=p[0],g=p[1],v=pi({query:{select:function(b){var x=b.data;return x}}}),S=v.data,k=Cr({query:{select:function(b){var x=b.data;return x==null?void 0:x.brands},staleTime:5*1e3,refetchOnWindowFocus:!0,refetchInterval:30*1e3}}),j=k.data,A=j==null?void 0:j.find(function(C){return C.id===m});return c.jsxs("form",{children:[c.jsxs(w.Card,{children:[c.jsx(p0,{title:"Settings",description:"Manage your brand settings and data. You can update analysis preferences or delete brands from your account."}),c.jsxs(w.Card.Content,{children:[c.jsxs(xf,{children:[c.jsxs(vf,{className:"yst-space-y-2",children:[c.jsx(w.Title,{size:"4",children:"Brands"}),c.jsxs("p",{children:["You have"," ",c.jsxs("b",{children:[(e=S==null?void 0:S.activeSubscriptions)!==null&&e!==void 0?e:"—"," subscription(s)"]}),". This gives you up to"," ",c.jsxs("b",{children:[(n=S==null?void 0:S.maxNumberOfActiveBrands)!==null&&n!==void 0?n:"—"," active brand(s)"]}),", for which we’ll automatically run a weekly analysis."]}),c.jsx("p",{children:"You can activate or deactivate brands anytime, or permanently delete a brand and all its data."})]}),c.jsxs(bf,{children:[j&&c.jsxs("p",{className:"yst-flex yst-w-full yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-2 yst-border-b-[1px] yst-border-b-slate-200 yst-py-4 yst-font-medium yst-text-slate-800",children:["Active brands: ",(r=S==null?void 0:S.numberOfActiveBrands)!==null&&r!==void 0?r:"—"," of"," ",(s=S==null?void 0:S.maxNumberOfActiveBrands)!==null&&s!==void 0?s:"—"]}),j&&j.length===0&&c.jsxs("p",{className:"yst-mt-4 yst-text-slate-500",children:["No brands found. Please"," ",c.jsx(w.Link,{as:Wn,to:"/setup",children:"add a brand"})," ","to start analyzing."]}),(j!=null?j:[{id:"loading",name:"Loading..."}]).map(function(C,b,x){return c.jsx(Z6,{brand:C,isLast:b===x.length-1,onDelete:function(M){g(M),l(!0)}},C.id)})]})]}),c.jsx(ss,{}),c.jsxs(xf,{children:[c.jsxs(vf,{className:"yst-space-y-2",children:[c.jsx(w.Title,{size:"4",children:"Delete all data"}),c.jsx("p",{children:"Permanently delete all brands, analysis results, and query history from your account."})]}),c.jsxs(bf,{className:"yst-space-y-4",children:[c.jsxs(w.Button,{variant:"error",onClick:function(){y(!0)},disabled:(j==null?void 0:j.length)===0,children:[c.jsx(Ql,{})," Delete all data"]}),c.jsx("p",{children:c.jsxs("i",{children:[c.jsx("b",{children:"Note:"})," This will erase everything and cannot be reversed."]})})]})]})]})]}),c.jsx(Q6,{isOpen:o,onClose:function(){l(!1),g(null)},brandId:m||"",brandName:A==null?void 0:A.name}),c.jsx(_6,{isOpen:f,onClose:function(){y(!1)}})]})};const s4=Object.freeze(Object.defineProperty({__proto__:null,default:r4},Symbol.toStringTag,{value:"Module"}));function wa(t){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wa(t)}var jl=[{path:"/setup",id:1,title:"Brand & location info",description:"Enter a few basic details about your brand so we can generate relevant queries people might use in AI models like ChatGPT. This helps us analyze how visible your brand is in their responses."},{path:"/setup/:brandId/queries",id:2,title:"Queries",description:"Review the queries we've generated from your brand info. These are phrases people might type into AI models that could trigger your brand to appear."},{path:"/setup/:brandId/analysis",id:3,title:"Analysis",description:"We're checking how your brand shows up in AI. Your queries will now be tested in ChatGPT. This process should take around 5 minutes."}],i4=function(e){return jl.find(function(n){return!!Yr(n.path,e)})||jl[0]};function a4(){var t=et(),e=i4(t.pathname);return c.jsxs(w.Paper,{className:"yst-mx-auto yst-max-w-2xl",children:[c.jsx(m0,{title:c.jsx(b0,{currentStep:e,steps:jl}),description:e.description}),c.jsx(w.Paper.Content,{children:c.jsx(Vr,{})})]})}var b0=function(e){var n=e.title,r=e.currentStep,s=e.steps;return c.jsxs("span",{className:"yst-inline-flex yst-flex-row yst-gap-4",children:[c.jsxs("span",{className:"yst-tracking-[.2em] yst-text-slate-400",children:[c.jsx("span",{className:"yst-text-slate-900",children:wa(r)==="object"?r.id:r}),"/",Array.isArray(s)?s.length:s]}),c.jsx("span",{children:wa(r)==="object"?r.title:n||"Step ".concat(r)})]})};const o4=Object.freeze(Object.defineProperty({__proto__:null,SetupPaperTitle:b0,default:a4},Symbol.toStringTag,{value:"Module"}));var x0=function(e){var n=e.onBack,r=e.variant,s=r===void 0?"ai":r,i=e.buttonText,a=e.onButtonClick,o=e.isButtonDisabled,l=o===void 0?!1:o,u=e.isLoading,d=u===void 0?!1:u;return c.jsx(Gl,{nestedInPaperContent:!0,children:c.jsxs("div",{className:te({"yst-flex yst-flex-1 yst-flex-col yst-items-start yst-justify-between yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-between":n}),children:[n&&c.jsx(w.Button,{variant:"tertiary",onClick:n,className:"yst-no-underline",children:"← Back"}),c.jsx("div",{className:te("yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-end"),children:c.jsxs(w.Button,{onClick:a,variant:s==="ai"?"primary":s,className:"yst-gap-1.5",style:s==="ai"?{background:"linear-gradient(102deg, #A61E69 0%, #6366F1 100%)",color:"#fff"}:{},disabled:l,type:"submit",isLoading:d,children:[s==="ai"&&c.jsx(ay,{}),i]})})]})})},l4=[{value:"US",label:"United States"},{value:"GB",label:"United Kingdom"},{value:"CA",label:"Canada"},{value:"AU",label:"Australia"},{value:"DE",label:"Germany"},{value:"FR",label:"France"},{value:"NL",label:"Netherlands"}],u4=[{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"PW",label:"Belau"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire, Saint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"CV",label:"Cape Verde"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo (Brazzaville)"},{value:"CD",label:"Congo (Kinshasa)"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czech Republic"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"CI",label:"Ivory Coast"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"XK",label:"Kosovo"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Laos"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MK",label:"North Macedonia"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia"},{value:"MD",label:"Moldova"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MP",label:"Northern Mariana Islands"},{value:"KP",label:"North Korea"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PS",label:"Palestinian Territory"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Reunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russia"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"SX",label:"Saint Martin (Dutch part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"SM",label:"San Marino"},{value:"ST",label:"São Tomé and Príncipe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia/Sandwich Islands"},{value:"KR",label:"South Korea"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SZ",label:"Eswatini"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syria"},{value:"TW",label:"Taiwan"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"UM",label:"United States (US) Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VA",label:"Vatican"},{value:"VE",label:"Venezuela"},{value:"VN",label:"Vietnam"},{value:"VG",label:"Virgin Islands (British)"},{value:"VI",label:"Virgin Islands (US)"},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"WS",label:"Samoa"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],jo=[].concat(l4,u4,[{value:"OTHER",label:"Other"}]),c4=[{value:"en",label:"English"},{value:"es",label:"Spanish"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"zh",label:"Chinese (Mandarin)"},{value:"ja",label:"Japanese"}],d4=[{value:"sq",label:"Albanian"},{value:"am",label:"Amharic"},{value:"ar",label:"Arabic"},{value:"hy",label:"Armenian"},{value:"bn",label:"Bengali"},{value:"bs",label:"Bosnian"},{value:"bg",label:"Bulgarian"},{value:"my",label:"Burmese"},{value:"ca",label:"Catalan"},{value:"hr",label:"Croatian"},{value:"cs",label:"Czech"},{value:"da",label:"Danish"},{value:"nl",label:"Dutch"},{value:"et",label:"Estonian"},{value:"fi",label:"Finnish"},{value:"ka",label:"Georgian"},{value:"el",label:"Greek"},{value:"gu",label:"Gujarati"},{value:"hi",label:"Hindi"},{value:"hu",label:"Hungarian"},{value:"is",label:"Icelandic"},{value:"id",label:"Indonesian"},{value:"it",label:"Italian"},{value:"kn",label:"Kannada"},{value:"kk",label:"Kazakh"},{value:"ko",label:"Korean"},{value:"lv",label:"Latvian"},{value:"lt",label:"Lithuanian"},{value:"mk",label:"Macedonian"},{value:"ms",label:"Malay"},{value:"ml",label:"Malayalam"},{value:"mr",label:"Marathi"},{value:"mn",label:"Mongolian"},{value:"no",label:"Norwegian"},{value:"fa",label:"Persian"},{value:"pl",label:"Polish"},{value:"pt",label:"Portuguese"},{value:"pa",label:"Punjabi"},{value:"ro",label:"Romanian"},{value:"ru",label:"Russian"},{value:"sr",label:"Serbian"},{value:"sk",label:"Slovak"},{value:"sl",label:"Slovenian"},{value:"so",label:"Somali"},{value:"sw",label:"Swahili"},{value:"sv",label:"Swedish"},{value:"tl",label:"Tagalog"},{value:"ta",label:"Tamil"},{value:"te",label:"Telugu"},{value:"th",label:"Thai"},{value:"tr",label:"Turkish"},{value:"uk",label:"Ukrainian"},{value:"ur",label:"Urdu"},{value:"vi",label:"Vietnamese"}],f4=[].concat(c4,d4);function Un(t){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Un(t)}function Af(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function wf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Af(Object(n),!0).forEach(function(r){A0(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function A0(t,e,n){return(e=h4(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h4(t){var e=y4(t,"string");return Un(e)=="symbol"?e:e+""}function y4(t,e){if(Un(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Un(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ol(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return xt(S,"_invoke",function(k,j,A){var C,b,x,M=0,_=A||[],L=!1,T={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,I){return C=O,b=0,x=t,T.n=I,a}};function H(R,O){for(b=R,x=O,e=0;!L&&M&&!I&&e<_.length;e++){var I,N=_[e],G=T.p,z=N[2];R>3?(I=z===O)&&(x=N[(b=N[4])?5:(b=3,3)],N[4]=N[5]=t):N[0]<=G&&((I=R<2&&G<N[1])?(b=0,T.v=O,T.n=N[1]):G<z&&(I=R<3||N[0]>O||O>z)&&(N[4]=R,N[5]=O,T.n=z,b=0))}if(I||R>1)return a;throw L=!0,O}return function(R,O,I){if(M>1)throw TypeError("Generator is already running");for(L&&O===1&&H(O,I),b=O,x=I;(e=b<2?t:x)||!L;){C||(b?b<3?(b>1&&(T.n=-1),H(b,x)):T.n=x:T.v=x);try{if(M=2,C){if(b||(R="next"),e=C[R]){if(!(e=e.call(C,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=C.return)&&e.call(C),b<2&&(x=TypeError("The iterator does not provide a '"+R+"' method"),b=1);C=t}else if((e=(L=T.n<0)?x:k.call(j,T))!==a)break}catch(N){C=t,b=1,x=N}finally{M=1}}return{value:e,done:L}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(xt(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(d);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,xt(h,s,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,xt(f,"constructor",u),xt(u,"constructor",l),l.displayName="GeneratorFunction",xt(u,s,"GeneratorFunction"),xt(f),xt(f,s,"Generator"),xt(f,r,function(){return this}),xt(f,"toString",function(){return"[object Generator]"}),(Ol=function(){return{w:i,m:y}})()}function xt(t,e,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(i){s=0}xt=function(a,o,l,u){if(o)s?s(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var d=function(y,h){xt(a,y,function(p){return this._invoke(y,h,p)})};d("next",0),d("throw",1),d("return",2)}},xt(t,e,n,r)}function Sf(t,e,n,r,s,i,a){try{var o=t[i](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,s)}function p4(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function a(l){Sf(i,r,s,a,o,"next",l)}function o(l){Sf(i,r,s,a,o,"throw",l)}a(void 0)})}}function kr(t,e){return b4(t)||v4(t,e)||g4(t,e)||m4()}function m4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g4(t,e){if(t){if(typeof t=="string")return Cf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cf(t,e):void 0}}function Cf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function v4(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function b4(t){if(Array.isArray(t))return t}var x4=function(){var e=dt(),n=mi(),r=Nt(),s=D.useState(),i=kr(s,2),a=i[0],o=i[1],l=D.useState(!1),u=kr(l,2),d=u[0],f=u[1],y=D.useState({name:"",url:"",description:"",language:"en",isLocal:!1,country:void 0,region:""}),h=kr(y,2),p=h[0],m=h[1],g=D.useState(null),v=kr(g,2),S=v[0],k=v[1],j=D.useState(""),A=kr(j,2),C=A[0],b=A[1],x=D.useMemo(function(){var U;if(!p.country)return"";var W=jo.find(function(Q){return Q.value===p.country});return(U=W==null?void 0:W.label)!==null&&U!==void 0?U:""},[p.country]),M=D.useMemo(function(){var U=C.trim().toLowerCase();return U?jo.filter(function(W){var Q=W.label.toLowerCase().includes(U),K=W.value.toLowerCase().includes(U);return Q||K}):jo},[C]),_=V2({mutation:{onSuccess:function(){var U=p4(Ol().m(function Q(K){var J;return Ol().w(function(ne){for(;;)switch(ne.n){case 0:return J=K.data.id,ne.n=1,Promise.all([r.invalidateQueries({queryKey:Na()}),r.invalidateQueries({queryKey:Zt()})]);case 1:J&&n.setBrandId(J),K!=null&&K.status&&K.status>=200&&K.status<300&&J&&(n.setBrandId(J),o(J));case 2:return ne.a(2)}},Q)}));function W(Q){return U.apply(this,arguments)}return W}(),onError:function(){f(!1)}}}),L=_.mutate,T=_.isPending,H=_.error,R=Cr({query:{enabled:!!a,select:function(W){var Q=W.data;return Q==null?void 0:Q.brands},refetchInterval:function(W){var Q;return((W==null||(Q=W.state)===null||Q===void 0||(Q=Q.data)===null||Q===void 0||(Q=Q.data)===null||Q===void 0?void 0:Q.brands)||[]).find(function(K){return K.id===a})?!1:2*1e3}}}),O=R.data;D.useEffect(function(){a&&O!==null&&O!==void 0&&O.find(function(U){return U.id===a})&&e("/setup/".concat(a,"/queries"),{replace:!0})},[a,O,e]);var I=function(W,Q){m(function(K){return wf(wf({},K),{},A0({},W,Q))})},N=function(W){b(W.target.value)},G=function(W){I("country",W!=null?W:void 0),b("")},z=function(W){if(W.preventDefault(),k(null),p.description.length>250){k("Your brand description is too long. Please keep it within the 250-character limit."),f(!1);return}f(!0);var Q=p.url;Q&&!/^https?:\/\//i.test(Q)&&(Q="https://".concat(Q)),L({data:{name:p.name,url:Q,description:p.description,focusLanguage:p.language,country:p.country,regionOrCity:p.region}})};function F(U){return Un(U)==="object"&&U!==null&&"response"in U&&Un(U.response)==="object"&&U.response!==void 0&&"data"in U.response}var q=F(H)?H.response.data.errors:void 0;return c.jsxs("form",{onSubmit:z,children:[c.jsxs("div",{className:"yst-space-y-6",children:[c.jsx(w.Title,{size:"2",children:"Brand info"}),!!H&&c.jsx(w.Alert,{variant:"error",title:"Error",isVisible:!!H,children:c.jsx("ul",{children:q&&Un(q)==="object"?Object.entries(q).flatMap(function(U){var W=kr(U,2),Q=W[0],K=W[1];return Array.isArray(K)?K.map(function(J,ne){return c.jsx("li",{children:J},"".concat(Q,"-").concat(ne))}):null}):"There was an error creating the brand."})}),S&&c.jsx(w.Alert,{variant:"error",title:"Error",isVisible:!!S,children:c.jsx("ul",{children:c.jsx("li",{children:"Your brand description is too long. Please keep it within the 250-character limit."})})}),c.jsx(w.TextField,{id:"name",label:"Brand name",value:p.name,onChange:function(U){return I("name",U.target.value)},maxLength:255}),c.jsx(w.TextField,{id:"url",label:"Website URL (optional)",placeholder:"Example: https://yourwebsite.com",value:p.url,maxLength:247,onChange:function(U){return I("url",U.target.value)}}),c.jsxs("div",{id:"brand-description-textarea",children:[c.jsx(w.TextareaField,{id:"brand-description",label:"Brand description",value:p.description,onChange:function(U){var W=U.target.value;I("description",W)},...p.description.length>250?{validation:{variant:"error",message:"Your brand description is too long. Please keep it within the 250-character limit."}}:{},placeholder:"e.g. We design eco-friendly yoga mats for busy professionals who want sustainable gear that’s durable, stylish and kind to the planet."}),c.jsxs("div",{className:"yst-mt-1 yst-flex",children:[c.jsxs("div",{className:"yst-flex-grow yst-flex-col",children:[p.description.length>250&&c.jsx("div",{className:"yst-mb-2 yst-text-red-500",children:"Your brand description is too long. Please keep it within the 250-character limit."}),"Tell us about your brand: what you do, who it’s for and what makes it special."]}),c.jsxs("div",{className:te("yst-ml-6 yst-mt-[-4px] yst-text-xs",{"yst-text-slate-500":p.description.length<=250,"yst-text-red-500":p.description.length>250}),children:[p.description.length,"/250"]})]})]}),c.jsxs("div",{className:"yst-space-y-2",children:[c.jsx(w.Select,{className:"yst-max-w-sm",id:"language-select",label:"Target language",value:p.language,onChange:function(U){return I("language",U)},options:f4.map(function(U){return{label:U.label,value:U.value}})}),c.jsx("p",{children:"The main language your brand uses to communicate or create content."})]})]}),c.jsx(ss,{}),c.jsxs("div",{className:"yst-space-y-6",children:[c.jsx(w.Title,{size:"2",children:"Location info"}),c.jsx("p",{children:"Specify a location to enhance the accuracy of the analysis."}),c.jsx(w.Autocomplete,{className:"yst-max-w-sm",id:"country-select",label:"Target country (optional)",value:p.country||null,nullable:!0,placeholder:"Search countries...",onQueryChange:N,onChange:G,selectedLabel:x,children:M.map(function(U){return c.jsx(w.Autocomplete.Option,{value:U.value,children:U.label},U.value)})}),p.country&&c.jsx(w.TextField,{id:"region",label:"Target city, state, or region (optional)",value:p.region,onChange:function(U){return I("region",U.target.value)},description:`Enter a city, state, or region to narrow down the analysis. For
65
+ example: California, Bavaria, or Paris.`,maxLength:255})]}),c.jsx(x0,{onBack:function(){return e(-1)},buttonText:"Generate queries",isButtonDisabled:T||!!a||d,isLoading:T||!!a})]})};const A4=Object.freeze(Object.defineProperty({__proto__:null,default:x4},Symbol.toStringTag,{value:"Module"})),jf=t=>E.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},E.createElement("path",{d:"M3.33284 2V4.66667M1.99951 3.33333H4.66618M3.99951 11.3333V14M2.66618 12.6667H5.33284M8.66618 2L10.19 6.57143L13.9995 8L10.19 9.42857L8.66618 14L7.14237 9.42857L3.33284 8L7.14237 6.57143L8.66618 2Z",stroke:"url(#paint0_linear_3891_2757)",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("defs",null,E.createElement("linearGradient",{id:"paint0_linear_3891_2757",x1:1.99951,y1:2,x2:15.3308,y2:3.72773,gradientUnits:"userSpaceOnUse"},E.createElement("stop",{stopColor:"#A61E69"}),E.createElement("stop",{offset:1,stopColor:"#6366F1"}))));function ii(t){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ii(t)}function w4(t){return j4(t)||C4(t)||w0(t)||S4()}function S4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
66
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C4(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function j4(t){if(Array.isArray(t))return kl(t)}function Of(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function kt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Of(Object(n),!0).forEach(function(r){O4(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function O4(t,e,n){return(e=E4(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E4(t){var e=k4(t,"string");return ii(e)=="symbol"?e:e+""}function k4(t,e){if(ii(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ii(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function El(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(h,p,m,g){var v=p&&p.prototype instanceof o?p:o,S=Object.create(v.prototype);return At(S,"_invoke",function(k,j,A){var C,b,x,M=0,_=A||[],L=!1,T={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(O,I){return C=O,b=0,x=t,T.n=I,a}};function H(R,O){for(b=R,x=O,e=0;!L&&M&&!I&&e<_.length;e++){var I,N=_[e],G=T.p,z=N[2];R>3?(I=z===O)&&(x=N[(b=N[4])?5:(b=3,3)],N[4]=N[5]=t):N[0]<=G&&((I=R<2&&G<N[1])?(b=0,T.v=O,T.n=N[1]):G<z&&(I=R<3||N[0]>O||O>z)&&(N[4]=R,N[5]=O,T.n=z,b=0))}if(I||R>1)return a;throw L=!0,O}return function(R,O,I){if(M>1)throw TypeError("Generator is already running");for(L&&O===1&&H(O,I),b=O,x=I;(e=b<2?t:x)||!L;){C||(b?b<3?(b>1&&(T.n=-1),H(b,x)):T.n=x:T.v=x);try{if(M=2,C){if(b||(R="next"),e=C[R]){if(!(e=e.call(C,x)))throw TypeError("iterator result is not an object");if(!e.done)return e;x=e.value,b<2&&(b=0)}else b===1&&(e=C.return)&&e.call(C),b<2&&(x=TypeError("The iterator does not provide a '"+R+"' method"),b=1);C=t}else if((e=(L=T.n<0)?x:k.call(j,T))!==a)break}catch(N){C=t,b=1,x=N}finally{M=1}}return{value:e,done:L}}}(h,m,g),!0),S}var a={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(At(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(d);function y(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,At(h,s,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,At(f,"constructor",u),At(u,"constructor",l),l.displayName="GeneratorFunction",At(u,s,"GeneratorFunction"),At(f),At(f,s,"Generator"),At(f,r,function(){return this}),At(f,"toString",function(){return"[object Generator]"}),(El=function(){return{w:i,m:y}})()}function At(t,e,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(i){s=0}At=function(a,o,l,u){if(o)s?s(a,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[o]=l;else{var d=function(y,h){At(a,y,function(p){return this._invoke(y,h,p)})};d("next",0),d("throw",1),d("return",2)}},At(t,e,n,r)}function Ef(t,e,n,r,s,i,a){try{var o=t[i](a),l=o.value}catch(u){return void n(u)}o.done?e(l):Promise.resolve(l).then(r,s)}function T4(t){return function(){var e=this,n=arguments;return new Promise(function(r,s){var i=t.apply(e,n);function a(l){Ef(i,r,s,a,o,"next",l)}function o(l){Ef(i,r,s,a,o,"throw",l)}a(void 0)})}}function sn(t,e){return L4(t)||M4(t,e)||w0(t,e)||P4()}function P4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
67
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w0(t,e){if(t){if(typeof t=="string")return kl(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kl(t,e):void 0}}function kl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function M4(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function L4(t){if(Array.isArray(t))return t}var Pr=5,Rs="Generating...",I4="Re-generating...",R4=100,N4=800,_4=["******************************","***********************","*******************************************************","***********************************************","***************************************************************","*******************************************************","*******************************************************","***********************************************"],D4=Array.from({length:Pr},function(t,e){return{id:"query-".concat(e),text:Rs,isRegenerating:!0}}),B4=function(){return Array.from({length:Pr},function(e,n){return{id:"query-".concat(n),text:"",isRegenerating:!1}})},F4=function(){var e,n,r,s=Ca(),i=s.brandId,a="/setup/".concat(i,"/analysis"),o=dt(),l=Nt(),u=zl(),d=D.useRef(!1),f=D.useState(D4),y=sn(f,2),h=y[0],p=y[1],m=D.useState(!1),g=sn(m,2),v=g[0],S=g[1],k=D.useState([]),j=sn(k,2),A=j[0],C=j[1],b=D.useState([]),x=sn(b,2),M=x[0],_=x[1],L=D.useState(!1),T=sn(L,2),H=T[0],R=T[1],O=D.useState(null),I=sn(O,2),N=I[0],G=I[1],z=D.useState(!1),F=sn(z,2),q=F[0],U=F[1],W=P6({shouldBlock:!0}),Q=W.showModal,K=W.confirmLeave,J=W.cancelLeave,ne=D.useState(!1),se=sn(ne,2),he=se[0],oe=se[1],Ee=D.useState(null),Y=sn(Ee,2),Fe=Y[0],tt=Y[1],nt=lv(i||"",{query:{enabled:!!i}}),ye=nt.data,be=nt.isRefetching,rt=nt.error,Ne=nt.isError,jr=nt.refetch,Gn=ca(i||"",{query:{enabled:!!i}}),_e=Gn.data,ae=D.useCallback(function(X){var Z;if(!(_e!=null&&(Z=_e.data)!==null&&Z!==void 0&&Z.name))return!1;var ie=_e.data.name.toLowerCase().trim();return ie?X.toLowerCase().includes(ie):!1},[_e==null||(e=_e.data)===null||e===void 0?void 0:e.name]),le=D.useCallback(function(){return h.some(function(X){return ae(X.text)})},[h,ae]),ge=function(){U(!1)},Te=function(){U(!1),i&&os({brandId:i,data:{queries:h.map(function(Z){return Z.text})}})},Ya=function(){U(!1);var Z=h.findIndex(function(ie){return ae(ie.text)});Z!==-1&&setTimeout(function(){var ie=document.getElementById("query-text-".concat(Z));ie&&(ie.focus(),ie.select())},R4)};function Ai(X){var Z,ie,ce,Pe="Moderation error: one or more queries flagged by OpenAI moderation endpoint.",st=X==null||(Z=X.response)===null||Z===void 0||(Z=Z.data)===null||Z===void 0?void 0:Z.flagged_queries;return(X==null||(ie=X.response)===null||ie===void 0?void 0:ie.status)===422&&(X==null||(ce=X.response)===null||ce===void 0||(ce=ce.data)===null||ce===void 0?void 0:ce.error)===Pe&&Array.isArray(st)?{flaggedQueries:st}:null}var as=sv({mutation:{onSuccess:function(){var X=T4(El().m(function ie(ce){return El().w(function(Pe){for(;;)switch(Pe.n){case 0:if(G(null),!(ce!=null&&ce.status&&ce.status>=200&&ce.status<300)){Pe.n=2;break}return Pe.n=1,Promise.all([l.invalidateQueries({queryKey:Ra(i||"")}),l.invalidateQueries({queryKey:Zt()})]);case 1:o(a);case 2:return Pe.a(2)}},ie)}));function Z(ie){return X.apply(this,arguments)}return Z}(),onError:function(Z){var ie,ce,Pe=Ai(Z);if(Pe){tt({flaggedQueries:Pe.flaggedQueries});return}if((Z==null||(ie=Z.response)===null||ie===void 0||(ie=ie.data)===null||ie===void 0?void 0:ie.message)==="Cannot update queries for a brand that has existing analyses."){o(a,{replace:!0});return}var st=(Z==null||(ce=Z.response)===null||ce===void 0||(ce=ce.data)===null||ce===void 0?void 0:ce.message)||(Z==null?void 0:Z.message)||"An unexpected error occurred.";G(st)}}}),os=as.mutate,ls=as.isPending;D.useEffect(function(){i||o("/setup",{replace:!0})},[i,o,u]),D.useEffect(function(){var X;!(_e!=null&&(X=_e.data)!==null&&X!==void 0&&X.setupStatus)||d.current||(d.current=!0,_e.data.setupStatus!=="pendingQuerySelection"&&(u("Queries cannot be changed for a brand with a pending analysis.",{variant:"warning"}),o(a,{replace:!0})))},[_e==null||(n=_e.data)===null||n===void 0?void 0:n.setupStatus,i,o,a,u]),D.useEffect(function(){var X;if(ye!=null&&(X=ye.data)!==null&&X!==void 0&&X.queries&&Array.isArray(ye.data.queries)){var Z=ye.data.queries.slice(0,Pr),ie=Z.map(function(Pe,st){return{id:"query-".concat(st),text:Pe,isRegenerating:!1}});p(ie),_(ye.data.queries.slice(Pr))}else if(Ne){var ce=B4();p(ce),_([])}},[ye,Ne]);var us=D.useCallback(function(X){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;setTimeout(function(){p(function(ie){return ie.map(function(ce,Pe){var st=A.indexOf(Pe.toString());return st>=0&&X[st]?kt(kt({},ce),{},{text:X[st],isRegenerating:!1}):kt(kt({},ce),{},{isRegenerating:!1})})}),C([]),R(!1),S(!1),Z&&_(function(ie){var ce=new Set(X);return ie.filter(function(Pe){return!ce.has(Pe)})})},N4)},[A]);D.useEffect(function(){if(H&&!be){var X;if(ye!=null&&(X=ye.data)!==null&&X!==void 0&&X.queries&&Array.isArray(ye.data.queries)){var Z=ye.data.queries.slice(0,Pr),ie=A.map(Number);p(function(ce){return ce.map(function(Pe,st){var cs=ie.indexOf(st);return kt(kt({},Pe),{},{text:cs>=0&&Z[cs]?Z[cs]:Pe.text,isRegenerating:!1})})}),C([]),R(!1),S(!1)}else Ne&&(p(function(ce){return ce.map(function(Pe){return kt(kt({},Pe),{},{isRegenerating:!1})})}),C([]),R(!1),S(!1))}},[ye,be,H,A,Ne]);var wi=D.useCallback(function(X,Z){var ie=new Set(Z);return M.filter(function(ce){return!ie.has(ce)}).slice(0,X)},[M]),Va=D.useMemo(function(){return be||h.length===0||h.some(function(X){return X.isRegenerating||X.text===Rs&&!Ne||X.text.trim()===""})||v},[be,h,v,Ne]),fe=be||h.some(function(X){return X.text===Rs})&&!Ne,ke=D.useCallback(function(X){var Z=X.toString();C(function(ie){return ie.includes(Z)?ie.filter(function(ce){return ce!==Z}):[].concat(w4(ie),[Z])})},[]),Se=D.useCallback(function(X,Z){p(function(ie){return ie.map(function(ce,Pe){return Pe===X?kt(kt({},ce),{},{text:Z}):ce})})},[]),_t=function(){S(!v),C([])},en=D.useCallback(function(){if(!(be||A.length===0)){p(function(Pe){return Pe.map(function(st,cs){return kt(kt({},st),{},{isRegenerating:A.includes(cs.toString())})})});var X=h.map(function(Pe){return Pe.text}),Z=A.length,ie=wi(Z,X),ce=ie.length>=Z;ce?us(ie,!0):(R(!0),jr())}},[be,A,jr,h,wi,us]),Yn=D.useCallback(function(X){if(X.preventDefault(),tt(null),!!i){if(le()){U(!0);return}os({brandId:i,data:{queries:h.map(function(Z){return Z.text})}})}},[i,h,os,le]),Ht=function(){oe(!0)};return c.jsxs("div",{children:[Fe&&c.jsxs(w.Alert,{className:"yst-mb-4",variant:"error",children:[c.jsx("strong",{children:"Moderation Error"}),c.jsxs("div",{className:"yst-mt-2",children:[c.jsx("span",{children:"Some of your queries include content that our AI moderation system can’t process."}),c.jsx("br",{}),c.jsx("span",{children:"These queries were flagged and won’t be saved:"}),c.jsx("ul",{className:"yst-ml-4 yst-list-disc",children:Fe.flaggedQueries.map(function(X,Z){return c.jsx("li",{children:X.query},Z)})}),c.jsx("br",{}),c.jsx("span",{children:"Edit or replace them to continue."})]})]}),N&&c.jsx(w.Alert,{className:"yst-mb-4",variant:"error",children:N}),c.jsxs("form",{onSubmit:Yn,children:[c.jsxs("div",{className:"yst-mb-8",children:[c.jsx(w.Title,{size:"2",className:"yst-mb-2",children:"Your queries"}),c.jsxs("div",{className:"yst-space-y-4",children:[c.jsx("p",{children:"You can edit your queries or regenerate new ones with AI."}),c.jsx("div",{className:te("yst-flex yst-gap-2",v?"yst-justify-end":"yst-justify-start"),children:v?c.jsxs(c.Fragment,{children:[c.jsx(w.Button,{size:"small",variant:"secondary",onClick:_t,children:"Done"}),c.jsxs(w.Button,{variant:"secondary",size:"small",onClick:en,className:"yst-gap-1",isLoading:be||H,disabled:H||be||A.length===0,children:[c.jsx(jf,{"aria-hidden":"true"}),"Regenerate selected queries"]})]}):c.jsxs(w.Button,{size:"small",variant:"secondary",onClick:_t,className:"yst-gap-1.5",disabled:fe||Ne,children:[c.jsx(Nv,{}),"Select queries to regenerate"]})})]})]}),c.jsx("div",{className:"yst-mb-8",children:h.length===0?_4.map(function(X,Z){return c.jsx("div",{className:te("yst-mb-4 yst-cursor-pointer yst-rounded yst-border yst-border-slate-300 yst-p-3 yst-transition-colors","yst-bg-white"),children:c.jsx(w.SkeletonLoader,{children:X||"Example placeholder query for demonstration purposes."})},"placeholder-query-".concat(Z))}):h.slice(0,Pr).map(function(X,Z){var ie=X.isRegenerating?X.text===Rs?Rs:I4:X.text;return c.jsx("div",{className:te("yst-mb-4"),children:c.jsxs("div",{className:"yst-flex yst-gap-2",children:[v&&c.jsx("div",{className:"yst-flex yst-items-center",children:c.jsx(w.Checkbox,{id:"query-regenerate-".concat(Z),name:"query-regenerate-".concat(Z),value:Z.toString(),checked:A.includes(Z.toString()),onChange:function(){return ke(Z)},disabled:be})}),c.jsx("div",{className:"yst-flex-1",children:c.jsx(w.TextField,{id:"query-text-".concat(Z),label:"Query ".concat(Z+1),type:"text",value:ie,onChange:function(ce){X.isRegenerating||Se(Z,ce.target.value)},placeholder:"Enter your query...",className:"yst-w-full",disabled:X.isRegenerating,required:!0,minLength:3,maxLength:255,validation:ae(X.text)?{variant:"warning",message:"For more accurate insights, avoid using your brand name in the query."}:void 0})})]})},X.id)})}),c.jsx(x0,{buttonText:"Run analysis (~ 5 minutes)",isButtonDisabled:Va,isLoading:ls})]}),c.jsx(w.Modal,{isOpen:Ne&&d2(rt)&&(rt==null||(r=rt.response)===null||r===void 0?void 0:r.status)===429&&!he,onClose:Ht,position:"center",as:"div",children:c.jsx(w.Modal.Panel,{children:c.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[c.jsx("div",{children:c.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-red-100",children:c.jsx(Ji,{className:"yst-h-6 yst-w-6 yst-text-red-600"})})}),c.jsxs("div",{className:"yst-flex-1",children:[c.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:c.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Query regeneration limit reached"})}),c.jsx(w.Modal.Container.Content,{className:"yst-mb-6 yst-space-y-3",children:c.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"You’ve used all your query regenerations for this brand analysis, but you can still edit your queries manually."})}),c.jsx(w.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:c.jsx(w.Button,{variant:"primary",onClick:Ht,children:"Edit queries manually"})})]})]})})}),c.jsx(w.Modal,{isOpen:q,onClose:ge,position:"center",as:"div",children:c.jsx(w.Modal.Panel,{children:c.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[c.jsx("div",{children:c.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-100",children:c.jsx(Ji,{className:"yst-h-6 yst-w-6 yst-text-amber-600"})})}),c.jsxs("div",{className:"yst-flex-1",children:[c.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:c.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Brand name detected in your queries"})}),c.jsxs(w.Modal.Container.Content,{className:"yst-mb-6 yst-space-y-3",children:[c.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"We found your brand name in one or more of your queries. Using your brand name in queries often show more mentions and more positive sentiment, which can skew your results."}),c.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"For more balanced results, remove your brand name or make the queries more general."})]}),c.jsxs(w.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:[c.jsxs(w.Button,{onClick:Te,variant:"secondary",className:"yst-gap-1.5",disabled:ls,isLoading:ls,children:[c.jsx(jf,{}),"Run analysis anyway"]}),c.jsx(w.Button,{variant:"primary",onClick:Ya,children:"Review and edit queries"})]})]})]})})}),c.jsx(w.Modal,{isOpen:Q,onClose:J,position:"center",as:"div",children:c.jsx(w.Modal.Panel,{children:c.jsxs("div",{className:"yst-flex yst-items-start yst-justify-stretch yst-gap-4",children:[c.jsx("div",{children:c.jsx("span",{className:"yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-100",children:c.jsx(Ji,{className:"yst-h-6 yst-w-6 yst-text-amber-600"})})}),c.jsxs("div",{className:"yst-flex-1",children:[c.jsx(w.Modal.Container.Header,{className:"yst-mb-3 yst-w-full",children:c.jsx(w.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium",children:"Leave this page?"})}),c.jsx(w.Modal.Container.Content,{className:"yst-mb-6",children:c.jsx("p",{className:"yst-text-sm yst-text-slate-600",children:"You have unsaved changes. Finish setting up your brand to save your queries. Leaving this page will discard your queries."})}),c.jsxs(w.Modal.Container.Footer,{className:"yst-flex yst-justify-end yst-gap-3",children:[c.jsx(w.Button,{onClick:J,variant:"secondary",children:"No, stay on page"}),c.jsx(w.Button,{variant:"primary",onClick:K,children:"Yes, discard queries"})]})]})]})})})]})};const U4=Object.freeze(Object.defineProperty({__proto__:null,default:F4},Symbol.toStringTag,{value:"Module"}));var Qi={exports:{}},qi={exports:{}},xe={};/** @license React v16.13.1
67
68
  * react-is.production.min.js
68
69
  *
69
70
  * Copyright (c) Facebook, Inc. and its affiliates.
70
71
  *
71
72
  * This source code is licensed under the MIT license found in the
72
73
  * LICENSE file in the root directory of this source tree.
73
- */var wf;function k4(){if(wf)return xe;wf=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,o=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,y=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function k(A){if(typeof A=="object"&&A!==null){var j=A.$$typeof;switch(j){case e:switch(A=A.type,A){case l:case u:case r:case s:case i:case f:return A;default:switch(A=A&&A.$$typeof,A){case o:case c:case p:case h:case a:return A;default:return j}}case n:return j}}}function C(A){return k(A)===u}return xe.AsyncMode=l,xe.ConcurrentMode=u,xe.ContextConsumer=o,xe.ContextProvider=a,xe.Element=e,xe.ForwardRef=c,xe.Fragment=r,xe.Lazy=p,xe.Memo=h,xe.Portal=n,xe.Profiler=s,xe.StrictMode=i,xe.Suspense=f,xe.isAsyncMode=function(A){return C(A)||k(A)===l},xe.isConcurrentMode=C,xe.isContextConsumer=function(A){return k(A)===o},xe.isContextProvider=function(A){return k(A)===a},xe.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},xe.isForwardRef=function(A){return k(A)===c},xe.isFragment=function(A){return k(A)===r},xe.isLazy=function(A){return k(A)===p},xe.isMemo=function(A){return k(A)===h},xe.isPortal=function(A){return k(A)===n},xe.isProfiler=function(A){return k(A)===s},xe.isStrictMode=function(A){return k(A)===i},xe.isSuspense=function(A){return k(A)===f},xe.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===u||A===s||A===i||A===f||A===y||typeof A=="object"&&A!==null&&(A.$$typeof===p||A.$$typeof===h||A.$$typeof===a||A.$$typeof===o||A.$$typeof===c||A.$$typeof===g||A.$$typeof===v||A.$$typeof===S||A.$$typeof===m)},xe.typeOf=k,xe}var Ae={};/** @license React v16.13.1
74
+ */var kf;function H4(){if(kf)return xe;kf=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,o=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,y=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function k(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case e:switch(A=A.type,A){case l:case u:case r:case i:case s:case f:return A;default:switch(A=A&&A.$$typeof,A){case o:case d:case p:case h:case a:return A;default:return C}}case n:return C}}}function j(A){return k(A)===u}return xe.AsyncMode=l,xe.ConcurrentMode=u,xe.ContextConsumer=o,xe.ContextProvider=a,xe.Element=e,xe.ForwardRef=d,xe.Fragment=r,xe.Lazy=p,xe.Memo=h,xe.Portal=n,xe.Profiler=i,xe.StrictMode=s,xe.Suspense=f,xe.isAsyncMode=function(A){return j(A)||k(A)===l},xe.isConcurrentMode=j,xe.isContextConsumer=function(A){return k(A)===o},xe.isContextProvider=function(A){return k(A)===a},xe.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},xe.isForwardRef=function(A){return k(A)===d},xe.isFragment=function(A){return k(A)===r},xe.isLazy=function(A){return k(A)===p},xe.isMemo=function(A){return k(A)===h},xe.isPortal=function(A){return k(A)===n},xe.isProfiler=function(A){return k(A)===i},xe.isStrictMode=function(A){return k(A)===s},xe.isSuspense=function(A){return k(A)===f},xe.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===u||A===i||A===s||A===f||A===y||typeof A=="object"&&A!==null&&(A.$$typeof===p||A.$$typeof===h||A.$$typeof===a||A.$$typeof===o||A.$$typeof===d||A.$$typeof===g||A.$$typeof===v||A.$$typeof===S||A.$$typeof===m)},xe.typeOf=k,xe}var Ae={};/** @license React v16.13.1
74
75
  * react-is.development.js
75
76
  *
76
77
  * Copyright (c) Facebook, Inc. and its affiliates.
77
78
  *
78
79
  * This source code is licensed under the MIT license found in the
79
80
  * LICENSE file in the root directory of this source tree.
80
- */var Sf;function T4(){return Sf||(Sf=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,o=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,y=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function k(G){return typeof G=="string"||typeof G=="function"||G===r||G===u||G===s||G===i||G===f||G===y||typeof G=="object"&&G!==null&&(G.$$typeof===p||G.$$typeof===h||G.$$typeof===a||G.$$typeof===o||G.$$typeof===c||G.$$typeof===g||G.$$typeof===v||G.$$typeof===S||G.$$typeof===m)}function C(G){if(typeof G=="object"&&G!==null){var Oe=G.$$typeof;switch(Oe){case e:var Ye=G.type;switch(Ye){case l:case u:case r:case s:case i:case f:return Ye;default:var We=Ye&&Ye.$$typeof;switch(We){case o:case c:case p:case h:case a:return We;default:return Oe}}case n:return Oe}}}var A=l,j=u,b=o,x=a,M=e,_=c,I=r,P=p,H=h,N=n,O=s,L=i,R=f,Y=!1;function z(G){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(G)||C(G)===l}function F(G){return C(G)===u}function Q(G){return C(G)===o}function U(G){return C(G)===a}function q(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function W(G){return C(G)===c}function X(G){return C(G)===r}function Z(G){return C(G)===p}function re(G){return C(G)===h}function ae(G){return C(G)===n}function fe(G){return C(G)===s}function oe(G){return C(G)===i}function ve(G){return C(G)===f}Ae.AsyncMode=A,Ae.ConcurrentMode=j,Ae.ContextConsumer=b,Ae.ContextProvider=x,Ae.Element=M,Ae.ForwardRef=_,Ae.Fragment=I,Ae.Lazy=P,Ae.Memo=H,Ae.Portal=N,Ae.Profiler=O,Ae.StrictMode=L,Ae.Suspense=R,Ae.isAsyncMode=z,Ae.isConcurrentMode=F,Ae.isContextConsumer=Q,Ae.isContextProvider=U,Ae.isElement=q,Ae.isForwardRef=W,Ae.isFragment=X,Ae.isLazy=Z,Ae.isMemo=re,Ae.isPortal=ae,Ae.isProfiler=fe,Ae.isStrictMode=oe,Ae.isSuspense=ve,Ae.isValidElementType=k,Ae.typeOf=C}()),Ae}var Cf;function g0(){return Cf||(Cf=1,process.env.NODE_ENV==="production"?Fs.exports=k4():Fs.exports=T4()),Fs.exports}/*
81
+ */var Tf;function W4(){return Tf||(Tf=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,o=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,y=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function k(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===u||Y===i||Y===s||Y===f||Y===y||typeof Y=="object"&&Y!==null&&(Y.$$typeof===p||Y.$$typeof===h||Y.$$typeof===a||Y.$$typeof===o||Y.$$typeof===d||Y.$$typeof===g||Y.$$typeof===v||Y.$$typeof===S||Y.$$typeof===m)}function j(Y){if(typeof Y=="object"&&Y!==null){var Fe=Y.$$typeof;switch(Fe){case e:var tt=Y.type;switch(tt){case l:case u:case r:case i:case s:case f:return tt;default:var nt=tt&&tt.$$typeof;switch(nt){case o:case d:case p:case h:case a:return nt;default:return Fe}}case n:return Fe}}}var A=l,C=u,b=o,x=a,M=e,_=d,L=r,T=p,H=h,R=n,O=i,I=s,N=f,G=!1;function z(Y){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(Y)||j(Y)===l}function F(Y){return j(Y)===u}function q(Y){return j(Y)===o}function U(Y){return j(Y)===a}function W(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function Q(Y){return j(Y)===d}function K(Y){return j(Y)===r}function J(Y){return j(Y)===p}function ne(Y){return j(Y)===h}function se(Y){return j(Y)===n}function he(Y){return j(Y)===i}function oe(Y){return j(Y)===s}function Ee(Y){return j(Y)===f}Ae.AsyncMode=A,Ae.ConcurrentMode=C,Ae.ContextConsumer=b,Ae.ContextProvider=x,Ae.Element=M,Ae.ForwardRef=_,Ae.Fragment=L,Ae.Lazy=T,Ae.Memo=H,Ae.Portal=R,Ae.Profiler=O,Ae.StrictMode=I,Ae.Suspense=N,Ae.isAsyncMode=z,Ae.isConcurrentMode=F,Ae.isContextConsumer=q,Ae.isContextProvider=U,Ae.isElement=W,Ae.isForwardRef=Q,Ae.isFragment=K,Ae.isLazy=J,Ae.isMemo=ne,Ae.isPortal=se,Ae.isProfiler=he,Ae.isStrictMode=oe,Ae.isSuspense=Ee,Ae.isValidElementType=k,Ae.typeOf=j}()),Ae}var Pf;function S0(){return Pf||(Pf=1,process.env.NODE_ENV==="production"?qi.exports=H4():qi.exports=W4()),qi.exports}/*
81
82
  object-assign
82
83
  (c) Sindre Sorhus
83
84
  @license MIT
84
- */var Ao,jf;function P4(){if(jf)return Ao;jf=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(c){return!1}}return Ao=i()?Object.assign:function(s,a){for(var o,l=r(s),u,c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var f in o)e.call(o,f)&&(l[f]=o[f]);if(t){u=t(o);for(var y=0;y<u.length;y++)n.call(o,u[y])&&(l[u[y]]=o[u[y]])}}return l},Ao}var wo,Of;function au(){if(Of)return wo;Of=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wo=t,wo}var So,Ef;function v0(){return Ef||(Ef=1,So=Function.call.bind(Object.prototype.hasOwnProperty)),So}var Co,kf;function M4(){if(kf)return Co;kf=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=au(),n={},r=v0();t=function(s){var a="Warning: "+s;typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(o){}}}function i(s,a,o,l,u){if(process.env.NODE_ENV!=="production"){for(var c in s)if(r(s,c)){var f;try{if(typeof s[c]!="function"){var y=Error((l||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}f=s[c](a,c,l,o,null,e)}catch(p){f=p}if(f&&!(f instanceof Error)&&t((l||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";t("Failed "+o+" type: "+f.message+(h!=null?h:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Co=i,Co}var jo,Tf;function I4(){if(Tf)return jo;Tf=1;var t=g0(),e=P4(),n=au(),r=v0(),i=M4(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var l="Warning: "+o;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(u){}});function a(){return null}return jo=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(F){var Q=F&&(u&&F[u]||F[c]);if(typeof Q=="function")return Q}var y="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:S(),arrayOf:k,element:C(),elementType:A(),instanceOf:j,node:_(),objectOf:x,oneOf:b,oneOfType:M,shape:P,exact:H};function p(F,Q){return F===Q?F!==0||1/F===1/Q:F!==F&&Q!==Q}function m(F,Q){this.message=F,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}m.prototype=Error.prototype;function g(F){if(process.env.NODE_ENV!=="production")var Q={},U=0;function q(X,Z,re,ae,fe,oe,ve){if(ae=ae||y,oe=oe||re,ve!==n){if(l){var G=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var Oe=ae+":"+re;!Q[Oe]&&U<3&&(s("You are manually calling a React.PropTypes validation function for the `"+oe+"` prop on `"+ae+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Q[Oe]=!0,U++)}}return Z[re]==null?X?Z[re]===null?new m("The "+fe+" `"+oe+"` is marked as required "+("in `"+ae+"`, but its value is `null`.")):new m("The "+fe+" `"+oe+"` is marked as required in "+("`"+ae+"`, but its value is `undefined`.")):null:F(Z,re,ae,fe,oe)}var W=q.bind(null,!1);return W.isRequired=q.bind(null,!0),W}function v(F){function Q(U,q,W,X,Z,re){var ae=U[q],fe=L(ae);if(fe!==F){var oe=R(ae);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+oe+"` supplied to `"+W+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return g(Q)}function S(){return g(a)}function k(F){function Q(U,q,W,X,Z){if(typeof F!="function")return new m("Property `"+Z+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var re=U[q];if(!Array.isArray(re)){var ae=L(re);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+ae+"` supplied to `"+W+"`, expected an array."))}for(var fe=0;fe<re.length;fe++){var oe=F(re,fe,W,X,Z+"["+fe+"]",n);if(oe instanceof Error)return oe}return null}return g(Q)}function C(){function F(Q,U,q,W,X){var Z=Q[U];if(!o(Z)){var re=L(Z);return new m("Invalid "+W+" `"+X+"` of type "+("`"+re+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return g(F)}function A(){function F(Q,U,q,W,X){var Z=Q[U];if(!t.isValidElementType(Z)){var re=L(Z);return new m("Invalid "+W+" `"+X+"` of type "+("`"+re+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return g(F)}function j(F){function Q(U,q,W,X,Z){if(!(U[q]instanceof F)){var re=F.name||y,ae=z(U[q]);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+ae+"` supplied to `"+W+"`, expected ")+("instance of `"+re+"`."))}return null}return g(Q)}function b(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function Q(U,q,W,X,Z){for(var re=U[q],ae=0;ae<F.length;ae++)if(p(re,F[ae]))return null;var fe=JSON.stringify(F,function(ve,G){var Oe=R(G);return Oe==="symbol"?String(G):G});return new m("Invalid "+X+" `"+Z+"` of value `"+String(re)+"` "+("supplied to `"+W+"`, expected one of "+fe+"."))}return g(Q)}function x(F){function Q(U,q,W,X,Z){if(typeof F!="function")return new m("Property `"+Z+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var re=U[q],ae=L(re);if(ae!=="object")return new m("Invalid "+X+" `"+Z+"` of type "+("`"+ae+"` supplied to `"+W+"`, expected an object."));for(var fe in re)if(r(re,fe)){var oe=F(re,fe,W,X,Z+"."+fe,n);if(oe instanceof Error)return oe}return null}return g(Q)}function M(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var Q=0;Q<F.length;Q++){var U=F[Q];if(typeof U!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(U)+" at index "+Q+"."),a}function q(W,X,Z,re,ae){for(var fe=[],oe=0;oe<F.length;oe++){var ve=F[oe],G=ve(W,X,Z,re,ae,n);if(G==null)return null;G.data&&r(G.data,"expectedType")&&fe.push(G.data.expectedType)}var Oe=fe.length>0?", expected one of type ["+fe.join(", ")+"]":"";return new m("Invalid "+re+" `"+ae+"` supplied to "+("`"+Z+"`"+Oe+"."))}return g(q)}function _(){function F(Q,U,q,W,X){return N(Q[U])?null:new m("Invalid "+W+" `"+X+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return g(F)}function I(F,Q,U,q,W){return new m((F||"React class")+": "+Q+" type `"+U+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function P(F){function Q(U,q,W,X,Z){var re=U[q],ae=L(re);if(ae!=="object")return new m("Invalid "+X+" `"+Z+"` of type `"+ae+"` "+("supplied to `"+W+"`, expected `object`."));for(var fe in F){var oe=F[fe];if(typeof oe!="function")return I(W,X,Z,fe,R(oe));var ve=oe(re,fe,W,X,Z+"."+fe,n);if(ve)return ve}return null}return g(Q)}function H(F){function Q(U,q,W,X,Z){var re=U[q],ae=L(re);if(ae!=="object")return new m("Invalid "+X+" `"+Z+"` of type `"+ae+"` "+("supplied to `"+W+"`, expected `object`."));var fe=e({},U[q],F);for(var oe in fe){var ve=F[oe];if(r(F,oe)&&typeof ve!="function")return I(W,X,Z,oe,R(ve));if(!ve)return new m("Invalid "+X+" `"+Z+"` key `"+oe+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(U[q],null," ")+`
85
- Valid keys: `+JSON.stringify(Object.keys(F),null," "));var G=ve(re,oe,W,X,Z+"."+oe,n);if(G)return G}return null}return g(Q)}function N(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(N);if(F===null||o(F))return!0;var Q=f(F);if(Q){var U=Q.call(F),q;if(Q!==F.entries){for(;!(q=U.next()).done;)if(!N(q.value))return!1}else for(;!(q=U.next()).done;){var W=q.value;if(W&&!N(W[1]))return!1}}else return!1;return!0;default:return!1}}function O(F,Q){return F==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function L(F){var Q=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":O(Q,F)?"symbol":Q}function R(F){if(typeof F=="undefined"||F===null)return""+F;var Q=L(F);if(Q==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return Q}function Y(F){var Q=R(F);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function z(F){return!F.constructor||!F.constructor.name?y:F.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},jo}var Oo,Pf;function L4(){if(Pf)return Oo;Pf=1;var t=au();function e(){}function n(){}return n.resetWarningCache=e,Oo=function(){function r(a,o,l,u,c,f){if(f!==t){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return s.PropTypes=s,s},Oo}var Mf;function R4(){if(Mf)return Bs.exports;if(Mf=1,process.env.NODE_ENV!=="production"){var t=g0(),e=!0;Bs.exports=I4()(t.isElement,e)}else Bs.exports=L4()();return Bs.exports}var N4=R4();const If=Gf(N4);var _4=["min","max","progress","className"];function D4(t,e){if(t==null)return{};var n,r,i=B4(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function B4(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var b0=D.forwardRef(function(t,e){var n=t.min,r=t.max,i=t.progress,s=t.className,a=D4(t,_4),o=D.useMemo(function(){var u=Math.max(0,r-n);if(u===0)return 0;var c=(i-n)/u*100;return Math.max(0,Math.min(100,c))},[n,r,i]),l=Math.min(Math.max(i,n),r);return d.jsx("div",{ref:e,role:"progressbar","aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":l,"aria-valuetext":"".concat(Math.round(o),"%"),className:te(s),...a,children:d.jsx("div",{className:"yst-relative yst-h-2 yst-w-full yst-overflow-hidden yst-rounded-full yst-bg-slate-200/40",children:d.jsx("div",{className:"yst-absolute yst-left-0 yst-top-0 yst-h-full yst-rounded-full yst-bg-[linear-gradient(97.38deg,_#A61E69_0%,_#6366F1_100%)] yst-transition-[width] yst-duration-300 yst-ease-out",style:{width:"".concat(o,"%")}})})})});b0.displayName="ProgressBarGradient";var bi=[{labelAbove:"Running queries...",threshold:80},{labelAbove:"Building analysis...",threshold:90},{labelAbove:"Finalizing...",threshold:99},{labelAbove:"Done!",threshold:100}],x0=function(e){var n=e.progress,r=n===void 0?0:n,i=e.className,s=i===void 0?"":i,a=function(){for(var c=0;c<bi.length;c++)if(r<=bi[c].threshold)return bi[c];return bi[bi.length-1]},o=a(),l=r<=80;return d.jsxs("div",{className:te("yst-font-medium yst-text-slate-800",s),children:[d.jsxs("div",{className:"yst-flex yst-items-center yst-justify-center yst-gap-2",children:[r<100?d.jsx(w.Spinner,{}):d.jsx(sy,{className:"yst-text-green-400"}),d.jsx("span",{className:"yst-text-sm yst-font-medium yst-italic",children:o.labelAbove})]}),d.jsx(b0,{className:"yst-mt-3",progress:r,min:0,max:100}),d.jsxs("div",{className:"yst-mt-3 yst-flex yst-justify-between yst-text-xs",children:[d.jsx("span",{children:d.jsx(Fi,{disabled:!l,children:"Running queries"})}),d.jsx("span",{children:d.jsx(Fi,{disabled:l,children:"Building analysis"})})]})]})};x0.propTypes={progress:If.number,className:If.string};function F4(t,e){return Q4(t)||W4(t,e)||H4(t,e)||U4()}function U4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
86
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H4(t,e){if(t){if(typeof t=="string")return Lf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lf(t,e):void 0}}function Lf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function W4(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function Q4(t){if(Array.isArray(t))return t}var q4=function(e){switch(e){case"pending":case"processing":return 2*1e3;case"completed":return!1;default:return 10*1e3}},z4=function(){var e,n,r,i=Ct(),s=Lt(),a=va(),o=Rt(),l=o.brandId,u=a.brandId||l,c=D.useState(null),f=F4(c,2),y=f[0],h=f[1],p=ia(u,{query:{enabled:!!u,select:function(M){var _=M.data;return _}}}),m=p.data,g=O2(u,"latest",{query:{enabled:!!u,select:function(M){var _=M.data;return _},refetchInterval:function(M){var _,I=M==null||(_=M.state)===null||_===void 0||(_=_.data)===null||_===void 0?void 0:_.data;return q4(I==null?void 0:I.status)}}}),v=g.data,S=v==null?void 0:v.id,k=S?"/brands/".concat(u,"/analysis/").concat(S):"/brands/".concat(u);D.useEffect(function(){var x=(v==null?void 0:v.status)==="pending"||(v==null?void 0:v.status)==="processing"||(v==null?void 0:v.status)==="completed";m!=null&&m.nextScheduledAnalysis&&v!==null&&v!==void 0&&v.status&&yA(m.nextScheduledAnalysis,5)&&!x&&i("/brands/".concat(u),{replace:!0})},[m==null?void 0:m.nextScheduledAnalysis,u,i,v==null?void 0:v.status]),D.useEffect(function(){((m==null?void 0:m.setupStatus)==="completed"||(m==null?void 0:m.setupStatus)==="scheduledFirstAnalysis"&&m!==null&&m!==void 0&&m.firstNextAnalysisOpportunity&&!my(m.firstNextAnalysisOpportunity,2))&&i(k,{replace:!0})},[m==null?void 0:m.firstNextAnalysisOpportunity,m==null?void 0:m.setupStatus,k,i]);var C=m==null||(e=m.queries)===null||e===void 0?void 0:e.length,A=(v==null||(n=v.completedQueries)===null||n===void 0?void 0:n.length)||0;D.useEffect(function(){if((v==null?void 0:v.status)==="processing"&&C&&A===C){h("building");var x=setTimeout(function(){h("finalizing")},1e4);return function(){return clearTimeout(x)}}else h(null)},[v==null?void 0:v.status,C,A]);var j=function(){if(C&&C>0){var x=80/C,M=A*x;return(v==null?void 0:v.status)==="completed"?100:(v==null?void 0:v.status)==="processing"&&A===C&&y!==null?y==="building"?90:95:Math.round(Math.min(M,80))}return 0}(),b=j<=80||j===100;return d.jsxs("div",{children:[d.jsxs("div",{className:"yst-space-y-8",children:[d.jsx(x0,{progress:j}),b&&d.jsxs(d.Fragment,{children:[d.jsx(ti,{}),d.jsx("div",{className:"yst-space-y-8",children:m==null||(r=m.queries)===null||r===void 0?void 0:r.map(function(x){var M,_=x.id,I=x.query,P=_&&(v==null||(M=v.completedQueries)===null||M===void 0?void 0:M.includes(_));return d.jsxs("div",{className:te("yst-flex yst-items-center yst-justify-between yst-gap-3"),children:[P===!0?d.jsx(sy,{className:"yst-h-5 yst-w-5 yst-text-green-400"}):d.jsx(w.Spinner,{}),d.jsx("span",{className:"yst-flex-1 yst-text-sm",children:I})]},"result-item-".concat(I))})})]})]}),d.jsx("div",{className:"yst-mb-[-2rem] yst-ml-[-2rem] yst-mr-[-2rem] yst-mt-8 yst-flex yst-justify-end yst-gap-4 yst-rounded-bl-lg yst-rounded-br-lg yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6",children:d.jsx(w.Button,{as:Fn,to:k,onClick:function(x){if(j!==100){x.preventDefault();return}s.clear()},disabled:j!==100,children:"Continue →"})})]})};const G4=Object.freeze(Object.defineProperty({__proto__:null,default:z4},Symbol.toStringTag,{value:"Module"}));exports.AIInsightsClient=X5;exports.setApiBaseUrl=zh;
85
+ */var Oo,Mf;function Q4(){if(Mf)return Oo;Mf=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return Oo=s()?Object.assign:function(i,a){for(var o,l=r(i),u,d=1;d<arguments.length;d++){o=Object(arguments[d]);for(var f in o)e.call(o,f)&&(l[f]=o[f]);if(t){u=t(o);for(var y=0;y<u.length;y++)n.call(o,u[y])&&(l[u[y]]=o[u[y]])}}return l},Oo}var Eo,Lf;function cu(){if(Lf)return Eo;Lf=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Eo=t,Eo}var ko,If;function C0(){return If||(If=1,ko=Function.call.bind(Object.prototype.hasOwnProperty)),ko}var To,Rf;function q4(){if(Rf)return To;Rf=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=cu(),n={},r=C0();t=function(i){var a="Warning: "+i;typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(o){}}}function s(i,a,o,l,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var f;try{if(typeof i[d]!="function"){var y=Error((l||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}f=i[d](a,d,l,o,null,e)}catch(p){f=p}if(f&&!(f instanceof Error)&&t((l||"React class")+": type specification of "+o+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";t("Failed "+o+" type: "+f.message+(h!=null?h:""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},To=s,To}var Po,Nf;function z4(){if(Nf)return Po;Nf=1;var t=S0(),e=Q4(),n=cu(),r=C0(),s=q4(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(o){var l="Warning: "+o;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(u){}});function a(){return null}return Po=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(F){var q=F&&(u&&F[u]||F[d]);if(typeof q=="function")return q}var y="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:S(),arrayOf:k,element:j(),elementType:A(),instanceOf:C,node:_(),objectOf:x,oneOf:b,oneOfType:M,shape:T,exact:H};function p(F,q){return F===q?F!==0||1/F===1/q:F!==F&&q!==q}function m(F,q){this.message=F,this.data=q&&typeof q=="object"?q:{},this.stack=""}m.prototype=Error.prototype;function g(F){if(process.env.NODE_ENV!=="production")var q={},U=0;function W(K,J,ne,se,he,oe,Ee){if(se=se||y,oe=oe||ne,Ee!==n){if(l){var Y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var Fe=se+":"+ne;!q[Fe]&&U<3&&(i("You are manually calling a React.PropTypes validation function for the `"+oe+"` prop on `"+se+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),q[Fe]=!0,U++)}}return J[ne]==null?K?J[ne]===null?new m("The "+he+" `"+oe+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new m("The "+he+" `"+oe+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:F(J,ne,se,he,oe)}var Q=W.bind(null,!1);return Q.isRequired=W.bind(null,!0),Q}function v(F){function q(U,W,Q,K,J,ne){var se=U[W],he=I(se);if(he!==F){var oe=N(se);return new m("Invalid "+K+" `"+J+"` of type "+("`"+oe+"` supplied to `"+Q+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return g(q)}function S(){return g(a)}function k(F){function q(U,W,Q,K,J){if(typeof F!="function")return new m("Property `"+J+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var ne=U[W];if(!Array.isArray(ne)){var se=I(ne);return new m("Invalid "+K+" `"+J+"` of type "+("`"+se+"` supplied to `"+Q+"`, expected an array."))}for(var he=0;he<ne.length;he++){var oe=F(ne,he,Q,K,J+"["+he+"]",n);if(oe instanceof Error)return oe}return null}return g(q)}function j(){function F(q,U,W,Q,K){var J=q[U];if(!o(J)){var ne=I(J);return new m("Invalid "+Q+" `"+K+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return g(F)}function A(){function F(q,U,W,Q,K){var J=q[U];if(!t.isValidElementType(J)){var ne=I(J);return new m("Invalid "+Q+" `"+K+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return g(F)}function C(F){function q(U,W,Q,K,J){if(!(U[W]instanceof F)){var ne=F.name||y,se=z(U[W]);return new m("Invalid "+K+" `"+J+"` of type "+("`"+se+"` supplied to `"+Q+"`, expected ")+("instance of `"+ne+"`."))}return null}return g(q)}function b(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function q(U,W,Q,K,J){for(var ne=U[W],se=0;se<F.length;se++)if(p(ne,F[se]))return null;var he=JSON.stringify(F,function(Ee,Y){var Fe=N(Y);return Fe==="symbol"?String(Y):Y});return new m("Invalid "+K+" `"+J+"` of value `"+String(ne)+"` "+("supplied to `"+Q+"`, expected one of "+he+"."))}return g(q)}function x(F){function q(U,W,Q,K,J){if(typeof F!="function")return new m("Property `"+J+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var ne=U[W],se=I(ne);if(se!=="object")return new m("Invalid "+K+" `"+J+"` of type "+("`"+se+"` supplied to `"+Q+"`, expected an object."));for(var he in ne)if(r(ne,he)){var oe=F(ne,he,Q,K,J+"."+he,n);if(oe instanceof Error)return oe}return null}return g(q)}function M(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var q=0;q<F.length;q++){var U=F[q];if(typeof U!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(U)+" at index "+q+"."),a}function W(Q,K,J,ne,se){for(var he=[],oe=0;oe<F.length;oe++){var Ee=F[oe],Y=Ee(Q,K,J,ne,se,n);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&he.push(Y.data.expectedType)}var Fe=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new m("Invalid "+ne+" `"+se+"` supplied to "+("`"+J+"`"+Fe+"."))}return g(W)}function _(){function F(q,U,W,Q,K){return R(q[U])?null:new m("Invalid "+Q+" `"+K+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return g(F)}function L(F,q,U,W,Q){return new m((F||"React class")+": "+q+" type `"+U+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function T(F){function q(U,W,Q,K,J){var ne=U[W],se=I(ne);if(se!=="object")return new m("Invalid "+K+" `"+J+"` of type `"+se+"` "+("supplied to `"+Q+"`, expected `object`."));for(var he in F){var oe=F[he];if(typeof oe!="function")return L(Q,K,J,he,N(oe));var Ee=oe(ne,he,Q,K,J+"."+he,n);if(Ee)return Ee}return null}return g(q)}function H(F){function q(U,W,Q,K,J){var ne=U[W],se=I(ne);if(se!=="object")return new m("Invalid "+K+" `"+J+"` of type `"+se+"` "+("supplied to `"+Q+"`, expected `object`."));var he=e({},U[W],F);for(var oe in he){var Ee=F[oe];if(r(F,oe)&&typeof Ee!="function")return L(Q,K,J,oe,N(Ee));if(!Ee)return new m("Invalid "+K+" `"+J+"` key `"+oe+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(U[W],null," ")+`
86
+ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var Y=Ee(ne,oe,Q,K,J+"."+oe,n);if(Y)return Y}return null}return g(q)}function R(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(R);if(F===null||o(F))return!0;var q=f(F);if(q){var U=q.call(F),W;if(q!==F.entries){for(;!(W=U.next()).done;)if(!R(W.value))return!1}else for(;!(W=U.next()).done;){var Q=W.value;if(Q&&!R(Q[1]))return!1}}else return!1;return!0;default:return!1}}function O(F,q){return F==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function I(F){var q=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":O(q,F)?"symbol":q}function N(F){if(typeof F=="undefined"||F===null)return""+F;var q=I(F);if(q==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return q}function G(F){var q=N(F);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function z(F){return!F.constructor||!F.constructor.name?y:F.constructor.name}return h.checkPropTypes=s,h.resetWarningCache=s.resetWarningCache,h.PropTypes=h,h},Po}var Mo,_f;function G4(){if(_f)return Mo;_f=1;var t=cu();function e(){}function n(){}return n.resetWarningCache=e,Mo=function(){function r(a,o,l,u,d,f){if(f!==t){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function s(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i},Mo}var Df;function Y4(){if(Df)return Qi.exports;if(Df=1,process.env.NODE_ENV!=="production"){var t=S0(),e=!0;Qi.exports=z4()(t.isElement,e)}else Qi.exports=G4()();return Qi.exports}var V4=Y4();const Bf=Zf(V4);var K4=["min","max","progress","className"];function X4(t,e){if(t==null)return{};var n,r,s=J4(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function J4(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var j0=D.forwardRef(function(t,e){var n=t.min,r=t.max,s=t.progress,i=t.className,a=X4(t,K4),o=D.useMemo(function(){var u=Math.max(0,r-n);if(u===0)return 0;var d=(s-n)/u*100;return Math.max(0,Math.min(100,d))},[n,r,s]),l=Math.min(Math.max(s,n),r);return c.jsx("div",{ref:e,role:"progressbar","aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":l,"aria-valuetext":"".concat(Math.round(o),"%"),className:te(i),...a,children:c.jsx("div",{className:"yst-relative yst-h-2 yst-w-full yst-overflow-hidden yst-rounded-full yst-bg-slate-200/40",children:c.jsx("div",{className:"yst-absolute yst-left-0 yst-top-0 yst-h-full yst-rounded-full yst-bg-[linear-gradient(97.38deg,_#A61E69_0%,_#6366F1_100%)] yst-transition-[width] yst-duration-300 yst-ease-out",style:{width:"".concat(o,"%")}})})})});j0.displayName="ProgressBarGradient";var Cs=[{labelAbove:"Running queries...",threshold:80},{labelAbove:"Building analysis...",threshold:90},{labelAbove:"Finalizing...",threshold:99},{labelAbove:"Done!",threshold:100}],O0=function(e){var n=e.progress,r=n===void 0?0:n,s=e.className,i=s===void 0?"":s,a=function(){for(var d=0;d<Cs.length;d++)if(r<=Cs[d].threshold)return Cs[d];return Cs[Cs.length-1]},o=a(),l=r<=80;return c.jsxs("div",{className:te("yst-font-medium yst-text-slate-800",i),children:[c.jsxs("div",{className:"yst-flex yst-items-center yst-justify-center yst-gap-2",children:[r<100?c.jsx(w.Spinner,{}):c.jsx(dy,{className:"yst-text-green-400"}),c.jsx("span",{className:"yst-text-sm yst-font-medium yst-italic",children:o.labelAbove})]}),c.jsx(j0,{className:"yst-mt-3",progress:r,min:0,max:100}),c.jsxs("div",{className:"yst-mt-3 yst-flex yst-justify-between yst-text-xs",children:[c.jsx("span",{children:c.jsx(qs,{disabled:!l,children:"Running queries"})}),c.jsx("span",{children:c.jsx(qs,{disabled:l,children:"Building analysis"})})]})]})};O0.propTypes={progress:Bf.number,className:Bf.string};function Z4(t,e){return n8(t)||t8(t,e)||e8(t,e)||$4()}function $4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e8(t,e){if(t){if(typeof t=="string")return Ff(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ff(t,e):void 0}}function Ff(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function t8(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function n8(t){if(Array.isArray(t))return t}var r8=function(e){switch(e){case"pending":case"processing":return 2*1e3;case"completed":return!1;default:return 10*1e3}},s8=function(){var e,n,r,s=dt(),i=Nt(),a=Ca(),o=Ot(),l=o.brandId,u=a.brandId||l,d=D.useState(null),f=Z4(d,2),y=f[0],h=f[1],p=ca(u,{query:{enabled:!!u,select:function(M){var _=M.data;return _}}}),m=p.data,g=L2(u,"latest",{query:{enabled:!!u,select:function(M){var _=M.data;return _},refetchInterval:function(M){var _,L=M==null||(_=M.state)===null||_===void 0||(_=_.data)===null||_===void 0?void 0:_.data;return r8(L==null?void 0:L.status)}}}),v=g.data,S=v==null?void 0:v.id,k=S?"/brands/".concat(u,"/analysis/").concat(S):"/brands/".concat(u);D.useEffect(function(){var x=(v==null?void 0:v.status)==="pending"||(v==null?void 0:v.status)==="processing"||(v==null?void 0:v.status)==="completed";m!=null&&m.nextScheduledAnalysis&&v!==null&&v!==void 0&&v.status&&xA(m.nextScheduledAnalysis,5)&&!x&&s("/brands/".concat(u),{replace:!0})},[m==null?void 0:m.nextScheduledAnalysis,u,s,v==null?void 0:v.status]),D.useEffect(function(){((m==null?void 0:m.setupStatus)==="completed"||(m==null?void 0:m.setupStatus)==="scheduledFirstAnalysis"&&m!==null&&m!==void 0&&m.firstNextAnalysisOpportunity&&!wy(m.firstNextAnalysisOpportunity,2))&&s(k,{replace:!0})},[m==null?void 0:m.firstNextAnalysisOpportunity,m==null?void 0:m.setupStatus,k,s]);var j=m==null||(e=m.queries)===null||e===void 0?void 0:e.length,A=(v==null||(n=v.completedQueries)===null||n===void 0?void 0:n.length)||0;D.useEffect(function(){if((v==null?void 0:v.status)==="processing"&&j&&A===j){h("building");var x=setTimeout(function(){h("finalizing")},1e4);return function(){return clearTimeout(x)}}else h(null)},[v==null?void 0:v.status,j,A]);var C=function(){if(j&&j>0){var x=80/j,M=A*x;return(v==null?void 0:v.status)==="completed"?100:(v==null?void 0:v.status)==="processing"&&A===j&&y!==null?y==="building"?90:95:Math.round(Math.min(M,80))}return 0}(),b=C<=80||C===100;return c.jsxs("div",{children:[c.jsxs("div",{className:"yst-space-y-8",children:[c.jsx(O0,{progress:C}),b&&c.jsxs(c.Fragment,{children:[c.jsx(ss,{}),c.jsx("div",{className:"yst-space-y-8",children:m==null||(r=m.queries)===null||r===void 0?void 0:r.map(function(x){var M,_=x.id,L=x.query,T=_&&(v==null||(M=v.completedQueries)===null||M===void 0?void 0:M.includes(_));return c.jsxs("div",{className:te("yst-flex yst-items-center yst-justify-between yst-gap-3"),children:[T===!0?c.jsx(dy,{className:"yst-h-5 yst-w-5 yst-text-green-400"}):c.jsx(w.Spinner,{}),c.jsx("span",{className:"yst-flex-1 yst-text-sm",children:L})]},"result-item-".concat(L))})})]})]}),c.jsx("div",{className:"yst-mb-[-2rem] yst-ml-[-2rem] yst-mr-[-2rem] yst-mt-8 yst-flex yst-justify-end yst-gap-4 yst-rounded-bl-lg yst-rounded-br-lg yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6",children:c.jsx(w.Button,{as:Wn,to:k,onClick:function(x){if(C!==100){x.preventDefault();return}i.clear()},disabled:C!==100,children:"Continue →"})})]})};const i8=Object.freeze(Object.defineProperty({__proto__:null,default:s8},Symbol.toStringTag,{value:"Module"}));exports.AIInsightsClient=n6;exports.setApiBaseUrl=Jh;
87
88
  //# sourceMappingURL=ai-insights-client.cjs.js.map