diff --git a/build/assets/AddContentIcon-00c7fa22.js b/build/assets/AddContentIcon-8ac1fc1c.js similarity index 97% rename from build/assets/AddContentIcon-00c7fa22.js rename to build/assets/AddContentIcon-8ac1fc1c.js index e05130edd..453e0ce80 100644 --- a/build/assets/AddContentIcon-00c7fa22.js +++ b/build/assets/AddContentIcon-8ac1fc1c.js @@ -1 +1 @@ -import{j as C}from"./index-261f9d22.js";const r=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_25)",children:C.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]});export{r as A}; +import{j as C}from"./index-20ea28f6.js";const r=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_25)",children:C.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]});export{r as A}; diff --git a/build/assets/CheckIcon-0a716700.js b/build/assets/CheckIcon-9a593d48.js similarity index 92% rename from build/assets/CheckIcon-0a716700.js rename to build/assets/CheckIcon-9a593d48.js index 2ac2174cb..716915ce9 100644 --- a/build/assets/CheckIcon-0a716700.js +++ b/build/assets/CheckIcon-9a593d48.js @@ -1 +1 @@ -import{j as C}from"./index-261f9d22.js";const t=o=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})});export{t as C}; +import{j as C}from"./index-20ea28f6.js";const t=o=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})});export{t as C}; diff --git a/build/assets/ClipLoader-2f6df72c.js b/build/assets/ClipLoader-4ce369de.js similarity index 97% rename from build/assets/ClipLoader-2f6df72c.js rename to build/assets/ClipLoader-4ce369de.js index 560601bd6..11857631d 100644 --- a/build/assets/ClipLoader-2f6df72c.js +++ b/build/assets/ClipLoader-4ce369de.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-261f9d22.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` +import{r as m}from"./index-20ea28f6.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` @keyframes `.concat(r,` { `).concat(t,` } diff --git a/build/assets/DailyMotion-f8942516.js b/build/assets/DailyMotion-ddc30a3c.js similarity index 95% rename from build/assets/DailyMotion-f8942516.js rename to build/assets/DailyMotion-ddc30a3c.js index e7f3a8710..529c283e1 100644 --- a/build/assets/DailyMotion-f8942516.js +++ b/build/assets/DailyMotion-ddc30a3c.js @@ -1 +1 @@ -import{n as P,r as v}from"./index-261f9d22.js";import{u as D,p as O}from"./index-bac9adcb.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{n as P,r as v}from"./index-20ea28f6.js";import{u as D,p as O}from"./index-d4895025.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/DeleteIcon-d3ad49c0.js b/build/assets/DeleteIcon-304ee64b.js similarity index 96% rename from build/assets/DeleteIcon-d3ad49c0.js rename to build/assets/DeleteIcon-304ee64b.js index 71fccffc4..7a525e2d3 100644 --- a/build/assets/DeleteIcon-d3ad49c0.js +++ b/build/assets/DeleteIcon-304ee64b.js @@ -1 +1 @@ -import{j as e}from"./index-261f9d22.js";const s=C=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{id:"delete",children:[e.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{children:e.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})});export{s as D}; +import{j as e}from"./index-20ea28f6.js";const s=C=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{id:"delete",children:[e.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{children:e.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})});export{s as D}; diff --git a/build/assets/Facebook-62848176.js b/build/assets/Facebook-28e8509e.js similarity index 96% rename from build/assets/Facebook-62848176.js rename to build/assets/Facebook-28e8509e.js index 5bb3801c9..a7bf260e6 100644 --- a/build/assets/Facebook-62848176.js +++ b/build/assets/Facebook-28e8509e.js @@ -1 +1 @@ -import{n as _,r as P}from"./index-261f9d22.js";import{u as g,p as m}from"./index-bac9adcb.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{n as _,r as P}from"./index-20ea28f6.js";import{u as g,p as m}from"./index-d4895025.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/build/assets/FilePlayer-7b7aa4ef.js b/build/assets/FilePlayer-d7804739.js similarity index 98% rename from build/assets/FilePlayer-7b7aa4ef.js rename to build/assets/FilePlayer-d7804739.js index b2a5e83e6..b6572c3d3 100644 --- a/build/assets/FilePlayer-7b7aa4ef.js +++ b/build/assets/FilePlayer-d7804739.js @@ -1 +1 @@ -import{n as b,r as _}from"./index-261f9d22.js";import{u as O,p as A}from"./index-bac9adcb.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{n as b,r as _}from"./index-20ea28f6.js";import{u as O,p as A}from"./index-d4895025.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/build/assets/InfoIcon-d22daefc.js b/build/assets/InfoIcon-3abfdeb4.js similarity index 97% rename from build/assets/InfoIcon-d22daefc.js rename to build/assets/InfoIcon-3abfdeb4.js index c6e5eb64b..04eabfe8d 100644 --- a/build/assets/InfoIcon-d22daefc.js +++ b/build/assets/InfoIcon-3abfdeb4.js @@ -1 +1 @@ -import{j as C}from"./index-261f9d22.js";const r=i=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"info",children:[C.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2682_970)",children:C.jsx("path",{id:"info_2",d:"M7.99992 11.3334C8.18881 11.3334 8.34714 11.2695 8.47492 11.1417C8.6027 11.0139 8.66658 10.8556 8.66658 10.6667V8.00004C8.66658 7.81115 8.6027 7.65282 8.47492 7.52504C8.34714 7.39726 8.18881 7.33337 7.99992 7.33337C7.81103 7.33337 7.6527 7.39726 7.52492 7.52504C7.39714 7.65282 7.33325 7.81115 7.33325 8.00004V10.6667C7.33325 10.8556 7.39714 11.0139 7.52492 11.1417C7.6527 11.2695 7.81103 11.3334 7.99992 11.3334ZM7.99992 6.00004C8.18881 6.00004 8.34714 5.93615 8.47492 5.80837C8.6027 5.6806 8.66658 5.52226 8.66658 5.33337C8.66658 5.14448 8.6027 4.98615 8.47492 4.85837C8.34714 4.7306 8.18881 4.66671 7.99992 4.66671C7.81103 4.66671 7.6527 4.7306 7.52492 4.85837C7.39714 4.98615 7.33325 5.14448 7.33325 5.33337C7.33325 5.52226 7.39714 5.6806 7.52492 5.80837C7.6527 5.93615 7.81103 6.00004 7.99992 6.00004ZM7.99992 14.6667C7.0777 14.6667 6.21103 14.4917 5.39992 14.1417C4.58881 13.7917 3.88325 13.3167 3.28325 12.7167C2.68325 12.1167 2.20825 11.4112 1.85825 10.6C1.50825 9.78893 1.33325 8.92226 1.33325 8.00004C1.33325 7.07782 1.50825 6.21115 1.85825 5.40004C2.20825 4.58893 2.68325 3.88337 3.28325 3.28337C3.88325 2.68337 4.58881 2.20837 5.39992 1.85837C6.21103 1.50837 7.0777 1.33337 7.99992 1.33337C8.92214 1.33337 9.78881 1.50837 10.5999 1.85837C11.411 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.411 13.7917 10.5999 14.1417C9.78881 14.4917 8.92214 14.6667 7.99992 14.6667ZM7.99992 13.3334C9.48881 13.3334 10.7499 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.7499 3.18337 9.48881 2.66671 7.99992 2.66671C6.51103 2.66671 5.24992 3.18337 4.21659 4.21671C3.18325 5.25004 2.66659 6.51115 2.66659 8.00004C2.66659 9.48893 3.18325 10.75 4.21659 11.7834C5.24992 12.8167 6.51103 13.3334 7.99992 13.3334Z",fill:"currentColor"})})]})});export{r as I}; +import{j as C}from"./index-20ea28f6.js";const r=i=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"info",children:[C.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2682_970)",children:C.jsx("path",{id:"info_2",d:"M7.99992 11.3334C8.18881 11.3334 8.34714 11.2695 8.47492 11.1417C8.6027 11.0139 8.66658 10.8556 8.66658 10.6667V8.00004C8.66658 7.81115 8.6027 7.65282 8.47492 7.52504C8.34714 7.39726 8.18881 7.33337 7.99992 7.33337C7.81103 7.33337 7.6527 7.39726 7.52492 7.52504C7.39714 7.65282 7.33325 7.81115 7.33325 8.00004V10.6667C7.33325 10.8556 7.39714 11.0139 7.52492 11.1417C7.6527 11.2695 7.81103 11.3334 7.99992 11.3334ZM7.99992 6.00004C8.18881 6.00004 8.34714 5.93615 8.47492 5.80837C8.6027 5.6806 8.66658 5.52226 8.66658 5.33337C8.66658 5.14448 8.6027 4.98615 8.47492 4.85837C8.34714 4.7306 8.18881 4.66671 7.99992 4.66671C7.81103 4.66671 7.6527 4.7306 7.52492 4.85837C7.39714 4.98615 7.33325 5.14448 7.33325 5.33337C7.33325 5.52226 7.39714 5.6806 7.52492 5.80837C7.6527 5.93615 7.81103 6.00004 7.99992 6.00004ZM7.99992 14.6667C7.0777 14.6667 6.21103 14.4917 5.39992 14.1417C4.58881 13.7917 3.88325 13.3167 3.28325 12.7167C2.68325 12.1167 2.20825 11.4112 1.85825 10.6C1.50825 9.78893 1.33325 8.92226 1.33325 8.00004C1.33325 7.07782 1.50825 6.21115 1.85825 5.40004C2.20825 4.58893 2.68325 3.88337 3.28325 3.28337C3.88325 2.68337 4.58881 2.20837 5.39992 1.85837C6.21103 1.50837 7.0777 1.33337 7.99992 1.33337C8.92214 1.33337 9.78881 1.50837 10.5999 1.85837C11.411 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.411 13.7917 10.5999 14.1417C9.78881 14.4917 8.92214 14.6667 7.99992 14.6667ZM7.99992 13.3334C9.48881 13.3334 10.7499 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.7499 3.18337 9.48881 2.66671 7.99992 2.66671C6.51103 2.66671 5.24992 3.18337 4.21659 4.21671C3.18325 5.25004 2.66659 6.51115 2.66659 8.00004C2.66659 9.48893 3.18325 10.75 4.21659 11.7834C5.24992 12.8167 6.51103 13.3334 7.99992 13.3334Z",fill:"currentColor"})})]})});export{r as I}; diff --git a/build/assets/Kaltura-0d6f0140.js b/build/assets/Kaltura-39e30085.js similarity index 95% rename from build/assets/Kaltura-0d6f0140.js rename to build/assets/Kaltura-39e30085.js index 76ef02f0f..1cdd48e66 100644 --- a/build/assets/Kaltura-0d6f0140.js +++ b/build/assets/Kaltura-39e30085.js @@ -1 +1 @@ -import{n as y,r as f}from"./index-261f9d22.js";import{u as _,p as m}from"./index-bac9adcb.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; +import{n as y,r as f}from"./index-20ea28f6.js";import{u as _,p as m}from"./index-d4895025.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; diff --git a/build/assets/MergeIcon-81475345.js b/build/assets/MergeIcon-5e442f11.js similarity index 97% rename from build/assets/MergeIcon-81475345.js rename to build/assets/MergeIcon-5e442f11.js index b6d7b4892..220b9809c 100644 --- a/build/assets/MergeIcon-81475345.js +++ b/build/assets/MergeIcon-5e442f11.js @@ -1 +1 @@ -import{j as C}from"./index-261f9d22.js";const t=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),e=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})});export{t as A,e as M}; +import{j as C}from"./index-20ea28f6.js";const t=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),e=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})});export{t as A,e as M}; diff --git a/build/assets/Mixcloud-69bd7a5e.js b/build/assets/Mixcloud-a7cea602.js similarity index 95% rename from build/assets/Mixcloud-69bd7a5e.js rename to build/assets/Mixcloud-a7cea602.js index f89fec119..cbf8827ec 100644 --- a/build/assets/Mixcloud-69bd7a5e.js +++ b/build/assets/Mixcloud-a7cea602.js @@ -1 +1 @@ -import{n as _,r as f}from"./index-261f9d22.js";import{u as m,p as g}from"./index-bac9adcb.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; +import{n as _,r as f}from"./index-20ea28f6.js";import{u as m,p as g}from"./index-d4895025.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/build/assets/NodeCircleIcon-6bd29553.js b/build/assets/NodeCircleIcon-d4adc804.js similarity index 91% rename from build/assets/NodeCircleIcon-6bd29553.js rename to build/assets/NodeCircleIcon-d4adc804.js index 07c8593ad..cf3d83a6a 100644 --- a/build/assets/NodeCircleIcon-6bd29553.js +++ b/build/assets/NodeCircleIcon-d4adc804.js @@ -1,4 +1,4 @@ -import{o,a$ as e,aZ as r,aY as n,j as t}from"./index-261f9d22.js";import{I as i}from"./index-a3132f83.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",p="Queued Sources",d="Topics",h="View Content",u="date",T="edge_count",x="alphabetically",E="https://twitter.com",m="IS_ALIAS",g="https://www.twitter.com/anyuser/status/",I=o(i)` +import{o,a$ as e,aZ as r,aY as n,j as t}from"./index-20ea28f6.js";import{I as i}from"./index-b0d8b87e.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",p="Queued Sources",d="Topics",h="View Content",u="date",T="edge_count",x="alphabetically",E="https://twitter.com",m="IS_ALIAS",g="https://www.twitter.com/anyuser/status/",I=o(i)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/PlusIcon-788eea40.js b/build/assets/PlusIcon-88e6816e.js similarity index 94% rename from build/assets/PlusIcon-788eea40.js rename to build/assets/PlusIcon-88e6816e.js index 95165e64a..02abfaa1a 100644 --- a/build/assets/PlusIcon-788eea40.js +++ b/build/assets/PlusIcon-88e6816e.js @@ -1 +1 @@ -import{j as s}from"./index-261f9d22.js";const t=e=>s.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:s.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),s.jsx("g",{children:s.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]});export{t as P}; +import{j as s}from"./index-20ea28f6.js";const t=e=>s.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:s.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),s.jsx("g",{children:s.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]});export{t as P}; diff --git a/build/assets/Popover-548ea313.js b/build/assets/Popover-bf44d96f.js similarity index 99% rename from build/assets/Popover-548ea313.js rename to build/assets/Popover-bf44d96f.js index d878fe4e2..d642b01a1 100644 --- a/build/assets/Popover-548ea313.js +++ b/build/assets/Popover-bf44d96f.js @@ -1 +1 @@ -import{m as me,a as G,R as ve,b as xe,g as be,s as se,_ as g,f as Ae,r as c,u as Pe,j as A,c as ie,d as ye,h as Ze,ad as Xe}from"./index-261f9d22.js";import{q as et,T as Ve,d as ae,e as Le,s as _e,f as Be}from"./index-a3132f83.js";import{o as q,a as fe,e as tt,u as Ee,d as nt,i as ot}from"./useSlotProps-987deb9d.js";function je(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const it=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=it,Ue={disabled:!1};var st=function(t){return t.scrollTop},ue="unmounted",Y="exited",J="entering",re="entered",Ne="exiting",X=function(e){et(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=Y,n.appearStatus=J):l=re:o.unmountOnExit||o.mountOnEnter?l=ue:l=Y,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ue?{status:Y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==J&&s!==re&&(n=J):(s===J||s===re)&&(n=Ne)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===J){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this);s&&st(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Y&&this.setState({status:ue})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[me.findDOMNode(this),a],d=l[0],m=l[1],E=this.getTimeouts(),C=a?E.appear:E.enter;if(!i&&!s||Ue.disabled){this.safeSetState({status:re},function(){n.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:J},function(){n.props.onEntering(d,m),n.onTransitionEnd(C,function(){n.safeSetState({status:re},function(){n.props.onEntered(d,m)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:me.findDOMNode(this);if(!n||Ue.disabled){this.safeSetState({status:Y},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ne},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Y},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],m=l[1];this.props.addEndListener(d,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ue)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=G(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ve.Provider,{value:null},typeof s=="function"?s(i,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);X.contextType=Ve;X.propTypes={};function oe(){}X.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};X.UNMOUNTED=ue;X.EXITED=Y;X.ENTERING=J;X.ENTERED=re;X.EXITING=Ne;const Ye=X,Je=e=>e.scrollTop;function ge(e,t){var r,o;const{timeout:i,easing:n,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:s.transitionDelay}}function at(e){return xe("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lt=["className","component","elevation","square","variant"],ct=e=>{const{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return ye(n,at,i)},ut=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return g({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ae("#fff",He(t.elevation))}, ${Ae("#fff",He(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dt=c.forwardRef(function(t,r){const o=Pe({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,d=G(o,lt),m=g({},o,{component:n,elevation:s,square:a,variant:l}),E=ct(m);return A.jsx(ut,g({as:n,ownerState:m,className:ie(E.root,i),ref:r},d))}),ft=dt,pt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ht(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function vt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mt(e))}function Et(e){const t=[],r=[];return Array.from(e.querySelectorAll(pt)).forEach((o,i)=>{const n=ht(o);n===-1||!vt(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function gt(){return!0}function xt(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=Et,isEnabled:s=gt,open:a}=e,l=c.useRef(!1),d=c.useRef(null),m=c.useRef(null),E=c.useRef(null),C=c.useRef(null),N=c.useRef(!1),h=c.useRef(null),S=ae(t.ref,h),y=c.useRef(null);c.useEffect(()=>{!a||!h.current||(N.current=!r)},[r,a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current);return h.current.contains(u.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),N.current&&h.current.focus()),()=>{i||(E.current&&E.current.focus&&(l.current=!0,E.current.focus()),E.current=null)}},[a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current),x=R=>{y.current=R,!(o||!s()||R.key!=="Tab")&&u.activeElement===h.current&&R.shiftKey&&(l.current=!0,m.current&&m.current.focus())},b=()=>{const R=h.current;if(R===null)return;if(!u.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(u.activeElement)||o&&u.activeElement!==d.current&&u.activeElement!==m.current)return;if(u.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!N.current)return;let D=[];if((u.activeElement===d.current||u.activeElement===m.current)&&(D=n(h.current)),D.length>0){var _,$;const H=!!((_=y.current)!=null&&_.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=D[0],L=D[D.length-1];typeof O!="string"&&typeof L!="string"&&(H?L.focus():O.focus())}else R.focus()};u.addEventListener("focusin",b),u.addEventListener("keydown",x,!0);const M=setInterval(()=>{u.activeElement&&u.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(M),u.removeEventListener("focusin",b),u.removeEventListener("keydown",x,!0)}},[r,o,i,s,a,n]);const k=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0,C.current=u.target;const x=t.props.onFocus;x&&x(u)},I=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0};return A.jsxs(c.Fragment,{children:[A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:S,onFocus:k}),A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:m,"data-testid":"sentinelEnd"})]})}function bt(e){return typeof e=="function"?e():e}const Pt=c.forwardRef(function(t,r){const{children:o,container:i,disablePortal:n=!1}=t,[s,a]=c.useState(null),l=ae(c.isValidElement(o)?o.ref:null,r);if(Le(()=>{n||a(bt(i)||document.body)},[i,n]),Le(()=>{if(s&&!n)return _e(r,s),()=>{_e(r,null)}},[r,s,n]),n){if(c.isValidElement(o)){const d={ref:l};return c.cloneElement(o,d)}return A.jsx(c.Fragment,{children:o})}return A.jsx(c.Fragment,{children:s&&Ze.createPortal(o,s)})});function yt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function We(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function Tt(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function ze(e,t,r,o,i){const n=[t,r,...o];[].forEach.call(e.children,s=>{const a=n.indexOf(s)===-1,l=!Tt(s);a&&l&&de(s,i)})}function ke(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function Rt(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(yt(o)){const s=rt(q(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${We(o)+s}px`;const a=q(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${We(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=q(o).body;else{const s=o.parentElement,a=fe(o);n=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function kt(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class St{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const i=kt(r);ze(r,t.mount,t.modalRef,i,!0);const n=ke(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=ke(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[o];i.restore||(i.restore=Rt(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=ke(this.containers,s=>s.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&de(t.modalRef,r),ze(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=n.modals[n.modals.length-1];s.modalRef&&de(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ct(e){return typeof e=="function"?e():e}function Nt(e){return e?e.props.hasOwnProperty("in"):!1}const Mt=new St;function wt(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=Mt,closeAfterTransition:n=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:m,rootRef:E}=e,C=c.useRef({}),N=c.useRef(null),h=c.useRef(null),S=ae(h,E),[y,k]=c.useState(!m),I=Nt(l);let u=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(u=!1);const x=()=>q(N.current),b=()=>(C.current.modalRef=h.current,C.current.mount=N.current,C.current),M=()=>{i.mount(b(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Be(()=>{const p=Ct(t)||x().body;i.add(b(),p),h.current&&M()}),D=c.useCallback(()=>i.isTopModal(b()),[i]),_=Be(p=>{N.current=p,p&&(m&&D()?M():h.current&&de(h.current,u))}),$=c.useCallback(()=>{i.remove(b(),u)},[u,i]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{m?R():(!I||!n)&&$()},[m,$,I,n,R]);const H=p=>v=>{var F;(F=p.onKeyDown)==null||F.call(p,v),!(v.key!=="Escape"||v.which===229||!D())&&(r||(v.stopPropagation(),d&&d(v,"escapeKeyDown")))},O=p=>v=>{var F;(F=p.onClick)==null||F.call(p,v),v.target===v.currentTarget&&d&&d(v,"backdropClick")};return{getRootProps:(p={})=>{const v=tt(e);delete v.onTransitionEnter,delete v.onTransitionExited;const F=g({},v,p);return g({role:"presentation"},F,{onKeyDown:H(F),ref:S})},getBackdropProps:(p={})=>{const v=p;return g({"aria-hidden":!0},v,{onClick:O(v),open:m})},getTransitionProps:()=>{const p=()=>{k(!1),s&&s()},v=()=>{k(!0),a&&a(),n&&$()};return{onEnter:je(p,l==null?void 0:l.props.onEnter),onExited:je(v,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:_,isTopModal:D,exited:y,hasTransition:I}}const Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],It={entering:{opacity:1},entered:{opacity:1}},Dt=c.forwardRef(function(t,r){const o=Xe(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:d,onEnter:m,onEntered:E,onEntering:C,onExit:N,onExited:h,onExiting:S,style:y,timeout:k=i,TransitionComponent:I=Ye}=t,u=G(t,Ot),x=c.useRef(null),b=ae(x,a.ref,r),M=T=>f=>{if(T){const p=x.current;f===void 0?T(p):T(p,f)}},R=M(C),D=M((T,f)=>{Je(T);const p=ge({style:y,timeout:k,easing:l},{mode:"enter"});T.style.webkitTransition=o.transitions.create("opacity",p),T.style.transition=o.transitions.create("opacity",p),m&&m(T,f)}),_=M(E),$=M(S),H=M(T=>{const f=ge({style:y,timeout:k,easing:l},{mode:"exit"});T.style.webkitTransition=o.transitions.create("opacity",f),T.style.transition=o.transitions.create("opacity",f),N&&N(T)}),O=M(h),L=T=>{n&&n(x.current,T)};return A.jsx(I,g({appear:s,in:d,nodeRef:x,onEnter:D,onEntered:_,onEntering:R,onExit:H,onExited:O,onExiting:$,addEndListener:L,timeout:k},u,{children:(T,f)=>c.cloneElement(a,g({style:g({opacity:0,visibility:T==="exited"&&!d?"hidden":void 0},It[T],y,a.props.style),ref:b},f))}))}),$t=Dt;function Ft(e){return xe("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const At=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lt=e=>{const{classes:t,invisible:r}=e;return ye({root:["root",r&&"invisible"]},Ft,t)},_t=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Bt=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:m={},componentsProps:E={},invisible:C=!1,open:N,slotProps:h={},slots:S={},TransitionComponent:y=$t,transitionDuration:k}=s,I=G(s,At),u=g({},s,{component:d,invisible:C}),x=Lt(u),b=(o=h.root)!=null?o:E.root;return A.jsx(y,g({in:N,timeout:k},I,{children:A.jsx(_t,g({"aria-hidden":!0},b,{as:(i=(n=S.root)!=null?n:m.Root)!=null?i:d,className:ie(x.root,l,b==null?void 0:b.className),ownerState:g({},u,b==null?void 0:b.ownerState),classes:x,ref:r,children:a}))}))}),jt=Bt;function Ht(e){return xe("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Ut=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wt=e=>{const{open:t,exited:r,classes:o}=e;return ye({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ht,o)},zt=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kt=se(jt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gt=c.forwardRef(function(t,r){var o,i,n,s,a,l;const d=Pe({name:"MuiModal",props:t}),{BackdropComponent:m=Kt,BackdropProps:E,className:C,closeAfterTransition:N=!1,children:h,container:S,component:y,components:k={},componentsProps:I={},disableAutoFocus:u=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:M=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:_=!1,keepMounted:$=!1,onBackdropClick:H,open:O,slotProps:L,slots:T}=d,f=G(d,Ut),p=g({},d,{closeAfterTransition:N,disableAutoFocus:u,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:M,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:_,keepMounted:$}),{getRootProps:v,getBackdropProps:F,getTransitionProps:B,portalRef:z,isTopModal:pe,exited:U,hasTransition:he}=wt(g({},p,{rootRef:r})),V=g({},p,{exited:U}),K=Wt(V),Q={};if(h.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:P,onExited:w}=B();Q.onEnter=P,Q.onExited=w}const Z=(o=(i=T==null?void 0:T.root)!=null?i:k.Root)!=null?o:zt,le=(n=(s=T==null?void 0:T.backdrop)!=null?s:k.Backdrop)!=null?n:m,ce=(a=L==null?void 0:L.root)!=null?a:I.root,ee=(l=L==null?void 0:L.backdrop)!=null?l:I.backdrop,Te=Ee({elementType:Z,externalSlotProps:ce,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:r,as:y},ownerState:V,className:ie(C,ce==null?void 0:ce.className,K==null?void 0:K.root,!V.open&&V.exited&&(K==null?void 0:K.hidden))}),Re=Ee({elementType:le,externalSlotProps:ee,additionalProps:E,getSlotProps:P=>F(g({},P,{onClick:w=>{H&&H(w),P!=null&&P.onClick&&P.onClick(w)}})),className:ie(ee==null?void 0:ee.className,E==null?void 0:E.className,K==null?void 0:K.backdrop),ownerState:V});return!$&&!O&&(!he||U)?null:A.jsx(Pt,{ref:z,container:S,disablePortal:M,children:A.jsxs(Z,g({},Te,{children:[!_&&m?A.jsx(le,g({},Re)):null,A.jsx(xt,{disableEnforceFocus:x,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:pe,open:O,children:c.cloneElement(h,Q)})]}))})}),qt=Gt,Xt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Me(e){return`scale(${e}, ${e**2})`}const Vt={entering:{opacity:1,transform:Me(1)},entered:{opacity:1,transform:"none"}},Se=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qe=c.forwardRef(function(t,r){const{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:d,onEntering:m,onExit:E,onExited:C,onExiting:N,style:h,timeout:S="auto",TransitionComponent:y=Ye}=t,k=G(t,Xt),I=c.useRef(),u=c.useRef(),x=Xe(),b=c.useRef(null),M=ae(b,n.ref,r),R=f=>p=>{if(f){const v=b.current;p===void 0?f(v):f(v,p)}},D=R(m),_=R((f,p)=>{Je(f);const{duration:v,delay:F,easing:B}=ge({style:h,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=z):z=v,f.style.transition=[x.transitions.create("opacity",{duration:z,delay:F}),x.transitions.create("transform",{duration:Se?z:z*.666,delay:F,easing:B})].join(","),l&&l(f,p)}),$=R(d),H=R(N),O=R(f=>{const{duration:p,delay:v,easing:F}=ge({style:h,timeout:S,easing:s},{mode:"exit"});let B;S==="auto"?(B=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=B):B=p,f.style.transition=[x.transitions.create("opacity",{duration:B,delay:v}),x.transitions.create("transform",{duration:Se?B:B*.666,delay:Se?v:v||B*.333,easing:F})].join(","),f.style.opacity=0,f.style.transform=Me(.75),E&&E(f)}),L=R(C),T=f=>{S==="auto"&&(I.current=setTimeout(f,u.current||0)),o&&o(b.current,f)};return c.useEffect(()=>()=>{clearTimeout(I.current)},[]),A.jsx(y,g({appear:i,in:a,nodeRef:b,onEnter:_,onEntered:$,onEntering:D,onExit:O,onExited:L,onExiting:H,addEndListener:T,timeout:S==="auto"?null:S},k,{children:(f,p)=>c.cloneElement(n,g({style:g({opacity:0,transform:Me(.75),visibility:f==="exited"&&!a?"hidden":void 0},Vt[f],h,n.props.style),ref:M},p))}))});Qe.muiSupportAuto=!0;const Yt=Qe;function Jt(e){return xe("MuiPopover",e)}be("MuiPopover",["root","paper"]);const Qt=["onEntering"],Zt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],en=["slotProps"];function Ke(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ge(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ce(e){return typeof e=="function"?e():e}const tn=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},Jt,t)},nn=se(qt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),on=se(ft,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rn=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:E="anchorEl",children:C,className:N,container:h,elevation:S=8,marginThreshold:y=16,open:k,PaperProps:I={},slots:u,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:M=Yt,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:_=!1}=s,$=G(s.TransitionProps,Qt),H=G(s,Zt),O=(o=x==null?void 0:x.paper)!=null?o:I,L=c.useRef(),T=ae(L,O.ref),f=g({},s,{anchorOrigin:d,anchorReference:E,elevation:S,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:M,transitionDuration:R,TransitionProps:$}),p=tn(f),v=c.useCallback(()=>{if(E==="anchorPosition")return m;const P=Ce(l),j=(P&&P.nodeType===1?P:q(L.current).body).getBoundingClientRect();return{top:j.top+Ke(j,d.vertical),left:j.left+Ge(j,d.horizontal)}},[l,d.horizontal,d.vertical,m,E]),F=c.useCallback(P=>({vertical:Ke(P,b.vertical),horizontal:Ge(P,b.horizontal)}),[b.horizontal,b.vertical]),B=c.useCallback(P=>{const w={width:P.offsetWidth,height:P.offsetHeight},j=F(w);if(E==="none")return{top:null,left:null,transformOrigin:qe(j)};const we=v();let te=we.top-j.vertical,ne=we.left-j.horizontal;const Oe=te+w.height,Ie=ne+w.width,De=fe(Ce(l)),$e=De.innerHeight-y,Fe=De.innerWidth-y;if(y!==null&&te$e){const W=Oe-$e;te-=W,j.vertical+=W}if(y!==null&&neFe){const W=Ie-Fe;ne-=W,j.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:qe(j)}},[l,E,v,F,y]),[z,pe]=c.useState(k),U=c.useCallback(()=>{const P=L.current;if(!P)return;const w=B(P);w.top!==null&&(P.style.top=w.top),w.left!==null&&(P.style.left=w.left),P.style.transformOrigin=w.transformOrigin,pe(!0)},[B]);c.useEffect(()=>(_&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,_,U]);const he=(P,w)=>{D&&D(P,w),U()},V=()=>{pe(!1)};c.useEffect(()=>{k&&U()}),c.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),c.useEffect(()=>{if(!k)return;const P=nt(()=>{U()}),w=fe(l);return w.addEventListener("resize",P),()=>{P.clear(),w.removeEventListener("resize",P)}},[l,k,U]);let K=R;R==="auto"&&!M.muiSupportAuto&&(K=void 0);const Q=h||(l?q(Ce(l)).body:void 0),Z=(i=u==null?void 0:u.root)!=null?i:nn,le=(n=u==null?void 0:u.paper)!=null?n:on,ce=Ee({elementType:le,externalSlotProps:g({},O,{style:z?O.style:g({},O.style,{opacity:0})}),additionalProps:{elevation:S,ref:T},ownerState:f,className:ie(p.paper,O==null?void 0:O.className)}),ee=Ee({elementType:Z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:H,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:k},ownerState:f,className:ie(p.root,N)}),{slotProps:Te}=ee,Re=G(ee,en);return A.jsx(Z,g({},Re,!ot(Z)&&{slotProps:Te,disableScrollLock:_},{children:A.jsx(M,g({appear:!0,in:k,onEntering:he,onExited:V,timeout:K},$,{children:A.jsx(le,g({},ce,{children:C}))}))}))}),cn=rn;export{cn as P,Ye as T,ft as a,rt as b,on as c,Pt as d,ge as g,Je as r}; +import{m as me,a as G,R as ve,b as xe,g as be,s as se,_ as g,f as Ae,r as c,u as Pe,j as A,c as ie,d as ye,h as Ze,ad as Xe}from"./index-20ea28f6.js";import{q as et,T as Ve,d as ae,e as Le,s as _e,f as Be}from"./index-b0d8b87e.js";import{o as q,a as fe,e as tt,u as Ee,d as nt,i as ot}from"./useSlotProps-c721fa06.js";function je(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const it=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=it,Ue={disabled:!1};var st=function(t){return t.scrollTop},ue="unmounted",Y="exited",J="entering",re="entered",Ne="exiting",X=function(e){et(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=Y,n.appearStatus=J):l=re:o.unmountOnExit||o.mountOnEnter?l=ue:l=Y,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ue?{status:Y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==J&&s!==re&&(n=J):(s===J||s===re)&&(n=Ne)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===J){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this);s&&st(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Y&&this.setState({status:ue})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[me.findDOMNode(this),a],d=l[0],m=l[1],E=this.getTimeouts(),C=a?E.appear:E.enter;if(!i&&!s||Ue.disabled){this.safeSetState({status:re},function(){n.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:J},function(){n.props.onEntering(d,m),n.onTransitionEnd(C,function(){n.safeSetState({status:re},function(){n.props.onEntered(d,m)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:me.findDOMNode(this);if(!n||Ue.disabled){this.safeSetState({status:Y},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ne},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Y},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],m=l[1];this.props.addEndListener(d,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ue)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=G(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ve.Provider,{value:null},typeof s=="function"?s(i,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);X.contextType=Ve;X.propTypes={};function oe(){}X.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};X.UNMOUNTED=ue;X.EXITED=Y;X.ENTERING=J;X.ENTERED=re;X.EXITING=Ne;const Ye=X,Je=e=>e.scrollTop;function ge(e,t){var r,o;const{timeout:i,easing:n,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:s.transitionDelay}}function at(e){return xe("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lt=["className","component","elevation","square","variant"],ct=e=>{const{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return ye(n,at,i)},ut=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return g({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ae("#fff",He(t.elevation))}, ${Ae("#fff",He(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dt=c.forwardRef(function(t,r){const o=Pe({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,d=G(o,lt),m=g({},o,{component:n,elevation:s,square:a,variant:l}),E=ct(m);return A.jsx(ut,g({as:n,ownerState:m,className:ie(E.root,i),ref:r},d))}),ft=dt,pt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ht(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function vt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mt(e))}function Et(e){const t=[],r=[];return Array.from(e.querySelectorAll(pt)).forEach((o,i)=>{const n=ht(o);n===-1||!vt(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function gt(){return!0}function xt(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=Et,isEnabled:s=gt,open:a}=e,l=c.useRef(!1),d=c.useRef(null),m=c.useRef(null),E=c.useRef(null),C=c.useRef(null),N=c.useRef(!1),h=c.useRef(null),S=ae(t.ref,h),y=c.useRef(null);c.useEffect(()=>{!a||!h.current||(N.current=!r)},[r,a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current);return h.current.contains(u.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),N.current&&h.current.focus()),()=>{i||(E.current&&E.current.focus&&(l.current=!0,E.current.focus()),E.current=null)}},[a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current),x=R=>{y.current=R,!(o||!s()||R.key!=="Tab")&&u.activeElement===h.current&&R.shiftKey&&(l.current=!0,m.current&&m.current.focus())},b=()=>{const R=h.current;if(R===null)return;if(!u.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(u.activeElement)||o&&u.activeElement!==d.current&&u.activeElement!==m.current)return;if(u.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!N.current)return;let D=[];if((u.activeElement===d.current||u.activeElement===m.current)&&(D=n(h.current)),D.length>0){var _,$;const H=!!((_=y.current)!=null&&_.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=D[0],L=D[D.length-1];typeof O!="string"&&typeof L!="string"&&(H?L.focus():O.focus())}else R.focus()};u.addEventListener("focusin",b),u.addEventListener("keydown",x,!0);const M=setInterval(()=>{u.activeElement&&u.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(M),u.removeEventListener("focusin",b),u.removeEventListener("keydown",x,!0)}},[r,o,i,s,a,n]);const k=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0,C.current=u.target;const x=t.props.onFocus;x&&x(u)},I=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0};return A.jsxs(c.Fragment,{children:[A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:S,onFocus:k}),A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:m,"data-testid":"sentinelEnd"})]})}function bt(e){return typeof e=="function"?e():e}const Pt=c.forwardRef(function(t,r){const{children:o,container:i,disablePortal:n=!1}=t,[s,a]=c.useState(null),l=ae(c.isValidElement(o)?o.ref:null,r);if(Le(()=>{n||a(bt(i)||document.body)},[i,n]),Le(()=>{if(s&&!n)return _e(r,s),()=>{_e(r,null)}},[r,s,n]),n){if(c.isValidElement(o)){const d={ref:l};return c.cloneElement(o,d)}return A.jsx(c.Fragment,{children:o})}return A.jsx(c.Fragment,{children:s&&Ze.createPortal(o,s)})});function yt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function We(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function Tt(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function ze(e,t,r,o,i){const n=[t,r,...o];[].forEach.call(e.children,s=>{const a=n.indexOf(s)===-1,l=!Tt(s);a&&l&&de(s,i)})}function ke(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function Rt(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(yt(o)){const s=rt(q(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${We(o)+s}px`;const a=q(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${We(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=q(o).body;else{const s=o.parentElement,a=fe(o);n=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function kt(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class St{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const i=kt(r);ze(r,t.mount,t.modalRef,i,!0);const n=ke(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=ke(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[o];i.restore||(i.restore=Rt(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=ke(this.containers,s=>s.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&de(t.modalRef,r),ze(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=n.modals[n.modals.length-1];s.modalRef&&de(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ct(e){return typeof e=="function"?e():e}function Nt(e){return e?e.props.hasOwnProperty("in"):!1}const Mt=new St;function wt(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=Mt,closeAfterTransition:n=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:m,rootRef:E}=e,C=c.useRef({}),N=c.useRef(null),h=c.useRef(null),S=ae(h,E),[y,k]=c.useState(!m),I=Nt(l);let u=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(u=!1);const x=()=>q(N.current),b=()=>(C.current.modalRef=h.current,C.current.mount=N.current,C.current),M=()=>{i.mount(b(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Be(()=>{const p=Ct(t)||x().body;i.add(b(),p),h.current&&M()}),D=c.useCallback(()=>i.isTopModal(b()),[i]),_=Be(p=>{N.current=p,p&&(m&&D()?M():h.current&&de(h.current,u))}),$=c.useCallback(()=>{i.remove(b(),u)},[u,i]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{m?R():(!I||!n)&&$()},[m,$,I,n,R]);const H=p=>v=>{var F;(F=p.onKeyDown)==null||F.call(p,v),!(v.key!=="Escape"||v.which===229||!D())&&(r||(v.stopPropagation(),d&&d(v,"escapeKeyDown")))},O=p=>v=>{var F;(F=p.onClick)==null||F.call(p,v),v.target===v.currentTarget&&d&&d(v,"backdropClick")};return{getRootProps:(p={})=>{const v=tt(e);delete v.onTransitionEnter,delete v.onTransitionExited;const F=g({},v,p);return g({role:"presentation"},F,{onKeyDown:H(F),ref:S})},getBackdropProps:(p={})=>{const v=p;return g({"aria-hidden":!0},v,{onClick:O(v),open:m})},getTransitionProps:()=>{const p=()=>{k(!1),s&&s()},v=()=>{k(!0),a&&a(),n&&$()};return{onEnter:je(p,l==null?void 0:l.props.onEnter),onExited:je(v,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:_,isTopModal:D,exited:y,hasTransition:I}}const Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],It={entering:{opacity:1},entered:{opacity:1}},Dt=c.forwardRef(function(t,r){const o=Xe(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:d,onEnter:m,onEntered:E,onEntering:C,onExit:N,onExited:h,onExiting:S,style:y,timeout:k=i,TransitionComponent:I=Ye}=t,u=G(t,Ot),x=c.useRef(null),b=ae(x,a.ref,r),M=T=>f=>{if(T){const p=x.current;f===void 0?T(p):T(p,f)}},R=M(C),D=M((T,f)=>{Je(T);const p=ge({style:y,timeout:k,easing:l},{mode:"enter"});T.style.webkitTransition=o.transitions.create("opacity",p),T.style.transition=o.transitions.create("opacity",p),m&&m(T,f)}),_=M(E),$=M(S),H=M(T=>{const f=ge({style:y,timeout:k,easing:l},{mode:"exit"});T.style.webkitTransition=o.transitions.create("opacity",f),T.style.transition=o.transitions.create("opacity",f),N&&N(T)}),O=M(h),L=T=>{n&&n(x.current,T)};return A.jsx(I,g({appear:s,in:d,nodeRef:x,onEnter:D,onEntered:_,onEntering:R,onExit:H,onExited:O,onExiting:$,addEndListener:L,timeout:k},u,{children:(T,f)=>c.cloneElement(a,g({style:g({opacity:0,visibility:T==="exited"&&!d?"hidden":void 0},It[T],y,a.props.style),ref:b},f))}))}),$t=Dt;function Ft(e){return xe("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const At=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lt=e=>{const{classes:t,invisible:r}=e;return ye({root:["root",r&&"invisible"]},Ft,t)},_t=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Bt=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:m={},componentsProps:E={},invisible:C=!1,open:N,slotProps:h={},slots:S={},TransitionComponent:y=$t,transitionDuration:k}=s,I=G(s,At),u=g({},s,{component:d,invisible:C}),x=Lt(u),b=(o=h.root)!=null?o:E.root;return A.jsx(y,g({in:N,timeout:k},I,{children:A.jsx(_t,g({"aria-hidden":!0},b,{as:(i=(n=S.root)!=null?n:m.Root)!=null?i:d,className:ie(x.root,l,b==null?void 0:b.className),ownerState:g({},u,b==null?void 0:b.ownerState),classes:x,ref:r,children:a}))}))}),jt=Bt;function Ht(e){return xe("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Ut=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wt=e=>{const{open:t,exited:r,classes:o}=e;return ye({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ht,o)},zt=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kt=se(jt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gt=c.forwardRef(function(t,r){var o,i,n,s,a,l;const d=Pe({name:"MuiModal",props:t}),{BackdropComponent:m=Kt,BackdropProps:E,className:C,closeAfterTransition:N=!1,children:h,container:S,component:y,components:k={},componentsProps:I={},disableAutoFocus:u=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:M=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:_=!1,keepMounted:$=!1,onBackdropClick:H,open:O,slotProps:L,slots:T}=d,f=G(d,Ut),p=g({},d,{closeAfterTransition:N,disableAutoFocus:u,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:M,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:_,keepMounted:$}),{getRootProps:v,getBackdropProps:F,getTransitionProps:B,portalRef:z,isTopModal:pe,exited:U,hasTransition:he}=wt(g({},p,{rootRef:r})),V=g({},p,{exited:U}),K=Wt(V),Q={};if(h.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:P,onExited:w}=B();Q.onEnter=P,Q.onExited=w}const Z=(o=(i=T==null?void 0:T.root)!=null?i:k.Root)!=null?o:zt,le=(n=(s=T==null?void 0:T.backdrop)!=null?s:k.Backdrop)!=null?n:m,ce=(a=L==null?void 0:L.root)!=null?a:I.root,ee=(l=L==null?void 0:L.backdrop)!=null?l:I.backdrop,Te=Ee({elementType:Z,externalSlotProps:ce,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:r,as:y},ownerState:V,className:ie(C,ce==null?void 0:ce.className,K==null?void 0:K.root,!V.open&&V.exited&&(K==null?void 0:K.hidden))}),Re=Ee({elementType:le,externalSlotProps:ee,additionalProps:E,getSlotProps:P=>F(g({},P,{onClick:w=>{H&&H(w),P!=null&&P.onClick&&P.onClick(w)}})),className:ie(ee==null?void 0:ee.className,E==null?void 0:E.className,K==null?void 0:K.backdrop),ownerState:V});return!$&&!O&&(!he||U)?null:A.jsx(Pt,{ref:z,container:S,disablePortal:M,children:A.jsxs(Z,g({},Te,{children:[!_&&m?A.jsx(le,g({},Re)):null,A.jsx(xt,{disableEnforceFocus:x,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:pe,open:O,children:c.cloneElement(h,Q)})]}))})}),qt=Gt,Xt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Me(e){return`scale(${e}, ${e**2})`}const Vt={entering:{opacity:1,transform:Me(1)},entered:{opacity:1,transform:"none"}},Se=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qe=c.forwardRef(function(t,r){const{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:d,onEntering:m,onExit:E,onExited:C,onExiting:N,style:h,timeout:S="auto",TransitionComponent:y=Ye}=t,k=G(t,Xt),I=c.useRef(),u=c.useRef(),x=Xe(),b=c.useRef(null),M=ae(b,n.ref,r),R=f=>p=>{if(f){const v=b.current;p===void 0?f(v):f(v,p)}},D=R(m),_=R((f,p)=>{Je(f);const{duration:v,delay:F,easing:B}=ge({style:h,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=z):z=v,f.style.transition=[x.transitions.create("opacity",{duration:z,delay:F}),x.transitions.create("transform",{duration:Se?z:z*.666,delay:F,easing:B})].join(","),l&&l(f,p)}),$=R(d),H=R(N),O=R(f=>{const{duration:p,delay:v,easing:F}=ge({style:h,timeout:S,easing:s},{mode:"exit"});let B;S==="auto"?(B=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=B):B=p,f.style.transition=[x.transitions.create("opacity",{duration:B,delay:v}),x.transitions.create("transform",{duration:Se?B:B*.666,delay:Se?v:v||B*.333,easing:F})].join(","),f.style.opacity=0,f.style.transform=Me(.75),E&&E(f)}),L=R(C),T=f=>{S==="auto"&&(I.current=setTimeout(f,u.current||0)),o&&o(b.current,f)};return c.useEffect(()=>()=>{clearTimeout(I.current)},[]),A.jsx(y,g({appear:i,in:a,nodeRef:b,onEnter:_,onEntered:$,onEntering:D,onExit:O,onExited:L,onExiting:H,addEndListener:T,timeout:S==="auto"?null:S},k,{children:(f,p)=>c.cloneElement(n,g({style:g({opacity:0,transform:Me(.75),visibility:f==="exited"&&!a?"hidden":void 0},Vt[f],h,n.props.style),ref:M},p))}))});Qe.muiSupportAuto=!0;const Yt=Qe;function Jt(e){return xe("MuiPopover",e)}be("MuiPopover",["root","paper"]);const Qt=["onEntering"],Zt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],en=["slotProps"];function Ke(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ge(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ce(e){return typeof e=="function"?e():e}const tn=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},Jt,t)},nn=se(qt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),on=se(ft,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rn=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:E="anchorEl",children:C,className:N,container:h,elevation:S=8,marginThreshold:y=16,open:k,PaperProps:I={},slots:u,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:M=Yt,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:_=!1}=s,$=G(s.TransitionProps,Qt),H=G(s,Zt),O=(o=x==null?void 0:x.paper)!=null?o:I,L=c.useRef(),T=ae(L,O.ref),f=g({},s,{anchorOrigin:d,anchorReference:E,elevation:S,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:M,transitionDuration:R,TransitionProps:$}),p=tn(f),v=c.useCallback(()=>{if(E==="anchorPosition")return m;const P=Ce(l),j=(P&&P.nodeType===1?P:q(L.current).body).getBoundingClientRect();return{top:j.top+Ke(j,d.vertical),left:j.left+Ge(j,d.horizontal)}},[l,d.horizontal,d.vertical,m,E]),F=c.useCallback(P=>({vertical:Ke(P,b.vertical),horizontal:Ge(P,b.horizontal)}),[b.horizontal,b.vertical]),B=c.useCallback(P=>{const w={width:P.offsetWidth,height:P.offsetHeight},j=F(w);if(E==="none")return{top:null,left:null,transformOrigin:qe(j)};const we=v();let te=we.top-j.vertical,ne=we.left-j.horizontal;const Oe=te+w.height,Ie=ne+w.width,De=fe(Ce(l)),$e=De.innerHeight-y,Fe=De.innerWidth-y;if(y!==null&&te$e){const W=Oe-$e;te-=W,j.vertical+=W}if(y!==null&&neFe){const W=Ie-Fe;ne-=W,j.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:qe(j)}},[l,E,v,F,y]),[z,pe]=c.useState(k),U=c.useCallback(()=>{const P=L.current;if(!P)return;const w=B(P);w.top!==null&&(P.style.top=w.top),w.left!==null&&(P.style.left=w.left),P.style.transformOrigin=w.transformOrigin,pe(!0)},[B]);c.useEffect(()=>(_&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,_,U]);const he=(P,w)=>{D&&D(P,w),U()},V=()=>{pe(!1)};c.useEffect(()=>{k&&U()}),c.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),c.useEffect(()=>{if(!k)return;const P=nt(()=>{U()}),w=fe(l);return w.addEventListener("resize",P),()=>{P.clear(),w.removeEventListener("resize",P)}},[l,k,U]);let K=R;R==="auto"&&!M.muiSupportAuto&&(K=void 0);const Q=h||(l?q(Ce(l)).body:void 0),Z=(i=u==null?void 0:u.root)!=null?i:nn,le=(n=u==null?void 0:u.paper)!=null?n:on,ce=Ee({elementType:le,externalSlotProps:g({},O,{style:z?O.style:g({},O.style,{opacity:0})}),additionalProps:{elevation:S,ref:T},ownerState:f,className:ie(p.paper,O==null?void 0:O.className)}),ee=Ee({elementType:Z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:H,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:k},ownerState:f,className:ie(p.root,N)}),{slotProps:Te}=ee,Re=G(ee,en);return A.jsx(Z,g({},Re,!ot(Z)&&{slotProps:Te,disableScrollLock:_},{children:A.jsx(M,g({appear:!0,in:k,onEntering:he,onExited:V,timeout:K},$,{children:A.jsx(le,g({},ce,{children:C}))}))}))}),cn=rn;export{cn as P,Ye as T,ft as a,rt as b,on as c,Pt as d,ge as g,Je as r}; diff --git a/build/assets/Preview-8e1341ba.js b/build/assets/Preview-0ec8e915.js similarity index 97% rename from build/assets/Preview-8e1341ba.js rename to build/assets/Preview-0ec8e915.js index 1aaebfe71..373d27a1b 100644 --- a/build/assets/Preview-8e1341ba.js +++ b/build/assets/Preview-0ec8e915.js @@ -1 +1 @@ -import{n as y,r as b}from"./index-261f9d22.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; +import{n as y,r as b}from"./index-20ea28f6.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; diff --git a/build/assets/SearchIcon-f71ea369.js b/build/assets/SearchIcon-c25aae9d.js similarity index 96% rename from build/assets/SearchIcon-f71ea369.js rename to build/assets/SearchIcon-c25aae9d.js index ede0570a4..a44ac3907 100644 --- a/build/assets/SearchIcon-f71ea369.js +++ b/build/assets/SearchIcon-c25aae9d.js @@ -1 +1 @@ -import{b as T,g as B,s as M,e as C,_ as s,r as W,u as j,a as w,j as p,c as P,d as R}from"./index-261f9d22.js";import{e as L}from"./Stack-4e5cf8f3.js";function N(r){return T("MuiTypography",r)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const U=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],_=r=>{const{align:t,gutterBottom:a,noWrap:n,paragraph:e,variant:o,classes:h}=r,i={root:["root",o,r.align!=="inherit"&&`align${C(t)}`,a&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return R(i,N,h)},$=M("span",{name:"MuiTypography",slot:"Root",overridesResolver:(r,t)=>{const{ownerState:a}=r;return[t.root,a.variant&&t[a.variant],a.align!=="inherit"&&t[`align${C(a.align)}`],a.noWrap&&t.noWrap,a.gutterBottom&&t.gutterBottom,a.paragraph&&t.paragraph]}})(({theme:r,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&r.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},E={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Z=r=>E[r]||r,z=W.forwardRef(function(t,a){const n=j({props:t,name:"MuiTypography"}),e=Z(n.color),o=L(s({},n,{color:e})),{align:h="inherit",className:i,component:l,gutterBottom:d=!1,noWrap:x=!1,paragraph:c=!1,variant:g="body1",variantMapping:m=u}=o,f=w(o,U),y=s({},o,{align:h,color:e,className:i,component:l,gutterBottom:d,noWrap:x,paragraph:c,variant:g,variantMapping:m}),v=l||(c?"p":m[g]||u[g])||"span",b=_(y);return p.jsx($,s({as:v,ref:a,ownerState:y,className:P(b.root,i)},f))}),I=z,J=r=>p.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("g",{id:"Property 1=Normal",children:p.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})});export{J as S,I as T}; +import{b as T,g as B,s as M,e as C,_ as s,r as W,u as j,a as w,j as p,c as P,d as R}from"./index-20ea28f6.js";import{e as L}from"./Stack-72055e8f.js";function N(r){return T("MuiTypography",r)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const U=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],_=r=>{const{align:t,gutterBottom:a,noWrap:n,paragraph:e,variant:o,classes:h}=r,i={root:["root",o,r.align!=="inherit"&&`align${C(t)}`,a&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return R(i,N,h)},$=M("span",{name:"MuiTypography",slot:"Root",overridesResolver:(r,t)=>{const{ownerState:a}=r;return[t.root,a.variant&&t[a.variant],a.align!=="inherit"&&t[`align${C(a.align)}`],a.noWrap&&t.noWrap,a.gutterBottom&&t.gutterBottom,a.paragraph&&t.paragraph]}})(({theme:r,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&r.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},E={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Z=r=>E[r]||r,z=W.forwardRef(function(t,a){const n=j({props:t,name:"MuiTypography"}),e=Z(n.color),o=L(s({},n,{color:e})),{align:h="inherit",className:i,component:l,gutterBottom:d=!1,noWrap:x=!1,paragraph:c=!1,variant:g="body1",variantMapping:m=u}=o,f=w(o,U),y=s({},o,{align:h,color:e,className:i,component:l,gutterBottom:d,noWrap:x,paragraph:c,variant:g,variantMapping:m}),v=l||(c?"p":m[g]||u[g])||"span",b=_(y);return p.jsx($,s({as:v,ref:a,ownerState:y,className:P(b.root,i)},f))}),I=z,J=r=>p.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("g",{id:"Property 1=Normal",children:p.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})});export{J as S,I as T}; diff --git a/build/assets/Skeleton-4db3660e.js b/build/assets/Skeleton-1413bdb9.js similarity index 97% rename from build/assets/Skeleton-4db3660e.js rename to build/assets/Skeleton-1413bdb9.js index 9b541f1ca..b976efc1c 100644 --- a/build/assets/Skeleton-4db3660e.js +++ b/build/assets/Skeleton-1413bdb9.js @@ -1,4 +1,4 @@ -import{b as x,g as y,k as b,s as R,_ as o,f as _,bm as u,r as S,u as $,a as U,j as M,c as j,d as A}from"./index-261f9d22.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` +import{b as x,g as y,k as b,s as R,_ as o,f as _,bm as u,r as S,u as $,a as U,j as M,c as j,d as A}from"./index-20ea28f6.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-da30a779.js b/build/assets/SoundCloud-cb922c73.js similarity index 95% rename from build/assets/SoundCloud-da30a779.js rename to build/assets/SoundCloud-cb922c73.js index 723e56999..5310555e1 100644 --- a/build/assets/SoundCloud-da30a779.js +++ b/build/assets/SoundCloud-cb922c73.js @@ -1 +1 @@ -import{n as P,r as g}from"./index-261f9d22.js";import{u as b,p as v}from"./index-bac9adcb.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"fractionLoaded",null),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),n(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,a=>{this.currentTime=a.currentPosition/1e3,this.fractionLoaded=a.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,a=>this.props.onError(a))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(a=>{this.duration=a/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}n(u,"displayName","SoundCloud");n(u,"canPlay",M.canPlay.soundcloud);n(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{n as P,r as g}from"./index-20ea28f6.js";import{u as b,p as v}from"./index-d4895025.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"fractionLoaded",null),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),n(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,a=>{this.currentTime=a.currentPosition/1e3,this.fractionLoaded=a.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,a=>this.props.onError(a))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(a=>{this.duration=a/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}n(u,"displayName","SoundCloud");n(u,"canPlay",M.canPlay.soundcloud);n(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Stack-4e5cf8f3.js b/build/assets/Stack-72055e8f.js similarity index 99% rename from build/assets/Stack-4e5cf8f3.js rename to build/assets/Stack-72055e8f.js index 1c746b645..f61220df3 100644 --- a/build/assets/Stack-4e5cf8f3.js +++ b/build/assets/Stack-72055e8f.js @@ -1 +1 @@ -import{r as E,a as ae,_ as T,bE as Tt,bF as Mt,bG as Bt,bH as Ft,bI as Wt,bp as Qe,bo as Ae,bJ as Lt,bD as Vt,bK as Nt,j as Q,bL as Ze,d as De,b as Te,g as vt,s as Me,bM as Ht,u as Be,e as mt,c as Ut}from"./index-261f9d22.js";import{o as et,u as It}from"./useSlotProps-987deb9d.js";import{d as qt}from"./Popover-548ea313.js";import{d as tt,e as rt}from"./index-a3132f83.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function Vo({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const zt=["sx"],Xt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tt;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Yt(e){const{sx:t}=e,r=ae(e,zt),{systemProps:o,otherProps:n}=Xt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Mt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function ht(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function er(e){return Wt({props:e,name:"MuiStack",defaultTheme:Qt})}function tr(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],or=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Qe({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Lt(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=Vt(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rr(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Nt(t.breakpoints,r),r};function nr(e={}){const{createStyledComponent:t=Zt,useThemeProps:r=er,componentName:o="MuiStack"}=e,n=()=>De({root:["root"]},i=>Te(o,i),{}),a=t(or);return E.forwardRef(function(i,f){const l=r(i),v=Yt(l),{component:h="div",direction:u="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,Kt),p={direction:u,spacing:x,useFlexGap:P},g=n();return Q.jsx(a,T({as:h,ownerState:p,ref:f,className:Gt(g.root,w)},b,{children:d?tr(m,d):m}))})}const ar={disableDefaultClasses:!1},ir=E.createContext(ar);function sr(e){const{disableDefaultClasses:t}=E.useContext(ir);return r=>t?"":e(r)}var B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,N,H,F],te="start",pe="end",lr="clippingParents",gt="viewport",le="popper",cr="reference",ot=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+pe])},[]),yt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+pe])},[]),fr="beforeRead",pr="read",ur="afterRead",dr="beforeMain",vr="main",mr="afterMain",hr="beforeWrite",gr="write",yr="afterWrite",br=[fr,pr,ur,dr,vr,mr,hr,gr,yr];function I(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!V(a)||!I(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function wr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!V(n)||!I(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Or={name:"applyStyles",enabled:!0,phase:"write",fn:xr,effect:wr,requires:["computeStyles"]};function U(e){return e.split("-")[0]}var K=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function bt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&V(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Z(e)?W(e):window,s=c.visualViewport,i=!bt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Le(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function xt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Pr(e){return["table","td","th"].indexOf(I(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return I(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function nt(e){return!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);V(n)&&["html","body"].indexOf(I(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=nt(e);r&&Pr(r)&&q(r).position==="static";)r=nt(r);return r&&(I(r)==="html"||I(r)==="body"&&q(r).position==="static")?t:r||Er(e)||t}function Ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function Cr(e,t,r){var o=ce(e,t,r);return o>r?r:o}function wt(){return{top:0,right:0,bottom:0,left:0}}function Ot(e){return Object.assign({},wt(),e)}function Pt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Rr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ot(typeof t!="number"?t:Pt(t,de))};function Ar(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=U(r.placement),i=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Le(a),u=i==="y"?B:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,p=v[u],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(p,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function Sr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||xt(t.elements.popper,n)&&(t.elements.arrow=n))}const $r={name:"arrow",enabled:!0,phase:"main",fn:Ar,effect:Sr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var jr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function at(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,u=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:u,y:d}):{x:u,y:d};u=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,p=B,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===B||(n===F||n===H)&&a===pe){p=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===B||n===N)&&a===pe){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];u-=R-o.width,u*=i?1:-1}}var $=Object.assign({position:s},f&&jr),D=l===!0?kr({x:u,y:d},W(r)):{x:u,y:d};if(u=D.x,d=D.y,i){var S;return Object.assign({},$,(S={},S[p]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[p]=P?d+"px":"",t[b]=w?u+"px":"",t.transform="",t))}function Dr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:U(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,at(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,at(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Tr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dr,data:{}};var be={passive:!0};function Mr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,data:{}};var Fr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Fr[t]})}var Wr={start:"end",end:"start"};function it(e){return e.replace(/start|end/g,function(t){return Wr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(Y(e)).left+Ne(e).scrollLeft}function Lr(e,t){var r=W(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=bt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Vr(e){var t,r=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=K(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=K(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ue(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Et(e){return["html","body","#document"].indexOf(I(e))>=0?e.ownerDocument.body:V(e)&&Ue(e)?e:Et(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Et(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ue(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function je(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function st(e,t,r){return t===gt?je(Lr(e,r)):Z(t)?Nr(t,r):je(Vr(Y(e)))}function Hr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&xt(n,o)&&I(n)!=="body"}):[]}function Ur(e,t,r,o){var n=t==="clippingParents"?Hr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=st(e,f,o);return i.top=K(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=K(l.left,i.left),i},st(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ct(e){var t=e.reference,r=e.element,o=e.placement,n=o?U(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Ve(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case pe:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function ue(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?lr:s,f=r.rootBoundary,l=f===void 0?gt:f,v=r.elementContext,h=v===void 0?le:v,u=r.altBoundary,x=u===void 0?!1:u,d=r.padding,m=d===void 0?0:d,w=Ot(typeof m!="number"?m:Pt(m,de)),P=h===le?cr:le,b=e.rects.popper,p=e.elements[x?P:h],g=Ur(Z(p)?p:p.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=Ct({reference:y,element:b,strategy:"absolute",placement:n}),A=je(Object.assign({},b,O)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var D=$[n];Object.keys(R).forEach(function(S){var k=[H,N].indexOf(S)>=0?1:-1,L=[B,N].indexOf(S)>=0?"y":"x";R[S]+=D[L]*k})}return R}function Ir(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?yt:i,l=ne(o),v=l?s?ot:ot.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var u=h.reduce(function(x,d){return x[d]=ue(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[U(d)],x},{});return Object.keys(u).sort(function(x,d){return u[x]-u[d]})}function qr(e){if(U(e)===Fe)return[];var t=xe(e);return[it(e),t,it(t)]}function zr(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,u=r.flipVariations,x=u===void 0?!0:u,d=r.allowedAutoPlacements,m=t.options.placement,w=U(m),P=w===m,b=i||(P||!x?[xe(m)]:qr(m)),p=[m].concat(b).reduce(function(ee,X){return ee.concat(U(X)===Fe?Ir(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,L=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=k?S?H:F:S?N:B;g[L]>y[L]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[M]<=0,j[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Xr={name:"flip",enabled:!0,phase:"main",fn:zr,requiresIfExists:["offset"],data:{_skip:!1}};function lt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ct(e){return[B,H,N,F].some(function(t){return e[t]>=0})}function Yr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),i=lt(c,o),f=lt(s,n,a),l=ct(i),v=ct(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Gr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yr};function _r(e,t,r){var o=U(e),n=[F,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function Jr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=yt.reduce(function(l,v){return l[v]=_r(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const Kr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jr};function Qr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ct({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Zr={name:"popperOffsets",enabled:!0,phase:"read",fn:Qr,data:{}};function eo(e){return e==="x"?"y":"x"}function to(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,u=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=ue(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=U(t.placement),P=ne(t.placement),b=!P,p=Ve(w),g=eo(p),y=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(y){if(a){var S,k=p==="y"?B:F,L=p==="y"?N:H,j=p==="y"?"height":"width",M=y[p],z=M+m[k],G=M-m[L],me=u?-A[j]/2:0,Pe=P===te?O[j]:A[j],ie=P===te?-A[j]:-O[j],he=t.elements.arrow,ee=u&&he?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=X[k],ge=X[L],_=ce(0,O[j],ee[j]),Ee=b?O[j]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,At=b?-O[j]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),St=Ce?p==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ie=(S=$==null?void 0:$[p])!=null?S:0,$t=M+Ee-Ie-St,jt=M+At-Ie,qe=ce(u?we(z,$t):z,M,u?K(G,jt):G);y[p]=qe,D[p]=qe-M}if(s){var ze,kt=p==="x"?B:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[kt],Ye=J-m[Dt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-O[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+O[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=u&&Re?Cr(_e,J,Je):ce(u?_e:Xe,J,u?Je:Ye);y[g]=Ke,D[g]=Ke-J}t.modifiersData[o]=D}}const ro={name:"preventOverflow",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"]};function oo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function no(e){return e===W(e)||!V(e)?Ne(e):oo(e)}function ao(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function io(e,t,r){r===void 0&&(r=!1);var o=V(t),n=V(t)&&ao(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((I(t)!=="body"||Ue(a))&&(s=no(t)),V(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function so(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function lo(e){var t=so(e);return br.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function co(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var ft={placement:"bottom",modifiers:[],strategy:"absolute"};function pt(){for(var e=arguments.length,t=new Array(e),r=0;rDe({root:["root"]},sr(mo)),wo={},Oo=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:u={},slots:x={},TransitionProps:d}=t,m=ae(t,ho),w=E.useRef(null),P=tt(w,r),b=E.useRef(null),p=tt(b,h),g=E.useRef(p);rt(()=>{g.current=p},[p]),E.useImperativeHandle(h,()=>b.current,[]);const y=yo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(ke(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(ke(n))},[n]),rt(()=>{if(!C||!f)return;const L=z=>{A(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const M=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(M),()=>{M.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const D=xo(),S=(o=x.root)!=null?o:"div",k=It({elementType:S,externalSlotProps:u.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:D.root});return Q.jsx(S,T({},k,{children:typeof a=="function"?a($):a}))}),Po=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=wo,popperRef:u,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,go),[b,p]=E.useState(!0),g=()=>{p(!1)},y=()=>{p(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=ke(o);O=R&&bo(R)?et(R).body:et(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return Q.jsx(qt,{disablePortal:s,container:O,children:Q.jsx(Oo,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:u,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),Eo=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Co=Me(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=Ht(),a=Be({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:p}=a,g=ae(a,Eo),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return Q.jsx(Co,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:p??f},O,{ref:r}))}),No=Ro;function Ho({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const Ao=E.createContext(void 0),Rt=Ao;function Uo(){return E.useContext(Rt)}function ut(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function dt(e,t=!1){return e&&(ut(e.value)&&e.value!==""||t&&ut(e.defaultValue)&&e.defaultValue!=="")}function So(e){return e.startAdornment}function $o(e){return Te("MuiFormControl",e)}vt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const jo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ko=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${mt(r)}`,o&&"fullWidth"]};return De(n,$o,t)},Do=Me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${mt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),To=E.forwardRef(function(t,r){const o=Be({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:u="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,jo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:u,required:x,size:d,variant:m}),b=ko(P),[p,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{if(!Se(k,["Input","Select"]))return;const L=Se(k,["Select"])?k.props.input:k;L&&So(L.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{Se(k,["Input","Select"])&&(dt(k.props,!0)||dt(k.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const D=E.useMemo(()=>({adornedStart:p,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[p,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(Rt.Provider,{value:D,children:Q.jsx(Do,T({as:s,ownerState:P,className:Ut(b.root,a),ref:r},w,{children:n}))})}),Io=To,Mo=nr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),qo=Mo;export{Io as F,No as P,qo as S,Uo as a,Rt as b,Yt as e,Ho as f,dt as i,Vo as u}; +import{r as E,a as ae,_ as T,bE as Tt,bF as Mt,bG as Bt,bH as Ft,bI as Wt,bp as Qe,bo as Ae,bJ as Lt,bD as Vt,bK as Nt,j as Q,bL as Ze,d as De,b as Te,g as vt,s as Me,bM as Ht,u as Be,e as mt,c as Ut}from"./index-20ea28f6.js";import{o as et,u as It}from"./useSlotProps-c721fa06.js";import{d as qt}from"./Popover-bf44d96f.js";import{d as tt,e as rt}from"./index-b0d8b87e.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function Vo({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const zt=["sx"],Xt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tt;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Yt(e){const{sx:t}=e,r=ae(e,zt),{systemProps:o,otherProps:n}=Xt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Mt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function ht(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function er(e){return Wt({props:e,name:"MuiStack",defaultTheme:Qt})}function tr(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],or=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Qe({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Lt(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=Vt(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rr(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Nt(t.breakpoints,r),r};function nr(e={}){const{createStyledComponent:t=Zt,useThemeProps:r=er,componentName:o="MuiStack"}=e,n=()=>De({root:["root"]},i=>Te(o,i),{}),a=t(or);return E.forwardRef(function(i,f){const l=r(i),v=Yt(l),{component:h="div",direction:u="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,Kt),p={direction:u,spacing:x,useFlexGap:P},g=n();return Q.jsx(a,T({as:h,ownerState:p,ref:f,className:Gt(g.root,w)},b,{children:d?tr(m,d):m}))})}const ar={disableDefaultClasses:!1},ir=E.createContext(ar);function sr(e){const{disableDefaultClasses:t}=E.useContext(ir);return r=>t?"":e(r)}var B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,N,H,F],te="start",pe="end",lr="clippingParents",gt="viewport",le="popper",cr="reference",ot=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+pe])},[]),yt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+pe])},[]),fr="beforeRead",pr="read",ur="afterRead",dr="beforeMain",vr="main",mr="afterMain",hr="beforeWrite",gr="write",yr="afterWrite",br=[fr,pr,ur,dr,vr,mr,hr,gr,yr];function I(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!V(a)||!I(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function wr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!V(n)||!I(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Or={name:"applyStyles",enabled:!0,phase:"write",fn:xr,effect:wr,requires:["computeStyles"]};function U(e){return e.split("-")[0]}var K=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function bt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&V(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Z(e)?W(e):window,s=c.visualViewport,i=!bt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Le(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function xt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Pr(e){return["table","td","th"].indexOf(I(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return I(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function nt(e){return!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);V(n)&&["html","body"].indexOf(I(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=nt(e);r&&Pr(r)&&q(r).position==="static";)r=nt(r);return r&&(I(r)==="html"||I(r)==="body"&&q(r).position==="static")?t:r||Er(e)||t}function Ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function Cr(e,t,r){var o=ce(e,t,r);return o>r?r:o}function wt(){return{top:0,right:0,bottom:0,left:0}}function Ot(e){return Object.assign({},wt(),e)}function Pt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Rr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ot(typeof t!="number"?t:Pt(t,de))};function Ar(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=U(r.placement),i=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Le(a),u=i==="y"?B:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,p=v[u],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(p,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function Sr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||xt(t.elements.popper,n)&&(t.elements.arrow=n))}const $r={name:"arrow",enabled:!0,phase:"main",fn:Ar,effect:Sr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var jr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function at(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,u=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:u,y:d}):{x:u,y:d};u=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,p=B,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===B||(n===F||n===H)&&a===pe){p=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===B||n===N)&&a===pe){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];u-=R-o.width,u*=i?1:-1}}var $=Object.assign({position:s},f&&jr),D=l===!0?kr({x:u,y:d},W(r)):{x:u,y:d};if(u=D.x,d=D.y,i){var S;return Object.assign({},$,(S={},S[p]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[p]=P?d+"px":"",t[b]=w?u+"px":"",t.transform="",t))}function Dr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:U(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,at(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,at(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Tr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dr,data:{}};var be={passive:!0};function Mr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,data:{}};var Fr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Fr[t]})}var Wr={start:"end",end:"start"};function it(e){return e.replace(/start|end/g,function(t){return Wr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(Y(e)).left+Ne(e).scrollLeft}function Lr(e,t){var r=W(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=bt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Vr(e){var t,r=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=K(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=K(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ue(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Et(e){return["html","body","#document"].indexOf(I(e))>=0?e.ownerDocument.body:V(e)&&Ue(e)?e:Et(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Et(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ue(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function je(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function st(e,t,r){return t===gt?je(Lr(e,r)):Z(t)?Nr(t,r):je(Vr(Y(e)))}function Hr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&xt(n,o)&&I(n)!=="body"}):[]}function Ur(e,t,r,o){var n=t==="clippingParents"?Hr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=st(e,f,o);return i.top=K(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=K(l.left,i.left),i},st(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ct(e){var t=e.reference,r=e.element,o=e.placement,n=o?U(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Ve(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case pe:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function ue(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?lr:s,f=r.rootBoundary,l=f===void 0?gt:f,v=r.elementContext,h=v===void 0?le:v,u=r.altBoundary,x=u===void 0?!1:u,d=r.padding,m=d===void 0?0:d,w=Ot(typeof m!="number"?m:Pt(m,de)),P=h===le?cr:le,b=e.rects.popper,p=e.elements[x?P:h],g=Ur(Z(p)?p:p.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=Ct({reference:y,element:b,strategy:"absolute",placement:n}),A=je(Object.assign({},b,O)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var D=$[n];Object.keys(R).forEach(function(S){var k=[H,N].indexOf(S)>=0?1:-1,L=[B,N].indexOf(S)>=0?"y":"x";R[S]+=D[L]*k})}return R}function Ir(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?yt:i,l=ne(o),v=l?s?ot:ot.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var u=h.reduce(function(x,d){return x[d]=ue(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[U(d)],x},{});return Object.keys(u).sort(function(x,d){return u[x]-u[d]})}function qr(e){if(U(e)===Fe)return[];var t=xe(e);return[it(e),t,it(t)]}function zr(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,u=r.flipVariations,x=u===void 0?!0:u,d=r.allowedAutoPlacements,m=t.options.placement,w=U(m),P=w===m,b=i||(P||!x?[xe(m)]:qr(m)),p=[m].concat(b).reduce(function(ee,X){return ee.concat(U(X)===Fe?Ir(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,L=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=k?S?H:F:S?N:B;g[L]>y[L]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[M]<=0,j[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Xr={name:"flip",enabled:!0,phase:"main",fn:zr,requiresIfExists:["offset"],data:{_skip:!1}};function lt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ct(e){return[B,H,N,F].some(function(t){return e[t]>=0})}function Yr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),i=lt(c,o),f=lt(s,n,a),l=ct(i),v=ct(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Gr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yr};function _r(e,t,r){var o=U(e),n=[F,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function Jr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=yt.reduce(function(l,v){return l[v]=_r(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const Kr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jr};function Qr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ct({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Zr={name:"popperOffsets",enabled:!0,phase:"read",fn:Qr,data:{}};function eo(e){return e==="x"?"y":"x"}function to(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,u=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=ue(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=U(t.placement),P=ne(t.placement),b=!P,p=Ve(w),g=eo(p),y=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(y){if(a){var S,k=p==="y"?B:F,L=p==="y"?N:H,j=p==="y"?"height":"width",M=y[p],z=M+m[k],G=M-m[L],me=u?-A[j]/2:0,Pe=P===te?O[j]:A[j],ie=P===te?-A[j]:-O[j],he=t.elements.arrow,ee=u&&he?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=X[k],ge=X[L],_=ce(0,O[j],ee[j]),Ee=b?O[j]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,At=b?-O[j]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),St=Ce?p==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ie=(S=$==null?void 0:$[p])!=null?S:0,$t=M+Ee-Ie-St,jt=M+At-Ie,qe=ce(u?we(z,$t):z,M,u?K(G,jt):G);y[p]=qe,D[p]=qe-M}if(s){var ze,kt=p==="x"?B:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[kt],Ye=J-m[Dt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-O[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+O[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=u&&Re?Cr(_e,J,Je):ce(u?_e:Xe,J,u?Je:Ye);y[g]=Ke,D[g]=Ke-J}t.modifiersData[o]=D}}const ro={name:"preventOverflow",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"]};function oo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function no(e){return e===W(e)||!V(e)?Ne(e):oo(e)}function ao(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function io(e,t,r){r===void 0&&(r=!1);var o=V(t),n=V(t)&&ao(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((I(t)!=="body"||Ue(a))&&(s=no(t)),V(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function so(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function lo(e){var t=so(e);return br.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function co(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var ft={placement:"bottom",modifiers:[],strategy:"absolute"};function pt(){for(var e=arguments.length,t=new Array(e),r=0;rDe({root:["root"]},sr(mo)),wo={},Oo=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:u={},slots:x={},TransitionProps:d}=t,m=ae(t,ho),w=E.useRef(null),P=tt(w,r),b=E.useRef(null),p=tt(b,h),g=E.useRef(p);rt(()=>{g.current=p},[p]),E.useImperativeHandle(h,()=>b.current,[]);const y=yo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(ke(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(ke(n))},[n]),rt(()=>{if(!C||!f)return;const L=z=>{A(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const M=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(M),()=>{M.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const D=xo(),S=(o=x.root)!=null?o:"div",k=It({elementType:S,externalSlotProps:u.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:D.root});return Q.jsx(S,T({},k,{children:typeof a=="function"?a($):a}))}),Po=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=wo,popperRef:u,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,go),[b,p]=E.useState(!0),g=()=>{p(!1)},y=()=>{p(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=ke(o);O=R&&bo(R)?et(R).body:et(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return Q.jsx(qt,{disablePortal:s,container:O,children:Q.jsx(Oo,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:u,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),Eo=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Co=Me(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=Ht(),a=Be({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:p}=a,g=ae(a,Eo),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return Q.jsx(Co,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:p??f},O,{ref:r}))}),No=Ro;function Ho({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const Ao=E.createContext(void 0),Rt=Ao;function Uo(){return E.useContext(Rt)}function ut(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function dt(e,t=!1){return e&&(ut(e.value)&&e.value!==""||t&&ut(e.defaultValue)&&e.defaultValue!=="")}function So(e){return e.startAdornment}function $o(e){return Te("MuiFormControl",e)}vt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const jo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ko=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${mt(r)}`,o&&"fullWidth"]};return De(n,$o,t)},Do=Me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${mt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),To=E.forwardRef(function(t,r){const o=Be({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:u="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,jo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:u,required:x,size:d,variant:m}),b=ko(P),[p,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{if(!Se(k,["Input","Select"]))return;const L=Se(k,["Select"])?k.props.input:k;L&&So(L.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{Se(k,["Input","Select"])&&(dt(k.props,!0)||dt(k.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const D=E.useMemo(()=>({adornedStart:p,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[p,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(Rt.Provider,{value:D,children:Q.jsx(Do,T({as:s,ownerState:P,className:Ut(b.root,a),ref:r},w,{children:n}))})}),Io=To,Mo=nr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),qo=Mo;export{Io as F,No as P,qo as S,Uo as a,Rt as b,Yt as e,Ho as f,dt as i,Vo as u}; diff --git a/build/assets/Streamable-512607a9.js b/build/assets/Streamable-d875ce74.js similarity index 95% rename from build/assets/Streamable-512607a9.js rename to build/assets/Streamable-d875ce74.js index 5037f265a..9fbd22c98 100644 --- a/build/assets/Streamable-512607a9.js +++ b/build/assets/Streamable-d875ce74.js @@ -1 +1 @@ -import{n as m,r as f}from"./index-261f9d22.js";import{u as _,p as b}from"./index-bac9adcb.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; +import{n as m,r as f}from"./index-20ea28f6.js";import{u as _,p as b}from"./index-d4895025.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/build/assets/SwitchBase-261e39db.js b/build/assets/SwitchBase-262eb8cd.js similarity index 94% rename from build/assets/SwitchBase-261e39db.js rename to build/assets/SwitchBase-262eb8cd.js index 4155f41a7..977c90aa4 100644 --- a/build/assets/SwitchBase-261e39db.js +++ b/build/assets/SwitchBase-262eb8cd.js @@ -1 +1 @@ -import{b as W,g as A,s as F,_ as c,i as D,r as G,a as H,j as x,c as J,e as K,d as M}from"./index-261f9d22.js";import{u as Q,a as T}from"./Stack-4e5cf8f3.js";import{n as V}from"./index-a3132f83.js";function X(e){return W("PrivateSwitchBase",e)}A("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Y=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Z=e=>{const{classes:o,checked:i,disabled:r,edge:a}=e,l={root:["root",i&&"checked",r&&"disabled",a&&`edge${K(a)}`],input:["input"]};return M(l,X,o)},ee=F(V)(({ownerState:e})=>c({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),se=F("input",{shouldForwardProp:D})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),te=G.forwardRef(function(o,i){const{autoFocus:r,checked:a,checkedIcon:l,className:w,defaultChecked:h,disabled:y,disableFocusRipple:p=!1,edge:S=!1,icon:R,id:P,inputProps:I,inputRef:j,name:z,onBlur:f,onChange:m,onFocus:g,readOnly:E,required:N=!1,tabIndex:U,type:d,value:b}=o,_=H(o,Y),[k,q]=Q({controlled:a,default:!!h,name:"SwitchBase",state:"checked"}),t=T(),v=s=>{g&&g(s),t&&t.onFocus&&t.onFocus(s)},L=s=>{f&&f(s),t&&t.onBlur&&t.onBlur(s)},O=s=>{if(s.nativeEvent.defaultPrevented)return;const C=s.target.checked;q(C),m&&m(s,C)};let n=y;t&&typeof n>"u"&&(n=t.disabled);const $=d==="checkbox"||d==="radio",u=c({},o,{checked:k,disabled:n,disableFocusRipple:p,edge:S}),B=Z(u);return x.jsxs(ee,c({component:"span",className:J(B.root,w),centerRipple:!0,focusRipple:!p,disabled:n,tabIndex:null,role:void 0,onFocus:v,onBlur:L,ownerState:u,ref:i},_,{children:[x.jsx(se,c({autoFocus:r,checked:a,defaultChecked:h,className:B.input,disabled:n,id:$?P:void 0,name:z,onChange:O,readOnly:E,ref:j,required:N,ownerState:u,tabIndex:U,type:d},d==="checkbox"&&b===void 0?{}:{value:b},I)),k?l:R]}))}),de=te;export{de as S}; +import{b as W,g as A,s as F,_ as c,i as D,r as G,a as H,j as x,c as J,e as K,d as M}from"./index-20ea28f6.js";import{u as Q,a as T}from"./Stack-72055e8f.js";import{n as V}from"./index-b0d8b87e.js";function X(e){return W("PrivateSwitchBase",e)}A("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Y=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Z=e=>{const{classes:o,checked:i,disabled:r,edge:a}=e,l={root:["root",i&&"checked",r&&"disabled",a&&`edge${K(a)}`],input:["input"]};return M(l,X,o)},ee=F(V)(({ownerState:e})=>c({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),se=F("input",{shouldForwardProp:D})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),te=G.forwardRef(function(o,i){const{autoFocus:r,checked:a,checkedIcon:l,className:w,defaultChecked:h,disabled:y,disableFocusRipple:p=!1,edge:S=!1,icon:R,id:P,inputProps:I,inputRef:j,name:z,onBlur:f,onChange:m,onFocus:g,readOnly:E,required:N=!1,tabIndex:U,type:d,value:b}=o,_=H(o,Y),[k,q]=Q({controlled:a,default:!!h,name:"SwitchBase",state:"checked"}),t=T(),v=s=>{g&&g(s),t&&t.onFocus&&t.onFocus(s)},L=s=>{f&&f(s),t&&t.onBlur&&t.onBlur(s)},O=s=>{if(s.nativeEvent.defaultPrevented)return;const C=s.target.checked;q(C),m&&m(s,C)};let n=y;t&&typeof n>"u"&&(n=t.disabled);const $=d==="checkbox"||d==="radio",u=c({},o,{checked:k,disabled:n,disableFocusRipple:p,edge:S}),B=Z(u);return x.jsxs(ee,c({component:"span",className:J(B.root,w),centerRipple:!0,focusRipple:!p,disabled:n,tabIndex:null,role:void 0,onFocus:v,onBlur:L,ownerState:u,ref:i},_,{children:[x.jsx(se,c({autoFocus:r,checked:a,defaultChecked:h,className:B.input,disabled:n,id:$?P:void 0,name:z,onChange:O,readOnly:E,ref:j,required:N,ownerState:u,tabIndex:U,type:d},d==="checkbox"&&b===void 0?{}:{value:b},I)),k?l:R]}))}),de=te;export{de as S}; diff --git a/build/assets/Tabs-3aa09f8d.js b/build/assets/Tabs-6f02e411.js similarity index 98% rename from build/assets/Tabs-3aa09f8d.js rename to build/assets/Tabs-6f02e411.js index bbc506a6e..ab77b2ac7 100644 --- a/build/assets/Tabs-3aa09f8d.js +++ b/build/assets/Tabs-6f02e411.js @@ -1 +1 @@ -import{g as ft,b as pt,s as O,e as Pt,_ as b,r as c,u as ht,a as rt,c as L,j as S,d as St,ad as Lt}from"./index-261f9d22.js";import{n as Nt,e as Zt,f as ut}from"./index-a3132f83.js";import{d as $t,a as kt,u as lt,o as te}from"./useSlotProps-987deb9d.js";import{c as Ft}from"./createSvgIcon-17709ccc.js";let U;function At(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,D=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),X=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(X.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},_=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(X.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),Fe=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Dt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Xt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Ct,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Vt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[K]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{_t(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},X,{className:L(W.indicator,X.className),ownerState:$,style:b({},k,X.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Ae=Pe;export{Ae as T,Fe as a}; +import{g as ft,b as pt,s as O,e as Pt,_ as b,r as c,u as ht,a as rt,c as L,j as S,d as St,ad as Lt}from"./index-20ea28f6.js";import{n as Nt,e as Zt,f as ut}from"./index-b0d8b87e.js";import{d as $t,a as kt,u as lt,o as te}from"./useSlotProps-c721fa06.js";import{c as Ft}from"./createSvgIcon-55ea993d.js";let U;function At(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,D=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),X=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(X.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},_=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(X.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),Fe=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Dt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Xt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Ct,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Vt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[K]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{_t(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},X,{className:L(W.indicator,X.className),ownerState:$,style:b({},k,X.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Ae=Pe;export{Ae as T,Fe as a}; diff --git a/build/assets/TextareaAutosize-0799e080.js b/build/assets/TextareaAutosize-0dbbd7d8.js similarity index 91% rename from build/assets/TextareaAutosize-0799e080.js rename to build/assets/TextareaAutosize-0dbbd7d8.js index 78f41ee46..773971de7 100644 --- a/build/assets/TextareaAutosize-0799e080.js +++ b/build/assets/TextareaAutosize-0dbbd7d8.js @@ -1,2 +1,2 @@ -import{r as o,a as L,j as v,_ as b,h as I}from"./index-261f9d22.js";import{d as D,e as T}from"./index-a3132f83.js";import{a as F,d as P}from"./useSlotProps-987deb9d.js";const U=["onChange","maxRows","minRows","style","value"];function w(r){return parseInt(r,10)||0}const V={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const J=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=L(l,U),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=D(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` +import{r as o,a as L,j as v,_ as b,h as I}from"./index-20ea28f6.js";import{d as D,e as T}from"./index-b0d8b87e.js";import{a as F,d as P}from"./useSlotProps-c721fa06.js";const U=["onChange","maxRows","minRows","style","value"];function w(r){return parseInt(r,10)||0}const V={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const J=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=L(l,U),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=D(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` `&&(t.value+=" ");const g=n.boxSizing,m=w(n.paddingBottom)+w(n.paddingTop),a=w(n.borderBottomWidth)+w(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),x&&(s=Math.min(Number(x)*d,s)),s=Math.max(s,d);const j=s+(g==="border-box"?m+a:0),B=Math.abs(s-u)<=1;return{outerHeightStyle:j,overflow:B}},[x,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||I.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=P(i),g=p.current,m=F(g);m.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),m.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const _=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:_,ref:N,rows:h,style:b({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),v.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:b({},V.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{J as T}; diff --git a/build/assets/Twitch-48eb0a31.js b/build/assets/Twitch-169fd0ac.js similarity index 95% rename from build/assets/Twitch-48eb0a31.js rename to build/assets/Twitch-169fd0ac.js index df5698215..cbdf4eb60 100644 --- a/build/assets/Twitch-48eb0a31.js +++ b/build/assets/Twitch-169fd0ac.js @@ -1 +1 @@ -import{n as w,r as D}from"./index-261f9d22.js";import{u as C,p as N}from"./index-bac9adcb.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...o.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{n as w,r as D}from"./index-20ea28f6.js";import{u as C,p as N}from"./index-d4895025.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...o.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Vidyard-f6424a77.js b/build/assets/Vidyard-97d6acf1.js similarity index 95% rename from build/assets/Vidyard-f6424a77.js rename to build/assets/Vidyard-97d6acf1.js index 769a6483a..6103b3e96 100644 --- a/build/assets/Vidyard-f6424a77.js +++ b/build/assets/Vidyard-97d6acf1.js @@ -1 +1 @@ -import{n as g,r as v}from"./index-261f9d22.js";import{u as b,p as O}from"./index-bac9adcb.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; +import{n as g,r as v}from"./index-20ea28f6.js";import{u as b,p as O}from"./index-d4895025.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; diff --git a/build/assets/Vimeo-706b5aa1.js b/build/assets/Vimeo-4dc67568.js similarity index 96% rename from build/assets/Vimeo-706b5aa1.js rename to build/assets/Vimeo-4dc67568.js index 2d80ea574..f91505bbe 100644 --- a/build/assets/Vimeo-706b5aa1.js +++ b/build/assets/Vimeo-4dc67568.js @@ -1 +1 @@ -import{n as d,r as f}from"./index-261f9d22.js";import{u as m,p as _}from"./index-bac9adcb.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; +import{n as d,r as f}from"./index-20ea28f6.js";import{u as m,p as _}from"./index-d4895025.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; diff --git a/build/assets/Wistia-5ab8f2f0.js b/build/assets/Wistia-bd085ac4.js similarity index 96% rename from build/assets/Wistia-5ab8f2f0.js rename to build/assets/Wistia-bd085ac4.js index bc7741971..d3b957caa 100644 --- a/build/assets/Wistia-5ab8f2f0.js +++ b/build/assets/Wistia-bd085ac4.js @@ -1 +1 @@ -import{n as m,r as g}from"./index-261f9d22.js";import{u as v,p as w}from"./index-bac9adcb.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{n as m,r as g}from"./index-20ea28f6.js";import{u as v,p as w}from"./index-d4895025.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/build/assets/YouTube-e281d916.js b/build/assets/YouTube-4db8708e.js similarity index 97% rename from build/assets/YouTube-e281d916.js rename to build/assets/YouTube-4db8708e.js index 26d5923ab..ca7ed84bb 100644 --- a/build/assets/YouTube-e281d916.js +++ b/build/assets/YouTube-4db8708e.js @@ -1 +1 @@ -import{n as U,r as I}from"./index-261f9d22.js";import{u as L,p as Y}from"./index-bac9adcb.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; +import{n as U,r as I}from"./index-20ea28f6.js";import{u as L,p as Y}from"./index-d4895025.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/build/assets/createSvgIcon-17709ccc.js b/build/assets/createSvgIcon-55ea993d.js similarity index 97% rename from build/assets/createSvgIcon-17709ccc.js rename to build/assets/createSvgIcon-55ea993d.js index 3aaa649f8..ad5f52781 100644 --- a/build/assets/createSvgIcon-17709ccc.js +++ b/build/assets/createSvgIcon-55ea993d.js @@ -1 +1 @@ -import{b as I,g as C,s as w,e as f,r as v,u as R,a as b,_ as g,j as S,c as j,d as N}from"./index-261f9d22.js";function A(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return N(n,A,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,B),l=v.isValidElement(n)&&n.type==="svg",y=g({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=M(y);return S.jsxs(T,g({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?S.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function U(o,e){function t(i,n){return S.jsx($,g({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{U as c}; +import{b as I,g as C,s as w,e as f,r as v,u as R,a as b,_ as g,j as S,c as j,d as N}from"./index-20ea28f6.js";function A(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return N(n,A,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,B),l=v.isValidElement(n)&&n.type==="svg",y=g({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=M(y);return S.jsxs(T,g({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?S.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function U(o,e){function t(i,n){return S.jsx($,g({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{U as c}; diff --git a/build/assets/index-20ebb136.js b/build/assets/index-1baf3f02.js similarity index 64% rename from build/assets/index-20ebb136.js rename to build/assets/index-1baf3f02.js index 166696aaa..993275ecd 100644 --- a/build/assets/index-20ebb136.js +++ b/build/assets/index-1baf3f02.js @@ -1 +1 @@ -import{p as o}from"./index-261f9d22.js";const n=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{n as u}; +import{p as o}from"./index-20ea28f6.js";const n=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{n as u}; diff --git a/build/assets/index-261f9d22.js b/build/assets/index-20ea28f6.js similarity index 99% rename from build/assets/index-261f9d22.js rename to build/assets/index-20ea28f6.js index 82ef5b075..e6145b8d8 100644 --- a/build/assets/index-261f9d22.js +++ b/build/assets/index-20ea28f6.js @@ -664,4 +664,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-a3132f83.js").then(o=>o.y),["assets/index-a3132f83.js","assets/index-b60658ac.css"]).then(({App:o})=>({default:o}))),AppContainer=()=>{const o=jsxRuntimeExports.jsx(LazyApp,{}),{splashDataLoading:et}=useDataStore(tt=>tt);return jsxRuntimeExports.jsxs(AppProviders,{children:[et&&jsxRuntimeExports.jsx(Splash,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:o,path:"/"}),jsxRuntimeExports.jsx(Route,{element:o,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:o,path:"*"})]})})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{$2AODx$react as $,useAppStore as A,useDataStore as B,useFeatureFlagStore as C,useHasAiChatsResponseLoading as D,__vitePreload as E,Flex as F,media as G,Stats as H,useSearchParams as I,useUserStore as J,useAiSummaryStore as K,LinearProgress$1 as L,isDevelopment as M,updateBudget as N,useModal as O,PropTypes as P,useNavigate as Q,React as R,SocketContext as S,Text as T,isSphinx as U,useSelectedNodeRelativeIds as V,We as W,forceSimulation as X,forceCollide as Y,forceCenter as Z,_extends$1 as _,_objectWithoutPropertiesLoose as a,RSS as a$,forceManyBody as a0,forceLink as a1,NODE_RELATIVE_HIGHLIGHT_COLORS as a2,useHoveredNode as a3,useNodeTypes as a4,lottie as a5,fetchNodeEdges as a6,NodesIcon as a7,lodashExports as a8,addToGlobalForE2e as a9,_getTag as aA,isBufferExports as aB,isTypedArray_1 as aC,isObject_1 as aD,keys_1 as aE,isArguments_1 as aF,_isIndex as aG,isLength_1 as aH,_Set as aI,_arrayPush as aJ,isArrayLike_1 as aK,_baseUnary as aL,_defineProperty$1 as aM,_root as aN,_getPrototype as aO,_baseAssignValue as aP,getFullTranscript as aQ,getAugmentedNamespace as aR,propTypesExports as aS,useHasAiChats as aT,postAboutData as aU,NODE_ADD_ERROR as aV,requiredRule as aW,LINK as aX,YOUTUBE_CHANNEL as aY,TWITTER_HANDLE as aZ,TWITTER_SOURCE as a_,api as aa,distExports$1 as ab,executeIfProd as ac,useTheme as ad,lighten as ae,darken as af,slotShouldForwardProp as ag,Ce as ah,Ue as ai,Tooltip as aj,hooks as ak,commonjsGlobal as al,commonjsRequire as am,useFilteredNodes as an,getSchemaAll as ao,_baseGetTag as ap,isObjectLike_1 as aq,isArray_1 as ar,_MapCache as as,_Symbol as at,isObject$b as au,isFunction$3 as av,_Uint8Array as aw,eq_1 as ax,_getAllKeys as ay,_Stack as az,generateUtilityClass as b,WEB_PAGE as b0,DOCUMENT as b1,formatBudget as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,getNodeType as b8,getNodeSchemaTypes as b9,defaultTheme$1 as bA,THEME_ID as bB,formatMuiErrorMessage as bC,deepmerge as bD,defaultSxConfig$1 as bE,isPlainObject as bF,createStyled as bG,createTheme$1 as bH,useThemeProps$1 as bI,createUnarySpacing as bJ,mergeBreakpointsInOrder as bK,getValue as bL,useTheme$3 as bM,getNodeContent as ba,approveRadarData as bb,deleteRadarData as bc,getRadarData as bd,putRadarData as be,getEdgeTypes as bf,getEdges as bg,postEdgeType as bh,putNodeData as bi,postMergeTopics as bj,getTopicsData as bk,deleteNode as bl,css as bm,changeNodeType as bn,resolveBreakpointValues as bo,handleBreakpoints as bp,updateEdgeType as bq,postBluePrintType as br,deleteEdgeType as bs,createRoot as bt,react as bu,GRAPH_GROUND_COLOR as bv,GRAPH_LIGHT_INTENSITY as bw,GRAPH_FOG_COLOR as bx,Global as by,useTheme$2 as bz,clsx$1 as c,composeClasses as d,capitalize as e,alpha as f,generateUtilityClasses as g,reactDomExports as h,rootShouldForwardProp as i,jsxRuntimeExports as j,keyframes as k,resolveProps as l,ReactDOM as m,getDefaultExportFromCjs as n,styled$3 as o,useGraphStore as p,colors as q,reactExports as r,styled$1 as s,graphStyles as t,useThemeProps as u,clsx as v,create$3 as w,devtools as x,useSelectedNode as y,useUpdateSelectedNode as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-b0d8b87e.js").then(o=>o.y),["assets/index-b0d8b87e.js","assets/index-b60658ac.css"]).then(({App:o})=>({default:o}))),AppContainer=()=>{const o=jsxRuntimeExports.jsx(LazyApp,{}),{splashDataLoading:et}=useDataStore(tt=>tt);return jsxRuntimeExports.jsxs(AppProviders,{children:[et&&jsxRuntimeExports.jsx(Splash,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:o,path:"/"}),jsxRuntimeExports.jsx(Route,{element:o,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:o,path:"*"})]})})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{$2AODx$react as $,useAppStore as A,useDataStore as B,useFeatureFlagStore as C,useHasAiChatsResponseLoading as D,__vitePreload as E,Flex as F,media as G,Stats as H,useSearchParams as I,useUserStore as J,useAiSummaryStore as K,LinearProgress$1 as L,isDevelopment as M,updateBudget as N,useModal as O,PropTypes as P,useNavigate as Q,React as R,SocketContext as S,Text as T,isSphinx as U,useSelectedNodeRelativeIds as V,We as W,forceSimulation as X,forceCollide as Y,forceCenter as Z,_extends$1 as _,_objectWithoutPropertiesLoose as a,RSS as a$,forceManyBody as a0,forceLink as a1,NODE_RELATIVE_HIGHLIGHT_COLORS as a2,useHoveredNode as a3,useNodeTypes as a4,lottie as a5,fetchNodeEdges as a6,NodesIcon as a7,lodashExports as a8,addToGlobalForE2e as a9,_getTag as aA,isBufferExports as aB,isTypedArray_1 as aC,isObject_1 as aD,keys_1 as aE,isArguments_1 as aF,_isIndex as aG,isLength_1 as aH,_Set as aI,_arrayPush as aJ,isArrayLike_1 as aK,_baseUnary as aL,_defineProperty$1 as aM,_root as aN,_getPrototype as aO,_baseAssignValue as aP,getFullTranscript as aQ,getAugmentedNamespace as aR,propTypesExports as aS,useHasAiChats as aT,postAboutData as aU,NODE_ADD_ERROR as aV,requiredRule as aW,LINK as aX,YOUTUBE_CHANNEL as aY,TWITTER_HANDLE as aZ,TWITTER_SOURCE as a_,api as aa,distExports$1 as ab,executeIfProd as ac,useTheme as ad,lighten as ae,darken as af,slotShouldForwardProp as ag,Ce as ah,Ue as ai,Tooltip as aj,hooks as ak,commonjsGlobal as al,commonjsRequire as am,useFilteredNodes as an,getSchemaAll as ao,_baseGetTag as ap,isObjectLike_1 as aq,isArray_1 as ar,_MapCache as as,_Symbol as at,isObject$b as au,isFunction$3 as av,_Uint8Array as aw,eq_1 as ax,_getAllKeys as ay,_Stack as az,generateUtilityClass as b,WEB_PAGE as b0,DOCUMENT as b1,formatBudget as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,getNodeType as b8,getNodeSchemaTypes as b9,defaultTheme$1 as bA,THEME_ID as bB,formatMuiErrorMessage as bC,deepmerge as bD,defaultSxConfig$1 as bE,isPlainObject as bF,createStyled as bG,createTheme$1 as bH,useThemeProps$1 as bI,createUnarySpacing as bJ,mergeBreakpointsInOrder as bK,getValue as bL,useTheme$3 as bM,getNodeContent as ba,approveRadarData as bb,deleteRadarData as bc,getRadarData as bd,putRadarData as be,getEdgeTypes as bf,getEdges as bg,postEdgeType as bh,putNodeData as bi,postMergeTopics as bj,getTopicsData as bk,deleteNode as bl,css as bm,changeNodeType as bn,resolveBreakpointValues as bo,handleBreakpoints as bp,updateEdgeType as bq,postBluePrintType as br,deleteEdgeType as bs,createRoot as bt,react as bu,GRAPH_GROUND_COLOR as bv,GRAPH_LIGHT_INTENSITY as bw,GRAPH_FOG_COLOR as bx,Global as by,useTheme$2 as bz,clsx$1 as c,composeClasses as d,capitalize as e,alpha as f,generateUtilityClasses as g,reactDomExports as h,rootShouldForwardProp as i,jsxRuntimeExports as j,keyframes as k,resolveProps as l,ReactDOM as m,getDefaultExportFromCjs as n,styled$3 as o,useGraphStore as p,colors as q,reactExports as r,styled$1 as s,graphStyles as t,useThemeProps as u,clsx as v,create$3 as w,devtools as x,useSelectedNode as y,useUpdateSelectedNode as z}; diff --git a/build/assets/index-7d840c3c.js b/build/assets/index-275839ae.js similarity index 64% rename from build/assets/index-7d840c3c.js rename to build/assets/index-275839ae.js index b6c65c24a..bfa9d876f 100644 --- a/build/assets/index-7d840c3c.js +++ b/build/assets/index-275839ae.js @@ -1,4 +1,4 @@ -import{o as i,j as t,q as a}from"./index-261f9d22.js";import{f as n}from"./index.esm-0d26a2bd.js";import{t as e}from"./index-a3132f83.js";const r=i.div` +import{o as i,j as t,q as a}from"./index-20ea28f6.js";import{f as n}from"./index.esm-f5056f82.js";import{t as e}from"./index-b0d8b87e.js";const r=i.div` display: Flex; justify-content: center; align-items: center; diff --git a/build/assets/index-c5fe6147.js b/build/assets/index-2911a543.js similarity index 91% rename from build/assets/index-c5fe6147.js rename to build/assets/index-2911a543.js index e32475afc..a1577994c 100644 --- a/build/assets/index-c5fe6147.js +++ b/build/assets/index-2911a543.js @@ -1,4 +1,4 @@ -import{o as i,j as e,F as s,aW as b,T as a,q as n,O as w,r as m,aa as j}from"./index-261f9d22.js";import{B as C,h as S,F as y}from"./index-a3132f83.js";import{B as k}from"./index-c59db43d.js";import{S as v}from"./index-7d840c3c.js";import{T as F}from"./index-d9f514ff.js";import"./index.esm-0d26a2bd.js";import"./InfoIcon-d22daefc.js";const B=({allowNextStep:t})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(T,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(F,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:b})}),e.jsx(s,{children:e.jsx(C,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!t,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),T=i(a)` +import{o as i,j as e,F as s,aW as b,T as a,q as n,O as w,r as m,aa as j}from"./index-20ea28f6.js";import{B as C,h as S,F as y}from"./index-b0d8b87e.js";import{B as k}from"./index-acb0ff6f.js";import{S as v}from"./index-275839ae.js";import{T as F}from"./index-2cd6e591.js";import"./index.esm-f5056f82.js";import"./InfoIcon-3abfdeb4.js";const B=({allowNextStep:t})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(T,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(F,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:b})}),e.jsx(s,{children:e.jsx(C,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!t,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),T=i(a)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-d9f514ff.js b/build/assets/index-2cd6e591.js similarity index 98% rename from build/assets/index-d9f514ff.js rename to build/assets/index-2cd6e591.js index 31e0ae4e1..55ddea5e2 100644 --- a/build/assets/index-d9f514ff.js +++ b/build/assets/index-2cd6e591.js @@ -1,4 +1,4 @@ -import{r as I,h as fe,n as de,o as N,q as S,j as w,F as L,T as pe}from"./index-261f9d22.js";import{g as he,w as ge,x as ve}from"./index-a3132f83.js";import{e as me}from"./index.esm-0d26a2bd.js";import{I as xe}from"./InfoIcon-d22daefc.js";var ee={exports:{}},te={exports:{}},be=function(e,r,t,n,o,i,s,u){if(!e){var f;if(r===void 0)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[t,n,o,i,s,u],l=0;f=new Error(r.replace(/%s/g,function(){return p[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}},ke=be;function ne(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var k=I,_=ne(k),Pe=fe,K=ne(ke);function B(){return(B=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function Ee(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&Ee(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],E=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",E),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",E),E()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),E=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return E.current},[]),setValue:k.useCallback(function(g){E.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",E=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(E=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&d=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function Ee(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&Ee(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],E=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",E),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",E),E()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),E=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return E.current},[]),setValue:k.useCallback(function(g){E.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",E=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(E=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&dS[e]}; background: transparent; diff --git a/build/assets/index-2c6ed9a6.js b/build/assets/index-375acfd1.js similarity index 98% rename from build/assets/index-2c6ed9a6.js rename to build/assets/index-375acfd1.js index b6f4429f9..53ec4f8d6 100644 --- a/build/assets/index-2c6ed9a6.js +++ b/build/assets/index-375acfd1.js @@ -1,4 +1,4 @@ -import{r as m,b as Bt,g as Lt,s as Te,_ as H,u as Ft,ad as co,a as Wt,j as n,c as Yt,bo as Ye,bp as it,d as Ut,e as fe,f as mt,ae as lo,af as uo,b9 as at,o as B,T as X,F as j,aW as Be,q as V,bq as po,br as et,bs as fo,b8 as Gt,O as Ht,aa as Le,aV as pe,a1 as gt,a0 as xt,Z as yt,Y as bt,X as ho,M as mo,ao as wt}from"./index-261f9d22.js";import{B as go}from"./index-c59db43d.js";import{h as ct,B as Oe,F as Zt,j as Xt,o as xo,g as yo,I as bo,p as wo}from"./index-a3132f83.js";import{A as Fe,O as jo,a as jt,N as Kt}from"./index-c4e7eaf1.js";import{T as We}from"./index-d9f514ff.js";import{C as le}from"./ClipLoader-2f6df72c.js";import{u as qt}from"./index-2bf61ac9.js";import{D as vo}from"./DeleteIcon-d3ad49c0.js";import{P as Eo}from"./PlusIcon-788eea40.js";import{p as st,c as Po,g as Co}from"./index-44e303ef.js";import{e as To}from"./Stack-4e5cf8f3.js";import{S as Oo}from"./SwitchBase-261e39db.js";import{g as Ao,m as Mo,u as J,b as Ue,t as rt,T as Qt,i as Jt,H as So,j as vt,C as _o,P as $o,k as No}from"./index-3c085423.js";import{Z as Io,_ as zo,E as ko,V as I,$ as de,a0 as ue,a1 as Et,P as Re,a2 as De,a3 as Pt,a as K,a4 as Ro,G as Do,C as Vo}from"./three.module-2ce81f73.js";import{A as Ct}from"./AddContentIcon-00c7fa22.js";import"./Popover-548ea313.js";import"./useSlotProps-987deb9d.js";import"./createSvgIcon-17709ccc.js";import"./TextareaAutosize-0799e080.js";import"./index.esm-0d26a2bd.js";import"./InfoIcon-d22daefc.js";const Bo=m.createContext(),Tt=Bo;function Lo(t){return Bt("MuiGrid",t)}const Fo=[0,1,2,3,4,5,6,7,8,9,10],Wo=["column-reverse","column","row-reverse","row"],Yo=["nowrap","wrap-reverse","wrap"],Pe=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Uo=Lt("MuiGrid",["root","container","item","zeroMinWidth",...Fo.map(t=>`spacing-xs-${t}`),...Wo.map(t=>`direction-xs-${t}`),...Yo.map(t=>`wrap-xs-${t}`),...Pe.map(t=>`grid-xs-${t}`),...Pe.map(t=>`grid-sm-${t}`),...Pe.map(t=>`grid-md-${t}`),...Pe.map(t=>`grid-lg-${t}`),...Pe.map(t=>`grid-xl-${t}`)]),Ce=Uo,Go=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function he(t){const o=parseFloat(t);return`${o}${String(t).replace(String(o),"")||"px"}`}function Ho({theme:t,ownerState:o}){let s;return t.breakpoints.keys.reduce((e,a)=>{let c={};if(o[a]&&(s=o[a]),!s)return e;if(s===!0)c={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")c={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=Ye({values:o.columns,breakpoints:t.breakpoints.values}),i=typeof u=="object"?u[a]:u;if(i==null)return e;const l=`${Math.round(s/i*1e8)/1e6}%`;let v={};if(o.container&&o.item&&o.columnSpacing!==0){const d=t.spacing(o.columnSpacing);if(d!=="0px"){const h=`calc(${l} + ${he(d)})`;v={flexBasis:h,maxWidth:h}}}c=H({flexBasis:l,flexGrow:0,maxWidth:l},v)}return t.breakpoints.values[a]===0?Object.assign(e,c):e[t.breakpoints.up(a)]=c,e},{})}function Zo({theme:t,ownerState:o}){const s=Ye({values:o.direction,breakpoints:t.breakpoints.values});return it({theme:t},s,e=>{const a={flexDirection:e};return e.indexOf("column")===0&&(a[`& > .${Ce.item}`]={maxWidth:"none"}),a})}function eo({breakpoints:t,values:o}){let s="";Object.keys(o).forEach(a=>{s===""&&o[a]!==0&&(s=a)});const e=Object.keys(t).sort((a,c)=>t[a]-t[c]);return e.slice(0,e.indexOf(s))}function Xo({theme:t,ownerState:o}){const{container:s,rowSpacing:e}=o;let a={};if(s&&e!==0){const c=Ye({values:e,breakpoints:t.breakpoints.values});let u;typeof c=="object"&&(u=eo({breakpoints:t.breakpoints.values,values:c})),a=it({theme:t},c,(i,l)=>{var v;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${he(d)}`,[`& > .${Ce.item}`]:{paddingTop:he(d)}}:(v=u)!=null&&v.includes(l)?{}:{marginTop:0,[`& > .${Ce.item}`]:{paddingTop:0}}})}return a}function Ko({theme:t,ownerState:o}){const{container:s,columnSpacing:e}=o;let a={};if(s&&e!==0){const c=Ye({values:e,breakpoints:t.breakpoints.values});let u;typeof c=="object"&&(u=eo({breakpoints:t.breakpoints.values,values:c})),a=it({theme:t},c,(i,l)=>{var v;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${he(d)})`,marginLeft:`-${he(d)}`,[`& > .${Ce.item}`]:{paddingLeft:he(d)}}:(v=u)!=null&&v.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Ce.item}`]:{paddingLeft:0}}})}return a}function qo(t,o,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return o.forEach(a=>{const c=t[a];Number(c)>0&&e.push(s[`spacing-${a}-${String(c)}`])}),e}const Qo=Te("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t,{container:e,direction:a,item:c,spacing:u,wrap:i,zeroMinWidth:l,breakpoints:v}=s;let d=[];e&&(d=qo(u,v,o));const h=[];return v.forEach(f=>{const g=s[f];g&&h.push(o[`grid-${f}-${String(g)}`])}),[o.root,e&&o.container,c&&o.item,l&&o.zeroMinWidth,...d,a!=="row"&&o[`direction-xs-${String(a)}`],i!=="wrap"&&o[`wrap-xs-${String(i)}`],...h]}})(({ownerState:t})=>H({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),Zo,Xo,Ko,Ho);function Jo(t,o){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return o.forEach(e=>{const a=t[e];if(Number(a)>0){const c=`spacing-${e}-${String(a)}`;s.push(c)}}),s}const en=t=>{const{classes:o,container:s,direction:e,item:a,spacing:c,wrap:u,zeroMinWidth:i,breakpoints:l}=t;let v=[];s&&(v=Jo(c,l));const d=[];l.forEach(f=>{const g=t[f];g&&d.push(`grid-${f}-${String(g)}`)});const h={root:["root",s&&"container",a&&"item",i&&"zeroMinWidth",...v,e!=="row"&&`direction-xs-${String(e)}`,u!=="wrap"&&`wrap-xs-${String(u)}`,...d]};return Ut(h,Lo,o)},tn=m.forwardRef(function(o,s){const e=Ft({props:o,name:"MuiGrid"}),{breakpoints:a}=co(),c=To(e),{className:u,columns:i,columnSpacing:l,component:v="div",container:d=!1,direction:h="row",item:f=!1,rowSpacing:g,spacing:x=0,wrap:b="wrap",zeroMinWidth:C=!1}=c,O=Wt(c,Go),E=g||x,S=l||x,_=m.useContext(Tt),w=d?i||12:_,y={},A=H({},O);a.keys.forEach(M=>{O[M]!=null&&(y[M]=O[M],delete A[M])});const $=H({},c,{columns:w,container:d,direction:h,item:f,rowSpacing:E,columnSpacing:S,wrap:b,zeroMinWidth:C,spacing:x},y,{breakpoints:a.keys}),D=en($);return n.jsx(Tt.Provider,{value:w,children:n.jsx(Qo,H({ownerState:$,className:Yt(D.root,u),as:v,ref:s},A))})}),ce=tn;function on(t){return Bt("MuiSwitch",t)}const nn=Lt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),U=nn,sn=["className","color","edge","size","sx"],rn=t=>{const{classes:o,edge:s,size:e,color:a,checked:c,disabled:u}=t,i={root:["root",s&&`edge${fe(s)}`,`size${fe(e)}`],switchBase:["switchBase",`color${fe(a)}`,c&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ut(i,on,o);return H({},o,l)},an=Te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.root,s.edge&&o[`edge${fe(s.edge)}`],o[`size${fe(s.size)}`]]}})(({ownerState:t})=>H({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${U.thumb}`]:{width:16,height:16},[`& .${U.switchBase}`]:{padding:4,[`&.${U.checked}`]:{transform:"translateX(16px)"}}})),cn=Te(Oo,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.switchBase,{[`& .${U.input}`]:o.input},s.color!=="default"&&o[`color${fe(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${U.checked}`]:{transform:"translateX(20px)"},[`&.${U.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${U.checked} + .${U.track}`]:{opacity:.5},[`&.${U.disabled} + .${U.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${U.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:o})=>H({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:mt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${U.checked}`]:{color:(t.vars||t).palette[o.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[o.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:mt(t.palette[o.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${U.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${o.color}DisabledColor`]:`${t.palette.mode==="light"?lo(t.palette[o.color].main,.62):uo(t.palette[o.color].main,.55)}`}},[`&.${U.checked} + .${U.track}`]:{backgroundColor:(t.vars||t).palette[o.color].main}})),ln=Te("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,o)=>o.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),dn=Te("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,o)=>o.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),un=m.forwardRef(function(o,s){const e=Ft({props:o,name:"MuiSwitch"}),{className:a,color:c="primary",edge:u=!1,size:i="medium",sx:l}=e,v=Wt(e,sn),d=H({},e,{color:c,edge:u,size:i}),h=rn(d),f=n.jsx(dn,{className:h.thumb,ownerState:d});return n.jsxs(an,{className:Yt(h.root,a),sx:l,ownerState:d,children:[n.jsx(cn,H({type:"checkbox",icon:f,checkedIcon:f,ref:s,ownerState:d},v,{classes:H({},h,{root:h.switchBase})})),n.jsx(ln,{className:h.track,ownerState:d})]})}),pn=un,fn={type:"",parent:""},Ot=({onSelect:t,dataTestId:o,edgeLink:s,hideSelectAll:e})=>{const a=ct({mode:"onChange",defaultValues:fn}),{watch:c,setValue:u}=a,[i,l]=m.useState([]),[v,d]=m.useState(!1),h=b=>{u("parent",(b==null?void 0:b.value)||""),t(b==null?void 0:b.value)},f=b=>b.charAt(0).toUpperCase()+b.slice(1);m.useEffect(()=>{(async()=>{d(!0);try{const O=(await at()).schemas.filter(S=>!S.is_deleted&&S.type).map(S=>(S==null?void 0:S.type)==="thing"?{label:"No Parent",value:S.type}:{label:f(S.type),value:S.type});l(e?O:[{label:"Select all",value:"all"},...O]),s&&u("parent",s)}catch(C){console.warn(C)}finally{d(!1)}})()},[s,u,e]);const g=c("parent"),x=()=>{const b=i==null?void 0:i.find(C=>C.value===g);if(b)return b;if(s)return{label:s,value:s}};return n.jsx(Fe,{dataTestId:o,disabled:!!s,isLoading:v,onSelect:h,options:i||jo,selectedValue:x()})},hn=({selectedType:t,setSelectedFromNode:o,setSelectedToNode:s,edgeLinkData:e,selectedFromNode:a,selectedToNode:c})=>{const u=c==="all",i=a==="all";return n.jsxs(j,{children:[n.jsx(j,{align:"center",direction:"row",justify:"space-between",mb:35,children:n.jsx(j,{align:"center",direction:"row",children:n.jsx(mn,{children:e!=null&&e.refId?"Edit Edge":"Add Edge"})})}),n.jsxs(j,{mb:25,children:[n.jsx(j,{mb:12,children:n.jsx(X,{children:"Source"})}),n.jsx(Ot,{dataTestId:"from_node",edgeLink:e==null?void 0:e.source,hideSelectAll:u,onSelect:o})]}),n.jsxs(j,{mb:10,children:[n.jsx(j,{mb:12,children:n.jsx(X,{children:"Edge Name"})}),n.jsx(j,{mb:12,children:n.jsx(We,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...Be},value:t})})]}),n.jsxs(j,{mb:25,children:[n.jsx(j,{mb:12,children:n.jsx(X,{children:"Destination"})}),n.jsx(Ot,{dataTestId:"to_node",edgeLink:e==null?void 0:e.target,hideSelectAll:i,onSelect:s})]})]})},mn=B(X)` +import{r as m,b as Bt,g as Lt,s as Te,_ as H,u as Ft,ad as co,a as Wt,j as n,c as Yt,bo as Ye,bp as it,d as Ut,e as fe,f as mt,ae as lo,af as uo,b9 as at,o as B,T as X,F as j,aW as Be,q as V,bq as po,br as et,bs as fo,b8 as Gt,O as Ht,aa as Le,aV as pe,a1 as gt,a0 as xt,Z as yt,Y as bt,X as ho,M as mo,ao as wt}from"./index-20ea28f6.js";import{B as go}from"./index-acb0ff6f.js";import{h as ct,B as Oe,F as Zt,j as Xt,o as xo,g as yo,I as bo,p as wo}from"./index-b0d8b87e.js";import{A as Fe,O as jo,a as jt,N as Kt}from"./index-f54022ed.js";import{T as We}from"./index-2cd6e591.js";import{C as le}from"./ClipLoader-4ce369de.js";import{u as qt}from"./index-6141d876.js";import{D as vo}from"./DeleteIcon-304ee64b.js";import{P as Eo}from"./PlusIcon-88e6816e.js";import{p as st,c as Po,g as Co}from"./index-44e303ef.js";import{e as To}from"./Stack-72055e8f.js";import{S as Oo}from"./SwitchBase-262eb8cd.js";import{g as Ao,m as Mo,u as J,b as Ue,t as rt,T as Qt,i as Jt,H as So,j as vt,C as _o,P as $o,k as No}from"./index-f8d502c2.js";import{Z as Io,_ as zo,E as ko,V as I,$ as de,a0 as ue,a1 as Et,P as Re,a2 as De,a3 as Pt,a as K,a4 as Ro,G as Do,C as Vo}from"./three.module-2ce81f73.js";import{A as Ct}from"./AddContentIcon-8ac1fc1c.js";import"./Popover-bf44d96f.js";import"./useSlotProps-c721fa06.js";import"./createSvgIcon-55ea993d.js";import"./TextareaAutosize-0dbbd7d8.js";import"./index.esm-f5056f82.js";import"./InfoIcon-3abfdeb4.js";const Bo=m.createContext(),Tt=Bo;function Lo(t){return Bt("MuiGrid",t)}const Fo=[0,1,2,3,4,5,6,7,8,9,10],Wo=["column-reverse","column","row-reverse","row"],Yo=["nowrap","wrap-reverse","wrap"],Pe=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Uo=Lt("MuiGrid",["root","container","item","zeroMinWidth",...Fo.map(t=>`spacing-xs-${t}`),...Wo.map(t=>`direction-xs-${t}`),...Yo.map(t=>`wrap-xs-${t}`),...Pe.map(t=>`grid-xs-${t}`),...Pe.map(t=>`grid-sm-${t}`),...Pe.map(t=>`grid-md-${t}`),...Pe.map(t=>`grid-lg-${t}`),...Pe.map(t=>`grid-xl-${t}`)]),Ce=Uo,Go=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function he(t){const o=parseFloat(t);return`${o}${String(t).replace(String(o),"")||"px"}`}function Ho({theme:t,ownerState:o}){let s;return t.breakpoints.keys.reduce((e,a)=>{let c={};if(o[a]&&(s=o[a]),!s)return e;if(s===!0)c={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")c={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=Ye({values:o.columns,breakpoints:t.breakpoints.values}),i=typeof u=="object"?u[a]:u;if(i==null)return e;const l=`${Math.round(s/i*1e8)/1e6}%`;let v={};if(o.container&&o.item&&o.columnSpacing!==0){const d=t.spacing(o.columnSpacing);if(d!=="0px"){const h=`calc(${l} + ${he(d)})`;v={flexBasis:h,maxWidth:h}}}c=H({flexBasis:l,flexGrow:0,maxWidth:l},v)}return t.breakpoints.values[a]===0?Object.assign(e,c):e[t.breakpoints.up(a)]=c,e},{})}function Zo({theme:t,ownerState:o}){const s=Ye({values:o.direction,breakpoints:t.breakpoints.values});return it({theme:t},s,e=>{const a={flexDirection:e};return e.indexOf("column")===0&&(a[`& > .${Ce.item}`]={maxWidth:"none"}),a})}function eo({breakpoints:t,values:o}){let s="";Object.keys(o).forEach(a=>{s===""&&o[a]!==0&&(s=a)});const e=Object.keys(t).sort((a,c)=>t[a]-t[c]);return e.slice(0,e.indexOf(s))}function Xo({theme:t,ownerState:o}){const{container:s,rowSpacing:e}=o;let a={};if(s&&e!==0){const c=Ye({values:e,breakpoints:t.breakpoints.values});let u;typeof c=="object"&&(u=eo({breakpoints:t.breakpoints.values,values:c})),a=it({theme:t},c,(i,l)=>{var v;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${he(d)}`,[`& > .${Ce.item}`]:{paddingTop:he(d)}}:(v=u)!=null&&v.includes(l)?{}:{marginTop:0,[`& > .${Ce.item}`]:{paddingTop:0}}})}return a}function Ko({theme:t,ownerState:o}){const{container:s,columnSpacing:e}=o;let a={};if(s&&e!==0){const c=Ye({values:e,breakpoints:t.breakpoints.values});let u;typeof c=="object"&&(u=eo({breakpoints:t.breakpoints.values,values:c})),a=it({theme:t},c,(i,l)=>{var v;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${he(d)})`,marginLeft:`-${he(d)}`,[`& > .${Ce.item}`]:{paddingLeft:he(d)}}:(v=u)!=null&&v.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Ce.item}`]:{paddingLeft:0}}})}return a}function qo(t,o,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return o.forEach(a=>{const c=t[a];Number(c)>0&&e.push(s[`spacing-${a}-${String(c)}`])}),e}const Qo=Te("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t,{container:e,direction:a,item:c,spacing:u,wrap:i,zeroMinWidth:l,breakpoints:v}=s;let d=[];e&&(d=qo(u,v,o));const h=[];return v.forEach(f=>{const g=s[f];g&&h.push(o[`grid-${f}-${String(g)}`])}),[o.root,e&&o.container,c&&o.item,l&&o.zeroMinWidth,...d,a!=="row"&&o[`direction-xs-${String(a)}`],i!=="wrap"&&o[`wrap-xs-${String(i)}`],...h]}})(({ownerState:t})=>H({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),Zo,Xo,Ko,Ho);function Jo(t,o){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return o.forEach(e=>{const a=t[e];if(Number(a)>0){const c=`spacing-${e}-${String(a)}`;s.push(c)}}),s}const en=t=>{const{classes:o,container:s,direction:e,item:a,spacing:c,wrap:u,zeroMinWidth:i,breakpoints:l}=t;let v=[];s&&(v=Jo(c,l));const d=[];l.forEach(f=>{const g=t[f];g&&d.push(`grid-${f}-${String(g)}`)});const h={root:["root",s&&"container",a&&"item",i&&"zeroMinWidth",...v,e!=="row"&&`direction-xs-${String(e)}`,u!=="wrap"&&`wrap-xs-${String(u)}`,...d]};return Ut(h,Lo,o)},tn=m.forwardRef(function(o,s){const e=Ft({props:o,name:"MuiGrid"}),{breakpoints:a}=co(),c=To(e),{className:u,columns:i,columnSpacing:l,component:v="div",container:d=!1,direction:h="row",item:f=!1,rowSpacing:g,spacing:x=0,wrap:b="wrap",zeroMinWidth:C=!1}=c,O=Wt(c,Go),E=g||x,S=l||x,_=m.useContext(Tt),w=d?i||12:_,y={},A=H({},O);a.keys.forEach(M=>{O[M]!=null&&(y[M]=O[M],delete A[M])});const $=H({},c,{columns:w,container:d,direction:h,item:f,rowSpacing:E,columnSpacing:S,wrap:b,zeroMinWidth:C,spacing:x},y,{breakpoints:a.keys}),D=en($);return n.jsx(Tt.Provider,{value:w,children:n.jsx(Qo,H({ownerState:$,className:Yt(D.root,u),as:v,ref:s},A))})}),ce=tn;function on(t){return Bt("MuiSwitch",t)}const nn=Lt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),U=nn,sn=["className","color","edge","size","sx"],rn=t=>{const{classes:o,edge:s,size:e,color:a,checked:c,disabled:u}=t,i={root:["root",s&&`edge${fe(s)}`,`size${fe(e)}`],switchBase:["switchBase",`color${fe(a)}`,c&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ut(i,on,o);return H({},o,l)},an=Te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.root,s.edge&&o[`edge${fe(s.edge)}`],o[`size${fe(s.size)}`]]}})(({ownerState:t})=>H({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${U.thumb}`]:{width:16,height:16},[`& .${U.switchBase}`]:{padding:4,[`&.${U.checked}`]:{transform:"translateX(16px)"}}})),cn=Te(Oo,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.switchBase,{[`& .${U.input}`]:o.input},s.color!=="default"&&o[`color${fe(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${U.checked}`]:{transform:"translateX(20px)"},[`&.${U.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${U.checked} + .${U.track}`]:{opacity:.5},[`&.${U.disabled} + .${U.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${U.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:o})=>H({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:mt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${U.checked}`]:{color:(t.vars||t).palette[o.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[o.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:mt(t.palette[o.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${U.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${o.color}DisabledColor`]:`${t.palette.mode==="light"?lo(t.palette[o.color].main,.62):uo(t.palette[o.color].main,.55)}`}},[`&.${U.checked} + .${U.track}`]:{backgroundColor:(t.vars||t).palette[o.color].main}})),ln=Te("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,o)=>o.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),dn=Te("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,o)=>o.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),un=m.forwardRef(function(o,s){const e=Ft({props:o,name:"MuiSwitch"}),{className:a,color:c="primary",edge:u=!1,size:i="medium",sx:l}=e,v=Wt(e,sn),d=H({},e,{color:c,edge:u,size:i}),h=rn(d),f=n.jsx(dn,{className:h.thumb,ownerState:d});return n.jsxs(an,{className:Yt(h.root,a),sx:l,ownerState:d,children:[n.jsx(cn,H({type:"checkbox",icon:f,checkedIcon:f,ref:s,ownerState:d},v,{classes:H({},h,{root:h.switchBase})})),n.jsx(ln,{className:h.track,ownerState:d})]})}),pn=un,fn={type:"",parent:""},Ot=({onSelect:t,dataTestId:o,edgeLink:s,hideSelectAll:e})=>{const a=ct({mode:"onChange",defaultValues:fn}),{watch:c,setValue:u}=a,[i,l]=m.useState([]),[v,d]=m.useState(!1),h=b=>{u("parent",(b==null?void 0:b.value)||""),t(b==null?void 0:b.value)},f=b=>b.charAt(0).toUpperCase()+b.slice(1);m.useEffect(()=>{(async()=>{d(!0);try{const O=(await at()).schemas.filter(S=>!S.is_deleted&&S.type).map(S=>(S==null?void 0:S.type)==="thing"?{label:"No Parent",value:S.type}:{label:f(S.type),value:S.type});l(e?O:[{label:"Select all",value:"all"},...O]),s&&u("parent",s)}catch(C){console.warn(C)}finally{d(!1)}})()},[s,u,e]);const g=c("parent"),x=()=>{const b=i==null?void 0:i.find(C=>C.value===g);if(b)return b;if(s)return{label:s,value:s}};return n.jsx(Fe,{dataTestId:o,disabled:!!s,isLoading:v,onSelect:h,options:i||jo,selectedValue:x()})},hn=({selectedType:t,setSelectedFromNode:o,setSelectedToNode:s,edgeLinkData:e,selectedFromNode:a,selectedToNode:c})=>{const u=c==="all",i=a==="all";return n.jsxs(j,{children:[n.jsx(j,{align:"center",direction:"row",justify:"space-between",mb:35,children:n.jsx(j,{align:"center",direction:"row",children:n.jsx(mn,{children:e!=null&&e.refId?"Edit Edge":"Add Edge"})})}),n.jsxs(j,{mb:25,children:[n.jsx(j,{mb:12,children:n.jsx(X,{children:"Source"})}),n.jsx(Ot,{dataTestId:"from_node",edgeLink:e==null?void 0:e.source,hideSelectAll:u,onSelect:o})]}),n.jsxs(j,{mb:10,children:[n.jsx(j,{mb:12,children:n.jsx(X,{children:"Edge Name"})}),n.jsx(j,{mb:12,children:n.jsx(We,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...Be},value:t})})]}),n.jsxs(j,{mb:25,children:[n.jsx(j,{mb:12,children:n.jsx(X,{children:"Destination"})}),n.jsx(Ot,{dataTestId:"to_node",edgeLink:e==null?void 0:e.target,hideSelectAll:i,onSelect:s})]})]})},mn=B(X)` font-size: 22px; font-weight: 600; `,gn=({onCancel:t,edgeLinkData:o,setGraphLoading:s})=>{var y,A,$;const e=ct({mode:"onChange"}),{setValue:a,getValues:c}=e,[u,i]=m.useState(!1),[l,v]=m.useState(!1),[d,h]=m.useState(""),[f,g]=m.useState(""),[x,b]=m.useState(""),C=e.watch("type");m.useEffect(()=>{a("type",o==null?void 0:o.edgeType)},[o==null?void 0:o.edgeType,a]),m.useEffect(()=>{h(C)},[C]);const O=e.handleSubmit(async D=>{i(!0),s(!0);const M={source:f,target:x,edge_type:D.type},Y={ref_id:o==null?void 0:o.refId,edge_type:D.type};try{if(o!=null&&o.refId)await po(Y);else if(x&&f)if(f==="all"||x==="all"){const z=(await at()).schemas.filter(L=>!L.is_deleted&&L.type).map(L=>L.type);f==="all"?await Promise.all(z.map(L=>et({...M,source:L}))):x==="all"&&await Promise.all(z.map(L=>et({...M,target:L})))}else await et(M)}catch(ee){console.warn("API Error:",ee)}finally{i(!1),s(!1),g(""),b(""),t()}}),E=(A=(y=c())==null?void 0:y.type)==null?void 0:A.trim(),S=E&&(($=o==null?void 0:o.edgeType)==null?void 0:$.trim())!==E,_=o!=null&&o.refId?u||!S:u||!x||!f||!d,w=async()=>{v(!0),s(!0);try{o!=null&&o.refId&&await fo(o==null?void 0:o.refId)}catch(D){console.warn("API Error:",D)}finally{v(!1),s(!1),g(""),b(""),t()}};return n.jsx(Zt,{...e,children:n.jsxs("form",{id:"add-type-form",onSubmit:O,children:[n.jsx(hn,{edgeLinkData:o,selectedFromNode:f,selectedToNode:x,selectedType:d,setSelectedFromNode:g,setSelectedToNode:b}),n.jsxs(j,{direction:"row",justify:"space-between",mt:20,children:[(o==null?void 0:o.refId)&&n.jsx(j,{direction:"column",children:n.jsxs(yn,{color:"secondary",disabled:l,onClick:w,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",l&&n.jsxs(At,{children:[n.jsx(le,{color:V.lightGray,size:12})," "]})]})}),n.jsxs(xn,{color:"secondary",disabled:_,onClick:O,size:"large",variant:"contained",children:["Confirm",u&&n.jsxs(At,{children:[n.jsx(le,{color:V.lightGray,size:12})," "]})]})]})]})})},xn=B(Oe)` diff --git a/build/assets/index-f564d9af.js b/build/assets/index-4a489d96.js similarity index 92% rename from build/assets/index-f564d9af.js rename to build/assets/index-4a489d96.js index 778247dda..84d916fb0 100644 --- a/build/assets/index-f564d9af.js +++ b/build/assets/index-4a489d96.js @@ -1,4 +1,4 @@ -import{j as e,o as c,q as t,F as i,O as y,r as l,p as b,B as S,y as M,bk as $,bl as D}from"./index-261f9d22.js";import{B as R}from"./index-c59db43d.js";import{S as I}from"./Skeleton-4db3660e.js";import{C as z}from"./ClipLoader-2f6df72c.js";import{B as j}from"./index-a3132f83.js";const A=d=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),e.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),e.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),E=({nodeName:d})=>e.jsx(i,{children:e.jsxs(i,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(G,{children:e.jsx(A,{})}),e.jsxs(T,{children:["Are you sure you want to delete ",d||"this item","?"]})]})}),T=c(i)` +import{j as e,o as c,q as t,F as i,O as y,r as l,p as b,B as S,y as M,bk as $,bl as D}from"./index-20ea28f6.js";import{B as R}from"./index-acb0ff6f.js";import{S as I}from"./Skeleton-1413bdb9.js";import{C as z}from"./ClipLoader-4ce369de.js";import{B as j}from"./index-b0d8b87e.js";const A=d=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),e.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),e.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),E=({nodeName:d})=>e.jsx(i,{children:e.jsxs(i,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(G,{children:e.jsx(A,{})}),e.jsxs(T,{children:["Are you sure you want to delete ",d||"this item","?"]})]})}),T=c(i)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; diff --git a/build/assets/index-fbb9b023.js b/build/assets/index-5cc263b1.js similarity index 98% rename from build/assets/index-fbb9b023.js rename to build/assets/index-5cc263b1.js index 0ab249dcf..2787055ca 100644 --- a/build/assets/index-fbb9b023.js +++ b/build/assets/index-5cc263b1.js @@ -1,4 +1,4 @@ -import{j as e,O as i,Q as y,K as H,B as M,C as d,J as S,U as F,T as o,o as a,q as s,F as l}from"./index-261f9d22.js";import{A as Z}from"./AddContentIcon-00c7fa22.js";import{C as A}from"./index-a3132f83.js";const B=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_27)",children:e.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),I=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),V=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_29)",children:e.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),_=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_26)",children:e.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),D=()=>{const{open:t}=i("sourcesTable"),{open:h}=i("addItem"),{open:p}=i("addContent"),{open:x}=i("settings"),{open:u}=i("blueprintGraph"),{open:m}=i("feedback"),g=y(),{resetAiSummaryAnswer:j,setNewLoading:b}=H(),{abortFetchData:w}=M(n=>n),k=d(n=>n.customSchemaFeatureFlag),f=d(n=>n.userFeedbackFeatureFlag),[c]=S(n=>[n.isAdmin]),L=F(),v=()=>{b(null),w(),j(),g("/")};return e.jsxs($,{children:[e.jsx(U,{onClick:v,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),c?e.jsxs(C,{"data-testid":"add-item-modal",onClick:h,children:[e.jsx(r,{children:e.jsx(B,{})}),e.jsx(o,{children:"Add Item"})]}):null,e.jsxs(C,{"data-testid":"add-content-modal",onClick:p,children:[e.jsx(r,{children:e.jsx(Z,{})}),e.jsx(o,{children:"Add Content"})]}),e.jsxs(C,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(r,{children:e.jsx(_,{})}),e.jsx(o,{children:"Source Table"})]}),k&&c?e.jsxs(C,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:u,children:[e.jsx(r,{children:e.jsx(A,{})}),e.jsx(o,{children:"Blueprint"})]}):null,e.jsxs(C,{"data-testid":"settings-modal",onClick:x,children:[e.jsx(r,{children:e.jsx(V,{})}),e.jsx(o,{children:"Settings"})]}),f&&L?e.jsxs(T,{"data-testid":"feedback-modal",onClick:m,children:[e.jsx(r,{children:e.jsx(I,{})}),e.jsx(o,{children:"Send Feedback"})]}):null]})},$=a(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{j as e,O as i,Q as y,K as H,B as M,C as d,J as S,U as F,T as o,o as a,q as s,F as l}from"./index-20ea28f6.js";import{A as Z}from"./AddContentIcon-8ac1fc1c.js";import{C as A}from"./index-b0d8b87e.js";const B=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_27)",children:e.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),I=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),V=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_29)",children:e.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),_=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_26)",children:e.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),D=()=>{const{open:t}=i("sourcesTable"),{open:h}=i("addItem"),{open:p}=i("addContent"),{open:x}=i("settings"),{open:u}=i("blueprintGraph"),{open:m}=i("feedback"),g=y(),{resetAiSummaryAnswer:j,setNewLoading:b}=H(),{abortFetchData:w}=M(n=>n),k=d(n=>n.customSchemaFeatureFlag),f=d(n=>n.userFeedbackFeatureFlag),[c]=S(n=>[n.isAdmin]),L=F(),v=()=>{b(null),w(),j(),g("/")};return e.jsxs($,{children:[e.jsx(U,{onClick:v,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),c?e.jsxs(C,{"data-testid":"add-item-modal",onClick:h,children:[e.jsx(r,{children:e.jsx(B,{})}),e.jsx(o,{children:"Add Item"})]}):null,e.jsxs(C,{"data-testid":"add-content-modal",onClick:p,children:[e.jsx(r,{children:e.jsx(Z,{})}),e.jsx(o,{children:"Add Content"})]}),e.jsxs(C,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(r,{children:e.jsx(_,{})}),e.jsx(o,{children:"Source Table"})]}),k&&c?e.jsxs(C,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:u,children:[e.jsx(r,{children:e.jsx(A,{})}),e.jsx(o,{children:"Blueprint"})]}):null,e.jsxs(C,{"data-testid":"settings-modal",onClick:x,children:[e.jsx(r,{children:e.jsx(V,{})}),e.jsx(o,{children:"Settings"})]}),f&&L?e.jsxs(T,{"data-testid":"feedback-modal",onClick:m,children:[e.jsx(r,{children:e.jsx(I,{})}),e.jsx(o,{children:"Send Feedback"})]}):null]})},$=a(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 31; transition: opacity 1s; diff --git a/build/assets/index-2bf61ac9.js b/build/assets/index-6141d876.js similarity index 96% rename from build/assets/index-2bf61ac9.js rename to build/assets/index-6141d876.js index 4f11f8b12..bf43b7700 100644 --- a/build/assets/index-2bf61ac9.js +++ b/build/assets/index-6141d876.js @@ -1,4 +1,4 @@ -import{w as n,o as g,q as t,F as d,j as c}from"./index-261f9d22.js";const l={schemas:[],links:[]},p=n((a,e)=>({...l,setSchemas:s=>{a({schemas:s.map(r=>({...r}))})},setSchemaLinks:s=>{a({links:s})},getPrimaryColorByType:s=>{const r=e().schemas.find(o=>o.type===s);return r?r.primary_color:void 0}})),_=({type:a})=>{let e;const[s]=p(i=>[i.getPrimaryColorByType]),r=a.toLowerCase(),o=s(a);switch(r){case"video":case"twitter_space":case"podcast":case"clip":e={iconStart:"video_badge.svg",color:o??t.CLIP};break;case"show":e={iconStart:"show_badge.svg",color:o??t.SHOW};break;case"tweet":e={iconStart:"twitter_badge.svg",color:o??t.TWEET};break;case"episode":e={iconStart:"audio_badge.svg",color:o??t.EPISODE};break;case"document":e={iconStart:"notes_badge.svg",color:o??t.TEXT};break;case"organization":e={iconStart:"organization_badge.svg",color:o??t.ORGANIZATION};break;case"person":case"guest":case"host":e={iconStart:"person_badge.svg",color:o??t.PERSON};break;case"event":e={iconStart:"event_badge.svg",color:o??t.EVENT};break;case"topic":e={iconStart:"topic_badge.svg",color:o??t.TOPIC};break;default:e={iconStart:"thing_badge.svg",color:o??t.THING};break}return c.jsx(b,{...e,label:a})},b=({iconStart:a,color:e,label:s})=>c.jsxs(m,{color:e,label:s,children:[c.jsx("img",{alt:s,className:"badge__img",src:a}),c.jsx("div",{className:"badge__label",children:s})]}),m=g(d).attrs({direction:"row"})` +import{w as n,o as g,q as t,F as d,j as c}from"./index-20ea28f6.js";const l={schemas:[],links:[]},p=n((a,e)=>({...l,setSchemas:s=>{a({schemas:s.map(r=>({...r}))})},setSchemaLinks:s=>{a({links:s})},getPrimaryColorByType:s=>{const r=e().schemas.find(o=>o.type===s);return r?r.primary_color:void 0}})),_=({type:a})=>{let e;const[s]=p(i=>[i.getPrimaryColorByType]),r=a.toLowerCase(),o=s(a);switch(r){case"video":case"twitter_space":case"podcast":case"clip":e={iconStart:"video_badge.svg",color:o??t.CLIP};break;case"show":e={iconStart:"show_badge.svg",color:o??t.SHOW};break;case"tweet":e={iconStart:"twitter_badge.svg",color:o??t.TWEET};break;case"episode":e={iconStart:"audio_badge.svg",color:o??t.EPISODE};break;case"document":e={iconStart:"notes_badge.svg",color:o??t.TEXT};break;case"organization":e={iconStart:"organization_badge.svg",color:o??t.ORGANIZATION};break;case"person":case"guest":case"host":e={iconStart:"person_badge.svg",color:o??t.PERSON};break;case"event":e={iconStart:"event_badge.svg",color:o??t.EVENT};break;case"topic":e={iconStart:"topic_badge.svg",color:o??t.TOPIC};break;default:e={iconStart:"thing_badge.svg",color:o??t.THING};break}return c.jsx(b,{...e,label:a})},b=({iconStart:a,color:e,label:s})=>c.jsxs(m,{color:e,label:s,children:[c.jsx("img",{alt:s,className:"badge__img",src:a}),c.jsx("div",{className:"badge__label",children:s})]}),m=g(d).attrs({direction:"row"})` cursor: pointer; background: ${({color:a})=>a}; border-radius: 3px; diff --git a/build/assets/index-444db83c.js b/build/assets/index-740426c2.js similarity index 92% rename from build/assets/index-444db83c.js rename to build/assets/index-740426c2.js index 1b0bf0de7..450e8ecd0 100644 --- a/build/assets/index-444db83c.js +++ b/build/assets/index-740426c2.js @@ -1,4 +1,4 @@ -import{aa as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW as F,b8 as se,C as ne,b9 as oe,O as D,B as re,p as ie,aV as I,ac as ae,ab as ce,b6 as le}from"./index-261f9d22.js";import{B as C,g as de,h as pe,F as me}from"./index-a3132f83.js";import{B as xe}from"./index-c59db43d.js";import{S as ue}from"./index-7d840c3c.js";import{e as he}from"./index.esm-0d26a2bd.js";import{C as fe}from"./CheckIcon-0a716700.js";import{C as W}from"./ClipLoader-2f6df72c.js";import{n as z,A as ye,O as ge,i as je}from"./index-c4e7eaf1.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-d9f514ff.js";import{c as we}from"./index-64f1c910.js";import"./index-2bf61ac9.js";import"./Stack-4e5cf8f3.js";import"./useSlotProps-987deb9d.js";import"./Popover-548ea313.js";import"./createSvgIcon-17709ccc.js";import"./TextareaAutosize-0799e080.js";import"./three.module-2ce81f73.js";import"./InfoIcon-d22daefc.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,x,d,r)=>{const m=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:x,pubkey:r};return be(m,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const x=V(l=>l.budget),[d,r]=y.useState(10),m="node";return y.useEffect(()=>{(async()=>{try{const h=await te(m);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[m]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ee(x)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{children:e.jsxs(ve,{children:[e.jsx(he,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aa as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW as F,b8 as se,C as ne,b9 as oe,O as D,B as re,p as ie,aV as I,ac as ae,ab as ce,b6 as le}from"./index-20ea28f6.js";import{B as C,g as de,h as pe,F as me}from"./index-b0d8b87e.js";import{B as xe}from"./index-acb0ff6f.js";import{S as ue}from"./index-275839ae.js";import{e as he}from"./index.esm-f5056f82.js";import{C as fe}from"./CheckIcon-9a593d48.js";import{C as W}from"./ClipLoader-4ce369de.js";import{n as z,A as ye,O as ge,i as je}from"./index-f54022ed.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-2cd6e591.js";import{c as we}from"./index-64f1c910.js";import"./index-6141d876.js";import"./Stack-72055e8f.js";import"./useSlotProps-c721fa06.js";import"./Popover-bf44d96f.js";import"./createSvgIcon-55ea993d.js";import"./TextareaAutosize-0dbbd7d8.js";import"./three.module-2ce81f73.js";import"./InfoIcon-3abfdeb4.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,x,d,r)=>{const m=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:x,pubkey:r};return be(m,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const x=V(l=>l.budget),[d,r]=y.useState(10),m="node";return y.useEffect(()=>{(async()=>{try{const h=await te(m);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[m]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ee(x)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{children:e.jsxs(ve,{children:[e.jsx(he,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${b.GRAY7}; diff --git a/build/assets/index-fc4ceba0.js b/build/assets/index-7e9f5177.js similarity index 99% rename from build/assets/index-fc4ceba0.js rename to build/assets/index-7e9f5177.js index 5168558fd..8c370e830 100644 --- a/build/assets/index-fc4ceba0.js +++ b/build/assets/index-7e9f5177.js @@ -1,4 +1,4 @@ -import{r as b,_ as $a,j as M,R as Zr,w as uu,o as ze,q as we,F as xs,B as xn,J as hu,A as hr,K as ef,y as Jt,p as nt,V as bo,v as du,X as tf,Y as sf,Z as nf,a0 as rf,a1 as of,a2 as af,a3 as cf,a4 as lf,a5 as uf,O as $o,a6 as hf,a7 as df,a8 as ff,a9 as pf,M as mf}from"./index-261f9d22.js";import{u as ge,a as Xa,e as Qa,b as Rt,L as _f,c as gf,d as vf,m as yf,f as xf,g as Tf,h as fu,H as dr,t as pu,T as wf,i as kf,j as Sf,D as Cf,C as bf,P as Ef,k as Of}from"./index-3c085423.js";import{D as Cr,F as Af,V as X,a as Fe,T as Eo,b as Mf,C as hs,W as Df,c as Rf,E as Ka,d as Tt,N as Gn,e as Pf,B as oi,U as ps,M as If,f as Nf,g as Ff,h as Uf,i as Lf,j as br,k as Mi,S as es,l as Bf,m as Q,R as zf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as Vf,L as $r,s as jf,t as _u,u as gu,v as vu,w as yu,x as el,y as Hf,z as qf,A as Er,H as Wf,G as Gf,I as Yf,J as Zf,K as $f,O as Xf,Q as fr,X as Qf,Y as Kf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,A as Jf,O as ep,b as tp}from"./index-a3132f83.js";import{T as sp}from"./TextareaAutosize-0799e080.js";import{T as tl,u as np}from"./index-2bf61ac9.js";import{D as ip}from"./DeleteIcon-d3ad49c0.js";import{M as rp,a as op}from"./index.esm-0d26a2bd.js";import{u as ap}from"./index-20ebb136.js";import{M as cp,A as lp}from"./MergeIcon-81475345.js";import{P as up}from"./PlusIcon-788eea40.js";import{P as hp}from"./Popover-548ea313.js";import{C as dp}from"./ClipLoader-2f6df72c.js";import"./useSlotProps-987deb9d.js";function fp(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const f=e;e=u?h:Object.assign({},e,h),t.forEach(d=>d(e,f))}},i=()=>e,r=(l,u=i,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=u(e);function d(){const m=u(e);if(!h(f,m)){const p=f;l(f=m,p)}}return t.add(d),()=>t.delete(d)},c={setState:s,getState:i,subscribe:(l,u,h)=>u||h?r(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,i,c),c}const pp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sl=pp?b.useEffect:b.useLayoutEffect;function mp(n){const e=typeof n=="function"?fp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(_=>_+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let f,d=!1;(a.current!==o||c.current!==s||l.current!==i||u.current)&&(f=s(o),d=!i(h.current,f)),sl(()=>{d&&(h.current=f),a.current=o,c.current=s,l.current=i,u.current=!1});const m=b.useRef(o);sl(()=>{const _=()=>{try{const S=e.getState(),T=c.current(S);l.current(h.current,T)||(a.current=S,h.current=T,r())}catch{u.current=!0,r()}},v=e.subscribe(_);return e.getState()!==m.current&&_(),v},[]);const p=d?f:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const _p=mp(n=>(Cr.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},Cr.onLoad=()=>{n({active:!1})},Cr.onError=e=>n(t=>({errors:[...t.errors,e]})),Cr.onProgress=(e,t,s)=>{t===s&&(fi=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),gp=n=>`Loading ${n.toFixed(2)}%`;function vp({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:i=gp,initialState:r=o=>o}){const{active:o,progress:a}=_p(),c=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,f]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?b.createElement("div",{style:{...Or.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Or.inner,...e}},b.createElement("div",{style:{...Or.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Or.data,...s}})))):null}const Or={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}};let pi;function yp(){var n;if(pi!==void 0)return pi;try{let e;const t=document.createElement("canvas");return pi=!!(window.WebGL2RenderingContext&&(e=t.getContext("webgl2"))),e&&((n=e.getExtension("WEBGL_lose_context"))==null||n.loseContext()),pi}catch{return pi=!1}}const Xo=new Af,Qo=new X,En=new X,Pt=new X,is=new X,qt=new X,rs=new X,os=new X,mi=new X,_i=new X,gi=new X,Ar=new X,vi=new X,yi=new X,xi=new X;class xp{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new X,this.endPoint=new X,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Xo,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){En.copy(e),En.x=Math.min(e.x,t.x),En.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),Pt.setFromMatrixPosition(this.camera.matrixWorld),is.copy(En),qt.set(t.x,En.y,0),rs.copy(t),os.set(En.x,t.y,0),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),vi.copy(is).sub(Pt),yi.copy(qt).sub(Pt),xi.copy(rs).sub(Pt),vi.normalize(),yi.normalize(),xi.normalize(),vi.multiplyScalar(this.deep),yi.multiplyScalar(this.deep),xi.multiplyScalar(this.deep),vi.add(Pt),yi.add(Pt),xi.add(Pt);var s=Xo.planes;s[0].setFromCoplanarPoints(Pt,is,qt),s[1].setFromCoplanarPoints(Pt,qt,rs),s[2].setFromCoplanarPoints(rs,os,Pt),s[3].setFromCoplanarPoints(os,is,Pt),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(xi,yi,vi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const i=Math.min(e.x,t.x),r=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);is.set(i,r,-1),qt.set(o,r,-1),rs.set(o,a,-1),os.set(i,a,-1),mi.set(i,r,1),_i.set(o,r,1),gi.set(o,a,1),Ar.set(i,a,1),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),mi.unproject(this.camera),_i.unproject(this.camera),gi.unproject(this.camera),Ar.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Ar,os),s[3].setFromCoplanarPoints(Ar,mi,is),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(gi,_i,mi),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),Qo.copy(t.geometry.boundingSphere.center),Qo.applyMatrix4(t.matrixWorld),e.containsPoint(Qo)&&this.collection.push(t)),t.children.length>0)for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:f,size:d,get:m}=ge(),[p,_]=b.useState(!1),[v,S]=b.useReducer((w,{object:k,shift:x})=>k===void 0?[]:Array.isArray(k)?k:x?w.includes(k)?w.filter(C=>C!==k):[k,...w]:w[0]===k?[]:[k],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const T=b.useCallback(w=>{w.stopPropagation(),S({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=b.useCallback(w=>!p&&S({}),[p]),g=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const w=new xp(l,g.current),k=document.createElement("div");k.style.pointerEvents="none",k.style.border=i,k.style.backgroundColor=r,k.style.position="fixed";const x=new Fe,C=new Fe,E=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,Te){const{offsetX:ae,offsetY:$}=B,{width:me,height:Ye}=d;Te.set(ae/me*2-1,-($/Ye)*2+1)}function F(B){var Te;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.appendChild(k),k.style.left=`${B.clientX}px`,k.style.top=`${B.clientY}px`,k.style.width="0px",k.style.height="0px",x.x=B.clientX,x.y=B.clientY}function N(B){E.x=Math.max(x.x,B.clientX),E.y=Math.max(x.y,B.clientY),C.x=Math.min(x.x,B.clientX),C.y=Math.min(x.y,B.clientY),k.style.left=`${C.x}px`,k.style.top=`${C.y}px`,k.style.width=`${E.x-C.x}px`,k.style.height=`${E.y-C.y}px`}function U(){if(R){var B;f&&(f.enabled=A),c({enabled:O}),R=!1,(B=k.parentElement)==null||B.removeChild(k)}}function V(B){B.shiftKey&&(F(B),P(B,w.startPoint))}let z=[];function q(B){if(R){N(B),P(B,w.endPoint);const Te=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);Tp(Te,z)||(z=Te,S({object:o(Te)}))}}function j(B){R&&U()}return document.addEventListener("pointerdown",V,{passive:!0}),document.addEventListener("pointermove",q,{passive:!0,capture:!0}),document.addEventListener("pointerup",j,{passive:!0}),()=>{document.removeEventListener("pointerdown",V),document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",j)}},[d.width,d.height,u,l,f,h]),b.createElement("group",$a({ref:g,onClick:T,onPointerOver:()=>_(!0),onPointerOut:()=>_(!1),onPointerMissed:y},a),b.createElement(wp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ge(i=>i.gl),s=Xa(Eo,nl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),nl(n)){const i=Object.keys(n),r={};return i.forEach(o=>Object.assign(r,{[o]:s[i.indexOf(o)]})),r}else return s}on.preload=n=>Xa.preload(Eo,n);on.clear=n=>Xa.clear(Eo,n);/*! +import{r as b,_ as $a,j as M,R as Zr,w as uu,o as ze,q as we,F as xs,B as xn,J as hu,A as hr,K as ef,y as Jt,p as nt,V as bo,v as du,X as tf,Y as sf,Z as nf,a0 as rf,a1 as of,a2 as af,a3 as cf,a4 as lf,a5 as uf,O as $o,a6 as hf,a7 as df,a8 as ff,a9 as pf,M as mf}from"./index-20ea28f6.js";import{u as ge,a as Xa,e as Qa,b as Rt,L as _f,c as gf,d as vf,m as yf,f as xf,g as Tf,h as fu,H as dr,t as pu,T as wf,i as kf,j as Sf,D as Cf,C as bf,P as Ef,k as Of}from"./index-f8d502c2.js";import{D as Cr,F as Af,V as X,a as Fe,T as Eo,b as Mf,C as hs,W as Df,c as Rf,E as Ka,d as Tt,N as Gn,e as Pf,B as oi,U as ps,M as If,f as Nf,g as Ff,h as Uf,i as Lf,j as br,k as Mi,S as es,l as Bf,m as Q,R as zf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as Vf,L as $r,s as jf,t as _u,u as gu,v as vu,w as yu,x as el,y as Hf,z as qf,A as Er,H as Wf,G as Gf,I as Yf,J as Zf,K as $f,O as Xf,Q as fr,X as Qf,Y as Kf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,A as Jf,O as ep,b as tp}from"./index-b0d8b87e.js";import{T as sp}from"./TextareaAutosize-0dbbd7d8.js";import{T as tl,u as np}from"./index-6141d876.js";import{D as ip}from"./DeleteIcon-304ee64b.js";import{M as rp,a as op}from"./index.esm-f5056f82.js";import{u as ap}from"./index-1baf3f02.js";import{M as cp,A as lp}from"./MergeIcon-5e442f11.js";import{P as up}from"./PlusIcon-88e6816e.js";import{P as hp}from"./Popover-bf44d96f.js";import{C as dp}from"./ClipLoader-4ce369de.js";import"./useSlotProps-c721fa06.js";function fp(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const f=e;e=u?h:Object.assign({},e,h),t.forEach(d=>d(e,f))}},i=()=>e,r=(l,u=i,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=u(e);function d(){const m=u(e);if(!h(f,m)){const p=f;l(f=m,p)}}return t.add(d),()=>t.delete(d)},c={setState:s,getState:i,subscribe:(l,u,h)=>u||h?r(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,i,c),c}const pp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sl=pp?b.useEffect:b.useLayoutEffect;function mp(n){const e=typeof n=="function"?fp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(_=>_+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let f,d=!1;(a.current!==o||c.current!==s||l.current!==i||u.current)&&(f=s(o),d=!i(h.current,f)),sl(()=>{d&&(h.current=f),a.current=o,c.current=s,l.current=i,u.current=!1});const m=b.useRef(o);sl(()=>{const _=()=>{try{const S=e.getState(),T=c.current(S);l.current(h.current,T)||(a.current=S,h.current=T,r())}catch{u.current=!0,r()}},v=e.subscribe(_);return e.getState()!==m.current&&_(),v},[]);const p=d?f:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const _p=mp(n=>(Cr.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},Cr.onLoad=()=>{n({active:!1})},Cr.onError=e=>n(t=>({errors:[...t.errors,e]})),Cr.onProgress=(e,t,s)=>{t===s&&(fi=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),gp=n=>`Loading ${n.toFixed(2)}%`;function vp({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:i=gp,initialState:r=o=>o}){const{active:o,progress:a}=_p(),c=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,f]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?b.createElement("div",{style:{...Or.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Or.inner,...e}},b.createElement("div",{style:{...Or.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Or.data,...s}})))):null}const Or={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}};let pi;function yp(){var n;if(pi!==void 0)return pi;try{let e;const t=document.createElement("canvas");return pi=!!(window.WebGL2RenderingContext&&(e=t.getContext("webgl2"))),e&&((n=e.getExtension("WEBGL_lose_context"))==null||n.loseContext()),pi}catch{return pi=!1}}const Xo=new Af,Qo=new X,En=new X,Pt=new X,is=new X,qt=new X,rs=new X,os=new X,mi=new X,_i=new X,gi=new X,Ar=new X,vi=new X,yi=new X,xi=new X;class xp{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new X,this.endPoint=new X,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Xo,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){En.copy(e),En.x=Math.min(e.x,t.x),En.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),Pt.setFromMatrixPosition(this.camera.matrixWorld),is.copy(En),qt.set(t.x,En.y,0),rs.copy(t),os.set(En.x,t.y,0),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),vi.copy(is).sub(Pt),yi.copy(qt).sub(Pt),xi.copy(rs).sub(Pt),vi.normalize(),yi.normalize(),xi.normalize(),vi.multiplyScalar(this.deep),yi.multiplyScalar(this.deep),xi.multiplyScalar(this.deep),vi.add(Pt),yi.add(Pt),xi.add(Pt);var s=Xo.planes;s[0].setFromCoplanarPoints(Pt,is,qt),s[1].setFromCoplanarPoints(Pt,qt,rs),s[2].setFromCoplanarPoints(rs,os,Pt),s[3].setFromCoplanarPoints(os,is,Pt),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(xi,yi,vi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const i=Math.min(e.x,t.x),r=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);is.set(i,r,-1),qt.set(o,r,-1),rs.set(o,a,-1),os.set(i,a,-1),mi.set(i,r,1),_i.set(o,r,1),gi.set(o,a,1),Ar.set(i,a,1),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),mi.unproject(this.camera),_i.unproject(this.camera),gi.unproject(this.camera),Ar.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Ar,os),s[3].setFromCoplanarPoints(Ar,mi,is),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(gi,_i,mi),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),Qo.copy(t.geometry.boundingSphere.center),Qo.applyMatrix4(t.matrixWorld),e.containsPoint(Qo)&&this.collection.push(t)),t.children.length>0)for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:f,size:d,get:m}=ge(),[p,_]=b.useState(!1),[v,S]=b.useReducer((w,{object:k,shift:x})=>k===void 0?[]:Array.isArray(k)?k:x?w.includes(k)?w.filter(C=>C!==k):[k,...w]:w[0]===k?[]:[k],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const T=b.useCallback(w=>{w.stopPropagation(),S({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=b.useCallback(w=>!p&&S({}),[p]),g=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const w=new xp(l,g.current),k=document.createElement("div");k.style.pointerEvents="none",k.style.border=i,k.style.backgroundColor=r,k.style.position="fixed";const x=new Fe,C=new Fe,E=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,Te){const{offsetX:ae,offsetY:$}=B,{width:me,height:Ye}=d;Te.set(ae/me*2-1,-($/Ye)*2+1)}function F(B){var Te;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.appendChild(k),k.style.left=`${B.clientX}px`,k.style.top=`${B.clientY}px`,k.style.width="0px",k.style.height="0px",x.x=B.clientX,x.y=B.clientY}function N(B){E.x=Math.max(x.x,B.clientX),E.y=Math.max(x.y,B.clientY),C.x=Math.min(x.x,B.clientX),C.y=Math.min(x.y,B.clientY),k.style.left=`${C.x}px`,k.style.top=`${C.y}px`,k.style.width=`${E.x-C.x}px`,k.style.height=`${E.y-C.y}px`}function U(){if(R){var B;f&&(f.enabled=A),c({enabled:O}),R=!1,(B=k.parentElement)==null||B.removeChild(k)}}function V(B){B.shiftKey&&(F(B),P(B,w.startPoint))}let z=[];function q(B){if(R){N(B),P(B,w.endPoint);const Te=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);Tp(Te,z)||(z=Te,S({object:o(Te)}))}}function j(B){R&&U()}return document.addEventListener("pointerdown",V,{passive:!0}),document.addEventListener("pointermove",q,{passive:!0,capture:!0}),document.addEventListener("pointerup",j,{passive:!0}),()=>{document.removeEventListener("pointerdown",V),document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",j)}},[d.width,d.height,u,l,f,h]),b.createElement("group",$a({ref:g,onClick:T,onPointerOver:()=>_(!0),onPointerOut:()=>_(!1),onPointerMissed:y},a),b.createElement(wp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ge(i=>i.gl),s=Xa(Eo,nl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),nl(n)){const i=Object.keys(n),r={};return i.forEach(o=>Object.assign(r,{[o]:s[i.indexOf(o)]})),r}else return s}on.preload=n=>Xa.preload(Eo,n);on.clear=n=>Xa.clear(Eo,n);/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu diff --git a/build/assets/index-c7182477.js b/build/assets/index-8b4e276b.js similarity index 96% rename from build/assets/index-c7182477.js rename to build/assets/index-8b4e276b.js index a1c90d08e..47ace4c1f 100644 --- a/build/assets/index-c7182477.js +++ b/build/assets/index-8b4e276b.js @@ -1,4 +1,4 @@ -import{aX as B,aY as v,aZ as b,a_ as I,a$ as _,b0 as U,b1 as O,o as x,q as l,J as Z,r as g,j as e,F as n,b2 as K,T as j,b3 as X,aW as Q,O as ee,aV as f,b4 as te,ab as se,b5 as ne,b6 as oe,aa as re,b7 as ie,N as ae}from"./index-261f9d22.js";import{B as w,h as ce,F as le}from"./index-a3132f83.js";import{B as de}from"./index-c59db43d.js";import{S as ue}from"./index-7d840c3c.js";import{e as xe}from"./index.esm-0d26a2bd.js";import{C as he}from"./CheckIcon-0a716700.js";import{C as ge}from"./ClipLoader-2f6df72c.js";import{T as z}from"./index-d9f514ff.js";import"./InfoIcon-d22daefc.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ye=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,_e=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function $e(t){return[fe,_e,pe,we,me,je].some(i=>i.test(t))?B:Se.test(t)?v:R.test(t)?b:be.test(t)?I:ye.test(t)?_:ve.test(t)?U:O}const Ee=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},L=t=>!!t&&[b,v,_].includes(t),Ce=({onClick:t,loading:s,type:i,error:o})=>{const r=Z(u=>u.budget),[h,d]=g.useState(10),a=L(i)?"radar":"add_node";return g.useEffect(()=>{(async()=>{try{const c=await X(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Be,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(ze,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[K(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ge,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Le,{children:e.jsxs(Re,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aX as B,aY as v,aZ as b,a_ as I,a$ as _,b0 as U,b1 as O,o as x,q as l,J as Z,r as g,j as e,F as n,b2 as K,T as j,b3 as X,aW as Q,O as ee,aV as f,b4 as te,ab as se,b5 as ne,b6 as oe,aa as re,b7 as ie,N as ae}from"./index-20ea28f6.js";import{B as w,h as ce,F as le}from"./index-b0d8b87e.js";import{B as de}from"./index-acb0ff6f.js";import{S as ue}from"./index-275839ae.js";import{e as xe}from"./index.esm-f5056f82.js";import{C as he}from"./CheckIcon-9a593d48.js";import{C as ge}from"./ClipLoader-4ce369de.js";import{T as z}from"./index-2cd6e591.js";import"./InfoIcon-3abfdeb4.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ye=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,_e=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function $e(t){return[fe,_e,pe,we,me,je].some(i=>i.test(t))?B:Se.test(t)?v:R.test(t)?b:be.test(t)?I:ye.test(t)?_:ve.test(t)?U:O}const Ee=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},L=t=>!!t&&[b,v,_].includes(t),Ce=({onClick:t,loading:s,type:i,error:o})=>{const r=Z(u=>u.budget),[h,d]=g.useState(10),a=L(i)?"radar":"add_node";return g.useEffect(()=>{(async()=>{try{const c=await X(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Be,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(ze,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[K(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ge,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Le,{children:e.jsxs(Re,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${l.GRAY7}; diff --git a/build/assets/index-3daae87c.js b/build/assets/index-8ca28a87.js similarity index 98% rename from build/assets/index-3daae87c.js rename to build/assets/index-8ca28a87.js index a5090f1ab..5561f55af 100644 --- a/build/assets/index-3daae87c.js +++ b/build/assets/index-8ca28a87.js @@ -1,4 +1,4 @@ -import{r as h,b as q,g as Q,s as H,_ as N,u as X,a as K,j as e,c as J,d as ee,e as P,ae as ut,f as oe,af as gt,o as d,q as x,T as _,F as g,O as E,ba as ft,ah as se,R as ne,B as ae,ab as mt,bb as bt,bc as Ge,v as re,bd as Ze,a8 as ye,aZ as ke,aY as _e,a$ as Le,be as Ct,J as Ye,bf as jt,bg as qe,bh as yt,aW as wt,bi as le,bj as vt,A as Tt,C as St,U as $t}from"./index-261f9d22.js";import{B as ce}from"./index-c59db43d.js";import{B as W,I as Y,j as te,h as we,F as ve}from"./index-a3132f83.js";import{T as Me,s as D,a as Qe,S as Xe,A as Te,N as Ke,F as Je,b as et,E as kt,D as _t,c as tt,Q as st,V as ot,d as Lt}from"./NodeCircleIcon-6bd29553.js";import{P as Mt}from"./PlusIcon-788eea40.js";import{C as M}from"./ClipLoader-2f6df72c.js";import{f as Nt,g as Bt,h as zt,a as It,i as Rt}from"./index.esm-0d26a2bd.js";import{P as Se,a as Et}from"./Popover-548ea313.js";import{S as nt,T as Ne}from"./SearchIcon-f71ea369.js";import{I as At,A as $e,O as rt,T as it}from"./index-c4e7eaf1.js";import{B as Ot,T as Ft}from"./index-d9f514ff.js";import{D as Ht}from"./DeleteIcon-d3ad49c0.js";import{u as I}from"./index-f9fcf6b6.js";import{M as Be,A as Wt}from"./MergeIcon-81475345.js";import{C as at}from"./CheckIcon-0a716700.js";import{T as Pt,a as Ut}from"./Tabs-3aa09f8d.js";import"./useSlotProps-987deb9d.js";import"./Stack-4e5cf8f3.js";import"./index-2bf61ac9.js";import"./createSvgIcon-17709ccc.js";import"./TextareaAutosize-0799e080.js";import"./InfoIcon-d22daefc.js";const Dt=h.createContext(),lt=Dt;function Vt(t){return q("MuiTable",t)}Q("MuiTable",["root","stickyHeader"]);const Gt=["className","component","padding","size","stickyHeader"],Zt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Vt,s)},Yt=H("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":N({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),ze="table",qt=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTable"}),{className:a,component:l=ze,padding:i="normal",size:o="medium",stickyHeader:c=!1}=r,u=K(r,Gt),m=N({},r,{component:l,padding:i,size:o,stickyHeader:c}),p=Zt(m),C=h.useMemo(()=>({padding:i,size:o,stickyHeader:c}),[i,o,c]);return e.jsx(lt.Provider,{value:C,children:e.jsx(Yt,N({as:l,role:l===ze?null:"table",ref:n,className:J(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Xt(t){return q("MuiTableBody",t)}Q("MuiTableBody",["root"]);const Kt=["className","component"],Jt=t=>{const{classes:s}=t;return ee({root:["root"]},Xt,s)},es=H("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),ts={variant:"body"},Ie="tbody",ss=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTableBody"}),{className:a,component:l=Ie}=r,i=K(r,Kt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:J(c.root,a),as:l,ref:n,role:l===Ie?null:"rowgroup",ownerState:o},i))})}),os=ss;function ns(t){return q("MuiTableCell",t)}const rs=Q("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),is=rs,as=["align","className","component","padding","scope","size","sortDirection","variant"],ls=t=>{const{classes:s,variant:n,align:r,padding:a,size:l,stickyHeader:i}=t,o={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${P(r)}`,a!=="normal"&&`padding${P(a)}`,`size${P(l)}`]};return ee(o,ns,s)},cs=H("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${P(n.size)}`],n.padding!=="normal"&&s[`padding${P(n.padding)}`],n.align!=="inherit"&&s[`align${P(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid +import{r as h,b as q,g as Q,s as H,_ as N,u as X,a as K,j as e,c as J,d as ee,e as P,ae as ut,f as oe,af as gt,o as d,q as x,T as _,F as g,O as E,ba as ft,ah as se,R as ne,B as ae,ab as mt,bb as bt,bc as Ge,v as re,bd as Ze,a8 as ye,aZ as ke,aY as _e,a$ as Le,be as Ct,J as Ye,bf as jt,bg as qe,bh as yt,aW as wt,bi as le,bj as vt,A as Tt,C as St,U as $t}from"./index-20ea28f6.js";import{B as ce}from"./index-acb0ff6f.js";import{B as W,I as Y,j as te,h as we,F as ve}from"./index-b0d8b87e.js";import{T as Me,s as D,a as Qe,S as Xe,A as Te,N as Ke,F as Je,b as et,E as kt,D as _t,c as tt,Q as st,V as ot,d as Lt}from"./NodeCircleIcon-d4adc804.js";import{P as Mt}from"./PlusIcon-88e6816e.js";import{C as M}from"./ClipLoader-4ce369de.js";import{f as Nt,g as Bt,h as zt,a as It,i as Rt}from"./index.esm-f5056f82.js";import{P as Se,a as Et}from"./Popover-bf44d96f.js";import{S as nt,T as Ne}from"./SearchIcon-c25aae9d.js";import{I as At,A as $e,O as rt,T as it}from"./index-f54022ed.js";import{B as Ot,T as Ft}from"./index-2cd6e591.js";import{D as Ht}from"./DeleteIcon-304ee64b.js";import{u as I}from"./index-ac9cf882.js";import{M as Be,A as Wt}from"./MergeIcon-5e442f11.js";import{C as at}from"./CheckIcon-9a593d48.js";import{T as Pt,a as Ut}from"./Tabs-6f02e411.js";import"./useSlotProps-c721fa06.js";import"./Stack-72055e8f.js";import"./index-6141d876.js";import"./createSvgIcon-55ea993d.js";import"./TextareaAutosize-0dbbd7d8.js";import"./InfoIcon-3abfdeb4.js";const Dt=h.createContext(),lt=Dt;function Vt(t){return q("MuiTable",t)}Q("MuiTable",["root","stickyHeader"]);const Gt=["className","component","padding","size","stickyHeader"],Zt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Vt,s)},Yt=H("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":N({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),ze="table",qt=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTable"}),{className:a,component:l=ze,padding:i="normal",size:o="medium",stickyHeader:c=!1}=r,u=K(r,Gt),m=N({},r,{component:l,padding:i,size:o,stickyHeader:c}),p=Zt(m),C=h.useMemo(()=>({padding:i,size:o,stickyHeader:c}),[i,o,c]);return e.jsx(lt.Provider,{value:C,children:e.jsx(Yt,N({as:l,role:l===ze?null:"table",ref:n,className:J(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Xt(t){return q("MuiTableBody",t)}Q("MuiTableBody",["root"]);const Kt=["className","component"],Jt=t=>{const{classes:s}=t;return ee({root:["root"]},Xt,s)},es=H("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),ts={variant:"body"},Ie="tbody",ss=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTableBody"}),{className:a,component:l=Ie}=r,i=K(r,Kt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:J(c.root,a),as:l,ref:n,role:l===Ie?null:"rowgroup",ownerState:o},i))})}),os=ss;function ns(t){return q("MuiTableCell",t)}const rs=Q("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),is=rs,as=["align","className","component","padding","scope","size","sortDirection","variant"],ls=t=>{const{classes:s,variant:n,align:r,padding:a,size:l,stickyHeader:i}=t,o={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${P(r)}`,a!=="normal"&&`padding${P(a)}`,`size${P(l)}`]};return ee(o,ns,s)},cs=H("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${P(n.size)}`],n.padding!=="normal"&&s[`padding${P(n.padding)}`],n.align!=="inherit"&&s[`align${P(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid ${t.palette.mode==="light"?ut(oe(t.palette.divider,1),.88):gt(oe(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},s.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},s.variant==="body"&&{color:(t.vars||t).palette.text.primary},s.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},s.size==="small"&&{padding:"6px 16px",[`&.${is.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},s.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},s.padding==="none"&&{padding:0},s.align==="left"&&{textAlign:"left"},s.align==="center"&&{textAlign:"center"},s.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},s.align==="justify"&&{textAlign:"justify"},s.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),ds=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTableCell"}),{align:a="inherit",className:l,component:i,padding:o,scope:c,size:u,sortDirection:m,variant:p}=r,C=K(r,as),b=h.useContext(lt),j=h.useContext(pe),w=j&&j.variant==="head";let y;i?y=i:y=w?"th":"td";let S=c;y==="td"?S=void 0:!S&&w&&(S="col");const $=p||j&&j.variant,A=N({},r,{align:a,component:y,padding:o||(b&&b.padding?b.padding:"normal"),size:u||(b&&b.size?b.size:"medium"),sortDirection:m,stickyHeader:$==="head"&&b&&b.stickyHeader,variant:$}),O=ls(A);let B=null;return m&&(B=m==="asc"?"ascending":"descending"),e.jsx(cs,N({as:y,ref:n,className:J(O.root,l),"aria-sort":B,scope:S,ownerState:A},C))}),ps=ds;function hs(t){return q("MuiTableHead",t)}Q("MuiTableHead",["root"]);const xs=["className","component"],us=t=>{const{classes:s}=t;return ee({root:["root"]},hs,s)},gs=H("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),fs={variant:"head"},Re="thead",ms=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTableHead"}),{className:a,component:l=Re}=r,i=K(r,xs),o=N({},r,{component:l}),c=us(o);return e.jsx(pe.Provider,{value:fs,children:e.jsx(gs,N({as:l,className:J(c.root,a),ref:n,role:l===Re?null:"rowgroup",ownerState:o},i))})}),ct=ms;function bs(t){return q("MuiTableRow",t)}const Cs=Q("MuiTableRow",["root","selected","hover","head","footer"]),Ee=Cs,js=["className","component","hover","selected"],ys=t=>{const{classes:s,selected:n,hover:r,head:a,footer:l}=t;return ee({root:["root",n&&"selected",r&&"hover",a&&"head",l&&"footer"]},bs,s)},ws=H("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.head&&s.head,n.footer&&s.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ee.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Ee.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:oe(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),Ae="tr",vs=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTableRow"}),{className:a,component:l=Ae,hover:i=!1,selected:o=!1}=r,c=K(r,js),u=h.useContext(pe),m=N({},r,{component:l,hover:i,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ys(m);return e.jsx(ws,N({as:l,ref:n,className:J(p.root,a),role:l===Ae?null:"row",ownerState:m},c))}),V=vs;function Ce(t){const s=new Date(Number(t)*1e3),n=s.getFullYear(),r=(1+s.getMonth()).toString().padStart(2,"0");return`${s.getDate().toString().padStart(2,"0")}/${r}/${n}`}const f=d(ps)` && { color: ${x.white}; diff --git a/build/assets/index-013bdf7a.js b/build/assets/index-93acbaf0.js similarity index 91% rename from build/assets/index-013bdf7a.js rename to build/assets/index-93acbaf0.js index b6d56f395..74de44fb0 100644 --- a/build/assets/index-013bdf7a.js +++ b/build/assets/index-93acbaf0.js @@ -1,4 +1,4 @@ -import{o as s,F as o,T as w,p as C,r as f,j as e,q as c,A as S,aU as A,aV as b,aW as z,J as D,O as y}from"./index-261f9d22.js";import{B as G}from"./index-c59db43d.js";import{G as M,B as v,h as $,F as B}from"./index-a3132f83.js";import{C as T}from"./ClipLoader-2f6df72c.js";import{T as j}from"./index-d9f514ff.js";import{S as E}from"./index-7d840c3c.js";import{e as I}from"./index.esm-0d26a2bd.js";import{T as k,a as F}from"./Tabs-3aa09f8d.js";import"./InfoIcon-d22daefc.js";import"./useSlotProps-987deb9d.js";import"./createSvgIcon-17709ccc.js";const R=({onClose:a})=>{const[l]=C(d=>[d.graphStyle]),[r,i]=f.useState(!1),p=()=>{i(!0),localStorage.setItem("graphStyle",l),i(!1),a()};return e.jsxs(W,{direction:"column",children:[e.jsx(V,{children:"Default graph view:"}),e.jsx(M,{}),e.jsx(o,{mt:308,py:24,children:e.jsx(v,{color:"secondary",disabled:r,id:"add-node-submit-cta",onClick:p,size:"large",startIcon:r&&e.jsx(L,{children:e.jsx(T,{color:c.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"})})]})},W=s(o)` +import{o as s,F as o,T as w,p as C,r as f,j as e,q as c,A as S,aU as A,aV as b,aW as z,J as D,O as y}from"./index-20ea28f6.js";import{B as G}from"./index-acb0ff6f.js";import{G as M,B as v,h as $,F as B}from"./index-b0d8b87e.js";import{C as T}from"./ClipLoader-4ce369de.js";import{T as j}from"./index-2cd6e591.js";import{S as E}from"./index-275839ae.js";import{e as I}from"./index.esm-f5056f82.js";import{T as k,a as F}from"./Tabs-6f02e411.js";import"./InfoIcon-3abfdeb4.js";import"./useSlotProps-c721fa06.js";import"./createSvgIcon-55ea993d.js";const R=({onClose:a})=>{const[l]=C(d=>[d.graphStyle]),[r,i]=f.useState(!1),p=()=>{i(!0),localStorage.setItem("graphStyle",l),i(!1),a()};return e.jsxs(W,{direction:"column",children:[e.jsx(V,{children:"Default graph view:"}),e.jsx(M,{}),e.jsx(o,{mt:308,py:24,children:e.jsx(v,{color:"secondary",disabled:r,id:"add-node-submit-cta",onClick:p,size:"large",startIcon:r&&e.jsx(L,{children:e.jsx(T,{color:c.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"})})]})},W=s(o)` display: flex; gap: 10px; padding: 36px; diff --git a/build/assets/index-ba48d8b5.js b/build/assets/index-aa800354.js similarity index 90% rename from build/assets/index-ba48d8b5.js rename to build/assets/index-aa800354.js index 1b453b852..8342bf1f0 100644 --- a/build/assets/index-ba48d8b5.js +++ b/build/assets/index-aa800354.js @@ -1,4 +1,4 @@ -import{r as p,a8 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,bj as F}from"./index-261f9d22.js";import{j as B,h as E,F as N,B as M}from"./index-a3132f83.js";import{B as O}from"./index-c59db43d.js";import{u as w}from"./index-f9fcf6b6.js";import{S as k,A as z,N as D,F as P,b as Y,I as R}from"./NodeCircleIcon-6bd29553.js";import{A as X,O as H,T as W}from"./index-c4e7eaf1.js";import{C as q}from"./ClipLoader-2f6df72c.js";import"./index-2bf61ac9.js";import"./Stack-4e5cf8f3.js";import"./useSlotProps-987deb9d.js";import"./Popover-548ea313.js";import"./createSvgIcon-17709ccc.js";import"./TextareaAutosize-0799e080.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:z,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;r(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(k,{onClick:()=>r(null),size:"medium",children:e.jsx(B,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},$=({from:s,onSelect:r,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:r,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(D,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(P,{})}),e.jsx(ne,{children:e.jsx(Y,{})})]})]})]}),G=n(v)` +import{r as p,a8 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,bj as F}from"./index-20ea28f6.js";import{j as B,h as E,F as N,B as M}from"./index-b0d8b87e.js";import{B as O}from"./index-acb0ff6f.js";import{u as w}from"./index-ac9cf882.js";import{S as k,A as z,N as D,F as P,b as Y,I as R}from"./NodeCircleIcon-d4adc804.js";import{A as X,O as H,T as W}from"./index-f54022ed.js";import{C as q}from"./ClipLoader-4ce369de.js";import"./index-6141d876.js";import"./Stack-72055e8f.js";import"./useSlotProps-c721fa06.js";import"./Popover-bf44d96f.js";import"./createSvgIcon-55ea993d.js";import"./TextareaAutosize-0dbbd7d8.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:z,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;r(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(k,{onClick:()=>r(null),size:"medium",children:e.jsx(B,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},$=({from:s,onSelect:r,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:r,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(D,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(P,{})}),e.jsx(ne,{children:e.jsx(Y,{})})]})]})]}),G=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-f9fcf6b6.js b/build/assets/index-ac9cf882.js similarity index 85% rename from build/assets/index-f9fcf6b6.js rename to build/assets/index-ac9cf882.js index f9e6742d6..45d65d7e4 100644 --- a/build/assets/index-f9fcf6b6.js +++ b/build/assets/index-ac9cf882.js @@ -1 +1 @@ -import{w as f,bk as m}from"./index-261f9d22.js";import{D as y}from"./NodeCircleIcon-6bd29553.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),r&&r.abort();const t=new AbortController,{signal:p}=t;r=t;const{data:d,ids:g,filters:o}=n(),u=T(o);o.page===0&&a({data:null,ids:[],total:0});try{const e=await m(u,p),l=o.page===0?{}:{...d||{}},i=o.page===0?[]:[...g];e.data.forEach(s=>{l[s.ref_id]=s,i.push(s.ref_id)}),a({data:l,ids:i,total:e.totalCount}),a({loading:!1})}catch(e){console.log(e)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; +import{w as f,bk as m}from"./index-20ea28f6.js";import{D as y}from"./NodeCircleIcon-d4adc804.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),r&&r.abort();const t=new AbortController,{signal:p}=t;r=t;const{data:d,ids:g,filters:o}=n(),u=T(o);o.page===0&&a({data:null,ids:[],total:0});try{const e=await m(u,p),l=o.page===0?{}:{...d||{}},i=o.page===0?[]:[...g];e.data.forEach(s=>{l[s.ref_id]=s,i.push(s.ref_id)}),a({data:l,ids:i,total:e.totalCount}),a({loading:!1})}catch(e){console.log(e)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; diff --git a/build/assets/index-c59db43d.js b/build/assets/index-acb0ff6f.js similarity index 96% rename from build/assets/index-c59db43d.js rename to build/assets/index-acb0ff6f.js index b646a8357..ee616e446 100644 --- a/build/assets/index-c59db43d.js +++ b/build/assets/index-acb0ff6f.js @@ -1,4 +1,4 @@ -import{ai as m,o as s,q as r,ah as o,F as d,O as w,r as y,j as e}from"./index-261f9d22.js";import{j as v}from"./index-a3132f83.js";const j=m` +import{ai as m,o as s,q as r,ah as o,F as d,O as w,r as y,j as e}from"./index-20ea28f6.js";import{j as v}from"./index-b0d8b87e.js";const j=m` 0% { transform: scale(0.8); } diff --git a/build/assets/index-a3132f83.js b/build/assets/index-b0d8b87e.js similarity index 97% rename from build/assets/index-a3132f83.js rename to build/assets/index-b0d8b87e.js index 9d1f7bf88..98d2689f3 100644 --- a/build/assets/index-a3132f83.js +++ b/build/assets/index-b0d8b87e.js @@ -1,4 +1,4 @@ -import{r as d,R as h,_ as Z,a as Fn,c as We,j as S,g as Pr,k as Xo,s as Wt,u as Ar,b as Zo,d as Qo,e as Re,f as en,h as Jo,i as Ml,l as jl,m as ha,$ as Ll,P as ae,n as Fl,W as zl,o as fe,p as ei,q as xe,F as J,t as Nl,v as Vl,w as ga,x as Bl,L as Wl,y as ma,z as ba,A as zn,B as ya,C as va,D as Hl,T as Se,S as Ul,E as ze,G as Kl,H as Gl,I as Yl,J as ql,K as Xl,M as Zl,N as Ql}from"./index-261f9d22.js";function Jl(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const eu=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),s=parseInt(r,10);return o*3600+i*60+s};function tu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const nu=typeof window<"u"?d.useLayoutEffect:d.useEffect,ru=nu;function qn(e){const t=d.useRef(e);return ru(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Oi(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tu(n,t)})},e)}let Ir=!0,yo=!1,Pi;const ou={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function iu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ou[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function su(e){e.metaKey||e.altKey||e.ctrlKey||(Ir=!0)}function Kr(){Ir=!1}function au(){this.visibilityState==="hidden"&&yo&&(Ir=!0)}function cu(e){e.addEventListener("keydown",su,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",au,!0)}function lu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ir||iu(t)}function uu(){const e=d.useCallback(o=>{o!=null&&cu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(yo=!0,window.clearTimeout(Pi),Pi=window.setTimeout(()=>{yo=!1},100),t.current=!1,!0):!1}function r(o){return lu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vo(e,t)}function du(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}const Ai=h.createContext(null);function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ti(e,t){var n=function(i){return t&&d.isValidElement(i)?t(i):i},r=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function pu(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s{if(!a&&c!=null){const b=setTimeout(c,l);return()=>{clearTimeout(b)}}},[c,a,l]),S.jsx("span",{className:p,style:g,children:S.jsx("span",{className:m})})}const xu=Pr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=xu,wu=["center","classes","className"];let Dr=e=>e,Ii,Di,Mi,ji;const xo=550,$u=80,Eu=Xo(Ii||(Ii=Dr` +import{r as d,R as h,_ as Z,a as Fn,c as We,j as S,g as Pr,k as Xo,s as Wt,u as Ar,b as Zo,d as Qo,e as Re,f as en,h as Jo,i as Ml,l as jl,m as ha,$ as Ll,P as ae,n as Fl,W as zl,o as fe,p as ei,q as xe,F as J,t as Nl,v as Vl,w as ga,x as Bl,L as Wl,y as ma,z as ba,A as zn,B as ya,C as va,D as Hl,T as Se,S as Ul,E as ze,G as Kl,H as Gl,I as Yl,J as ql,K as Xl,M as Zl,N as Ql}from"./index-20ea28f6.js";function Jl(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const eu=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),s=parseInt(r,10);return o*3600+i*60+s};function tu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const nu=typeof window<"u"?d.useLayoutEffect:d.useEffect,ru=nu;function qn(e){const t=d.useRef(e);return ru(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Oi(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tu(n,t)})},e)}let Ir=!0,yo=!1,Pi;const ou={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function iu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ou[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function su(e){e.metaKey||e.altKey||e.ctrlKey||(Ir=!0)}function Kr(){Ir=!1}function au(){this.visibilityState==="hidden"&&yo&&(Ir=!0)}function cu(e){e.addEventListener("keydown",su,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",au,!0)}function lu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ir||iu(t)}function uu(){const e=d.useCallback(o=>{o!=null&&cu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(yo=!0,window.clearTimeout(Pi),Pi=window.setTimeout(()=>{yo=!1},100),t.current=!1,!0):!1}function r(o){return lu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vo(e,t)}function du(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}const Ai=h.createContext(null);function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ti(e,t){var n=function(i){return t&&d.isValidElement(i)?t(i):i},r=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function pu(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s{if(!a&&c!=null){const b=setTimeout(c,l);return()=>{clearTimeout(b)}}},[c,a,l]),S.jsx("span",{className:p,style:g,children:S.jsx("span",{className:m})})}const xu=Pr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=xu,wu=["center","classes","className"];let Dr=e=>e,Ii,Di,Mi,ji;const xo=550,$u=80,Eu=Xo(Ii||(Ii=Dr` 0% { transform: scale(0); opacity: 0.1; @@ -326,7 +326,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 65px; right: 55px; z-index: 100; -`,zy=()=>{const e=d.useContext(Ul);return e==null?void 0:e.socket},Ny={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},Vy=ga(e=>({...Ny,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,r,o,i;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((r=t==null?void 0:t.instagraph)!=null&&r.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(i=t==null?void 0:t.instagraph)==null?void 0:i.nodes}})}})),By="0.1.106",Wy=d.lazy(()=>ze(()=>import("./index-013bdf7a.js"),["assets/index-013bdf7a.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/ClipLoader-2f6df72c.js","assets/index-d9f514ff.js","assets/index.esm-0d26a2bd.js","assets/InfoIcon-d22daefc.js","assets/index-7d840c3c.js","assets/Tabs-3aa09f8d.js","assets/useSlotProps-987deb9d.js","assets/createSvgIcon-17709ccc.js"]).then(({SettingsModal:e})=>({default:e}))),Hy=d.lazy(()=>ze(()=>import("./index-c7182477.js"),["assets/index-c7182477.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/index-7d840c3c.js","assets/index.esm-0d26a2bd.js","assets/CheckIcon-0a716700.js","assets/ClipLoader-2f6df72c.js","assets/index-d9f514ff.js","assets/InfoIcon-d22daefc.js"]).then(({AddContentModal:e})=>({default:e}))),Uy=d.lazy(()=>ze(()=>import("./index-444db83c.js"),["assets/index-444db83c.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/index-7d840c3c.js","assets/index.esm-0d26a2bd.js","assets/CheckIcon-0a716700.js","assets/ClipLoader-2f6df72c.js","assets/index-c4e7eaf1.js","assets/index-2bf61ac9.js","assets/Stack-4e5cf8f3.js","assets/useSlotProps-987deb9d.js","assets/Popover-548ea313.js","assets/createSvgIcon-17709ccc.js","assets/TextareaAutosize-0799e080.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-d9f514ff.js","assets/InfoIcon-d22daefc.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Ky=d.lazy(()=>ze(()=>import("./index-3daae87c.js"),["assets/index-3daae87c.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/NodeCircleIcon-6bd29553.js","assets/PlusIcon-788eea40.js","assets/ClipLoader-2f6df72c.js","assets/index.esm-0d26a2bd.js","assets/Popover-548ea313.js","assets/useSlotProps-987deb9d.js","assets/SearchIcon-f71ea369.js","assets/Stack-4e5cf8f3.js","assets/index-c4e7eaf1.js","assets/index-2bf61ac9.js","assets/createSvgIcon-17709ccc.js","assets/TextareaAutosize-0799e080.js","assets/index-d9f514ff.js","assets/InfoIcon-d22daefc.js","assets/DeleteIcon-d3ad49c0.js","assets/index-f9fcf6b6.js","assets/MergeIcon-81475345.js","assets/CheckIcon-0a716700.js","assets/Tabs-3aa09f8d.js"]).then(({SourcesTableModal:e})=>({default:e}))),Gy=d.lazy(()=>ze(()=>import("./index-38bb2565.js"),["assets/index-38bb2565.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/index-d9f514ff.js","assets/index.esm-0d26a2bd.js","assets/InfoIcon-d22daefc.js","assets/index-2bf61ac9.js","assets/Skeleton-4db3660e.js","assets/ClipLoader-2f6df72c.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Yy=d.lazy(()=>ze(()=>import("./index-f564d9af.js"),["assets/index-f564d9af.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/Skeleton-4db3660e.js","assets/ClipLoader-2f6df72c.js"]).then(({RemoveNodeModal:e})=>({default:e}))),qy=d.lazy(()=>ze(()=>import("./index-b15b31d7.js"),["assets/index-b15b31d7.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/NodeCircleIcon-6bd29553.js","assets/index-c4e7eaf1.js","assets/index-2bf61ac9.js","assets/Stack-4e5cf8f3.js","assets/useSlotProps-987deb9d.js","assets/Popover-548ea313.js","assets/createSvgIcon-17709ccc.js","assets/TextareaAutosize-0799e080.js","assets/ClipLoader-2f6df72c.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Xy=d.lazy(()=>ze(()=>import("./index-ba48d8b5.js"),["assets/index-ba48d8b5.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/index-f9fcf6b6.js","assets/NodeCircleIcon-6bd29553.js","assets/index-c4e7eaf1.js","assets/index-2bf61ac9.js","assets/Stack-4e5cf8f3.js","assets/useSlotProps-987deb9d.js","assets/Popover-548ea313.js","assets/createSvgIcon-17709ccc.js","assets/TextareaAutosize-0799e080.js","assets/ClipLoader-2f6df72c.js"]).then(({MergeNodeModal:e})=>({default:e}))),Zy=d.lazy(()=>ze(()=>import("./index-534a1b5f.js"),["assets/index-534a1b5f.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/index-d9f514ff.js","assets/index.esm-0d26a2bd.js","assets/InfoIcon-d22daefc.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-c4e7eaf1.js","assets/index-2bf61ac9.js","assets/Stack-4e5cf8f3.js","assets/useSlotProps-987deb9d.js","assets/Popover-548ea313.js","assets/createSvgIcon-17709ccc.js","assets/TextareaAutosize-0799e080.js","assets/ClipLoader-2f6df72c.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),Qy=d.lazy(()=>ze(()=>import("./index-2c6ed9a6.js"),["assets/index-2c6ed9a6.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/index-c4e7eaf1.js","assets/index-2bf61ac9.js","assets/Stack-4e5cf8f3.js","assets/useSlotProps-987deb9d.js","assets/Popover-548ea313.js","assets/createSvgIcon-17709ccc.js","assets/TextareaAutosize-0799e080.js","assets/index-d9f514ff.js","assets/index.esm-0d26a2bd.js","assets/InfoIcon-d22daefc.js","assets/ClipLoader-2f6df72c.js","assets/DeleteIcon-d3ad49c0.js","assets/PlusIcon-788eea40.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/SwitchBase-261e39db.js","assets/index-3c085423.js","assets/AddContentIcon-00c7fa22.js"]).then(({BlueprintModal:e})=>({default:e}))),Jy=d.lazy(()=>ze(()=>import("./index-c5fe6147.js"),["assets/index-c5fe6147.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-c59db43d.js","assets/index-7d840c3c.js","assets/index.esm-0d26a2bd.js","assets/index-d9f514ff.js","assets/InfoIcon-d22daefc.js"]).then(({UserFeedBackModal:e})=>({default:e}))),ev=()=>S.jsxs(S.Fragment,{children:[S.jsx(Uy,{}),S.jsx(Hy,{}),S.jsx(Wy,{}),S.jsx(Gy,{}),S.jsx(Yy,{}),S.jsx(Ky,{}),S.jsx(qy,{}),S.jsx(Zy,{}),S.jsx(Qy,{}),S.jsx(Xy,{}),S.jsx(Jy,{})]}),tv=()=>{const e=zn(t=>t.appMetaData);return e?S.jsxs(nv,{children:[S.jsxs(rv,{children:[S.jsx(S.Fragment,{children:e.title&&S.jsx(Se,{className:"title",color:"white",children:e.title})}),S.jsx(Se,{className:"subtitle",children:"Second Brain"})]}),S.jsx(Gl,{})]}):null},nv=fe(J).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,zy=()=>{const e=d.useContext(Ul);return e==null?void 0:e.socket},Ny={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},Vy=ga(e=>({...Ny,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,r,o,i;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((r=t==null?void 0:t.instagraph)!=null&&r.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(i=t==null?void 0:t.instagraph)==null?void 0:i.nodes}})}})),By="0.1.106",Wy=d.lazy(()=>ze(()=>import("./index-93acbaf0.js"),["assets/index-93acbaf0.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/ClipLoader-4ce369de.js","assets/index-2cd6e591.js","assets/index.esm-f5056f82.js","assets/InfoIcon-3abfdeb4.js","assets/index-275839ae.js","assets/Tabs-6f02e411.js","assets/useSlotProps-c721fa06.js","assets/createSvgIcon-55ea993d.js"]).then(({SettingsModal:e})=>({default:e}))),Hy=d.lazy(()=>ze(()=>import("./index-8b4e276b.js"),["assets/index-8b4e276b.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/index-275839ae.js","assets/index.esm-f5056f82.js","assets/CheckIcon-9a593d48.js","assets/ClipLoader-4ce369de.js","assets/index-2cd6e591.js","assets/InfoIcon-3abfdeb4.js"]).then(({AddContentModal:e})=>({default:e}))),Uy=d.lazy(()=>ze(()=>import("./index-740426c2.js"),["assets/index-740426c2.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/index-275839ae.js","assets/index.esm-f5056f82.js","assets/CheckIcon-9a593d48.js","assets/ClipLoader-4ce369de.js","assets/index-f54022ed.js","assets/index-6141d876.js","assets/Stack-72055e8f.js","assets/useSlotProps-c721fa06.js","assets/Popover-bf44d96f.js","assets/createSvgIcon-55ea993d.js","assets/TextareaAutosize-0dbbd7d8.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-2cd6e591.js","assets/InfoIcon-3abfdeb4.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Ky=d.lazy(()=>ze(()=>import("./index-8ca28a87.js"),["assets/index-8ca28a87.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/NodeCircleIcon-d4adc804.js","assets/PlusIcon-88e6816e.js","assets/ClipLoader-4ce369de.js","assets/index.esm-f5056f82.js","assets/Popover-bf44d96f.js","assets/useSlotProps-c721fa06.js","assets/SearchIcon-c25aae9d.js","assets/Stack-72055e8f.js","assets/index-f54022ed.js","assets/index-6141d876.js","assets/createSvgIcon-55ea993d.js","assets/TextareaAutosize-0dbbd7d8.js","assets/index-2cd6e591.js","assets/InfoIcon-3abfdeb4.js","assets/DeleteIcon-304ee64b.js","assets/index-ac9cf882.js","assets/MergeIcon-5e442f11.js","assets/CheckIcon-9a593d48.js","assets/Tabs-6f02e411.js"]).then(({SourcesTableModal:e})=>({default:e}))),Gy=d.lazy(()=>ze(()=>import("./index-b8a8ae5e.js"),["assets/index-b8a8ae5e.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/index-2cd6e591.js","assets/index.esm-f5056f82.js","assets/InfoIcon-3abfdeb4.js","assets/index-6141d876.js","assets/Skeleton-1413bdb9.js","assets/ClipLoader-4ce369de.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Yy=d.lazy(()=>ze(()=>import("./index-4a489d96.js"),["assets/index-4a489d96.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/Skeleton-1413bdb9.js","assets/ClipLoader-4ce369de.js"]).then(({RemoveNodeModal:e})=>({default:e}))),qy=d.lazy(()=>ze(()=>import("./index-efbb430a.js"),["assets/index-efbb430a.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/NodeCircleIcon-d4adc804.js","assets/index-f54022ed.js","assets/index-6141d876.js","assets/Stack-72055e8f.js","assets/useSlotProps-c721fa06.js","assets/Popover-bf44d96f.js","assets/createSvgIcon-55ea993d.js","assets/TextareaAutosize-0dbbd7d8.js","assets/ClipLoader-4ce369de.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Xy=d.lazy(()=>ze(()=>import("./index-aa800354.js"),["assets/index-aa800354.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/index-ac9cf882.js","assets/NodeCircleIcon-d4adc804.js","assets/index-f54022ed.js","assets/index-6141d876.js","assets/Stack-72055e8f.js","assets/useSlotProps-c721fa06.js","assets/Popover-bf44d96f.js","assets/createSvgIcon-55ea993d.js","assets/TextareaAutosize-0dbbd7d8.js","assets/ClipLoader-4ce369de.js"]).then(({MergeNodeModal:e})=>({default:e}))),Zy=d.lazy(()=>ze(()=>import("./index-ccecbe91.js"),["assets/index-ccecbe91.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/index-2cd6e591.js","assets/index.esm-f5056f82.js","assets/InfoIcon-3abfdeb4.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-f54022ed.js","assets/index-6141d876.js","assets/Stack-72055e8f.js","assets/useSlotProps-c721fa06.js","assets/Popover-bf44d96f.js","assets/createSvgIcon-55ea993d.js","assets/TextareaAutosize-0dbbd7d8.js","assets/ClipLoader-4ce369de.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),Qy=d.lazy(()=>ze(()=>import("./index-375acfd1.js"),["assets/index-375acfd1.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/index-f54022ed.js","assets/index-6141d876.js","assets/Stack-72055e8f.js","assets/useSlotProps-c721fa06.js","assets/Popover-bf44d96f.js","assets/createSvgIcon-55ea993d.js","assets/TextareaAutosize-0dbbd7d8.js","assets/index-2cd6e591.js","assets/index.esm-f5056f82.js","assets/InfoIcon-3abfdeb4.js","assets/ClipLoader-4ce369de.js","assets/DeleteIcon-304ee64b.js","assets/PlusIcon-88e6816e.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/SwitchBase-262eb8cd.js","assets/index-f8d502c2.js","assets/AddContentIcon-8ac1fc1c.js"]).then(({BlueprintModal:e})=>({default:e}))),Jy=d.lazy(()=>ze(()=>import("./index-2911a543.js"),["assets/index-2911a543.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-acb0ff6f.js","assets/index-275839ae.js","assets/index.esm-f5056f82.js","assets/index-2cd6e591.js","assets/InfoIcon-3abfdeb4.js"]).then(({UserFeedBackModal:e})=>({default:e}))),ev=()=>S.jsxs(S.Fragment,{children:[S.jsx(Uy,{}),S.jsx(Hy,{}),S.jsx(Wy,{}),S.jsx(Gy,{}),S.jsx(Yy,{}),S.jsx(Ky,{}),S.jsx(qy,{}),S.jsx(Zy,{}),S.jsx(Qy,{}),S.jsx(Xy,{}),S.jsx(Jy,{})]}),tv=()=>{const e=zn(t=>t.appMetaData);return e?S.jsxs(nv,{children:[S.jsxs(rv,{children:[S.jsx(S.Fragment,{children:e.title&&S.jsx(Se,{className:"title",color:"white",children:e.title})}),S.jsx(Se,{className:"subtitle",children:"Second Brain"})]}),S.jsx(Gl,{})]}):null},nv=fe(J).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; position: absolute; top: 0px; @@ -421,4 +421,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${xe.white}; font-size: 12px; opacity: 0.5; -`,Ev=d.lazy(()=>ze(()=>import("./index-fbb9b023.js"),["assets/index-fbb9b023.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/AddContentIcon-00c7fa22.js"]).then(({MainToolbar:e})=>({default:e}))),Cv=d.lazy(()=>ze(()=>import("./index-fc4ceba0.js"),["assets/index-fc4ceba0.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/index-3c085423.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-0799e080.js","assets/useSlotProps-987deb9d.js","assets/index-2bf61ac9.js","assets/DeleteIcon-d3ad49c0.js","assets/index.esm-0d26a2bd.js","assets/index-20ebb136.js","assets/MergeIcon-81475345.js","assets/PlusIcon-788eea40.js","assets/Popover-548ea313.js","assets/ClipLoader-2f6df72c.js"]).then(({Universe:e})=>({default:e}))),_v=d.lazy(()=>ze(()=>import("./index-bac9adcb.js").then(e=>e.i),["assets/index-bac9adcb.js","assets/index-261f9d22.js","assets/index-a2878e02.css","assets/SearchIcon-f71ea369.js","assets/Stack-4e5cf8f3.js","assets/useSlotProps-987deb9d.js","assets/Popover-548ea313.js","assets/ClipLoader-2f6df72c.js","assets/Skeleton-4db3660e.js","assets/PlusIcon-788eea40.js","assets/index-2bf61ac9.js","assets/CheckIcon-0a716700.js","assets/SwitchBase-261e39db.js","assets/createSvgIcon-17709ccc.js","assets/index-c59db43d.js","assets/index-20ebb136.js","assets/index.esm-0d26a2bd.js","assets/InfoIcon-d22daefc.js"]).then(({SideBar:e})=>({default:e}))),Sv=()=>{const[e]=Yl(),t=e.get("q"),[n,r]=ql(D=>[D.setBudget,D.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:s,setRelevanceSelected:a,setTranscriptOpen:c}=zn(D=>D),l=Vy(D=>D.setTeachMeAnswer),{fetchData:u,setCategoryFilter:f,setAbortRequests:p,addNewNode:g,splashDataLoading:m}=ya(D=>D),{setAiSummaryAnswer:b,getKeyExist:w,aiRefId:v}=Xl(D=>D),y=ba(),[C,_]=va(D=>[D.realtimeGraphFeatureFlag,D.chatInterfaceFeatureFlag]),$=zy(),E=Jb({mode:"onChange"}),{setValue:T}=E;d.useEffect(()=>{T("search",t??""),c(!1),y(null),a(!1),s(t??""),l(""),f(null)},[t,f,s,a,y,l,c,T]),d.useEffect(()=>{(async()=>{await u(n,p),o(!0),i?await Ql(n):y(null)})()},[i,u,n,p,o,y]);const k=d.useCallback(()=>{r("INCREMENT")},[r]),F=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{answer:D.answer,answerLoading:!1})},[b]),j=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{audio_en:D.audio_EN})},[b]),z=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{questions:D.relevant_questions.map(V=>V.question),questionsLoading:!1})},[b]),A=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{sources:D.sources.map(V=>V.ref_id),sourcesLoading:!1})},[b]),N=d.useCallback(D=>{g(D)},[g]),L=d.useCallback(D=>{D.question&&w(v)&&b(v,{answerLoading:!1,entities:D.entities})},[b,w,v]);return d.useEffect(()=>($&&($.connect(),$.on("connect_error",D=>{console.error("Socket connection error:",D)}),$.on("newnode",k),_&&$.on("extractedentitieshook",L),_&&$.on("askquestionhook",F),_&&$.on("relevantquestionshook",z),_&&$.on("answersourceshook",A),C&&$.on("new_node_created",N),_&&$.on("answeraudiohook",j)),()=>{$&&$.off()}),[$,k,N,C,F,_,z,A,L,j]),S.jsxs(S.Fragment,{children:[S.jsx(ey,{}),S.jsx(sv,{}),S.jsx(ul,{hidden:!Zl}),S.jsx(d.Suspense,{fallback:S.jsx("div",{children:"Loading..."}),children:m?null:S.jsxs(wv,{direction:"row",children:[S.jsxs(Fb,{...E,children:[S.jsx(Ev,{}),S.jsx(_v,{}),S.jsx(Cv,{}),S.jsx(jy,{}),S.jsx(tv,{}),S.jsxs($v,{children:["v",By]}),S.jsx(Rl,{})]}),S.jsx(ev,{}),S.jsx(xv,{})]})})]})},zv=Object.freeze(Object.defineProperty({__proto__:null,App:Sv},Symbol.toStringTag,{value:"Module"}));export{Tl as A,li as B,cy as C,Fb as F,fy as G,wa as I,jy as O,gy as P,Ai as T,mn as _,Mv as a,jv as b,uu as c,Oi as d,ru as e,qn as f,Br as g,Jb as h,Jl as i,hy as j,ay as k,my as l,yy as m,xa as n,Fv as o,bp as p,du as q,Rv as r,tu as s,ue as t,sy as u,eu as v,B as w,Lv as x,zv as y}; +`,Ev=d.lazy(()=>ze(()=>import("./index-5cc263b1.js"),["assets/index-5cc263b1.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/AddContentIcon-8ac1fc1c.js"]).then(({MainToolbar:e})=>({default:e}))),Cv=d.lazy(()=>ze(()=>import("./index-7e9f5177.js"),["assets/index-7e9f5177.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/index-f8d502c2.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-0dbbd7d8.js","assets/useSlotProps-c721fa06.js","assets/index-6141d876.js","assets/DeleteIcon-304ee64b.js","assets/index.esm-f5056f82.js","assets/index-1baf3f02.js","assets/MergeIcon-5e442f11.js","assets/PlusIcon-88e6816e.js","assets/Popover-bf44d96f.js","assets/ClipLoader-4ce369de.js"]).then(({Universe:e})=>({default:e}))),_v=d.lazy(()=>ze(()=>import("./index-d4895025.js").then(e=>e.i),["assets/index-d4895025.js","assets/index-20ea28f6.js","assets/index-a2878e02.css","assets/SearchIcon-c25aae9d.js","assets/Stack-72055e8f.js","assets/useSlotProps-c721fa06.js","assets/Popover-bf44d96f.js","assets/ClipLoader-4ce369de.js","assets/Skeleton-1413bdb9.js","assets/PlusIcon-88e6816e.js","assets/index-6141d876.js","assets/CheckIcon-9a593d48.js","assets/SwitchBase-262eb8cd.js","assets/createSvgIcon-55ea993d.js","assets/index-acb0ff6f.js","assets/index-1baf3f02.js","assets/index.esm-f5056f82.js","assets/InfoIcon-3abfdeb4.js"]).then(({SideBar:e})=>({default:e}))),Sv=()=>{const[e]=Yl(),t=e.get("q"),[n,r]=ql(D=>[D.setBudget,D.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:s,setRelevanceSelected:a,setTranscriptOpen:c}=zn(D=>D),l=Vy(D=>D.setTeachMeAnswer),{fetchData:u,setCategoryFilter:f,setAbortRequests:p,addNewNode:g,splashDataLoading:m}=ya(D=>D),{setAiSummaryAnswer:b,getKeyExist:w,aiRefId:v}=Xl(D=>D),y=ba(),[C,_]=va(D=>[D.realtimeGraphFeatureFlag,D.chatInterfaceFeatureFlag]),$=zy(),E=Jb({mode:"onChange"}),{setValue:T}=E;d.useEffect(()=>{T("search",t??""),c(!1),y(null),a(!1),s(t??""),l(""),f(null)},[t,f,s,a,y,l,c,T]),d.useEffect(()=>{(async()=>{await u(n,p),o(!0),i?await Ql(n):y(null)})()},[i,u,n,p,o,y]);const k=d.useCallback(()=>{r("INCREMENT")},[r]),F=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{answer:D.answer,answerLoading:!1})},[b]),j=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{audio_en:D.audio_EN})},[b]),z=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{questions:D.relevant_questions.map(V=>V.question),questionsLoading:!1})},[b]),A=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{sources:D.sources.map(V=>V.ref_id),sourcesLoading:!1})},[b]),N=d.useCallback(D=>{g(D)},[g]),L=d.useCallback(D=>{D.question&&w(v)&&b(v,{answerLoading:!1,entities:D.entities})},[b,w,v]);return d.useEffect(()=>($&&($.connect(),$.on("connect_error",D=>{console.error("Socket connection error:",D)}),$.on("newnode",k),_&&$.on("extractedentitieshook",L),_&&$.on("askquestionhook",F),_&&$.on("relevantquestionshook",z),_&&$.on("answersourceshook",A),C&&$.on("new_node_created",N),_&&$.on("answeraudiohook",j)),()=>{$&&$.off()}),[$,k,N,C,F,_,z,A,L,j]),S.jsxs(S.Fragment,{children:[S.jsx(ey,{}),S.jsx(sv,{}),S.jsx(ul,{hidden:!Zl}),S.jsx(d.Suspense,{fallback:S.jsx("div",{children:"Loading..."}),children:m?null:S.jsxs(wv,{direction:"row",children:[S.jsxs(Fb,{...E,children:[S.jsx(Ev,{}),S.jsx(_v,{}),S.jsx(Cv,{}),S.jsx(jy,{}),S.jsx(tv,{}),S.jsxs($v,{children:["v",By]}),S.jsx(Rl,{})]}),S.jsx(ev,{}),S.jsx(xv,{})]})})]})},zv=Object.freeze(Object.defineProperty({__proto__:null,App:Sv},Symbol.toStringTag,{value:"Module"}));export{Tl as A,li as B,cy as C,Fb as F,fy as G,wa as I,jy as O,gy as P,Ai as T,mn as _,Mv as a,jv as b,uu as c,Oi as d,ru as e,qn as f,Br as g,Jb as h,Jl as i,hy as j,ay as k,my as l,yy as m,xa as n,Fv as o,bp as p,du as q,Rv as r,tu as s,ue as t,sy as u,eu as v,B as w,Lv as x,zv as y}; diff --git a/build/assets/index-38bb2565.js b/build/assets/index-b8a8ae5e.js similarity index 91% rename from build/assets/index-38bb2565.js rename to build/assets/index-b8a8ae5e.js index c3f23ee19..061905606 100644 --- a/build/assets/index-38bb2565.js +++ b/build/assets/index-b8a8ae5e.js @@ -1,4 +1,4 @@ -import{j as e,o as r,q as y,T as S,F as n,O as g,C as q,y as k,aW as G,r as l,bk as O,bi as P,B as Y}from"./index-261f9d22.js";import{B as J}from"./index-c59db43d.js";import{h as K,F as Q,B as F}from"./index-a3132f83.js";import{T as B}from"./index-d9f514ff.js";import{T as X}from"./index-2bf61ac9.js";import{S as Z}from"./Skeleton-4db3660e.js";import{C as ee}from"./ClipLoader-2f6df72c.js";import"./index.esm-0d26a2bd.js";import"./InfoIcon-d22daefc.js";const _=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function te(s){return!!_.test(s)}const ae=s=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),e.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),oe=()=>{const{open:s}=g("changeNodeType"),{close:u}=g("editNodeName"),{changeNodeTypeFeatureFlag:c}=q(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=k(),h=a==null?void 0:a.node_type,d=()=>{u(),s()};return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(n,{align:"center",direction:"row",children:[e.jsx(ne,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(X,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(I,{style:{marginBottom:8},children:"Node Name"}),e.jsx(B,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...G}})]}),e.jsxs(n,{mb:36,children:[e.jsx(I,{style:{marginBottom:8},children:"Image Url"}),e.jsx(B,{id:"cy-image_url",maxLength:500,name:"image_url",placeholder:"Image url",rules:{pattern:{message:"Please enter a valid URL",value:_}}})]})]})},ne=r(S)` +import{j as e,o as r,q as y,T as S,F as n,O as g,C as q,y as k,aW as G,r as l,bk as O,bi as P,B as Y}from"./index-20ea28f6.js";import{B as J}from"./index-acb0ff6f.js";import{h as K,F as Q,B as F}from"./index-b0d8b87e.js";import{T as B}from"./index-2cd6e591.js";import{T as X}from"./index-6141d876.js";import{S as Z}from"./Skeleton-1413bdb9.js";import{C as ee}from"./ClipLoader-4ce369de.js";import"./index.esm-f5056f82.js";import"./InfoIcon-3abfdeb4.js";const _=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function te(s){return!!_.test(s)}const ae=s=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),e.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),oe=()=>{const{open:s}=g("changeNodeType"),{close:u}=g("editNodeName"),{changeNodeTypeFeatureFlag:c}=q(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=k(),h=a==null?void 0:a.node_type,d=()=>{u(),s()};return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(n,{align:"center",direction:"row",children:[e.jsx(ne,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(X,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(I,{style:{marginBottom:8},children:"Node Name"}),e.jsx(B,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...G}})]}),e.jsxs(n,{mb:36,children:[e.jsx(I,{style:{marginBottom:8},children:"Image Url"}),e.jsx(B,{id:"cy-image_url",maxLength:500,name:"image_url",placeholder:"Image url",rules:{pattern:{message:"Please enter a valid URL",value:_}}})]})]})},ne=r(S)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-534a1b5f.js b/build/assets/index-ccecbe91.js similarity index 92% rename from build/assets/index-534a1b5f.js rename to build/assets/index-ccecbe91.js index f4e7a0226..087977354 100644 --- a/build/assets/index-534a1b5f.js +++ b/build/assets/index-ccecbe91.js @@ -1,4 +1,4 @@ -import{o as v,q,T as F,F as n,r as x,j as e,aW as J,b8 as $,C as K,y as U,b9 as Q,O as D,aV as z,bk as X,bn as Z}from"./index-261f9d22.js";import{g as V,B as E,h as N,F as ee}from"./index-a3132f83.js";import{B as te}from"./index-c59db43d.js";import{T as re}from"./index-d9f514ff.js";import{p as W}from"./index-44e303ef.js";import{n as ne,A as G}from"./index-c4e7eaf1.js";import{C as Y}from"./ClipLoader-2f6df72c.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-0d26a2bd.js";import"./InfoIcon-d22daefc.js";import"./three.module-2ce81f73.js";import"./index-2bf61ac9.js";import"./Stack-4e5cf8f3.js";import"./useSlotProps-987deb9d.js";import"./Popover-548ea313.js";import"./createSvgIcon-17709ccc.js";import"./TextareaAutosize-0799e080.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,m)=>Number(m.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:m,selectedValues:r})=>{const[f,w]=x.useState(!1),[h,C]=x.useState(),{watch:j,formState:{isValid:t}}=V();x.useEffect(()=>{(async()=>{w(!0);const o=await $(m),T=W(o),A=H(T);C(A),w(!1)})()},[m,j]);const a=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(h?[...h].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(r).includes(c.key))),S=()=>{s(""),l("sourceType")},b=!t||f||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(ae,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(Y,{color:q.SECONDARY_BLUE})}):e.jsx(n,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:a(c)}),e.jsx(re,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...J,pattern:{message:"No leading whitespace allowed",value:ne}}:{}}})]})}))})}),e.jsxs(n,{direction:"row",children:[e.jsx(n,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(F)` +import{o as v,q,T as F,F as n,r as x,j as e,aW as J,b8 as $,C as K,y as U,b9 as Q,O as D,aV as z,bk as X,bn as Z}from"./index-20ea28f6.js";import{g as V,B as E,h as N,F as ee}from"./index-b0d8b87e.js";import{B as te}from"./index-acb0ff6f.js";import{T as re}from"./index-2cd6e591.js";import{p as W}from"./index-44e303ef.js";import{n as ne,A as G}from"./index-f54022ed.js";import{C as Y}from"./ClipLoader-4ce369de.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-f5056f82.js";import"./InfoIcon-3abfdeb4.js";import"./three.module-2ce81f73.js";import"./index-6141d876.js";import"./Stack-72055e8f.js";import"./useSlotProps-c721fa06.js";import"./Popover-bf44d96f.js";import"./createSvgIcon-55ea993d.js";import"./TextareaAutosize-0dbbd7d8.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,m)=>Number(m.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:m,selectedValues:r})=>{const[f,w]=x.useState(!1),[h,C]=x.useState(),{watch:j,formState:{isValid:t}}=V();x.useEffect(()=>{(async()=>{w(!0);const o=await $(m),T=W(o),A=H(T);C(A),w(!1)})()},[m,j]);const a=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(h?[...h].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(r).includes(c.key))),S=()=>{s(""),l("sourceType")},b=!t||f||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(ae,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(Y,{color:q.SECONDARY_BLUE})}):e.jsx(n,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:a(c)}),e.jsx(re,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...J,pattern:{message:"No leading whitespace allowed",value:ne}}:{}}})]})}))})}),e.jsxs(n,{direction:"row",children:[e.jsx(n,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-bac9adcb.js b/build/assets/index-d4895025.js similarity index 92% rename from build/assets/index-bac9adcb.js rename to build/assets/index-d4895025.js index 1a7110ae0..6fa7ae29d 100644 --- a/build/assets/index-bac9adcb.js +++ b/build/assets/index-d4895025.js @@ -1,4 +1,4 @@ -import{aa as Gg,ab as bi,a8 as n1,ac as r4,r as z,_ as be,j as y,g as Ld,b as Nd,s as Wn,i as i4,e as Jt,f as lf,u as Rd,a as Wl,c as rr,d as Bd,ad as zd,ae as a4,af as o4,ag as qg,o as H,q as R,ah as Fd,Q as Yl,F,B as Sn,J as No,D as Kg,T as pt,ai as s4,aj as l4,ak as Ga,al as Nt,am as u4,n as st,A as Bt,z as Ro,K as Xg,v as Ar,an as Zg,O as uf,C as c4,ao as f4,ap as Bo,aq as Ji,ar as _n,as as Jg,at as Hd,au as Qi,av as Te,R as U,aw as d4,ax as Qg,ay as h4,az as ev,aA as p4,aB as m4,aC as y4,aD as zo,aE as Ud,aF as tv,aG as nv,aH as g4,aI as v4,aJ as x4,aK as Vl,aL as b4,aM as w4,P as Oe,aN as S4,aO as _4,aP as O4,y as qt,aQ as r1,a5 as k4,E as an,aR as C4,aS as P4,p as A4,aT as j4}from"./index-261f9d22.js";import{v as ei,c as T4,d as cf,e as E4,f as fc,g as Wd,h as M4,F as $4,A as $n,i as Ti,B as Rt,j as rv,P as Gl,k as I4,l as Yd,I as iv,m as ql}from"./index-a3132f83.js";import{T as i1,S as av}from"./SearchIcon-f71ea369.js";import{c as D4,a as dc,C as Fo}from"./ClipLoader-2f6df72c.js";import{S as ov}from"./Skeleton-4db3660e.js";import{P as Vd}from"./PlusIcon-788eea40.js";import{T as L4,r as N4,g as a1,P as R4}from"./Popover-548ea313.js";import{o as Bs,e as hc,a as sv,d as B4,i as zs,u as br}from"./useSlotProps-987deb9d.js";import{T as ea,u as z4}from"./index-2bf61ac9.js";import{C as lv}from"./CheckIcon-0a716700.js";import{u as F4,a as H4,f as U4,S as W4,F as Y4,P as V4}from"./Stack-4e5cf8f3.js";import{S as G4}from"./SwitchBase-261e39db.js";import{c as Gd}from"./createSvgIcon-17709ccc.js";import{B as q4}from"./index-c59db43d.js";import{u as uv}from"./index-20ebb136.js";import{b as K4,a as X4,c as Z4,d as J4}from"./index.esm-0d26a2bd.js";import{I as Q4}from"./InfoIcon-d22daefc.js";const o1="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",e8=async e=>{let t=await bi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await bi.keysend(o1,e),!(t!=null&&t.success)){if(t=await bi.topup(),t||(t=await bi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await e8(t),r={amount:t,refid:e};return await Gg.post("/boost",JSON.stringify(r)),n},n8=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},cv=(e,t)=>{if(!t)return null;const n=e.filter(a=>a.show_title&&a.link&&a.show_title===t.show_title&&a.episode_title===t.episode_title),r=n1.groupBy(n,a=>a.timestamp),i=n1.values(r).reduce((a,o)=>(o[0]&&a.push(o[0]),a),[]);return i.sort((a,o)=>{var d,h;const[s]=((d=a.timestamp)==null?void 0:d.split("-"))||[""],[l]=((h=o.timestamp)==null?void 0:h.split("-"))||[""],u=ei(s),f=ei(l);return u-f}),i},r8=async e=>{await r4(async()=>{try{await bi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},i8=e=>{const t=/((http|https):\/\/[^\s]+)/g,n=/@(\w+)/g;let r=e.replace(/\\/g,"");return r=r.replace(/'/g,"’"),r=r.replace(/\n/g,"
"),r=r.replace(t,'$1'),r=r.replace(n,'@$1'),r},a8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},o8=a8;function s8(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const l8=2;function fv(e,t){return e-t}function va(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function s1(e,t){var n;const{index:r}=(n=e.reduce((i,a,o)=>{const s=Math.abs(t-a);return i===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},h8=e=>e;let xs;function pc(){return xs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xs=CSS.supports("touch-action","none"):xs=!0),xs}function p8(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:f,onChangeCommitted:d,orientation:h="horizontal",rootRef:m,scale:g=h8,step:v=1,tabIndex:b,value:_}=e,C=z.useRef(),[k,A]=z.useState(-1),[O,w]=z.useState(-1),[j,T]=z.useState(!1),I=z.useRef(0),[B,M]=F4({controlled:_,default:n??l,name:"Slider"}),D=f&&((N,q,ne)=>{const se=N.nativeEvent||N,oe=new se.constructor(se.type,se);Object.defineProperty(oe,"target",{writable:!0,value:{value:q,name:u}}),f(oe,q,ne)}),W=Array.isArray(B);let Y=W?B.slice().sort(fv):[B];Y=Y.map(N=>va(N,l,s));const V=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((N,q)=>({value:l+v*q})):o||[],X=V.map(N=>N.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:Q,ref:E}=T4(),[pe,ue]=z.useState(-1),$=z.useRef(),_e=cf(E,$),te=cf(m,_e),ge=N=>q=>{var ne;const se=Number(q.currentTarget.getAttribute("data-index"));Q(q),Z.current===!0&&ue(se),w(se),N==null||(ne=N.onFocus)==null||ne.call(N,q)},Ye=N=>q=>{var ne;G(q),Z.current===!1&&ue(-1),w(-1),N==null||(ne=N.onBlur)==null||ne.call(N,q)};E4(()=>{if(r&&$.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&k!==-1&&A(-1),r&&pe!==-1&&ue(-1);const Me=N=>q=>{var ne;(ne=N.onChange)==null||ne.call(N,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=Y[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(V&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:ne}=$,{width:se,height:oe,bottom:Re,left:ke}=ne.getBoundingClientRect();let $e;de.indexOf("vertical")===0?$e=(Re-N.y)/oe:$e=(N.x-ke)/se,de.indexOf("-reverse")!==-1&&($e=1-$e);let Ge;if(Ge=u8($e,l,s),v)Ge=f8(Ge,v,l);else{const ht=s1(X,Ge);Ge=X[ht]}Ge=va(Ge,l,s);let kt=0;if(W){q?kt=ae.current:kt=s1(Y,Ge),i&&(Ge=va(Ge,Y[kt-1]||-1/0,Y[kt+1]||1/0));const ht=Ge;Ge=l1({values:Y,newValue:Ge,index:kt}),i&&q||(kt=Ge.indexOf(ht),ae.current=kt)}return{newValue:Ge,activeIndex:kt}},ee=fc(N=>{const q=ys(N,C);if(!q)return;if(I.current+=1,N.type==="mousemove"&&N.buttons===0){Ae(N);return}const{newValue:ne,activeIndex:se}=ve({finger:q,move:!0});gs({sliderRef:$,activeIndex:se,setActive:A}),M(ne),!j&&I.current>l8&&T(!0),D&&!vs(ne,B)&&D(N,ne,se)}),Ae=fc(N=>{const q=ys(N,C);if(T(!1),!q)return;const{newValue:ne}=ve({finger:q,move:!0});A(-1),N.type==="touchend"&&w(-1),d&&d(N,ne),C.current=void 0,xe()}),he=fc(N=>{if(r)return;pc()||N.preventDefault();const q=N.changedTouches[0];q!=null&&(C.current=q.identifier);const ne=ys(N,C);if(ne!==!1){const{newValue:oe,activeIndex:Re}=ve({finger:ne});gs({sliderRef:$,activeIndex:Re,setActive:A}),M(oe),D&&!vs(oe,B)&&D(N,oe,Re)}I.current=0;const se=Bs($.current);se.addEventListener("touchmove",ee),se.addEventListener("touchend",Ae)}),xe=z.useCallback(()=>{const N=Bs($.current);N.removeEventListener("mousemove",ee),N.removeEventListener("mouseup",Ae),N.removeEventListener("touchmove",ee),N.removeEventListener("touchend",Ae)},[Ae,ee]);z.useEffect(()=>{const{current:N}=$;return N.addEventListener("touchstart",he,{passive:pc()}),()=>{N.removeEventListener("touchstart",he,{passive:pc()}),xe()}},[xe,he]),z.useEffect(()=>{r&&xe()},[r,xe]);const He=N=>q=>{var ne;if((ne=N.onMouseDown)==null||ne.call(N,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ys(q,C);if(se!==!1){const{newValue:Re,activeIndex:ke}=ve({finger:se});gs({sliderRef:$,activeIndex:ke,setActive:A}),M(Re),D&&!vs(Re,B)&&D(q,Re,ke)}I.current=0;const oe=Bs($.current);oe.addEventListener("mousemove",ee),oe.addEventListener("mouseup",Ae)},rt=Vs(W?Y[0]:l,l,s),ft=Vs(Y[Y.length-1],l,s)-rt,tn=(N={})=>{const q=hc(N),ne={onMouseDown:He(q||{})},se=be({},q,ne);return be({},N,{ref:te},se)},Ue=N=>q=>{var ne;(ne=N.onMouseOver)==null||ne.call(N,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=N=>q=>{var ne;(ne=N.onMouseLeave)==null||ne.call(N,q),w(-1)};return{active:k,axis:de,axisProps:d8,dragging:j,focusedThumbIndex:pe,getHiddenInputProps:(N={})=>{var q;const ne=hc(N),se={onChange:Me(ne||{}),onFocus:ge(ne||{}),onBlur:Ye(ne||{})},oe=be({},ne,se);return be({tabIndex:b,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":g(s),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(q=e.step)!=null?q:void 0,disabled:r},N,oe,{style:be({},o8,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tn,getThumbProps:(N={})=>{const q=hc(N),ne={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return be({},N,q,ne)},marks:V,open:O,range:W,rootRef:te,trackLeap:ft,trackOffset:rt,values:Y,getThumbStyle:N=>({pointerEvents:k!==-1&&k!==N?"none":void 0})}}const m8=Gd(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),y8=Gd(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),g8=Gd(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function v8(e){return Nd("MuiCheckbox",e)}const x8=Ld("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mc=x8,b8=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],w8=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${Jt(r)}`,`size${Jt(i)}`]},o=Bd(a,v8,t);return be({},t,o)},S8=Wn(G4,{shouldForwardProp:e=>i4(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Jt(n.size)}`],n.color!=="default"&&t[`color${Jt(n.color)}`]]}})(({theme:e,ownerState:t})=>be({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lf(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${mc.checked}, &.${mc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),_8=y.jsx(y8,{}),O8=y.jsx(m8,{}),k8=y.jsx(g8,{}),C8=z.forwardRef(function(t,n){var r,i;const a=Rd({props:t,name:"MuiCheckbox"}),{checkedIcon:o=_8,color:s="primary",icon:l=O8,indeterminate:u=!1,indeterminateIcon:f=k8,inputProps:d,size:h="medium",className:m}=a,g=Wl(a,b8),v=u?f:l,b=u?f:o,_=be({},a,{color:s,indeterminate:u,size:h}),C=w8(_);return y.jsx(S8,be({type:"checkbox",inputProps:be({"data-indeterminate":u},d),icon:z.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:h}),checkedIcon:z.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:h}),ownerState:_,ref:n,className:rr(C.root,m)},g,{classes:C}))}),P8=C8,A8=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function j8(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=sv(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=a.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function T8(e){return typeof e=="function"?e():e}function bs(e,t,n){const r=T8(n),i=j8(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const E8=z.forwardRef(function(t,n){const r=zd(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:f="down",easing:d=i,in:h,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:_,onExiting:C,style:k,timeout:A=a,TransitionComponent:O=L4}=t,w=Wl(t,A8),j=z.useRef(null),T=cf(l.ref,j,n),I=G=>Q=>{G&&(Q===void 0?G(j.current):G(j.current,Q))},B=I((G,Q)=>{bs(f,G,u),N4(G),m&&m(G,Q)}),M=I((G,Q)=>{const E=a1({timeout:A,style:k,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",be({},E)),G.style.transition=r.transitions.create("transform",be({},E)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,Q)}),D=I(g),W=I(C),Y=I(G=>{const Q=a1({timeout:A,style:k,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q),G.style.transition=r.transitions.create("transform",Q),bs(f,G,u),b&&b(G)}),V=I(G=>{G.style.webkitTransition="",G.style.transition="",_&&_(G)}),X=G=>{o&&o(j.current,G)},Z=z.useCallback(()=>{j.current&&bs(f,j.current,u)},[f,u]);return z.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=B4(()=>{j.current&&bs(f,j.current,u)}),Q=sv(j.current);return Q.addEventListener("resize",G),()=>{G.clear(),Q.removeEventListener("resize",G)}},[f,h,u]),z.useEffect(()=>{h||Z()},[h,Z]),y.jsx(O,be({nodeRef:j,onEnter:B,onEntered:D,onEntering:M,onExit:Y,onExited:V,onExiting:W,addEndListener:X,appear:s,in:h,timeout:A},w,{children:(G,Q)=>z.cloneElement(l,be({ref:T,style:be({visibility:G==="exited"&&!h?"hidden":void 0},k,l.props.style)},Q))}))}),Ei=E8;function M8(e){return Nd("MuiFormControlLabel",e)}const $8=Ld("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),$a=$8,I8=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],D8=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,o={root:["root",n&&"disabled",`labelPlacement${Jt(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Bd(o,M8,t)},L8=Wn("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$a.label}`]:t.label},t.root,t[`labelPlacement${Jt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>be({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$a.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${$a.label}`]:{[`&.${$a.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),N8=Wn("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$a.error}`]:{color:(e.vars||e).palette.error.main}})),R8=z.forwardRef(function(t,n){var r,i;const a=Rd({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:f,label:d,labelPlacement:h="end",required:m,slotProps:g={}}=a,v=Wl(a,I8),b=H4(),_=(r=u??l.props.disabled)!=null?r:b==null?void 0:b.disabled,C=m??l.props.required,k={disabled:_,required:C};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(k[I]=a[I])});const A=U4({props:a,muiFormControl:b,states:["error"]}),O=be({},a,{disabled:_,labelPlacement:h,required:C,error:A.error}),w=D8(O),j=(i=g.typography)!=null?i:s.typography;let T=d;return T!=null&&T.type!==i1&&!f&&(T=y.jsx(i1,be({component:"span"},j,{className:rr(w.label,j==null?void 0:j.className),children:T}))),y.jsxs(L8,be({className:rr(w.root,o),ownerState:O,ref:n},v,{children:[z.cloneElement(l,k),C?y.jsxs(W4,{display:"block",children:[T,y.jsxs(N8,{ownerState:O,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):T]}))}),u1=R8,B8=e=>!e||!zs(e),z8=B8;function F8(e){return Nd("MuiSlider",e)}const H8=Ld("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),En=H8,U8=e=>{const{open:t}=e;return{offset:rr(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function W8(e){const{children:t,className:n,value:r}=e,i=U8(e);return t?z.cloneElement(t,{className:rr(t.props.className)},y.jsxs(z.Fragment,{children:[t.props.children,y.jsx("span",{className:rr(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const Y8=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function c1(e){return e}const V8=Wn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Jt(n.color)}`],n.size!=="medium"&&t[`size${Jt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>be({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&be({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&be({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${En.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${En.dragging}`]:{[`& .${En.thumb}, & .${En.track}`]:{transition:"none"}}})),G8=Wn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>be({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),q8=Wn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?a4(e.palette[t.color].main,.62):o4(e.palette[t.color].main,.5);return be({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),K8=Wn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Jt(n.color)}`],n.size!=="medium"&&t[`thumbSize${Jt(n.size)}`]]}})(({theme:e,ownerState:t})=>be({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":be({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${En.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${En.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),X8=Wn(W8,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>be({[`&.${En.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Z8=Wn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>qg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>be({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),J8=Wn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>qg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>be({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Q8=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Bd(u,F8,o)},e9=({children:e})=>e,t9=z.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,_,C,k,A,O,w,j,T,I,B;const M=Rd({props:t,name:"MuiSlider"}),W=zd().direction==="rtl",{"aria-label":Y,"aria-valuetext":V,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:Q={},color:E="primary",classes:pe,className:ue,disableSwap:$=!1,disabled:_e=!1,getAriaLabel:te,getAriaValueText:ge,marks:Ye=!1,max:Me=100,min:ae=0,orientation:de="horizontal",size:ve="medium",step:ee=1,scale:Ae=c1,slotProps:he,slots:xe,track:He="normal",valueLabelDisplay:rt="off",valueLabelFormat:ft=c1}=M,tn=Wl(M,Y8),Ue=be({},M,{isRtl:W,max:Me,min:ae,classes:pe,disabled:_e,disableSwap:$,orientation:de,marks:Ye,color:E,size:ve,step:ee,scale:Ae,track:He,valueLabelDisplay:rt,valueLabelFormat:ft}),{axisProps:Ne,getRootProps:it,getHiddenInputProps:nn,getThumbProps:Cn,open:N,active:q,axis:ne,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ge,trackLeap:kt,getThumbStyle:ht}=p8(be({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(je=>je.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=Q8(Ue),It=(r=(i=xe==null?void 0:xe.root)!=null?i:G.Root)!=null?r:V8,oi=(a=(o=xe==null?void 0:xe.rail)!=null?o:G.Rail)!=null?a:G8,Rr=(s=(l=xe==null?void 0:xe.track)!=null?l:G.Track)!=null?s:q8,qe=(u=(f=xe==null?void 0:xe.thumb)!=null?f:G.Thumb)!=null?u:K8,ua=(d=(h=xe==null?void 0:xe.valueLabel)!=null?h:G.ValueLabel)!=null?d:X8,si=(m=(g=xe==null?void 0:xe.mark)!=null?g:G.Mark)!=null?m:Z8,dr=(v=(b=xe==null?void 0:xe.markLabel)!=null?b:G.MarkLabel)!=null?v:J8,li=(_=(C=xe==null?void 0:xe.input)!=null?C:G.Input)!=null?_:"input",hr=(k=he==null?void 0:he.root)!=null?k:Q.root,pr=(A=he==null?void 0:he.rail)!=null?A:Q.rail,mr=(O=he==null?void 0:he.track)!=null?O:Q.track,ca=(w=he==null?void 0:he.thumb)!=null?w:Q.thumb,yr=(j=he==null?void 0:he.valueLabel)!=null?j:Q.valueLabel,Wu=(T=he==null?void 0:he.mark)!=null?T:Q.mark,Br=(I=he==null?void 0:he.markLabel)!=null?I:Q.markLabel,ui=(B=he==null?void 0:he.input)!=null?B:Q.input,ce=br({elementType:It,getSlotProps:it,externalSlotProps:hr,externalForwardedProps:tn,additionalProps:be({},z8(It)&&{as:Z}),ownerState:be({},Ue,hr==null?void 0:hr.ownerState),className:[Ie.root,ue]}),Yu=br({elementType:oi,externalSlotProps:pr,ownerState:Ue,className:Ie.rail}),Vu=br({elementType:Rr,externalSlotProps:mr,additionalProps:{style:be({},Ne[ne].offset(Ge),Ne[ne].leap(kt))},ownerState:be({},Ue,mr==null?void 0:mr.ownerState),className:Ie.track}),Tt=br({elementType:qe,getSlotProps:Cn,externalSlotProps:ca,ownerState:be({},Ue,ca==null?void 0:ca.ownerState),className:Ie.thumb}),fa=br({elementType:ua,externalSlotProps:yr,ownerState:be({},Ue,yr==null?void 0:yr.ownerState),className:Ie.valueLabel}),Be=br({elementType:si,externalSlotProps:Wu,ownerState:Ue,className:Ie.mark}),Yn=br({elementType:dr,externalSlotProps:Br,ownerState:Ue,className:Ie.markLabel}),Gu=br({elementType:li,getSlotProps:nn,externalSlotProps:ui,ownerState:Ue});return y.jsxs(It,be({},ce,{children:[y.jsx(oi,be({},Yu)),y.jsx(Rr,be({},Vu)),ke.filter(je=>je.value>=ae&&je.value<=Me).map((je,Je)=>{const Kt=Vs(je.value,ae,Me),lt=Ne[ne].offset(Kt);let mt;return He===!1?mt=$e.indexOf(je.value)!==-1:mt=He==="normal"&&(oe?je.value>=$e[0]&&je.value<=$e[$e.length-1]:je.value<=$e[0])||He==="inverted"&&(oe?je.value<=$e[0]||je.value>=$e[$e.length-1]:je.value>=$e[0]),y.jsxs(z.Fragment,{children:[y.jsx(si,be({"data-index":Je},Be,!zs(si)&&{markActive:mt},{style:be({},lt,Be.style),className:rr(Be.className,mt&&Ie.markActive)})),je.label!=null?y.jsx(dr,be({"aria-hidden":!0,"data-index":Je},Yn,!zs(dr)&&{markLabelActive:mt},{style:be({},lt,Yn.style),className:rr(Ie.markLabel,Yn.className,mt&&Ie.markLabelActive),children:je.label})):null]},Je)}),$e.map((je,Je)=>{const Kt=Vs(je,ae,Me),lt=Ne[ne].offset(Kt),mt=rt==="off"?e9:ua;return y.jsx(mt,be({},!zs(mt)&&{valueLabelFormat:ft,valueLabelDisplay:rt,value:typeof ft=="function"?ft(Ae(je),Je):ft,index:Je,open:N===Je||q===Je||rt==="on",disabled:_e},fa,{children:y.jsx(qe,be({"data-index":Je},Tt,{className:rr(Ie.thumb,Tt.className,q===Je&&Ie.active,se===Je&&Ie.focusVisible),style:be({},lt,ht(Je),Tt.style),children:y.jsx(li,be({"data-index":Je,"aria-label":te?te(Je):Y,"aria-valuenow":Ae(je),"aria-labelledby":X,"aria-valuetext":ge?ge(Ae(je),Je):V,value:$e[Je]},Gu))}))}),Je)})]}))}),Kl=t9,n9=(e,t="down")=>{const n=zd(),[r,i]=z.useState(!1),a=n.breakpoints[t](e).split("@media")[1].trim();return z.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(a);i(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[a]),r},r9=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function i9(e){return e.tldr_topic??e.name}var Gs=globalThis&&globalThis.__assign||function(){return Gs=Object.assign||function(e){for(var t,n=1,r=arguments.length;ny.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"keyboard_arrow_left",children:[y.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:y.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1428_267)",children:y.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),l9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"arrow_forward",children:[y.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_8980_24763)",children:y.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),u9=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` +import{aa as Gg,ab as bi,a8 as n1,ac as r4,r as z,_ as be,j as y,g as Ld,b as Nd,s as Yn,i as i4,e as Jt,f as lf,u as Rd,a as Ul,c as ir,d as Bd,ad as zd,ae as a4,af as o4,ag as qg,o as H,q as R,ah as Fd,Q as Wl,F,B as Sn,J as No,D as Kg,T as pt,ai as s4,aj as l4,v as zn,ak as Ga,al as Nt,am as u4,n as st,A as Bt,z as Ro,K as Xg,an as Zg,O as uf,C as c4,ao as f4,ap as Bo,aq as Ji,ar as _n,as as Jg,at as Hd,au as Qi,av as Te,R as U,aw as d4,ax as Qg,ay as h4,az as ev,aA as p4,aB as m4,aC as y4,aD as zo,aE as Ud,aF as tv,aG as nv,aH as g4,aI as v4,aJ as x4,aK as Yl,aL as b4,aM as w4,P as Oe,aN as S4,aO as _4,aP as O4,y as qt,aQ as r1,a5 as k4,E as an,aR as C4,aS as P4,p as A4,aT as j4}from"./index-20ea28f6.js";import{v as ei,c as T4,d as cf,e as E4,f as fc,g as Wd,h as M4,F as $4,A as $n,i as Ti,B as Rt,j as rv,P as Vl,k as I4,l as Yd,I as iv,m as Gl}from"./index-b0d8b87e.js";import{T as i1,S as av}from"./SearchIcon-c25aae9d.js";import{c as D4,a as dc,C as ql}from"./ClipLoader-4ce369de.js";import{S as ov}from"./Skeleton-1413bdb9.js";import{P as Vd}from"./PlusIcon-88e6816e.js";import{T as L4,r as N4,g as a1,P as R4}from"./Popover-bf44d96f.js";import{o as Rs,e as hc,a as sv,d as B4,i as Bs,u as wr}from"./useSlotProps-c721fa06.js";import{T as ea,u as z4}from"./index-6141d876.js";import{C as lv}from"./CheckIcon-9a593d48.js";import{u as F4,a as H4,f as U4,S as W4,F as Y4,P as V4}from"./Stack-72055e8f.js";import{S as G4}from"./SwitchBase-262eb8cd.js";import{c as Gd}from"./createSvgIcon-55ea993d.js";import{B as q4}from"./index-acb0ff6f.js";import{u as uv}from"./index-1baf3f02.js";import{b as K4,a as X4,c as Z4,d as J4}from"./index.esm-f5056f82.js";import{I as Q4}from"./InfoIcon-3abfdeb4.js";const o1="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",e8=async e=>{let t=await bi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await bi.keysend(o1,e),!(t!=null&&t.success)){if(t=await bi.topup(),t||(t=await bi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await e8(t),r={amount:t,refid:e};return await Gg.post("/boost",JSON.stringify(r)),n},n8=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},cv=(e,t)=>{if(!t)return null;const n=e.filter(a=>a.show_title&&a.link&&a.show_title===t.show_title&&a.episode_title===t.episode_title),r=n1.groupBy(n,a=>a.timestamp),i=n1.values(r).reduce((a,o)=>(o[0]&&a.push(o[0]),a),[]);return i.sort((a,o)=>{var d,h;const[s]=((d=a.timestamp)==null?void 0:d.split("-"))||[""],[l]=((h=o.timestamp)==null?void 0:h.split("-"))||[""],u=ei(s),f=ei(l);return u-f}),i},r8=async e=>{await r4(async()=>{try{await bi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},i8=e=>{const t=/((http|https):\/\/[^\s]+)/g,n=/@(\w+)/g;let r=e.replace(/\\/g,"");return r=r.replace(/'/g,"’"),r=r.replace(/\n/g,"
"),r=r.replace(t,'$1'),r=r.replace(n,'@$1'),r},a8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},o8=a8;function s8(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const l8=2;function fv(e,t){return e-t}function va(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function s1(e,t){var n;const{index:r}=(n=e.reduce((i,a,o)=>{const s=Math.abs(t-a);return i===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},h8=e=>e;let vs;function pc(){return vs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?vs=CSS.supports("touch-action","none"):vs=!0),vs}function p8(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:f,onChangeCommitted:d,orientation:h="horizontal",rootRef:m,scale:g=h8,step:v=1,tabIndex:b,value:_}=e,C=z.useRef(),[k,A]=z.useState(-1),[O,w]=z.useState(-1),[j,T]=z.useState(!1),I=z.useRef(0),[B,M]=F4({controlled:_,default:n??l,name:"Slider"}),D=f&&((N,q,ne)=>{const se=N.nativeEvent||N,oe=new se.constructor(se.type,se);Object.defineProperty(oe,"target",{writable:!0,value:{value:q,name:u}}),f(oe,q,ne)}),W=Array.isArray(B);let Y=W?B.slice().sort(fv):[B];Y=Y.map(N=>va(N,l,s));const V=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((N,q)=>({value:l+v*q})):o||[],X=V.map(N=>N.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:Q,ref:E}=T4(),[pe,ue]=z.useState(-1),$=z.useRef(),_e=cf(E,$),te=cf(m,_e),ge=N=>q=>{var ne;const se=Number(q.currentTarget.getAttribute("data-index"));Q(q),Z.current===!0&&ue(se),w(se),N==null||(ne=N.onFocus)==null||ne.call(N,q)},Ye=N=>q=>{var ne;G(q),Z.current===!1&&ue(-1),w(-1),N==null||(ne=N.onBlur)==null||ne.call(N,q)};E4(()=>{if(r&&$.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&k!==-1&&A(-1),r&&pe!==-1&&ue(-1);const Me=N=>q=>{var ne;(ne=N.onChange)==null||ne.call(N,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=Y[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(V&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:ne}=$,{width:se,height:oe,bottom:Re,left:ke}=ne.getBoundingClientRect();let $e;de.indexOf("vertical")===0?$e=(Re-N.y)/oe:$e=(N.x-ke)/se,de.indexOf("-reverse")!==-1&&($e=1-$e);let Ge;if(Ge=u8($e,l,s),v)Ge=f8(Ge,v,l);else{const ht=s1(X,Ge);Ge=X[ht]}Ge=va(Ge,l,s);let kt=0;if(W){q?kt=ae.current:kt=s1(Y,Ge),i&&(Ge=va(Ge,Y[kt-1]||-1/0,Y[kt+1]||1/0));const ht=Ge;Ge=l1({values:Y,newValue:Ge,index:kt}),i&&q||(kt=Ge.indexOf(ht),ae.current=kt)}return{newValue:Ge,activeIndex:kt}},ee=fc(N=>{const q=ms(N,C);if(!q)return;if(I.current+=1,N.type==="mousemove"&&N.buttons===0){Ae(N);return}const{newValue:ne,activeIndex:se}=ve({finger:q,move:!0});ys({sliderRef:$,activeIndex:se,setActive:A}),M(ne),!j&&I.current>l8&&T(!0),D&&!gs(ne,B)&&D(N,ne,se)}),Ae=fc(N=>{const q=ms(N,C);if(T(!1),!q)return;const{newValue:ne}=ve({finger:q,move:!0});A(-1),N.type==="touchend"&&w(-1),d&&d(N,ne),C.current=void 0,xe()}),he=fc(N=>{if(r)return;pc()||N.preventDefault();const q=N.changedTouches[0];q!=null&&(C.current=q.identifier);const ne=ms(N,C);if(ne!==!1){const{newValue:oe,activeIndex:Re}=ve({finger:ne});ys({sliderRef:$,activeIndex:Re,setActive:A}),M(oe),D&&!gs(oe,B)&&D(N,oe,Re)}I.current=0;const se=Rs($.current);se.addEventListener("touchmove",ee),se.addEventListener("touchend",Ae)}),xe=z.useCallback(()=>{const N=Rs($.current);N.removeEventListener("mousemove",ee),N.removeEventListener("mouseup",Ae),N.removeEventListener("touchmove",ee),N.removeEventListener("touchend",Ae)},[Ae,ee]);z.useEffect(()=>{const{current:N}=$;return N.addEventListener("touchstart",he,{passive:pc()}),()=>{N.removeEventListener("touchstart",he,{passive:pc()}),xe()}},[xe,he]),z.useEffect(()=>{r&&xe()},[r,xe]);const He=N=>q=>{var ne;if((ne=N.onMouseDown)==null||ne.call(N,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ms(q,C);if(se!==!1){const{newValue:Re,activeIndex:ke}=ve({finger:se});ys({sliderRef:$,activeIndex:ke,setActive:A}),M(Re),D&&!gs(Re,B)&&D(q,Re,ke)}I.current=0;const oe=Rs($.current);oe.addEventListener("mousemove",ee),oe.addEventListener("mouseup",Ae)},rt=Ys(W?Y[0]:l,l,s),ft=Ys(Y[Y.length-1],l,s)-rt,tn=(N={})=>{const q=hc(N),ne={onMouseDown:He(q||{})},se=be({},q,ne);return be({},N,{ref:te},se)},Ue=N=>q=>{var ne;(ne=N.onMouseOver)==null||ne.call(N,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=N=>q=>{var ne;(ne=N.onMouseLeave)==null||ne.call(N,q),w(-1)};return{active:k,axis:de,axisProps:d8,dragging:j,focusedThumbIndex:pe,getHiddenInputProps:(N={})=>{var q;const ne=hc(N),se={onChange:Me(ne||{}),onFocus:ge(ne||{}),onBlur:Ye(ne||{})},oe=be({},ne,se);return be({tabIndex:b,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":g(s),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(q=e.step)!=null?q:void 0,disabled:r},N,oe,{style:be({},o8,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tn,getThumbProps:(N={})=>{const q=hc(N),ne={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return be({},N,q,ne)},marks:V,open:O,range:W,rootRef:te,trackLeap:ft,trackOffset:rt,values:Y,getThumbStyle:N=>({pointerEvents:k!==-1&&k!==N?"none":void 0})}}const m8=Gd(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),y8=Gd(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),g8=Gd(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function v8(e){return Nd("MuiCheckbox",e)}const x8=Ld("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mc=x8,b8=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],w8=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${Jt(r)}`,`size${Jt(i)}`]},o=Bd(a,v8,t);return be({},t,o)},S8=Yn(G4,{shouldForwardProp:e=>i4(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Jt(n.size)}`],n.color!=="default"&&t[`color${Jt(n.color)}`]]}})(({theme:e,ownerState:t})=>be({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lf(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${mc.checked}, &.${mc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),_8=y.jsx(y8,{}),O8=y.jsx(m8,{}),k8=y.jsx(g8,{}),C8=z.forwardRef(function(t,n){var r,i;const a=Rd({props:t,name:"MuiCheckbox"}),{checkedIcon:o=_8,color:s="primary",icon:l=O8,indeterminate:u=!1,indeterminateIcon:f=k8,inputProps:d,size:h="medium",className:m}=a,g=Ul(a,b8),v=u?f:l,b=u?f:o,_=be({},a,{color:s,indeterminate:u,size:h}),C=w8(_);return y.jsx(S8,be({type:"checkbox",inputProps:be({"data-indeterminate":u},d),icon:z.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:h}),checkedIcon:z.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:h}),ownerState:_,ref:n,className:ir(C.root,m)},g,{classes:C}))}),P8=C8,A8=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function j8(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=sv(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=a.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function T8(e){return typeof e=="function"?e():e}function xs(e,t,n){const r=T8(n),i=j8(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const E8=z.forwardRef(function(t,n){const r=zd(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:f="down",easing:d=i,in:h,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:_,onExiting:C,style:k,timeout:A=a,TransitionComponent:O=L4}=t,w=Ul(t,A8),j=z.useRef(null),T=cf(l.ref,j,n),I=G=>Q=>{G&&(Q===void 0?G(j.current):G(j.current,Q))},B=I((G,Q)=>{xs(f,G,u),N4(G),m&&m(G,Q)}),M=I((G,Q)=>{const E=a1({timeout:A,style:k,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",be({},E)),G.style.transition=r.transitions.create("transform",be({},E)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,Q)}),D=I(g),W=I(C),Y=I(G=>{const Q=a1({timeout:A,style:k,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q),G.style.transition=r.transitions.create("transform",Q),xs(f,G,u),b&&b(G)}),V=I(G=>{G.style.webkitTransition="",G.style.transition="",_&&_(G)}),X=G=>{o&&o(j.current,G)},Z=z.useCallback(()=>{j.current&&xs(f,j.current,u)},[f,u]);return z.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=B4(()=>{j.current&&xs(f,j.current,u)}),Q=sv(j.current);return Q.addEventListener("resize",G),()=>{G.clear(),Q.removeEventListener("resize",G)}},[f,h,u]),z.useEffect(()=>{h||Z()},[h,Z]),y.jsx(O,be({nodeRef:j,onEnter:B,onEntered:D,onEntering:M,onExit:Y,onExited:V,onExiting:W,addEndListener:X,appear:s,in:h,timeout:A},w,{children:(G,Q)=>z.cloneElement(l,be({ref:T,style:be({visibility:G==="exited"&&!h?"hidden":void 0},k,l.props.style)},Q))}))}),Ei=E8;function M8(e){return Nd("MuiFormControlLabel",e)}const $8=Ld("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),$a=$8,I8=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],D8=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,o={root:["root",n&&"disabled",`labelPlacement${Jt(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Bd(o,M8,t)},L8=Yn("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$a.label}`]:t.label},t.root,t[`labelPlacement${Jt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>be({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$a.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${$a.label}`]:{[`&.${$a.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),N8=Yn("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$a.error}`]:{color:(e.vars||e).palette.error.main}})),R8=z.forwardRef(function(t,n){var r,i;const a=Rd({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:f,label:d,labelPlacement:h="end",required:m,slotProps:g={}}=a,v=Ul(a,I8),b=H4(),_=(r=u??l.props.disabled)!=null?r:b==null?void 0:b.disabled,C=m??l.props.required,k={disabled:_,required:C};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(k[I]=a[I])});const A=U4({props:a,muiFormControl:b,states:["error"]}),O=be({},a,{disabled:_,labelPlacement:h,required:C,error:A.error}),w=D8(O),j=(i=g.typography)!=null?i:s.typography;let T=d;return T!=null&&T.type!==i1&&!f&&(T=y.jsx(i1,be({component:"span"},j,{className:ir(w.label,j==null?void 0:j.className),children:T}))),y.jsxs(L8,be({className:ir(w.root,o),ownerState:O,ref:n},v,{children:[z.cloneElement(l,k),C?y.jsxs(W4,{display:"block",children:[T,y.jsxs(N8,{ownerState:O,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):T]}))}),u1=R8,B8=e=>!e||!Bs(e),z8=B8;function F8(e){return Nd("MuiSlider",e)}const H8=Ld("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),En=H8,U8=e=>{const{open:t}=e;return{offset:ir(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function W8(e){const{children:t,className:n,value:r}=e,i=U8(e);return t?z.cloneElement(t,{className:ir(t.props.className)},y.jsxs(z.Fragment,{children:[t.props.children,y.jsx("span",{className:ir(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const Y8=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function c1(e){return e}const V8=Yn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Jt(n.color)}`],n.size!=="medium"&&t[`size${Jt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>be({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&be({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&be({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${En.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${En.dragging}`]:{[`& .${En.thumb}, & .${En.track}`]:{transition:"none"}}})),G8=Yn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>be({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),q8=Yn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?a4(e.palette[t.color].main,.62):o4(e.palette[t.color].main,.5);return be({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),K8=Yn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Jt(n.color)}`],n.size!=="medium"&&t[`thumbSize${Jt(n.size)}`]]}})(({theme:e,ownerState:t})=>be({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":be({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${En.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${En.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),X8=Yn(W8,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>be({[`&.${En.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Z8=Yn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>qg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>be({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),J8=Yn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>qg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>be({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Q8=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Bd(u,F8,o)},e9=({children:e})=>e,t9=z.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,_,C,k,A,O,w,j,T,I,B;const M=Rd({props:t,name:"MuiSlider"}),W=zd().direction==="rtl",{"aria-label":Y,"aria-valuetext":V,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:Q={},color:E="primary",classes:pe,className:ue,disableSwap:$=!1,disabled:_e=!1,getAriaLabel:te,getAriaValueText:ge,marks:Ye=!1,max:Me=100,min:ae=0,orientation:de="horizontal",size:ve="medium",step:ee=1,scale:Ae=c1,slotProps:he,slots:xe,track:He="normal",valueLabelDisplay:rt="off",valueLabelFormat:ft=c1}=M,tn=Ul(M,Y8),Ue=be({},M,{isRtl:W,max:Me,min:ae,classes:pe,disabled:_e,disableSwap:$,orientation:de,marks:Ye,color:E,size:ve,step:ee,scale:Ae,track:He,valueLabelDisplay:rt,valueLabelFormat:ft}),{axisProps:Ne,getRootProps:it,getHiddenInputProps:nn,getThumbProps:Cn,open:N,active:q,axis:ne,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ge,trackLeap:kt,getThumbStyle:ht}=p8(be({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(je=>je.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=Q8(Ue),It=(r=(i=xe==null?void 0:xe.root)!=null?i:G.Root)!=null?r:V8,oi=(a=(o=xe==null?void 0:xe.rail)!=null?o:G.Rail)!=null?a:G8,Rr=(s=(l=xe==null?void 0:xe.track)!=null?l:G.Track)!=null?s:q8,qe=(u=(f=xe==null?void 0:xe.thumb)!=null?f:G.Thumb)!=null?u:K8,ua=(d=(h=xe==null?void 0:xe.valueLabel)!=null?h:G.ValueLabel)!=null?d:X8,si=(m=(g=xe==null?void 0:xe.mark)!=null?g:G.Mark)!=null?m:Z8,hr=(v=(b=xe==null?void 0:xe.markLabel)!=null?b:G.MarkLabel)!=null?v:J8,li=(_=(C=xe==null?void 0:xe.input)!=null?C:G.Input)!=null?_:"input",pr=(k=he==null?void 0:he.root)!=null?k:Q.root,mr=(A=he==null?void 0:he.rail)!=null?A:Q.rail,yr=(O=he==null?void 0:he.track)!=null?O:Q.track,ca=(w=he==null?void 0:he.thumb)!=null?w:Q.thumb,gr=(j=he==null?void 0:he.valueLabel)!=null?j:Q.valueLabel,Wu=(T=he==null?void 0:he.mark)!=null?T:Q.mark,Br=(I=he==null?void 0:he.markLabel)!=null?I:Q.markLabel,ui=(B=he==null?void 0:he.input)!=null?B:Q.input,ce=wr({elementType:It,getSlotProps:it,externalSlotProps:pr,externalForwardedProps:tn,additionalProps:be({},z8(It)&&{as:Z}),ownerState:be({},Ue,pr==null?void 0:pr.ownerState),className:[Ie.root,ue]}),Yu=wr({elementType:oi,externalSlotProps:mr,ownerState:Ue,className:Ie.rail}),Vu=wr({elementType:Rr,externalSlotProps:yr,additionalProps:{style:be({},Ne[ne].offset(Ge),Ne[ne].leap(kt))},ownerState:be({},Ue,yr==null?void 0:yr.ownerState),className:Ie.track}),Tt=wr({elementType:qe,getSlotProps:Cn,externalSlotProps:ca,ownerState:be({},Ue,ca==null?void 0:ca.ownerState),className:Ie.thumb}),fa=wr({elementType:ua,externalSlotProps:gr,ownerState:be({},Ue,gr==null?void 0:gr.ownerState),className:Ie.valueLabel}),Be=wr({elementType:si,externalSlotProps:Wu,ownerState:Ue,className:Ie.mark}),Vn=wr({elementType:hr,externalSlotProps:Br,ownerState:Ue,className:Ie.markLabel}),Gu=wr({elementType:li,getSlotProps:nn,externalSlotProps:ui,ownerState:Ue});return y.jsxs(It,be({},ce,{children:[y.jsx(oi,be({},Yu)),y.jsx(Rr,be({},Vu)),ke.filter(je=>je.value>=ae&&je.value<=Me).map((je,Je)=>{const Kt=Ys(je.value,ae,Me),lt=Ne[ne].offset(Kt);let mt;return He===!1?mt=$e.indexOf(je.value)!==-1:mt=He==="normal"&&(oe?je.value>=$e[0]&&je.value<=$e[$e.length-1]:je.value<=$e[0])||He==="inverted"&&(oe?je.value<=$e[0]||je.value>=$e[$e.length-1]:je.value>=$e[0]),y.jsxs(z.Fragment,{children:[y.jsx(si,be({"data-index":Je},Be,!Bs(si)&&{markActive:mt},{style:be({},lt,Be.style),className:ir(Be.className,mt&&Ie.markActive)})),je.label!=null?y.jsx(hr,be({"aria-hidden":!0,"data-index":Je},Vn,!Bs(hr)&&{markLabelActive:mt},{style:be({},lt,Vn.style),className:ir(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:je.label})):null]},Je)}),$e.map((je,Je)=>{const Kt=Ys(je,ae,Me),lt=Ne[ne].offset(Kt),mt=rt==="off"?e9:ua;return y.jsx(mt,be({},!Bs(mt)&&{valueLabelFormat:ft,valueLabelDisplay:rt,value:typeof ft=="function"?ft(Ae(je),Je):ft,index:Je,open:N===Je||q===Je||rt==="on",disabled:_e},fa,{children:y.jsx(qe,be({"data-index":Je},Tt,{className:ir(Ie.thumb,Tt.className,q===Je&&Ie.active,se===Je&&Ie.focusVisible),style:be({},lt,ht(Je),Tt.style),children:y.jsx(li,be({"data-index":Je,"aria-label":te?te(Je):Y,"aria-valuenow":Ae(je),"aria-labelledby":X,"aria-valuetext":ge?ge(Ae(je),Je):V,value:$e[Je]},Gu))}))}),Je)})]}))}),Kl=t9,n9=(e,t="down")=>{const n=zd(),[r,i]=z.useState(!1),a=n.breakpoints[t](e).split("@media")[1].trim();return z.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(a);i(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[a]),r},r9=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function i9(e){return e.tldr_topic??e.name}var Vs=globalThis&&globalThis.__assign||function(){return Vs=Object.assign||function(e){for(var t,n=1,r=arguments.length;ny.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"keyboard_arrow_left",children:[y.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:y.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1428_267)",children:y.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),l9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"arrow_forward",children:[y.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_8980_24763)",children:y.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),u9=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -41,7 +41,7 @@ import{aa as Gg,ab as bi,a8 as n1,ac as r4,r as z,_ as be,j as y,g as Ld,b as Nd background-position-x: 95%; background-repeat: no-repeat; `} -`,hv=({loading:e,placeholder:t="Search",onSubmit:n})=>{const{register:r,watch:i}=Wd(),a=i("search"),o=Yl();return y.jsx(u9,{...r("search"),disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(a.trim()==="")return;if(n){n();return}const l=a.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},c9=()=>{const e=M4({mode:"onChange"}),{fetchData:t,setAbortRequests:n}=Sn(s=>s),{setBudget:r}=No(s=>s),{reset:i}=e,a=Kg(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(t(r,n,s),i({search:""}))});return y.jsx(pv,{children:y.jsx($4,{...e,children:y.jsxs(f9,{children:[y.jsx(hv,{loading:a,onSubmit:o,placeholder:"Ask follow-up"}),y.jsx(d9,{"data-testid":"search-ai_action_icon",onClick:()=>{a||o()},children:a?y.jsx(Fo,{color:R.lightGray,"data-testid":"loader",size:"20"}):y.jsx(av,{})})]})})})},pv=H(F)` +`,hv=({loading:e,placeholder:t="Search",onSubmit:n})=>{const{register:r,watch:i}=Wd(),a=i("search"),o=Wl();return y.jsx(u9,{...r("search"),disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(a.trim()==="")return;if(n){n();return}const l=a.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},c9=()=>{const e=M4({mode:"onChange"}),{fetchData:t,setAbortRequests:n}=Sn(s=>s),{setBudget:r}=No(s=>s),{reset:i}=e,a=Kg(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(t(r,n,s),i({search:""}))});return y.jsx(pv,{children:y.jsx($4,{...e,children:y.jsxs(f9,{children:[y.jsx(hv,{loading:a,onSubmit:o,placeholder:"Ask follow-up"}),y.jsx(d9,{"data-testid":"search-ai_action_icon",onClick:()=>{a||o()},children:a?y.jsx(ql,{color:R.lightGray,"data-testid":"loader",size:"20"}):y.jsx(av,{})})]})})})},pv=H(F)` position: sticky; bottom: 0; padding: 12px; @@ -88,11 +88,11 @@ import{aa as Gg,ab as bi,a8 as n1,ac as r4,r as z,_ as be,j as y,g as Ld,b as Nd .title { margin: 20px 0 8px; } -`,ws=H(ov)` +`,bs=H(ov)` && { background: rgba(0, 0, 0, 0.15); } -`,mv=({count:e=7})=>y.jsx(y.Fragment,{children:Array(e).fill(null).map((t,n)=>y.jsx(m9,{children:y.jsxs(F,{direction:"row",children:[y.jsx(F,{align:"center",pr:16,children:y.jsx(ws,{animation:"wave",height:64,variant:"rectangular",width:64})}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(ws,{height:10,variant:"rectangular",width:56}),y.jsx(ws,{className:"title",height:10,variant:"rectangular",width:262}),y.jsx(ws,{height:10,variant:"rectangular",width:149})]})]})},n))});H(F)` +`,mv=({count:e=7})=>y.jsx(y.Fragment,{children:Array(e).fill(null).map((t,n)=>y.jsx(m9,{children:y.jsxs(F,{direction:"row",children:[y.jsx(F,{align:"center",pr:16,children:y.jsx(bs,{animation:"wave",height:64,variant:"rectangular",width:64})}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(bs,{height:10,variant:"rectangular",width:56}),y.jsx(bs,{className:"title",height:10,variant:"rectangular",width:262}),y.jsx(bs,{height:10,variant:"rectangular",width:149})]})]})},n))});H(F)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -169,7 +169,7 @@ import{aa as Gg,ab as bi,a8 as n1,ac as r4,r as z,_ as be,j as y,g as Ld,b as Nd font-size: 14px; font-weight: 400; line-height: 19.6px; -`,O9=({answer:e,entities:t,handleLoaded:n,hasBeenRendered:r})=>{const{fetchData:i,setAbortRequests:a}=Sn(v=>v),{setBudget:o}=No(v=>v),[s,l]=z.useState(""),[u,f]=z.useState(t),[d,h]=z.useState(!1);z.useEffect(()=>{let v;if(!(!e||r)){if(s.length{l(e.slice(0,s.length+1))},10),()=>clearTimeout(v);n(),h(!0)}},[e,s,n,r]),z.useEffect(()=>{s||r&&l(e)},[e,s,r]);const m=v=>{i(o,a,v)};z.useEffect(()=>{t&&u!==t&&f(t)},[t,u]);const g=x9(s,m,u,d);return y.jsx(S9,{children:y.jsx(_9,{children:g})})},k9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"stacks",children:[y.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_8417_33308)",children:y.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),C9=({questions:e})=>{const{fetchData:t,setAbortRequests:n}=Sn(o=>o),[r]=No(o=>[o.setBudget]),i=Kg(),a=o=>{i||o&&t(r,n,o)};return e!=null&&e.length?y.jsxs(E9,{children:[y.jsx(Ei,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(A9,{className:"heading",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(k9,{})}),y.jsx(j9,{children:"More on this"})]})}),y.jsx(Ei,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsx(F,{children:e.map(o=>y.jsxs(T9,{align:"center",direction:"row",justify:"space-between",onClick:()=>a(o),children:[y.jsx("span",{children:o}),y.jsx(F,{className:"icon",children:i?y.jsx(Fo,{color:R.white,size:13}):y.jsx(Vd,{})})]},o))})})]}):null},P9=z.memo(C9),A9=H(F)` +`,O9=({answer:e,entities:t,handleLoaded:n,hasBeenRendered:r})=>{const{fetchData:i,setAbortRequests:a}=Sn(v=>v),{setBudget:o}=No(v=>v),[s,l]=z.useState(""),[u,f]=z.useState(t),[d,h]=z.useState(!1);z.useEffect(()=>{let v;if(!(!e||r)){if(s.length{l(e.slice(0,s.length+1))},10),()=>clearTimeout(v);n(),h(!0)}},[e,s,n,r]),z.useEffect(()=>{s||r&&l(e)},[e,s,r]);const m=v=>{i(o,a,v)};z.useEffect(()=>{t&&u!==t&&f(t)},[t,u]);const g=x9(s,m,u,d);return y.jsx(S9,{children:y.jsx(_9,{children:g})})},k9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"stacks",children:[y.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_8417_33308)",children:y.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),C9=({questions:e})=>{const{fetchData:t,setAbortRequests:n}=Sn(o=>o),[r]=No(o=>[o.setBudget]),i=Kg(),a=o=>{i||o&&t(r,n,o)};return e!=null&&e.length?y.jsxs(E9,{children:[y.jsx(Ei,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(A9,{className:"heading",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(k9,{})}),y.jsx(j9,{children:"More on this"})]})}),y.jsx(Ei,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsx(F,{children:e.map(o=>y.jsxs(T9,{align:"center",className:zn({disabled:i}),direction:"row",justify:"space-between",onClick:()=>a(o),children:[y.jsx("span",{children:o}),y.jsx(F,{className:zn({disabled:i},"icon"),children:y.jsx(Vd,{})})]},o))})})]}):null},P9=z.memo(C9),A9=H(F)` &.heading { font-weight: 600; color: ${R.white}; @@ -199,6 +199,17 @@ import{aa as Gg,ab as bi,a8 as n1,ac as r4,r as z,_ as be,j as y,g as Ld,b as Nd cursor: pointer; line-height: 1.4; + &.disabled { + cursor: default; + &:hover { + color: ${R.GRAY3}; + .icon { + color: ${R.GRAY7}; + cursor: default; + } + } + } + &:hover { color: ${R.white}; .icon { @@ -234,7 +245,7 @@ import{aa as Gg,ab as bi,a8 as n1,ac as r4,r as z,_ as be,j as y,g as Ld,b as Nd margin: 0 4px 0 8px; color: ${R.white}; } -`,$9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),Er=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("g",{id:"Icons 20x20",children:y.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})});function Qn(e,t){const n=t!=null?String(t).trim():"";if(!n)return e;const r=new RegExp(`(${n})`,"gi"),i=e.split(r);return y.jsx(y.Fragment,{children:i.map((a,o)=>r.test(a)?y.jsx(I9,{children:a},o):a)})}const I9=H.span` +`,$9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),Er=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("g",{id:"Icons 20x20",children:y.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})});function er(e,t){const n=t!=null?String(t).trim():"";if(!n)return e;const r=new RegExp(`(${n})`,"gi"),i=e.split(r);return y.jsx(y.Fragment,{children:i.map((a,o)=>r.test(a)?y.jsx(I9,{children:a},o):a)})}const I9=H.span` background-color: rgba(0, 123, 255, 0.4); padding: 2; margin: 0; @@ -258,8 +269,8 @@ import{aa as Gg,ab as bi,a8 as n1,ac as r4,r as z,_ as be,j as y,g as Ld,b as Nd `,gv=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})});var vv={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Nt,function(){var n;function r(){return n.apply(null,arguments)}function i(c){n=c}function a(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function o(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function s(c,p){return Object.prototype.hasOwnProperty.call(c,p)}function l(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var p;for(p in c)if(s(c,p))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function d(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function h(c,p){var x=[],S,P=c.length;for(S=0;S>>0,S;for(S=0;S0)for(x=0;x=0;return(L?x?"+":"":"-")+Math.pow(10,Math.max(0,P)).toString().substr(1)+S}var pe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ue=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$={},_e={};function te(c,p,x,S){var P=S;typeof S=="string"&&(P=function(){return this[S]()}),c&&(_e[c]=P),p&&(_e[p[0]]=function(){return E(P.apply(this,arguments),p[1],p[2])}),x&&(_e[x]=function(){return this.localeData().ordinal(P.apply(this,arguments),c)})}function ge(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function Ye(c){var p=c.match(pe),x,S;for(x=0,S=p.length;x=0&&ue.test(c);)c=c.replace(ue,S),ue.lastIndex=0,x-=1;return c}var de={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ve(c){var p=this._longDateFormat[c],x=this._longDateFormat[c.toUpperCase()];return p||!x?p:(this._longDateFormat[c]=x.match(pe).map(function(S){return S==="MMMM"||S==="MM"||S==="DD"||S==="dddd"?S.slice(1):S}).join(""),this._longDateFormat[c])}var ee="Invalid date";function Ae(){return this._invalidDate}var he="%d",xe=/\d{1,2}/;function He(c){return this._ordinal.replace("%d",c)}var rt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ft(c,p,x,S){var P=this._relativeTime[x];return W(P)?P(c,p,x,S):P.replace(/%d/i,c)}function tn(c,p){var x=this._relativeTime[c>0?"future":"past"];return W(x)?x(p):x.replace(/%s/i,p)}var Ue={};function Ne(c,p){var x=c.toLowerCase();Ue[x]=Ue[x+"s"]=Ue[p]=c}function it(c){return typeof c=="string"?Ue[c]||Ue[c.toLowerCase()]:void 0}function nn(c){var p={},x,S;for(S in c)s(c,S)&&(x=it(S),x&&(p[x]=c[S]));return p}var Cn={};function N(c,p){Cn[c]=p}function q(c){var p=[],x;for(x in c)s(c,x)&&p.push({unit:x,priority:Cn[x]});return p.sort(function(S,P){return S.priority-P.priority}),p}function ne(c){return c%4===0&&c%100!==0||c%400===0}function se(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function oe(c){var p=+c,x=0;return p!==0&&isFinite(p)&&(x=se(p)),x}function Re(c,p){return function(x){return x!=null?($e(this,c,x),r.updateOffset(this,p),this):ke(this,c)}}function ke(c,p){return c.isValid()?c._d["get"+(c._isUTC?"UTC":"")+p]():NaN}function $e(c,p,x){c.isValid()&&!isNaN(x)&&(p==="FullYear"&&ne(c.year())&&c.month()===1&&c.date()===29?(x=oe(x),c._d["set"+(c._isUTC?"UTC":"")+p](x,c.month(),is(x,c.month()))):c._d["set"+(c._isUTC?"UTC":"")+p](x))}function Ge(c){return c=it(c),W(this[c])?this[c]():this}function kt(c,p){if(typeof c=="object"){c=nn(c);var x=q(c),S,P=x.length;for(S=0;S68?1900:2e3)};var Op=Re("FullYear",!0);function Fw(){return ne(this.year())}function Hw(c,p,x,S,P,L,K){var me;return c<100&&c>=0?(me=new Date(c+400,p,x,S,P,L,K),isFinite(me.getFullYear())&&me.setFullYear(c)):me=new Date(c,p,x,S,P,L,K),me}function ha(c){var p,x;return c<100&&c>=0?(x=Array.prototype.slice.call(arguments),x[0]=c+400,p=new Date(Date.UTC.apply(null,x)),isFinite(p.getUTCFullYear())&&p.setUTCFullYear(c)):p=new Date(Date.UTC.apply(null,arguments)),p}function as(c,p,x){var S=7+p-x,P=(7+ha(c,0,S).getUTCDay()-p)%7;return-P+S-1}function kp(c,p,x,S,P){var L=(7+x-S)%7,K=as(c,S,P),me=1+7*(p-1)+L+K,Ce,Ke;return me<=0?(Ce=c-1,Ke=da(Ce)+me):me>da(c)?(Ce=c+1,Ke=me-da(c)):(Ce=c,Ke=me),{year:Ce,dayOfYear:Ke}}function pa(c,p,x){var S=as(c.year(),p,x),P=Math.floor((c.dayOfYear()-S-1)/7)+1,L,K;return P<1?(K=c.year()-1,L=P+Gn(K,p,x)):P>Gn(c.year(),p,x)?(L=P-Gn(c.year(),p,x),K=c.year()+1):(K=c.year(),L=P),{week:L,year:K}}function Gn(c,p,x){var S=as(c,p,x),P=as(c+1,p,x);return(da(c)-S+P)/7}te("w",["ww",2],"wo","week"),te("W",["WW",2],"Wo","isoWeek"),Ne("week","w"),Ne("isoWeek","W"),N("week",5),N("isoWeek",5),ce("w",qe),ce("ww",qe,Ie),ce("W",qe),ce("WW",qe,Ie),Yn(["w","ww","W","WW"],function(c,p,x,S){p[S.substr(0,1)]=oe(c)});function Uw(c){return pa(c,this._week.dow,this._week.doy).week}var Ww={dow:0,doy:6};function Yw(){return this._week.dow}function Vw(){return this._week.doy}function Gw(c){var p=this.localeData().week(this);return c==null?p:this.add((c-p)*7,"d")}function qw(c){var p=pa(this,1,4).week;return c==null?p:this.add((c-p)*7,"d")}te("d",0,"do","day"),te("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),te("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),te("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),te("e",0,0,"weekday"),te("E",0,0,"isoWeekday"),Ne("day","d"),Ne("weekday","e"),Ne("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),ce("d",qe),ce("e",qe),ce("E",qe),ce("dd",function(c,p){return p.weekdaysMinRegex(c)}),ce("ddd",function(c,p){return p.weekdaysShortRegex(c)}),ce("dddd",function(c,p){return p.weekdaysRegex(c)}),Yn(["dd","ddd","dddd"],function(c,p,x,S){var P=x._locale.weekdaysParse(c,S,x._strict);P!=null?p.d=P:b(x).invalidWeekday=c}),Yn(["d","e","E"],function(c,p,x,S){p[S]=oe(c)});function Kw(c,p){return typeof c!="string"?c:isNaN(c)?(c=p.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function Xw(c,p){return typeof c=="string"?p.weekdaysParse(c)%7||7:isNaN(c)?null:c}function qu(c,p){return c.slice(p,7).concat(c.slice(0,p))}var Zw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Cp="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qw=Br,e3=Br,t3=Br;function n3(c,p){var x=a(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(p)?"format":"standalone"];return c===!0?qu(x,this._week.dow):c?x[c.day()]:x}function r3(c){return c===!0?qu(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function i3(c){return c===!0?qu(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function a3(c,p,x){var S,P,L,K=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],S=0;S<7;++S)L=g([2e3,1]).day(S),this._minWeekdaysParse[S]=this.weekdaysMin(L,"").toLocaleLowerCase(),this._shortWeekdaysParse[S]=this.weekdaysShort(L,"").toLocaleLowerCase(),this._weekdaysParse[S]=this.weekdays(L,"").toLocaleLowerCase();return x?p==="dddd"?(P=yt.call(this._weekdaysParse,K),P!==-1?P:null):p==="ddd"?(P=yt.call(this._shortWeekdaysParse,K),P!==-1?P:null):(P=yt.call(this._minWeekdaysParse,K),P!==-1?P:null):p==="dddd"?(P=yt.call(this._weekdaysParse,K),P!==-1||(P=yt.call(this._shortWeekdaysParse,K),P!==-1)?P:(P=yt.call(this._minWeekdaysParse,K),P!==-1?P:null)):p==="ddd"?(P=yt.call(this._shortWeekdaysParse,K),P!==-1||(P=yt.call(this._weekdaysParse,K),P!==-1)?P:(P=yt.call(this._minWeekdaysParse,K),P!==-1?P:null)):(P=yt.call(this._minWeekdaysParse,K),P!==-1||(P=yt.call(this._weekdaysParse,K),P!==-1)?P:(P=yt.call(this._shortWeekdaysParse,K),P!==-1?P:null))}function o3(c,p,x){var S,P,L;if(this._weekdaysParseExact)return a3.call(this,c,p,x);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),S=0;S<7;S++){if(P=g([2e3,1]).day(S),x&&!this._fullWeekdaysParse[S]&&(this._fullWeekdaysParse[S]=new RegExp("^"+this.weekdays(P,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[S]=new RegExp("^"+this.weekdaysShort(P,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[S]=new RegExp("^"+this.weekdaysMin(P,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[S]||(L="^"+this.weekdays(P,"")+"|^"+this.weekdaysShort(P,"")+"|^"+this.weekdaysMin(P,""),this._weekdaysParse[S]=new RegExp(L.replace(".",""),"i")),x&&p==="dddd"&&this._fullWeekdaysParse[S].test(c))return S;if(x&&p==="ddd"&&this._shortWeekdaysParse[S].test(c))return S;if(x&&p==="dd"&&this._minWeekdaysParse[S].test(c))return S;if(!x&&this._weekdaysParse[S].test(c))return S}}function s3(c){if(!this.isValid())return c!=null?this:NaN;var p=this._isUTC?this._d.getUTCDay():this._d.getDay();return c!=null?(c=Kw(c,this.localeData()),this.add(c-p,"d")):p}function l3(c){if(!this.isValid())return c!=null?this:NaN;var p=(this.day()+7-this.localeData()._week.dow)%7;return c==null?p:this.add(c-p,"d")}function u3(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var p=Xw(c,this.localeData());return this.day(this.day()%7?p:p-7)}else return this.day()||7}function c3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ku.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Qw),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function f3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ku.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=e3),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function d3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ku.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=t3),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ku(){function c(Ft,Jn){return Jn.length-Ft.length}var p=[],x=[],S=[],P=[],L,K,me,Ce,Ke;for(L=0;L<7;L++)K=g([2e3,1]).day(L),me=Tt(this.weekdaysMin(K,"")),Ce=Tt(this.weekdaysShort(K,"")),Ke=Tt(this.weekdays(K,"")),p.push(me),x.push(Ce),S.push(Ke),P.push(me),P.push(Ce),P.push(Ke);p.sort(c),x.sort(c),S.sort(c),P.sort(c),this._weekdaysRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+x.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+p.join("|")+")","i")}function Xu(){return this.hours()%12||12}function h3(){return this.hours()||24}te("H",["HH",2],0,"hour"),te("h",["hh",2],0,Xu),te("k",["kk",2],0,h3),te("hmm",0,0,function(){return""+Xu.apply(this)+E(this.minutes(),2)}),te("hmmss",0,0,function(){return""+Xu.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),te("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),te("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)});function Pp(c,p){te(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),p)})}Pp("a",!0),Pp("A",!1),Ne("hour","h"),N("hour",13);function Ap(c,p){return p._meridiemParse}ce("a",Ap),ce("A",Ap),ce("H",qe),ce("h",qe),ce("k",qe),ce("HH",qe,Ie),ce("hh",qe,Ie),ce("kk",qe,Ie),ce("hmm",ua),ce("hmmss",si),ce("Hmm",ua),ce("Hmmss",si),Be(["H","HH"],lt),Be(["k","kk"],function(c,p,x){var S=oe(c);p[lt]=S===24?0:S}),Be(["a","A"],function(c,p,x){x._isPm=x._locale.isPM(c),x._meridiem=c}),Be(["h","hh"],function(c,p,x){p[lt]=oe(c),b(x).bigHour=!0}),Be("hmm",function(c,p,x){var S=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S)),b(x).bigHour=!0}),Be("hmmss",function(c,p,x){var S=c.length-4,P=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S,2)),p[Vn]=oe(c.substr(P)),b(x).bigHour=!0}),Be("Hmm",function(c,p,x){var S=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S))}),Be("Hmmss",function(c,p,x){var S=c.length-4,P=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S,2)),p[Vn]=oe(c.substr(P))});function p3(c){return(c+"").toLowerCase().charAt(0)==="p"}var m3=/[ap]\.?m?\.?/i,y3=Re("Hours",!0);function g3(c,p,x){return c>11?x?"pm":"PM":x?"am":"AM"}var jp={calendar:G,longDateFormat:de,invalidDate:ee,ordinal:he,dayOfMonthOrdinalParse:xe,relativeTime:rt,months:Ew,monthsShort:xp,week:Ww,weekdays:Zw,weekdaysMin:Jw,weekdaysShort:Cp,meridiemParse:m3},ut={},ma={},ya;function v3(c,p){var x,S=Math.min(c.length,p.length);for(x=0;x0;){if(P=os(L.slice(0,x).join("-")),P)return P;if(S&&S.length>=x&&v3(L,S)>=x-1)break;x--}p++}return ya}function b3(c){return c.match("^[^/\\\\]*$")!=null}function os(c){var p=null,x;if(ut[c]===void 0&&e&&e.exports&&b3(c))try{p=ya._abbr,x=u4,x("./locale/"+c),gr(p)}catch{ut[c]=null}return ut[c]}function gr(c,p){var x;return c&&(u(p)?x=qn(c):x=Zu(c,p),x?ya=x:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),ya._abbr}function Zu(c,p){if(p!==null){var x,S=jp;if(p.abbr=c,ut[c]!=null)D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),S=ut[c]._config;else if(p.parentLocale!=null)if(ut[p.parentLocale]!=null)S=ut[p.parentLocale]._config;else if(x=os(p.parentLocale),x!=null)S=x._config;else return ma[p.parentLocale]||(ma[p.parentLocale]=[]),ma[p.parentLocale].push({name:c,config:p}),null;return ut[c]=new X(V(S,p)),ma[c]&&ma[c].forEach(function(P){Zu(P.name,P.config)}),gr(c),ut[c]}else return delete ut[c],null}function w3(c,p){if(p!=null){var x,S,P=jp;ut[c]!=null&&ut[c].parentLocale!=null?ut[c].set(V(ut[c]._config,p)):(S=os(c),S!=null&&(P=S._config),p=V(P,p),S==null&&(p.abbr=c),x=new X(p),x.parentLocale=ut[c],ut[c]=x),gr(c)}else ut[c]!=null&&(ut[c].parentLocale!=null?(ut[c]=ut[c].parentLocale,c===gr()&&gr(c)):ut[c]!=null&&delete ut[c]);return ut[c]}function qn(c){var p;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return ya;if(!a(c)){if(p=os(c),p)return p;c=[c]}return x3(c)}function S3(){return Z(ut)}function Ju(c){var p,x=c._a;return x&&b(c).overflow===-2&&(p=x[Je]<0||x[Je]>11?Je:x[Kt]<1||x[Kt]>is(x[je],x[Je])?Kt:x[lt]<0||x[lt]>24||x[lt]===24&&(x[mt]!==0||x[Vn]!==0||x[zr]!==0)?lt:x[mt]<0||x[mt]>59?mt:x[Vn]<0||x[Vn]>59?Vn:x[zr]<0||x[zr]>999?zr:-1,b(c)._overflowDayOfYear&&(pKt)&&(p=Kt),b(c)._overflowWeeks&&p===-1&&(p=Aw),b(c)._overflowWeekday&&p===-1&&(p=jw),b(c).overflow=p),c}var _3=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,O3=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,k3=/Z|[+-]\d\d(?::?\d\d)?/,ss=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Qu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],C3=/^\/?Date\((-?\d+)/i,P3=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,A3={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ep(c){var p,x,S=c._i,P=_3.exec(S)||O3.exec(S),L,K,me,Ce,Ke=ss.length,Ft=Qu.length;if(P){for(b(c).iso=!0,p=0,x=Ke;pda(K)||c._dayOfYear===0)&&(b(c)._overflowDayOfYear=!0),x=ha(K,0,c._dayOfYear),c._a[Je]=x.getUTCMonth(),c._a[Kt]=x.getUTCDate()),p=0;p<3&&c._a[p]==null;++p)c._a[p]=S[p]=P[p];for(;p<7;p++)c._a[p]=S[p]=c._a[p]==null?p===2?1:0:c._a[p];c._a[lt]===24&&c._a[mt]===0&&c._a[Vn]===0&&c._a[zr]===0&&(c._nextDay=!0,c._a[lt]=0),c._d=(c._useUTC?ha:Hw).apply(null,S),L=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[lt]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==L&&(b(c).weekdayMismatch=!0)}}function L3(c){var p,x,S,P,L,K,me,Ce,Ke;p=c._w,p.GG!=null||p.W!=null||p.E!=null?(L=1,K=4,x=ci(p.GG,c._a[je],pa(at(),1,4).year),S=ci(p.W,1),P=ci(p.E,1),(P<1||P>7)&&(Ce=!0)):(L=c._locale._week.dow,K=c._locale._week.doy,Ke=pa(at(),L,K),x=ci(p.gg,c._a[je],Ke.year),S=ci(p.w,Ke.week),p.d!=null?(P=p.d,(P<0||P>6)&&(Ce=!0)):p.e!=null?(P=p.e+L,(p.e<0||p.e>6)&&(Ce=!0)):P=L),S<1||S>Gn(x,L,K)?b(c)._overflowWeeks=!0:Ce!=null?b(c)._overflowWeekday=!0:(me=kp(x,S,P,L,K),c._a[je]=me.year,c._dayOfYear=me.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function tc(c){if(c._f===r.ISO_8601){Ep(c);return}if(c._f===r.RFC_2822){Mp(c);return}c._a=[],b(c).empty=!0;var p=""+c._i,x,S,P,L,K,me=p.length,Ce=0,Ke,Ft;for(P=ae(c._f,c._locale).match(pe)||[],Ft=P.length,x=0;x0&&b(c).unusedInput.push(K),p=p.slice(p.indexOf(S)+S.length),Ce+=S.length),_e[L]?(S?b(c).empty=!1:b(c).unusedTokens.push(L),Gu(L,S,c)):c._strict&&!S&&b(c).unusedTokens.push(L);b(c).charsLeftOver=me-Ce,p.length>0&&b(c).unusedInput.push(p),c._a[lt]<=12&&b(c).bigHour===!0&&c._a[lt]>0&&(b(c).bigHour=void 0),b(c).parsedDateParts=c._a.slice(0),b(c).meridiem=c._meridiem,c._a[lt]=N3(c._locale,c._a[lt],c._meridiem),Ke=b(c).era,Ke!==null&&(c._a[je]=c._locale.erasConvertYear(Ke,c._a[je])),ec(c),Ju(c)}function N3(c,p,x){var S;return x==null?p:c.meridiemHour!=null?c.meridiemHour(p,x):(c.isPM!=null&&(S=c.isPM(x),S&&p<12&&(p+=12),!S&&p===12&&(p=0)),p)}function R3(c){var p,x,S,P,L,K,me=!1,Ce=c._f.length;if(Ce===0){b(c).invalidFormat=!0,c._d=new Date(NaN);return}for(P=0;Pthis?this:c:k()});function Dp(c,p){var x,S;if(p.length===1&&a(p[0])&&(p=p[0]),!p.length)return at();for(x=p[0],S=1;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function a5(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},p;return w(c,this),c=$p(c),c._a?(p=c._isUTC?g(c._a):at(c._a),this._isDSTShifted=this.isValid()&&X3(c._a,p.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function o5(){return this.isValid()?!this._isUTC:!1}function s5(){return this.isValid()?this._isUTC:!1}function Np(){return this.isValid()?this._isUTC&&this._offset===0:!1}var l5=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,u5=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pn(c,p){var x=c,S=null,P,L,K;return us(c)?x={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(x={},p?x[p]=+c:x.milliseconds=+c):(S=l5.exec(c))?(P=S[1]==="-"?-1:1,x={y:0,d:oe(S[Kt])*P,h:oe(S[lt])*P,m:oe(S[mt])*P,s:oe(S[Vn])*P,ms:oe(nc(S[zr]*1e3))*P}):(S=u5.exec(c))?(P=S[1]==="-"?-1:1,x={y:Fr(S[2],P),M:Fr(S[3],P),w:Fr(S[4],P),d:Fr(S[5],P),h:Fr(S[6],P),m:Fr(S[7],P),s:Fr(S[8],P)}):x==null?x={}:typeof x=="object"&&("from"in x||"to"in x)&&(K=c5(at(x.from),at(x.to)),x={},x.ms=K.milliseconds,x.M=K.months),L=new ls(x),us(c)&&s(c,"_locale")&&(L._locale=c._locale),us(c)&&s(c,"_isValid")&&(L._isValid=c._isValid),L}Pn.fn=ls.prototype,Pn.invalid=K3;function Fr(c,p){var x=c&&parseFloat(c.replace(",","."));return(isNaN(x)?0:x)*p}function Rp(c,p){var x={};return x.months=p.month()-c.month()+(p.year()-c.year())*12,c.clone().add(x.months,"M").isAfter(p)&&--x.months,x.milliseconds=+p-+c.clone().add(x.months,"M"),x}function c5(c,p){var x;return c.isValid()&&p.isValid()?(p=ic(p,c),c.isBefore(p)?x=Rp(c,p):(x=Rp(p,c),x.milliseconds=-x.milliseconds,x.months=-x.months),x):{milliseconds:0,months:0}}function Bp(c,p){return function(x,S){var P,L;return S!==null&&!isNaN(+S)&&(D(p,"moment()."+p+"(period, number) is deprecated. Please use moment()."+p+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),L=x,x=S,S=L),P=Pn(x,S),zp(this,P,c),this}}function zp(c,p,x,S){var P=p._milliseconds,L=nc(p._days),K=nc(p._months);c.isValid()&&(S=S??!0,K&&wp(c,ke(c,"Month")+K*x),L&&$e(c,"Date",ke(c,"Date")+L*x),P&&c._d.setTime(c._d.valueOf()+P*x),S&&r.updateOffset(c,L||K))}var f5=Bp(1,"add"),d5=Bp(-1,"subtract");function Fp(c){return typeof c=="string"||c instanceof String}function h5(c){return T(c)||d(c)||Fp(c)||f(c)||m5(c)||p5(c)||c===null||c===void 0}function p5(c){var p=o(c)&&!l(c),x=!1,S=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],P,L,K=S.length;for(P=0;Px.valueOf():x.valueOf()9999?Me(x,p?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):W(Date.prototype.toISOString)?p?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Me(x,"Z")):Me(x,p?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function j5(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",p="",x,S,P,L;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",p="Z"),x="["+c+'("]',S=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",P="-MM-DD[T]HH:mm:ss.SSS",L=p+'[")]',this.format(x+S+P+L)}function T5(c){c||(c=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var p=Me(this,c);return this.localeData().postformat(p)}function E5(c,p){return this.isValid()&&(T(c)&&c.isValid()||at(c).isValid())?Pn({to:this,from:c}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function M5(c){return this.from(at(),c)}function $5(c,p){return this.isValid()&&(T(c)&&c.isValid()||at(c).isValid())?Pn({from:this,to:c}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function I5(c){return this.to(at(),c)}function Hp(c){var p;return c===void 0?this._locale._abbr:(p=qn(c),p!=null&&(this._locale=p),this)}var Up=B("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function Wp(){return this._locale}var fs=1e3,fi=60*fs,ds=60*fi,Yp=(365*400+97)*24*ds;function di(c,p){return(c%p+p)%p}function Vp(c,p,x){return c<100&&c>=0?new Date(c+400,p,x)-Yp:new Date(c,p,x).valueOf()}function Gp(c,p,x){return c<100&&c>=0?Date.UTC(c+400,p,x)-Yp:Date.UTC(c,p,x)}function D5(c){var p,x;if(c=it(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(x=this._isUTC?Gp:Vp,c){case"year":p=x(this.year(),0,1);break;case"quarter":p=x(this.year(),this.month()-this.month()%3,1);break;case"month":p=x(this.year(),this.month(),1);break;case"week":p=x(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":p=x(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":p=x(this.year(),this.month(),this.date());break;case"hour":p=this._d.valueOf(),p-=di(p+(this._isUTC?0:this.utcOffset()*fi),ds);break;case"minute":p=this._d.valueOf(),p-=di(p,fi);break;case"second":p=this._d.valueOf(),p-=di(p,fs);break}return this._d.setTime(p),r.updateOffset(this,!0),this}function L5(c){var p,x;if(c=it(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(x=this._isUTC?Gp:Vp,c){case"year":p=x(this.year()+1,0,1)-1;break;case"quarter":p=x(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":p=x(this.year(),this.month()+1,1)-1;break;case"week":p=x(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":p=x(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":p=x(this.year(),this.month(),this.date()+1)-1;break;case"hour":p=this._d.valueOf(),p+=ds-di(p+(this._isUTC?0:this.utcOffset()*fi),ds)-1;break;case"minute":p=this._d.valueOf(),p+=fi-di(p,fi)-1;break;case"second":p=this._d.valueOf(),p+=fs-di(p,fs)-1;break}return this._d.setTime(p),r.updateOffset(this,!0),this}function N5(){return this._d.valueOf()-(this._offset||0)*6e4}function R5(){return Math.floor(this.valueOf()/1e3)}function B5(){return new Date(this.valueOf())}function z5(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function F5(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function H5(){return this.isValid()?this.toISOString():null}function U5(){return C(this)}function W5(){return m({},b(this))}function Y5(){return b(this).overflow}function V5(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr"),te("NN",0,0,"eraAbbr"),te("NNN",0,0,"eraAbbr"),te("NNNN",0,0,"eraName"),te("NNNNN",0,0,"eraNarrow"),te("y",["y",1],"yo","eraYear"),te("y",["yy",2],0,"eraYear"),te("y",["yyy",3],0,"eraYear"),te("y",["yyyy",4],0,"eraYear"),ce("N",oc),ce("NN",oc),ce("NNN",oc),ce("NNNN",r6),ce("NNNNN",i6),Be(["N","NN","NNN","NNNN","NNNNN"],function(c,p,x,S){var P=x._locale.erasParse(c,S,x._strict);P?b(x).era=P:b(x).invalidEra=c}),ce("y",pr),ce("yy",pr),ce("yyy",pr),ce("yyyy",pr),ce("yo",a6),Be(["y","yy","yyy","yyyy"],je),Be(["yo"],function(c,p,x,S){var P;x._locale._eraYearOrdinalRegex&&(P=c.match(x._locale._eraYearOrdinalRegex)),x._locale.eraYearOrdinalParse?p[je]=x._locale.eraYearOrdinalParse(c,P):p[je]=parseInt(c,10)});function G5(c,p){var x,S,P,L=this._eras||qn("en")._eras;for(x=0,S=L.length;x=0)return L[S]}function K5(c,p){var x=c.since<=c.until?1:-1;return p===void 0?r(c.since).year():r(c.since).year()+(p-c.offset)*x}function X5(){var c,p,x,S=this.localeData().eras();for(c=0,p=S.length;cL&&(p=L),d6.call(this,c,p,x,S,P))}function d6(c,p,x,S,P){var L=kp(c,p,x,S,P),K=ha(L.year,0,L.dayOfYear);return this.year(K.getUTCFullYear()),this.month(K.getUTCMonth()),this.date(K.getUTCDate()),this}te("Q",0,"Qo","quarter"),Ne("quarter","Q"),N("quarter",7),ce("Q",ht),Be("Q",function(c,p){p[Je]=(oe(c)-1)*3});function h6(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}te("D",["DD",2],"Do","date"),Ne("date","D"),N("date",9),ce("D",qe),ce("DD",qe,Ie),ce("Do",function(c,p){return c?p._dayOfMonthOrdinalParse||p._ordinalParse:p._dayOfMonthOrdinalParseLenient}),Be(["D","DD"],Kt),Be("Do",function(c,p){p[Kt]=oe(c.match(qe)[0])});var Kp=Re("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear"),Ne("dayOfYear","DDD"),N("dayOfYear",4),ce("DDD",dr),ce("DDDD",It),Be(["DDD","DDDD"],function(c,p,x){x._dayOfYear=oe(c)});function p6(c){var p=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?p:this.add(c-p,"d")}te("m",["mm",2],0,"minute"),Ne("minute","m"),N("minute",14),ce("m",qe),ce("mm",qe,Ie),Be(["m","mm"],mt);var m6=Re("Minutes",!1);te("s",["ss",2],0,"second"),Ne("second","s"),N("second",15),ce("s",qe),ce("ss",qe,Ie),Be(["s","ss"],Vn);var y6=Re("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)}),te(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),te(0,["SSS",3],0,"millisecond"),te(0,["SSSS",4],0,function(){return this.millisecond()*10}),te(0,["SSSSS",5],0,function(){return this.millisecond()*100}),te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ne("millisecond","ms"),N("millisecond",16),ce("S",dr,ht),ce("SS",dr,Ie),ce("SSS",dr,It);var vr,Xp;for(vr="SSSS";vr.length<=9;vr+="S")ce(vr,pr);function g6(c,p){p[zr]=oe(("0."+c)*1e3)}for(vr="S";vr.length<=9;vr+="S")Be(vr,g6);Xp=Re("Milliseconds",!1),te("z",0,0,"zoneAbbr"),te("zz",0,0,"zoneName");function v6(){return this._isUTC?"UTC":""}function x6(){return this._isUTC?"Coordinated Universal Time":""}var re=j.prototype;re.add=f5,re.calendar=v5,re.clone=x5,re.diff=C5,re.endOf=L5,re.format=T5,re.from=E5,re.fromNow=M5,re.to=$5,re.toNow=I5,re.get=Ge,re.invalidAt=Y5,re.isAfter=b5,re.isBefore=w5,re.isBetween=S5,re.isSame=_5,re.isSameOrAfter=O5,re.isSameOrBefore=k5,re.isValid=U5,re.lang=Up,re.locale=Hp,re.localeData=Wp,re.max=U3,re.min=H3,re.parsingFlags=W5,re.set=kt,re.startOf=D5,re.subtract=d5,re.toArray=z5,re.toObject=F5,re.toDate=B5,re.toISOString=A5,re.inspect=j5,typeof Symbol<"u"&&Symbol.for!=null&&(re[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),re.toJSON=H5,re.toString=P5,re.unix=R5,re.valueOf=N5,re.creationData=V5,re.eraName=X5,re.eraNarrow=Z5,re.eraAbbr=J5,re.eraYear=Q5,re.year=Op,re.isLeapYear=Fw,re.weekYear=o6,re.isoWeekYear=s6,re.quarter=re.quarters=h6,re.month=Sp,re.daysInMonth=Rw,re.week=re.weeks=Gw,re.isoWeek=re.isoWeeks=qw,re.weeksInYear=c6,re.weeksInWeekYear=f6,re.isoWeeksInYear=l6,re.isoWeeksInISOWeekYear=u6,re.date=Kp,re.day=re.days=s3,re.weekday=l3,re.isoWeekday=u3,re.dayOfYear=p6,re.hour=re.hours=y3,re.minute=re.minutes=m6,re.second=re.seconds=y6,re.millisecond=re.milliseconds=Xp,re.utcOffset=J3,re.utc=e5,re.local=t5,re.parseZone=n5,re.hasAlignedHourOffset=r5,re.isDST=i5,re.isLocal=o5,re.isUtcOffset=s5,re.isUtc=Np,re.isUTC=Np,re.zoneAbbr=v6,re.zoneName=x6,re.dates=B("dates accessor is deprecated. Use date instead.",Kp),re.months=B("months accessor is deprecated. Use month instead",Sp),re.years=B("years accessor is deprecated. Use year instead",Op),re.zone=B("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Q3),re.isDSTShifted=B("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",a5);function b6(c){return at(c*1e3)}function w6(){return at.apply(null,arguments).parseZone()}function Zp(c){return c}var ze=X.prototype;ze.calendar=Q,ze.longDateFormat=ve,ze.invalidDate=Ae,ze.ordinal=He,ze.preparse=Zp,ze.postformat=Zp,ze.relativeTime=ft,ze.pastFuture=tn,ze.set=Y,ze.eras=G5,ze.erasParse=q5,ze.erasConvertYear=K5,ze.erasAbbrRegex=t6,ze.erasNameRegex=e6,ze.erasNarrowRegex=n6,ze.months=Iw,ze.monthsShort=Dw,ze.monthsParse=Nw,ze.monthsRegex=zw,ze.monthsShortRegex=Bw,ze.week=Uw,ze.firstDayOfYear=Vw,ze.firstDayOfWeek=Yw,ze.weekdays=n3,ze.weekdaysMin=i3,ze.weekdaysShort=r3,ze.weekdaysParse=o3,ze.weekdaysRegex=c3,ze.weekdaysShortRegex=f3,ze.weekdaysMinRegex=d3,ze.isPM=p3,ze.meridiem=g3;function ps(c,p,x,S){var P=qn(),L=g().set(S,p);return P[x](L,c)}function Jp(c,p,x){if(f(c)&&(p=c,c=void 0),c=c||"",p!=null)return ps(c,p,x,"month");var S,P=[];for(S=0;S<12;S++)P[S]=ps(c,S,x,"month");return P}function lc(c,p,x,S){typeof c=="boolean"?(f(p)&&(x=p,p=void 0),p=p||""):(p=c,x=p,c=!1,f(p)&&(x=p,p=void 0),p=p||"");var P=qn(),L=c?P._week.dow:0,K,me=[];if(x!=null)return ps(p,(x+L)%7,S,"day");for(K=0;K<7;K++)me[K]=ps(p,(K+L)%7,S,"day");return me}function S6(c,p){return Jp(c,p,"months")}function _6(c,p){return Jp(c,p,"monthsShort")}function O6(c,p,x){return lc(c,p,x,"weekdays")}function k6(c,p,x){return lc(c,p,x,"weekdaysShort")}function C6(c,p,x){return lc(c,p,x,"weekdaysMin")}gr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var p=c%10,x=oe(c%100/10)===1?"th":p===1?"st":p===2?"nd":p===3?"rd":"th";return c+x}}),r.lang=B("moment.lang is deprecated. Use moment.locale instead.",gr),r.langData=B("moment.langData is deprecated. Use moment.localeData instead.",qn);var Kn=Math.abs;function P6(){var c=this._data;return this._milliseconds=Kn(this._milliseconds),this._days=Kn(this._days),this._months=Kn(this._months),c.milliseconds=Kn(c.milliseconds),c.seconds=Kn(c.seconds),c.minutes=Kn(c.minutes),c.hours=Kn(c.hours),c.months=Kn(c.months),c.years=Kn(c.years),this}function Qp(c,p,x,S){var P=Pn(p,x);return c._milliseconds+=S*P._milliseconds,c._days+=S*P._days,c._months+=S*P._months,c._bubble()}function A6(c,p){return Qp(this,c,p,1)}function j6(c,p){return Qp(this,c,p,-1)}function e1(c){return c<0?Math.floor(c):Math.ceil(c)}function T6(){var c=this._milliseconds,p=this._days,x=this._months,S=this._data,P,L,K,me,Ce;return c>=0&&p>=0&&x>=0||c<=0&&p<=0&&x<=0||(c+=e1(uc(x)+p)*864e5,p=0,x=0),S.milliseconds=c%1e3,P=se(c/1e3),S.seconds=P%60,L=se(P/60),S.minutes=L%60,K=se(L/60),S.hours=K%24,p+=se(K/24),Ce=se(t1(p)),x+=Ce,p-=e1(uc(Ce)),me=se(x/12),x%=12,S.days=p,S.months=x,S.years=me,this}function t1(c){return c*4800/146097}function uc(c){return c*146097/4800}function E6(c){if(!this.isValid())return NaN;var p,x,S=this._milliseconds;if(c=it(c),c==="month"||c==="quarter"||c==="year")switch(p=this._days+S/864e5,x=this._months+t1(p),c){case"month":return x;case"quarter":return x/3;case"year":return x/12}else switch(p=this._days+Math.round(uc(this._months)),c){case"week":return p/7+S/6048e5;case"day":return p+S/864e5;case"hour":return p*24+S/36e5;case"minute":return p*1440+S/6e4;case"second":return p*86400+S/1e3;case"millisecond":return Math.floor(p*864e5)+S;default:throw new Error("Unknown unit "+c)}}function M6(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+oe(this._months/12)*31536e6:NaN}function Xn(c){return function(){return this.as(c)}}var $6=Xn("ms"),I6=Xn("s"),D6=Xn("m"),L6=Xn("h"),N6=Xn("d"),R6=Xn("w"),B6=Xn("M"),z6=Xn("Q"),F6=Xn("y");function H6(){return Pn(this)}function U6(c){return c=it(c),this.isValid()?this[c+"s"]():NaN}function Hr(c){return function(){return this.isValid()?this._data[c]:NaN}}var W6=Hr("milliseconds"),Y6=Hr("seconds"),V6=Hr("minutes"),G6=Hr("hours"),q6=Hr("days"),K6=Hr("months"),X6=Hr("years");function Z6(){return se(this.days()/7)}var Zn=Math.round,hi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function J6(c,p,x,S,P){return P.relativeTime(p||1,!!x,c,S)}function Q6(c,p,x,S){var P=Pn(c).abs(),L=Zn(P.as("s")),K=Zn(P.as("m")),me=Zn(P.as("h")),Ce=Zn(P.as("d")),Ke=Zn(P.as("M")),Ft=Zn(P.as("w")),Jn=Zn(P.as("y")),xr=L<=x.ss&&["s",L]||L0,xr[4]=S,J6.apply(null,xr)}function e4(c){return c===void 0?Zn:typeof c=="function"?(Zn=c,!0):!1}function t4(c,p){return hi[c]===void 0?!1:p===void 0?hi[c]:(hi[c]=p,c==="s"&&(hi.ss=p-1),!0)}function n4(c,p){if(!this.isValid())return this.localeData().invalidDate();var x=!1,S=hi,P,L;return typeof c=="object"&&(p=c,c=!1),typeof c=="boolean"&&(x=c),typeof p=="object"&&(S=Object.assign({},hi,p),p.s!=null&&p.ss==null&&(S.ss=p.s-1)),P=this.localeData(),L=Q6(this,!x,S,P),x&&(L=P.pastFuture(+this,L)),P.postformat(L)}var cc=Math.abs;function pi(c){return(c>0)-(c<0)||+c}function ms(){if(!this.isValid())return this.localeData().invalidDate();var c=cc(this._milliseconds)/1e3,p=cc(this._days),x=cc(this._months),S,P,L,K,me=this.asSeconds(),Ce,Ke,Ft,Jn;return me?(S=se(c/60),P=se(S/60),c%=60,S%=60,L=se(x/12),x%=12,K=c?c.toFixed(3).replace(/\.?0+$/,""):"",Ce=me<0?"-":"",Ke=pi(this._months)!==pi(me)?"-":"",Ft=pi(this._days)!==pi(me)?"-":"",Jn=pi(this._milliseconds)!==pi(me)?"-":"",Ce+"P"+(L?Ke+L+"Y":"")+(x?Ke+x+"M":"")+(p?Ft+p+"D":"")+(P||S||c?"T":"")+(P?Jn+P+"H":"")+(S?Jn+S+"M":"")+(c?Jn+K+"S":"")):"P0D"}var De=ls.prototype;De.isValid=q3,De.abs=P6,De.add=A6,De.subtract=j6,De.as=E6,De.asMilliseconds=$6,De.asSeconds=I6,De.asMinutes=D6,De.asHours=L6,De.asDays=N6,De.asWeeks=R6,De.asMonths=B6,De.asQuarters=z6,De.asYears=F6,De.valueOf=M6,De._bubble=T6,De.clone=H6,De.get=U6,De.milliseconds=W6,De.seconds=Y6,De.minutes=V6,De.hours=G6,De.days=q6,De.weeks=Z6,De.months=K6,De.years=X6,De.humanize=n4,De.toISOString=ms,De.toString=ms,De.toJSON=ms,De.locale=Hp,De.localeData=Wp,De.toIsoString=B("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ms),De.lang=Up,te("X",0,0,"unix"),te("x",0,0,"valueOf"),ce("x",mr),ce("X",Wu),Be("X",function(c,p,x){x._d=new Date(parseFloat(c)*1e3)}),Be("x",function(c,p,x){x._d=new Date(oe(c))});//! moment.js -return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.unix=b6,r.months=S6,r.isDate=d,r.locale=gr,r.invalid=k,r.duration=Pn,r.isMoment=T,r.weekdays=O6,r.parseZone=w6,r.localeData=qn,r.isDuration=us,r.monthsShort=_6,r.weekdaysMin=C6,r.defineLocale=Zu,r.updateLocale=w3,r.locales=S3,r.weekdaysShort=k6,r.normalizeUnits=it,r.relativeTimeRounding=e4,r.relativeTimeThreshold=t4,r.calendarFormat=g5,r.prototype=re,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})})(vv);var R9=vv.exports;const xv=st(R9),B9=({text:e,type:t,sourceLink:n,date:r})=>y.jsxs(F,{direction:"column",children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(F,{align:"center",direction:"row",children:y.jsx(ea,{type:t})}),n&&y.jsx(ti,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:i=>i.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),y.jsx(ff,{"data-testid":"episode-description",children:e}),y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(F,{align:"center",direction:"row",justify:"flex-start",children:!!r&&y.jsx(Mr,{children:xv.unix(r).fromNow()})}),n&&y.jsxs(ti,{href:n,onClick:i=>i.stopPropagation(),target:"_blank",children:[y.jsx(gv,{}),y.jsx(z9,{children:n})]})]})]}),z9=H(pt)` +`+new Error().stack),x=!1}return p.apply(this,arguments)},p)}var M={};function D(c,p){r.deprecationHandler!=null&&r.deprecationHandler(c,p),M[c]||(I(p),M[c]=!0)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;function W(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function Y(c){var p,x;for(x in c)s(c,x)&&(p=c[x],W(p)?this[x]=p:this["_"+x]=p);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function V(c,p){var x=m({},c),S;for(S in p)s(p,S)&&(o(c[S])&&o(p[S])?(x[S]={},m(x[S],c[S]),m(x[S],p[S])):p[S]!=null?x[S]=p[S]:delete x[S]);for(S in c)s(c,S)&&!s(p,S)&&o(c[S])&&(x[S]=m({},x[S]));return x}function X(c){c!=null&&this.set(c)}var Z;Object.keys?Z=Object.keys:Z=function(c){var p,x=[];for(p in c)s(c,p)&&x.push(p);return x};var G={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Q(c,p,x){var S=this._calendar[c]||this._calendar.sameElse;return W(S)?S.call(p,x):S}function E(c,p,x){var S=""+Math.abs(c),P=p-S.length,L=c>=0;return(L?x?"+":"":"-")+Math.pow(10,Math.max(0,P)).toString().substr(1)+S}var pe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ue=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$={},_e={};function te(c,p,x,S){var P=S;typeof S=="string"&&(P=function(){return this[S]()}),c&&(_e[c]=P),p&&(_e[p[0]]=function(){return E(P.apply(this,arguments),p[1],p[2])}),x&&(_e[x]=function(){return this.localeData().ordinal(P.apply(this,arguments),c)})}function ge(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function Ye(c){var p=c.match(pe),x,S;for(x=0,S=p.length;x=0&&ue.test(c);)c=c.replace(ue,S),ue.lastIndex=0,x-=1;return c}var de={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ve(c){var p=this._longDateFormat[c],x=this._longDateFormat[c.toUpperCase()];return p||!x?p:(this._longDateFormat[c]=x.match(pe).map(function(S){return S==="MMMM"||S==="MM"||S==="DD"||S==="dddd"?S.slice(1):S}).join(""),this._longDateFormat[c])}var ee="Invalid date";function Ae(){return this._invalidDate}var he="%d",xe=/\d{1,2}/;function He(c){return this._ordinal.replace("%d",c)}var rt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ft(c,p,x,S){var P=this._relativeTime[x];return W(P)?P(c,p,x,S):P.replace(/%d/i,c)}function tn(c,p){var x=this._relativeTime[c>0?"future":"past"];return W(x)?x(p):x.replace(/%s/i,p)}var Ue={};function Ne(c,p){var x=c.toLowerCase();Ue[x]=Ue[x+"s"]=Ue[p]=c}function it(c){return typeof c=="string"?Ue[c]||Ue[c.toLowerCase()]:void 0}function nn(c){var p={},x,S;for(S in c)s(c,S)&&(x=it(S),x&&(p[x]=c[S]));return p}var Cn={};function N(c,p){Cn[c]=p}function q(c){var p=[],x;for(x in c)s(c,x)&&p.push({unit:x,priority:Cn[x]});return p.sort(function(S,P){return S.priority-P.priority}),p}function ne(c){return c%4===0&&c%100!==0||c%400===0}function se(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function oe(c){var p=+c,x=0;return p!==0&&isFinite(p)&&(x=se(p)),x}function Re(c,p){return function(x){return x!=null?($e(this,c,x),r.updateOffset(this,p),this):ke(this,c)}}function ke(c,p){return c.isValid()?c._d["get"+(c._isUTC?"UTC":"")+p]():NaN}function $e(c,p,x){c.isValid()&&!isNaN(x)&&(p==="FullYear"&&ne(c.year())&&c.month()===1&&c.date()===29?(x=oe(x),c._d["set"+(c._isUTC?"UTC":"")+p](x,c.month(),rs(x,c.month()))):c._d["set"+(c._isUTC?"UTC":"")+p](x))}function Ge(c){return c=it(c),W(this[c])?this[c]():this}function kt(c,p){if(typeof c=="object"){c=nn(c);var x=q(c),S,P=x.length;for(S=0;S68?1900:2e3)};var Op=Re("FullYear",!0);function Fw(){return ne(this.year())}function Hw(c,p,x,S,P,L,K){var me;return c<100&&c>=0?(me=new Date(c+400,p,x,S,P,L,K),isFinite(me.getFullYear())&&me.setFullYear(c)):me=new Date(c,p,x,S,P,L,K),me}function ha(c){var p,x;return c<100&&c>=0?(x=Array.prototype.slice.call(arguments),x[0]=c+400,p=new Date(Date.UTC.apply(null,x)),isFinite(p.getUTCFullYear())&&p.setUTCFullYear(c)):p=new Date(Date.UTC.apply(null,arguments)),p}function is(c,p,x){var S=7+p-x,P=(7+ha(c,0,S).getUTCDay()-p)%7;return-P+S-1}function kp(c,p,x,S,P){var L=(7+x-S)%7,K=is(c,S,P),me=1+7*(p-1)+L+K,Ce,Ke;return me<=0?(Ce=c-1,Ke=da(Ce)+me):me>da(c)?(Ce=c+1,Ke=me-da(c)):(Ce=c,Ke=me),{year:Ce,dayOfYear:Ke}}function pa(c,p,x){var S=is(c.year(),p,x),P=Math.floor((c.dayOfYear()-S-1)/7)+1,L,K;return P<1?(K=c.year()-1,L=P+qn(K,p,x)):P>qn(c.year(),p,x)?(L=P-qn(c.year(),p,x),K=c.year()+1):(K=c.year(),L=P),{week:L,year:K}}function qn(c,p,x){var S=is(c,p,x),P=is(c+1,p,x);return(da(c)-S+P)/7}te("w",["ww",2],"wo","week"),te("W",["WW",2],"Wo","isoWeek"),Ne("week","w"),Ne("isoWeek","W"),N("week",5),N("isoWeek",5),ce("w",qe),ce("ww",qe,Ie),ce("W",qe),ce("WW",qe,Ie),Vn(["w","ww","W","WW"],function(c,p,x,S){p[S.substr(0,1)]=oe(c)});function Uw(c){return pa(c,this._week.dow,this._week.doy).week}var Ww={dow:0,doy:6};function Yw(){return this._week.dow}function Vw(){return this._week.doy}function Gw(c){var p=this.localeData().week(this);return c==null?p:this.add((c-p)*7,"d")}function qw(c){var p=pa(this,1,4).week;return c==null?p:this.add((c-p)*7,"d")}te("d",0,"do","day"),te("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),te("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),te("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),te("e",0,0,"weekday"),te("E",0,0,"isoWeekday"),Ne("day","d"),Ne("weekday","e"),Ne("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),ce("d",qe),ce("e",qe),ce("E",qe),ce("dd",function(c,p){return p.weekdaysMinRegex(c)}),ce("ddd",function(c,p){return p.weekdaysShortRegex(c)}),ce("dddd",function(c,p){return p.weekdaysRegex(c)}),Vn(["dd","ddd","dddd"],function(c,p,x,S){var P=x._locale.weekdaysParse(c,S,x._strict);P!=null?p.d=P:b(x).invalidWeekday=c}),Vn(["d","e","E"],function(c,p,x,S){p[S]=oe(c)});function Kw(c,p){return typeof c!="string"?c:isNaN(c)?(c=p.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function Xw(c,p){return typeof c=="string"?p.weekdaysParse(c)%7||7:isNaN(c)?null:c}function qu(c,p){return c.slice(p,7).concat(c.slice(0,p))}var Zw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Cp="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qw=Br,e3=Br,t3=Br;function n3(c,p){var x=a(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(p)?"format":"standalone"];return c===!0?qu(x,this._week.dow):c?x[c.day()]:x}function r3(c){return c===!0?qu(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function i3(c){return c===!0?qu(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function a3(c,p,x){var S,P,L,K=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],S=0;S<7;++S)L=g([2e3,1]).day(S),this._minWeekdaysParse[S]=this.weekdaysMin(L,"").toLocaleLowerCase(),this._shortWeekdaysParse[S]=this.weekdaysShort(L,"").toLocaleLowerCase(),this._weekdaysParse[S]=this.weekdays(L,"").toLocaleLowerCase();return x?p==="dddd"?(P=yt.call(this._weekdaysParse,K),P!==-1?P:null):p==="ddd"?(P=yt.call(this._shortWeekdaysParse,K),P!==-1?P:null):(P=yt.call(this._minWeekdaysParse,K),P!==-1?P:null):p==="dddd"?(P=yt.call(this._weekdaysParse,K),P!==-1||(P=yt.call(this._shortWeekdaysParse,K),P!==-1)?P:(P=yt.call(this._minWeekdaysParse,K),P!==-1?P:null)):p==="ddd"?(P=yt.call(this._shortWeekdaysParse,K),P!==-1||(P=yt.call(this._weekdaysParse,K),P!==-1)?P:(P=yt.call(this._minWeekdaysParse,K),P!==-1?P:null)):(P=yt.call(this._minWeekdaysParse,K),P!==-1||(P=yt.call(this._weekdaysParse,K),P!==-1)?P:(P=yt.call(this._shortWeekdaysParse,K),P!==-1?P:null))}function o3(c,p,x){var S,P,L;if(this._weekdaysParseExact)return a3.call(this,c,p,x);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),S=0;S<7;S++){if(P=g([2e3,1]).day(S),x&&!this._fullWeekdaysParse[S]&&(this._fullWeekdaysParse[S]=new RegExp("^"+this.weekdays(P,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[S]=new RegExp("^"+this.weekdaysShort(P,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[S]=new RegExp("^"+this.weekdaysMin(P,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[S]||(L="^"+this.weekdays(P,"")+"|^"+this.weekdaysShort(P,"")+"|^"+this.weekdaysMin(P,""),this._weekdaysParse[S]=new RegExp(L.replace(".",""),"i")),x&&p==="dddd"&&this._fullWeekdaysParse[S].test(c))return S;if(x&&p==="ddd"&&this._shortWeekdaysParse[S].test(c))return S;if(x&&p==="dd"&&this._minWeekdaysParse[S].test(c))return S;if(!x&&this._weekdaysParse[S].test(c))return S}}function s3(c){if(!this.isValid())return c!=null?this:NaN;var p=this._isUTC?this._d.getUTCDay():this._d.getDay();return c!=null?(c=Kw(c,this.localeData()),this.add(c-p,"d")):p}function l3(c){if(!this.isValid())return c!=null?this:NaN;var p=(this.day()+7-this.localeData()._week.dow)%7;return c==null?p:this.add(c-p,"d")}function u3(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var p=Xw(c,this.localeData());return this.day(this.day()%7?p:p-7)}else return this.day()||7}function c3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ku.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Qw),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function f3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ku.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=e3),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function d3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ku.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=t3),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ku(){function c(Ft,Qn){return Qn.length-Ft.length}var p=[],x=[],S=[],P=[],L,K,me,Ce,Ke;for(L=0;L<7;L++)K=g([2e3,1]).day(L),me=Tt(this.weekdaysMin(K,"")),Ce=Tt(this.weekdaysShort(K,"")),Ke=Tt(this.weekdays(K,"")),p.push(me),x.push(Ce),S.push(Ke),P.push(me),P.push(Ce),P.push(Ke);p.sort(c),x.sort(c),S.sort(c),P.sort(c),this._weekdaysRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+x.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+p.join("|")+")","i")}function Xu(){return this.hours()%12||12}function h3(){return this.hours()||24}te("H",["HH",2],0,"hour"),te("h",["hh",2],0,Xu),te("k",["kk",2],0,h3),te("hmm",0,0,function(){return""+Xu.apply(this)+E(this.minutes(),2)}),te("hmmss",0,0,function(){return""+Xu.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),te("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),te("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)});function Pp(c,p){te(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),p)})}Pp("a",!0),Pp("A",!1),Ne("hour","h"),N("hour",13);function Ap(c,p){return p._meridiemParse}ce("a",Ap),ce("A",Ap),ce("H",qe),ce("h",qe),ce("k",qe),ce("HH",qe,Ie),ce("hh",qe,Ie),ce("kk",qe,Ie),ce("hmm",ua),ce("hmmss",si),ce("Hmm",ua),ce("Hmmss",si),Be(["H","HH"],lt),Be(["k","kk"],function(c,p,x){var S=oe(c);p[lt]=S===24?0:S}),Be(["a","A"],function(c,p,x){x._isPm=x._locale.isPM(c),x._meridiem=c}),Be(["h","hh"],function(c,p,x){p[lt]=oe(c),b(x).bigHour=!0}),Be("hmm",function(c,p,x){var S=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S)),b(x).bigHour=!0}),Be("hmmss",function(c,p,x){var S=c.length-4,P=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S,2)),p[Gn]=oe(c.substr(P)),b(x).bigHour=!0}),Be("Hmm",function(c,p,x){var S=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S))}),Be("Hmmss",function(c,p,x){var S=c.length-4,P=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S,2)),p[Gn]=oe(c.substr(P))});function p3(c){return(c+"").toLowerCase().charAt(0)==="p"}var m3=/[ap]\.?m?\.?/i,y3=Re("Hours",!0);function g3(c,p,x){return c>11?x?"pm":"PM":x?"am":"AM"}var jp={calendar:G,longDateFormat:de,invalidDate:ee,ordinal:he,dayOfMonthOrdinalParse:xe,relativeTime:rt,months:Ew,monthsShort:xp,week:Ww,weekdays:Zw,weekdaysMin:Jw,weekdaysShort:Cp,meridiemParse:m3},ut={},ma={},ya;function v3(c,p){var x,S=Math.min(c.length,p.length);for(x=0;x0;){if(P=as(L.slice(0,x).join("-")),P)return P;if(S&&S.length>=x&&v3(L,S)>=x-1)break;x--}p++}return ya}function b3(c){return c.match("^[^/\\\\]*$")!=null}function as(c){var p=null,x;if(ut[c]===void 0&&e&&e.exports&&b3(c))try{p=ya._abbr,x=u4,x("./locale/"+c),vr(p)}catch{ut[c]=null}return ut[c]}function vr(c,p){var x;return c&&(u(p)?x=Kn(c):x=Zu(c,p),x?ya=x:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),ya._abbr}function Zu(c,p){if(p!==null){var x,S=jp;if(p.abbr=c,ut[c]!=null)D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),S=ut[c]._config;else if(p.parentLocale!=null)if(ut[p.parentLocale]!=null)S=ut[p.parentLocale]._config;else if(x=as(p.parentLocale),x!=null)S=x._config;else return ma[p.parentLocale]||(ma[p.parentLocale]=[]),ma[p.parentLocale].push({name:c,config:p}),null;return ut[c]=new X(V(S,p)),ma[c]&&ma[c].forEach(function(P){Zu(P.name,P.config)}),vr(c),ut[c]}else return delete ut[c],null}function w3(c,p){if(p!=null){var x,S,P=jp;ut[c]!=null&&ut[c].parentLocale!=null?ut[c].set(V(ut[c]._config,p)):(S=as(c),S!=null&&(P=S._config),p=V(P,p),S==null&&(p.abbr=c),x=new X(p),x.parentLocale=ut[c],ut[c]=x),vr(c)}else ut[c]!=null&&(ut[c].parentLocale!=null?(ut[c]=ut[c].parentLocale,c===vr()&&vr(c)):ut[c]!=null&&delete ut[c]);return ut[c]}function Kn(c){var p;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return ya;if(!a(c)){if(p=as(c),p)return p;c=[c]}return x3(c)}function S3(){return Z(ut)}function Ju(c){var p,x=c._a;return x&&b(c).overflow===-2&&(p=x[Je]<0||x[Je]>11?Je:x[Kt]<1||x[Kt]>rs(x[je],x[Je])?Kt:x[lt]<0||x[lt]>24||x[lt]===24&&(x[mt]!==0||x[Gn]!==0||x[zr]!==0)?lt:x[mt]<0||x[mt]>59?mt:x[Gn]<0||x[Gn]>59?Gn:x[zr]<0||x[zr]>999?zr:-1,b(c)._overflowDayOfYear&&(pKt)&&(p=Kt),b(c)._overflowWeeks&&p===-1&&(p=Aw),b(c)._overflowWeekday&&p===-1&&(p=jw),b(c).overflow=p),c}var _3=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,O3=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,k3=/Z|[+-]\d\d(?::?\d\d)?/,os=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Qu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],C3=/^\/?Date\((-?\d+)/i,P3=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,A3={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ep(c){var p,x,S=c._i,P=_3.exec(S)||O3.exec(S),L,K,me,Ce,Ke=os.length,Ft=Qu.length;if(P){for(b(c).iso=!0,p=0,x=Ke;pda(K)||c._dayOfYear===0)&&(b(c)._overflowDayOfYear=!0),x=ha(K,0,c._dayOfYear),c._a[Je]=x.getUTCMonth(),c._a[Kt]=x.getUTCDate()),p=0;p<3&&c._a[p]==null;++p)c._a[p]=S[p]=P[p];for(;p<7;p++)c._a[p]=S[p]=c._a[p]==null?p===2?1:0:c._a[p];c._a[lt]===24&&c._a[mt]===0&&c._a[Gn]===0&&c._a[zr]===0&&(c._nextDay=!0,c._a[lt]=0),c._d=(c._useUTC?ha:Hw).apply(null,S),L=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[lt]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==L&&(b(c).weekdayMismatch=!0)}}function L3(c){var p,x,S,P,L,K,me,Ce,Ke;p=c._w,p.GG!=null||p.W!=null||p.E!=null?(L=1,K=4,x=ci(p.GG,c._a[je],pa(at(),1,4).year),S=ci(p.W,1),P=ci(p.E,1),(P<1||P>7)&&(Ce=!0)):(L=c._locale._week.dow,K=c._locale._week.doy,Ke=pa(at(),L,K),x=ci(p.gg,c._a[je],Ke.year),S=ci(p.w,Ke.week),p.d!=null?(P=p.d,(P<0||P>6)&&(Ce=!0)):p.e!=null?(P=p.e+L,(p.e<0||p.e>6)&&(Ce=!0)):P=L),S<1||S>qn(x,L,K)?b(c)._overflowWeeks=!0:Ce!=null?b(c)._overflowWeekday=!0:(me=kp(x,S,P,L,K),c._a[je]=me.year,c._dayOfYear=me.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function tc(c){if(c._f===r.ISO_8601){Ep(c);return}if(c._f===r.RFC_2822){Mp(c);return}c._a=[],b(c).empty=!0;var p=""+c._i,x,S,P,L,K,me=p.length,Ce=0,Ke,Ft;for(P=ae(c._f,c._locale).match(pe)||[],Ft=P.length,x=0;x0&&b(c).unusedInput.push(K),p=p.slice(p.indexOf(S)+S.length),Ce+=S.length),_e[L]?(S?b(c).empty=!1:b(c).unusedTokens.push(L),Gu(L,S,c)):c._strict&&!S&&b(c).unusedTokens.push(L);b(c).charsLeftOver=me-Ce,p.length>0&&b(c).unusedInput.push(p),c._a[lt]<=12&&b(c).bigHour===!0&&c._a[lt]>0&&(b(c).bigHour=void 0),b(c).parsedDateParts=c._a.slice(0),b(c).meridiem=c._meridiem,c._a[lt]=N3(c._locale,c._a[lt],c._meridiem),Ke=b(c).era,Ke!==null&&(c._a[je]=c._locale.erasConvertYear(Ke,c._a[je])),ec(c),Ju(c)}function N3(c,p,x){var S;return x==null?p:c.meridiemHour!=null?c.meridiemHour(p,x):(c.isPM!=null&&(S=c.isPM(x),S&&p<12&&(p+=12),!S&&p===12&&(p=0)),p)}function R3(c){var p,x,S,P,L,K,me=!1,Ce=c._f.length;if(Ce===0){b(c).invalidFormat=!0,c._d=new Date(NaN);return}for(P=0;Pthis?this:c:k()});function Dp(c,p){var x,S;if(p.length===1&&a(p[0])&&(p=p[0]),!p.length)return at();for(x=p[0],S=1;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function a5(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},p;return w(c,this),c=$p(c),c._a?(p=c._isUTC?g(c._a):at(c._a),this._isDSTShifted=this.isValid()&&X3(c._a,p.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function o5(){return this.isValid()?!this._isUTC:!1}function s5(){return this.isValid()?this._isUTC:!1}function Np(){return this.isValid()?this._isUTC&&this._offset===0:!1}var l5=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,u5=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pn(c,p){var x=c,S=null,P,L,K;return ls(c)?x={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(x={},p?x[p]=+c:x.milliseconds=+c):(S=l5.exec(c))?(P=S[1]==="-"?-1:1,x={y:0,d:oe(S[Kt])*P,h:oe(S[lt])*P,m:oe(S[mt])*P,s:oe(S[Gn])*P,ms:oe(nc(S[zr]*1e3))*P}):(S=u5.exec(c))?(P=S[1]==="-"?-1:1,x={y:Fr(S[2],P),M:Fr(S[3],P),w:Fr(S[4],P),d:Fr(S[5],P),h:Fr(S[6],P),m:Fr(S[7],P),s:Fr(S[8],P)}):x==null?x={}:typeof x=="object"&&("from"in x||"to"in x)&&(K=c5(at(x.from),at(x.to)),x={},x.ms=K.milliseconds,x.M=K.months),L=new ss(x),ls(c)&&s(c,"_locale")&&(L._locale=c._locale),ls(c)&&s(c,"_isValid")&&(L._isValid=c._isValid),L}Pn.fn=ss.prototype,Pn.invalid=K3;function Fr(c,p){var x=c&&parseFloat(c.replace(",","."));return(isNaN(x)?0:x)*p}function Rp(c,p){var x={};return x.months=p.month()-c.month()+(p.year()-c.year())*12,c.clone().add(x.months,"M").isAfter(p)&&--x.months,x.milliseconds=+p-+c.clone().add(x.months,"M"),x}function c5(c,p){var x;return c.isValid()&&p.isValid()?(p=ic(p,c),c.isBefore(p)?x=Rp(c,p):(x=Rp(p,c),x.milliseconds=-x.milliseconds,x.months=-x.months),x):{milliseconds:0,months:0}}function Bp(c,p){return function(x,S){var P,L;return S!==null&&!isNaN(+S)&&(D(p,"moment()."+p+"(period, number) is deprecated. Please use moment()."+p+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),L=x,x=S,S=L),P=Pn(x,S),zp(this,P,c),this}}function zp(c,p,x,S){var P=p._milliseconds,L=nc(p._days),K=nc(p._months);c.isValid()&&(S=S??!0,K&&wp(c,ke(c,"Month")+K*x),L&&$e(c,"Date",ke(c,"Date")+L*x),P&&c._d.setTime(c._d.valueOf()+P*x),S&&r.updateOffset(c,L||K))}var f5=Bp(1,"add"),d5=Bp(-1,"subtract");function Fp(c){return typeof c=="string"||c instanceof String}function h5(c){return T(c)||d(c)||Fp(c)||f(c)||m5(c)||p5(c)||c===null||c===void 0}function p5(c){var p=o(c)&&!l(c),x=!1,S=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],P,L,K=S.length;for(P=0;Px.valueOf():x.valueOf()9999?Me(x,p?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):W(Date.prototype.toISOString)?p?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Me(x,"Z")):Me(x,p?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function j5(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",p="",x,S,P,L;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",p="Z"),x="["+c+'("]',S=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",P="-MM-DD[T]HH:mm:ss.SSS",L=p+'[")]',this.format(x+S+P+L)}function T5(c){c||(c=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var p=Me(this,c);return this.localeData().postformat(p)}function E5(c,p){return this.isValid()&&(T(c)&&c.isValid()||at(c).isValid())?Pn({to:this,from:c}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function M5(c){return this.from(at(),c)}function $5(c,p){return this.isValid()&&(T(c)&&c.isValid()||at(c).isValid())?Pn({from:this,to:c}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function I5(c){return this.to(at(),c)}function Hp(c){var p;return c===void 0?this._locale._abbr:(p=Kn(c),p!=null&&(this._locale=p),this)}var Up=B("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function Wp(){return this._locale}var cs=1e3,fi=60*cs,fs=60*fi,Yp=(365*400+97)*24*fs;function di(c,p){return(c%p+p)%p}function Vp(c,p,x){return c<100&&c>=0?new Date(c+400,p,x)-Yp:new Date(c,p,x).valueOf()}function Gp(c,p,x){return c<100&&c>=0?Date.UTC(c+400,p,x)-Yp:Date.UTC(c,p,x)}function D5(c){var p,x;if(c=it(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(x=this._isUTC?Gp:Vp,c){case"year":p=x(this.year(),0,1);break;case"quarter":p=x(this.year(),this.month()-this.month()%3,1);break;case"month":p=x(this.year(),this.month(),1);break;case"week":p=x(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":p=x(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":p=x(this.year(),this.month(),this.date());break;case"hour":p=this._d.valueOf(),p-=di(p+(this._isUTC?0:this.utcOffset()*fi),fs);break;case"minute":p=this._d.valueOf(),p-=di(p,fi);break;case"second":p=this._d.valueOf(),p-=di(p,cs);break}return this._d.setTime(p),r.updateOffset(this,!0),this}function L5(c){var p,x;if(c=it(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(x=this._isUTC?Gp:Vp,c){case"year":p=x(this.year()+1,0,1)-1;break;case"quarter":p=x(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":p=x(this.year(),this.month()+1,1)-1;break;case"week":p=x(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":p=x(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":p=x(this.year(),this.month(),this.date()+1)-1;break;case"hour":p=this._d.valueOf(),p+=fs-di(p+(this._isUTC?0:this.utcOffset()*fi),fs)-1;break;case"minute":p=this._d.valueOf(),p+=fi-di(p,fi)-1;break;case"second":p=this._d.valueOf(),p+=cs-di(p,cs)-1;break}return this._d.setTime(p),r.updateOffset(this,!0),this}function N5(){return this._d.valueOf()-(this._offset||0)*6e4}function R5(){return Math.floor(this.valueOf()/1e3)}function B5(){return new Date(this.valueOf())}function z5(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function F5(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function H5(){return this.isValid()?this.toISOString():null}function U5(){return C(this)}function W5(){return m({},b(this))}function Y5(){return b(this).overflow}function V5(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr"),te("NN",0,0,"eraAbbr"),te("NNN",0,0,"eraAbbr"),te("NNNN",0,0,"eraName"),te("NNNNN",0,0,"eraNarrow"),te("y",["y",1],"yo","eraYear"),te("y",["yy",2],0,"eraYear"),te("y",["yyy",3],0,"eraYear"),te("y",["yyyy",4],0,"eraYear"),ce("N",oc),ce("NN",oc),ce("NNN",oc),ce("NNNN",r6),ce("NNNNN",i6),Be(["N","NN","NNN","NNNN","NNNNN"],function(c,p,x,S){var P=x._locale.erasParse(c,S,x._strict);P?b(x).era=P:b(x).invalidEra=c}),ce("y",mr),ce("yy",mr),ce("yyy",mr),ce("yyyy",mr),ce("yo",a6),Be(["y","yy","yyy","yyyy"],je),Be(["yo"],function(c,p,x,S){var P;x._locale._eraYearOrdinalRegex&&(P=c.match(x._locale._eraYearOrdinalRegex)),x._locale.eraYearOrdinalParse?p[je]=x._locale.eraYearOrdinalParse(c,P):p[je]=parseInt(c,10)});function G5(c,p){var x,S,P,L=this._eras||Kn("en")._eras;for(x=0,S=L.length;x=0)return L[S]}function K5(c,p){var x=c.since<=c.until?1:-1;return p===void 0?r(c.since).year():r(c.since).year()+(p-c.offset)*x}function X5(){var c,p,x,S=this.localeData().eras();for(c=0,p=S.length;cL&&(p=L),d6.call(this,c,p,x,S,P))}function d6(c,p,x,S,P){var L=kp(c,p,x,S,P),K=ha(L.year,0,L.dayOfYear);return this.year(K.getUTCFullYear()),this.month(K.getUTCMonth()),this.date(K.getUTCDate()),this}te("Q",0,"Qo","quarter"),Ne("quarter","Q"),N("quarter",7),ce("Q",ht),Be("Q",function(c,p){p[Je]=(oe(c)-1)*3});function h6(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}te("D",["DD",2],"Do","date"),Ne("date","D"),N("date",9),ce("D",qe),ce("DD",qe,Ie),ce("Do",function(c,p){return c?p._dayOfMonthOrdinalParse||p._ordinalParse:p._dayOfMonthOrdinalParseLenient}),Be(["D","DD"],Kt),Be("Do",function(c,p){p[Kt]=oe(c.match(qe)[0])});var Kp=Re("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear"),Ne("dayOfYear","DDD"),N("dayOfYear",4),ce("DDD",hr),ce("DDDD",It),Be(["DDD","DDDD"],function(c,p,x){x._dayOfYear=oe(c)});function p6(c){var p=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?p:this.add(c-p,"d")}te("m",["mm",2],0,"minute"),Ne("minute","m"),N("minute",14),ce("m",qe),ce("mm",qe,Ie),Be(["m","mm"],mt);var m6=Re("Minutes",!1);te("s",["ss",2],0,"second"),Ne("second","s"),N("second",15),ce("s",qe),ce("ss",qe,Ie),Be(["s","ss"],Gn);var y6=Re("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)}),te(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),te(0,["SSS",3],0,"millisecond"),te(0,["SSSS",4],0,function(){return this.millisecond()*10}),te(0,["SSSSS",5],0,function(){return this.millisecond()*100}),te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ne("millisecond","ms"),N("millisecond",16),ce("S",hr,ht),ce("SS",hr,Ie),ce("SSS",hr,It);var xr,Xp;for(xr="SSSS";xr.length<=9;xr+="S")ce(xr,mr);function g6(c,p){p[zr]=oe(("0."+c)*1e3)}for(xr="S";xr.length<=9;xr+="S")Be(xr,g6);Xp=Re("Milliseconds",!1),te("z",0,0,"zoneAbbr"),te("zz",0,0,"zoneName");function v6(){return this._isUTC?"UTC":""}function x6(){return this._isUTC?"Coordinated Universal Time":""}var re=j.prototype;re.add=f5,re.calendar=v5,re.clone=x5,re.diff=C5,re.endOf=L5,re.format=T5,re.from=E5,re.fromNow=M5,re.to=$5,re.toNow=I5,re.get=Ge,re.invalidAt=Y5,re.isAfter=b5,re.isBefore=w5,re.isBetween=S5,re.isSame=_5,re.isSameOrAfter=O5,re.isSameOrBefore=k5,re.isValid=U5,re.lang=Up,re.locale=Hp,re.localeData=Wp,re.max=U3,re.min=H3,re.parsingFlags=W5,re.set=kt,re.startOf=D5,re.subtract=d5,re.toArray=z5,re.toObject=F5,re.toDate=B5,re.toISOString=A5,re.inspect=j5,typeof Symbol<"u"&&Symbol.for!=null&&(re[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),re.toJSON=H5,re.toString=P5,re.unix=R5,re.valueOf=N5,re.creationData=V5,re.eraName=X5,re.eraNarrow=Z5,re.eraAbbr=J5,re.eraYear=Q5,re.year=Op,re.isLeapYear=Fw,re.weekYear=o6,re.isoWeekYear=s6,re.quarter=re.quarters=h6,re.month=Sp,re.daysInMonth=Rw,re.week=re.weeks=Gw,re.isoWeek=re.isoWeeks=qw,re.weeksInYear=c6,re.weeksInWeekYear=f6,re.isoWeeksInYear=l6,re.isoWeeksInISOWeekYear=u6,re.date=Kp,re.day=re.days=s3,re.weekday=l3,re.isoWeekday=u3,re.dayOfYear=p6,re.hour=re.hours=y3,re.minute=re.minutes=m6,re.second=re.seconds=y6,re.millisecond=re.milliseconds=Xp,re.utcOffset=J3,re.utc=e5,re.local=t5,re.parseZone=n5,re.hasAlignedHourOffset=r5,re.isDST=i5,re.isLocal=o5,re.isUtcOffset=s5,re.isUtc=Np,re.isUTC=Np,re.zoneAbbr=v6,re.zoneName=x6,re.dates=B("dates accessor is deprecated. Use date instead.",Kp),re.months=B("months accessor is deprecated. Use month instead",Sp),re.years=B("years accessor is deprecated. Use year instead",Op),re.zone=B("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Q3),re.isDSTShifted=B("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",a5);function b6(c){return at(c*1e3)}function w6(){return at.apply(null,arguments).parseZone()}function Zp(c){return c}var ze=X.prototype;ze.calendar=Q,ze.longDateFormat=ve,ze.invalidDate=Ae,ze.ordinal=He,ze.preparse=Zp,ze.postformat=Zp,ze.relativeTime=ft,ze.pastFuture=tn,ze.set=Y,ze.eras=G5,ze.erasParse=q5,ze.erasConvertYear=K5,ze.erasAbbrRegex=t6,ze.erasNameRegex=e6,ze.erasNarrowRegex=n6,ze.months=Iw,ze.monthsShort=Dw,ze.monthsParse=Nw,ze.monthsRegex=zw,ze.monthsShortRegex=Bw,ze.week=Uw,ze.firstDayOfYear=Vw,ze.firstDayOfWeek=Yw,ze.weekdays=n3,ze.weekdaysMin=i3,ze.weekdaysShort=r3,ze.weekdaysParse=o3,ze.weekdaysRegex=c3,ze.weekdaysShortRegex=f3,ze.weekdaysMinRegex=d3,ze.isPM=p3,ze.meridiem=g3;function hs(c,p,x,S){var P=Kn(),L=g().set(S,p);return P[x](L,c)}function Jp(c,p,x){if(f(c)&&(p=c,c=void 0),c=c||"",p!=null)return hs(c,p,x,"month");var S,P=[];for(S=0;S<12;S++)P[S]=hs(c,S,x,"month");return P}function lc(c,p,x,S){typeof c=="boolean"?(f(p)&&(x=p,p=void 0),p=p||""):(p=c,x=p,c=!1,f(p)&&(x=p,p=void 0),p=p||"");var P=Kn(),L=c?P._week.dow:0,K,me=[];if(x!=null)return hs(p,(x+L)%7,S,"day");for(K=0;K<7;K++)me[K]=hs(p,(K+L)%7,S,"day");return me}function S6(c,p){return Jp(c,p,"months")}function _6(c,p){return Jp(c,p,"monthsShort")}function O6(c,p,x){return lc(c,p,x,"weekdays")}function k6(c,p,x){return lc(c,p,x,"weekdaysShort")}function C6(c,p,x){return lc(c,p,x,"weekdaysMin")}vr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var p=c%10,x=oe(c%100/10)===1?"th":p===1?"st":p===2?"nd":p===3?"rd":"th";return c+x}}),r.lang=B("moment.lang is deprecated. Use moment.locale instead.",vr),r.langData=B("moment.langData is deprecated. Use moment.localeData instead.",Kn);var Xn=Math.abs;function P6(){var c=this._data;return this._milliseconds=Xn(this._milliseconds),this._days=Xn(this._days),this._months=Xn(this._months),c.milliseconds=Xn(c.milliseconds),c.seconds=Xn(c.seconds),c.minutes=Xn(c.minutes),c.hours=Xn(c.hours),c.months=Xn(c.months),c.years=Xn(c.years),this}function Qp(c,p,x,S){var P=Pn(p,x);return c._milliseconds+=S*P._milliseconds,c._days+=S*P._days,c._months+=S*P._months,c._bubble()}function A6(c,p){return Qp(this,c,p,1)}function j6(c,p){return Qp(this,c,p,-1)}function e1(c){return c<0?Math.floor(c):Math.ceil(c)}function T6(){var c=this._milliseconds,p=this._days,x=this._months,S=this._data,P,L,K,me,Ce;return c>=0&&p>=0&&x>=0||c<=0&&p<=0&&x<=0||(c+=e1(uc(x)+p)*864e5,p=0,x=0),S.milliseconds=c%1e3,P=se(c/1e3),S.seconds=P%60,L=se(P/60),S.minutes=L%60,K=se(L/60),S.hours=K%24,p+=se(K/24),Ce=se(t1(p)),x+=Ce,p-=e1(uc(Ce)),me=se(x/12),x%=12,S.days=p,S.months=x,S.years=me,this}function t1(c){return c*4800/146097}function uc(c){return c*146097/4800}function E6(c){if(!this.isValid())return NaN;var p,x,S=this._milliseconds;if(c=it(c),c==="month"||c==="quarter"||c==="year")switch(p=this._days+S/864e5,x=this._months+t1(p),c){case"month":return x;case"quarter":return x/3;case"year":return x/12}else switch(p=this._days+Math.round(uc(this._months)),c){case"week":return p/7+S/6048e5;case"day":return p+S/864e5;case"hour":return p*24+S/36e5;case"minute":return p*1440+S/6e4;case"second":return p*86400+S/1e3;case"millisecond":return Math.floor(p*864e5)+S;default:throw new Error("Unknown unit "+c)}}function M6(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+oe(this._months/12)*31536e6:NaN}function Zn(c){return function(){return this.as(c)}}var $6=Zn("ms"),I6=Zn("s"),D6=Zn("m"),L6=Zn("h"),N6=Zn("d"),R6=Zn("w"),B6=Zn("M"),z6=Zn("Q"),F6=Zn("y");function H6(){return Pn(this)}function U6(c){return c=it(c),this.isValid()?this[c+"s"]():NaN}function Hr(c){return function(){return this.isValid()?this._data[c]:NaN}}var W6=Hr("milliseconds"),Y6=Hr("seconds"),V6=Hr("minutes"),G6=Hr("hours"),q6=Hr("days"),K6=Hr("months"),X6=Hr("years");function Z6(){return se(this.days()/7)}var Jn=Math.round,hi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function J6(c,p,x,S,P){return P.relativeTime(p||1,!!x,c,S)}function Q6(c,p,x,S){var P=Pn(c).abs(),L=Jn(P.as("s")),K=Jn(P.as("m")),me=Jn(P.as("h")),Ce=Jn(P.as("d")),Ke=Jn(P.as("M")),Ft=Jn(P.as("w")),Qn=Jn(P.as("y")),br=L<=x.ss&&["s",L]||L0,br[4]=S,J6.apply(null,br)}function e4(c){return c===void 0?Jn:typeof c=="function"?(Jn=c,!0):!1}function t4(c,p){return hi[c]===void 0?!1:p===void 0?hi[c]:(hi[c]=p,c==="s"&&(hi.ss=p-1),!0)}function n4(c,p){if(!this.isValid())return this.localeData().invalidDate();var x=!1,S=hi,P,L;return typeof c=="object"&&(p=c,c=!1),typeof c=="boolean"&&(x=c),typeof p=="object"&&(S=Object.assign({},hi,p),p.s!=null&&p.ss==null&&(S.ss=p.s-1)),P=this.localeData(),L=Q6(this,!x,S,P),x&&(L=P.pastFuture(+this,L)),P.postformat(L)}var cc=Math.abs;function pi(c){return(c>0)-(c<0)||+c}function ps(){if(!this.isValid())return this.localeData().invalidDate();var c=cc(this._milliseconds)/1e3,p=cc(this._days),x=cc(this._months),S,P,L,K,me=this.asSeconds(),Ce,Ke,Ft,Qn;return me?(S=se(c/60),P=se(S/60),c%=60,S%=60,L=se(x/12),x%=12,K=c?c.toFixed(3).replace(/\.?0+$/,""):"",Ce=me<0?"-":"",Ke=pi(this._months)!==pi(me)?"-":"",Ft=pi(this._days)!==pi(me)?"-":"",Qn=pi(this._milliseconds)!==pi(me)?"-":"",Ce+"P"+(L?Ke+L+"Y":"")+(x?Ke+x+"M":"")+(p?Ft+p+"D":"")+(P||S||c?"T":"")+(P?Qn+P+"H":"")+(S?Qn+S+"M":"")+(c?Qn+K+"S":"")):"P0D"}var De=ss.prototype;De.isValid=q3,De.abs=P6,De.add=A6,De.subtract=j6,De.as=E6,De.asMilliseconds=$6,De.asSeconds=I6,De.asMinutes=D6,De.asHours=L6,De.asDays=N6,De.asWeeks=R6,De.asMonths=B6,De.asQuarters=z6,De.asYears=F6,De.valueOf=M6,De._bubble=T6,De.clone=H6,De.get=U6,De.milliseconds=W6,De.seconds=Y6,De.minutes=V6,De.hours=G6,De.days=q6,De.weeks=Z6,De.months=K6,De.years=X6,De.humanize=n4,De.toISOString=ps,De.toString=ps,De.toJSON=ps,De.locale=Hp,De.localeData=Wp,De.toIsoString=B("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ps),De.lang=Up,te("X",0,0,"unix"),te("x",0,0,"valueOf"),ce("x",yr),ce("X",Wu),Be("X",function(c,p,x){x._d=new Date(parseFloat(c)*1e3)}),Be("x",function(c,p,x){x._d=new Date(oe(c))});//! moment.js +return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.unix=b6,r.months=S6,r.isDate=d,r.locale=vr,r.invalid=k,r.duration=Pn,r.isMoment=T,r.weekdays=O6,r.parseZone=w6,r.localeData=Kn,r.isDuration=ls,r.monthsShort=_6,r.weekdaysMin=C6,r.defineLocale=Zu,r.updateLocale=w3,r.locales=S3,r.weekdaysShort=k6,r.normalizeUnits=it,r.relativeTimeRounding=e4,r.relativeTimeThreshold=t4,r.calendarFormat=g5,r.prototype=re,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})})(vv);var R9=vv.exports;const xv=st(R9),B9=({text:e,type:t,sourceLink:n,date:r})=>y.jsxs(F,{direction:"column",children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(F,{align:"center",direction:"row",children:y.jsx(ea,{type:t})}),n&&y.jsx(ti,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:i=>i.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),y.jsx(ff,{"data-testid":"episode-description",children:e}),y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(F,{align:"center",direction:"row",justify:"flex-start",children:!!r&&y.jsx(Mr,{children:xv.unix(r).fromNow()})}),n&&y.jsxs(ti,{href:n,onClick:i=>i.stopPropagation(),target:"_blank",children:[y.jsx(gv,{}),y.jsx(z9,{children:n})]})]})]}),z9=H(pt)` max-width: 150px; overflow: hidden; text-overflow: ellipsis; @@ -345,7 +356,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni .player-controls { margin-left: 4px; } -`,Xd=({boostCount:e,date:t,episodeTitle:n,isSelectedView:r=!1,imageUrl:i,showTitle:a,type:o,text:s,name:l,sourceLink:u,verified:f=!1,twitterHandle:d,className:h="episode-wrapper",onClick:m})=>{const g=Bt(w=>w.currentSearch),b=Qn(String(o==="show"?a:n),g),_=Qn(String(s),g),C=Qn(String(l),g),A=Qn(String(o==="show"?"":a),g),O=["Tweet","person","guest","topic","document"];return o?y.jsx(K9,{className:h,onClick:m,children:O.includes(o)?y.jsxs(y.Fragment,{children:[o==="topic"&&y.jsx(X9,{children:y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",pr:16,children:[y.jsx($9,{}),y.jsx("p",{children:A})]}),u&&y.jsx(ti,{href:`${u}${u!=null&&u.includes("?")?"&":"?"}open=system`,onClick:w=>w.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),y.jsx(F,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&y.jsx(Mr,{children:Ga.unix(t).fromNow()})})]})}),["person","guest"].includes(o)&&y.jsx(F9,{date:t,imageUrl:i,name:C||"",sourceLink:u||"",title:a||""}),["image"].includes(o)&&y.jsx(D9,{date:t,imageUrl:u,name:C||"",sourceLink:u||""}),o==="Tweet"&&y.jsx(W9,{date:t,imageUrl:i,name:C||"",sourceLink:u||"",text:_||"",twitterHandle:d,verified:f}),o==="document"&&y.jsx(B9,{date:t,sourceLink:u||"",text:_||"",type:o})]}):y.jsxs(F,{align:"center",direction:"row",justify:"center",children:[!r&&i&&y.jsx(F,{align:"center",pr:16,children:y.jsx($n,{size:80,src:i,type:o||""})}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(F,{align:"center",direction:"row",children:o&&y.jsx(ea,{type:o})}),u&&y.jsx(ti,{href:`${u}${u!=null&&u.includes("?")?"&":"?"}open=system`,onClick:w=>w.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),C&&y.jsx(ff,{"data-testid":"episode-name",children:C}),y.jsx(ff,{"data-testid":"episode-description",children:b}),y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[!!t&&y.jsx(Mr,{children:Ga.unix(t).fromNow()}),!!A&&y.jsx(Z9,{children:A}),!r&&e>0&&y.jsx(F,{style:{marginLeft:"auto"},children:y.jsx(Kd,{amt:e})})]})]})]})}):null},ff=H(F)` +`,Xd=({boostCount:e,date:t,episodeTitle:n,isSelectedView:r=!1,imageUrl:i,showTitle:a,type:o,text:s,name:l,sourceLink:u,verified:f=!1,twitterHandle:d,className:h="episode-wrapper",onClick:m})=>{const g=Bt(w=>w.currentSearch),b=er(String(o==="show"?a:n),g),_=er(String(s),g),C=er(String(l),g),A=er(String(o==="show"?"":a),g),O=["Tweet","person","guest","topic","document"];return o?y.jsx(K9,{className:h,onClick:m,children:O.includes(o)?y.jsxs(y.Fragment,{children:[o==="topic"&&y.jsx(X9,{children:y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",pr:16,children:[y.jsx($9,{}),y.jsx("p",{children:A})]}),u&&y.jsx(ti,{href:`${u}${u!=null&&u.includes("?")?"&":"?"}open=system`,onClick:w=>w.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),y.jsx(F,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&y.jsx(Mr,{children:Ga.unix(t).fromNow()})})]})}),["person","guest"].includes(o)&&y.jsx(F9,{date:t,imageUrl:i,name:C||"",sourceLink:u||"",title:a||""}),["image"].includes(o)&&y.jsx(D9,{date:t,imageUrl:u,name:C||"",sourceLink:u||""}),o==="Tweet"&&y.jsx(W9,{date:t,imageUrl:i,name:C||"",sourceLink:u||"",text:_||"",twitterHandle:d,verified:f}),o==="document"&&y.jsx(B9,{date:t,sourceLink:u||"",text:_||"",type:o})]}):y.jsxs(F,{align:"center",direction:"row",justify:"center",children:[!r&&i&&y.jsx(F,{align:"center",pr:16,children:y.jsx($n,{size:80,src:i,type:o||""})}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(F,{align:"center",direction:"row",children:o&&y.jsx(ea,{type:o})}),u&&y.jsx(ti,{href:`${u}${u!=null&&u.includes("?")?"&":"?"}open=system`,onClick:w=>w.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),C&&y.jsx(ff,{"data-testid":"episode-name",children:C}),y.jsx(ff,{"data-testid":"episode-description",children:b}),y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[!!t&&y.jsx(Mr,{children:Ga.unix(t).fromNow()}),!!A&&y.jsx(Z9,{children:A}),!r&&e>0&&y.jsx(F,{style:{marginLeft:"auto"},children:y.jsx(Kd,{amt:e})})]})]})]})}):null},ff=H(F)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -538,7 +549,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni `,cS=H(pt)` font-weight: 600; font-size: 0.9375rem; -`,ba=8,Ss=332,fS=()=>y.jsx(y.Fragment,{children:y.jsx(sS,{children:y.jsxs(F,{direction:"column",children:[y.jsxs(F,{direction:"row",children:[y.jsx(uS,{children:y.jsx(oS,{})}),y.jsx(cS,{children:"Answer"})]}),y.jsxs(lS,{grow:1,shrink:1,children:[y.jsx(xa,{height:ba,variant:"rectangular",width:Ss}),y.jsx(xa,{height:ba,variant:"rectangular",width:Ss}),y.jsx(xa,{height:ba,variant:"rectangular",width:Ss}),y.jsx(xa,{height:ba,variant:"rectangular",width:Ss}),y.jsx(xa,{height:ba,variant:"rectangular",width:180})]})]})})}),dS=H(pt)` +`,ba=8,ws=332,fS=()=>y.jsx(y.Fragment,{children:y.jsx(sS,{children:y.jsxs(F,{direction:"column",children:[y.jsxs(F,{direction:"row",children:[y.jsx(uS,{children:y.jsx(oS,{})}),y.jsx(cS,{children:"Answer"})]}),y.jsxs(lS,{grow:1,shrink:1,children:[y.jsx(xa,{height:ba,variant:"rectangular",width:ws}),y.jsx(xa,{height:ba,variant:"rectangular",width:ws}),y.jsx(xa,{height:ba,variant:"rectangular",width:ws}),y.jsx(xa,{height:ba,variant:"rectangular",width:ws}),y.jsx(xa,{height:ba,variant:"rectangular",width:180})]})]})})}),dS=H(pt)` font-size: 20px; font-weight: 600; flex-grow: 1; @@ -599,7 +610,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni } `,gS=H.audio` display: none; -`,vS=390,xS=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:n,setNewLoading:r}=Xg(s=>s),{abortFetchData:i}=Sn(s=>s),a=Yl(),o=()=>{r(null),i(),t(),a("/")};return y.jsxs(bS,{children:[y.jsx(F,{align:"flex-start",children:y.jsx(F,{p:24,children:y.jsx(Rt,{onClick:o,startIcon:y.jsx(l9,{}),children:"Home"})})}),y.jsx(wS,{children:y.jsxs(F,{children:[Object.keys(e).filter(s=>e[s].shouldRender).map(s=>{var l;return y.jsx(f1,{question:((l=e[s])==null?void 0:l.question)||"",refId:s,response:e[s]},s)}),n&&y.jsx(f1,{question:n.question||"",refId:"",response:n})]})}),y.jsx(c9,{})]})},bS=H(F)(({theme:e})=>({position:"relative",background:R.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:vS}})),wS=H(F)(()=>({overflow:"auto",flex:1,width:"100%"})),SS=()=>{var d;const[e,t]=z.useState(null),{sidebarFilter:n,setSidebarFilter:r,sidebarFilterCounts:i=[]}=Sn(h=>h),a=(n??"").toLowerCase(),o=((d=i.find(h=>h.name===a))==null?void 0:d.count)||0,s=h=>h?h.charAt(0).toUpperCase()+h.slice(1):"",l=h=>{o>=1&&t(h.currentTarget)},u=()=>{t(null)},f=h=>{r(h),u()};return y.jsxs("div",{children:[y.jsxs(_S,{onClick:l,children:[y.jsx("div",{className:"text",children:"Show"}),y.jsx("div",{className:"value","data-testid":"value",children:`${s(a)} (${o})`}),o>=1&&y.jsx("div",{className:"icon",children:e?y.jsx(qd,{}):y.jsx(Xl,{})})]}),y.jsx(kS,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:u,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:y.jsx(Y4,{children:i.filter(({name:h})=>h).map(({name:h,count:m})=>y.jsxs(OS,{className:Ar({active:h===n}),onClick:g=>{g.preventDefault(),f(h)},children:[y.jsx("span",{className:"icon",children:h===n?y.jsx(lv,{}):null}),y.jsx("span",{children:`${s(h)} (${m})`})]},h))})})]})},_S=H(F).attrs({direction:"row",align:"center"})` +`,vS=390,xS=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:n,setNewLoading:r}=Xg(s=>s),{abortFetchData:i}=Sn(s=>s),a=Wl(),o=()=>{r(null),i(),t(),a("/")};return y.jsxs(bS,{children:[y.jsx(F,{align:"flex-start",children:y.jsx(F,{p:24,children:y.jsx(Rt,{onClick:o,startIcon:y.jsx(l9,{}),children:"Home"})})}),y.jsx(wS,{children:y.jsxs(F,{children:[Object.keys(e).filter(s=>e[s].shouldRender).map(s=>{var l;return y.jsx(f1,{question:((l=e[s])==null?void 0:l.question)||"",refId:s,response:e[s]},s)}),n&&y.jsx(f1,{question:n.question||"",refId:"",response:n})]})}),y.jsx(c9,{})]})},bS=H(F)(({theme:e})=>({position:"relative",background:R.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:vS}})),wS=H(F)(()=>({overflow:"auto",flex:1,width:"100%"})),SS=()=>{var d;const[e,t]=z.useState(null),{sidebarFilter:n,setSidebarFilter:r,sidebarFilterCounts:i=[]}=Sn(h=>h),a=(n??"").toLowerCase(),o=((d=i.find(h=>h.name===a))==null?void 0:d.count)||0,s=h=>h?h.charAt(0).toUpperCase()+h.slice(1):"",l=h=>{o>=1&&t(h.currentTarget)},u=()=>{t(null)},f=h=>{r(h),u()};return y.jsxs("div",{children:[y.jsxs(_S,{onClick:l,children:[y.jsx("div",{className:"text",children:"Show"}),y.jsx("div",{className:"value","data-testid":"value",children:`${s(a)} (${o})`}),o>=1&&y.jsx("div",{className:"icon",children:e?y.jsx(qd,{}):y.jsx(Xl,{})})]}),y.jsx(kS,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:u,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:y.jsx(Y4,{children:i.filter(({name:h})=>h).map(({name:h,count:m})=>y.jsxs(OS,{className:zn({active:h===n}),onClick:g=>{g.preventDefault(),f(h)},children:[y.jsx("span",{className:"icon",children:h===n?y.jsx(lv,{}):null}),y.jsx("span",{children:`${s(h)} (${m})`})]},h))})})]})},_S=H(F).attrs({direction:"row",align:"center"})` cursor: pointer; flex-grow: 1; color: ${R.GRAY6}; @@ -653,7 +664,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni border-radius: 8px; } } -`,AS=({maxResults:e,setMaxResults:t})=>{const n=(r,i)=>{const a=Array.isArray(i)?i[0]:i;t(a)};return y.jsxs(y.Fragment,{children:[y.jsxs(Qd,{children:[y.jsx("div",{children:"Max results"}),y.jsx(Jd,{children:"Total number of relationships"})]}),y.jsxs(Zl,{children:[y.jsxs(wv,{children:[y.jsx("span",{children:"1"}),y.jsx("span",{children:e})]}),y.jsx(bv,{direction:"row",children:y.jsx(Kl,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:1,onChange:n,size:"medium",step:1,value:e})})]})]})},jS=({sourceNodes:e,setSourceNodes:t})=>{const n=(r,i)=>{const a=Array.isArray(i)?i[0]:i;t(a)};return y.jsxs(y.Fragment,{children:[y.jsxs(Qd,{children:[y.jsx("div",{children:"Source Nodes"}),y.jsx(Jd,{children:"Core set of nodes based on search term"})]}),y.jsxs(Zl,{children:[y.jsxs(wv,{children:[y.jsx("span",{children:"1"}),y.jsx("span",{children:e})]}),y.jsx(bv,{direction:"row",children:y.jsx(Kl,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:1,onChange:n,size:"medium",step:1,value:e})})]})]})},TS=({showAllSchemas:e,setShowAllSchemas:t,schemaAll:n,anchorEl:r})=>{const i=_=>{s(C=>C.includes(_)?C.filter(k=>k!==_):[...C,_])},{setFilters:a}=Sn(_=>_),[o,s]=z.useState([]),[l,u]=z.useState(1),[f,d]=z.useState(10),[h,m]=z.useState(30),g=async()=>{s([])},v=()=>{t(!0)},b=()=>{a({node_type:o,limit:h.toString(),depth:l.toString(),top_node_count:f.toString()})};return y.jsxs(ES,{anchorEl:r,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!r,placement:"bottom-end",children:[y.jsxs(MS,{children:[y.jsx("div",{children:"Type"}),y.jsxs($S,{children:[y.jsx(IS,{children:o.length}),y.jsx(DS,{children:"Selected"})]})]}),y.jsxs(Zl,{children:[y.jsx(RS,{children:(e?n:n.slice(0,4)).map(_=>y.jsx(BS,{isSelected:o.includes(_.type),onClick:()=>i(_==null?void 0:_.type),children:_.type},_.type))}),!e&&n.length>4&&y.jsx(zS,{onClick:v,children:y.jsxs(NS,{children:[y.jsx(Vd,{})," View More"]})})]}),y.jsx(_s,{}),y.jsx(jS,{setSourceNodes:d,sourceNodes:f}),y.jsx(_s,{}),y.jsx(CS,{hops:l,setHops:u}),y.jsx(_s,{}),y.jsx(AS,{maxResults:h,setMaxResults:m}),y.jsx(_s,{}),y.jsx(LS,{children:y.jsxs(WS,{children:[y.jsxs(FS,{color:"secondary",onClick:g,size:"large",style:{marginRight:20},variant:"contained",children:[y.jsx(HS,{children:y.jsx(rv,{})}),"Clear"]}),y.jsx(US,{color:"secondary",onClick:b,size:"large",variant:"contained",children:"Show Results"})]})})]})},ES=H(V4)` +`,AS=({maxResults:e,setMaxResults:t})=>{const n=(r,i)=>{const a=Array.isArray(i)?i[0]:i;t(a)};return y.jsxs(y.Fragment,{children:[y.jsxs(Qd,{children:[y.jsx("div",{children:"Max results"}),y.jsx(Jd,{children:"Total number of relationships"})]}),y.jsxs(Zl,{children:[y.jsxs(wv,{children:[y.jsx("span",{children:"1"}),y.jsx("span",{children:e})]}),y.jsx(bv,{direction:"row",children:y.jsx(Kl,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:1,onChange:n,size:"medium",step:1,value:e})})]})]})},jS=({sourceNodes:e,setSourceNodes:t})=>{const n=(r,i)=>{const a=Array.isArray(i)?i[0]:i;t(a)};return y.jsxs(y.Fragment,{children:[y.jsxs(Qd,{children:[y.jsx("div",{children:"Source Nodes"}),y.jsx(Jd,{children:"Core set of nodes based on search term"})]}),y.jsxs(Zl,{children:[y.jsxs(wv,{children:[y.jsx("span",{children:"1"}),y.jsx("span",{children:e})]}),y.jsx(bv,{direction:"row",children:y.jsx(Kl,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:1,onChange:n,size:"medium",step:1,value:e})})]})]})},TS=({showAllSchemas:e,setShowAllSchemas:t,schemaAll:n,anchorEl:r})=>{const i=_=>{s(C=>C.includes(_)?C.filter(k=>k!==_):[...C,_])},{setFilters:a}=Sn(_=>_),[o,s]=z.useState([]),[l,u]=z.useState(1),[f,d]=z.useState(10),[h,m]=z.useState(30),g=async()=>{s([])},v=()=>{t(!0)},b=()=>{a({node_type:o,limit:h.toString(),depth:l.toString(),top_node_count:f.toString()})};return y.jsxs(ES,{anchorEl:r,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!r,placement:"bottom-end",children:[y.jsxs(MS,{children:[y.jsx("div",{children:"Type"}),y.jsxs($S,{children:[y.jsx(IS,{children:o.length}),y.jsx(DS,{children:"Selected"})]})]}),y.jsxs(Zl,{children:[y.jsx(RS,{children:(e?n:n.slice(0,4)).map(_=>y.jsx(BS,{isSelected:o.includes(_.type),onClick:()=>i(_==null?void 0:_.type),children:_.type},_.type))}),!e&&n.length>4&&y.jsx(zS,{onClick:v,children:y.jsxs(NS,{children:[y.jsx(Vd,{})," View More"]})})]}),y.jsx(Ss,{}),y.jsx(jS,{setSourceNodes:d,sourceNodes:f}),y.jsx(Ss,{}),y.jsx(CS,{hops:l,setHops:u}),y.jsx(Ss,{}),y.jsx(AS,{maxResults:h,setMaxResults:m}),y.jsx(Ss,{}),y.jsx(LS,{children:y.jsxs(WS,{children:[y.jsxs(FS,{color:"secondary",onClick:g,size:"large",style:{marginRight:20},variant:"contained",children:[y.jsx(HS,{children:y.jsx(rv,{})}),"Clear"]}),y.jsx(US,{color:"secondary",onClick:b,size:"large",variant:"contained",children:"Show Results"})]})})]})},ES=H(V4)` &&.MuiPopper-root { background: ${R.BG2}; padding: 16px; @@ -702,7 +713,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni justify-content: space-between; align-items: center; padding-top: 8px; -`,_s=H.div` +`,Ss=H.div` border: 1px solid ${R.black}; width: calc(100% + 32px); margin: 13px -16px; @@ -840,7 +851,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni `,WS=H(F)` flex-direction: row; margin: 0 0 6px 8px; -`,YS=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),VS=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),yc=[["Searching","Podcast Index"],["Finding","Transcripts"],["Loading","Audio Clips"],["Loading","Video Clips"],["Preparing","Results"]],GS=()=>{const[e,t]=z.useState(0);return z.useEffect(()=>{if(e===yc.length-1)return;const n=setTimeout(()=>t(r=>(r+1)%yc.length),2e3);return()=>clearTimeout(n)},[e]),y.jsx(qS,{direction:"column",children:yc.map((n,r)=>y.jsxs(F,{className:Ar("raw-wrapper",{show:e===r}),direction:"row",children:[y.jsx("div",{className:Ar("action"),children:n[0]}),y.jsx("div",{className:Ar("entity"),children:n[1]}),y.jsx("div",{children:y.jsx(s9,{color:R.SECONDARY_BLUE,size:2})})]},n[1]))})},qS=H(F)` +`,YS=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),VS=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),yc=[["Searching","Podcast Index"],["Finding","Transcripts"],["Loading","Audio Clips"],["Loading","Video Clips"],["Preparing","Results"]],GS=()=>{const[e,t]=z.useState(0);return z.useEffect(()=>{if(e===yc.length-1)return;const n=setTimeout(()=>t(r=>(r+1)%yc.length),2e3);return()=>clearTimeout(n)},[e]),y.jsx(qS,{direction:"column",children:yc.map((n,r)=>y.jsxs(F,{className:zn("raw-wrapper",{show:e===r}),direction:"row",children:[y.jsx("div",{className:zn("action"),children:n[0]}),y.jsx("div",{className:zn("entity"),children:n[1]}),y.jsx("div",{children:y.jsx(s9,{color:R.SECONDARY_BLUE,size:2})})]},n[1]))})},qS=H(F)` overflow: hidden; height: 20px; position: relative; @@ -927,20 +938,20 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni } `,t_=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:n,nextPage:r}=Sn(A=>A),i=Ro(),{currentSearch:a,setSidebarOpen:o,setRelevanceSelected:s}=Bt(A=>A),[l,u]=z.useState(0),[f,d]=z.useState(0),h=Zg(),g=l*t+t,v=h&&h.length>0?h.length-1>g:!1,b=n9("sm","down"),_=z.useCallback(A=>{r8(A),n(A),s(!0),i(A),b&&o(!1)},[i,s,o,n,b]),C=()=>{r(),v&&(u(l+1),d(A=>A+1))},k=z.useMemo(()=>{if(h){const A=[...h].sort((O,w)=>(w.date||0)-(O.date||0));return a&&A.sort((O,w)=>{const j=O.node_type==="topic"&&O.name.toLowerCase()===a.toLowerCase()?1:0;return(w.node_type==="topic"&&w.name.toLowerCase()===a.toLowerCase()?1:0)-j}),A.slice(0,g)}return[]},[h,a,g]);return y.jsxs(y.Fragment,{children:[(k??[]).map((A,O)=>{const w=Zd(A),{image_url:j,date:T,boost:I,type:B,episode_title:M,show_title:D,node_type:W,text:Y,source_link:V,link:X,name:Z,verified:G=!1,twitter_handle:Q}=w||{};return y.jsx(Xd,{boostCount:I||0,date:T||0,episodeTitle:Ti(M),imageUrl:j||"",link:X,name:Z||"",onClick:()=>{_(A)},showTitle:Ti(D),sourceLink:V,text:Y||"",twitterHandle:Q,type:W||B,verified:G},O.toString())}),y.jsx(r_,{align:"center",background:"BG1",direction:"row",justify:"center",children:v&&y.jsx(Rt,{onClick:C,size:"medium",children:"Load More"},f)})]})},n_=z.memo(t_),r_=H(F)` flex: 0 0 86px; -`,i_=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),a_=e=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:y.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_5099_7163)",children:y.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),o_=e=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1259_28)",children:y.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),s_=async()=>{const e="/get_trends";return await Gg.get(e)};function l_(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const u_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,c_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,f_={};function h1(e,t){return((t||f_).jsx?c_:u_).test(e)}const d_=/[ \t\n\f\r]/g;function h_(e){return typeof e=="object"?e.type==="text"?p1(e.value):!1:p1(e)}function p1(e){return e.replace(d_,"")===""}class Ho{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Ho.prototype.property={};Ho.prototype.normal={};Ho.prototype.space=null;function Sv(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&v_.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(y1,S_);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!y1.test(a)){let o=a.replace(x_,w_);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=eh}return new i(r,t)}function w_(e){return"-"+e.toLowerCase()}function S_(e){return e.charAt(1).toUpperCase()}const __={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},O_=Sv([kv,Ov,Av,jv,y_],"html"),th=Sv([kv,Ov,Av,jv,g_],"svg");function k_(e){return e.join(" ").trim()}var Tv={},g1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,C_=/\n/g,P_=/^\s*/,A_=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,j_=/^:\s*/,T_=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,E_=/^[;\s]*/,M_=/^\s+|\s+$/g,$_=` -`,v1="/",x1="*",Vr="",I_="comment",D_="declaration",L_=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var v=g.match(C_);v&&(n+=v.length);var b=g.lastIndexOf($_);r=~b?g.length-b:r+g.length}function a(){var g={line:n,column:r};return function(v){return v.position=new o(g),u(),v}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(g){var v=g.exec(e);if(v){var b=v[0];return i(b),e=e.slice(b.length),v}}function u(){l(P_)}function f(g){var v;for(g=g||[];v=d();)v!==!1&&g.push(v);return g}function d(){var g=a();if(!(v1!=e.charAt(0)||x1!=e.charAt(1))){for(var v=2;Vr!=e.charAt(v)&&(x1!=e.charAt(v)||v1!=e.charAt(v+1));)++v;if(v+=2,Vr===e.charAt(v-1))return s("End of comment missing");var b=e.slice(2,v-2);return r+=2,i(b),e=e.slice(v),r+=2,g({type:I_,comment:b})}}function h(){var g=a(),v=l(A_);if(v){if(d(),!l(j_))return s("property missing ':'");var b=l(T_),_=g({type:D_,property:b1(v[0].replace(g1,Vr)),value:b?b1(b[0].replace(g1,Vr)):Vr});return l(E_),_}}function m(){var g=[];f(g);for(var v;v=h();)v!==!1&&(g.push(v),f(g));return g}return u(),m()};function b1(e){return e?e.replace(M_,Vr):Vr}var N_=Nt&&Nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tv,"__esModule",{value:!0});var R_=N_(L_);function B_(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,R_.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(n=n||{},n[o]=s)}}),n}var w1=Tv.default=B_;const z_=w1.default||w1,Ev=Mv("end"),nh=Mv("start");function Mv(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function F_(e){const t=nh(e),n=Ev(e);if(t&&n)return{start:t,end:n}}function Ra(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?S1(e.position):"start"in e||"end"in e?S1(e):"line"in e||"column"in e?pf(e):""}function pf(e){return _1(e&&e.line)+":"+_1(e&&e.column)}function S1(e){return pf(e&&e.start)+"-"+pf(e&&e.end)}function _1(e){return e&&typeof e=="number"?e:1}class zt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Ra(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const rh={}.hasOwnProperty,H_=new Map,U_=/[A-Z]/g,W_=/-([a-z])/g,Y_=new Set(["table","tbody","thead","tfoot","tr"]),V_=new Set(["td","th"]),$v="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function G_(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=t7(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=e7(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?th:O_,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Iv(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Iv(e,t,n){if(t.type==="element")return q_(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return K_(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Z_(e,t,n);if(t.type==="mdxjsEsm")return X_(e,t);if(t.type==="root")return J_(e,t,n);if(t.type==="text")return Q_(e,t)}function q_(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=th,e.schema=i),e.ancestors.push(t);const a=Lv(e,t.tagName,!1),o=n7(e,t);let s=ah(e,t);return Y_.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!h_(l):!0})),Dv(e,o,a,t),ih(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function K_(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}qa(e,t.position)}function X_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);qa(e,t.position)}function Z_(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=th,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Lv(e,t.name,!0),o=r7(e,t),s=ah(e,t);return Dv(e,o,a,t),ih(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function J_(e,t,n){const r={};return ih(r,ah(e,t)),e.create(t,e.Fragment,r,n)}function Q_(e,t){return t.value}function Dv(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ih(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function e7(e,t,n){return r;function r(i,a,o,s){const u=Array.isArray(o.children)?n:t;return s?u(a,o,s):u(a,o)}}function t7(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=nh(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function n7(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&rh.call(t.properties,i)){const a=i7(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&V_.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function r7(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else qa(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else qa(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function ah(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:H_;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Hn(e,e.length,0,t),e):t}const C1={}.hasOwnProperty;function h7(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const y7=$r(/\p{P}/u),Rn=$r(/[A-Za-z]/),un=$r(/[\dA-Za-z]/),g7=$r(/[#-'*+\--9=?A-Z^-~]/);function mf(e){return e!==null&&(e<32||e===127)}const yf=$r(/\d/),v7=$r(/[\dA-Fa-f]/),Bv=$r(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function en(e){return e!==null&&(e<0||e===32)}function We(e){return e===-2||e===-1||e===32}function x7(e){return Bv(e)||y7(e)}const b7=$r(/\s/);function $r(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function na(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function nt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return We(l)?(e.enter(n),s(l)):t(l)}function s(l){return We(l)&&a++o))return;const j=t.events.length;let T=j,I,B;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(I){B=t.events[T][1].end;break}I=!0}for(_(r),w=j;wk;){const O=n[A];t.containerState=O[1],O[0].exit.call(t,e)}n.length=k}function C(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function k7(e,t,n){return nt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function A1(e){if(e===null||en(e)||b7(e))return 1;if(x7(e))return 2}function sh(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);j1(d,-l),j1(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=gn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=gn(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=gn(u,sh(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=gn(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=gn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Hn(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n0&&We(w)?nt(e,C,"linePrefix",a+1)(w):C(w)}function C(w){return w===null||we(w)?e.check(T1,v,A)(w):(e.enter("codeFlowValue"),k(w))}function k(w){return w===null||we(w)?(e.exit("codeFlowValue"),C(w)):(e.consume(w),k)}function A(w){return e.exit("codeFenced"),t(w)}function O(w,j,T){let I=0;return B;function B(V){return w.enter("lineEnding"),w.consume(V),w.exit("lineEnding"),M}function M(V){return w.enter("codeFencedFence"),We(V)?nt(w,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):D(V)}function D(V){return V===s?(w.enter("codeFencedFenceSequence"),W(V)):T(V)}function W(V){return V===s?(I++,w.consume(V),W):I>=o?(w.exit("codeFencedFenceSequence"),We(V)?nt(w,Y,"whitespace")(V):Y(V)):T(V)}function Y(V){return V===null||we(V)?(w.exit("codeFencedFence"),j(V)):T(V)}}}function N7(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const xc={name:"codeIndented",tokenize:B7},R7={tokenize:z7,partial:!0};function B7(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),nt(e,a,"linePrefix",4+1)(u)}function a(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):we(u)?e.attempt(R7,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||we(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function z7(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):we(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):nt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):we(o)?i(o):n(o)}}const F7={name:"codeText",tokenize:W7,resolve:H7,previous:U7};function H7(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Wv(e,t,n,r,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return d;function d(_){return _===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(_),e.exit(a),h):_===null||_===32||_===41||mf(_)?n(_):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(_))}function h(_){return _===62?(e.enter(a),e.consume(_),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(_))}function m(_){return _===62?(e.exit("chunkString"),e.exit(s),h(_)):_===null||_===60||we(_)?n(_):(e.consume(_),_===92?g:m)}function g(_){return _===60||_===62||_===92?(e.consume(_),m):m(_)}function v(_){return!f&&(_===null||_===41||en(_))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(_)):f999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):we(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||we(m)||s++>999?(e.exit("chunkString"),f(m)):(e.consume(m),l||(l=!We(m)),m===92?h:d)}function h(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function Vv(e,t,n,r,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),u(h))}function u(h){return h===o?(e.exit(a),l(o)):h===null?n(h):we(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),nt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===o||h===null||we(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?d:f)}function d(h){return h===o||h===92?(e.consume(h),f):f(h)}}function Ba(e,t){let n;return r;function r(i){return we(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):We(i)?nt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Z7={name:"definition",tokenize:Q7},J7={tokenize:eO,partial:!0};function Q7(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),o(m)}function o(m){return Yv.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=Ci(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return en(m)?Ba(e,u)(m):u(m)}function u(m){return Wv(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(J7,d,d)(m)}function d(m){return We(m)?nt(e,h,"whitespace")(m):h(m)}function h(m){return m===null||we(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function eO(e,t,n){return r;function r(s){return en(s)?Ba(e,i)(s):n(s)}function i(s){return Vv(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return We(s)?nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||we(s)?t(s):n(s)}}const tO={name:"hardBreakEscape",tokenize:nO};function nO(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return we(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const rO={name:"headingAtx",tokenize:aO,resolve:iO};function iO(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Hn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function aO(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||en(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||we(f)?(e.exit("atxHeading"),t(f)):We(f)?nt(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||en(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const oO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],M1=["pre","script","style","textarea"],sO={name:"htmlFlow",tokenize:fO,resolveTo:cO,concrete:!0},lO={tokenize:hO,partial:!0},uO={tokenize:dO,partial:!0};function cO(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fO(e,t,n){const r=this;let i,a,o,s,l;return u;function u($){return f($)}function f($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),d}function d($){return $===33?(e.consume($),h):$===47?(e.consume($),a=!0,v):$===63?(e.consume($),i=3,r.interrupt?t:E):Rn($)?(e.consume($),o=String.fromCharCode($),b):n($)}function h($){return $===45?(e.consume($),i=2,m):$===91?(e.consume($),i=5,s=0,g):Rn($)?(e.consume($),i=4,r.interrupt?t:E):n($)}function m($){return $===45?(e.consume($),r.interrupt?t:E):n($)}function g($){const _e="CDATA[";return $===_e.charCodeAt(s++)?(e.consume($),s===_e.length?r.interrupt?t:D:g):n($)}function v($){return Rn($)?(e.consume($),o=String.fromCharCode($),b):n($)}function b($){if($===null||$===47||$===62||en($)){const _e=$===47,te=o.toLowerCase();return!_e&&!a&&M1.includes(te)?(i=1,r.interrupt?t($):D($)):oO.includes(o.toLowerCase())?(i=6,_e?(e.consume($),_):r.interrupt?t($):D($)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n($):a?C($):k($))}return $===45||un($)?(e.consume($),o+=String.fromCharCode($),b):n($)}function _($){return $===62?(e.consume($),r.interrupt?t:D):n($)}function C($){return We($)?(e.consume($),C):B($)}function k($){return $===47?(e.consume($),B):$===58||$===95||Rn($)?(e.consume($),A):We($)?(e.consume($),k):B($)}function A($){return $===45||$===46||$===58||$===95||un($)?(e.consume($),A):O($)}function O($){return $===61?(e.consume($),w):We($)?(e.consume($),O):k($)}function w($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),l=$,j):We($)?(e.consume($),w):T($)}function j($){return $===l?(e.consume($),l=null,I):$===null||we($)?n($):(e.consume($),j)}function T($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||en($)?O($):(e.consume($),T)}function I($){return $===47||$===62||We($)?k($):n($)}function B($){return $===62?(e.consume($),M):n($)}function M($){return $===null||we($)?D($):We($)?(e.consume($),M):n($)}function D($){return $===45&&i===2?(e.consume($),X):$===60&&i===1?(e.consume($),Z):$===62&&i===4?(e.consume($),pe):$===63&&i===3?(e.consume($),E):$===93&&i===5?(e.consume($),Q):we($)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lO,ue,W)($)):$===null||we($)?(e.exit("htmlFlowData"),W($)):(e.consume($),D)}function W($){return e.check(uO,Y,ue)($)}function Y($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),V}function V($){return $===null||we($)?W($):(e.enter("htmlFlowData"),D($))}function X($){return $===45?(e.consume($),E):D($)}function Z($){return $===47?(e.consume($),o="",G):D($)}function G($){if($===62){const _e=o.toLowerCase();return M1.includes(_e)?(e.consume($),pe):D($)}return Rn($)&&o.length<8?(e.consume($),o+=String.fromCharCode($),G):D($)}function Q($){return $===93?(e.consume($),E):D($)}function E($){return $===62?(e.consume($),pe):$===45&&i===2?(e.consume($),E):D($)}function pe($){return $===null||we($)?(e.exit("htmlFlowData"),ue($)):(e.consume($),pe)}function ue($){return e.exit("htmlFlow"),t($)}}function dO(e,t,n){const r=this;return i;function i(o){return we(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function hO(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Jl,t,n)}}const pO={name:"htmlText",tokenize:mO};function mO(e,t,n){const r=this;let i,a,o;return s;function s(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),l}function l(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),O):E===63?(e.consume(E),k):Rn(E)?(e.consume(E),T):n(E)}function u(E){return E===45?(e.consume(E),f):E===91?(e.consume(E),a=0,g):Rn(E)?(e.consume(E),C):n(E)}function f(E){return E===45?(e.consume(E),m):n(E)}function d(E){return E===null?n(E):E===45?(e.consume(E),h):we(E)?(o=d,Z(E)):(e.consume(E),d)}function h(E){return E===45?(e.consume(E),m):d(E)}function m(E){return E===62?X(E):E===45?h(E):d(E)}function g(E){const pe="CDATA[";return E===pe.charCodeAt(a++)?(e.consume(E),a===pe.length?v:g):n(E)}function v(E){return E===null?n(E):E===93?(e.consume(E),b):we(E)?(o=v,Z(E)):(e.consume(E),v)}function b(E){return E===93?(e.consume(E),_):v(E)}function _(E){return E===62?X(E):E===93?(e.consume(E),_):v(E)}function C(E){return E===null||E===62?X(E):we(E)?(o=C,Z(E)):(e.consume(E),C)}function k(E){return E===null?n(E):E===63?(e.consume(E),A):we(E)?(o=k,Z(E)):(e.consume(E),k)}function A(E){return E===62?X(E):k(E)}function O(E){return Rn(E)?(e.consume(E),w):n(E)}function w(E){return E===45||un(E)?(e.consume(E),w):j(E)}function j(E){return we(E)?(o=j,Z(E)):We(E)?(e.consume(E),j):X(E)}function T(E){return E===45||un(E)?(e.consume(E),T):E===47||E===62||en(E)?I(E):n(E)}function I(E){return E===47?(e.consume(E),X):E===58||E===95||Rn(E)?(e.consume(E),B):we(E)?(o=I,Z(E)):We(E)?(e.consume(E),I):X(E)}function B(E){return E===45||E===46||E===58||E===95||un(E)?(e.consume(E),B):M(E)}function M(E){return E===61?(e.consume(E),D):we(E)?(o=M,Z(E)):We(E)?(e.consume(E),M):I(E)}function D(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),i=E,W):we(E)?(o=D,Z(E)):We(E)?(e.consume(E),D):(e.consume(E),Y)}function W(E){return E===i?(e.consume(E),i=void 0,V):E===null?n(E):we(E)?(o=W,Z(E)):(e.consume(E),W)}function Y(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||en(E)?I(E):(e.consume(E),Y)}function V(E){return E===47||E===62||en(E)?I(E):n(E)}function X(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function Z(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),G}function G(E){return We(E)?nt(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):Q(E)}function Q(E){return e.enter("htmlTextData"),o(E)}}const lh={name:"labelEnd",tokenize:wO,resolveTo:bO,resolveAll:xO},yO={tokenize:SO},gO={tokenize:_O},vO={tokenize:OO};function xO(e){let t=-1;for(;++t=3&&(u===null||we(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),We(u)?nt(e,s,"whitespace")(u):s(u))}}const Zt={name:"list",tokenize:$O,continuation:{tokenize:IO},exit:LO},EO={tokenize:NO,partial:!0},MO={tokenize:DO,partial:!0};function $O(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(m){const g=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:yf(m)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Fs,n,u)(m):u(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return yf(m)&&++o<10?(e.consume(m),l):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):n(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Jl,r.interrupt?n:f,e.attempt(EO,h,d))}function f(m){return r.containerState.initialBlankLine=!0,a++,h(m)}function d(m){return We(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function IO(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Jl,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!We(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(MO,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,nt(e,e.attempt(Zt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function DO(e,t,n){const r=this;return nt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function LO(e){e.exit(this.containerState.type)}function NO(e,t,n){const r=this;return nt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!We(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const $1={name:"setextUnderline",tokenize:BO,resolveTo:RO};function RO(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function BO(e,t,n){const r=this;let i;return a;function a(u){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),We(u)?nt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||we(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const zO={tokenize:FO};function FO(e){const t=this,n=e.attempt(Jl,r,e.attempt(this.parser.constructs.flowInitial,i,nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(V7,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HO={resolveAll:qv()},UO=Gv("string"),WO=Gv("text");function Gv(e){return{tokenize:t,resolveAll:qv(e==="text"?YO:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(f){return u(f)?a(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),a(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const d=i[f];let h=-1;if(d)for(;++h-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function qO(e,t){let n=-1;const r=[];let i;for(;++ny.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),a_=e=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:y.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_5099_7163)",children:y.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),o_=e=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1259_28)",children:y.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),s_=async()=>{const e="/get_trends";return await Gg.get(e)};function l_(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const u_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,c_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,f_={};function h1(e,t){return((t||f_).jsx?c_:u_).test(e)}const d_=/[ \t\n\f\r]/g;function h_(e){return typeof e=="object"?e.type==="text"?p1(e.value):!1:p1(e)}function p1(e){return e.replace(d_,"")===""}class Fo{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Fo.prototype.property={};Fo.prototype.normal={};Fo.prototype.space=null;function Sv(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&v_.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(y1,S_);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!y1.test(a)){let o=a.replace(x_,w_);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=eh}return new i(r,t)}function w_(e){return"-"+e.toLowerCase()}function S_(e){return e.charAt(1).toUpperCase()}const __={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},O_=Sv([kv,Ov,Av,jv,y_],"html"),th=Sv([kv,Ov,Av,jv,g_],"svg");function k_(e){return e.join(" ").trim()}var Tv={},g1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,C_=/\n/g,P_=/^\s*/,A_=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,j_=/^:\s*/,T_=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,E_=/^[;\s]*/,M_=/^\s+|\s+$/g,$_=` +`,v1="/",x1="*",Vr="",I_="comment",D_="declaration",L_=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var v=g.match(C_);v&&(n+=v.length);var b=g.lastIndexOf($_);r=~b?g.length-b:r+g.length}function a(){var g={line:n,column:r};return function(v){return v.position=new o(g),u(),v}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(g){var v=g.exec(e);if(v){var b=v[0];return i(b),e=e.slice(b.length),v}}function u(){l(P_)}function f(g){var v;for(g=g||[];v=d();)v!==!1&&g.push(v);return g}function d(){var g=a();if(!(v1!=e.charAt(0)||x1!=e.charAt(1))){for(var v=2;Vr!=e.charAt(v)&&(x1!=e.charAt(v)||v1!=e.charAt(v+1));)++v;if(v+=2,Vr===e.charAt(v-1))return s("End of comment missing");var b=e.slice(2,v-2);return r+=2,i(b),e=e.slice(v),r+=2,g({type:I_,comment:b})}}function h(){var g=a(),v=l(A_);if(v){if(d(),!l(j_))return s("property missing ':'");var b=l(T_),_=g({type:D_,property:b1(v[0].replace(g1,Vr)),value:b?b1(b[0].replace(g1,Vr)):Vr});return l(E_),_}}function m(){var g=[];f(g);for(var v;v=h();)v!==!1&&(g.push(v),f(g));return g}return u(),m()};function b1(e){return e?e.replace(M_,Vr):Vr}var N_=Nt&&Nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tv,"__esModule",{value:!0});var R_=N_(L_);function B_(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,R_.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(n=n||{},n[o]=s)}}),n}var w1=Tv.default=B_;const z_=w1.default||w1,Ev=Mv("end"),nh=Mv("start");function Mv(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function F_(e){const t=nh(e),n=Ev(e);if(t&&n)return{start:t,end:n}}function Ra(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?S1(e.position):"start"in e||"end"in e?S1(e):"line"in e||"column"in e?pf(e):""}function pf(e){return _1(e&&e.line)+":"+_1(e&&e.column)}function S1(e){return pf(e&&e.start)+"-"+pf(e&&e.end)}function _1(e){return e&&typeof e=="number"?e:1}class zt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Ra(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const rh={}.hasOwnProperty,H_=new Map,U_=/[A-Z]/g,W_=/-([a-z])/g,Y_=new Set(["table","tbody","thead","tfoot","tr"]),V_=new Set(["td","th"]),$v="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function G_(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=t7(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=e7(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?th:O_,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Iv(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Iv(e,t,n){if(t.type==="element")return q_(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return K_(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Z_(e,t,n);if(t.type==="mdxjsEsm")return X_(e,t);if(t.type==="root")return J_(e,t,n);if(t.type==="text")return Q_(e,t)}function q_(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=th,e.schema=i),e.ancestors.push(t);const a=Lv(e,t.tagName,!1),o=n7(e,t);let s=ah(e,t);return Y_.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!h_(l):!0})),Dv(e,o,a,t),ih(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function K_(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}qa(e,t.position)}function X_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);qa(e,t.position)}function Z_(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=th,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Lv(e,t.name,!0),o=r7(e,t),s=ah(e,t);return Dv(e,o,a,t),ih(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function J_(e,t,n){const r={};return ih(r,ah(e,t)),e.create(t,e.Fragment,r,n)}function Q_(e,t){return t.value}function Dv(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ih(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function e7(e,t,n){return r;function r(i,a,o,s){const u=Array.isArray(o.children)?n:t;return s?u(a,o,s):u(a,o)}}function t7(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=nh(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function n7(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&rh.call(t.properties,i)){const a=i7(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&V_.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function r7(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else qa(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else qa(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function ah(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:H_;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Un(e,e.length,0,t),e):t}const C1={}.hasOwnProperty;function h7(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const y7=$r(/\p{P}/u),Rn=$r(/[A-Za-z]/),un=$r(/[\dA-Za-z]/),g7=$r(/[#-'*+\--9=?A-Z^-~]/);function mf(e){return e!==null&&(e<32||e===127)}const yf=$r(/\d/),v7=$r(/[\dA-Fa-f]/),Bv=$r(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function en(e){return e!==null&&(e<0||e===32)}function We(e){return e===-2||e===-1||e===32}function x7(e){return Bv(e)||y7(e)}const b7=$r(/\s/);function $r(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function na(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function nt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return We(l)?(e.enter(n),s(l)):t(l)}function s(l){return We(l)&&a++o))return;const j=t.events.length;let T=j,I,B;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(I){B=t.events[T][1].end;break}I=!0}for(_(r),w=j;wk;){const O=n[A];t.containerState=O[1],O[0].exit.call(t,e)}n.length=k}function C(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function k7(e,t,n){return nt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function A1(e){if(e===null||en(e)||b7(e))return 1;if(x7(e))return 2}function sh(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);j1(d,-l),j1(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=gn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=gn(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=gn(u,sh(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=gn(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=gn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Un(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n0&&We(w)?nt(e,C,"linePrefix",a+1)(w):C(w)}function C(w){return w===null||we(w)?e.check(T1,v,A)(w):(e.enter("codeFlowValue"),k(w))}function k(w){return w===null||we(w)?(e.exit("codeFlowValue"),C(w)):(e.consume(w),k)}function A(w){return e.exit("codeFenced"),t(w)}function O(w,j,T){let I=0;return B;function B(V){return w.enter("lineEnding"),w.consume(V),w.exit("lineEnding"),M}function M(V){return w.enter("codeFencedFence"),We(V)?nt(w,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):D(V)}function D(V){return V===s?(w.enter("codeFencedFenceSequence"),W(V)):T(V)}function W(V){return V===s?(I++,w.consume(V),W):I>=o?(w.exit("codeFencedFenceSequence"),We(V)?nt(w,Y,"whitespace")(V):Y(V)):T(V)}function Y(V){return V===null||we(V)?(w.exit("codeFencedFence"),j(V)):T(V)}}}function N7(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const xc={name:"codeIndented",tokenize:B7},R7={tokenize:z7,partial:!0};function B7(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),nt(e,a,"linePrefix",4+1)(u)}function a(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):we(u)?e.attempt(R7,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||we(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function z7(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):we(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):nt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):we(o)?i(o):n(o)}}const F7={name:"codeText",tokenize:W7,resolve:H7,previous:U7};function H7(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Wv(e,t,n,r,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return d;function d(_){return _===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(_),e.exit(a),h):_===null||_===32||_===41||mf(_)?n(_):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(_))}function h(_){return _===62?(e.enter(a),e.consume(_),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(_))}function m(_){return _===62?(e.exit("chunkString"),e.exit(s),h(_)):_===null||_===60||we(_)?n(_):(e.consume(_),_===92?g:m)}function g(_){return _===60||_===62||_===92?(e.consume(_),m):m(_)}function v(_){return!f&&(_===null||_===41||en(_))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(_)):f999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):we(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||we(m)||s++>999?(e.exit("chunkString"),f(m)):(e.consume(m),l||(l=!We(m)),m===92?h:d)}function h(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function Vv(e,t,n,r,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),u(h))}function u(h){return h===o?(e.exit(a),l(o)):h===null?n(h):we(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),nt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===o||h===null||we(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?d:f)}function d(h){return h===o||h===92?(e.consume(h),f):f(h)}}function Ba(e,t){let n;return r;function r(i){return we(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):We(i)?nt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Z7={name:"definition",tokenize:Q7},J7={tokenize:eO,partial:!0};function Q7(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),o(m)}function o(m){return Yv.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=Ci(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return en(m)?Ba(e,u)(m):u(m)}function u(m){return Wv(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(J7,d,d)(m)}function d(m){return We(m)?nt(e,h,"whitespace")(m):h(m)}function h(m){return m===null||we(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function eO(e,t,n){return r;function r(s){return en(s)?Ba(e,i)(s):n(s)}function i(s){return Vv(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return We(s)?nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||we(s)?t(s):n(s)}}const tO={name:"hardBreakEscape",tokenize:nO};function nO(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return we(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const rO={name:"headingAtx",tokenize:aO,resolve:iO};function iO(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Un(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function aO(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||en(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||we(f)?(e.exit("atxHeading"),t(f)):We(f)?nt(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||en(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const oO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],M1=["pre","script","style","textarea"],sO={name:"htmlFlow",tokenize:fO,resolveTo:cO,concrete:!0},lO={tokenize:hO,partial:!0},uO={tokenize:dO,partial:!0};function cO(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fO(e,t,n){const r=this;let i,a,o,s,l;return u;function u($){return f($)}function f($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),d}function d($){return $===33?(e.consume($),h):$===47?(e.consume($),a=!0,v):$===63?(e.consume($),i=3,r.interrupt?t:E):Rn($)?(e.consume($),o=String.fromCharCode($),b):n($)}function h($){return $===45?(e.consume($),i=2,m):$===91?(e.consume($),i=5,s=0,g):Rn($)?(e.consume($),i=4,r.interrupt?t:E):n($)}function m($){return $===45?(e.consume($),r.interrupt?t:E):n($)}function g($){const _e="CDATA[";return $===_e.charCodeAt(s++)?(e.consume($),s===_e.length?r.interrupt?t:D:g):n($)}function v($){return Rn($)?(e.consume($),o=String.fromCharCode($),b):n($)}function b($){if($===null||$===47||$===62||en($)){const _e=$===47,te=o.toLowerCase();return!_e&&!a&&M1.includes(te)?(i=1,r.interrupt?t($):D($)):oO.includes(o.toLowerCase())?(i=6,_e?(e.consume($),_):r.interrupt?t($):D($)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n($):a?C($):k($))}return $===45||un($)?(e.consume($),o+=String.fromCharCode($),b):n($)}function _($){return $===62?(e.consume($),r.interrupt?t:D):n($)}function C($){return We($)?(e.consume($),C):B($)}function k($){return $===47?(e.consume($),B):$===58||$===95||Rn($)?(e.consume($),A):We($)?(e.consume($),k):B($)}function A($){return $===45||$===46||$===58||$===95||un($)?(e.consume($),A):O($)}function O($){return $===61?(e.consume($),w):We($)?(e.consume($),O):k($)}function w($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),l=$,j):We($)?(e.consume($),w):T($)}function j($){return $===l?(e.consume($),l=null,I):$===null||we($)?n($):(e.consume($),j)}function T($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||en($)?O($):(e.consume($),T)}function I($){return $===47||$===62||We($)?k($):n($)}function B($){return $===62?(e.consume($),M):n($)}function M($){return $===null||we($)?D($):We($)?(e.consume($),M):n($)}function D($){return $===45&&i===2?(e.consume($),X):$===60&&i===1?(e.consume($),Z):$===62&&i===4?(e.consume($),pe):$===63&&i===3?(e.consume($),E):$===93&&i===5?(e.consume($),Q):we($)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lO,ue,W)($)):$===null||we($)?(e.exit("htmlFlowData"),W($)):(e.consume($),D)}function W($){return e.check(uO,Y,ue)($)}function Y($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),V}function V($){return $===null||we($)?W($):(e.enter("htmlFlowData"),D($))}function X($){return $===45?(e.consume($),E):D($)}function Z($){return $===47?(e.consume($),o="",G):D($)}function G($){if($===62){const _e=o.toLowerCase();return M1.includes(_e)?(e.consume($),pe):D($)}return Rn($)&&o.length<8?(e.consume($),o+=String.fromCharCode($),G):D($)}function Q($){return $===93?(e.consume($),E):D($)}function E($){return $===62?(e.consume($),pe):$===45&&i===2?(e.consume($),E):D($)}function pe($){return $===null||we($)?(e.exit("htmlFlowData"),ue($)):(e.consume($),pe)}function ue($){return e.exit("htmlFlow"),t($)}}function dO(e,t,n){const r=this;return i;function i(o){return we(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function hO(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Jl,t,n)}}const pO={name:"htmlText",tokenize:mO};function mO(e,t,n){const r=this;let i,a,o;return s;function s(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),l}function l(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),O):E===63?(e.consume(E),k):Rn(E)?(e.consume(E),T):n(E)}function u(E){return E===45?(e.consume(E),f):E===91?(e.consume(E),a=0,g):Rn(E)?(e.consume(E),C):n(E)}function f(E){return E===45?(e.consume(E),m):n(E)}function d(E){return E===null?n(E):E===45?(e.consume(E),h):we(E)?(o=d,Z(E)):(e.consume(E),d)}function h(E){return E===45?(e.consume(E),m):d(E)}function m(E){return E===62?X(E):E===45?h(E):d(E)}function g(E){const pe="CDATA[";return E===pe.charCodeAt(a++)?(e.consume(E),a===pe.length?v:g):n(E)}function v(E){return E===null?n(E):E===93?(e.consume(E),b):we(E)?(o=v,Z(E)):(e.consume(E),v)}function b(E){return E===93?(e.consume(E),_):v(E)}function _(E){return E===62?X(E):E===93?(e.consume(E),_):v(E)}function C(E){return E===null||E===62?X(E):we(E)?(o=C,Z(E)):(e.consume(E),C)}function k(E){return E===null?n(E):E===63?(e.consume(E),A):we(E)?(o=k,Z(E)):(e.consume(E),k)}function A(E){return E===62?X(E):k(E)}function O(E){return Rn(E)?(e.consume(E),w):n(E)}function w(E){return E===45||un(E)?(e.consume(E),w):j(E)}function j(E){return we(E)?(o=j,Z(E)):We(E)?(e.consume(E),j):X(E)}function T(E){return E===45||un(E)?(e.consume(E),T):E===47||E===62||en(E)?I(E):n(E)}function I(E){return E===47?(e.consume(E),X):E===58||E===95||Rn(E)?(e.consume(E),B):we(E)?(o=I,Z(E)):We(E)?(e.consume(E),I):X(E)}function B(E){return E===45||E===46||E===58||E===95||un(E)?(e.consume(E),B):M(E)}function M(E){return E===61?(e.consume(E),D):we(E)?(o=M,Z(E)):We(E)?(e.consume(E),M):I(E)}function D(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),i=E,W):we(E)?(o=D,Z(E)):We(E)?(e.consume(E),D):(e.consume(E),Y)}function W(E){return E===i?(e.consume(E),i=void 0,V):E===null?n(E):we(E)?(o=W,Z(E)):(e.consume(E),W)}function Y(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||en(E)?I(E):(e.consume(E),Y)}function V(E){return E===47||E===62||en(E)?I(E):n(E)}function X(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function Z(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),G}function G(E){return We(E)?nt(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):Q(E)}function Q(E){return e.enter("htmlTextData"),o(E)}}const lh={name:"labelEnd",tokenize:wO,resolveTo:bO,resolveAll:xO},yO={tokenize:SO},gO={tokenize:_O},vO={tokenize:OO};function xO(e){let t=-1;for(;++t=3&&(u===null||we(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),We(u)?nt(e,s,"whitespace")(u):s(u))}}const Zt={name:"list",tokenize:$O,continuation:{tokenize:IO},exit:LO},EO={tokenize:NO,partial:!0},MO={tokenize:DO,partial:!0};function $O(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(m){const g=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:yf(m)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(zs,n,u)(m):u(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return yf(m)&&++o<10?(e.consume(m),l):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):n(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Jl,r.interrupt?n:f,e.attempt(EO,h,d))}function f(m){return r.containerState.initialBlankLine=!0,a++,h(m)}function d(m){return We(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function IO(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Jl,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!We(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(MO,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,nt(e,e.attempt(Zt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function DO(e,t,n){const r=this;return nt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function LO(e){e.exit(this.containerState.type)}function NO(e,t,n){const r=this;return nt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!We(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const $1={name:"setextUnderline",tokenize:BO,resolveTo:RO};function RO(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function BO(e,t,n){const r=this;let i;return a;function a(u){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),We(u)?nt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||we(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const zO={tokenize:FO};function FO(e){const t=this,n=e.attempt(Jl,r,e.attempt(this.parser.constructs.flowInitial,i,nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(V7,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HO={resolveAll:qv()},UO=Gv("string"),WO=Gv("text");function Gv(e){return{tokenize:t,resolveAll:qv(e==="text"?YO:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(f){return u(f)?a(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),a(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const d=i[f];let h=-1;if(d)for(;++h-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function qO(e,t){let n=-1;const r=[];let i;for(;++n0){const Re=ne.tokenStack[ne.tokenStack.length-1];(Re[1]||D1).call(ne,void 0,Re[0])}for(q.position={start:wr(N.length>0?N[0][1].start:{line:1,column:1,offset:0}),end:wr(N.length>0?N[N.length-2][1].end:{line:1,column:1,offset:0})},oe=-1;++oe0){const Re=ne.tokenStack[ne.tokenStack.length-1];(Re[1]||D1).call(ne,void 0,Re[0])}for(q.position={start:Sr(N.length>0?N[0][1].start:{line:1,column:1,offset:0}),end:Sr(N.length>0?N[N.length-2][1].end:{line:1,column:1,offset:0})},oe=-1;++oe1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function wk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sk(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Zv(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function _k(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zv(e,t);const i={src:na(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Ok(e,t){const n={src:na(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function kk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Ck(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zv(e,t);const i={href:na(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Pk(e,t){const n={href:na(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ak(e,t,n){const r=e.all(t),i=n?jk(n):Jv(t),a={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function Tk(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=nh(t.children[1]),l=Ev(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Dk(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(R1(t.slice(i),i>0,!1)),a.join("")}function R1(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===L1||a===N1;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===L1||a===N1;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Rk(e,t){const n={type:"text",value:Nk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Bk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const zk={blockquote:mk,break:yk,code:gk,delete:vk,emphasis:xk,footnoteReference:bk,heading:wk,html:Sk,imageReference:_k,image:Ok,inlineCode:kk,linkReference:Ck,link:Pk,listItem:Ak,list:Tk,paragraph:Ek,root:Mk,strong:$k,table:Ik,tableCell:Lk,tableRow:Dk,text:Rk,thematicBreak:Bk,toml:Os,yaml:Os,definition:Os,footnoteDefinition:Os};function Os(){}const Qv=-1,Ql=0,qs=1,Ks=2,uh=3,ch=4,fh=5,dh=6,ex=7,tx=8,B1=typeof self=="object"?self:globalThis,Fk=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Ql:case Qv:return n(o,i);case qs:{const s=n([],i);for(const l of o)s.push(r(l));return s}case Ks:{const s=n({},i);for(const[l,u]of o)s[r(l)]=r(u);return s}case uh:return n(new Date(o),i);case ch:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case fh:{const s=n(new Map,i);for(const[l,u]of o)s.set(r(l),r(u));return s}case dh:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case ex:{const{name:s,message:l}=o;return n(new B1[s](l),i)}case tx:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new B1[a](o),i)};return r},z1=e=>Fk(new Map,e)(0),mi="",{toString:Hk}={},{keys:Uk}=Object,wa=e=>{const t=typeof e;if(t!=="object"||!e)return[Ql,t];const n=Hk.call(e).slice(8,-1);switch(n){case"Array":return[qs,mi];case"Object":return[Ks,mi];case"Date":return[uh,mi];case"RegExp":return[ch,mi];case"Map":return[fh,mi];case"Set":return[dh,mi]}return n.includes("Array")?[qs,n]:n.includes("Error")?[ex,n]:[Ks,n]},ks=([e,t])=>e===Ql&&(t==="function"||t==="symbol"),Wk=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=wa(o);switch(s){case Ql:{let f=o;switch(l){case"bigint":s=tx,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([Qv],o)}return i([s,f],o)}case qs:{if(l)return i([l,[...o]],o);const f=[],d=i([s,f],o);for(const h of o)f.push(a(h));return d}case Ks:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const f=[],d=i([s,f],o);for(const h of Uk(o))(e||!ks(wa(o[h])))&&f.push([a(h),a(o[h])]);return d}case uh:return i([s,o.toISOString()],o);case ch:{const{source:f,flags:d}=o;return i([s,{source:f,flags:d}],o)}case fh:{const f=[],d=i([s,f],o);for(const[h,m]of o)(e||!(ks(wa(h))||ks(wa(m))))&&f.push([a(h),a(m)]);return d}case dh:{const f=[],d=i([s,f],o);for(const h of o)(e||!ks(wa(h)))&&f.push(a(h));return d}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},F1=(e,{json:t,lossy:n}={})=>{const r=[];return Wk(!(t||n),!!t,new Map,r)(e),r},Xs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?z1(F1(e,t)):structuredClone(e):(e,t)=>z1(F1(e,t));function Yk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Vk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Gk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Yk,r=e.options.footnoteBackLabel||Vk,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&g.push({type:"text",value:" "});let C=typeof n=="string"?n:n(l,m);typeof C=="string"&&(C={type:"text",value:C}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const b=f[f.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const C=b.children[b.children.length-1];C&&C.type==="text"?C.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...g)}else f.push(...g);const _={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,_),s.push(_)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Xs(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function jk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function Tk(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=nh(t.children[1]),l=Ev(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Dk(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(R1(t.slice(i),i>0,!1)),a.join("")}function R1(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===L1||a===N1;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===L1||a===N1;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Rk(e,t){const n={type:"text",value:Nk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Bk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const zk={blockquote:mk,break:yk,code:gk,delete:vk,emphasis:xk,footnoteReference:bk,heading:wk,html:Sk,imageReference:_k,image:Ok,inlineCode:kk,linkReference:Ck,link:Pk,listItem:Ak,list:Tk,paragraph:Ek,root:Mk,strong:$k,table:Ik,tableCell:Lk,tableRow:Dk,text:Rk,thematicBreak:Bk,toml:_s,yaml:_s,definition:_s,footnoteDefinition:_s};function _s(){}const Qv=-1,Ql=0,Gs=1,qs=2,uh=3,ch=4,fh=5,dh=6,ex=7,tx=8,B1=typeof self=="object"?self:globalThis,Fk=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Ql:case Qv:return n(o,i);case Gs:{const s=n([],i);for(const l of o)s.push(r(l));return s}case qs:{const s=n({},i);for(const[l,u]of o)s[r(l)]=r(u);return s}case uh:return n(new Date(o),i);case ch:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case fh:{const s=n(new Map,i);for(const[l,u]of o)s.set(r(l),r(u));return s}case dh:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case ex:{const{name:s,message:l}=o;return n(new B1[s](l),i)}case tx:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new B1[a](o),i)};return r},z1=e=>Fk(new Map,e)(0),mi="",{toString:Hk}={},{keys:Uk}=Object,wa=e=>{const t=typeof e;if(t!=="object"||!e)return[Ql,t];const n=Hk.call(e).slice(8,-1);switch(n){case"Array":return[Gs,mi];case"Object":return[qs,mi];case"Date":return[uh,mi];case"RegExp":return[ch,mi];case"Map":return[fh,mi];case"Set":return[dh,mi]}return n.includes("Array")?[Gs,n]:n.includes("Error")?[ex,n]:[qs,n]},Os=([e,t])=>e===Ql&&(t==="function"||t==="symbol"),Wk=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=wa(o);switch(s){case Ql:{let f=o;switch(l){case"bigint":s=tx,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([Qv],o)}return i([s,f],o)}case Gs:{if(l)return i([l,[...o]],o);const f=[],d=i([s,f],o);for(const h of o)f.push(a(h));return d}case qs:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const f=[],d=i([s,f],o);for(const h of Uk(o))(e||!Os(wa(o[h])))&&f.push([a(h),a(o[h])]);return d}case uh:return i([s,o.toISOString()],o);case ch:{const{source:f,flags:d}=o;return i([s,{source:f,flags:d}],o)}case fh:{const f=[],d=i([s,f],o);for(const[h,m]of o)(e||!(Os(wa(h))||Os(wa(m))))&&f.push([a(h),a(m)]);return d}case dh:{const f=[],d=i([s,f],o);for(const h of o)(e||!Os(wa(h)))&&f.push(a(h));return d}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},F1=(e,{json:t,lossy:n}={})=>{const r=[];return Wk(!(t||n),!!t,new Map,r)(e),r},Ks=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?z1(F1(e,t)):structuredClone(e):(e,t)=>z1(F1(e,t));function Yk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Vk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Gk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Yk,r=e.options.footnoteBackLabel||Vk,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&g.push({type:"text",value:" "});let C=typeof n=="string"?n:n(l,m);typeof C=="string"&&(C={type:"text",value:C}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const b=f[f.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const C=b.children[b.children.length-1];C&&C.type==="text"?C.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...g)}else f.push(...g);const _={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,_),s.push(_)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ks(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const nx=function(e){if(e==null)return Zk;if(typeof e=="function")return eu(e);if(typeof e=="object")return Array.isArray(e)?qk(e):Kk(e);if(typeof e=="string")return Xk(e);throw new Error("Expected function, string, or object as test")};function qk(e){const t=[];let n=-1;for(;++n":""))+")"})}return h;function h(){let m=rx,g,v,b;if((!t||a(l,u,f[f.length-1]||void 0))&&(m=nC(n(l,f)),m[0]===H1))return m;if("children"in l&&l.children){const _=l;if(_.children&&m[0]!==eC)for(v=(r?_.children.length:-1)+o,b=f.concat(_);v>-1&&v<_.children.length;){const C=_.children[v];if(g=s(C,v,b)(),g[0]===H1)return g;v=typeof g[1]=="number"?g[1]:v+o}}return m}}}function nC(e){return Array.isArray(e)?e:typeof e=="number"?[Qk,e]:e==null?rx:[e]}function ix(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),tC(e,a,s,i);function s(l,u){const f=u[u.length-1],d=f?f.children.indexOf(l):void 0;return o(l,d,f)}}const vf={}.hasOwnProperty,rC={};function iC(e,t){const n=t||rC,r=new Map,i=new Map,a=new Map,o={...zk,...n.handlers},s={all:u,applyData:oC,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:n,patch:aC,wrap:lC};return ix(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const d=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();d.has(h)||d.set(h,f)}}),s;function l(f,d){const h=f.type,m=s.handlers[h];if(vf.call(s.handlers,h)&&m)return m(s,f,d);if(s.options.passThrough&&s.options.passThrough.includes(h)){if("children"in f){const{children:v,...b}=f,_=Xs(b);return _.children=s.all(f),_}return Xs(f)}return(s.options.unknownHandler||sC)(s,f,d)}function u(f){const d=[];if("children"in f){const h=f.children;let m=-1;for(;++m":""))+")"})}return h;function h(){let m=rx,g,v,b;if((!t||a(l,u,f[f.length-1]||void 0))&&(m=nC(n(l,f)),m[0]===H1))return m;if("children"in l&&l.children){const _=l;if(_.children&&m[0]!==eC)for(v=(r?_.children.length:-1)+o,b=f.concat(_);v>-1&&v<_.children.length;){const C=_.children[v];if(g=s(C,v,b)(),g[0]===H1)return g;v=typeof g[1]=="number"?g[1]:v+o}}return m}}}function nC(e){return Array.isArray(e)?e:typeof e=="number"?[Qk,e]:e==null?rx:[e]}function ix(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),tC(e,a,s,i);function s(l,u){const f=u[u.length-1],d=f?f.children.indexOf(l):void 0;return o(l,d,f)}}const vf={}.hasOwnProperty,rC={};function iC(e,t){const n=t||rC,r=new Map,i=new Map,a=new Map,o={...zk,...n.handlers},s={all:u,applyData:oC,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:n,patch:aC,wrap:lC};return ix(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const d=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();d.has(h)||d.set(h,f)}}),s;function l(f,d){const h=f.type,m=s.handlers[h];if(vf.call(s.handlers,h)&&m)return m(s,f,d);if(s.options.passThrough&&s.options.passThrough.includes(h)){if("children"in f){const{children:v,...b}=f,_=Ks(b);return _.children=s.all(f),_}return Ks(f)}return(s.options.unknownHandler||sC)(s,f,d)}function u(f){const d=[];if("children"in f){const h=f.children;let m=-1;for(;++m0&&n.push({type:"text",value:` `}),n}function U1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function W1(e,t){const n=iC(e,t),r=n.one(e,void 0),i=Gk(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function uC(e,t){return e&&"run"in e?async function(n,r){const i=W1(n,t);await e.run(i,r)}:function(n){return W1(n,t||e)}}function Y1(e){if(e)throw e}var Hs=Object.prototype.hasOwnProperty,ax=Object.prototype.toString,V1=Object.defineProperty,G1=Object.getOwnPropertyDescriptor,q1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ax.call(t)==="[object Array]"},K1=function(t){if(!t||ax.call(t)!=="[object Object]")return!1;var n=Hs.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Hs.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Hs.call(t,i)},X1=function(t,n){V1&&n.name==="__proto__"?V1(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Z1=function(t,n){if(n==="__proto__")if(Hs.call(t,n)){if(G1)return G1(t,n).value}else return;return t[n]},cC=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,u=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const Ln={basename:hC,dirname:pC,extname:mC,join:yC,sep:"/"};function hC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Uo(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function pC(e){if(Uo(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function mC(e){Uo(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function yC(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function vC(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Uo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xC={cwd:bC};function bC(){return"/"}function bf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function wC(e){if(typeof e=="string")e=new URL(e);else if(!bf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return SC(e)}function SC(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[m,...g]=f;const v=r[h][1];xf(v)&&xf(m)&&(m=wc(!0,v,m)),r[h]=[u,m,...g]}}}}const CC=new hh().freeze();function kc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Pc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Q1(e){if(!xf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function e0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Cs(e){return PC(e)?e:new ox(e)}function PC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function AC(e){return typeof e=="string"||jC(e)}function jC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const TC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",t0=[],n0={allowDangerousHtml:!0},EC=/^(https?|ircs?|mailto|xmpp)$/i,MC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $C(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||t0,l=e.remarkPlugins||t0,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...n0}:n0,f=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||IC,m=CC().use(pk).use(l).use(uC,u).use(s),g=new ox;typeof r=="string"&&(g.value=r);for(const C of MC)Object.hasOwn(e,C.from)&&(""+C.from+(C.to?"use `"+C.to+"` instead":"remove it")+TC+C.id,void 0);const v=m.parse(g);let b=m.runSync(v,g);return i&&(b={type:"element",tagName:"div",properties:{className:i},children:b.type==="root"?b.children:[b]}),ix(b,_),G_(b,{Fragment:y.Fragment,components:a,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function _(C,k,A){if(C.type==="raw"&&A&&typeof k=="number")return f?A.children.splice(k,1):A.children[k]={type:"text",value:C.value},k;if(C.type==="element"){let O;for(O in vc)if(Object.hasOwn(vc,O)&&Object.hasOwn(C.properties,O)){const w=C.properties[O],j=vc[O];(j===null||j.includes(C.tagName))&&(C.properties[O]=h(String(w||""),O,C))}}if(C.type==="element"){let O=t?!t.includes(C.tagName):o?o.includes(C.tagName):!1;if(!O&&n&&typeof k=="number"&&(O=!n(C,k,A)),O&&A&&typeof k=="number")return d&&C.children?A.children.splice(k,1,...C.children):A.children.splice(k,1),k}}}function IC(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||EC.test(e.slice(0,t))?e:""}const DC=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"brand_awareness",children:[y.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_3696_4540)",children:y.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),LC=({trend:e,onClose:t})=>{var b,_;const[n,r]=z.useState(!1),{close:i}=uf("briefDescription"),{currentPlayingAudio:a,setCurrentPlayingAudio:o}=Bt(C=>C),[s]=No(C=>[C.setBudget]),{fetchData:l,setAbortRequests:u}=Sn(C=>C),f=z.useRef(null),d=async()=>{h(),await l(s,u,e.name)},h=z.useCallback(()=>{t(),i()},[t,i]),m=()=>{f.current&&(n?f.current.pause():f.current.play(),r(!n))},g=()=>{var k,A,O;const C=!((k=a==null?void 0:a.current)!=null&&k.paused);C&&((A=a==null?void 0:a.current)==null||A.pause(),o(null)),(((O=a==null?void 0:a.current)==null?void 0:O.src)!==e.audio_EN||!C)&&m()};z.useEffect(()=>{const C=f.current,k=()=>{r(!1),o(null)};return C&&C.addEventListener("ended",k),()=>{C&&C.removeEventListener("ended",k)}},[o]);const v=((b=a==null?void 0:a.current)==null?void 0:b.src)===e.audio_EN&&!((_=a==null?void 0:a.current)!=null&&_.paused)||n;return y.jsxs(q4,{"data-testid":"brief-description-modal",id:"briefDescription",kind:"regular",noWrap:!0,onClose:h,preventOutsideClose:!0,children:[e.audio_EN?y.jsxs(y.Fragment,{children:[y.jsxs(FC,{children:[y.jsx(r0,{className:Ar("default",{play:v}),onClick:g,size:"small",startIcon:v?y.jsx(Gl,{}):y.jsx(DC,{}),children:v?"Pause":"Listen"}),y.jsx(r0,{className:"default",onClick:d,size:"small",startIcon:y.jsx(I4,{}),children:"Learn More"})]}),y.jsx(zC,{ref:f,src:e.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null,y.jsxs(F,{mt:75,children:[y.jsx(BC,{children:e.tldr_topic??e.name}),y.jsx(NC,{children:y.jsx(F,{children:y.jsx(RC,{children:e.tldr&&y.jsx($C,{children:e.tldr})})})})]})]})},NC=H.div` +`},i),a}function uC(e,t){return e&&"run"in e?async function(n,r){const i=W1(n,t);await e.run(i,r)}:function(n){return W1(n,t||e)}}function Y1(e){if(e)throw e}var Fs=Object.prototype.hasOwnProperty,ax=Object.prototype.toString,V1=Object.defineProperty,G1=Object.getOwnPropertyDescriptor,q1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ax.call(t)==="[object Array]"},K1=function(t){if(!t||ax.call(t)!=="[object Object]")return!1;var n=Fs.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Fs.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Fs.call(t,i)},X1=function(t,n){V1&&n.name==="__proto__"?V1(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Z1=function(t,n){if(n==="__proto__")if(Fs.call(t,n)){if(G1)return G1(t,n).value}else return;return t[n]},cC=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,u=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const Ln={basename:hC,dirname:pC,extname:mC,join:yC,sep:"/"};function hC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ho(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function pC(e){if(Ho(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function mC(e){Ho(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function yC(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function vC(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Ho(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xC={cwd:bC};function bC(){return"/"}function bf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function wC(e){if(typeof e=="string")e=new URL(e);else if(!bf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return SC(e)}function SC(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[m,...g]=f;const v=r[h][1];xf(v)&&xf(m)&&(m=wc(!0,v,m)),r[h]=[u,m,...g]}}}}const CC=new hh().freeze();function kc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Pc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Q1(e){if(!xf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function e0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ks(e){return PC(e)?e:new ox(e)}function PC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function AC(e){return typeof e=="string"||jC(e)}function jC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const TC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",t0=[],n0={allowDangerousHtml:!0},EC=/^(https?|ircs?|mailto|xmpp)$/i,MC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $C(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||t0,l=e.remarkPlugins||t0,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...n0}:n0,f=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||IC,m=CC().use(pk).use(l).use(uC,u).use(s),g=new ox;typeof r=="string"&&(g.value=r);for(const C of MC)Object.hasOwn(e,C.from)&&(""+C.from+(C.to?"use `"+C.to+"` instead":"remove it")+TC+C.id,void 0);const v=m.parse(g);let b=m.runSync(v,g);return i&&(b={type:"element",tagName:"div",properties:{className:i},children:b.type==="root"?b.children:[b]}),ix(b,_),G_(b,{Fragment:y.Fragment,components:a,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function _(C,k,A){if(C.type==="raw"&&A&&typeof k=="number")return f?A.children.splice(k,1):A.children[k]={type:"text",value:C.value},k;if(C.type==="element"){let O;for(O in vc)if(Object.hasOwn(vc,O)&&Object.hasOwn(C.properties,O)){const w=C.properties[O],j=vc[O];(j===null||j.includes(C.tagName))&&(C.properties[O]=h(String(w||""),O,C))}}if(C.type==="element"){let O=t?!t.includes(C.tagName):o?o.includes(C.tagName):!1;if(!O&&n&&typeof k=="number"&&(O=!n(C,k,A)),O&&A&&typeof k=="number")return d&&C.children?A.children.splice(k,1,...C.children):A.children.splice(k,1),k}}}function IC(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||EC.test(e.slice(0,t))?e:""}const DC=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"brand_awareness",children:[y.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_3696_4540)",children:y.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),LC=({trend:e,onClose:t})=>{var b,_;const[n,r]=z.useState(!1),{close:i}=uf("briefDescription"),{currentPlayingAudio:a,setCurrentPlayingAudio:o}=Bt(C=>C),[s]=No(C=>[C.setBudget]),{fetchData:l,setAbortRequests:u}=Sn(C=>C),f=z.useRef(null),d=async()=>{h(),await l(s,u,e.name)},h=z.useCallback(()=>{t(),i()},[t,i]),m=()=>{f.current&&(n?f.current.pause():f.current.play(),r(!n))},g=()=>{var k,A,O;const C=!((k=a==null?void 0:a.current)!=null&&k.paused);C&&((A=a==null?void 0:a.current)==null||A.pause(),o(null)),(((O=a==null?void 0:a.current)==null?void 0:O.src)!==e.audio_EN||!C)&&m()};z.useEffect(()=>{const C=f.current,k=()=>{r(!1),o(null)};return C&&C.addEventListener("ended",k),()=>{C&&C.removeEventListener("ended",k)}},[o]);const v=((b=a==null?void 0:a.current)==null?void 0:b.src)===e.audio_EN&&!((_=a==null?void 0:a.current)!=null&&_.paused)||n;return y.jsxs(q4,{"data-testid":"brief-description-modal",id:"briefDescription",kind:"regular",noWrap:!0,onClose:h,preventOutsideClose:!0,children:[e.audio_EN?y.jsxs(y.Fragment,{children:[y.jsxs(FC,{children:[y.jsx(r0,{className:zn("default",{play:v}),onClick:g,size:"small",startIcon:v?y.jsx(Vl,{}):y.jsx(DC,{}),children:v?"Pause":"Listen"}),y.jsx(r0,{className:"default",onClick:d,size:"small",startIcon:y.jsx(I4,{}),children:"Learn More"})]}),y.jsx(zC,{ref:f,src:e.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null,y.jsxs(F,{mt:75,children:[y.jsx(BC,{children:e.tldr_topic??e.name}),y.jsx(NC,{children:y.jsx(F,{children:y.jsx(RC,{children:e.tldr&&y.jsx($C,{children:e.tldr})})})})]})]})},NC=H.div` max-height: 310px; overflow-y: auto; margin: 8px 0; @@ -989,7 +1000,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni align-items: center; background-color: ${R.BG3}; gap: 10px; -`,HC=["Drivechain","Ordinals","L402","Nostr","AI"],UC=()=>{var B;const{open:e}=uf("addContent"),[t,n]=z.useState(!1),[r,i]=z.useState(!1),[a,o]=z.useState(null),s=z.useRef(null),[l,u]=z.useState(0),[f,d]=z.useState(!1),{currentPlayingAudio:h,setCurrentPlayingAudio:m}=Bt(M=>M),g=Yl(),{open:v}=uf("briefDescription"),{trendingTopics:b,setTrendingTopics:_}=Sn(M=>M),{setValue:C}=Wd(),k=z.useCallback(async()=>{n(!0),i(!1),u(0),d(!1),m(null);try{const M=await s_();if(M.length&&Array.isArray(M)){const D=new Map(M.map(Y=>[Y.name,Y])),W=Array.from(D.values());_(W)}}catch{_(HC.map(D=>({name:D,count:0})))}finally{n(!1)}},[m,_]);z.useEffect(()=>{b.length||k()},[k,b.length]),z.useEffect(()=>{const M=setTimeout(()=>{i(!0)},5e3);return()=>clearTimeout(M)},[i,t]);const A=M=>{C("search",M);const D=M.replace(/\s+/g,"+");g(`/search?q=${D}`)},O=(M,D)=>{M.stopPropagation(),M.currentTarget.blur(),D!=null&&D.tldr&&(o(D),v())},w=()=>{o(null)},j=M=>{M.stopPropagation(),M.currentTarget.blur(),d(!f),m(s)};z.useEffect(()=>{var M,D;f?(M=s.current)==null||M.play():(D=s.current)==null||D.pause()},[l,f]),z.useEffect(()=>{h||d(!1)},[h]);const T=()=>{u(M=>{var W,Y;let D=(M+1)%b.length;for(;D!==M&&!((W=b[D])!=null&&W.audio_EN);)D=(D+1)%b.length;return D===M?(d(!1),D):((Y=s.current)==null||Y.load(),D===0&&(d(!1),u(0)),D)}),m(s)},I=t?"Loading":"No new trending topics in the last 24 hours";return y.jsxs(YC,{"data-testid":"trending-component",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Trending Topics"}),y.jsx("span",{className:"heading__icon",children:t?y.jsx(Fo,{color:R.white,size:16}):y.jsx(y.Fragment,{children:r?y.jsx(GC,{onClick:k,size:"small",startIcon:y.jsx(a_,{})}):y.jsx(o_,{})})})]}),r9(b)?y.jsxs("div",{children:[y.jsx(Rt,{onClick:M=>j(M),startIcon:f?y.jsx(Gl,{}):y.jsx(Yd,{}),children:f?"Pause":"Play All"}),y.jsx(XC,{ref:s,onEnded:T,src:(B=b[l])==null?void 0:B.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null]}),b.length===0?y.jsxs("div",{className:"trending-empty",children:[y.jsx(VC,{children:I}),y.jsx(Rt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:y.jsx(Vd,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):y.jsx("ul",{className:"list",children:b.map((M,D)=>y.jsxs(F,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>A(M.name),children:[y.jsxs(WC,{children:[y.jsx(KC,{children:y.jsx(i_,{})}),y.jsx("span",{className:"tldr",children:i9(M)})]}),M.tldr&&y.jsx(qC,{className:Ar({isPlaying:l===D&&f}),onClick:W=>O(W,M),children:"TLDR"})]},M.name))})]}),a&&y.jsx(LC,{onClose:w,trend:a})]})},WC=H.div` +`,HC=["Drivechain","Ordinals","L402","Nostr","AI"],UC=()=>{var B;const{open:e}=uf("addContent"),[t,n]=z.useState(!1),[r,i]=z.useState(!1),[a,o]=z.useState(null),s=z.useRef(null),[l,u]=z.useState(0),[f,d]=z.useState(!1),{currentPlayingAudio:h,setCurrentPlayingAudio:m}=Bt(M=>M),g=Wl(),{open:v}=uf("briefDescription"),{trendingTopics:b,setTrendingTopics:_}=Sn(M=>M),{setValue:C}=Wd(),k=z.useCallback(async()=>{n(!0),i(!1),u(0),d(!1),m(null);try{const M=await s_();if(M.length&&Array.isArray(M)){const D=new Map(M.map(Y=>[Y.name,Y])),W=Array.from(D.values());_(W)}}catch{_(HC.map(D=>({name:D,count:0})))}finally{n(!1)}},[m,_]);z.useEffect(()=>{b.length||k()},[k,b.length]),z.useEffect(()=>{const M=setTimeout(()=>{i(!0)},5e3);return()=>clearTimeout(M)},[i,t]);const A=M=>{C("search",M);const D=M.replace(/\s+/g,"+");g(`/search?q=${D}`)},O=(M,D)=>{M.stopPropagation(),M.currentTarget.blur(),D!=null&&D.tldr&&(o(D),v())},w=()=>{o(null)},j=M=>{M.stopPropagation(),M.currentTarget.blur(),d(!f),m(s)};z.useEffect(()=>{var M,D;f?(M=s.current)==null||M.play():(D=s.current)==null||D.pause()},[l,f]),z.useEffect(()=>{h||d(!1)},[h]);const T=()=>{u(M=>{var W,Y;let D=(M+1)%b.length;for(;D!==M&&!((W=b[D])!=null&&W.audio_EN);)D=(D+1)%b.length;return D===M?(d(!1),D):((Y=s.current)==null||Y.load(),D===0&&(d(!1),u(0)),D)}),m(s)},I=t?"Loading":"No new trending topics in the last 24 hours";return y.jsxs(YC,{"data-testid":"trending-component",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Trending Topics"}),y.jsx("span",{className:"heading__icon",children:t?y.jsx(ql,{color:R.white,size:16}):y.jsx(y.Fragment,{children:r?y.jsx(GC,{onClick:k,size:"small",startIcon:y.jsx(a_,{})}):y.jsx(o_,{})})})]}),r9(b)?y.jsxs("div",{children:[y.jsx(Rt,{onClick:M=>j(M),startIcon:f?y.jsx(Vl,{}):y.jsx(Yd,{}),children:f?"Pause":"Play All"}),y.jsx(XC,{ref:s,onEnded:T,src:(B=b[l])==null?void 0:B.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null]}),b.length===0?y.jsxs("div",{className:"trending-empty",children:[y.jsx(VC,{children:I}),y.jsx(Rt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:y.jsx(Vd,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):y.jsx("ul",{className:"list",children:b.map((M,D)=>y.jsxs(F,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>A(M.name),children:[y.jsxs(WC,{children:[y.jsx(KC,{children:y.jsx(i_,{})}),y.jsx("span",{className:"tldr",children:i9(M)})]}),M.tldr&&y.jsx(qC,{className:zn({isPlaying:l===D&&f}),onClick:W=>O(W,M),children:"TLDR"})]},M.name))})]}),a&&y.jsx(LC,{onClose:w,trend:a})]})},WC=H.div` display: flex; align-items: center; width: 300px; @@ -1090,7 +1101,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni `,XC=H.audio` height: 0; width: 0; -`,ZC=()=>{const{isFetching:e,setSidebarFilter:t}=Sn(T=>T),[n,r]=z4(T=>[T.schemas,T.setSchemas]),i=Ro(),a=Zg(),{currentSearch:o,clearSearch:s,searchFormValue:l}=Bt(T=>T),[u]=c4(T=>[T.trendingTopicsFeatureFlag]),{setValue:f,watch:d}=Wd(),h=z.useRef(null),[m,g]=z.useState(!1),[v,b]=z.useState(!1),[_,C]=z.useState(null),[k,A]=z.useState(!1);z.useEffect(()=>{f("search",l)},[f,l]),z.useEffect(()=>{const T=h.current;if(!T)return;const I=()=>{g((T==null?void 0:T.scrollTop)>0)};T.addEventListener("scroll",I)},[]);const O=d("search");z.useEffect(()=>{(async()=>{try{const I=await f4();r(I.schemas.filter(B=>!B.is_deleted))}catch(I){console.error("Error fetching schema:",I)}})()},[r]);const w=T=>{C(v?null:T.currentTarget),b(I=>!I),A(!1)},j=Yl();return y.jsxs(y.Fragment,{children:[y.jsxs(sx,{className:Ar({"has-shadow":m}),children:[y.jsxs(rP,{children:[y.jsxs(JC,{children:[y.jsx(hv,{}),y.jsx(eP,{"data-testid":"search_action_icon",onClick:()=>{if(o){f("search",""),s(),t("all"),i(null),j("/");return}if(O.trim()==="")return;const T=O.replace(/\s+/g,"+");j(`/search?q=${T}`)},children:e?y.jsx(Fo,{color:R.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):y.jsx(y.Fragment,{children:o!=null&&o.trim()?y.jsx(rv,{}):y.jsx(av,{})})})]}),y.jsx(iP,{"data-testid":"search_filter_icon",isFilterOpen:v,onClick:w,children:v?y.jsx(YS,{}):y.jsx(VS,{})}),y.jsx(TS,{anchorEl:_,schemaAll:n,setShowAllSchemas:A,showAllSchemas:k})]}),o&&y.jsx(QC,{children:e?y.jsx(GS,{}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"left",children:[y.jsx("span",{className:"count",children:a.length}),y.jsx("span",{className:"label",children:" results"})]}),y.jsx("div",{className:"right",style:{alignItems:"center"},children:y.jsx(SS,{})})]})})]}),y.jsxs(tP,{ref:h,children:[!o&&u&&y.jsx(nP,{children:y.jsx(UC,{})}),!o&&y.jsx(QS,{}),e?y.jsx(mv,{}):y.jsx(n_,{isSearchResult:!!o})]})]})},sx=H(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:R.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),JC=H(F).attrs({direction:"row",justify:"center",align:"center"})` +`,ZC=()=>{const{isFetching:e,setSidebarFilter:t}=Sn(T=>T),[n,r]=z4(T=>[T.schemas,T.setSchemas]),i=Ro(),a=Zg(),{currentSearch:o,clearSearch:s,searchFormValue:l}=Bt(T=>T),[u]=c4(T=>[T.trendingTopicsFeatureFlag]),{setValue:f,watch:d}=Wd(),h=z.useRef(null),[m,g]=z.useState(!1),[v,b]=z.useState(!1),[_,C]=z.useState(null),[k,A]=z.useState(!1);z.useEffect(()=>{f("search",l)},[f,l]),z.useEffect(()=>{const T=h.current;if(!T)return;const I=()=>{g((T==null?void 0:T.scrollTop)>0)};T.addEventListener("scroll",I)},[]);const O=d("search");z.useEffect(()=>{(async()=>{try{const I=await f4();r(I.schemas.filter(B=>!B.is_deleted))}catch(I){console.error("Error fetching schema:",I)}})()},[r]);const w=T=>{C(v?null:T.currentTarget),b(I=>!I),A(!1)},j=Wl();return y.jsxs(y.Fragment,{children:[y.jsxs(sx,{className:zn({"has-shadow":m}),children:[y.jsxs(rP,{children:[y.jsxs(JC,{children:[y.jsx(hv,{}),y.jsx(eP,{"data-testid":"search_action_icon",onClick:()=>{if(o){f("search",""),s(),t("all"),i(null),j("/");return}if(O.trim()==="")return;const T=O.replace(/\s+/g,"+");j(`/search?q=${T}`)},children:e?y.jsx(ql,{color:R.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):y.jsx(y.Fragment,{children:o!=null&&o.trim()?y.jsx(rv,{}):y.jsx(av,{})})})]}),y.jsx(iP,{"data-testid":"search_filter_icon",isFilterOpen:v,onClick:w,children:v?y.jsx(YS,{}):y.jsx(VS,{})}),y.jsx(TS,{anchorEl:_,schemaAll:n,setShowAllSchemas:A,showAllSchemas:k})]}),o&&y.jsx(QC,{children:e?y.jsx(GS,{}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"left",children:[y.jsx("span",{className:"count",children:a.length}),y.jsx("span",{className:"label",children:" results"})]}),y.jsx("div",{className:"right",style:{alignItems:"center"},children:y.jsx(SS,{})})]})})]}),y.jsxs(tP,{ref:h,children:[!o&&u&&y.jsx(nP,{children:y.jsx(UC,{})}),!o&&y.jsx(QS,{}),e?y.jsx(mv,{}):y.jsx(n_,{isSearchResult:!!o})]})]})},sx=H(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:R.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),JC=H(F).attrs({direction:"row",justify:"center",align:"center"})` width: 85%; `,QC=H(F).attrs({direction:"row",justify:"space-between",align:"center"})` flex-grow: 1; @@ -1155,57 +1166,57 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni color: ${({isFilterOpen:e})=>e?R.black:R.GRAY7}; fill: none; } -`,aP=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"cancel",children:[y.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1264_3381)",children:y.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})});function lx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ty.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"cancel",children:[y.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1264_3381)",children:y.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})});function lx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t0?1:-1},Gr=function(t){return Wo(t)&&t.indexOf("%")===t.length-1},le=function(t){return cA(t)&&!Yo(t)},_t=function(t){return le(t)||Wo(t)},pA=0,Vo=function(t){var n=++pA;return"".concat(t||"").concat(n)},Mi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!le(t)&&!Wo(t))return r;var a;if(Gr(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Yo(a)&&(a=r),i&&a>n&&(a=n),a},_r=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},mA=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var u0={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ir=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},c0=null,jc=null,Sh=function e(t){if(t===c0&&Array.isArray(jc))return jc;var n=[];return z.Children.forEach(t,function(r){Ee(r)||(wf.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),jc=n,c0=t,n};function cn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return ir(i)}):r=[ir(t)],Sh(e).forEach(function(i){var a=bn(i,"type.displayName")||bn(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function er(e,t){var n=cn(e,t);return n&&n[0]}var f0=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!le(r)||r<=0||!le(i)||i<=0)},_A=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],OA=function(t){return t&&t.type&&Wo(t.type)&&_A.indexOf(t.type)>=0},kA=function(t,n,r,i){var a,o=(a=Ac==null?void 0:Ac[i])!==null&&a!==void 0?a:[];return!Te(t)&&(i&&o.includes(n)||vA.includes(n))||r&&wh.includes(n)},Le=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(z.isValidElement(t)&&(i=t.props),!Qi(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;kA((s=i)===null||s===void 0?void 0:s[o],o,n,r)&&(a[o]=i[o])}),a},gx=function e(t,n){if(t===n)return!0;var r=z.Children.count(t);if(r!==z.Children.count(n))return!1;if(r===0)return!0;if(r===1)return d0(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Of(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=jA(e,AA),f=i||{width:n,height:r,x:0,y:0},d=Ze("recharts-surface",a);return U.createElement("svg",_f({},Le(u,!0,"svg"),{className:d,width:n,height:r,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),U.createElement("title",null,s),U.createElement("desc",null,l),t)}var EA=["children","className"];function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $A(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var dt=U.forwardRef(function(e,t){var n=e.children,r=e.className,i=MA(e,EA),a=Ze("recharts-layer",r);return U.createElement("g",kf({className:a},Le(i,!0),{ref:t}),n)}),Zr=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;ai?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:LA(e,t,n)}var RA=NA,BA="\\ud800-\\udfff",zA="\\u0300-\\u036f",FA="\\ufe20-\\ufe2f",HA="\\u20d0-\\u20ff",UA=zA+FA+HA,WA="\\ufe0e\\ufe0f",YA="\\u200d",VA=RegExp("["+YA+BA+UA+WA+"]");function GA(e){return VA.test(e)}var vx=GA;function qA(e){return e.split("")}var KA=qA,xx="\\ud800-\\udfff",XA="\\u0300-\\u036f",ZA="\\ufe20-\\ufe2f",JA="\\u20d0-\\u20ff",QA=XA+ZA+JA,ej="\\ufe0e\\ufe0f",tj="["+xx+"]",Cf="["+QA+"]",Pf="\\ud83c[\\udffb-\\udfff]",nj="(?:"+Cf+"|"+Pf+")",bx="[^"+xx+"]",wx="(?:\\ud83c[\\udde6-\\uddff]){2}",Sx="[\\ud800-\\udbff][\\udc00-\\udfff]",rj="\\u200d",_x=nj+"?",Ox="["+ej+"]?",ij="(?:"+rj+"(?:"+[bx,wx,Sx].join("|")+")"+Ox+_x+")*",aj=Ox+_x+ij,oj="(?:"+[bx+Cf+"?",Cf,wx,Sx,tj].join("|")+")",sj=RegExp(Pf+"(?="+Pf+")|"+oj+aj,"g");function lj(e){return e.match(sj)||[]}var uj=lj,cj=KA,fj=vx,dj=uj;function hj(e){return fj(e)?dj(e):cj(e)}var pj=hj,mj=RA,yj=vx,gj=pj,vj=fx;function xj(e){return function(t){t=vj(t);var n=yj(t)?gj(t):void 0,r=n?n[0]:t.charAt(0),i=n?mj(n,1).join(""):t.slice(1);return r[e]()+i}}var bj=xj,wj=bj,Sj=wj("toUpperCase"),_j=Sj;const du=st(_j);function tt(e){return function(){return e}}const kx=Math.cos,Qs=Math.sin,In=Math.sqrt,el=Math.PI,hu=2*el,Af=Math.PI,jf=2*Af,Wr=1e-6,Oj=jf-Wr;function Cx(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Cx;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;iWr)if(!(Math.abs(d*l-u*f)>Wr)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-o,g=i-s,v=l*l+u*u,b=m*m+g*g,_=Math.sqrt(v),C=Math.sqrt(h),k=a*Math.tan((Af-Math.acos((v+h-b)/(2*_*C)))/2),A=k/C,O=k/_;Math.abs(A-1)>Wr&&this._append`L${t+A*f},${n+A*d}`,this._append`A${a},${a},0,0,${+(d*m>f*g)},${this._x1=t+O*l},${this._y1=n+O*u}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,d=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Wr||Math.abs(this._y1-f)>Wr)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%jf+jf),h>Oj?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:h>Wr&&this._append`A${r},${r},0,${+(h>=Af)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function _h(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Cj(t)}function Oh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Px(e){this._context=e}Px.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function pu(e){return new Px(e)}function Ax(e){return e[0]}function jx(e){return e[1]}function Tx(e,t){var n=tt(!0),r=null,i=pu,a=null,o=_h(s);e=typeof e=="function"?e:e===void 0?Ax:tt(e),t=typeof t=="function"?t:t===void 0?jx:tt(t);function s(l){var u,f=(l=Oh(l)).length,d,h=!1,m;for(r==null&&(a=i(m=o())),u=0;u<=f;++u)!(u=m;--g)s.point(k[g],A[g]);s.lineEnd(),s.areaEnd()}_&&(k[h]=+e(b,h,d),A[h]=+t(b,h,d),s.point(r?+r(b,h,d):k[h],n?+n(b,h,d):A[h]))}if(C)return s=null,C+""||null}function f(){return Tx().defined(i).curve(o).context(a)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:tt(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:tt(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:tt(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:tt(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:tt(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:tt(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(i=typeof d=="function"?d:tt(!!d),u):i},u.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),u):o},u.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),u):a},u}class Ex{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Pj(e){return new Ex(e,!0)}function Aj(e){return new Ex(e,!1)}const kh={draw(e,t){const n=In(t/el);e.moveTo(n,0),e.arc(0,0,n,0,hu)}},jj={draw(e,t){const n=In(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Mx=In(1/3),Tj=Mx*2,Ej={draw(e,t){const n=In(t/Tj),r=n*Mx;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Mj={draw(e,t){const n=In(t),r=-n/2;e.rect(r,r,n,n)}},$j=.8908130915292852,$x=Qs(el/10)/Qs(7*el/10),Ij=Qs(hu/10)*$x,Dj=-kx(hu/10)*$x,Lj={draw(e,t){const n=In(t*$j),r=Ij*n,i=Dj*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=hu*a/5,s=kx(o),l=Qs(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Tc=In(3),Nj={draw(e,t){const n=-In(t/(Tc*3));e.moveTo(0,n*2),e.lineTo(-Tc*n,-n),e.lineTo(Tc*n,-n),e.closePath()}},dn=-.5,hn=In(3)/2,Tf=1/In(12),Rj=(Tf/2+1)*3,Bj={draw(e,t){const n=In(t/Rj),r=n/2,i=n*Tf,a=r,o=n*Tf+n,s=-a,l=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(dn*r-hn*i,hn*r+dn*i),e.lineTo(dn*a-hn*o,hn*a+dn*o),e.lineTo(dn*s-hn*l,hn*s+dn*l),e.lineTo(dn*r+hn*i,dn*i-hn*r),e.lineTo(dn*a+hn*o,dn*o-hn*a),e.lineTo(dn*s+hn*l,dn*l-hn*s),e.closePath()}};function zj(e,t){let n=null,r=_h(i);e=typeof e=="function"?e:tt(e||kh),t=typeof t=="function"?t:tt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:tt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:tt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function tl(){}function nl(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ix(e){this._context=e}Ix.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:nl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:nl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fj(e){return new Ix(e)}function Dx(e){this._context=e}Dx.prototype={areaStart:tl,areaEnd:tl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:nl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hj(e){return new Dx(e)}function Lx(e){this._context=e}Lx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:nl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uj(e){return new Lx(e)}function Nx(e){this._context=e}Nx.prototype={areaStart:tl,areaEnd:tl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Wj(e){return new Nx(e)}function p0(e){return e<0?-1:1}function m0(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(p0(a)+p0(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function y0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ec(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function rl(e){this._context=e}rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ec(this,this._t0,y0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ec(this,y0(this,n=m0(this,e,t)),n);break;default:Ec(this,this._t0,n=m0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Rx(e){this._context=new Bx(e)}(Rx.prototype=Object.create(rl.prototype)).point=function(e,t){rl.prototype.point.call(this,t,e)};function Bx(e){this._context=e}Bx.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Yj(e){return new rl(e)}function Vj(e){return new Rx(e)}function zx(e){this._context=e}zx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=g0(e),i=g0(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function qj(e){return new mu(e,.5)}function Kj(e){return new mu(e,0)}function Xj(e){return new mu(e,1)}function $i(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function Zj(e,t){return e[t]}function Jj(e){const t=[];return t.key=e,t}function Qj(){var e=tt([]),t=Ef,n=$i,r=Zj;function i(a){var o=Array.from(e.apply(this,arguments),Jj),s,l=o.length,u=-1,f;for(const d of a)for(s=0,++u;s0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Fx={symbolCircle:kh,symbolCross:jj,symbolDiamond:Ej,symbolSquare:Mj,symbolStar:Lj,symbolTriangle:Nj,symbolWye:Bj},uT=Math.PI/180,cT=function(t){var n="symbol".concat(du(t));return Fx[n]||kh},fT=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*uT;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},dT=function(t,n){Fx["symbol".concat(du(t))]=n},yu=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=sT(t,rT),u=x0(x0({},l),{},{type:r,size:a,sizeType:s}),f=function(){var b=cT(r),_=zj().type(b).size(fT(a,s,r));return _()},d=u.className,h=u.cx,m=u.cy,g=Le(u,!0);return h===+h&&m===+m&&a===+a?U.createElement("path",Mf({},g,{className:Ze("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(m,")"),d:f()})):null};yu.registerSymbol=dT;function Ii(e){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(e)}function $f(){return $f=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function il(e){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},il(e)}function Za(e,t,n){return t=Hx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hx(e){var t=wT(e,"string");return Ii(t)==="symbol"?t:String(t)}function wT(e,t){if(Ii(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ii(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pn=32,Ch=function(e){yT(n,e);var t=gT(n);function n(){return pT(this,n),t.apply(this,arguments)}return mT(n,[{key:"renderIcon",value:function(i){var a=this.props.inactiveColor,o=pn/2,s=pn/6,l=pn/3,u=i.inactive?a:i.color;if(i.type==="plainline")return U.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:i.payload.strokeDasharray,x1:0,y1:o,x2:pn,y2:o,className:"recharts-legend-icon"});if(i.type==="line")return U.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,` + */var At=typeof Symbol=="function"&&Symbol.for,vh=At?Symbol.for("react.element"):60103,xh=At?Symbol.for("react.portal"):60106,nu=At?Symbol.for("react.fragment"):60107,ru=At?Symbol.for("react.strict_mode"):60108,iu=At?Symbol.for("react.profiler"):60114,au=At?Symbol.for("react.provider"):60109,ou=At?Symbol.for("react.context"):60110,bh=At?Symbol.for("react.async_mode"):60111,su=At?Symbol.for("react.concurrent_mode"):60111,lu=At?Symbol.for("react.forward_ref"):60112,uu=At?Symbol.for("react.suspense"):60113,tA=At?Symbol.for("react.suspense_list"):60120,cu=At?Symbol.for("react.memo"):60115,fu=At?Symbol.for("react.lazy"):60116,nA=At?Symbol.for("react.block"):60121,rA=At?Symbol.for("react.fundamental"):60117,iA=At?Symbol.for("react.responder"):60118,aA=At?Symbol.for("react.scope"):60119;function fn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vh:switch(e=e.type,e){case bh:case su:case nu:case iu:case ru:case uu:return e;default:switch(e=e&&e.$$typeof,e){case ou:case lu:case fu:case cu:case au:return e;default:return t}}case xh:return t}}}function mx(e){return fn(e)===su}Ve.AsyncMode=bh;Ve.ConcurrentMode=su;Ve.ContextConsumer=ou;Ve.ContextProvider=au;Ve.Element=vh;Ve.ForwardRef=lu;Ve.Fragment=nu;Ve.Lazy=fu;Ve.Memo=cu;Ve.Portal=xh;Ve.Profiler=iu;Ve.StrictMode=ru;Ve.Suspense=uu;Ve.isAsyncMode=function(e){return mx(e)||fn(e)===bh};Ve.isConcurrentMode=mx;Ve.isContextConsumer=function(e){return fn(e)===ou};Ve.isContextProvider=function(e){return fn(e)===au};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vh};Ve.isForwardRef=function(e){return fn(e)===lu};Ve.isFragment=function(e){return fn(e)===nu};Ve.isLazy=function(e){return fn(e)===fu};Ve.isMemo=function(e){return fn(e)===cu};Ve.isPortal=function(e){return fn(e)===xh};Ve.isProfiler=function(e){return fn(e)===iu};Ve.isStrictMode=function(e){return fn(e)===ru};Ve.isSuspense=function(e){return fn(e)===uu};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nu||e===su||e===iu||e===ru||e===uu||e===tA||typeof e=="object"&&e!==null&&(e.$$typeof===fu||e.$$typeof===cu||e.$$typeof===au||e.$$typeof===ou||e.$$typeof===lu||e.$$typeof===rA||e.$$typeof===iA||e.$$typeof===aA||e.$$typeof===nA)};Ve.typeOf=fn;px.exports=Ve;var wf=px.exports,oA=Bo,sA=Ji,lA="[object Number]";function uA(e){return typeof e=="number"||sA(e)&&oA(e)==lA}var yx=uA;const cA=st(yx);var fA=yx;function dA(e){return fA(e)&&e!=+e}var hA=dA;const Wo=st(hA);var Mn=function(t){return t===0?0:t>0?1:-1},Gr=function(t){return Uo(t)&&t.indexOf("%")===t.length-1},le=function(t){return cA(t)&&!Wo(t)},_t=function(t){return le(t)||Uo(t)},pA=0,Yo=function(t){var n=++pA;return"".concat(t||"").concat(n)},Mi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!le(t)&&!Uo(t))return r;var a;if(Gr(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Wo(a)&&(a=r),i&&a>n&&(a=n),a},Or=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},mA=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var u0={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ar=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},c0=null,jc=null,Sh=function e(t){if(t===c0&&Array.isArray(jc))return jc;var n=[];return z.Children.forEach(t,function(r){Ee(r)||(wf.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),jc=n,c0=t,n};function cn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return ar(i)}):r=[ar(t)],Sh(e).forEach(function(i){var a=bn(i,"type.displayName")||bn(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function tr(e,t){var n=cn(e,t);return n&&n[0]}var f0=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!le(r)||r<=0||!le(i)||i<=0)},_A=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],OA=function(t){return t&&t.type&&Uo(t.type)&&_A.indexOf(t.type)>=0},kA=function(t,n,r,i){var a,o=(a=Ac==null?void 0:Ac[i])!==null&&a!==void 0?a:[];return!Te(t)&&(i&&o.includes(n)||vA.includes(n))||r&&wh.includes(n)},Le=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(z.isValidElement(t)&&(i=t.props),!Qi(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;kA((s=i)===null||s===void 0?void 0:s[o],o,n,r)&&(a[o]=i[o])}),a},gx=function e(t,n){if(t===n)return!0;var r=z.Children.count(t);if(r!==z.Children.count(n))return!1;if(r===0)return!0;if(r===1)return d0(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Of(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=jA(e,AA),f=i||{width:n,height:r,x:0,y:0},d=Ze("recharts-surface",a);return U.createElement("svg",_f({},Le(u,!0,"svg"),{className:d,width:n,height:r,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),U.createElement("title",null,s),U.createElement("desc",null,l),t)}var EA=["children","className"];function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $A(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var dt=U.forwardRef(function(e,t){var n=e.children,r=e.className,i=MA(e,EA),a=Ze("recharts-layer",r);return U.createElement("g",kf({className:a},Le(i,!0),{ref:t}),n)}),Zr=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;ai?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:LA(e,t,n)}var RA=NA,BA="\\ud800-\\udfff",zA="\\u0300-\\u036f",FA="\\ufe20-\\ufe2f",HA="\\u20d0-\\u20ff",UA=zA+FA+HA,WA="\\ufe0e\\ufe0f",YA="\\u200d",VA=RegExp("["+YA+BA+UA+WA+"]");function GA(e){return VA.test(e)}var vx=GA;function qA(e){return e.split("")}var KA=qA,xx="\\ud800-\\udfff",XA="\\u0300-\\u036f",ZA="\\ufe20-\\ufe2f",JA="\\u20d0-\\u20ff",QA=XA+ZA+JA,ej="\\ufe0e\\ufe0f",tj="["+xx+"]",Cf="["+QA+"]",Pf="\\ud83c[\\udffb-\\udfff]",nj="(?:"+Cf+"|"+Pf+")",bx="[^"+xx+"]",wx="(?:\\ud83c[\\udde6-\\uddff]){2}",Sx="[\\ud800-\\udbff][\\udc00-\\udfff]",rj="\\u200d",_x=nj+"?",Ox="["+ej+"]?",ij="(?:"+rj+"(?:"+[bx,wx,Sx].join("|")+")"+Ox+_x+")*",aj=Ox+_x+ij,oj="(?:"+[bx+Cf+"?",Cf,wx,Sx,tj].join("|")+")",sj=RegExp(Pf+"(?="+Pf+")|"+oj+aj,"g");function lj(e){return e.match(sj)||[]}var uj=lj,cj=KA,fj=vx,dj=uj;function hj(e){return fj(e)?dj(e):cj(e)}var pj=hj,mj=RA,yj=vx,gj=pj,vj=fx;function xj(e){return function(t){t=vj(t);var n=yj(t)?gj(t):void 0,r=n?n[0]:t.charAt(0),i=n?mj(n,1).join(""):t.slice(1);return r[e]()+i}}var bj=xj,wj=bj,Sj=wj("toUpperCase"),_j=Sj;const du=st(_j);function tt(e){return function(){return e}}const kx=Math.cos,Js=Math.sin,In=Math.sqrt,Qs=Math.PI,hu=2*Qs,Af=Math.PI,jf=2*Af,Wr=1e-6,Oj=jf-Wr;function Cx(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Cx;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;iWr)if(!(Math.abs(d*l-u*f)>Wr)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-o,g=i-s,v=l*l+u*u,b=m*m+g*g,_=Math.sqrt(v),C=Math.sqrt(h),k=a*Math.tan((Af-Math.acos((v+h-b)/(2*_*C)))/2),A=k/C,O=k/_;Math.abs(A-1)>Wr&&this._append`L${t+A*f},${n+A*d}`,this._append`A${a},${a},0,0,${+(d*m>f*g)},${this._x1=t+O*l},${this._y1=n+O*u}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,d=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Wr||Math.abs(this._y1-f)>Wr)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%jf+jf),h>Oj?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:h>Wr&&this._append`A${r},${r},0,${+(h>=Af)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function _h(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Cj(t)}function Oh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Px(e){this._context=e}Px.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function pu(e){return new Px(e)}function Ax(e){return e[0]}function jx(e){return e[1]}function Tx(e,t){var n=tt(!0),r=null,i=pu,a=null,o=_h(s);e=typeof e=="function"?e:e===void 0?Ax:tt(e),t=typeof t=="function"?t:t===void 0?jx:tt(t);function s(l){var u,f=(l=Oh(l)).length,d,h=!1,m;for(r==null&&(a=i(m=o())),u=0;u<=f;++u)!(u=m;--g)s.point(k[g],A[g]);s.lineEnd(),s.areaEnd()}_&&(k[h]=+e(b,h,d),A[h]=+t(b,h,d),s.point(r?+r(b,h,d):k[h],n?+n(b,h,d):A[h]))}if(C)return s=null,C+""||null}function f(){return Tx().defined(i).curve(o).context(a)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:tt(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:tt(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:tt(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:tt(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:tt(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:tt(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(i=typeof d=="function"?d:tt(!!d),u):i},u.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),u):o},u.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),u):a},u}class Ex{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Pj(e){return new Ex(e,!0)}function Aj(e){return new Ex(e,!1)}const kh={draw(e,t){const n=In(t/Qs);e.moveTo(n,0),e.arc(0,0,n,0,hu)}},jj={draw(e,t){const n=In(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Mx=In(1/3),Tj=Mx*2,Ej={draw(e,t){const n=In(t/Tj),r=n*Mx;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Mj={draw(e,t){const n=In(t),r=-n/2;e.rect(r,r,n,n)}},$j=.8908130915292852,$x=Js(Qs/10)/Js(7*Qs/10),Ij=Js(hu/10)*$x,Dj=-kx(hu/10)*$x,Lj={draw(e,t){const n=In(t*$j),r=Ij*n,i=Dj*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=hu*a/5,s=kx(o),l=Js(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Tc=In(3),Nj={draw(e,t){const n=-In(t/(Tc*3));e.moveTo(0,n*2),e.lineTo(-Tc*n,-n),e.lineTo(Tc*n,-n),e.closePath()}},dn=-.5,hn=In(3)/2,Tf=1/In(12),Rj=(Tf/2+1)*3,Bj={draw(e,t){const n=In(t/Rj),r=n/2,i=n*Tf,a=r,o=n*Tf+n,s=-a,l=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(dn*r-hn*i,hn*r+dn*i),e.lineTo(dn*a-hn*o,hn*a+dn*o),e.lineTo(dn*s-hn*l,hn*s+dn*l),e.lineTo(dn*r+hn*i,dn*i-hn*r),e.lineTo(dn*a+hn*o,dn*o-hn*a),e.lineTo(dn*s+hn*l,dn*l-hn*s),e.closePath()}};function zj(e,t){let n=null,r=_h(i);e=typeof e=="function"?e:tt(e||kh),t=typeof t=="function"?t:tt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:tt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:tt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function el(){}function tl(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ix(e){this._context=e}Ix.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:tl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fj(e){return new Ix(e)}function Dx(e){this._context=e}Dx.prototype={areaStart:el,areaEnd:el,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hj(e){return new Dx(e)}function Lx(e){this._context=e}Lx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uj(e){return new Lx(e)}function Nx(e){this._context=e}Nx.prototype={areaStart:el,areaEnd:el,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Wj(e){return new Nx(e)}function p0(e){return e<0?-1:1}function m0(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(p0(a)+p0(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function y0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ec(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function nl(e){this._context=e}nl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ec(this,this._t0,y0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ec(this,y0(this,n=m0(this,e,t)),n);break;default:Ec(this,this._t0,n=m0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Rx(e){this._context=new Bx(e)}(Rx.prototype=Object.create(nl.prototype)).point=function(e,t){nl.prototype.point.call(this,t,e)};function Bx(e){this._context=e}Bx.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Yj(e){return new nl(e)}function Vj(e){return new Rx(e)}function zx(e){this._context=e}zx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=g0(e),i=g0(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function qj(e){return new mu(e,.5)}function Kj(e){return new mu(e,0)}function Xj(e){return new mu(e,1)}function $i(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function Zj(e,t){return e[t]}function Jj(e){const t=[];return t.key=e,t}function Qj(){var e=tt([]),t=Ef,n=$i,r=Zj;function i(a){var o=Array.from(e.apply(this,arguments),Jj),s,l=o.length,u=-1,f;for(const d of a)for(s=0,++u;s0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Fx={symbolCircle:kh,symbolCross:jj,symbolDiamond:Ej,symbolSquare:Mj,symbolStar:Lj,symbolTriangle:Nj,symbolWye:Bj},uT=Math.PI/180,cT=function(t){var n="symbol".concat(du(t));return Fx[n]||kh},fT=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*uT;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},dT=function(t,n){Fx["symbol".concat(du(t))]=n},yu=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=sT(t,rT),u=x0(x0({},l),{},{type:r,size:a,sizeType:s}),f=function(){var b=cT(r),_=zj().type(b).size(fT(a,s,r));return _()},d=u.className,h=u.cx,m=u.cy,g=Le(u,!0);return h===+h&&m===+m&&a===+a?U.createElement("path",Mf({},g,{className:Ze("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(m,")"),d:f()})):null};yu.registerSymbol=dT;function Ii(e){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(e)}function $f(){return $f=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rl(e){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rl(e)}function Za(e,t,n){return t=Hx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hx(e){var t=wT(e,"string");return Ii(t)==="symbol"?t:String(t)}function wT(e,t){if(Ii(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ii(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pn=32,Ch=function(e){yT(n,e);var t=gT(n);function n(){return pT(this,n),t.apply(this,arguments)}return mT(n,[{key:"renderIcon",value:function(i){var a=this.props.inactiveColor,o=pn/2,s=pn/6,l=pn/3,u=i.inactive?a:i.color;if(i.type==="plainline")return U.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:i.payload.strokeDasharray,x1:0,y1:o,x2:pn,y2:o,className:"recharts-legend-icon"});if(i.type==="line")return U.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,` A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,` H`).concat(pn,"M").concat(2*l,",").concat(o,` - A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(i.type==="rect")return U.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(pn/8,"h").concat(pn,"v").concat(pn*3/4,"h").concat(-pn,"z"),className:"recharts-legend-icon"});if(U.isValidElement(i.legendIcon)){var f=hT({},i);return delete f.legendIcon,U.cloneElement(i.legendIcon,f)}return U.createElement(yu,{fill:u,cx:o,cy:o,size:pn,sizeType:"diameter",type:i.type})}},{key:"renderItems",value:function(){var i=this,a=this.props,o=a.payload,s=a.iconSize,l=a.layout,u=a.formatter,f=a.inactiveColor,d={x:0,y:0,width:pn,height:pn},h={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(g,v){var b,_=g.formatter||u,C=Ze((b={"recharts-legend-item":!0},Za(b,"legend-item-".concat(v),!0),Za(b,"inactive",g.inactive),b));if(g.type==="none")return null;var k=Te(g.value)?null:g.value;Zr(!Te(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=g.inactive?f:g.color;return U.createElement("li",$f({className:C,style:h,key:"legend-item-".concat(v)},Ka(i.props,g,v)),U.createElement(Of,{width:s,height:s,viewBox:d,style:m},i.renderIcon(g)),U.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},_?_(k,g,v):k))})}},{key:"render",value:function(){var i=this.props,a=i.payload,o=i.layout,s=i.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return U.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),n}(z.PureComponent);Za(Ch,"displayName","Legend");Za(Ch,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ST="__lodash_hash_undefined__";function _T(e){return this.__data__.set(e,ST),this}var OT=_T;function kT(e){return this.__data__.has(e)}var CT=kT,PT=Jg,AT=OT,jT=CT;function al(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new PT;++ts))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,m=n<?new MT:void 0;for(a.set(e,t),a.set(t,e);++d-1}var BM=RM;function zM(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=t$){var u=t?null:QM(e);if(u)return e$(u);o=!1,i=JM,l=new KM}else l=t?[]:s;e:for(;++r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ol(e)}function gu(e,t,n){return t=Qx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qx(e){var t=m$(e,"string");return Di(t)==="symbol"?t:String(t)}function m$(e,t){if(Di(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Di(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y$(e,t){if(e==null)return{};var n=g$(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function g$(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function v$(e){return e.value}function x$(e,t){if(U.isValidElement(e))return U.cloneElement(e,t);if(typeof e=="function")return U.createElement(e,t);t.ref;var n=y$(t,l$);return U.createElement(Ch,n)}var L0=1,Ja=function(e){f$(n,e);var t=d$(n);function n(){var r;u$(this,n);for(var i=arguments.length,a=new Array(i),o=0;oL0||Math.abs(a.height-this.lastBoundingBox.height)>L0)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,i&&i(a))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ur({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var a=this.props,o=a.layout,s=a.align,l=a.verticalAlign,u=a.margin,f=a.chartWidth,d=a.chartHeight,h,m;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(s==="center"&&o==="vertical"){var g=this.getBBoxSnapshot();h={left:((f||0)-g.width)/2}}else h=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(l==="middle"){var v=this.getBBoxSnapshot();m={top:((d||0)-v.height)/2}}else m=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Ur(Ur({},h),m)}},{key:"render",value:function(){var i=this,a=this.props,o=a.content,s=a.width,l=a.height,u=a.wrapperStyle,f=a.payloadUniqBy,d=a.payload,h=Ur(Ur({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return U.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(g){i.wrapperNode=g}},x$(o,Ur(Ur({},this.props),{},{payload:Zx(d,f,v$)})))}}],[{key:"getWithHeight",value:function(i,a){var o=i.props.layout;return o==="vertical"&&le(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||a}:null}}]),n}(z.PureComponent);gu(Ja,"displayName","Legend");gu(Ja,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var N0=Hd,b$=tv,w$=_n,R0=N0?N0.isConcatSpreadable:void 0;function S$(e){return w$(e)||b$(e)||!!(R0&&e&&e[R0])}var _$=S$,O$=x4,k$=_$;function eb(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=k$),i||(i=[]);++a0&&n(s)?t>1?eb(s,t-1,n,r,i):O$(i,s):r||(i[i.length]=s)}return i}var tb=eb;function C$(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var P$=C$,A$=P$,j$=A$(),T$=j$,E$=T$,M$=Ud;function $$(e,t){return e&&E$(e,t,M$)}var nb=$$,I$=Vl;function D$(e,t){return function(n,r){if(n==null)return n;if(!I$(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++at||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var K$=q$,Dc=yh,X$=gh,Z$=Ir,J$=rb,Q$=W$,eI=b4,tI=K$,nI=ia,rI=_n;function iI(e,t,n){t.length?t=Dc(t,function(a){return rI(a)?function(o){return X$(o,a.length===1?a[0]:a)}:a}):t=[nI];var r=-1;t=Dc(t,eI(Z$));var i=J$(e,function(a,o,s){var l=Dc(t,function(u){return u(a)});return{criteria:l,index:++r,value:a}});return Q$(i,function(a,o){return tI(a,o,n)})}var aI=iI;function oI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var sI=oI,lI=sI,z0=Math.max;function uI(e,t,n){return t=z0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=z0(r.length-t,0),o=Array(a);++i0){if(++t>=gI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var wI=bI,SI=yI,_I=wI,OI=_I(SI),kI=OI,CI=ia,PI=cI,AI=kI;function jI(e,t){return AI(PI(e,t,CI),e+"")}var TI=jI,EI=Qg,MI=Vl,$I=nv,II=zo;function DI(e,t,n){if(!II(n))return!1;var r=typeof t;return(r=="number"?MI(n)&&$I(t,n.length):r=="string"&&t in n)?EI(n[t],e):!1}var vu=DI,LI=tb,NI=aI,RI=TI,H0=vu,BI=RI(function(e,t){if(e==null)return[];var n=t.length;return n>1&&H0(e,t[0],t[1])?t=[]:n>2&&H0(t[0],t[1],t[2])&&(t=[t[0]]),NI(e,LI(t,1),[])}),zI=BI;const Th=st(zI);function Qa(e){"@babel/helpers - typeof";return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qa(e)}function FI(e,t){return YI(e)||WI(e,t)||UI(e,t)||HI()}function HI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UI(e,t){if(e){if(typeof e=="string")return U0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U0(e,t)}}function U0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tD(e,t){return aa(e.getTime(),t.getTime())}function K0(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),a=0,o,s;(o=i.next())&&!o.done;){for(var l=t.entries(),u=!1,f=0;(s=l.next())&&!s.done;){var d=o.value,h=d[0],m=d[1],g=s.value,v=g[0],b=g[1];!u&&!r[f]&&(u=n.equals(h,v,a,f,e,t,n)&&n.equals(m,b,h,v,e,t,n))&&(r[f]=!0),f++}if(!u)return!1;a++}return!0}function nD(e,t,n){var r=q0(e),i=r.length;if(q0(t).length!==i)return!1;for(var a;i-- >0;)if(a=r[i],a===ab&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!ib(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))return!1;return!0}function Sa(e,t,n){var r=V0(e),i=r.length;if(V0(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=r[i],a===ab&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!ib(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)||(o=G0(e,a),s=G0(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function rD(e,t){return aa(e.valueOf(),t.valueOf())}function iD(e,t){return e.source===t.source&&e.flags===t.flags}function X0(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var s=t.values(),l=!1,u=0;(o=s.next())&&!o.done;)!l&&!r[u]&&(l=n.equals(a.value,o.value,a.value,o.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function aD(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var oD="[object Arguments]",sD="[object Boolean]",lD="[object Date]",uD="[object Map]",cD="[object Number]",fD="[object Object]",dD="[object RegExp]",hD="[object Set]",pD="[object String]",mD=Array.isArray,Z0=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,J0=Object.assign,yD=Object.prototype.toString.call.bind(Object.prototype.toString);function gD(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(f,d,h){if(f===d)return!0;if(f==null||d==null||typeof f!="object"||typeof d!="object")return f!==f&&d!==d;var m=f.constructor;if(m!==d.constructor)return!1;if(m===Object)return i(f,d,h);if(mD(f))return t(f,d,h);if(Z0!=null&&Z0(f))return l(f,d,h);if(m===Date)return n(f,d,h);if(m===RegExp)return o(f,d,h);if(m===Map)return r(f,d,h);if(m===Set)return s(f,d,h);var g=yD(f);return g===lD?n(f,d,h):g===dD?o(f,d,h):g===uD?r(f,d,h):g===hD?s(f,d,h):g===fD?typeof f.then!="function"&&typeof d.then!="function"&&i(f,d,h):g===oD?i(f,d,h):g===sD||g===cD||g===pD?a(f,d,h):!1}}function vD(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Sa:eD,areDatesEqual:tD,areMapsEqual:r?Y0(K0,Sa):K0,areObjectsEqual:r?Sa:nD,arePrimitiveWrappersEqual:rD,areRegExpsEqual:iD,areSetsEqual:r?Y0(X0,Sa):X0,areTypedArraysEqual:r?Sa:aD};if(n&&(i=J0({},i,n(i))),t){var a=js(i.areArraysEqual),o=js(i.areMapsEqual),s=js(i.areObjectsEqual),l=js(i.areSetsEqual);i=J0({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function xD(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function bD(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(l,u){var f=r(),d=f.cache,h=d===void 0?t?new WeakMap:void 0:d,m=f.meta;return n(l,u,{cache:h,equals:i,meta:m,strict:a})};if(t)return function(l,u){return n(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return n(l,u,o)}}var wD=Dr();Dr({strict:!0});Dr({circular:!0});Dr({circular:!0,strict:!0});Dr({createInternalComparator:function(){return aa}});Dr({strict:!0,createInternalComparator:function(){return aa}});Dr({circular:!0,createInternalComparator:function(){return aa}});Dr({circular:!0,createInternalComparator:function(){return aa},strict:!0});function Dr(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=vD(e),l=gD(s),u=r?r(l):xD(l);return bD({circular:n,comparator:l,createState:i,equals:u,strict:o})}function SD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Q0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):SD(i)};requestAnimationFrame(r)}function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}function _D(e){return PD(e)||CD(e)||kD(e)||OD()}function OD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kD(e,t){if(e){if(typeof e=="string")return em(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return em(e,t)}}function em(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n`);var A=g.inactive?f:g.color;return U.createElement("li",$f({className:C,style:h,key:"legend-item-".concat(v)},Ka(i.props,g,v)),U.createElement(Of,{width:s,height:s,viewBox:d,style:m},i.renderIcon(g)),U.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},_?_(k,g,v):k))})}},{key:"render",value:function(){var i=this.props,a=i.payload,o=i.layout,s=i.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return U.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),n}(z.PureComponent);Za(Ch,"displayName","Legend");Za(Ch,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ST="__lodash_hash_undefined__";function _T(e){return this.__data__.set(e,ST),this}var OT=_T;function kT(e){return this.__data__.has(e)}var CT=kT,PT=Jg,AT=OT,jT=CT;function il(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new PT;++ts))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,m=n<?new MT:void 0;for(a.set(e,t),a.set(t,e);++d-1}var BM=RM;function zM(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=t$){var u=t?null:QM(e);if(u)return e$(u);o=!1,i=JM,l=new KM}else l=t?[]:s;e:for(;++r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function al(e){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},al(e)}function gu(e,t,n){return t=Qx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qx(e){var t=m$(e,"string");return Di(t)==="symbol"?t:String(t)}function m$(e,t){if(Di(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Di(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y$(e,t){if(e==null)return{};var n=g$(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function g$(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function v$(e){return e.value}function x$(e,t){if(U.isValidElement(e))return U.cloneElement(e,t);if(typeof e=="function")return U.createElement(e,t);t.ref;var n=y$(t,l$);return U.createElement(Ch,n)}var L0=1,Ja=function(e){f$(n,e);var t=d$(n);function n(){var r;u$(this,n);for(var i=arguments.length,a=new Array(i),o=0;oL0||Math.abs(a.height-this.lastBoundingBox.height)>L0)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,i&&i(a))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ur({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var a=this.props,o=a.layout,s=a.align,l=a.verticalAlign,u=a.margin,f=a.chartWidth,d=a.chartHeight,h,m;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(s==="center"&&o==="vertical"){var g=this.getBBoxSnapshot();h={left:((f||0)-g.width)/2}}else h=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(l==="middle"){var v=this.getBBoxSnapshot();m={top:((d||0)-v.height)/2}}else m=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Ur(Ur({},h),m)}},{key:"render",value:function(){var i=this,a=this.props,o=a.content,s=a.width,l=a.height,u=a.wrapperStyle,f=a.payloadUniqBy,d=a.payload,h=Ur(Ur({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return U.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(g){i.wrapperNode=g}},x$(o,Ur(Ur({},this.props),{},{payload:Zx(d,f,v$)})))}}],[{key:"getWithHeight",value:function(i,a){var o=i.props.layout;return o==="vertical"&&le(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||a}:null}}]),n}(z.PureComponent);gu(Ja,"displayName","Legend");gu(Ja,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var N0=Hd,b$=tv,w$=_n,R0=N0?N0.isConcatSpreadable:void 0;function S$(e){return w$(e)||b$(e)||!!(R0&&e&&e[R0])}var _$=S$,O$=x4,k$=_$;function eb(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=k$),i||(i=[]);++a0&&n(s)?t>1?eb(s,t-1,n,r,i):O$(i,s):r||(i[i.length]=s)}return i}var tb=eb;function C$(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var P$=C$,A$=P$,j$=A$(),T$=j$,E$=T$,M$=Ud;function $$(e,t){return e&&E$(e,t,M$)}var nb=$$,I$=Yl;function D$(e,t){return function(n,r){if(n==null)return n;if(!I$(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++at||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var K$=q$,Dc=yh,X$=gh,Z$=Ir,J$=rb,Q$=W$,eI=b4,tI=K$,nI=ia,rI=_n;function iI(e,t,n){t.length?t=Dc(t,function(a){return rI(a)?function(o){return X$(o,a.length===1?a[0]:a)}:a}):t=[nI];var r=-1;t=Dc(t,eI(Z$));var i=J$(e,function(a,o,s){var l=Dc(t,function(u){return u(a)});return{criteria:l,index:++r,value:a}});return Q$(i,function(a,o){return tI(a,o,n)})}var aI=iI;function oI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var sI=oI,lI=sI,z0=Math.max;function uI(e,t,n){return t=z0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=z0(r.length-t,0),o=Array(a);++i0){if(++t>=gI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var wI=bI,SI=yI,_I=wI,OI=_I(SI),kI=OI,CI=ia,PI=cI,AI=kI;function jI(e,t){return AI(PI(e,t,CI),e+"")}var TI=jI,EI=Qg,MI=Yl,$I=nv,II=zo;function DI(e,t,n){if(!II(n))return!1;var r=typeof t;return(r=="number"?MI(n)&&$I(t,n.length):r=="string"&&t in n)?EI(n[t],e):!1}var vu=DI,LI=tb,NI=aI,RI=TI,H0=vu,BI=RI(function(e,t){if(e==null)return[];var n=t.length;return n>1&&H0(e,t[0],t[1])?t=[]:n>2&&H0(t[0],t[1],t[2])&&(t=[t[0]]),NI(e,LI(t,1),[])}),zI=BI;const Th=st(zI);function Qa(e){"@babel/helpers - typeof";return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qa(e)}function FI(e,t){return YI(e)||WI(e,t)||UI(e,t)||HI()}function HI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UI(e,t){if(e){if(typeof e=="string")return U0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U0(e,t)}}function U0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tD(e,t){return aa(e.getTime(),t.getTime())}function K0(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),a=0,o,s;(o=i.next())&&!o.done;){for(var l=t.entries(),u=!1,f=0;(s=l.next())&&!s.done;){var d=o.value,h=d[0],m=d[1],g=s.value,v=g[0],b=g[1];!u&&!r[f]&&(u=n.equals(h,v,a,f,e,t,n)&&n.equals(m,b,h,v,e,t,n))&&(r[f]=!0),f++}if(!u)return!1;a++}return!0}function nD(e,t,n){var r=q0(e),i=r.length;if(q0(t).length!==i)return!1;for(var a;i-- >0;)if(a=r[i],a===ab&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!ib(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))return!1;return!0}function Sa(e,t,n){var r=V0(e),i=r.length;if(V0(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=r[i],a===ab&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!ib(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)||(o=G0(e,a),s=G0(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function rD(e,t){return aa(e.valueOf(),t.valueOf())}function iD(e,t){return e.source===t.source&&e.flags===t.flags}function X0(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var s=t.values(),l=!1,u=0;(o=s.next())&&!o.done;)!l&&!r[u]&&(l=n.equals(a.value,o.value,a.value,o.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function aD(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var oD="[object Arguments]",sD="[object Boolean]",lD="[object Date]",uD="[object Map]",cD="[object Number]",fD="[object Object]",dD="[object RegExp]",hD="[object Set]",pD="[object String]",mD=Array.isArray,Z0=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,J0=Object.assign,yD=Object.prototype.toString.call.bind(Object.prototype.toString);function gD(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(f,d,h){if(f===d)return!0;if(f==null||d==null||typeof f!="object"||typeof d!="object")return f!==f&&d!==d;var m=f.constructor;if(m!==d.constructor)return!1;if(m===Object)return i(f,d,h);if(mD(f))return t(f,d,h);if(Z0!=null&&Z0(f))return l(f,d,h);if(m===Date)return n(f,d,h);if(m===RegExp)return o(f,d,h);if(m===Map)return r(f,d,h);if(m===Set)return s(f,d,h);var g=yD(f);return g===lD?n(f,d,h):g===dD?o(f,d,h):g===uD?r(f,d,h):g===hD?s(f,d,h):g===fD?typeof f.then!="function"&&typeof d.then!="function"&&i(f,d,h):g===oD?i(f,d,h):g===sD||g===cD||g===pD?a(f,d,h):!1}}function vD(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Sa:eD,areDatesEqual:tD,areMapsEqual:r?Y0(K0,Sa):K0,areObjectsEqual:r?Sa:nD,arePrimitiveWrappersEqual:rD,areRegExpsEqual:iD,areSetsEqual:r?Y0(X0,Sa):X0,areTypedArraysEqual:r?Sa:aD};if(n&&(i=J0({},i,n(i))),t){var a=As(i.areArraysEqual),o=As(i.areMapsEqual),s=As(i.areObjectsEqual),l=As(i.areSetsEqual);i=J0({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function xD(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function bD(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(l,u){var f=r(),d=f.cache,h=d===void 0?t?new WeakMap:void 0:d,m=f.meta;return n(l,u,{cache:h,equals:i,meta:m,strict:a})};if(t)return function(l,u){return n(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return n(l,u,o)}}var wD=Dr();Dr({strict:!0});Dr({circular:!0});Dr({circular:!0,strict:!0});Dr({createInternalComparator:function(){return aa}});Dr({strict:!0,createInternalComparator:function(){return aa}});Dr({circular:!0,createInternalComparator:function(){return aa}});Dr({circular:!0,createInternalComparator:function(){return aa},strict:!0});function Dr(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=vD(e),l=gD(s),u=r?r(l):xD(l);return bD({circular:n,comparator:l,createState:i,equals:u,strict:o})}function SD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Q0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):SD(i)};requestAnimationFrame(r)}function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}function _D(e){return PD(e)||CD(e)||kD(e)||OD()}function OD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kD(e,t){if(e){if(typeof e=="string")return em(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return em(e,t)}}function em(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:_<0?0:_},v=function(_){for(var C=_>1?1:_,k=C,A=0;A<8;++A){var O=d(k)-C,w=m(k);if(Math.abs(O-C)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(f,d,h){var m=-(f-d)*r,g=h*a,v=h+(m-g)*s/1e3,b=h*s/1e3+f;return Math.abs(b-d)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:_<0?0:_},v=function(_){for(var C=_>1?1:_,k=C,A=0;A<8;++A){var O=d(k)-C,w=m(k);if(Math.abs(O-C)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(f,d,h){var m=-(f-d)*r,g=h*a,v=h+(m-g)*s/1e3,b=h*s/1e3+f;return Math.abs(b-d)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Nc(e){return dL(e)||fL(e)||cL(e)||uL()}function uL(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cL(e,t){if(e){if(typeof e=="string")return Ff(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ff(e,t)}}function fL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dL(e){if(Array.isArray(e))return Ff(e)}function Ff(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cl(e)}var sr=function(e){yL(n,e);var t=gL(n);function n(r,i){var a;hL(this,n),a=t.call(this,r,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,f=o.to,d=o.steps,h=o.children,m=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Wf(a)),a.changeStyle=a.changeStyle.bind(Wf(a)),!s||m<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Uf(a);if(d&&d.length)a.state={style:d[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Uf(a);a.state={style:l?Ia({},l,u):u}}else a.state={style:{}};return a}return pL(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,f=a.to,d=a.from,h=this.state.style;if(s){if(!o){var m={style:l?Ia({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(m);return}if(!(wD(i.to,f)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=g||u?d:i.to;if(this.state&&h){var b={style:l?Ia({},l,v):v};(l&&[l]!==v||!l&&h!==v)&&this.setState(b)}this.runAnimation(An(An({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,d=i.onAnimationEnd,h=i.onAnimationStart,m=aL(o,s,qD(u),l,this.changeStyle),g=function(){a.stopJSAnimation=m()};this.manager.start([h,f,g,l,d])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],f=u.style,d=u.duration,h=d===void 0?0:d,m=function(v,b,_){if(_===0)return v;var C=b.duration,k=b.easing,A=k===void 0?"ease":k,O=b.style,w=b.properties,j=b.onAnimationEnd,T=_>0?o[_-1]:b,I=w||Object.keys(O);if(typeof A=="function"||A==="spring")return[].concat(Nc(v),[a.runJSAnimation.bind(a,{from:T.style,to:O,duration:C,easing:A}),C]);var B=nm(I,C,A),M=An(An(An({},T.style),O),{},{transition:B});return[].concat(Nc(v),[M,C,j]).filter(DD)};return this.manager.start([l].concat(Nc(o.reduce(m,[f,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=AD());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,d=i.onAnimationEnd,h=i.steps,m=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof m=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=s?Ia({},s,l):l,b=nm(Object.keys(v),o,u);g.start([f,a,An(An({},v),{},{transition:b}),o,d])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=sL(i,oL),u=z.Children.count(a),f=Eh(this.state.style);if(typeof a=="function")return a(f);if(!s||u===0||o<=0)return a;var d=function(m){var g=m.props,v=g.style,b=v===void 0?{}:v,_=g.className,C=z.cloneElement(m,An(An({},l),{},{style:An(An({},b),f),className:_}));return C};return u===1?d(z.Children.only(a)):U.createElement("div",null,z.Children.map(a,function(h){return d(h)}))}}]),n}(z.PureComponent);sr.displayName="Animate";sr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};sr.propTypes={from:Oe.oneOfType([Oe.object,Oe.string]),to:Oe.oneOfType([Oe.object,Oe.string]),attributeName:Oe.string,duration:Oe.number,begin:Oe.number,easing:Oe.oneOfType([Oe.string,Oe.func]),steps:Oe.arrayOf(Oe.shape({duration:Oe.number.isRequired,style:Oe.object.isRequired,easing:Oe.oneOfType([Oe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Oe.func]),properties:Oe.arrayOf("string"),onAnimationEnd:Oe.func})),children:Oe.oneOfType([Oe.node,Oe.func]),isActive:Oe.bool,canBegin:Oe.bool,onAnimationEnd:Oe.func,shouldReAnimate:Oe.bool,onAnimationStart:Oe.func,onAnimationReStart:Oe.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});Oe.object,Oe.object,Oe.object,Oe.element;Oe.object,Oe.object,Oe.object,Oe.oneOfType([Oe.array,Oe.element]),Oe.any;function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function Ts(e,t,n){return t=xL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xL(e){var t=bL(e,"string");return no(t)==="symbol"?t:String(t)}function bL(e,t){if(no(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(no(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _a="recharts-tooltip-wrapper",wL={visibility:"hidden"};function SL(e){var t,n=e.coordinate,r=e.translateX,i=e.translateY;return Ze(_a,(t={},Ts(t,"".concat(_a,"-right"),le(r)&&n&&le(n.x)&&r>=n.x),Ts(t,"".concat(_a,"-left"),le(r)&&n&&le(n.x)&&r=n.y),Ts(t,"".concat(_a,"-top"),le(i)&&n&&le(n.y)&&iv?Math.max(f,l[r]):Math.max(d,l[r])}function _L(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return Eh({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function OL(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,d;return o.height>0&&o.width>0&&n?(f=um({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),d=um({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=_L({translateX:f,translateY:d,useTranslate3d:s})):u=wL,{cssProperties:u,cssClasses:SL({translateX:f,translateY:d,coordinate:n})}}function Ri(e){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(e)}function cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rc(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fl(e){return fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fl(e)}function Ws(e,t,n){return t=fb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fb(e){var t=EL(e,"string");return Ri(t)==="symbol"?t:String(t)}function EL(e,t){if(Ri(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ri(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dm=1,ML=function(e){PL(n,e);var t=AL(n);function n(){var r;kL(this,n);for(var i=arguments.length,a=new Array(i),o=0;odm||Math.abs(i.height-this.lastBoundingBox.height)>dm)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,a=this.props,o=a.active,s=a.allowEscapeViewBox,l=a.animationDuration,u=a.animationEasing,f=a.children,d=a.coordinate,h=a.hasPayload,m=a.isAnimationActive,g=a.offset,v=a.position,b=a.reverseDirection,_=a.useTranslate3d,C=a.viewBox,k=a.wrapperStyle,A=OL({allowEscapeViewBox:s,coordinate:d,offsetTopLeft:g,position:v,reverseDirection:b,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:_,viewBox:C}),O=A.cssClasses,w=A.cssProperties,j=Rc(Rc(Rc({},m&&o&&Eh({transition:"transform ".concat(l,"ms ").concat(u)})),w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&h?"visible":"hidden",position:"absolute",top:0,left:0},k);return U.createElement("div",{tabIndex:-1,role:"dialog",className:O,style:j,ref:function(I){i.wrapperNode=I}},f)}}]),n}(z.PureComponent),$L=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ar={isSsr:$L(),get:function(t){return ar[t]},set:function(t,n){if(typeof t=="string")ar[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ar[i]=t[i]})}}};function Bi(e){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(e)}function hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pm(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dl(e){return dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dl(e)}function Mh(e,t,n){return t=db(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function db(e){var t=FL(e,"string");return Bi(t)==="symbol"?t:String(t)}function FL(e,t){if(Bi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HL(e){return e.dataKey}function UL(e,t){return U.isValidElement(e)?U.cloneElement(e,t):typeof e=="function"?U.createElement(e,t):U.createElement(XI,t)}var qr=function(e){LL(n,e);var t=NL(n);function n(){return IL(this,n),t.apply(this,arguments)}return DL(n,[{key:"render",value:function(){var i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,d=i.filterNull,h=i.isAnimationActive,m=i.offset,g=i.payload,v=i.payloadUniqBy,b=i.position,_=i.reverseDirection,C=i.useTranslate3d,k=i.viewBox,A=i.wrapperStyle,O=g??[];d&&O.length&&(O=Zx(g.filter(function(j){return j.value!=null}),v,HL));var w=O.length>0;return U.createElement(ML,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:f,hasPayload:w,offset:m,position:b,reverseDirection:_,useTranslate3d:C,viewBox:k,wrapperStyle:A},UL(u,pm(pm({},this.props),{},{payload:O})))}}]),n}(z.PureComponent);Mh(qr,"displayName","Tooltip");Mh(qr,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ar.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var WL=S4,YL=function(){return WL.Date.now()},VL=YL,GL=/\s/;function qL(e){for(var t=e.length;t--&&GL.test(e.charAt(t)););return t}var KL=qL,XL=KL,ZL=/^\s+/;function JL(e){return e&&e.slice(0,XL(e)+1).replace(ZL,"")}var QL=JL,eN=QL,ym=zo,tN=ra,gm=0/0,nN=/^[-+]0x[0-9a-f]+$/i,rN=/^0b[01]+$/i,iN=/^0o[0-7]+$/i,aN=parseInt;function oN(e){if(typeof e=="number")return e;if(tN(e))return gm;if(ym(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ym(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=eN(e);var n=rN.test(e);return n||iN.test(e)?aN(e.slice(2),n?2:8):nN.test(e)?gm:+e}var hb=oN,sN=zo,Bc=VL,vm=hb,lN="Expected a function",uN=Math.max,cN=Math.min;function fN(e,t,n){var r,i,a,o,s,l,u=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(lN);t=vm(t)||0,sN(n)&&(f=!!n.leading,d="maxWait"in n,a=d?uN(vm(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function m(w){var j=r,T=i;return r=i=void 0,u=w,o=e.apply(T,j),o}function g(w){return u=w,s=setTimeout(_,t),f?m(w):o}function v(w){var j=w-l,T=w-u,I=t-j;return d?cN(I,a-T):I}function b(w){var j=w-l,T=w-u;return l===void 0||j>=t||j<0||d&&T>=a}function _(){var w=Bc();if(b(w))return C(w);s=setTimeout(_,v(w))}function C(w){return s=void 0,h&&r?m(w):(r=i=void 0,o)}function k(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function A(){return s===void 0?o:C(Bc())}function O(){var w=Bc(),j=b(w);if(r=arguments,i=this,l=w,j){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(_,t),m(l)}return s===void 0&&(s=setTimeout(_,t)),o}return O.cancel=k,O.flush=A,O}var dN=fN,hN=dN,pN=zo,mN="Expected a function";function yN(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(mN);return pN(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),hN(e,t,{leading:r,maxWait:t,trailing:i})}var gN=yN;const pb=st(gN);function ro(e){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ro(e)}function xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Es(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Nc(e){return dL(e)||fL(e)||cL(e)||uL()}function uL(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cL(e,t){if(e){if(typeof e=="string")return Ff(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ff(e,t)}}function fL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dL(e){if(Array.isArray(e))return Ff(e)}function Ff(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ul(e){return ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ul(e)}var lr=function(e){yL(n,e);var t=gL(n);function n(r,i){var a;hL(this,n),a=t.call(this,r,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,f=o.to,d=o.steps,h=o.children,m=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Wf(a)),a.changeStyle=a.changeStyle.bind(Wf(a)),!s||m<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Uf(a);if(d&&d.length)a.state={style:d[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Uf(a);a.state={style:l?Ia({},l,u):u}}else a.state={style:{}};return a}return pL(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,f=a.to,d=a.from,h=this.state.style;if(s){if(!o){var m={style:l?Ia({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(m);return}if(!(wD(i.to,f)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=g||u?d:i.to;if(this.state&&h){var b={style:l?Ia({},l,v):v};(l&&[l]!==v||!l&&h!==v)&&this.setState(b)}this.runAnimation(An(An({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,d=i.onAnimationEnd,h=i.onAnimationStart,m=aL(o,s,qD(u),l,this.changeStyle),g=function(){a.stopJSAnimation=m()};this.manager.start([h,f,g,l,d])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],f=u.style,d=u.duration,h=d===void 0?0:d,m=function(v,b,_){if(_===0)return v;var C=b.duration,k=b.easing,A=k===void 0?"ease":k,O=b.style,w=b.properties,j=b.onAnimationEnd,T=_>0?o[_-1]:b,I=w||Object.keys(O);if(typeof A=="function"||A==="spring")return[].concat(Nc(v),[a.runJSAnimation.bind(a,{from:T.style,to:O,duration:C,easing:A}),C]);var B=nm(I,C,A),M=An(An(An({},T.style),O),{},{transition:B});return[].concat(Nc(v),[M,C,j]).filter(DD)};return this.manager.start([l].concat(Nc(o.reduce(m,[f,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=AD());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,d=i.onAnimationEnd,h=i.steps,m=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof m=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=s?Ia({},s,l):l,b=nm(Object.keys(v),o,u);g.start([f,a,An(An({},v),{},{transition:b}),o,d])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=sL(i,oL),u=z.Children.count(a),f=Eh(this.state.style);if(typeof a=="function")return a(f);if(!s||u===0||o<=0)return a;var d=function(m){var g=m.props,v=g.style,b=v===void 0?{}:v,_=g.className,C=z.cloneElement(m,An(An({},l),{},{style:An(An({},b),f),className:_}));return C};return u===1?d(z.Children.only(a)):U.createElement("div",null,z.Children.map(a,function(h){return d(h)}))}}]),n}(z.PureComponent);lr.displayName="Animate";lr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};lr.propTypes={from:Oe.oneOfType([Oe.object,Oe.string]),to:Oe.oneOfType([Oe.object,Oe.string]),attributeName:Oe.string,duration:Oe.number,begin:Oe.number,easing:Oe.oneOfType([Oe.string,Oe.func]),steps:Oe.arrayOf(Oe.shape({duration:Oe.number.isRequired,style:Oe.object.isRequired,easing:Oe.oneOfType([Oe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Oe.func]),properties:Oe.arrayOf("string"),onAnimationEnd:Oe.func})),children:Oe.oneOfType([Oe.node,Oe.func]),isActive:Oe.bool,canBegin:Oe.bool,onAnimationEnd:Oe.func,shouldReAnimate:Oe.bool,onAnimationStart:Oe.func,onAnimationReStart:Oe.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});Oe.object,Oe.object,Oe.object,Oe.element;Oe.object,Oe.object,Oe.object,Oe.oneOfType([Oe.array,Oe.element]),Oe.any;function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function js(e,t,n){return t=xL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xL(e){var t=bL(e,"string");return no(t)==="symbol"?t:String(t)}function bL(e,t){if(no(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(no(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _a="recharts-tooltip-wrapper",wL={visibility:"hidden"};function SL(e){var t,n=e.coordinate,r=e.translateX,i=e.translateY;return Ze(_a,(t={},js(t,"".concat(_a,"-right"),le(r)&&n&&le(n.x)&&r>=n.x),js(t,"".concat(_a,"-left"),le(r)&&n&&le(n.x)&&r=n.y),js(t,"".concat(_a,"-top"),le(i)&&n&&le(n.y)&&iv?Math.max(f,l[r]):Math.max(d,l[r])}function _L(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return Eh({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function OL(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,d;return o.height>0&&o.width>0&&n?(f=um({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),d=um({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=_L({translateX:f,translateY:d,useTranslate3d:s})):u=wL,{cssProperties:u,cssClasses:SL({translateX:f,translateY:d,coordinate:n})}}function Ri(e){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(e)}function cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rc(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cl(e)}function Us(e,t,n){return t=fb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fb(e){var t=EL(e,"string");return Ri(t)==="symbol"?t:String(t)}function EL(e,t){if(Ri(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ri(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dm=1,ML=function(e){PL(n,e);var t=AL(n);function n(){var r;kL(this,n);for(var i=arguments.length,a=new Array(i),o=0;odm||Math.abs(i.height-this.lastBoundingBox.height)>dm)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,a=this.props,o=a.active,s=a.allowEscapeViewBox,l=a.animationDuration,u=a.animationEasing,f=a.children,d=a.coordinate,h=a.hasPayload,m=a.isAnimationActive,g=a.offset,v=a.position,b=a.reverseDirection,_=a.useTranslate3d,C=a.viewBox,k=a.wrapperStyle,A=OL({allowEscapeViewBox:s,coordinate:d,offsetTopLeft:g,position:v,reverseDirection:b,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:_,viewBox:C}),O=A.cssClasses,w=A.cssProperties,j=Rc(Rc(Rc({},m&&o&&Eh({transition:"transform ".concat(l,"ms ").concat(u)})),w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&h?"visible":"hidden",position:"absolute",top:0,left:0},k);return U.createElement("div",{tabIndex:-1,role:"dialog",className:O,style:j,ref:function(I){i.wrapperNode=I}},f)}}]),n}(z.PureComponent),$L=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},or={isSsr:$L(),get:function(t){return or[t]},set:function(t,n){if(typeof t=="string")or[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){or[i]=t[i]})}}};function Bi(e){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(e)}function hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pm(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fl(e){return fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fl(e)}function Mh(e,t,n){return t=db(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function db(e){var t=FL(e,"string");return Bi(t)==="symbol"?t:String(t)}function FL(e,t){if(Bi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HL(e){return e.dataKey}function UL(e,t){return U.isValidElement(e)?U.cloneElement(e,t):typeof e=="function"?U.createElement(e,t):U.createElement(XI,t)}var qr=function(e){LL(n,e);var t=NL(n);function n(){return IL(this,n),t.apply(this,arguments)}return DL(n,[{key:"render",value:function(){var i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,d=i.filterNull,h=i.isAnimationActive,m=i.offset,g=i.payload,v=i.payloadUniqBy,b=i.position,_=i.reverseDirection,C=i.useTranslate3d,k=i.viewBox,A=i.wrapperStyle,O=g??[];d&&O.length&&(O=Zx(g.filter(function(j){return j.value!=null}),v,HL));var w=O.length>0;return U.createElement(ML,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:f,hasPayload:w,offset:m,position:b,reverseDirection:_,useTranslate3d:C,viewBox:k,wrapperStyle:A},UL(u,pm(pm({},this.props),{},{payload:O})))}}]),n}(z.PureComponent);Mh(qr,"displayName","Tooltip");Mh(qr,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!or.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var WL=S4,YL=function(){return WL.Date.now()},VL=YL,GL=/\s/;function qL(e){for(var t=e.length;t--&&GL.test(e.charAt(t)););return t}var KL=qL,XL=KL,ZL=/^\s+/;function JL(e){return e&&e.slice(0,XL(e)+1).replace(ZL,"")}var QL=JL,eN=QL,ym=zo,tN=ra,gm=0/0,nN=/^[-+]0x[0-9a-f]+$/i,rN=/^0b[01]+$/i,iN=/^0o[0-7]+$/i,aN=parseInt;function oN(e){if(typeof e=="number")return e;if(tN(e))return gm;if(ym(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ym(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=eN(e);var n=rN.test(e);return n||iN.test(e)?aN(e.slice(2),n?2:8):nN.test(e)?gm:+e}var hb=oN,sN=zo,Bc=VL,vm=hb,lN="Expected a function",uN=Math.max,cN=Math.min;function fN(e,t,n){var r,i,a,o,s,l,u=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(lN);t=vm(t)||0,sN(n)&&(f=!!n.leading,d="maxWait"in n,a=d?uN(vm(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function m(w){var j=r,T=i;return r=i=void 0,u=w,o=e.apply(T,j),o}function g(w){return u=w,s=setTimeout(_,t),f?m(w):o}function v(w){var j=w-l,T=w-u,I=t-j;return d?cN(I,a-T):I}function b(w){var j=w-l,T=w-u;return l===void 0||j>=t||j<0||d&&T>=a}function _(){var w=Bc();if(b(w))return C(w);s=setTimeout(_,v(w))}function C(w){return s=void 0,h&&r?m(w):(r=i=void 0,o)}function k(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function A(){return s===void 0?o:C(Bc())}function O(){var w=Bc(),j=b(w);if(r=arguments,i=this,l=w,j){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(_,t),m(l)}return s===void 0&&(s=setTimeout(_,t)),o}return O.cancel=k,O.flush=A,O}var dN=fN,hN=dN,pN=zo,mN="Expected a function";function yN(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(mN);return pN(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),hN(e,t,{leading:r,maxWait:t,trailing:i})}var gN=yN;const pb=st(gN);function ro(e){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ro(e)}function xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(W=pb(W,v,{trailing:!0,leading:!1}));var Y=new ResizeObserver(W),V=O.current.getBoundingClientRect(),X=V.width,Z=V.height;return M(X,Z),Y.observe(O.current),function(){Y.disconnect()}},[M,v]);var D=z.useMemo(function(){var W=I.containerWidth,Y=I.containerHeight;if(W<0||Y<0)return null;Zr(Gr(o)||Gr(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,o,l),Zr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var V=Gr(o)?W:o,X=Gr(l)?Y:l;n&&n>0&&(V?X=V/n:X&&(V=X*n),h&&X>h&&(X=h)),Zr(V>0||X>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,V,X,o,l,f,d,n);var Z=!Array.isArray(m)&&wf.isElement(m)&&ir(m.type).endsWith("Chart");return U.Children.map(m,function(G){return wf.isElement(G)?z.cloneElement(G,Es({width:V,height:X},Z?{style:Es({height:"100%",width:"100%",maxHeight:X,maxWidth:V},G.props.style)}:{})):G})},[n,m,l,h,d,f,I,o]);return U.createElement("div",{id:b?"".concat(b):void 0,className:Ze("recharts-responsive-container",_),style:Es(Es({},A),{},{width:o,height:l,minWidth:f,minHeight:d,maxHeight:h}),ref:O},D)}),$h=function(t){return null};$h.displayName="Cell";function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}function wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ar.isSsr)return{width:0,height:0};var r=MN(n),i=JSON.stringify({text:t,copyStyle:r});if(yi.widthCache[i])return yi.widthCache[i];try{var a=document.getElementById(Sm);a||(a=document.createElement("span"),a.setAttribute("id",Sm),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Gf(Gf({},EN),r);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return yi.widthCache[i]=l,++yi.cacheCount>TN&&(yi.cacheCount=0,yi.widthCache={}),l}catch{return{width:0,height:0}}},$N=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function hl(e,t){return NN(e)||LN(e,t)||DN(e,t)||IN()}function IN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DN(e,t){if(e){if(typeof e=="string")return _m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _m(e,t)}}function _m(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function jm(e,t){return tR(e)||eR(e,t)||QN(e,t)||JN()}function JN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QN(e,t){if(e){if(typeof e=="string")return Tm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tm(e,t)}}function Tm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return V.reduce(function(X,Z){var G=Z.word,Q=Z.width,E=X[X.length-1];if(E&&(i==null||a||E.width+Q+rZ.width?X:Z})};if(!f)return m;for(var v="…",b=function(V){var X=d.slice(0,V),Z=vb({breakAll:u,style:l,children:X+v}).wordsWithComputedWidth,G=h(Z),Q=G.length>o||g(G).width>Number(i);return[Q,G]},_=0,C=d.length-1,k=0,A;_<=C&&k<=d.length-1;){var O=Math.floor((_+C)/2),w=O-1,j=b(w),T=jm(j,2),I=T[0],B=T[1],M=b(O),D=jm(M,1),W=D[0];if(!I&&!W&&(_=O+1),I&&W&&(C=O-1),!I&&W){A=B;break}k++}return A||m},Em=function(t){var n=Ee(t)?[]:t.toString().split(gb);return[{words:n}]},rR=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((n||r)&&!ar.isSsr){var l,u,f=vb({breakAll:o,children:i,style:a});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;l=d,u=h}else return Em(i);return nR({breakAll:o,children:i,maxLines:s,style:a},l,u,n,r)}return Em(i)},Mm="#808080",pl=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,d=f===void 0?!1:f,h=t.textAnchor,m=h===void 0?"start":h,g=t.verticalAnchor,v=g===void 0?"end":g,b=t.fill,_=b===void 0?Mm:b,C=Am(t,KN),k=z.useMemo(function(){return rR({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:d,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,d,C.style,C.width]),A=C.dx,O=C.dy,w=C.angle,j=C.className,T=C.breakAll,I=Am(C,XN);if(!_t(r)||!_t(a))return null;var B=r+(le(A)?A:0),M=a+(le(O)?O:0),D;switch(v){case"start":D=zc("calc(".concat(u,")"));break;case"middle":D=zc("calc(".concat((k.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:D=zc("calc(".concat(k.length-1," * -").concat(s,")"));break}var W=[];if(d){var Y=k[0].width,V=C.width;W.push("scale(".concat((le(V)?V/Y:1)/Y,")"))}return w&&W.push("rotate(".concat(w,", ").concat(B,", ").concat(M,")")),W.length&&(I.transform=W.join(" ")),U.createElement("text",qf({},Le(I,!0),{x:B,y:M,className:Ze("recharts-text",j),textAnchor:m,fill:_.includes("url")?Mm:_}),k.map(function(X,Z){var G=X.words.join(T?"":" ");return U.createElement("tspan",{x:B,dy:Z===0?D:s,key:G},G)}))};function jr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function iR(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Ih(e){let t,n,r;e.length!==2?(t=jr,n=(s,l)=>jr(e(s),l),r=(s,l)=>e(s)-l):(t=e===jr||e===iR?e:aR,n=e,r=e);function i(s,l,u=0,f=s.length){if(u>>1;n(s[d],l)<0?u=d+1:f=d}while(u>>1;n(s[d],l)<=0?u=d+1:f=d}while(uu&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:o,right:a}}function aR(){return 0}function xb(e){return e===null?NaN:+e}function*oR(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const sR=Ih(jr),lR=sR.right;Ih(xb).center;const Go=lR;class $m extends Map{constructor(t,n=fR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Im(this,t))}has(t){return super.has(Im(this,t))}set(t,n){return super.set(uR(this,t),n)}delete(t){return super.delete(cR(this,t))}}function Im({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function uR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function cR({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function fR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function dR(e=jr){if(e===jr)return bb;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function bb(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const hR=Math.sqrt(50),pR=Math.sqrt(10),mR=Math.sqrt(2);function ml(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=hR?10:a>=pR?5:a>=mR?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function Lm(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function wb(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?bb:dR(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(u-l/2<0?-1:1),m=Math.max(n,Math.floor(t-u*d/l+h)),g=Math.min(r,Math.floor(t+(l-u)*d/l+h));wb(e,t,m,g,i)}const a=e[t];let o=n,s=r;for(Oa(e,n,t),i(e[r],a)>0&&Oa(e,n,r);o0;)--s}i(e[n],a)===0?Oa(e,n,s):(++s,Oa(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Oa(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function yR(e,t,n){if(e=Float64Array.from(oR(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Lm(e);if(t>=1)return Dm(e);var r,i=(r-1)*t,a=Math.floor(i),o=Dm(wb(e,a).subarray(0,a+1)),s=Lm(e.subarray(a+1));return o+(s-o)*(i-a)}}function gR(e,t,n=xb){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function vR(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$s(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$s(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=bR.exec(e))?new Qt(t[1],t[2],t[3],1):(t=wR.exec(e))?new Qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=SR.exec(e))?$s(t[1],t[2],t[3],t[4]):(t=_R.exec(e))?$s(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=OR.exec(e))?Um(t[1],t[2]/100,t[3]/100,1):(t=kR.exec(e))?Um(t[1],t[2]/100,t[3]/100,t[4]):Nm.hasOwnProperty(e)?zm(Nm[e]):e==="transparent"?new Qt(NaN,NaN,NaN,0):null}function zm(e){return new Qt(e>>16&255,e>>8&255,e&255,1)}function $s(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qt(e,t,n,r)}function AR(e){return e instanceof qo||(e=uo(e)),e?(e=e.rgb(),new Qt(e.r,e.g,e.b,e.opacity)):new Qt}function Qf(e,t,n,r){return arguments.length===1?AR(e):new Qt(e,t,n,r??1)}function Qt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Lh(Qt,Qf,_b(qo,{brighter(e){return e=e==null?yl:Math.pow(yl,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?so:Math.pow(so,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qt(Jr(this.r),Jr(this.g),Jr(this.b),gl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fm,formatHex:Fm,formatHex8:jR,formatRgb:Hm,toString:Hm}));function Fm(){return`#${Kr(this.r)}${Kr(this.g)}${Kr(this.b)}`}function jR(){return`#${Kr(this.r)}${Kr(this.g)}${Kr(this.b)}${Kr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Hm(){const e=gl(this.opacity);return`${e===1?"rgb(":"rgba("}${Jr(this.r)}, ${Jr(this.g)}, ${Jr(this.b)}${e===1?")":`, ${e})`}`}function gl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kr(e){return e=Jr(e),(e<16?"0":"")+e.toString(16)}function Um(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Tn(e,t,n,r)}function Ob(e){if(e instanceof Tn)return new Tn(e.h,e.s,e.l,e.opacity);if(e instanceof qo||(e=uo(e)),!e)return new Tn;if(e instanceof Tn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n0&&l<1?0:o,new Tn(o,s,l,e.opacity)}function TR(e,t,n,r){return arguments.length===1?Ob(e):new Tn(e,t,n,r??1)}function Tn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Lh(Tn,TR,_b(qo,{brighter(e){return e=e==null?yl:Math.pow(yl,e),new Tn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?so:Math.pow(so,e),new Tn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Qt(Fc(e>=240?e-240:e+120,i,r),Fc(e,i,r),Fc(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Tn(Wm(this.h),Is(this.s),Is(this.l),gl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=gl(this.opacity);return`${e===1?"hsl(":"hsla("}${Wm(this.h)}, ${Is(this.s)*100}%, ${Is(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Wm(e){return e=(e||0)%360,e<0?e+360:e}function Is(e){return Math.max(0,Math.min(1,e||0))}function Fc(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Nh=e=>()=>e;function ER(e,t){return function(n){return e+n*t}}function MR(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function $R(e){return(e=+e)==1?kb:function(t,n){return n-t?MR(t,n,e):Nh(isNaN(t)?n:t)}}function kb(e,t){var n=t-e;return n?ER(e,n):Nh(isNaN(e)?t:e)}const Ym=function e(t){var n=$R(t);function r(i,a){var o=n((i=Qf(i)).r,(a=Qf(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),u=kb(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function IR(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:vl(r,i)})),n=Hc.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function YR(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?VR:YR,l=u=null,d}function d(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(r),t,n)))(r(o(h)))}return d.invert=function(h){return o(i((u||(u=s(t,e.map(r),vl)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,xl),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=Rh,f()},d.clamp=function(h){return arguments.length?(o=h?!0:Vt,f()):o!==Vt},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,m){return r=h,i=m,f()}}function Bh(){return xu()(Vt,Vt)}function GR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function zi(e){return e=bl(Math.abs(e)),e?e[1]:NaN}function qR(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function KR(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var XR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function co(e){if(!(t=XR.exec(e)))throw new Error("invalid format: "+e);var t;return new zh({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}co.prototype=zh.prototype;function zh(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}zh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function ZR(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Cb;function JR(e,t){var n=bl(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Cb=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+bl(e,Math.max(0,t+a-1))[0]}function Gm(e,t){var n=bl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const qm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Gm(e*100,t),r:Gm,s:JR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Km(e){return e}var Xm=Array.prototype.map,Zm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function QR(e){var t=e.grouping===void 0||e.thousands===void 0?Km:qR(Xm.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Km:KR(Xm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=co(d);var h=d.fill,m=d.align,g=d.sign,v=d.symbol,b=d.zero,_=d.width,C=d.comma,k=d.precision,A=d.trim,O=d.type;O==="n"?(C=!0,O="g"):qm[O]||(k===void 0&&(k=12),A=!0,O="g"),(b||h==="0"&&m==="=")&&(b=!0,h="0",m="=");var w=v==="$"?n:v==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",j=v==="$"?r:/[%p]/.test(O)?o:"",T=qm[O],I=/[defgprs%]/.test(O);k=k===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function B(M){var D=w,W=j,Y,V,X;if(O==="c")W=T(M)+W,M="";else{M=+M;var Z=M<0||1/M<0;if(M=isNaN(M)?l:T(Math.abs(M),k),A&&(M=ZR(M)),Z&&+M==0&&g!=="+"&&(Z=!1),D=(Z?g==="("?g:s:g==="-"||g==="("?"":g)+D,W=(O==="s"?Zm[8+Cb/3]:"")+W+(Z&&g==="("?")":""),I){for(Y=-1,V=M.length;++YX||X>57){W=(X===46?i+M.slice(Y+1):M.slice(Y))+W,M=M.slice(0,Y);break}}}C&&!b&&(M=t(M,1/0));var G=D.length+M.length+W.length,Q=G<_?new Array(_-G+1).join(h):"";switch(C&&b&&(M=t(Q+M,Q.length?_-W.length:1/0),Q=""),m){case"<":M=D+M+W+Q;break;case"=":M=D+Q+M+W;break;case"^":M=Q.slice(0,G=Q.length>>1)+D+M+W+Q.slice(G);break;default:M=Q+D+M+W;break}return a(M)}return B.toString=function(){return d+""},B}function f(d,h){var m=u((d=co(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(zi(h)/3)))*3,v=Math.pow(10,-g),b=Zm[8+g/3];return function(_){return m(v*_)+b}}return{format:u,formatPrefix:f}}var Ds,Fh,Pb;eB({thousands:",",grouping:[3],currency:["$",""]});function eB(e){return Ds=QR(e),Fh=Ds.format,Pb=Ds.formatPrefix,Ds}function tB(e){return Math.max(0,-zi(Math.abs(e)))}function nB(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zi(t)/3)))*3-zi(Math.abs(e)))}function rB(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zi(t)-zi(e))+1}function Ab(e,t,n,r){var i=Zf(e,t,n),a;switch(r=co(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=nB(i,o))&&(r.precision=a),Pb(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=rB(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=tB(i))&&(r.precision=a-(r.type==="%")*2);break}}return Fh(r)}function Lr(e){var t=e.domain;return e.ticks=function(n){var r=t();return Kf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Ab(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,f=10;for(s0;){if(u=Xf(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function wl(){var e=Bh();return e.copy=function(){return Ko(e,wl())},kn.apply(e,arguments),Lr(e)}function jb(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,xl),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return jb(e).unknown(t)},e=arguments.length?Array.from(e,xl):[0,1],Lr(n)}function Tb(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return aMath.pow(e,t)}function lB(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function ey(e){return(t,n)=>-e(-t,n)}function Hh(e){const t=e(Jm,Qm),n=t.domain;let r=10,i,a;function o(){return i=lB(r),a=sB(r),n()[0]<0?(i=ey(i),a=ey(a),e(iB,aB)):e(Jm,Qm),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const d=f0){for(;h<=m;++h)for(g=1;gf)break;_.push(v)}}else for(;h<=m;++h)for(g=r-1;g>=1;--g)if(v=h>0?g/a(-h):g*a(h),!(vf)break;_.push(v)}_.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=co(l)).precision==null&&(l.trim=!0),l=Fh(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/a(Math.round(i(f)));return d*rn(Tb(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function Eb(){const e=Hh(xu()).domain([1,10]);return e.copy=()=>Ko(e,Eb()).base(e.base()),kn.apply(e,arguments),e}function ty(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ny(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Uh(e){var t=1,n=e(ty(t),ny(t));return n.constant=function(r){return arguments.length?e(ty(t=+r),ny(t)):t},Lr(n)}function Mb(){var e=Uh(xu());return e.copy=function(){return Ko(e,Mb()).constant(e.constant())},kn.apply(e,arguments)}function ry(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function uB(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function cB(e){return e<0?-e*e:e*e}function Wh(e){var t=e(Vt,Vt),n=1;function r(){return n===1?e(Vt,Vt):n===.5?e(uB,cB):e(ry(n),ry(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Lr(t)}function Yh(){var e=Wh(xu());return e.copy=function(){return Ko(e,Yh()).exponent(e.exponent())},kn.apply(e,arguments),e}function fB(){return Yh.apply(null,arguments).exponent(.5)}function iy(e){return Math.sign(e)*e*e}function dB(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $b(){var e=Bh(),t=[0,1],n=!1,r;function i(a){var o=dB(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(iy(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,xl)).map(iy)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return $b(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},kn.apply(i,arguments),Lr(i)}function Ib(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return Db().domain([e,t]).range(i).unknown(a)},kn.apply(Lr(o),arguments)}function Lb(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Go(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Lb().domain(e).range(t).unknown(n)},kn.apply(i,arguments)}const Uc=new Date,Wc=new Date;function Ot(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(uOt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Uc.setTime(+a),Wc.setTime(+o),e(Uc),e(Wc),Math.floor(n(Uc,Wc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Sl=Ot(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Sl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ot(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Sl);Sl.range;const tr=1e3,xn=tr*60,nr=xn*60,lr=nr*24,Vh=lr*7,ay=lr*30,Yc=lr*365,Xr=Ot(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCSeconds());Xr.range;const Gh=Ot(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*tr)},(e,t)=>{e.setTime(+e+t*xn)},(e,t)=>(t-e)/xn,e=>e.getMinutes());Gh.range;const qh=Ot(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*xn)},(e,t)=>(t-e)/xn,e=>e.getUTCMinutes());qh.range;const Kh=Ot(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*tr-e.getMinutes()*xn)},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getHours());Kh.range;const Xh=Ot(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getUTCHours());Xh.range;const Xo=Ot(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xn)/lr,e=>e.getDate()-1);Xo.range;const bu=Ot(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/lr,e=>e.getUTCDate()-1);bu.range;const Nb=Ot(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/lr,e=>Math.floor(e/lr));Nb.range;function ii(e){return Ot(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xn)/Vh)}const wu=ii(0),_l=ii(1),hB=ii(2),pB=ii(3),Fi=ii(4),mB=ii(5),yB=ii(6);wu.range;_l.range;hB.range;pB.range;Fi.range;mB.range;yB.range;function ai(e){return Ot(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Vh)}const Su=ai(0),Ol=ai(1),gB=ai(2),vB=ai(3),Hi=ai(4),xB=ai(5),bB=ai(6);Su.range;Ol.range;gB.range;vB.range;Hi.range;xB.range;bB.range;const Zh=Ot(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Zh.range;const Jh=Ot(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Jh.range;const ur=Ot(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ur.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ot(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ur.range;const cr=Ot(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());cr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ot(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});cr.range;function Rb(e,t,n,r,i,a){const o=[[Xr,1,tr],[Xr,5,5*tr],[Xr,15,15*tr],[Xr,30,30*tr],[a,1,xn],[a,5,5*xn],[a,15,15*xn],[a,30,30*xn],[i,1,nr],[i,3,3*nr],[i,6,6*nr],[i,12,12*nr],[r,1,lr],[r,2,2*lr],[n,1,Vh],[t,1,ay],[t,3,3*ay],[e,1,Yc]];function s(u,f,d){const h=fb).right(o,h);if(m===o.length)return e.every(Zf(u/Yc,f/Yc,d));if(m===0)return Sl.every(Math.max(Zf(u,f,d),1));const[g,v]=o[h/o[m-1][2]53)return null;"w"in ee||(ee.w=1),"Z"in ee?(he=Gc(ka(ee.y,0,1)),xe=he.getUTCDay(),he=xe>4||xe===0?Ol.ceil(he):Ol(he),he=bu.offset(he,(ee.V-1)*7),ee.y=he.getUTCFullYear(),ee.m=he.getUTCMonth(),ee.d=he.getUTCDate()+(ee.w+6)%7):(he=Vc(ka(ee.y,0,1)),xe=he.getDay(),he=xe>4||xe===0?_l.ceil(he):_l(he),he=Xo.offset(he,(ee.V-1)*7),ee.y=he.getFullYear(),ee.m=he.getMonth(),ee.d=he.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),xe="Z"in ee?Gc(ka(ee.y,0,1)).getUTCDay():Vc(ka(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(xe+5)%7:ee.w+ee.U*7-(xe+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,Gc(ee)):Vc(ee)}}function T(ae,de,ve,ee){for(var Ae=0,he=de.length,xe=ve.length,He,rt;Ae=xe)return-1;if(He=de.charCodeAt(Ae++),He===37){if(He=de.charAt(Ae++),rt=O[He in oy?de.charAt(Ae++):He],!rt||(ee=rt(ae,ve,ee))<0)return-1}else if(He!=ve.charCodeAt(ee++))return-1}return ee}function I(ae,de,ve){var ee=u.exec(de.slice(ve));return ee?(ae.p=f.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function B(ae,de,ve){var ee=m.exec(de.slice(ve));return ee?(ae.w=g.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function M(ae,de,ve){var ee=d.exec(de.slice(ve));return ee?(ae.w=h.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function D(ae,de,ve){var ee=_.exec(de.slice(ve));return ee?(ae.m=C.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function W(ae,de,ve){var ee=v.exec(de.slice(ve));return ee?(ae.m=b.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function Y(ae,de,ve){return T(ae,t,de,ve)}function V(ae,de,ve){return T(ae,n,de,ve)}function X(ae,de,ve){return T(ae,r,de,ve)}function Z(ae){return o[ae.getDay()]}function G(ae){return a[ae.getDay()]}function Q(ae){return l[ae.getMonth()]}function E(ae){return s[ae.getMonth()]}function pe(ae){return i[+(ae.getHours()>=12)]}function ue(ae){return 1+~~(ae.getMonth()/3)}function $(ae){return o[ae.getUTCDay()]}function _e(ae){return a[ae.getUTCDay()]}function te(ae){return l[ae.getUTCMonth()]}function ge(ae){return s[ae.getUTCMonth()]}function Ye(ae){return i[+(ae.getUTCHours()>=12)]}function Me(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var de=w(ae+="",k);return de.toString=function(){return ae},de},parse:function(ae){var de=j(ae+="",!1);return de.toString=function(){return ae},de},utcFormat:function(ae){var de=w(ae+="",A);return de.toString=function(){return ae},de},utcParse:function(ae){var de=j(ae+="",!0);return de.toString=function(){return ae},de}}}var oy={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,CB=/^%/,PB=/[\\^$*+?|[\]().{}]/g;function Fe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a[t.toLowerCase(),n]))}function jB(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function TB(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function EB(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function MB(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $B(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function sy(e,t,n){var r=jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ly(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function IB(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function DB(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function LB(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function uy(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function NB(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function cy(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function RB(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function BB(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function zB(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function FB(e,t,n){var r=jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function HB(e,t,n){var r=CB.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function UB(e,t,n){var r=jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function WB(e,t,n){var r=jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function fy(e,t){return Fe(e.getDate(),t,2)}function YB(e,t){return Fe(e.getHours(),t,2)}function VB(e,t){return Fe(e.getHours()%12||12,t,2)}function GB(e,t){return Fe(1+Xo.count(ur(e),e),t,3)}function Bb(e,t){return Fe(e.getMilliseconds(),t,3)}function qB(e,t){return Bb(e,t)+"000"}function KB(e,t){return Fe(e.getMonth()+1,t,2)}function XB(e,t){return Fe(e.getMinutes(),t,2)}function ZB(e,t){return Fe(e.getSeconds(),t,2)}function JB(e){var t=e.getDay();return t===0?7:t}function QB(e,t){return Fe(wu.count(ur(e)-1,e),t,2)}function zb(e){var t=e.getDay();return t>=4||t===0?Fi(e):Fi.ceil(e)}function ez(e,t){return e=zb(e),Fe(Fi.count(ur(e),e)+(ur(e).getDay()===4),t,2)}function tz(e){return e.getDay()}function nz(e,t){return Fe(_l.count(ur(e)-1,e),t,2)}function rz(e,t){return Fe(e.getFullYear()%100,t,2)}function iz(e,t){return e=zb(e),Fe(e.getFullYear()%100,t,2)}function az(e,t){return Fe(e.getFullYear()%1e4,t,4)}function oz(e,t){var n=e.getDay();return e=n>=4||n===0?Fi(e):Fi.ceil(e),Fe(e.getFullYear()%1e4,t,4)}function sz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Fe(t/60|0,"0",2)+Fe(t%60,"0",2)}function dy(e,t){return Fe(e.getUTCDate(),t,2)}function lz(e,t){return Fe(e.getUTCHours(),t,2)}function uz(e,t){return Fe(e.getUTCHours()%12||12,t,2)}function cz(e,t){return Fe(1+bu.count(cr(e),e),t,3)}function Fb(e,t){return Fe(e.getUTCMilliseconds(),t,3)}function fz(e,t){return Fb(e,t)+"000"}function dz(e,t){return Fe(e.getUTCMonth()+1,t,2)}function hz(e,t){return Fe(e.getUTCMinutes(),t,2)}function pz(e,t){return Fe(e.getUTCSeconds(),t,2)}function mz(e){var t=e.getUTCDay();return t===0?7:t}function yz(e,t){return Fe(Su.count(cr(e)-1,e),t,2)}function Hb(e){var t=e.getUTCDay();return t>=4||t===0?Hi(e):Hi.ceil(e)}function gz(e,t){return e=Hb(e),Fe(Hi.count(cr(e),e)+(cr(e).getUTCDay()===4),t,2)}function vz(e){return e.getUTCDay()}function xz(e,t){return Fe(Ol.count(cr(e)-1,e),t,2)}function bz(e,t){return Fe(e.getUTCFullYear()%100,t,2)}function wz(e,t){return e=Hb(e),Fe(e.getUTCFullYear()%100,t,2)}function Sz(e,t){return Fe(e.getUTCFullYear()%1e4,t,4)}function _z(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Hi(e):Hi.ceil(e),Fe(e.getUTCFullYear()%1e4,t,4)}function Oz(){return"+0000"}function hy(){return"%"}function py(e){return+e}function my(e){return Math.floor(+e/1e3)}var gi,Ub,Wb;kz({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function kz(e){return gi=kB(e),Ub=gi.format,gi.parse,Wb=gi.utcFormat,gi.utcParse,gi}function Cz(e){return new Date(e)}function Pz(e){return e instanceof Date?+e:+new Date(+e)}function Qh(e,t,n,r,i,a,o,s,l,u){var f=Bh(),d=f.invert,h=f.domain,m=u(".%L"),g=u(":%S"),v=u("%I:%M"),b=u("%I %p"),_=u("%a %d"),C=u("%b %d"),k=u("%B"),A=u("%Y");function O(w){return(l(w)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>yR(e,a/r))},n.copy=function(){return qb(t).domain(e)},fr.apply(n,arguments)}function Ou(){var e=0,t=.5,n=1,r=1,i,a,o,s,l,u=Vt,f,d=!1,h;function m(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(r*vt}var Dz=Iz,Lz=Jb,Nz=Dz,Rz=ia;function Bz(e){return e&&e.length?Lz(e,Rz,Nz):void 0}var zz=Bz;const ku=st(zz);function Fz(e,t){return ee.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};fe.decimalPlaces=fe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};fe.dividedBy=fe.div=function(e){return or(this,new this.constructor(e))};fe.dividedToIntegerBy=fe.idiv=function(e){var t=this,n=t.constructor;return Qe(or(t,new n(e),0,1),n.precision)};fe.equals=fe.eq=function(e){return!this.cmp(e)};fe.exponent=function(){return bt(this)};fe.greaterThan=fe.gt=function(e){return this.cmp(e)>0};fe.greaterThanOrEqualTo=fe.gte=function(e){return this.cmp(e)>=0};fe.isInteger=fe.isint=function(){return this.e>this.d.length-2};fe.isNegative=fe.isneg=function(){return this.s<0};fe.isPositive=fe.ispos=function(){return this.s>0};fe.isZero=function(){return this.s===0};fe.lessThan=fe.lt=function(e){return this.cmp(e)<0};fe.lessThanOrEqualTo=fe.lte=function(e){return this.cmp(e)<1};fe.logarithm=fe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(ln))throw Error(wn+"NaN");if(n.s<1)throw Error(wn+(n.s?"NaN":"-Infinity"));return n.eq(ln)?new r(0):(ct=!1,t=or(fo(n,a),fo(e,a),a),ct=!0,Qe(t,i))};fe.minus=fe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?n2(t,e):e2(t,(e.s=-e.s,e))};fe.modulo=fe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(wn+"NaN");return n.s?(ct=!1,t=or(n,e,0,1).times(e),ct=!0,n.minus(t)):Qe(new r(n),i)};fe.naturalExponential=fe.exp=function(){return t2(this)};fe.naturalLogarithm=fe.ln=function(){return fo(this)};fe.negated=fe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};fe.plus=fe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?e2(t,e):n2(t,(e.s=-e.s,e))};fe.precision=fe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qr+e);if(t=bt(i)+1,r=i.d.length-1,n=r*ot+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};fe.squareRoot=fe.sqrt=function(){var e,t,n,r,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(wn+"NaN")}for(e=bt(s),ct=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Bn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=la((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=o=n+3;;)if(a=r,r=a.plus(or(s,a,o+2)).times(.5),Bn(a.d).slice(0,o)===(t=Bn(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Qe(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!="9999")break;o+=4}return ct=!0,Qe(r,n)};fe.times=fe.mul=function(e){var t,n,r,i,a,o,s,l,u,f=this,d=f.constructor,h=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=h.length,u=m.length,l=0;){for(t=0,i=l+r;i>r;)s=a[i]+m[r]*h[i-r-1]+t,a[i--]=s%Pt|0,t=s/Pt|0;a[i]=(a[i]+t)%Pt|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,ct?Qe(e,d.precision):e};fe.toDecimalPlaces=fe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Un(e,0,sa),t===void 0?t=r.rounding:Un(t,0,8),Qe(n,e+bt(n)+1,t))};fe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ni(r,!0):(Un(e,0,sa),t===void 0?t=i.rounding:Un(t,0,8),r=Qe(new i(r),e+1,t),n=ni(r,!0,e+1)),n};fe.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?ni(i):(Un(e,0,sa),t===void 0?t=a.rounding:Un(t,0,8),r=Qe(new a(i),e+bt(i)+1,t),n=ni(r.abs(),!1,e+bt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};fe.toInteger=fe.toint=function(){var e=this,t=e.constructor;return Qe(new t(e),bt(e)+1,t.rounding)};fe.toNumber=function(){return+this};fe.toPower=fe.pow=function(e){var t,n,r,i,a,o,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(ln);if(s=new l(s),!s.s){if(e.s<1)throw Error(wn+"Infinity");return s}if(s.eq(ln))return s;if(r=l.precision,e.eq(ln))return Qe(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,o){if((n=f<0?-f:f)<=Qb){for(i=new l(ln),t=Math.ceil(r/ot+4),ct=!1;n%2&&(i=i.times(s),vy(i.d,t)),n=la(n/2),n!==0;)s=s.times(s),vy(s.d,t);return ct=!0,e.s<0?new l(ln).div(i):Qe(i,r)}}else if(a<0)throw Error(wn+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,ct=!1,i=e.times(fo(s,r+u)),ct=!0,i=t2(i),i.s=a,i};fe.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=bt(i),r=ni(i,n<=a.toExpNeg||n>=a.toExpPos)):(Un(e,1,sa),t===void 0?t=a.rounding:Un(t,0,8),i=Qe(new a(i),e,t),n=bt(i),r=ni(i,e<=n||n<=a.toExpNeg,e)),r};fe.toSignificantDigits=fe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Un(e,1,sa),t===void 0?t=r.rounding:Un(t,0,8)),Qe(new r(n),e,t)};fe.toString=fe.valueOf=fe.val=fe.toJSON=fe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),n=e.constructor;return ni(e,t<=n.toExpNeg||t>=n.toExpPos)};function e2(e,t){var n,r,i,a,o,s,l,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ct?Qe(t,d):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(r=l,a=-a,s=u.length):(r=u,i=o,s=l.length),o=Math.ceil(d/ot),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,r=u,u=l,l=r),n=0;a;)n=(l[--a]=l[a]+u[a]+n)/Pt|0,l[a]%=Pt;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ct?Qe(t,d):t}function Un(e,t,n){if(e!==~~e||en)throw Error(Qr+e)}function Bn(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(s=l=0;si[s]?1:-1;break}return l}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]1;)r.shift()}return function(r,i,a,o){var s,l,u,f,d,h,m,g,v,b,_,C,k,A,O,w,j,T,I=r.constructor,B=r.s==i.s?1:-1,M=r.d,D=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(wn+"Division by zero");for(l=r.e-i.e,j=D.length,O=M.length,m=new I(B),g=m.d=[],u=0;D[u]==(M[u]||0);)++u;if(D[u]>(M[u]||0)&&--l,a==null?C=a=I.precision:o?C=a+(bt(r)-bt(i))+1:C=a,C<0)return new I(0);if(C=C/ot+2|0,u=0,j==1)for(f=0,D=D[0],C++;(u1&&(D=e(D,f),M=e(M,f),j=D.length,O=M.length),A=j,v=M.slice(0,j),b=v.length;b=Pt/2&&++w;do f=0,s=t(D,v,j,b),s<0?(_=v[0],j!=b&&(_=_*Pt+(v[1]||0)),f=_/w|0,f>1?(f>=Pt&&(f=Pt-1),d=e(D,f),h=d.length,b=v.length,s=t(d,v,h,b),s==1&&(f--,n(d,j16)throw Error(np+bt(e));if(!e.s)return new f(ln);for(t==null?(ct=!1,s=d):s=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(Yr(2,u))/Math.LN10*2+5|0,s+=r,n=i=a=new f(ln),f.precision=s;;){if(i=Qe(i.times(e),s),n=n.times(++l),o=a.plus(or(i,n,s)),Bn(o.d).slice(0,s)===Bn(a.d).slice(0,s)){for(;u--;)a=Qe(a.times(a),s);return f.precision=d,t==null?(ct=!0,Qe(a,d)):a}a=o}}function bt(e){for(var t=e.e*ot,n=e.d[0];n>=10;n/=10)t++;return t}function qc(e,t,n){if(t>e.LN10.sd())throw ct=!0,n&&(e.precision=n),Error(wn+"LN10 precision limit exceeded");return Qe(new e(e.LN10),t)}function kr(e){for(var t="";e--;)t+="0";return t}function fo(e,t){var n,r,i,a,o,s,l,u,f,d=1,h=10,m=e,g=m.d,v=m.constructor,b=v.precision;if(m.s<1)throw Error(wn+(m.s?"NaN":"-Infinity"));if(m.eq(ln))return new v(0);if(t==null?(ct=!1,u=b):u=t,m.eq(10))return t==null&&(ct=!0),qc(v,u);if(u+=h,v.precision=u,n=Bn(g),r=n.charAt(0),a=bt(m),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=Bn(m.d),r=n.charAt(0),d++;a=bt(m),r>1?(m=new v("0."+n),a++):m=new v(r+"."+n.slice(1))}else return l=qc(v,u+2,b).times(a+""),m=fo(new v(r+"."+n.slice(1)),u-h).plus(l),v.precision=b,t==null?(ct=!0,Qe(m,b)):m;for(s=o=m=or(m.minus(ln),m.plus(ln),u),f=Qe(m.times(m),u),i=3;;){if(o=Qe(o.times(f),u),l=s.plus(or(o,new v(i),u)),Bn(l.d).slice(0,u)===Bn(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(qc(v,u+2,b).times(a+""))),s=or(s,new v(d),u),v.precision=b,t==null?(ct=!0,Qe(s,b)):s;s=l,i+=2}}function gy(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=la(n/ot),e.d=[],r=(n+1)%ot,n<0&&(r+=ot),rkl||e.e<-kl))throw Error(np+n)}else e.s=0,e.e=0,e.d=[0];return e}function Qe(e,t,n){var r,i,a,o,s,l,u,f,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=ot,i=t,u=d[f=0];else{if(f=Math.ceil((r+1)/ot),a=d.length,f>=a)return e;for(u=a=d[f],o=1;a>=10;a/=10)o++;r%=ot,i=r-ot+o}if(n!==void 0&&(a=Yr(10,o-i-1),s=u/a%10|0,l=t<0||d[f+1]!==void 0||u%a,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Yr(10,o-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(a=bt(e),d.length=1,t=t-a-1,d[0]=Yr(10,(ot-t%ot)%ot),e.e=la(-t/ot)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,a=1,f--):(d.length=f+1,a=Yr(10,ot-r),d[f]=i>0?(u/Yr(10,o-i)%Yr(10,i)|0)*a:0),l)for(;;)if(f==0){(d[0]+=a)==Pt&&(d[0]=1,++e.e);break}else{if(d[f]+=a,d[f]!=Pt)break;d[f--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(ct&&(e.e>kl||e.e<-kl))throw Error(np+bt(e));return e}function n2(e,t){var n,r,i,a,o,s,l,u,f,d,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ct?Qe(t,m):t;if(l=e.d,d=t.d,r=t.e,u=e.e,l=l.slice(),o=u-r,o){for(f=o<0,f?(n=l,o=-o,s=d.length):(n=d,r=u,s=l.length),i=Math.max(Math.ceil(m/ot),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,f=i0;--i)l[s++]=0;for(i=d.length;i>o;){if(l[--i]0?a=a.charAt(0)+"."+a.slice(1)+kr(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+kr(-i-1)+a,n&&(r=n-o)>0&&(a+=kr(r))):i>=o?(a+=kr(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+kr(r))):((r=i+1)0&&(i+1===o&&(a+="."),a+=kr(r))),e.s<0?"-"+a:a}function vy(e,t){if(e.length>t)return e.length=t,!0}function r2(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Qr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return gy(o,a.toString())}else if(typeof a!="string")throw Error(Qr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,uF.test(a))gy(o,a);else throw Error(Qr+a)}if(i.prototype=fe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=r2,i.config=i.set=cF,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Qr+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Qr+n+": "+r);return this}var rp=r2(lF);ln=new rp(1);const Xe=rp;function fF(e){return mF(e)||pF(e)||hF(e)||dF()}function dF(){throw new TypeError(`Invalid attempt to spread non-iterable instance. + height and width.`,V,X,o,l,f,d,n);var Z=!Array.isArray(m)&&wf.isElement(m)&&ar(m.type).endsWith("Chart");return U.Children.map(m,function(G){return wf.isElement(G)?z.cloneElement(G,Ts({width:V,height:X},Z?{style:Ts({height:"100%",width:"100%",maxHeight:X,maxWidth:V},G.props.style)}:{})):G})},[n,m,l,h,d,f,I,o]);return U.createElement("div",{id:b?"".concat(b):void 0,className:Ze("recharts-responsive-container",_),style:Ts(Ts({},A),{},{width:o,height:l,minWidth:f,minHeight:d,maxHeight:h}),ref:O},D)}),$h=function(t){return null};$h.displayName="Cell";function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}function wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||or.isSsr)return{width:0,height:0};var r=MN(n),i=JSON.stringify({text:t,copyStyle:r});if(yi.widthCache[i])return yi.widthCache[i];try{var a=document.getElementById(Sm);a||(a=document.createElement("span"),a.setAttribute("id",Sm),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Gf(Gf({},EN),r);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return yi.widthCache[i]=l,++yi.cacheCount>TN&&(yi.cacheCount=0,yi.widthCache={}),l}catch{return{width:0,height:0}}},$N=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function dl(e,t){return NN(e)||LN(e,t)||DN(e,t)||IN()}function IN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DN(e,t){if(e){if(typeof e=="string")return _m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _m(e,t)}}function _m(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function jm(e,t){return tR(e)||eR(e,t)||QN(e,t)||JN()}function JN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QN(e,t){if(e){if(typeof e=="string")return Tm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tm(e,t)}}function Tm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return V.reduce(function(X,Z){var G=Z.word,Q=Z.width,E=X[X.length-1];if(E&&(i==null||a||E.width+Q+rZ.width?X:Z})};if(!f)return m;for(var v="…",b=function(V){var X=d.slice(0,V),Z=vb({breakAll:u,style:l,children:X+v}).wordsWithComputedWidth,G=h(Z),Q=G.length>o||g(G).width>Number(i);return[Q,G]},_=0,C=d.length-1,k=0,A;_<=C&&k<=d.length-1;){var O=Math.floor((_+C)/2),w=O-1,j=b(w),T=jm(j,2),I=T[0],B=T[1],M=b(O),D=jm(M,1),W=D[0];if(!I&&!W&&(_=O+1),I&&W&&(C=O-1),!I&&W){A=B;break}k++}return A||m},Em=function(t){var n=Ee(t)?[]:t.toString().split(gb);return[{words:n}]},rR=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((n||r)&&!or.isSsr){var l,u,f=vb({breakAll:o,children:i,style:a});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;l=d,u=h}else return Em(i);return nR({breakAll:o,children:i,maxLines:s,style:a},l,u,n,r)}return Em(i)},Mm="#808080",hl=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,d=f===void 0?!1:f,h=t.textAnchor,m=h===void 0?"start":h,g=t.verticalAnchor,v=g===void 0?"end":g,b=t.fill,_=b===void 0?Mm:b,C=Am(t,KN),k=z.useMemo(function(){return rR({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:d,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,d,C.style,C.width]),A=C.dx,O=C.dy,w=C.angle,j=C.className,T=C.breakAll,I=Am(C,XN);if(!_t(r)||!_t(a))return null;var B=r+(le(A)?A:0),M=a+(le(O)?O:0),D;switch(v){case"start":D=zc("calc(".concat(u,")"));break;case"middle":D=zc("calc(".concat((k.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:D=zc("calc(".concat(k.length-1," * -").concat(s,")"));break}var W=[];if(d){var Y=k[0].width,V=C.width;W.push("scale(".concat((le(V)?V/Y:1)/Y,")"))}return w&&W.push("rotate(".concat(w,", ").concat(B,", ").concat(M,")")),W.length&&(I.transform=W.join(" ")),U.createElement("text",qf({},Le(I,!0),{x:B,y:M,className:Ze("recharts-text",j),textAnchor:m,fill:_.includes("url")?Mm:_}),k.map(function(X,Z){var G=X.words.join(T?"":" ");return U.createElement("tspan",{x:B,dy:Z===0?D:s,key:G},G)}))};function jr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function iR(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Ih(e){let t,n,r;e.length!==2?(t=jr,n=(s,l)=>jr(e(s),l),r=(s,l)=>e(s)-l):(t=e===jr||e===iR?e:aR,n=e,r=e);function i(s,l,u=0,f=s.length){if(u>>1;n(s[d],l)<0?u=d+1:f=d}while(u>>1;n(s[d],l)<=0?u=d+1:f=d}while(uu&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:o,right:a}}function aR(){return 0}function xb(e){return e===null?NaN:+e}function*oR(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const sR=Ih(jr),lR=sR.right;Ih(xb).center;const Vo=lR;class $m extends Map{constructor(t,n=fR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Im(this,t))}has(t){return super.has(Im(this,t))}set(t,n){return super.set(uR(this,t),n)}delete(t){return super.delete(cR(this,t))}}function Im({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function uR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function cR({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function fR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function dR(e=jr){if(e===jr)return bb;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function bb(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const hR=Math.sqrt(50),pR=Math.sqrt(10),mR=Math.sqrt(2);function pl(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=hR?10:a>=pR?5:a>=mR?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function Lm(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function wb(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?bb:dR(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(u-l/2<0?-1:1),m=Math.max(n,Math.floor(t-u*d/l+h)),g=Math.min(r,Math.floor(t+(l-u)*d/l+h));wb(e,t,m,g,i)}const a=e[t];let o=n,s=r;for(Oa(e,n,t),i(e[r],a)>0&&Oa(e,n,r);o0;)--s}i(e[n],a)===0?Oa(e,n,s):(++s,Oa(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Oa(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function yR(e,t,n){if(e=Float64Array.from(oR(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Lm(e);if(t>=1)return Dm(e);var r,i=(r-1)*t,a=Math.floor(i),o=Dm(wb(e,a).subarray(0,a+1)),s=Lm(e.subarray(a+1));return o+(s-o)*(i-a)}}function gR(e,t,n=xb){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function vR(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ms(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ms(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=bR.exec(e))?new Qt(t[1],t[2],t[3],1):(t=wR.exec(e))?new Qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=SR.exec(e))?Ms(t[1],t[2],t[3],t[4]):(t=_R.exec(e))?Ms(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=OR.exec(e))?Um(t[1],t[2]/100,t[3]/100,1):(t=kR.exec(e))?Um(t[1],t[2]/100,t[3]/100,t[4]):Nm.hasOwnProperty(e)?zm(Nm[e]):e==="transparent"?new Qt(NaN,NaN,NaN,0):null}function zm(e){return new Qt(e>>16&255,e>>8&255,e&255,1)}function Ms(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qt(e,t,n,r)}function AR(e){return e instanceof Go||(e=uo(e)),e?(e=e.rgb(),new Qt(e.r,e.g,e.b,e.opacity)):new Qt}function Qf(e,t,n,r){return arguments.length===1?AR(e):new Qt(e,t,n,r??1)}function Qt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Lh(Qt,Qf,_b(Go,{brighter(e){return e=e==null?ml:Math.pow(ml,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?so:Math.pow(so,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qt(Jr(this.r),Jr(this.g),Jr(this.b),yl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fm,formatHex:Fm,formatHex8:jR,formatRgb:Hm,toString:Hm}));function Fm(){return`#${Kr(this.r)}${Kr(this.g)}${Kr(this.b)}`}function jR(){return`#${Kr(this.r)}${Kr(this.g)}${Kr(this.b)}${Kr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Hm(){const e=yl(this.opacity);return`${e===1?"rgb(":"rgba("}${Jr(this.r)}, ${Jr(this.g)}, ${Jr(this.b)}${e===1?")":`, ${e})`}`}function yl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kr(e){return e=Jr(e),(e<16?"0":"")+e.toString(16)}function Um(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Tn(e,t,n,r)}function Ob(e){if(e instanceof Tn)return new Tn(e.h,e.s,e.l,e.opacity);if(e instanceof Go||(e=uo(e)),!e)return new Tn;if(e instanceof Tn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n0&&l<1?0:o,new Tn(o,s,l,e.opacity)}function TR(e,t,n,r){return arguments.length===1?Ob(e):new Tn(e,t,n,r??1)}function Tn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Lh(Tn,TR,_b(Go,{brighter(e){return e=e==null?ml:Math.pow(ml,e),new Tn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?so:Math.pow(so,e),new Tn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Qt(Fc(e>=240?e-240:e+120,i,r),Fc(e,i,r),Fc(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Tn(Wm(this.h),$s(this.s),$s(this.l),yl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=yl(this.opacity);return`${e===1?"hsl(":"hsla("}${Wm(this.h)}, ${$s(this.s)*100}%, ${$s(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Wm(e){return e=(e||0)%360,e<0?e+360:e}function $s(e){return Math.max(0,Math.min(1,e||0))}function Fc(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Nh=e=>()=>e;function ER(e,t){return function(n){return e+n*t}}function MR(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function $R(e){return(e=+e)==1?kb:function(t,n){return n-t?MR(t,n,e):Nh(isNaN(t)?n:t)}}function kb(e,t){var n=t-e;return n?ER(e,n):Nh(isNaN(e)?t:e)}const Ym=function e(t){var n=$R(t);function r(i,a){var o=n((i=Qf(i)).r,(a=Qf(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),u=kb(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function IR(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:gl(r,i)})),n=Hc.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function YR(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?VR:YR,l=u=null,d}function d(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(r),t,n)))(r(o(h)))}return d.invert=function(h){return o(i((u||(u=s(t,e.map(r),gl)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,vl),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=Rh,f()},d.clamp=function(h){return arguments.length?(o=h?!0:Vt,f()):o!==Vt},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,m){return r=h,i=m,f()}}function Bh(){return xu()(Vt,Vt)}function GR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function xl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function zi(e){return e=xl(Math.abs(e)),e?e[1]:NaN}function qR(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function KR(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var XR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function co(e){if(!(t=XR.exec(e)))throw new Error("invalid format: "+e);var t;return new zh({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}co.prototype=zh.prototype;function zh(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}zh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function ZR(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Cb;function JR(e,t){var n=xl(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Cb=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+xl(e,Math.max(0,t+a-1))[0]}function Gm(e,t){var n=xl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const qm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Gm(e*100,t),r:Gm,s:JR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Km(e){return e}var Xm=Array.prototype.map,Zm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function QR(e){var t=e.grouping===void 0||e.thousands===void 0?Km:qR(Xm.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Km:KR(Xm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=co(d);var h=d.fill,m=d.align,g=d.sign,v=d.symbol,b=d.zero,_=d.width,C=d.comma,k=d.precision,A=d.trim,O=d.type;O==="n"?(C=!0,O="g"):qm[O]||(k===void 0&&(k=12),A=!0,O="g"),(b||h==="0"&&m==="=")&&(b=!0,h="0",m="=");var w=v==="$"?n:v==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",j=v==="$"?r:/[%p]/.test(O)?o:"",T=qm[O],I=/[defgprs%]/.test(O);k=k===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function B(M){var D=w,W=j,Y,V,X;if(O==="c")W=T(M)+W,M="";else{M=+M;var Z=M<0||1/M<0;if(M=isNaN(M)?l:T(Math.abs(M),k),A&&(M=ZR(M)),Z&&+M==0&&g!=="+"&&(Z=!1),D=(Z?g==="("?g:s:g==="-"||g==="("?"":g)+D,W=(O==="s"?Zm[8+Cb/3]:"")+W+(Z&&g==="("?")":""),I){for(Y=-1,V=M.length;++YX||X>57){W=(X===46?i+M.slice(Y+1):M.slice(Y))+W,M=M.slice(0,Y);break}}}C&&!b&&(M=t(M,1/0));var G=D.length+M.length+W.length,Q=G<_?new Array(_-G+1).join(h):"";switch(C&&b&&(M=t(Q+M,Q.length?_-W.length:1/0),Q=""),m){case"<":M=D+M+W+Q;break;case"=":M=D+Q+M+W;break;case"^":M=Q.slice(0,G=Q.length>>1)+D+M+W+Q.slice(G);break;default:M=Q+D+M+W;break}return a(M)}return B.toString=function(){return d+""},B}function f(d,h){var m=u((d=co(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(zi(h)/3)))*3,v=Math.pow(10,-g),b=Zm[8+g/3];return function(_){return m(v*_)+b}}return{format:u,formatPrefix:f}}var Is,Fh,Pb;eB({thousands:",",grouping:[3],currency:["$",""]});function eB(e){return Is=QR(e),Fh=Is.format,Pb=Is.formatPrefix,Is}function tB(e){return Math.max(0,-zi(Math.abs(e)))}function nB(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zi(t)/3)))*3-zi(Math.abs(e)))}function rB(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zi(t)-zi(e))+1}function Ab(e,t,n,r){var i=Zf(e,t,n),a;switch(r=co(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=nB(i,o))&&(r.precision=a),Pb(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=rB(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=tB(i))&&(r.precision=a-(r.type==="%")*2);break}}return Fh(r)}function Lr(e){var t=e.domain;return e.ticks=function(n){var r=t();return Kf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Ab(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,f=10;for(s0;){if(u=Xf(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function bl(){var e=Bh();return e.copy=function(){return qo(e,bl())},kn.apply(e,arguments),Lr(e)}function jb(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,vl),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return jb(e).unknown(t)},e=arguments.length?Array.from(e,vl):[0,1],Lr(n)}function Tb(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return aMath.pow(e,t)}function lB(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function ey(e){return(t,n)=>-e(-t,n)}function Hh(e){const t=e(Jm,Qm),n=t.domain;let r=10,i,a;function o(){return i=lB(r),a=sB(r),n()[0]<0?(i=ey(i),a=ey(a),e(iB,aB)):e(Jm,Qm),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const d=f0){for(;h<=m;++h)for(g=1;gf)break;_.push(v)}}else for(;h<=m;++h)for(g=r-1;g>=1;--g)if(v=h>0?g/a(-h):g*a(h),!(vf)break;_.push(v)}_.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=co(l)).precision==null&&(l.trim=!0),l=Fh(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/a(Math.round(i(f)));return d*rn(Tb(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function Eb(){const e=Hh(xu()).domain([1,10]);return e.copy=()=>qo(e,Eb()).base(e.base()),kn.apply(e,arguments),e}function ty(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ny(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Uh(e){var t=1,n=e(ty(t),ny(t));return n.constant=function(r){return arguments.length?e(ty(t=+r),ny(t)):t},Lr(n)}function Mb(){var e=Uh(xu());return e.copy=function(){return qo(e,Mb()).constant(e.constant())},kn.apply(e,arguments)}function ry(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function uB(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function cB(e){return e<0?-e*e:e*e}function Wh(e){var t=e(Vt,Vt),n=1;function r(){return n===1?e(Vt,Vt):n===.5?e(uB,cB):e(ry(n),ry(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Lr(t)}function Yh(){var e=Wh(xu());return e.copy=function(){return qo(e,Yh()).exponent(e.exponent())},kn.apply(e,arguments),e}function fB(){return Yh.apply(null,arguments).exponent(.5)}function iy(e){return Math.sign(e)*e*e}function dB(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $b(){var e=Bh(),t=[0,1],n=!1,r;function i(a){var o=dB(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(iy(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,vl)).map(iy)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return $b(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},kn.apply(i,arguments),Lr(i)}function Ib(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return Db().domain([e,t]).range(i).unknown(a)},kn.apply(Lr(o),arguments)}function Lb(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Vo(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Lb().domain(e).range(t).unknown(n)},kn.apply(i,arguments)}const Uc=new Date,Wc=new Date;function Ot(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(uOt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Uc.setTime(+a),Wc.setTime(+o),e(Uc),e(Wc),Math.floor(n(Uc,Wc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const wl=Ot(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);wl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ot(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):wl);wl.range;const nr=1e3,xn=nr*60,rr=xn*60,ur=rr*24,Vh=ur*7,ay=ur*30,Yc=ur*365,Xr=Ot(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getUTCSeconds());Xr.range;const Gh=Ot(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*nr)},(e,t)=>{e.setTime(+e+t*xn)},(e,t)=>(t-e)/xn,e=>e.getMinutes());Gh.range;const qh=Ot(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*xn)},(e,t)=>(t-e)/xn,e=>e.getUTCMinutes());qh.range;const Kh=Ot(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*nr-e.getMinutes()*xn)},(e,t)=>{e.setTime(+e+t*rr)},(e,t)=>(t-e)/rr,e=>e.getHours());Kh.range;const Xh=Ot(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*rr)},(e,t)=>(t-e)/rr,e=>e.getUTCHours());Xh.range;const Ko=Ot(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xn)/ur,e=>e.getDate()-1);Ko.range;const bu=Ot(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ur,e=>e.getUTCDate()-1);bu.range;const Nb=Ot(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ur,e=>Math.floor(e/ur));Nb.range;function ii(e){return Ot(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xn)/Vh)}const wu=ii(0),Sl=ii(1),hB=ii(2),pB=ii(3),Fi=ii(4),mB=ii(5),yB=ii(6);wu.range;Sl.range;hB.range;pB.range;Fi.range;mB.range;yB.range;function ai(e){return Ot(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Vh)}const Su=ai(0),_l=ai(1),gB=ai(2),vB=ai(3),Hi=ai(4),xB=ai(5),bB=ai(6);Su.range;_l.range;gB.range;vB.range;Hi.range;xB.range;bB.range;const Zh=Ot(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Zh.range;const Jh=Ot(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Jh.range;const cr=Ot(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());cr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ot(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});cr.range;const fr=Ot(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());fr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ot(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});fr.range;function Rb(e,t,n,r,i,a){const o=[[Xr,1,nr],[Xr,5,5*nr],[Xr,15,15*nr],[Xr,30,30*nr],[a,1,xn],[a,5,5*xn],[a,15,15*xn],[a,30,30*xn],[i,1,rr],[i,3,3*rr],[i,6,6*rr],[i,12,12*rr],[r,1,ur],[r,2,2*ur],[n,1,Vh],[t,1,ay],[t,3,3*ay],[e,1,Yc]];function s(u,f,d){const h=fb).right(o,h);if(m===o.length)return e.every(Zf(u/Yc,f/Yc,d));if(m===0)return wl.every(Math.max(Zf(u,f,d),1));const[g,v]=o[h/o[m-1][2]53)return null;"w"in ee||(ee.w=1),"Z"in ee?(he=Gc(ka(ee.y,0,1)),xe=he.getUTCDay(),he=xe>4||xe===0?_l.ceil(he):_l(he),he=bu.offset(he,(ee.V-1)*7),ee.y=he.getUTCFullYear(),ee.m=he.getUTCMonth(),ee.d=he.getUTCDate()+(ee.w+6)%7):(he=Vc(ka(ee.y,0,1)),xe=he.getDay(),he=xe>4||xe===0?Sl.ceil(he):Sl(he),he=Ko.offset(he,(ee.V-1)*7),ee.y=he.getFullYear(),ee.m=he.getMonth(),ee.d=he.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),xe="Z"in ee?Gc(ka(ee.y,0,1)).getUTCDay():Vc(ka(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(xe+5)%7:ee.w+ee.U*7-(xe+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,Gc(ee)):Vc(ee)}}function T(ae,de,ve,ee){for(var Ae=0,he=de.length,xe=ve.length,He,rt;Ae=xe)return-1;if(He=de.charCodeAt(Ae++),He===37){if(He=de.charAt(Ae++),rt=O[He in oy?de.charAt(Ae++):He],!rt||(ee=rt(ae,ve,ee))<0)return-1}else if(He!=ve.charCodeAt(ee++))return-1}return ee}function I(ae,de,ve){var ee=u.exec(de.slice(ve));return ee?(ae.p=f.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function B(ae,de,ve){var ee=m.exec(de.slice(ve));return ee?(ae.w=g.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function M(ae,de,ve){var ee=d.exec(de.slice(ve));return ee?(ae.w=h.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function D(ae,de,ve){var ee=_.exec(de.slice(ve));return ee?(ae.m=C.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function W(ae,de,ve){var ee=v.exec(de.slice(ve));return ee?(ae.m=b.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function Y(ae,de,ve){return T(ae,t,de,ve)}function V(ae,de,ve){return T(ae,n,de,ve)}function X(ae,de,ve){return T(ae,r,de,ve)}function Z(ae){return o[ae.getDay()]}function G(ae){return a[ae.getDay()]}function Q(ae){return l[ae.getMonth()]}function E(ae){return s[ae.getMonth()]}function pe(ae){return i[+(ae.getHours()>=12)]}function ue(ae){return 1+~~(ae.getMonth()/3)}function $(ae){return o[ae.getUTCDay()]}function _e(ae){return a[ae.getUTCDay()]}function te(ae){return l[ae.getUTCMonth()]}function ge(ae){return s[ae.getUTCMonth()]}function Ye(ae){return i[+(ae.getUTCHours()>=12)]}function Me(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var de=w(ae+="",k);return de.toString=function(){return ae},de},parse:function(ae){var de=j(ae+="",!1);return de.toString=function(){return ae},de},utcFormat:function(ae){var de=w(ae+="",A);return de.toString=function(){return ae},de},utcParse:function(ae){var de=j(ae+="",!0);return de.toString=function(){return ae},de}}}var oy={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,CB=/^%/,PB=/[\\^$*+?|[\]().{}]/g;function Fe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a[t.toLowerCase(),n]))}function jB(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function TB(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function EB(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function MB(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $B(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function sy(e,t,n){var r=jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ly(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function IB(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function DB(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function LB(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function uy(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function NB(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function cy(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function RB(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function BB(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function zB(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function FB(e,t,n){var r=jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function HB(e,t,n){var r=CB.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function UB(e,t,n){var r=jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function WB(e,t,n){var r=jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function fy(e,t){return Fe(e.getDate(),t,2)}function YB(e,t){return Fe(e.getHours(),t,2)}function VB(e,t){return Fe(e.getHours()%12||12,t,2)}function GB(e,t){return Fe(1+Ko.count(cr(e),e),t,3)}function Bb(e,t){return Fe(e.getMilliseconds(),t,3)}function qB(e,t){return Bb(e,t)+"000"}function KB(e,t){return Fe(e.getMonth()+1,t,2)}function XB(e,t){return Fe(e.getMinutes(),t,2)}function ZB(e,t){return Fe(e.getSeconds(),t,2)}function JB(e){var t=e.getDay();return t===0?7:t}function QB(e,t){return Fe(wu.count(cr(e)-1,e),t,2)}function zb(e){var t=e.getDay();return t>=4||t===0?Fi(e):Fi.ceil(e)}function ez(e,t){return e=zb(e),Fe(Fi.count(cr(e),e)+(cr(e).getDay()===4),t,2)}function tz(e){return e.getDay()}function nz(e,t){return Fe(Sl.count(cr(e)-1,e),t,2)}function rz(e,t){return Fe(e.getFullYear()%100,t,2)}function iz(e,t){return e=zb(e),Fe(e.getFullYear()%100,t,2)}function az(e,t){return Fe(e.getFullYear()%1e4,t,4)}function oz(e,t){var n=e.getDay();return e=n>=4||n===0?Fi(e):Fi.ceil(e),Fe(e.getFullYear()%1e4,t,4)}function sz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Fe(t/60|0,"0",2)+Fe(t%60,"0",2)}function dy(e,t){return Fe(e.getUTCDate(),t,2)}function lz(e,t){return Fe(e.getUTCHours(),t,2)}function uz(e,t){return Fe(e.getUTCHours()%12||12,t,2)}function cz(e,t){return Fe(1+bu.count(fr(e),e),t,3)}function Fb(e,t){return Fe(e.getUTCMilliseconds(),t,3)}function fz(e,t){return Fb(e,t)+"000"}function dz(e,t){return Fe(e.getUTCMonth()+1,t,2)}function hz(e,t){return Fe(e.getUTCMinutes(),t,2)}function pz(e,t){return Fe(e.getUTCSeconds(),t,2)}function mz(e){var t=e.getUTCDay();return t===0?7:t}function yz(e,t){return Fe(Su.count(fr(e)-1,e),t,2)}function Hb(e){var t=e.getUTCDay();return t>=4||t===0?Hi(e):Hi.ceil(e)}function gz(e,t){return e=Hb(e),Fe(Hi.count(fr(e),e)+(fr(e).getUTCDay()===4),t,2)}function vz(e){return e.getUTCDay()}function xz(e,t){return Fe(_l.count(fr(e)-1,e),t,2)}function bz(e,t){return Fe(e.getUTCFullYear()%100,t,2)}function wz(e,t){return e=Hb(e),Fe(e.getUTCFullYear()%100,t,2)}function Sz(e,t){return Fe(e.getUTCFullYear()%1e4,t,4)}function _z(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Hi(e):Hi.ceil(e),Fe(e.getUTCFullYear()%1e4,t,4)}function Oz(){return"+0000"}function hy(){return"%"}function py(e){return+e}function my(e){return Math.floor(+e/1e3)}var gi,Ub,Wb;kz({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function kz(e){return gi=kB(e),Ub=gi.format,gi.parse,Wb=gi.utcFormat,gi.utcParse,gi}function Cz(e){return new Date(e)}function Pz(e){return e instanceof Date?+e:+new Date(+e)}function Qh(e,t,n,r,i,a,o,s,l,u){var f=Bh(),d=f.invert,h=f.domain,m=u(".%L"),g=u(":%S"),v=u("%I:%M"),b=u("%I %p"),_=u("%a %d"),C=u("%b %d"),k=u("%B"),A=u("%Y");function O(w){return(l(w)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>yR(e,a/r))},n.copy=function(){return qb(t).domain(e)},dr.apply(n,arguments)}function Ou(){var e=0,t=.5,n=1,r=1,i,a,o,s,l,u=Vt,f,d=!1,h;function m(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(r*vt}var Dz=Iz,Lz=Jb,Nz=Dz,Rz=ia;function Bz(e){return e&&e.length?Lz(e,Rz,Nz):void 0}var zz=Bz;const ku=st(zz);function Fz(e,t){return ee.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};fe.decimalPlaces=fe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};fe.dividedBy=fe.div=function(e){return sr(this,new this.constructor(e))};fe.dividedToIntegerBy=fe.idiv=function(e){var t=this,n=t.constructor;return Qe(sr(t,new n(e),0,1),n.precision)};fe.equals=fe.eq=function(e){return!this.cmp(e)};fe.exponent=function(){return bt(this)};fe.greaterThan=fe.gt=function(e){return this.cmp(e)>0};fe.greaterThanOrEqualTo=fe.gte=function(e){return this.cmp(e)>=0};fe.isInteger=fe.isint=function(){return this.e>this.d.length-2};fe.isNegative=fe.isneg=function(){return this.s<0};fe.isPositive=fe.ispos=function(){return this.s>0};fe.isZero=function(){return this.s===0};fe.lessThan=fe.lt=function(e){return this.cmp(e)<0};fe.lessThanOrEqualTo=fe.lte=function(e){return this.cmp(e)<1};fe.logarithm=fe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(ln))throw Error(wn+"NaN");if(n.s<1)throw Error(wn+(n.s?"NaN":"-Infinity"));return n.eq(ln)?new r(0):(ct=!1,t=sr(fo(n,a),fo(e,a),a),ct=!0,Qe(t,i))};fe.minus=fe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?n2(t,e):e2(t,(e.s=-e.s,e))};fe.modulo=fe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(wn+"NaN");return n.s?(ct=!1,t=sr(n,e,0,1).times(e),ct=!0,n.minus(t)):Qe(new r(n),i)};fe.naturalExponential=fe.exp=function(){return t2(this)};fe.naturalLogarithm=fe.ln=function(){return fo(this)};fe.negated=fe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};fe.plus=fe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?e2(t,e):n2(t,(e.s=-e.s,e))};fe.precision=fe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qr+e);if(t=bt(i)+1,r=i.d.length-1,n=r*ot+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};fe.squareRoot=fe.sqrt=function(){var e,t,n,r,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(wn+"NaN")}for(e=bt(s),ct=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Bn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=la((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=o=n+3;;)if(a=r,r=a.plus(sr(s,a,o+2)).times(.5),Bn(a.d).slice(0,o)===(t=Bn(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Qe(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!="9999")break;o+=4}return ct=!0,Qe(r,n)};fe.times=fe.mul=function(e){var t,n,r,i,a,o,s,l,u,f=this,d=f.constructor,h=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=h.length,u=m.length,l=0;){for(t=0,i=l+r;i>r;)s=a[i]+m[r]*h[i-r-1]+t,a[i--]=s%Pt|0,t=s/Pt|0;a[i]=(a[i]+t)%Pt|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,ct?Qe(e,d.precision):e};fe.toDecimalPlaces=fe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Wn(e,0,sa),t===void 0?t=r.rounding:Wn(t,0,8),Qe(n,e+bt(n)+1,t))};fe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ni(r,!0):(Wn(e,0,sa),t===void 0?t=i.rounding:Wn(t,0,8),r=Qe(new i(r),e+1,t),n=ni(r,!0,e+1)),n};fe.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?ni(i):(Wn(e,0,sa),t===void 0?t=a.rounding:Wn(t,0,8),r=Qe(new a(i),e+bt(i)+1,t),n=ni(r.abs(),!1,e+bt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};fe.toInteger=fe.toint=function(){var e=this,t=e.constructor;return Qe(new t(e),bt(e)+1,t.rounding)};fe.toNumber=function(){return+this};fe.toPower=fe.pow=function(e){var t,n,r,i,a,o,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(ln);if(s=new l(s),!s.s){if(e.s<1)throw Error(wn+"Infinity");return s}if(s.eq(ln))return s;if(r=l.precision,e.eq(ln))return Qe(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,o){if((n=f<0?-f:f)<=Qb){for(i=new l(ln),t=Math.ceil(r/ot+4),ct=!1;n%2&&(i=i.times(s),vy(i.d,t)),n=la(n/2),n!==0;)s=s.times(s),vy(s.d,t);return ct=!0,e.s<0?new l(ln).div(i):Qe(i,r)}}else if(a<0)throw Error(wn+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,ct=!1,i=e.times(fo(s,r+u)),ct=!0,i=t2(i),i.s=a,i};fe.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=bt(i),r=ni(i,n<=a.toExpNeg||n>=a.toExpPos)):(Wn(e,1,sa),t===void 0?t=a.rounding:Wn(t,0,8),i=Qe(new a(i),e,t),n=bt(i),r=ni(i,e<=n||n<=a.toExpNeg,e)),r};fe.toSignificantDigits=fe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Wn(e,1,sa),t===void 0?t=r.rounding:Wn(t,0,8)),Qe(new r(n),e,t)};fe.toString=fe.valueOf=fe.val=fe.toJSON=fe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),n=e.constructor;return ni(e,t<=n.toExpNeg||t>=n.toExpPos)};function e2(e,t){var n,r,i,a,o,s,l,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ct?Qe(t,d):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(r=l,a=-a,s=u.length):(r=u,i=o,s=l.length),o=Math.ceil(d/ot),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,r=u,u=l,l=r),n=0;a;)n=(l[--a]=l[a]+u[a]+n)/Pt|0,l[a]%=Pt;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ct?Qe(t,d):t}function Wn(e,t,n){if(e!==~~e||en)throw Error(Qr+e)}function Bn(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(s=l=0;si[s]?1:-1;break}return l}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]1;)r.shift()}return function(r,i,a,o){var s,l,u,f,d,h,m,g,v,b,_,C,k,A,O,w,j,T,I=r.constructor,B=r.s==i.s?1:-1,M=r.d,D=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(wn+"Division by zero");for(l=r.e-i.e,j=D.length,O=M.length,m=new I(B),g=m.d=[],u=0;D[u]==(M[u]||0);)++u;if(D[u]>(M[u]||0)&&--l,a==null?C=a=I.precision:o?C=a+(bt(r)-bt(i))+1:C=a,C<0)return new I(0);if(C=C/ot+2|0,u=0,j==1)for(f=0,D=D[0],C++;(u1&&(D=e(D,f),M=e(M,f),j=D.length,O=M.length),A=j,v=M.slice(0,j),b=v.length;b=Pt/2&&++w;do f=0,s=t(D,v,j,b),s<0?(_=v[0],j!=b&&(_=_*Pt+(v[1]||0)),f=_/w|0,f>1?(f>=Pt&&(f=Pt-1),d=e(D,f),h=d.length,b=v.length,s=t(d,v,h,b),s==1&&(f--,n(d,j16)throw Error(np+bt(e));if(!e.s)return new f(ln);for(t==null?(ct=!1,s=d):s=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(Yr(2,u))/Math.LN10*2+5|0,s+=r,n=i=a=new f(ln),f.precision=s;;){if(i=Qe(i.times(e),s),n=n.times(++l),o=a.plus(sr(i,n,s)),Bn(o.d).slice(0,s)===Bn(a.d).slice(0,s)){for(;u--;)a=Qe(a.times(a),s);return f.precision=d,t==null?(ct=!0,Qe(a,d)):a}a=o}}function bt(e){for(var t=e.e*ot,n=e.d[0];n>=10;n/=10)t++;return t}function qc(e,t,n){if(t>e.LN10.sd())throw ct=!0,n&&(e.precision=n),Error(wn+"LN10 precision limit exceeded");return Qe(new e(e.LN10),t)}function Cr(e){for(var t="";e--;)t+="0";return t}function fo(e,t){var n,r,i,a,o,s,l,u,f,d=1,h=10,m=e,g=m.d,v=m.constructor,b=v.precision;if(m.s<1)throw Error(wn+(m.s?"NaN":"-Infinity"));if(m.eq(ln))return new v(0);if(t==null?(ct=!1,u=b):u=t,m.eq(10))return t==null&&(ct=!0),qc(v,u);if(u+=h,v.precision=u,n=Bn(g),r=n.charAt(0),a=bt(m),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=Bn(m.d),r=n.charAt(0),d++;a=bt(m),r>1?(m=new v("0."+n),a++):m=new v(r+"."+n.slice(1))}else return l=qc(v,u+2,b).times(a+""),m=fo(new v(r+"."+n.slice(1)),u-h).plus(l),v.precision=b,t==null?(ct=!0,Qe(m,b)):m;for(s=o=m=sr(m.minus(ln),m.plus(ln),u),f=Qe(m.times(m),u),i=3;;){if(o=Qe(o.times(f),u),l=s.plus(sr(o,new v(i),u)),Bn(l.d).slice(0,u)===Bn(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(qc(v,u+2,b).times(a+""))),s=sr(s,new v(d),u),v.precision=b,t==null?(ct=!0,Qe(s,b)):s;s=l,i+=2}}function gy(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=la(n/ot),e.d=[],r=(n+1)%ot,n<0&&(r+=ot),rOl||e.e<-Ol))throw Error(np+n)}else e.s=0,e.e=0,e.d=[0];return e}function Qe(e,t,n){var r,i,a,o,s,l,u,f,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=ot,i=t,u=d[f=0];else{if(f=Math.ceil((r+1)/ot),a=d.length,f>=a)return e;for(u=a=d[f],o=1;a>=10;a/=10)o++;r%=ot,i=r-ot+o}if(n!==void 0&&(a=Yr(10,o-i-1),s=u/a%10|0,l=t<0||d[f+1]!==void 0||u%a,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Yr(10,o-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(a=bt(e),d.length=1,t=t-a-1,d[0]=Yr(10,(ot-t%ot)%ot),e.e=la(-t/ot)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,a=1,f--):(d.length=f+1,a=Yr(10,ot-r),d[f]=i>0?(u/Yr(10,o-i)%Yr(10,i)|0)*a:0),l)for(;;)if(f==0){(d[0]+=a)==Pt&&(d[0]=1,++e.e);break}else{if(d[f]+=a,d[f]!=Pt)break;d[f--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(ct&&(e.e>Ol||e.e<-Ol))throw Error(np+bt(e));return e}function n2(e,t){var n,r,i,a,o,s,l,u,f,d,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ct?Qe(t,m):t;if(l=e.d,d=t.d,r=t.e,u=e.e,l=l.slice(),o=u-r,o){for(f=o<0,f?(n=l,o=-o,s=d.length):(n=d,r=u,s=l.length),i=Math.max(Math.ceil(m/ot),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,f=i0;--i)l[s++]=0;for(i=d.length;i>o;){if(l[--i]0?a=a.charAt(0)+"."+a.slice(1)+Cr(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Cr(-i-1)+a,n&&(r=n-o)>0&&(a+=Cr(r))):i>=o?(a+=Cr(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+Cr(r))):((r=i+1)0&&(i+1===o&&(a+="."),a+=Cr(r))),e.s<0?"-"+a:a}function vy(e,t){if(e.length>t)return e.length=t,!0}function r2(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Qr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return gy(o,a.toString())}else if(typeof a!="string")throw Error(Qr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,uF.test(a))gy(o,a);else throw Error(Qr+a)}if(i.prototype=fe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=r2,i.config=i.set=cF,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Qr+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Qr+n+": "+r);return this}var rp=r2(lF);ln=new rp(1);const Xe=rp;function fF(e){return mF(e)||pF(e)||hF(e)||dF()}function dF(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hF(e,t){if(e){if(typeof e=="string")return nd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nd(e,t)}}function pF(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function mF(e){if(Array.isArray(e))return nd(e)}function nd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,i):e(t-o,xy(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,a=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function TF(e){if(Array.isArray(e))return e}function l2(e){var t=ho(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function u2(e,t,n){if(e.lte(0))return new Xe(0);var r=ju.getDigitCount(e.toNumber()),i=new Xe(10).pow(r),a=e.div(i),o=r!==1?.05:.1,s=new Xe(Math.ceil(a.div(o).toNumber())).add(n).mul(o),l=s.mul(i);return t?l:new Xe(Math.ceil(l))}function EF(e,t,n){var r=1,i=new Xe(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Xe(10).pow(ju.getDigitCount(e)-1),i=new Xe(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Xe(Math.floor(e)))}else e===0?i=new Xe(Math.floor((t-1)/2)):n||(i=new Xe(Math.floor(e)));var o=Math.floor((t-1)/2),s=xF(vF(function(l){return i.add(new Xe(l-o).mul(r)).toNumber()}),rd);return s(0,t)}function c2(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Xe(0),tickMin:new Xe(0),tickMax:new Xe(0)};var a=u2(new Xe(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Xe(0):(o=new Xe(e).add(t).div(2),o=o.sub(new Xe(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Xe(t).sub(o).div(a).toNumber()),u=s+l+1;return u>n?c2(e,t,n,r,i+1):(u0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:a,tickMin:o.sub(new Xe(s).mul(a)),tickMax:o.add(new Xe(l).mul(a))})}function MF(e){var t=ho(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=l2([n,r]),l=ho(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(ad(rd(0,i-1).map(function(){return 1/0}))):[].concat(ad(rd(0,i-1).map(function(){return-1/0})),[f]);return n>r?id(d):d}if(u===f)return EF(u,i,a);var h=c2(u,f,o,a),m=h.step,g=h.tickMin,v=h.tickMax,b=ju.rangeStep(g,v.add(new Xe(.1).mul(m)),m);return n>r?id(b):b}function $F(e,t){var n=ho(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=l2([r,i]),s=ho(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var f=Math.max(t,2),d=u2(new Xe(u).sub(l).div(f-1),a,0),h=[].concat(ad(ju.rangeStep(new Xe(l),new Xe(u).sub(new Xe(.99).mul(d)),d)),[u]);return r>i?id(h):h}var IF=o2(MF),DF=o2($F),LF=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Zo(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=HF(e,LF),f=Le(u),d=a.map(function(h){var m=o(h,i),g=m.x,v=m.y,b=m.value,_=m.errorVal;if(!_)return null;var C=[],k,A;if(Array.isArray(_)){var O=NF(_,2);k=O[0],A=O[1]}else k=A=_;if(n==="vertical"){var w=s.scale,j=v+t,T=j+r,I=j-r,B=w(b-k),M=w(b+A);C.push({x1:M,y1:T,x2:M,y2:I}),C.push({x1:B,y1:j,x2:M,y2:j}),C.push({x1:B,y1:T,x2:B,y2:I})}else if(n==="horizontal"){var D=l.scale,W=g+t,Y=W-r,V=W+r,X=D(b-k),Z=D(b+A);C.push({x1:Y,y1:Z,x2:V,y2:Z}),C.push({x1:W,y1:X,x2:W,y2:Z}),C.push({x1:Y,y1:X,x2:V,y2:X})}return U.createElement(dt,Cl({className:"recharts-errorBar",key:"bar-".concat(C.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},f),C.map(function(G){return U.createElement("line",Cl({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return U.createElement(dt,{className:"recharts-errorBars"},d)}Zo.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Zo.displayName="ErrorBar";function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u0?i[u-1].coordinate:i[s-1].coordinate,d=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,m=void 0;if(Mn(d-f)!==Mn(h-d)){var g=[];if(Mn(h-d)===Mn(l[1]-l[0])){m=h;var v=d+l[1]-l[0];g[0]=Math.min(v,(v+f)/2),g[1]=Math.max(v,(v+f)/2)}else{m=f;var b=h+l[1]-l[0];g[0]=Math.min(d,(b+d)/2),g[1]=Math.max(d,(b+d)/2)}var _=[Math.min(d,(m+d)/2),Math.max(d,(m+d)/2)];if(t>_[0]&&t<=_[1]||t>=g[0]&&t<=g[1]){o=i[u].index;break}}else{var C=Math.min(f,h),k=Math.max(f,h);if(t>(C+d)/2&&t<=(k+d)/2){o=i[u].index;break}}}else for(var A=0;A0&&A(r[A].coordinate+r[A-1].coordinate)/2&&t<=(r[A].coordinate+r[A+1].coordinate)/2||A===s-1&&t>(r[A].coordinate+r[A-1].coordinate)/2){o=r[A].index;break}return o},ip=function(t){var n=t,r=n.type.displayName,i=t.props,a=i.stroke,o=i.fill,s;switch(r){case"Line":s=a;break;case"Area":case"Radar":s=a&&a!=="none"?a:o;break;default:s=o;break}return s},eH=function(t){var n=t.barSize,r=t.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var a={},o=Object.keys(i),s=0,l=o.length;s=0});if(b&&b.length){var _=b[0].props.barSize,C=b[0].props[v];a[C]||(a[C]=[]),a[C].push({item:b[0],stackList:b.slice(1),barSize:Ee(_)?n:_})}}return a},tH=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=Mi(n,i,0,!0),f,d=[];if(o[0].barSize===+o[0].barSize){var h=!1,m=i/l,g=o.reduce(function(A,O){return A+O.barSize||0},0);g+=(l-1)*u,g>=i&&(g-=(l-1)*u,u=0),g>=i&&m>0&&(h=!0,m*=.9,g=l*m);var v=(i-g)/2>>0,b={offset:v-u,size:0};f=o.reduce(function(A,O){var w={item:O.item,position:{offset:b.offset+b.size+u,size:h?m:O.barSize}},j=[].concat(_y(A),[w]);return b=j[j.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(T){j.push({item:T,position:b})}),j},d)}else{var _=Mi(r,i,0,!0);i-2*_-(l-1)*u<=0&&(u=0);var C=(i-2*_-(l-1)*u)/l;C>1&&(C>>=0);var k=s===+s?Math.min(C,s):C;f=o.reduce(function(A,O,w){var j=[].concat(_y(A),[{item:O.item,position:{offset:_+(C+u)*w+(C-k)/2,size:k}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(T){j.push({item:T,position:j[j.length-1].position})}),j},d)}return f},nH=function(t,n,r,i){var a=r.children,o=r.width,s=r.margin,l=o-(s.left||0)-(s.right||0),u=f2({children:a,legendWidth:l});if(u){var f=i||{},d=f.width,h=f.height,m=u.align,g=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&g==="middle")&&m!=="center"&&le(t[m]))return vn(vn({},t),{},ji({},m,t[m]+(d||0)));if((v==="horizontal"||v==="vertical"&&m==="center")&&g!=="middle"&&le(t[g]))return vn(vn({},t),{},ji({},g,t[g]+(h||0)))}return t},rH=function(t,n,r){return Ee(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},d2=function(t,n,r,i,a){var o=n.props.children,s=cn(o,Zo).filter(function(u){return rH(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=Gt(f,r,0),h=Array.isArray(d)?[Cu(d),ku(d)]:[d,d],m=l.reduce(function(g,v){var b=Gt(f,v,0),_=h[0]-Math.abs(Array.isArray(b)?b[0]:b),C=h[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(_,g[0]),Math.max(C,g[1])]},[1/0,-1/0]);return[Math.min(m[0],u[0]),Math.max(m[1],u[1])]},[1/0,-1/0])}return null},iH=function(t,n,r,i,a){var o=n.map(function(s){return d2(t,s,r,a,i)}).filter(function(s){return!Ee(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},h2=function(t,n,r,i,a){var o=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&d2(t,l,u,i)||Ua(t,u,r,a)});if(r==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var f=0,d=u.length;f=2?Mn(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var h=a?a.indexOf(d):d;return{coordinate:i(h)+u,value:d,offset:u}});return f.filter(function(d){return!Yo(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:i(d)+u,value:d,index:h,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+u,value:d,offset:u}}):i.domain().map(function(d,h){return{coordinate:i(d)+u,value:a?a[d]:d,index:h,offset:u}})},Xc=new WeakMap,Ls=function(t,n){if(typeof n!="function")return t;Xc.has(t)||Xc.set(t,new WeakMap);var r=Xc.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},aH=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:oo(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:wl(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ha(),realScaleType:"point"}:a==="category"?{scale:oo(),realScaleType:"band"}:{scale:wl(),realScaleType:"linear"};if(Wo(i)){var l="scale".concat(du(i));return{scale:(yy[l]||Ha)(),realScaleType:yy[l]?l:"point"}}return Te(i)?{scale:i}:{scale:Ha(),realScaleType:"point"}},ky=1e-4,oH=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-ky,o=Math.max(i[0],i[1])+ky,s=t(n[0]),l=t(n[r-1]);(so||lo)&&t.domain([n[0],n[r-1]])}},sH=function(t,n){if(!t)return null;for(var r=0,i=t.length;ri)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1]):(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1])}},cH=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r=0?(t[o][r][0]=a,t[o][r][1]=a+s,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},fH={sign:uH,expand:eT,none:$i,silhouette:tT,wiggle:nT,positive:cH},dH=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),a=fH[r],o=Qj().keys(i).value(function(s,l){return+Gt(s,l,0)}).order(Ef).offset(a);return o(t)},hH=function(t,n,r,i,a,o){if(!t)return null;var s=o?n.reverse():n,l={},u=s.reduce(function(d,h){var m=h.props,g=m.stackId,v=m.hide;if(v)return d;var b=h.props[r],_=d[b]||{hasStack:!1,stackGroups:{}};if(_t(g)){var C=_.stackGroups[g]||{numericAxisId:r,cateAxisId:i,items:[]};C.items.push(h),_.hasStack=!0,_.stackGroups[g]=C}else _.stackGroups[Vo("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[h]};return vn(vn({},d),{},ji({},b,_))},l),f={};return Object.keys(u).reduce(function(d,h){var m=u[h];if(m.hasStack){var g={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(v,b){var _=m.stackGroups[b];return vn(vn({},v),{},ji({},b,{numericAxisId:r,cateAxisId:i,items:_.items,stackedData:dH(t,_.items,a)}))},g)}return vn(vn({},d),{},ji({},h,m))},f)},pH=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=IF(u,a,s);return t.domain([Cu(f),ku(f)]),{niceTicks:f}}if(a&&i==="number"){var d=t.domain(),h=DF(d,a,s);return{niceTicks:h}}return null},Cy=function(t){var n=t.axis,r=t.ticks,i=t.bandSize,a=t.entry,o=t.index,s=t.dataKey;if(n.type==="category"){if(!n.allowDuplicatedCategory&&n.dataKey&&!Ee(a[n.dataKey])){var l=Zs(r,"value",a[n.dataKey]);if(l)return l.coordinate+i/2}return r[o]?r[o].coordinate+i/2:null}var u=Gt(a,Ee(s)?n.dataKey:s);return Ee(u)?null:n.scale(u)},Py=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+i:null;var l=Gt(o,n.dataKey,n.domain[s]);return Ee(l)?null:n.scale(l)-a/2+i},mH=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},yH=function(t,n){var r=t.props.stackId;if(_t(r)){var i=n[r];if(i){var a=i.items.indexOf(t);return a>=0?i.stackedData[a]:null}}return null},gH=function(t){return t.reduce(function(n,r){return[Cu(r.concat([n[0]]).filter(le)),ku(r.concat([n[1]]).filter(le))]},[1/0,-1/0])},m2=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,f){var d=gH(f.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Ay=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jy=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ld=function(t,n,r){if(Te(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(le(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(Ay.test(t[0])){var a=+Ay.exec(t[0])[1];i[0]=n[0]-a}else Te(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(le(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(jy.test(t[1])){var o=+jy.exec(t[1])[1];i[1]=n[1]+o}else Te(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Pl=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=Th(n,function(d){return d.coordinate}),o=1/0,s=1,l=a.length;so&&(u=2*Math.PI-u),{radius:s,angle:wH(u),angleInRadian:u}},OH=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},kH=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},$y=function(t,n){var r=t.x,i=t.y,a=_H({x:r,y:i},n),o=a.radius,s=a.angle,l=n.innerRadius,u=n.outerRadius;if(ou)return!1;if(o===0)return!0;var f=OH(n),d=f.startAngle,h=f.endAngle,m=s,g;if(d<=h){for(;m>h;)m-=360;for(;m=d&&m<=h}else{for(;m>d;)m-=360;for(;m=h&&m<=d}return g?My(My({},n),{},{radius:o,angle:kH(m,n)}):null};function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}var CH=["offset"];function PH(e){return EH(e)||TH(e)||jH(e)||AH()}function AH(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s2(e,t){if(e){if(typeof e=="string")return od(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return od(e,t)}}function od(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,a=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function TF(e){if(Array.isArray(e))return e}function l2(e){var t=ho(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function u2(e,t,n){if(e.lte(0))return new Xe(0);var r=ju.getDigitCount(e.toNumber()),i=new Xe(10).pow(r),a=e.div(i),o=r!==1?.05:.1,s=new Xe(Math.ceil(a.div(o).toNumber())).add(n).mul(o),l=s.mul(i);return t?l:new Xe(Math.ceil(l))}function EF(e,t,n){var r=1,i=new Xe(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Xe(10).pow(ju.getDigitCount(e)-1),i=new Xe(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Xe(Math.floor(e)))}else e===0?i=new Xe(Math.floor((t-1)/2)):n||(i=new Xe(Math.floor(e)));var o=Math.floor((t-1)/2),s=xF(vF(function(l){return i.add(new Xe(l-o).mul(r)).toNumber()}),rd);return s(0,t)}function c2(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Xe(0),tickMin:new Xe(0),tickMax:new Xe(0)};var a=u2(new Xe(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Xe(0):(o=new Xe(e).add(t).div(2),o=o.sub(new Xe(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Xe(t).sub(o).div(a).toNumber()),u=s+l+1;return u>n?c2(e,t,n,r,i+1):(u0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:a,tickMin:o.sub(new Xe(s).mul(a)),tickMax:o.add(new Xe(l).mul(a))})}function MF(e){var t=ho(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=l2([n,r]),l=ho(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(ad(rd(0,i-1).map(function(){return 1/0}))):[].concat(ad(rd(0,i-1).map(function(){return-1/0})),[f]);return n>r?id(d):d}if(u===f)return EF(u,i,a);var h=c2(u,f,o,a),m=h.step,g=h.tickMin,v=h.tickMax,b=ju.rangeStep(g,v.add(new Xe(.1).mul(m)),m);return n>r?id(b):b}function $F(e,t){var n=ho(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=l2([r,i]),s=ho(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var f=Math.max(t,2),d=u2(new Xe(u).sub(l).div(f-1),a,0),h=[].concat(ad(ju.rangeStep(new Xe(l),new Xe(u).sub(new Xe(.99).mul(d)),d)),[u]);return r>i?id(h):h}var IF=o2(MF),DF=o2($F),LF=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Xo(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=HF(e,LF),f=Le(u),d=a.map(function(h){var m=o(h,i),g=m.x,v=m.y,b=m.value,_=m.errorVal;if(!_)return null;var C=[],k,A;if(Array.isArray(_)){var O=NF(_,2);k=O[0],A=O[1]}else k=A=_;if(n==="vertical"){var w=s.scale,j=v+t,T=j+r,I=j-r,B=w(b-k),M=w(b+A);C.push({x1:M,y1:T,x2:M,y2:I}),C.push({x1:B,y1:j,x2:M,y2:j}),C.push({x1:B,y1:T,x2:B,y2:I})}else if(n==="horizontal"){var D=l.scale,W=g+t,Y=W-r,V=W+r,X=D(b-k),Z=D(b+A);C.push({x1:Y,y1:Z,x2:V,y2:Z}),C.push({x1:W,y1:X,x2:W,y2:Z}),C.push({x1:Y,y1:X,x2:V,y2:X})}return U.createElement(dt,kl({className:"recharts-errorBar",key:"bar-".concat(C.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},f),C.map(function(G){return U.createElement("line",kl({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return U.createElement(dt,{className:"recharts-errorBars"},d)}Xo.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Xo.displayName="ErrorBar";function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u0?i[u-1].coordinate:i[s-1].coordinate,d=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,m=void 0;if(Mn(d-f)!==Mn(h-d)){var g=[];if(Mn(h-d)===Mn(l[1]-l[0])){m=h;var v=d+l[1]-l[0];g[0]=Math.min(v,(v+f)/2),g[1]=Math.max(v,(v+f)/2)}else{m=f;var b=h+l[1]-l[0];g[0]=Math.min(d,(b+d)/2),g[1]=Math.max(d,(b+d)/2)}var _=[Math.min(d,(m+d)/2),Math.max(d,(m+d)/2)];if(t>_[0]&&t<=_[1]||t>=g[0]&&t<=g[1]){o=i[u].index;break}}else{var C=Math.min(f,h),k=Math.max(f,h);if(t>(C+d)/2&&t<=(k+d)/2){o=i[u].index;break}}}else for(var A=0;A0&&A(r[A].coordinate+r[A-1].coordinate)/2&&t<=(r[A].coordinate+r[A+1].coordinate)/2||A===s-1&&t>(r[A].coordinate+r[A-1].coordinate)/2){o=r[A].index;break}return o},ip=function(t){var n=t,r=n.type.displayName,i=t.props,a=i.stroke,o=i.fill,s;switch(r){case"Line":s=a;break;case"Area":case"Radar":s=a&&a!=="none"?a:o;break;default:s=o;break}return s},eH=function(t){var n=t.barSize,r=t.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var a={},o=Object.keys(i),s=0,l=o.length;s=0});if(b&&b.length){var _=b[0].props.barSize,C=b[0].props[v];a[C]||(a[C]=[]),a[C].push({item:b[0],stackList:b.slice(1),barSize:Ee(_)?n:_})}}return a},tH=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=Mi(n,i,0,!0),f,d=[];if(o[0].barSize===+o[0].barSize){var h=!1,m=i/l,g=o.reduce(function(A,O){return A+O.barSize||0},0);g+=(l-1)*u,g>=i&&(g-=(l-1)*u,u=0),g>=i&&m>0&&(h=!0,m*=.9,g=l*m);var v=(i-g)/2>>0,b={offset:v-u,size:0};f=o.reduce(function(A,O){var w={item:O.item,position:{offset:b.offset+b.size+u,size:h?m:O.barSize}},j=[].concat(_y(A),[w]);return b=j[j.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(T){j.push({item:T,position:b})}),j},d)}else{var _=Mi(r,i,0,!0);i-2*_-(l-1)*u<=0&&(u=0);var C=(i-2*_-(l-1)*u)/l;C>1&&(C>>=0);var k=s===+s?Math.min(C,s):C;f=o.reduce(function(A,O,w){var j=[].concat(_y(A),[{item:O.item,position:{offset:_+(C+u)*w+(C-k)/2,size:k}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(T){j.push({item:T,position:j[j.length-1].position})}),j},d)}return f},nH=function(t,n,r,i){var a=r.children,o=r.width,s=r.margin,l=o-(s.left||0)-(s.right||0),u=f2({children:a,legendWidth:l});if(u){var f=i||{},d=f.width,h=f.height,m=u.align,g=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&g==="middle")&&m!=="center"&&le(t[m]))return vn(vn({},t),{},ji({},m,t[m]+(d||0)));if((v==="horizontal"||v==="vertical"&&m==="center")&&g!=="middle"&&le(t[g]))return vn(vn({},t),{},ji({},g,t[g]+(h||0)))}return t},rH=function(t,n,r){return Ee(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},d2=function(t,n,r,i,a){var o=n.props.children,s=cn(o,Xo).filter(function(u){return rH(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=Gt(f,r,0),h=Array.isArray(d)?[Cu(d),ku(d)]:[d,d],m=l.reduce(function(g,v){var b=Gt(f,v,0),_=h[0]-Math.abs(Array.isArray(b)?b[0]:b),C=h[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(_,g[0]),Math.max(C,g[1])]},[1/0,-1/0]);return[Math.min(m[0],u[0]),Math.max(m[1],u[1])]},[1/0,-1/0])}return null},iH=function(t,n,r,i,a){var o=n.map(function(s){return d2(t,s,r,a,i)}).filter(function(s){return!Ee(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},h2=function(t,n,r,i,a){var o=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&d2(t,l,u,i)||Ua(t,u,r,a)});if(r==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var f=0,d=u.length;f=2?Mn(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var h=a?a.indexOf(d):d;return{coordinate:i(h)+u,value:d,offset:u}});return f.filter(function(d){return!Wo(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:i(d)+u,value:d,index:h,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+u,value:d,offset:u}}):i.domain().map(function(d,h){return{coordinate:i(d)+u,value:a?a[d]:d,index:h,offset:u}})},Xc=new WeakMap,Ds=function(t,n){if(typeof n!="function")return t;Xc.has(t)||Xc.set(t,new WeakMap);var r=Xc.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},aH=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:oo(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:bl(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ha(),realScaleType:"point"}:a==="category"?{scale:oo(),realScaleType:"band"}:{scale:bl(),realScaleType:"linear"};if(Uo(i)){var l="scale".concat(du(i));return{scale:(yy[l]||Ha)(),realScaleType:yy[l]?l:"point"}}return Te(i)?{scale:i}:{scale:Ha(),realScaleType:"point"}},ky=1e-4,oH=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-ky,o=Math.max(i[0],i[1])+ky,s=t(n[0]),l=t(n[r-1]);(so||lo)&&t.domain([n[0],n[r-1]])}},sH=function(t,n){if(!t)return null;for(var r=0,i=t.length;ri)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1]):(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1])}},cH=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r=0?(t[o][r][0]=a,t[o][r][1]=a+s,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},fH={sign:uH,expand:eT,none:$i,silhouette:tT,wiggle:nT,positive:cH},dH=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),a=fH[r],o=Qj().keys(i).value(function(s,l){return+Gt(s,l,0)}).order(Ef).offset(a);return o(t)},hH=function(t,n,r,i,a,o){if(!t)return null;var s=o?n.reverse():n,l={},u=s.reduce(function(d,h){var m=h.props,g=m.stackId,v=m.hide;if(v)return d;var b=h.props[r],_=d[b]||{hasStack:!1,stackGroups:{}};if(_t(g)){var C=_.stackGroups[g]||{numericAxisId:r,cateAxisId:i,items:[]};C.items.push(h),_.hasStack=!0,_.stackGroups[g]=C}else _.stackGroups[Yo("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[h]};return vn(vn({},d),{},ji({},b,_))},l),f={};return Object.keys(u).reduce(function(d,h){var m=u[h];if(m.hasStack){var g={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(v,b){var _=m.stackGroups[b];return vn(vn({},v),{},ji({},b,{numericAxisId:r,cateAxisId:i,items:_.items,stackedData:dH(t,_.items,a)}))},g)}return vn(vn({},d),{},ji({},h,m))},f)},pH=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=IF(u,a,s);return t.domain([Cu(f),ku(f)]),{niceTicks:f}}if(a&&i==="number"){var d=t.domain(),h=DF(d,a,s);return{niceTicks:h}}return null},Cy=function(t){var n=t.axis,r=t.ticks,i=t.bandSize,a=t.entry,o=t.index,s=t.dataKey;if(n.type==="category"){if(!n.allowDuplicatedCategory&&n.dataKey&&!Ee(a[n.dataKey])){var l=Xs(r,"value",a[n.dataKey]);if(l)return l.coordinate+i/2}return r[o]?r[o].coordinate+i/2:null}var u=Gt(a,Ee(s)?n.dataKey:s);return Ee(u)?null:n.scale(u)},Py=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+i:null;var l=Gt(o,n.dataKey,n.domain[s]);return Ee(l)?null:n.scale(l)-a/2+i},mH=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},yH=function(t,n){var r=t.props.stackId;if(_t(r)){var i=n[r];if(i){var a=i.items.indexOf(t);return a>=0?i.stackedData[a]:null}}return null},gH=function(t){return t.reduce(function(n,r){return[Cu(r.concat([n[0]]).filter(le)),ku(r.concat([n[1]]).filter(le))]},[1/0,-1/0])},m2=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,f){var d=gH(f.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Ay=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jy=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ld=function(t,n,r){if(Te(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(le(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(Ay.test(t[0])){var a=+Ay.exec(t[0])[1];i[0]=n[0]-a}else Te(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(le(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(jy.test(t[1])){var o=+jy.exec(t[1])[1];i[1]=n[1]+o}else Te(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Cl=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=Th(n,function(d){return d.coordinate}),o=1/0,s=1,l=a.length;so&&(u=2*Math.PI-u),{radius:s,angle:wH(u),angleInRadian:u}},OH=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},kH=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},$y=function(t,n){var r=t.x,i=t.y,a=_H({x:r,y:i},n),o=a.radius,s=a.angle,l=n.innerRadius,u=n.outerRadius;if(ou)return!1;if(o===0)return!0;var f=OH(n),d=f.startAngle,h=f.endAngle,m=s,g;if(d<=h){for(;m>h;)m-=360;for(;m=d&&m<=h}else{for(;m>d;)m-=360;for(;m=h&&m<=d}return g?My(My({},n),{},{radius:o,angle:kH(m,n)}):null};function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}var CH=["offset"];function PH(e){return EH(e)||TH(e)||jH(e)||AH()}function AH(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jH(e,t){if(e){if(typeof e=="string")return ud(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ud(e,t)}}function TH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EH(e){if(Array.isArray(e))return ud(e)}function ud(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $H(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t=0?1:-1,k,A;i==="insideStart"?(k=m+C*o,A=v):i==="insideEnd"?(k=g-C*o,A=!v):i==="end"&&(k=g+C*o,A=v),A=_<=0?A:!A;var O=$t(u,f,b,k),w=$t(u,f,b,k+(A?1:-1)*359),j="M".concat(O.x,",").concat(O.y,` A`).concat(b,",").concat(b,",0,1,").concat(A?0:1,`, - `).concat(w.x,",").concat(w.y),T=Ee(t.id)?Vo("recharts-radial-line-"):t.id;return U.createElement("text",vo({},r,{dominantBaseline:"central",className:Ze("recharts-radial-bar-label",s)}),U.createElement("defs",null,U.createElement("path",{id:T,d:j})),U.createElement("textPath",{xlinkHref:"#".concat(T)},n))},zH=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,f=a.startAngle,d=a.endAngle,h=(f+d)/2;if(i==="outside"){var m=$t(o,s,u+r,h),g=m.x,v=m.y;return{x:g,y:v,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var b=(l+u)/2,_=$t(o,s,b,h),C=_.x,k=_.y;return{x:C,y:k,textAnchor:"middle",verticalAnchor:"middle"}},FH=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,s=o.x,l=o.y,u=o.width,f=o.height,d=f>=0?1:-1,h=d*i,m=d>0?"end":"start",g=d>0?"start":"end",v=u>=0?1:-1,b=v*i,_=v>0?"end":"start",C=v>0?"start":"end";if(a==="top"){var k={x:s+u/2,y:l-d*i,textAnchor:"middle",verticalAnchor:m};return St(St({},k),r?{height:Math.max(l-r.y,0),width:u}:{})}if(a==="bottom"){var A={x:s+u/2,y:l+f+h,textAnchor:"middle",verticalAnchor:g};return St(St({},A),r?{height:Math.max(r.y+r.height-(l+f),0),width:u}:{})}if(a==="left"){var O={x:s-b,y:l+f/2,textAnchor:_,verticalAnchor:"middle"};return St(St({},O),r?{width:Math.max(O.x-r.x,0),height:f}:{})}if(a==="right"){var w={x:s+u+b,y:l+f/2,textAnchor:C,verticalAnchor:"middle"};return St(St({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:f}:{})}var j=r?{width:u,height:f}:{};return a==="insideLeft"?St({x:s+b,y:l+f/2,textAnchor:C,verticalAnchor:"middle"},j):a==="insideRight"?St({x:s+u-b,y:l+f/2,textAnchor:_,verticalAnchor:"middle"},j):a==="insideTop"?St({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:g},j):a==="insideBottom"?St({x:s+u/2,y:l+f-h,textAnchor:"middle",verticalAnchor:m},j):a==="insideTopLeft"?St({x:s+b,y:l+h,textAnchor:C,verticalAnchor:g},j):a==="insideTopRight"?St({x:s+u-b,y:l+h,textAnchor:_,verticalAnchor:g},j):a==="insideBottomLeft"?St({x:s+b,y:l+f-h,textAnchor:C,verticalAnchor:m},j):a==="insideBottomRight"?St({x:s+u-b,y:l+f-h,textAnchor:_,verticalAnchor:m},j):Qi(a)&&(le(a.x)||Gr(a.x))&&(le(a.y)||Gr(a.y))?St({x:s+Mi(a.x,u),y:l+Mi(a.y,f),textAnchor:"end",verticalAnchor:"end"},j):St({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},j)},HH=function(t){return"cx"in t&&le(t.cx)};function Lt(e){var t=e.offset,n=t===void 0?5:t,r=MH(e,CH),i=St({offset:n},r),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,f=i.className,d=f===void 0?"":f,h=i.textBreakAll;if(!a||Ee(s)&&Ee(l)&&!z.isValidElement(u)&&!Te(u))return null;if(z.isValidElement(u))return z.cloneElement(u,i);var m;if(Te(u)){if(m=z.createElement(u,i),z.isValidElement(m))return m}else m=NH(i);var g=HH(a),v=Le(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return BH(i,m,v);var b=g?zH(i):FH(i);return U.createElement(pl,vo({className:Ze("recharts-label",d)},v,b,{breakAll:h}),m)}Lt.displayName="Label";var g2=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,m=t.top,g=t.left,v=t.width,b=t.height,_=t.clockWise,C=t.labelViewBox;if(C)return C;if(le(v)&&le(b)){if(le(d)&&le(h))return{x:d,y:h,width:v,height:b};if(le(m)&&le(g))return{x:m,y:g,width:v,height:b}}return le(d)&&le(h)?{x:d,y:h,width:0,height:0}:le(n)&&le(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:_}:t.viewBox?t.viewBox:{}},UH=function(t,n){return t?t===!0?U.createElement(Lt,{key:"label-implicit",viewBox:n}):_t(t)?U.createElement(Lt,{key:"label-implicit",viewBox:n,value:t}):z.isValidElement(t)?t.type===Lt?z.cloneElement(t,{key:"label-implicit",viewBox:n}):U.createElement(Lt,{key:"label-implicit",content:t,viewBox:n}):Te(t)?U.createElement(Lt,{key:"label-implicit",content:t,viewBox:n}):Qi(t)?U.createElement(Lt,vo({viewBox:n},t,{key:"label-implicit"})):null:null},WH=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=g2(t),o=cn(i,Lt).map(function(l,u){return z.cloneElement(l,{viewBox:n||a,key:"label-".concat(u)})});if(!r)return o;var s=UH(t.label,n||a);return[s].concat(PH(o))};Lt.parseViewBox=g2;Lt.renderCallByParent=WH;function YH(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var VH=YH;const GH=st(VH);function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}var qH=["valueAccessor"],KH=["data","dataKey","clockWise","id","textBreakAll"];function XH(e){return eU(e)||QH(e)||JH(e)||ZH()}function ZH(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JH(e,t){if(e){if(typeof e=="string")return cd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cd(e,t)}}function QH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eU(e){if(Array.isArray(e))return cd(e)}function cd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iU(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var aU=function(t){return Array.isArray(t.value)?GH(t.value):t.value};function Tr(e){var t=e.valueAccessor,n=t===void 0?aU:t,r=Ny(e,qH),i=r.data,a=r.dataKey,o=r.clockWise,s=r.id,l=r.textBreakAll,u=Ny(r,KH);return!i||!i.length?null:U.createElement(dt,{className:"recharts-label-list"},i.map(function(f,d){var h=Ee(a)?n(f,d):Gt(f&&f.payload,a),m=Ee(s)?{}:{id:"".concat(s,"-").concat(d)};return U.createElement(Lt,jl({},Le(f,!0),u,m,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:Lt.parseViewBox(Ee(o)?f:Ly(Ly({},f),{},{clockWise:o})),key:"label-".concat(d),index:d}))}))}Tr.displayName="LabelList";function oU(e,t){return e?e===!0?U.createElement(Tr,{key:"labelList-implicit",data:t}):U.isValidElement(e)||Te(e)?U.createElement(Tr,{key:"labelList-implicit",data:t,content:e}):Qi(e)?U.createElement(Tr,jl({data:t},e,{key:"labelList-implicit"})):null:null}function sU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=cn(r,Tr).map(function(o,s){return z.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var a=oU(e.label,t);return[a].concat(XH(i))}Tr.renderCallByParent=sU;function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var b=(l+u)/2,_=$t(o,s,b,h),C=_.x,k=_.y;return{x:C,y:k,textAnchor:"middle",verticalAnchor:"middle"}},FH=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,s=o.x,l=o.y,u=o.width,f=o.height,d=f>=0?1:-1,h=d*i,m=d>0?"end":"start",g=d>0?"start":"end",v=u>=0?1:-1,b=v*i,_=v>0?"end":"start",C=v>0?"start":"end";if(a==="top"){var k={x:s+u/2,y:l-d*i,textAnchor:"middle",verticalAnchor:m};return St(St({},k),r?{height:Math.max(l-r.y,0),width:u}:{})}if(a==="bottom"){var A={x:s+u/2,y:l+f+h,textAnchor:"middle",verticalAnchor:g};return St(St({},A),r?{height:Math.max(r.y+r.height-(l+f),0),width:u}:{})}if(a==="left"){var O={x:s-b,y:l+f/2,textAnchor:_,verticalAnchor:"middle"};return St(St({},O),r?{width:Math.max(O.x-r.x,0),height:f}:{})}if(a==="right"){var w={x:s+u+b,y:l+f/2,textAnchor:C,verticalAnchor:"middle"};return St(St({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:f}:{})}var j=r?{width:u,height:f}:{};return a==="insideLeft"?St({x:s+b,y:l+f/2,textAnchor:C,verticalAnchor:"middle"},j):a==="insideRight"?St({x:s+u-b,y:l+f/2,textAnchor:_,verticalAnchor:"middle"},j):a==="insideTop"?St({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:g},j):a==="insideBottom"?St({x:s+u/2,y:l+f-h,textAnchor:"middle",verticalAnchor:m},j):a==="insideTopLeft"?St({x:s+b,y:l+h,textAnchor:C,verticalAnchor:g},j):a==="insideTopRight"?St({x:s+u-b,y:l+h,textAnchor:_,verticalAnchor:g},j):a==="insideBottomLeft"?St({x:s+b,y:l+f-h,textAnchor:C,verticalAnchor:m},j):a==="insideBottomRight"?St({x:s+u-b,y:l+f-h,textAnchor:_,verticalAnchor:m},j):Qi(a)&&(le(a.x)||Gr(a.x))&&(le(a.y)||Gr(a.y))?St({x:s+Mi(a.x,u),y:l+Mi(a.y,f),textAnchor:"end",verticalAnchor:"end"},j):St({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},j)},HH=function(t){return"cx"in t&&le(t.cx)};function Lt(e){var t=e.offset,n=t===void 0?5:t,r=MH(e,CH),i=St({offset:n},r),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,f=i.className,d=f===void 0?"":f,h=i.textBreakAll;if(!a||Ee(s)&&Ee(l)&&!z.isValidElement(u)&&!Te(u))return null;if(z.isValidElement(u))return z.cloneElement(u,i);var m;if(Te(u)){if(m=z.createElement(u,i),z.isValidElement(m))return m}else m=NH(i);var g=HH(a),v=Le(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return BH(i,m,v);var b=g?zH(i):FH(i);return U.createElement(hl,vo({className:Ze("recharts-label",d)},v,b,{breakAll:h}),m)}Lt.displayName="Label";var g2=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,m=t.top,g=t.left,v=t.width,b=t.height,_=t.clockWise,C=t.labelViewBox;if(C)return C;if(le(v)&&le(b)){if(le(d)&&le(h))return{x:d,y:h,width:v,height:b};if(le(m)&&le(g))return{x:m,y:g,width:v,height:b}}return le(d)&&le(h)?{x:d,y:h,width:0,height:0}:le(n)&&le(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:_}:t.viewBox?t.viewBox:{}},UH=function(t,n){return t?t===!0?U.createElement(Lt,{key:"label-implicit",viewBox:n}):_t(t)?U.createElement(Lt,{key:"label-implicit",viewBox:n,value:t}):z.isValidElement(t)?t.type===Lt?z.cloneElement(t,{key:"label-implicit",viewBox:n}):U.createElement(Lt,{key:"label-implicit",content:t,viewBox:n}):Te(t)?U.createElement(Lt,{key:"label-implicit",content:t,viewBox:n}):Qi(t)?U.createElement(Lt,vo({viewBox:n},t,{key:"label-implicit"})):null:null},WH=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=g2(t),o=cn(i,Lt).map(function(l,u){return z.cloneElement(l,{viewBox:n||a,key:"label-".concat(u)})});if(!r)return o;var s=UH(t.label,n||a);return[s].concat(PH(o))};Lt.parseViewBox=g2;Lt.renderCallByParent=WH;function YH(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var VH=YH;const GH=st(VH);function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}var qH=["valueAccessor"],KH=["data","dataKey","clockWise","id","textBreakAll"];function XH(e){return eU(e)||QH(e)||JH(e)||ZH()}function ZH(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JH(e,t){if(e){if(typeof e=="string")return cd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cd(e,t)}}function QH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eU(e){if(Array.isArray(e))return cd(e)}function cd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iU(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var aU=function(t){return Array.isArray(t.value)?GH(t.value):t.value};function Tr(e){var t=e.valueAccessor,n=t===void 0?aU:t,r=Ny(e,qH),i=r.data,a=r.dataKey,o=r.clockWise,s=r.id,l=r.textBreakAll,u=Ny(r,KH);return!i||!i.length?null:U.createElement(dt,{className:"recharts-label-list"},i.map(function(f,d){var h=Ee(a)?n(f,d):Gt(f&&f.payload,a),m=Ee(s)?{}:{id:"".concat(s,"-").concat(d)};return U.createElement(Lt,Al({},Le(f,!0),u,m,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:Lt.parseViewBox(Ee(o)?f:Ly(Ly({},f),{},{clockWise:o})),key:"label-".concat(d),index:d}))}))}Tr.displayName="LabelList";function oU(e,t){return e?e===!0?U.createElement(Tr,{key:"labelList-implicit",data:t}):U.isValidElement(e)||Te(e)?U.createElement(Tr,{key:"labelList-implicit",data:t,content:e}):Qi(e)?U.createElement(Tr,Al({data:t},e,{key:"labelList-implicit"})):null:null}function sU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=cn(r,Tr).map(function(o,s){return z.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var a=oU(e.label,t);return[a].concat(XH(i))}Tr.renderCallByParent=sU;function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>u),`, `).concat(d.x,",").concat(d.y,` `);if(i>0){var m=$t(n,r,i,o),g=$t(n,r,i,u);h+="L ".concat(g.x,",").concat(g.y,` A `).concat(i,",").concat(i,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`, - `).concat(m.x,",").concat(m.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},dU=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=Mn(f-u),h=Ns({cx:n,cy:r,radius:a,angle:u,sign:d,cornerRadius:o,cornerIsExternal:l}),m=h.circleTangency,g=h.lineTangency,v=h.theta,b=Ns({cx:n,cy:r,radius:a,angle:f,sign:-d,cornerRadius:o,cornerIsExternal:l}),_=b.circleTangency,C=b.lineTangency,k=b.theta,A=l?Math.abs(u-f):Math.abs(u-f)-v-k;if(A<0)return s?"M ".concat(g.x,",").concat(g.y,` + `).concat(m.x,",").concat(m.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},dU=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=Mn(f-u),h=Ls({cx:n,cy:r,radius:a,angle:u,sign:d,cornerRadius:o,cornerIsExternal:l}),m=h.circleTangency,g=h.lineTangency,v=h.theta,b=Ls({cx:n,cy:r,radius:a,angle:f,sign:-d,cornerRadius:o,cornerIsExternal:l}),_=b.circleTangency,C=b.lineTangency,k=b.theta,A=l?Math.abs(u-f):Math.abs(u-f)-v-k;if(A<0)return s?"M ".concat(g.x,",").concat(g.y,` a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 `):v2({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var O="M ".concat(g.x,",").concat(g.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(m.x,",").concat(m.y,` A`).concat(a,",").concat(a,",0,").concat(+(A>180),",").concat(+(d<0),",").concat(_.x,",").concat(_.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(C.x,",").concat(C.y,` - `);if(i>0){var w=Ns({cx:n,cy:r,radius:i,angle:u,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=w.circleTangency,T=w.lineTangency,I=w.theta,B=Ns({cx:n,cy:r,radius:i,angle:f,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),M=B.circleTangency,D=B.lineTangency,W=B.theta,Y=l?Math.abs(u-f):Math.abs(u-f)-I-W;if(Y<0&&o===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(D.x,",").concat(D.y,` + `);if(i>0){var w=Ls({cx:n,cy:r,radius:i,angle:u,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=w.circleTangency,T=w.lineTangency,I=w.theta,B=Ls({cx:n,cy:r,radius:i,angle:f,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),M=B.circleTangency,D=B.lineTangency,W=B.theta,Y=l?Math.abs(u-f):Math.abs(u-f)-I-W;if(Y<0&&o===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(D.x,",").concat(D.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(M.x,",").concat(M.y,` A`).concat(i,",").concat(i,",0,").concat(+(Y>180),",").concat(+(d>0),",").concat(j.x,",").concat(j.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(T.x,",").concat(T.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},hU={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},x2=function(t){var n=By(By({},hU),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,h=n.className;if(o0&&Math.abs(f-d)<360?b=dU({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:d}):b=v2({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:d}),U.createElement("path",fd({},Le(n,!0),{className:m,d:b,role:"img"}))};function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(f-d)<360?b=dU({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:d}):b=v2({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:d}),U.createElement("path",fd({},Le(n,!0),{className:m,d:b,role:"img"}))};function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,l=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,f;if(o>0&&a instanceof Array){for(var d=[0,0,0,0],h=0,m=4;ho?o:a[h];f="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+l*d[0],",").concat(n)),f+="L ".concat(t+r-l*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`, `).concat(t+r,",").concat(n+s*d[1])),f+="L ".concat(t+r,",").concat(n+i-s*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(u,`, `).concat(t+r-l*d[2],",").concat(n+i)),f+="L ".concat(t+l*d[3],",").concat(n+i),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(u,`, @@ -1216,19 +1227,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho L `).concat(t+r,",").concat(n+i-s*g,` A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+r-l*g,",").concat(n+i,` L `).concat(t+l*g,",").concat(n+i,` - A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(n+i-s*g," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},PU=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),d=Math.min(o,o+l),h=Math.max(o,o+l);return r>=u&&r<=f&&i>=d&&i<=h}return!1},AU={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ap=function(t){var n=Yy(Yy({},AU),t),r=z.useRef(),i=z.useState(-1),a=xU(i,2),o=a[0],s=a[1];z.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&s(A)}catch{}},[]);var l=n.x,u=n.y,f=n.width,d=n.height,h=n.radius,m=n.className,g=n.animationEasing,v=n.animationDuration,b=n.animationBegin,_=n.isAnimationActive,C=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var k=Ze("recharts-rectangle",m);return C?U.createElement(sr,{canBegin:o>0,from:{width:f,height:d,x:l,y:u},to:{width:f,height:d,x:l,y:u},duration:v,animationEasing:g,isActive:C},function(A){var O=A.width,w=A.height,j=A.x,T=A.y;return U.createElement(sr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,isActive:_,easing:g},U.createElement("path",Tl({},Le(n,!0),{className:k,d:Vy(j,T,O,w,h),ref:r})))}):U.createElement("path",Tl({},Le(n,!0),{className:k,d:Vy(l,u,f,d,h)}))};function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DU(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var LU=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},NU=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,d=f===void 0?0:f,h=t.height,m=h===void 0?0:h,g=t.className,v=IU(t,jU),b=TU({x:r,y:a,top:s,left:u,width:d,height:m},v);return!le(r)||!le(a)||!le(d)||!le(m)||!le(s)||!le(u)?null:U.createElement("path",md({},Le(b,!0),{className:Ze("recharts-cross",g),d:LU(r,a,d,m,s,u)}))},RU=Bo,BU=_4,zU=Ji,FU="[object Object]",HU=Function.prototype,UU=Object.prototype,b2=HU.toString,WU=UU.hasOwnProperty,YU=b2.call(Object);function VU(e){if(!zU(e)||RU(e)!=FU)return!1;var t=BU(e);if(t===null)return!0;var n=WU.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&b2.call(n)==YU}var GU=VU;const qU=st(GU);var KU=Bo,XU=Ji,ZU="[object Boolean]";function JU(e){return e===!0||e===!1||XU(e)&&KU(e)==ZU}var QU=JU;const eW=st(QU);function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:f,lowerWidth:d,height:h,x:l,y:u},duration:v,animationEasing:g,isActive:_},function(k){var A=k.upperWidth,O=k.lowerWidth,w=k.height,j=k.x,T=k.y;return U.createElement(sr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,easing:g},U.createElement("path",El({},Le(n,!0),{className:C,d:Zy(j,T,A,O,w),ref:r})))}):U.createElement("g",null,U.createElement("path",El({},Le(n,!0),{className:C,d:Zy(l,u,f,d,h)})))},fW=["option","shapeType","propTransformer","activeClassName","isActive"];function ko(e){"@babel/helpers - typeof";return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(e)}function dW(e,t){if(e==null)return{};var n=hW(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Jy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dl(e)}function sn(e,t,n){return t=_2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _2(e){var t=ZW(e,"string");return Ui(t)==="symbol"?t:String(t)}function ZW(e,t){if(Ui(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ui(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JW=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=Ha().domain($l(0,l)).range([a,a+o-s]),f=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:f}},ag=function(t){return t.changedTouches&&!!t.changedTouches.length},Ao=function(e){GW(n,e);var t=qW(n);function n(r){var i;return YW(this,n),i=t.call(this,r),sn(Dn(i),"handleDrag",function(a){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(a):i.state.isSlideMoving&&i.handleSlideDrag(a)}),sn(Dn(i),"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&i.handleDrag(a.changedTouches[0])}),sn(Dn(i),"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=i.props,o=a.endIndex,s=a.onDragEnd,l=a.startIndex;s==null||s({endIndex:o,startIndex:l})}),i.detachDragEndListener()}),sn(Dn(i),"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),sn(Dn(i),"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),sn(Dn(i),"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),sn(Dn(i),"handleSlideDragStart",function(a){var o=ag(a)?a.changedTouches[0]:a;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(Dn(i),"startX"),endX:i.handleTravellerDragStart.bind(Dn(i),"endX")},i.state={},i}return VW(n,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var a=i.startX,o=i.endX,s=this.state.scaleValues,l=this.props,u=l.gap,f=l.data,d=f.length-1,h=Math.min(a,o),m=Math.max(a,o),g=n.getIndexInRange(s,h),v=n.getIndexInRange(s,m);return{startIndex:g-g%u,endIndex:v===d?d:v-v%u}}},{key:"getTextOfTick",value:function(i){var a=this.props,o=a.data,s=a.tickFormatter,l=a.dataKey,u=Gt(o[i],l,i);return Te(s)?s(u,i):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var a=this.state,o=a.slideMoveStartX,s=a.startX,l=a.endX,u=this.props,f=u.x,d=u.width,h=u.travellerWidth,m=u.startIndex,g=u.endIndex,v=u.onChange,b=i.pageX-o;b>0?b=Math.min(b,f+d-h-l,f+d-h-s):b<0&&(b=Math.max(b,f-s,f-l));var _=this.getIndex({startX:s+b,endX:l+b});(_.startIndex!==m||_.endIndex!==g)&&v&&v(_),this.setState({startX:s+b,endX:l+b,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,a){var o=ag(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var a,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,u=o.endX,f=o.startX,d=this.state[l],h=this.props,m=h.x,g=h.width,v=h.travellerWidth,b=h.onChange,_=h.gap,C=h.data,k={startX:this.state.startX,endX:this.state.endX},A=i.pageX-s;A>0?A=Math.min(A,m+g-v-d):A<0&&(A=Math.max(A,m-d)),k[l]=d+A;var O=this.getIndex(k),w=O.startIndex,j=O.endIndex,T=function(){var B=C.length-1;return l==="startX"&&(u>f?w%_===0:j%_===0)||uf?j%_===0:w%_===0)||u>f&&j===B};this.setState((a={},sn(a,l,d+A),sn(a,"brushMoveStartX",i.pageX),a),function(){b&&T()&&b(O)})}},{key:"handleTravellerMoveKeyboard",value:function(i,a){var o=this,s=this.state,l=s.scaleValues,u=s.startX,f=s.endX,d=this.state[a],h=l.indexOf(d);if(h!==-1){var m=h+i;if(!(m===-1||m>=l.length)){var g=l[m];a==="startX"&&g>=f||a==="endX"&&g<=u||this.setState(sn({},a,g),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.fill,f=i.stroke;return U.createElement("rect",{stroke:f,fill:u,x:a,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.data,f=i.children,d=i.padding,h=z.Children.only(f);return h?U.cloneElement(h,{x:a,y:o,width:s,height:l,margin:d,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(i,a){var o=this,s=this.props,l=s.y,u=s.travellerWidth,f=s.height,d=s.traveller,h=s.ariaLabel,m=s.data,g=s.startIndex,v=s.endIndex,b=Math.max(i,this.props.x),_=Jc(Jc({},Le(this.props)),{},{x:b,y:l,width:u,height:f}),C=h||"Min value: ".concat(m[g].name,", Max value: ").concat(m[v].name);return U.createElement(dt,{tabIndex:0,role:"slider","aria-label":C,"aria-valuenow":i,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),o.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(d,_))}},{key:"renderSlide",value:function(i,a){var o=this.props,s=o.y,l=o.height,u=o.stroke,f=o.travellerWidth,d=Math.min(i,a)+f,h=Math.max(Math.abs(a-i)-f,0);return U.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:d,y:s,width:h,height:l})}},{key:"renderText",value:function(){var i=this.props,a=i.startIndex,o=i.endIndex,s=i.y,l=i.height,u=i.travellerWidth,f=i.stroke,d=this.state,h=d.startX,m=d.endX,g=5,v={pointerEvents:"none",fill:f};return U.createElement(dt,{className:"recharts-brush-texts"},U.createElement(pl,Il({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,m)-g,y:s+l/2},v),this.getTextOfTick(a)),U.createElement(pl,Il({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,m)+u+g,y:s+l/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var i=this.props,a=i.data,o=i.className,s=i.children,l=i.x,u=i.y,f=i.width,d=i.height,h=i.alwaysShowText,m=this.state,g=m.startX,v=m.endX,b=m.isTextActive,_=m.isSlideMoving,C=m.isTravellerMoving,k=m.isTravellerFocused;if(!a||!a.length||!le(l)||!le(u)||!le(f)||!le(d)||f<=0||d<=0)return null;var A=Ze("recharts-brush",o),O=U.Children.count(s)===1,w=WW("userSelect","none");return U.createElement(dt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(g,v),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(v,"endX"),(b||_||C||k||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var a=i.x,o=i.y,s=i.width,l=i.height,u=i.stroke,f=Math.floor(o+l/2)-1;return U.createElement(U.Fragment,null,U.createElement("rect",{x:a,y:o,width:s,height:l,fill:u,stroke:"none"}),U.createElement("line",{x1:a+1,y1:f,x2:a+s-1,y2:f,fill:"none",stroke:"#fff"}),U.createElement("line",{x1:a+1,y1:f+2,x2:a+s-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,a){var o;return U.isValidElement(i)?o=U.cloneElement(i,a):Te(i)?o=i(a):o=n.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(i,a){var o=i.data,s=i.width,l=i.x,u=i.travellerWidth,f=i.updateId,d=i.startIndex,h=i.endIndex;if(o!==a.prevData||f!==a.prevUpdateId)return Jc({prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s},o&&o.length?JW({data:o,width:s,x:l,travellerWidth:u,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||l!==a.prevX||u!==a.prevTravellerWidth)){a.scale.range([l,l+s-u]);var m=a.scale.domain().map(function(g){return a.scale(g)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s,startX:a.scale(i.startIndex),endX:a.scale(i.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(i,a){for(var o=i.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);i[u]>a?l=u:s=u}return a>=i[l]?l:s}}]),n}(z.PureComponent);sn(Ao,"displayName","Brush");sn(Ao,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var QW=jh;function eY(e,t){var n;return QW(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var tY=eY,nY=Wx,rY=Ir,iY=tY,aY=_n,oY=vu;function sY(e,t,n){var r=aY(e)?nY:iY;return n&&oY(e,t,n)&&(t=void 0),r(e,rY(t))}var lY=sY;const uY=st(lY);var Fn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},cY=O4,fY=nb,dY=Ir;function hY(e,t){var n={};return t=dY(t),fY(e,function(r,i,a){cY(n,i,t(r,i,a))}),n}var pY=hY;const mY=st(pY);function yY(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $Y(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function IY(e,t){var n=e.x,r=e.y,i=MY(e,AY),a="".concat(n),o=parseInt(a,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),d="".concat(t.width||i.width),h=parseInt(d,10);return Ta(Ta(Ta(Ta(Ta({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function sg(e){return U.createElement(yd,vd({shapeType:"rectangle",propTransformer:IY,activeClassName:"recharts-active-bar"},e))}var DY=["value","background"];function Wi(e){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wi(e)}function LY(e,t){if(e==null)return{};var n=NY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nl(e){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nl(e)}function Cr(e,t,n){return t=k2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k2(e){var t=WY(e,"string");return Wi(t)==="symbol"?t:String(t)}function WY(e,t){if(Wi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mu=function(e){zY(n,e);var t=FY(n);function n(){var r;RY(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0&&Math.abs(Y)0&&Math.abs(W)0&&(W=Math.min((_e||0)-(Y[te-1]||0),W))});var V=W/D,X=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(j=V*X/2),v.padding==="no-gap"){var Z=Mi(t.barCategoryGap,V*X),G=V*X/2;j=G-Z-(G-Z)/X*Z}}i==="xAxis"?T=[r.left+(k.left||0)+(j||0),r.left+r.width-(k.right||0)-(j||0)]:i==="yAxis"?T=l==="horizontal"?[r.top+r.height-(k.bottom||0),r.top+(k.top||0)]:[r.top+(k.top||0)+(j||0),r.top+r.height-(k.bottom||0)-(j||0)]:T=v.range,O&&(T=[T[1],T[0]]);var Q=aH(v,a,h),E=Q.scale,pe=Q.realScaleType;E.domain(_).range(T),oH(E);var ue=pH(E,jn(jn({},v),{},{realScaleType:pe}));i==="xAxis"?(M=b==="top"&&!A||b==="bottom"&&A,I=r.left,B=d[w]-M*v.height):i==="yAxis"&&(M=b==="left"&&!A||b==="right"&&A,I=d[w]-M*v.width,B=r.top);var $=jn(jn(jn({},v),ue),{},{realScaleType:pe,x:I,y:B,scale:E,width:i==="xAxis"?r.width:v.width,height:i==="yAxis"?r.height:v.height});return $.bandSize=Pl($,ue),!v.hide&&i==="xAxis"?d[w]+=(M?-1:1)*$.height:v.hide||(d[w]+=(M?-1:1)*$.width),jn(jn({},m),{},$u({},g,$))},{})},P2=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},KY=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return P2({x:n,y:r},{x:i,y:a})},A2=function(){function e(t){YY(this,e),this.scale=t}return VY(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}]),e}();$u(A2,"EPS",1e-4);var sp=function(t){var n=Object.keys(t).reduce(function(r,i){return jn(jn({},r),{},$u({},i,A2.create(t[i])))},{});return jn(jn({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return mY(i,function(l,u){return n[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return O2(i,function(a,o){return n[o].isInRange(a)})}})};function XY(e){return(e%180+180)%180}var ZY=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=XY(i),o=a*Math.PI/180,s=Math.atan(r/n),l=o>s&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function vV(e,t){return j2(e,t+1)}function xV(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,d=function(){var g=r==null?void 0:r[l];if(g===void 0)return{v:j2(r,u)};var v=l,b,_=function(){return b===void 0&&(b=n(g,v)),b},C=g.coordinate,k=l===0||Rl(e,C,_,f,s);k||(l=0,f=o,u+=1),k&&(f=C+e*(_()/2+i),l+=u)},h;u<=a.length;)if(h=d(),h)return h.v;return[]}function Io(e){"@babel/helpers - typeof";return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Io(e)}function xg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t0?m.coordinate-b*e:m.coordinate})}else a[h]=m=Dt(Dt({},m),{},{tickCoord:m.coordinate});var _=Rl(e,m.tickCoord,v,s,l);_&&(l=m.tickCoord-e*(v()/2+i),a[h]=Dt(Dt({},m),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function OV(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=r[s-1],d=n(f,s-1),h=e*(f.coordinate+e*d/2-u);o[s-1]=f=Dt(Dt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var m=Rl(e,f.tickCoord,function(){return d},l,u);m&&(u=f.tickCoord-e*(d/2+i),o[s-1]=Dt(Dt({},f),{},{isShow:!0}))}for(var g=a?s-1:s,v=function(C){var k=o[C],A,O=function(){return A===void 0&&(A=n(k,C)),A};if(C===0){var w=e*(k.coordinate-e*O()/2-l);o[C]=k=Dt(Dt({},k),{},{tickCoord:w<0?k.coordinate-w*e:k.coordinate})}else o[C]=k=Dt(Dt({},k),{},{tickCoord:k.coordinate});var j=Rl(e,k.tickCoord,O,l,u);j&&(l=k.tickCoord+e*(O()/2+i),o[C]=Dt(Dt({},k),{},{isShow:!0}))},b=0;b=2?Mn(i[1].coordinate-i[0].coordinate):1,_=gV(a,b,m);return l==="equidistantPreserveStart"?xV(b,_,v,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=OV(b,_,v,i,o,l==="preserveStartEnd"):h=_V(b,_,v,i,o),h.filter(function(C){return C.isShow}))}var kV=["viewBox"],CV=["viewBox"],PV=["ticks"];function Yi(e){"@babel/helpers - typeof";return Yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yi(e)}function _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function jV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wg(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bl(e)}function up(e,t,n){return t=T2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T2(e){var t=LV(e,"string");return Yi(t)==="symbol"?t:String(t)}function LV(e,t){if(Yi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wa=function(e){EV(n,e);var t=MV(n);function n(r){var i;return jV(this,n),i=t.call(this,r),i.state={fontSize:"",letterSpacing:""},i}return TV(n,[{key:"shouldComponentUpdate",value:function(i,a){var o=i.viewBox,s=Qc(i,kV),l=this.props,u=l.viewBox,f=Qc(l,CV);return!Pi(o,u)||!Pi(s,f)||!Pi(a,this.state)}},{key:"componentDidMount",value:function(){var i=this.layerReference;if(i){var a=i.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(i){var a=this.props,o=a.x,s=a.y,l=a.width,u=a.height,f=a.orientation,d=a.tickSize,h=a.mirror,m=a.tickMargin,g,v,b,_,C,k,A=h?-1:1,O=i.tickSize||d,w=le(i.tickCoord)?i.tickCoord:i.coordinate;switch(f){case"top":g=v=i.coordinate,_=s+ +!h*u,b=_-A*O,k=b-A*m,C=w;break;case"left":b=_=i.coordinate,v=o+ +!h*l,g=v-A*O,C=g-A*m,k=w;break;case"right":b=_=i.coordinate,v=o+ +h*l,g=v+A*O,C=g+A*m,k=w;break;default:g=v=i.coordinate,_=s+ +h*u,b=_+A*O,k=b+A*m,C=w;break}return{line:{x1:g,y1:b,x2:v,y2:_},tick:{x:C,y:k}}}},{key:"getTickTextAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s;switch(a){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,f=i.mirror,d=i.axisLine,h=Ht(Ht(Ht({},Le(this.props)),Le(d)),{},{fill:"none"});if(u==="top"||u==="bottom"){var m=+(u==="top"&&!f||u==="bottom"&&f);h=Ht(Ht({},h),{},{x1:a,y1:o+m*l,x2:a+s,y2:o+m*l})}else{var g=+(u==="left"&&!f||u==="right"&&f);h=Ht(Ht({},h),{},{x1:a+g*s,y1:o,x2:a+g*s,y2:o+l})}return U.createElement("line",_i({},h,{className:Ze("recharts-cartesian-axis-line",bn(d,"className"))}))}},{key:"renderTicks",value:function(i,a,o){var s=this,l=this.props,u=l.tickLine,f=l.stroke,d=l.tick,h=l.tickFormatter,m=l.unit,g=_d(Ht(Ht({},this.props),{},{ticks:i}),a,o),v=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),_=Le(this.props),C=Le(d),k=Ht(Ht({},_),{},{fill:"none"},Le(u)),A=g.map(function(O,w){var j=s.getTickLineCoord(O),T=j.line,I=j.tick,B=Ht(Ht(Ht(Ht({textAnchor:v,verticalAnchor:b},_),{},{stroke:"none",fill:f},C),I),{},{index:w,payload:O,visibleTicksCount:g.length,tickFormatter:h});return U.createElement(dt,_i({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Ka(s.props,O,w)),u&&U.createElement("line",_i({},k,T,{className:Ze("recharts-cartesian-axis-tick-line",bn(u,"className"))})),d&&n.renderTickItem(d,B,"".concat(Te(h)?h(O.value,w):O.value).concat(m||"")))});return U.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var i=this,a=this.props,o=a.axisLine,s=a.width,l=a.height,u=a.ticksGenerator,f=a.className,d=a.hide;if(d)return null;var h=this.props,m=h.ticks,g=Qc(h,PV),v=m;return Te(u)&&(v=m&&m.length>0?u(this.props):u(g)),s<=0||l<=0||!v||!v.length?null:U.createElement(dt,{className:Ze("recharts-cartesian-axis",f),ref:function(_){i.layerReference=_}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Lt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,a,o){var s;return U.isValidElement(i)?s=U.cloneElement(i,a):Te(i)?s=i(a):s=U.createElement(pl,_i({},a,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),n}(z.Component);up(Wa,"displayName","CartesianAxis");up(Wa,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var NV=["x1","y1","x2","y2","key"],RV=["offset"];function Vi(e){"@babel/helpers - typeof";return Vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vi(e)}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function _g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zl(e)}function cp(e,t,n){return t=E2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E2(e){var t=GV(e,"string");return Vi(t)==="symbol"?t:String(t)}function GV(e,t){if(Vi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fp=function(e){HV(n,e);var t=UV(n);function n(){return zV(this,n),t.apply(this,arguments)}return FV(n,[{key:"renderHorizontal",value:function(i){var a=this,o=this.props,s=o.x,l=o.width,u=o.horizontal;if(!i||!i.length)return null;var f=i.map(function(d,h){var m=Sr(Sr({},a.props),{},{x1:s,y1:d,x2:s+l,y2:d,key:"line-".concat(h),index:h});return n.renderLineItem(u,m)});return U.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}},{key:"renderVertical",value:function(i){var a=this,o=this.props,s=o.y,l=o.height,u=o.vertical;if(!i||!i.length)return null;var f=i.map(function(d,h){var m=Sr(Sr({},a.props),{},{x1:d,y1:s,x2:d,y2:s+l,key:"line-".concat(h),index:h});return n.renderLineItem(u,m)});return U.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}},{key:"renderVerticalStripes",value:function(i){var a=this.props.verticalFill;if(!a||!a.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,f=o.width,d=o.height,h=i.map(function(g){return Math.round(g+l-l)}).sort(function(g,v){return g-v});l!==h[0]&&h.unshift(0);var m=h.map(function(g,v){var b=!h[v+1],_=b?l+f-g:h[v+1]-g;if(_<=0)return null;var C=v%a.length;return U.createElement("rect",{key:"react-".concat(v),x:g,y:u,width:_,height:d,stroke:"none",fill:a[C],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}},{key:"renderHorizontalStripes",value:function(i){var a=this.props.horizontalFill;if(!a||!a.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,f=o.width,d=o.height,h=i.map(function(g){return Math.round(g+u-u)}).sort(function(g,v){return g-v});u!==h[0]&&h.unshift(0);var m=h.map(function(g,v){var b=!h[v+1],_=b?u+d-g:h[v+1]-g;if(_<=0)return null;var C=v%a.length;return U.createElement("rect",{key:"react-".concat(v),y:g,x:l,height:_,width:f,stroke:"none",fill:a[C],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}},{key:"renderBackground",value:function(){var i=this.props.fill;if(!i||i==="none")return null;var a=this.props,o=a.fillOpacity,s=a.x,l=a.y,u=a.width,f=a.height;return U.createElement("rect",{x:s,y:l,width:u,height:f,stroke:"none",fill:i,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.horizontal,f=i.vertical,d=i.horizontalCoordinatesGenerator,h=i.verticalCoordinatesGenerator,m=i.xAxis,g=i.yAxis,v=i.offset,b=i.chartWidth,_=i.chartHeight,C=i.syncWithTicks,k=i.horizontalValues,A=i.verticalValues;if(!le(s)||s<=0||!le(l)||l<=0||!le(a)||a!==+a||!le(o)||o!==+o)return null;var O=this.props,w=O.horizontalPoints,j=O.verticalPoints;if((!w||!w.length)&&Te(d)){var T=k&&k.length;w=d({yAxis:g?Sr(Sr({},g),{},{ticks:T?k:g.ticks}):void 0,width:b,height:_,offset:v},T?!0:C)}if((!j||!j.length)&&Te(h)){var I=A&&A.length;j=h({xAxis:m?Sr(Sr({},m),{},{ticks:I?A:m.ticks}):void 0,width:b,height:_,offset:v},I?!0:C)}return U.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(w),f&&this.renderVertical(j),u&&this.renderHorizontalStripes(w),f&&this.renderVerticalStripes(j))}}],[{key:"renderLineItem",value:function(i,a){var o;if(U.isValidElement(i))o=U.cloneElement(i,a);else if(Te(i))o=i(a);else{var s=a.x1,l=a.y1,u=a.x2,f=a.y2,d=a.key,h=Sg(a,NV),m=Le(h);m.offset;var g=Sg(m,RV);o=U.createElement("line",kd({},g,{x1:s,y1:l,x2:u,y2:f,fill:"none",key:d}))}return o}}]),n}(z.PureComponent);cp(fp,"displayName","CartesianGrid");cp(fp,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var Iu=function(){return null};Iu.displayName="ZAxis";Iu.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var qV=["option","isActive"];function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function ZV(e){var t=e.option,n=e.isActive,r=KV(e,qV);return typeof t=="string"?U.createElement(yd,Ya({option:U.createElement(yu,Ya({type:t},r)),isActive:n,shapeType:"symbols"},r)):U.createElement(yd,Ya({option:t,isActive:n,shapeType:"symbols"},r))}function Gi(e){"@babel/helpers - typeof";return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(e)}function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fl(e)}function Pr(e,t,n){return t=M2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M2(e){var t=iG(e,"string");return Gi(t)==="symbol"?t:String(t)}function iG(e,t){if(Gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var es=function(e){eG(n,e);var t=tG(n);function n(){var r;JV(this,n);for(var i=arguments.length,a=new Array(i),o=0;o-1?i[a?t[o]:o]:void 0}}var uG=lG,cG=w2;function fG(e){var t=cG(e),n=t%1;return t===t?n?t-n:t:0}var dG=fG,hG=Xx,pG=Ir,mG=dG,yG=Math.max;function gG(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:mG(n);return i<0&&(i=yG(r+i,0)),hG(e,pG(t),i)}var vG=gG,xG=uG,bG=vG,wG=xG(bG),SG=wG;const _G=st(SG);var OG="Invariant failed";function kG(e,t){if(!e)throw new Error(OG)}function $2(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=$t(t,n,r,i),s=$t(t,n,r,a);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function Pg(e){return jG(e)||AG(e)||PG(e)||CG()}function CG(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PG(e,t){if(e){if(typeof e=="string")return Ad(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ad(e,t)}}function AG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jG(e){if(Array.isArray(e))return Ad(e)}function Ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WG(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function YG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eg(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hl(e){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hl(e)}function Ki(e){return QG(e)||JG(e)||L2(e)||ZG()}function ZG(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L2(e,t){if(e){if(typeof e=="string")return Ed(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ed(e,t)}}function JG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QG(e){if(Array.isArray(e))return Ed(e)}function Ed(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o:t&&t.length&&le(i)&&le(a)?t.slice(i,a+1):[]};function B2(e){return e==="number"?[0,"auto"]:void 0}var z2=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Nu(n,t);return r<0||!a||!a.length||r>=s.length?null:a.reduce(function(l,u){var f,d=u.props.hide;if(d)return l;var h=(f=u.props.data)!==null&&f!==void 0?f:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var g=h===void 0?s:h;m=Zs(g,o.dataKey,i)}else m=h&&h[r]||s[r];return m?[].concat(Ki(l),[y2(u,m)]):l},[])},$g=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=rq(a,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=QF(o,s,u,l);if(f>=0&&u){var d=u[f]&&u[f].value,h=z2(t,n,f,d),m=iq(r,s,f,a);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:m}}return null},aq=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,m=p2(f,a);return r.reduce(function(g,v){var b,_=v.props,C=_.type,k=_.dataKey,A=_.allowDataOverflow,O=_.allowDuplicatedCategory,w=_.scale,j=_.ticks,T=_.includeHidden,I=v.props[o];if(g[I])return g;var B=Nu(t.data,{graphicalItems:i.filter(function(ue){return ue.props[o]===I}),dataStartIndex:l,dataEndIndex:u}),M=B.length,D,W,Y;LG(v.props.domain,A,C)&&(D=ld(v.props.domain,null,A),m&&(C==="number"||w!=="auto")&&(Y=Ua(B,k,"category")));var V=B2(C);if(!D||D.length===0){var X,Z=(X=v.props.domain)!==null&&X!==void 0?X:V;if(k){if(D=Ua(B,k,C),C==="category"&&m){var G=mA(D);O&&G?(W=D,D=$l(0,M)):O||(D=Ty(Z,D,v).reduce(function(ue,$){return ue.indexOf($)>=0?ue:[].concat(Ki(ue),[$])},[]))}else if(C==="category")O?D=D.filter(function(ue){return ue!==""&&!Ee(ue)}):D=Ty(Z,D,v).reduce(function(ue,$){return ue.indexOf($)>=0||$===""||Ee($)?ue:[].concat(Ki(ue),[$])},[]);else if(C==="number"){var Q=iH(B,i.filter(function(ue){return ue.props[o]===I&&(T||!ue.props.hide)}),k,a,f);Q&&(D=Q)}m&&(C==="number"||w!=="auto")&&(Y=Ua(B,k,"category"))}else m?D=$l(0,M):s&&s[I]&&s[I].hasStack&&C==="number"?D=h==="expand"?[0,1]:m2(s[I].stackGroups,l,u):D=h2(B,i.filter(function(ue){return ue.props[o]===I&&(T||!ue.props.hide)}),C,f,!0);if(C==="number")D=jd(d,D,I,a,j),Z&&(D=ld(Z,D,A));else if(C==="category"&&Z){var E=Z,pe=D.every(function(ue){return E.indexOf(ue)>=0});pe&&(D=E)}}return J(J({},g),{},ye({},I,J(J({},v.props),{},{axisType:a,domain:D,categoricalDomain:Y,duplicateDomain:W,originalDomain:(b=v.props.domain)!==null&&b!==void 0?b:V,isCategorical:m,layout:f})))},{})},oq=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=Nu(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),m=h.length,g=p2(f,a),v=-1;return r.reduce(function(b,_){var C=_.props[o],k=B2("number");if(!b[C]){v++;var A;return g?A=$l(0,m):s&&s[C]&&s[C].hasStack?(A=m2(s[C].stackGroups,l,u),A=jd(d,A,C,a)):(A=ld(k,h2(h,r.filter(function(O){return O.props[o]===C&&!O.props.hide}),"number",f),i.defaultProps.allowDataOverflow),A=jd(d,A,C,a)),J(J({},b),{},ye({},C,J(J({axisType:a},i.defaultProps),{},{hide:!0,orientation:bn(tq,"".concat(a,".").concat(v%2),null),domain:A,originalDomain:k,isCategorical:g,layout:f})))}return b},{})},sq=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(i,"Id"),h=cn(f,a),m={};return h&&h.length?m=aq(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(m=oq(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),m},lq=function(t){var n=_r(t),r=Or(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Th(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Pl(n,r)}},Ig=function(t){var n=t.children,r=t.defaultShowTooltip,i=er(n,Ao),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},uq=function(t){return!t||!t.length?!1:t.some(function(n){var r=ir(n&&n.type);return r&&r.indexOf("Bar")>=0})},Dg=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},cq=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,f=r.height,d=r.children,h=r.margin||{},m=er(d,Ao),g=er(d,Ja),v=Object.keys(l).reduce(function(O,w){var j=l[w],T=j.orientation;return!j.mirror&&!j.hide?J(J({},O),{},ye({},T,O[T]+j.width)):O},{left:h.left||0,right:h.right||0}),b=Object.keys(o).reduce(function(O,w){var j=o[w],T=j.orientation;return!j.mirror&&!j.hide?J(J({},O),{},ye({},T,bn(O,"".concat(T))+j.height)):O},{top:h.top||0,bottom:h.bottom||0}),_=J(J({},b),v),C=_.bottom;m&&(_.bottom+=m.props.height||Ao.defaultProps.height),g&&n&&(_=nH(_,i,r,n));var k=u-_.left-_.right,A=f-_.top-_.bottom;return J(J({brushBottom:C},_),{},{width:Math.max(k,0),height:Math.max(A,0)})},fq=function(t){var n,r=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,f=t.legendContent,d=t.formatAxisMap,h=t.defaultProps,m=function(b,_){var C=_.graphicalItems,k=_.stackGroups,A=_.offset,O=_.updateId,w=_.dataStartIndex,j=_.dataEndIndex,T=b.barSize,I=b.layout,B=b.barGap,M=b.barCategoryGap,D=b.maxBarSize,W=Dg(I),Y=W.numericAxisName,V=W.cateAxisName,X=uq(C),Z=X&&eH({barSize:T,stackGroups:k}),G=[];return C.forEach(function(Q,E){var pe=Nu(b.data,{graphicalItems:[Q],dataStartIndex:w,dataEndIndex:j}),ue=Q.props,$=ue.dataKey,_e=ue.maxBarSize,te=Q.props["".concat(Y,"Id")],ge=Q.props["".concat(V,"Id")],Ye={},Me=u.reduce(function(Ne,it){var nn,Cn=_["".concat(it.axisType,"Map")],N=Q.props["".concat(it.axisType,"Id")];Cn&&Cn[N]||it.axisType==="zAxis"||kG(!1);var q=Cn[N];return J(J({},Ne),{},(nn={},ye(nn,it.axisType,q),ye(nn,"".concat(it.axisType,"Ticks"),Or(q)),nn))},Ye),ae=Me[V],de=Me["".concat(V,"Ticks")],ve=k&&k[te]&&k[te].hasStack&&yH(Q,k[te].stackGroups),ee=ir(Q.type).indexOf("Bar")>=0,Ae=Pl(ae,de),he=[];if(ee){var xe,He,rt=Ee(_e)?D:_e,ft=(xe=(He=Pl(ae,de,!0))!==null&&He!==void 0?He:rt)!==null&&xe!==void 0?xe:0;he=tH({barGap:B,barCategoryGap:M,bandSize:ft!==Ae?ft:Ae,sizeList:Z[ge],maxBarSize:rt}),ft!==Ae&&(he=he.map(function(Ne){return J(J({},Ne),{},{position:J(J({},Ne.position),{},{offset:Ne.position.offset-ft/2})})}))}var tn=Q&&Q.type&&Q.type.getComposedData;if(tn){var Ue;G.push({props:J(J({},tn(J(J({},Me),{},{displayedData:pe,props:b,dataKey:$,item:Q,bandSize:Ae,barPosition:he,offset:A,stackedData:ve,layout:I,dataStartIndex:w,dataEndIndex:j}))),{},(Ue={key:Q.key||"item-".concat(E)},ye(Ue,Y,Me[Y]),ye(Ue,V,Me[V]),ye(Ue,"animationId",O),Ue)),childIndex:PA(Q,b.children),item:Q})}}),G},g=function(b,_){var C=b.props,k=b.dataStartIndex,A=b.dataEndIndex,O=b.updateId;if(!f0({props:C}))return null;var w=C.children,j=C.layout,T=C.stackOffset,I=C.data,B=C.reverseStackOrder,M=Dg(j),D=M.numericAxisName,W=M.cateAxisName,Y=cn(w,i),V=hH(I,Y,"".concat(D,"Id"),"".concat(W,"Id"),T,B),X=u.reduce(function(pe,ue){var $="".concat(ue.axisType,"Map");return J(J({},pe),{},ye({},$,sq(C,J(J({},ue),{},{graphicalItems:Y,stackGroups:ue.axisType===D&&V,dataStartIndex:k,dataEndIndex:A}))))},{}),Z=cq(J(J({},X),{},{props:C,graphicalItems:Y}),_==null?void 0:_.legendBBox);Object.keys(X).forEach(function(pe){X[pe]=d(C,X[pe],Z,pe.replace("Map",""),r)});var G=X["".concat(W,"Map")],Q=lq(G),E=m(C,J(J({},X),{},{dataStartIndex:k,dataEndIndex:A,updateId:O,graphicalItems:Y,stackGroups:V,offset:Z}));return J(J({formattedGraphicalItems:E,graphicalItems:Y,offset:Z,stackGroups:V},Q),X)};return n=function(v){GG(_,v);var b=qG(_);function _(C){var k,A,O;return YG(this,_),O=b.call(this,C),ye(Pe(O),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ye(Pe(O),"accessibilityManager",new DG),ye(Pe(O),"handleLegendBBoxUpdate",function(w){if(w){var j=O.state,T=j.dataStartIndex,I=j.dataEndIndex,B=j.updateId;O.setState(J({legendBBox:w},g({props:O.props,dataStartIndex:T,dataEndIndex:I,updateId:B},J(J({},O.state),{},{legendBBox:w}))))}}),ye(Pe(O),"handleReceiveSyncEvent",function(w,j,T){if(O.props.syncId===w){if(T===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(j)}}),ye(Pe(O),"handleBrushChange",function(w){var j=w.startIndex,T=w.endIndex;if(j!==O.state.dataStartIndex||T!==O.state.dataEndIndex){var I=O.state.updateId;O.setState(function(){return J({dataStartIndex:j,dataEndIndex:T},g({props:O.props,dataStartIndex:j,dataEndIndex:T,updateId:I},O.state))}),O.triggerSyncEvent({dataStartIndex:j,dataEndIndex:T})}}),ye(Pe(O),"handleMouseEnter",function(w){var j=O.getMouseInfo(w);if(j){var T=J(J({},j),{},{isTooltipActive:!0});O.setState(T),O.triggerSyncEvent(T);var I=O.props.onMouseEnter;Te(I)&&I(T,w)}}),ye(Pe(O),"triggeredAfterMouseMove",function(w){var j=O.getMouseInfo(w),T=j?J(J({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(T),O.triggerSyncEvent(T);var I=O.props.onMouseMove;Te(I)&&I(T,w)}),ye(Pe(O),"handleItemMouseEnter",function(w){O.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),ye(Pe(O),"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),ye(Pe(O),"handleMouseMove",function(w){w.persist(),O.throttleTriggeredAfterMouseMove(w)}),ye(Pe(O),"handleMouseLeave",function(w){var j={isTooltipActive:!1};O.setState(j),O.triggerSyncEvent(j);var T=O.props.onMouseLeave;Te(T)&&T(j,w)}),ye(Pe(O),"handleOuterEvent",function(w){var j=CA(w),T=bn(O.props,"".concat(j));if(j&&Te(T)){var I,B;/.*touch.*/i.test(j)?B=O.getMouseInfo(w.changedTouches[0]):B=O.getMouseInfo(w),T((I=B)!==null&&I!==void 0?I:{},w)}}),ye(Pe(O),"handleClick",function(w){var j=O.getMouseInfo(w);if(j){var T=J(J({},j),{},{isTooltipActive:!0});O.setState(T),O.triggerSyncEvent(T);var I=O.props.onClick;Te(I)&&I(T,w)}}),ye(Pe(O),"handleMouseDown",function(w){var j=O.props.onMouseDown;if(Te(j)){var T=O.getMouseInfo(w);j(T,w)}}),ye(Pe(O),"handleMouseUp",function(w){var j=O.props.onMouseUp;if(Te(j)){var T=O.getMouseInfo(w);j(T,w)}}),ye(Pe(O),"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),ye(Pe(O),"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&O.handleMouseDown(w.changedTouches[0])}),ye(Pe(O),"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&O.handleMouseUp(w.changedTouches[0])}),ye(Pe(O),"triggerSyncEvent",function(w){O.props.syncId!==void 0&&ef.emit(tf,O.props.syncId,w,O.eventEmitterSymbol)}),ye(Pe(O),"applySyncEvent",function(w){var j=O.props,T=j.layout,I=j.syncMethod,B=O.state.updateId,M=w.dataStartIndex,D=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)O.setState(J({dataStartIndex:M,dataEndIndex:D},g({props:O.props,dataStartIndex:M,dataEndIndex:D,updateId:B},O.state)));else if(w.activeTooltipIndex!==void 0){var W=w.chartX,Y=w.chartY,V=w.activeTooltipIndex,X=O.state,Z=X.offset,G=X.tooltipTicks;if(!Z)return;if(typeof I=="function")V=I(G,w);else if(I==="value"){V=-1;for(var Q=0;Q=0){var ve,ee;if(W.dataKey&&!W.allowDuplicatedCategory){var Ae=typeof W.dataKey=="function"?de:"payload.".concat(W.dataKey.toString());ve=Zs(Q,Ae,V),ee=E&&pe&&Zs(pe,Ae,V)}else ve=Q==null?void 0:Q[Y],ee=E&&pe&&pe[Y];if(ge||te){var he=w.props.activeIndex!==void 0?w.props.activeIndex:Y;return[z.cloneElement(w,J(J(J({},I.props),Me),{},{activeIndex:he})),null,null]}if(!Ee(ve))return[ae].concat(Ki(O.renderActivePoints({item:I,activePoint:ve,basePoint:ee,childIndex:Y,isRange:E})))}else{var xe,He=(xe=O.getItemByXY(O.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:ae},rt=He.graphicalItem,ft=rt.item,tn=ft===void 0?w:ft,Ue=rt.childIndex,Ne=J(J(J({},I.props),Me),{},{activeIndex:Ue});return[z.cloneElement(tn,Ne),null,null]}return E?[ae,null,null]:[ae,null]}),ye(Pe(O),"renderCustomized",function(w,j,T){return z.cloneElement(w,J(J({key:"recharts-customized-".concat(T)},O.props),O.state))}),ye(Pe(O),"renderMap",{CartesianGrid:{handler:O.renderGrid,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:O.renderReferenceElement},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:O.renderXAxis},YAxis:{handler:O.renderYAxis},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((k=C.id)!==null&&k!==void 0?k:Vo("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=pb(O.triggeredAfterMouseMove,(A=C.throttleDelay)!==null&&A!==void 0?A:1e3/60),O.state={},O}return VG(_,[{key:"componentDidMount",value:function(){var k,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(k=this.props.margin.left)!==null&&k!==void 0?k:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(k,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==k.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==k.margin){var O,w;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var k=er(this.props.children,qr);if(k&&typeof k.props.shared=="boolean"){var A=k.props.shared?"axis":"item";return l.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(k){if(!this.container)return null;var A=this.container,O=A.getBoundingClientRect(),w=$N(O),j={chartX:Math.round(k.pageX-w.left),chartY:Math.round(k.pageY-w.top)},T=O.width/A.offsetWidth||1,I=this.inRange(j.chartX,j.chartY,T);if(!I)return null;var B=this.state,M=B.xAxisMap,D=B.yAxisMap,W=this.getTooltipEventType();if(W!=="axis"&&M&&D){var Y=_r(M).scale,V=_r(D).scale,X=Y&&Y.invert?Y.invert(j.chartX):null,Z=V&&V.invert?V.invert(j.chartY):null;return J(J({},j),{},{xValue:X,yValue:Z})}var G=$g(this.state,this.props.data,this.props.layout,I);return G?J(J({},j),G):null}},{key:"inRange",value:function(k,A){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,j=k/O,T=A/O;if(w==="horizontal"||w==="vertical"){var I=this.state.offset,B=j>=I.left&&j<=I.left+I.width&&T>=I.top&&T<=I.top+I.height;return B?{x:j,y:T}:null}var M=this.state,D=M.angleAxisMap,W=M.radiusAxisMap;if(D&&W){var Y=_r(D);return $y({x:j,y:T},Y)}return null}},{key:"parseEventsOfWrapper",value:function(){var k=this.props.children,A=this.getTooltipEventType(),O=er(k,qr),w={};O&&A==="axis"&&(O.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var j=Js(this.props,this.handleOuterEvent);return J(J({},j),w)}},{key:"addListener",value:function(){ef.on(tf,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ef.removeListener(tf,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(k,A,O){for(var w=this.state.formattedGraphicalItems,j=0,T=w.length;jy.jsx(op,{cx:e,cy:t,fill:R.blueTextAccent,r:2}),pq=()=>{const e=qt(),t=[...(e==null?void 0:e.data)||[]].sort((i,a)=>(i.year||0)-(a.year||0)),n=t.map(i=>i.year).filter(i=>i),r=t.map(i=>i.rate).filter(i=>i);return y.jsx(mq,{direction:"column",px:24,py:16,children:y.jsx(CN,{height:"100%",width:"100%",children:y.jsxs(dq,{margin:{bottom:20,left:20,right:20,top:20},children:[y.jsx(fp,{stroke:"#f5f5f5"}),y.jsx(Du,{dataKey:"year",domain:[Math.min(...n),Math.max(...n)],label:{fill:R.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:R.white,fontSize:"8px"},type:"number"}),y.jsx(Lu,{color:"#000",dataKey:"rate",domain:[Math.min(...r),Math.max(...r)],label:{angle:-90,fill:R.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:R.white,fontSize:"8px"},type:"number"}),y.jsx(qr,{cursor:{strokeDasharray:"3 3"}}),y.jsx(es,{data:t,fill:R.blueTextAccent,line:!0,name:"A scatter",shape:y.jsx(hq,{})})]})})})},mq=H(F)` + A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(n+i-s*g," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},PU=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),d=Math.min(o,o+l),h=Math.max(o,o+l);return r>=u&&r<=f&&i>=d&&i<=h}return!1},AU={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ap=function(t){var n=Yy(Yy({},AU),t),r=z.useRef(),i=z.useState(-1),a=xU(i,2),o=a[0],s=a[1];z.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&s(A)}catch{}},[]);var l=n.x,u=n.y,f=n.width,d=n.height,h=n.radius,m=n.className,g=n.animationEasing,v=n.animationDuration,b=n.animationBegin,_=n.isAnimationActive,C=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var k=Ze("recharts-rectangle",m);return C?U.createElement(lr,{canBegin:o>0,from:{width:f,height:d,x:l,y:u},to:{width:f,height:d,x:l,y:u},duration:v,animationEasing:g,isActive:C},function(A){var O=A.width,w=A.height,j=A.x,T=A.y;return U.createElement(lr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,isActive:_,easing:g},U.createElement("path",jl({},Le(n,!0),{className:k,d:Vy(j,T,O,w,h),ref:r})))}):U.createElement("path",jl({},Le(n,!0),{className:k,d:Vy(l,u,f,d,h)}))};function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DU(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var LU=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},NU=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,d=f===void 0?0:f,h=t.height,m=h===void 0?0:h,g=t.className,v=IU(t,jU),b=TU({x:r,y:a,top:s,left:u,width:d,height:m},v);return!le(r)||!le(a)||!le(d)||!le(m)||!le(s)||!le(u)?null:U.createElement("path",md({},Le(b,!0),{className:Ze("recharts-cross",g),d:LU(r,a,d,m,s,u)}))},RU=Bo,BU=_4,zU=Ji,FU="[object Object]",HU=Function.prototype,UU=Object.prototype,b2=HU.toString,WU=UU.hasOwnProperty,YU=b2.call(Object);function VU(e){if(!zU(e)||RU(e)!=FU)return!1;var t=BU(e);if(t===null)return!0;var n=WU.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&b2.call(n)==YU}var GU=VU;const qU=st(GU);var KU=Bo,XU=Ji,ZU="[object Boolean]";function JU(e){return e===!0||e===!1||XU(e)&&KU(e)==ZU}var QU=JU;const eW=st(QU);function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:f,lowerWidth:d,height:h,x:l,y:u},duration:v,animationEasing:g,isActive:_},function(k){var A=k.upperWidth,O=k.lowerWidth,w=k.height,j=k.x,T=k.y;return U.createElement(lr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,easing:g},U.createElement("path",Tl({},Le(n,!0),{className:C,d:Zy(j,T,A,O,w),ref:r})))}):U.createElement("g",null,U.createElement("path",Tl({},Le(n,!0),{className:C,d:Zy(l,u,f,d,h)})))},fW=["option","shapeType","propTransformer","activeClassName","isActive"];function ko(e){"@babel/helpers - typeof";return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(e)}function dW(e,t){if(e==null)return{};var n=hW(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Jy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function El(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Il(e){return Il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Il(e)}function sn(e,t,n){return t=_2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _2(e){var t=ZW(e,"string");return Ui(t)==="symbol"?t:String(t)}function ZW(e,t){if(Ui(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ui(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JW=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=Ha().domain(Ml(0,l)).range([a,a+o-s]),f=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:f}},ag=function(t){return t.changedTouches&&!!t.changedTouches.length},Ao=function(e){GW(n,e);var t=qW(n);function n(r){var i;return YW(this,n),i=t.call(this,r),sn(Dn(i),"handleDrag",function(a){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(a):i.state.isSlideMoving&&i.handleSlideDrag(a)}),sn(Dn(i),"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&i.handleDrag(a.changedTouches[0])}),sn(Dn(i),"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=i.props,o=a.endIndex,s=a.onDragEnd,l=a.startIndex;s==null||s({endIndex:o,startIndex:l})}),i.detachDragEndListener()}),sn(Dn(i),"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),sn(Dn(i),"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),sn(Dn(i),"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),sn(Dn(i),"handleSlideDragStart",function(a){var o=ag(a)?a.changedTouches[0]:a;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(Dn(i),"startX"),endX:i.handleTravellerDragStart.bind(Dn(i),"endX")},i.state={},i}return VW(n,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var a=i.startX,o=i.endX,s=this.state.scaleValues,l=this.props,u=l.gap,f=l.data,d=f.length-1,h=Math.min(a,o),m=Math.max(a,o),g=n.getIndexInRange(s,h),v=n.getIndexInRange(s,m);return{startIndex:g-g%u,endIndex:v===d?d:v-v%u}}},{key:"getTextOfTick",value:function(i){var a=this.props,o=a.data,s=a.tickFormatter,l=a.dataKey,u=Gt(o[i],l,i);return Te(s)?s(u,i):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var a=this.state,o=a.slideMoveStartX,s=a.startX,l=a.endX,u=this.props,f=u.x,d=u.width,h=u.travellerWidth,m=u.startIndex,g=u.endIndex,v=u.onChange,b=i.pageX-o;b>0?b=Math.min(b,f+d-h-l,f+d-h-s):b<0&&(b=Math.max(b,f-s,f-l));var _=this.getIndex({startX:s+b,endX:l+b});(_.startIndex!==m||_.endIndex!==g)&&v&&v(_),this.setState({startX:s+b,endX:l+b,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,a){var o=ag(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var a,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,u=o.endX,f=o.startX,d=this.state[l],h=this.props,m=h.x,g=h.width,v=h.travellerWidth,b=h.onChange,_=h.gap,C=h.data,k={startX:this.state.startX,endX:this.state.endX},A=i.pageX-s;A>0?A=Math.min(A,m+g-v-d):A<0&&(A=Math.max(A,m-d)),k[l]=d+A;var O=this.getIndex(k),w=O.startIndex,j=O.endIndex,T=function(){var B=C.length-1;return l==="startX"&&(u>f?w%_===0:j%_===0)||uf?j%_===0:w%_===0)||u>f&&j===B};this.setState((a={},sn(a,l,d+A),sn(a,"brushMoveStartX",i.pageX),a),function(){b&&T()&&b(O)})}},{key:"handleTravellerMoveKeyboard",value:function(i,a){var o=this,s=this.state,l=s.scaleValues,u=s.startX,f=s.endX,d=this.state[a],h=l.indexOf(d);if(h!==-1){var m=h+i;if(!(m===-1||m>=l.length)){var g=l[m];a==="startX"&&g>=f||a==="endX"&&g<=u||this.setState(sn({},a,g),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.fill,f=i.stroke;return U.createElement("rect",{stroke:f,fill:u,x:a,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.data,f=i.children,d=i.padding,h=z.Children.only(f);return h?U.cloneElement(h,{x:a,y:o,width:s,height:l,margin:d,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(i,a){var o=this,s=this.props,l=s.y,u=s.travellerWidth,f=s.height,d=s.traveller,h=s.ariaLabel,m=s.data,g=s.startIndex,v=s.endIndex,b=Math.max(i,this.props.x),_=Jc(Jc({},Le(this.props)),{},{x:b,y:l,width:u,height:f}),C=h||"Min value: ".concat(m[g].name,", Max value: ").concat(m[v].name);return U.createElement(dt,{tabIndex:0,role:"slider","aria-label":C,"aria-valuenow":i,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),o.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(d,_))}},{key:"renderSlide",value:function(i,a){var o=this.props,s=o.y,l=o.height,u=o.stroke,f=o.travellerWidth,d=Math.min(i,a)+f,h=Math.max(Math.abs(a-i)-f,0);return U.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:d,y:s,width:h,height:l})}},{key:"renderText",value:function(){var i=this.props,a=i.startIndex,o=i.endIndex,s=i.y,l=i.height,u=i.travellerWidth,f=i.stroke,d=this.state,h=d.startX,m=d.endX,g=5,v={pointerEvents:"none",fill:f};return U.createElement(dt,{className:"recharts-brush-texts"},U.createElement(hl,$l({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,m)-g,y:s+l/2},v),this.getTextOfTick(a)),U.createElement(hl,$l({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,m)+u+g,y:s+l/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var i=this.props,a=i.data,o=i.className,s=i.children,l=i.x,u=i.y,f=i.width,d=i.height,h=i.alwaysShowText,m=this.state,g=m.startX,v=m.endX,b=m.isTextActive,_=m.isSlideMoving,C=m.isTravellerMoving,k=m.isTravellerFocused;if(!a||!a.length||!le(l)||!le(u)||!le(f)||!le(d)||f<=0||d<=0)return null;var A=Ze("recharts-brush",o),O=U.Children.count(s)===1,w=WW("userSelect","none");return U.createElement(dt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(g,v),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(v,"endX"),(b||_||C||k||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var a=i.x,o=i.y,s=i.width,l=i.height,u=i.stroke,f=Math.floor(o+l/2)-1;return U.createElement(U.Fragment,null,U.createElement("rect",{x:a,y:o,width:s,height:l,fill:u,stroke:"none"}),U.createElement("line",{x1:a+1,y1:f,x2:a+s-1,y2:f,fill:"none",stroke:"#fff"}),U.createElement("line",{x1:a+1,y1:f+2,x2:a+s-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,a){var o;return U.isValidElement(i)?o=U.cloneElement(i,a):Te(i)?o=i(a):o=n.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(i,a){var o=i.data,s=i.width,l=i.x,u=i.travellerWidth,f=i.updateId,d=i.startIndex,h=i.endIndex;if(o!==a.prevData||f!==a.prevUpdateId)return Jc({prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s},o&&o.length?JW({data:o,width:s,x:l,travellerWidth:u,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||l!==a.prevX||u!==a.prevTravellerWidth)){a.scale.range([l,l+s-u]);var m=a.scale.domain().map(function(g){return a.scale(g)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s,startX:a.scale(i.startIndex),endX:a.scale(i.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(i,a){for(var o=i.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);i[u]>a?l=u:s=u}return a>=i[l]?l:s}}]),n}(z.PureComponent);sn(Ao,"displayName","Brush");sn(Ao,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var QW=jh;function eY(e,t){var n;return QW(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var tY=eY,nY=Wx,rY=Ir,iY=tY,aY=_n,oY=vu;function sY(e,t,n){var r=aY(e)?nY:iY;return n&&oY(e,t,n)&&(t=void 0),r(e,rY(t))}var lY=sY;const uY=st(lY);var Hn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},cY=O4,fY=nb,dY=Ir;function hY(e,t){var n={};return t=dY(t),fY(e,function(r,i,a){cY(n,i,t(r,i,a))}),n}var pY=hY;const mY=st(pY);function yY(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $Y(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function IY(e,t){var n=e.x,r=e.y,i=MY(e,AY),a="".concat(n),o=parseInt(a,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),d="".concat(t.width||i.width),h=parseInt(d,10);return Ta(Ta(Ta(Ta(Ta({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function sg(e){return U.createElement(yd,vd({shapeType:"rectangle",propTransformer:IY,activeClassName:"recharts-active-bar"},e))}var DY=["value","background"];function Wi(e){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wi(e)}function LY(e,t){if(e==null)return{};var n=NY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ll(e)}function Pr(e,t,n){return t=k2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k2(e){var t=WY(e,"string");return Wi(t)==="symbol"?t:String(t)}function WY(e,t){if(Wi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mu=function(e){zY(n,e);var t=FY(n);function n(){var r;RY(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0&&Math.abs(Y)0&&Math.abs(W)0&&(W=Math.min((_e||0)-(Y[te-1]||0),W))});var V=W/D,X=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(j=V*X/2),v.padding==="no-gap"){var Z=Mi(t.barCategoryGap,V*X),G=V*X/2;j=G-Z-(G-Z)/X*Z}}i==="xAxis"?T=[r.left+(k.left||0)+(j||0),r.left+r.width-(k.right||0)-(j||0)]:i==="yAxis"?T=l==="horizontal"?[r.top+r.height-(k.bottom||0),r.top+(k.top||0)]:[r.top+(k.top||0)+(j||0),r.top+r.height-(k.bottom||0)-(j||0)]:T=v.range,O&&(T=[T[1],T[0]]);var Q=aH(v,a,h),E=Q.scale,pe=Q.realScaleType;E.domain(_).range(T),oH(E);var ue=pH(E,jn(jn({},v),{},{realScaleType:pe}));i==="xAxis"?(M=b==="top"&&!A||b==="bottom"&&A,I=r.left,B=d[w]-M*v.height):i==="yAxis"&&(M=b==="left"&&!A||b==="right"&&A,I=d[w]-M*v.width,B=r.top);var $=jn(jn(jn({},v),ue),{},{realScaleType:pe,x:I,y:B,scale:E,width:i==="xAxis"?r.width:v.width,height:i==="yAxis"?r.height:v.height});return $.bandSize=Cl($,ue),!v.hide&&i==="xAxis"?d[w]+=(M?-1:1)*$.height:v.hide||(d[w]+=(M?-1:1)*$.width),jn(jn({},m),{},$u({},g,$))},{})},P2=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},KY=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return P2({x:n,y:r},{x:i,y:a})},A2=function(){function e(t){YY(this,e),this.scale=t}return VY(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}]),e}();$u(A2,"EPS",1e-4);var sp=function(t){var n=Object.keys(t).reduce(function(r,i){return jn(jn({},r),{},$u({},i,A2.create(t[i])))},{});return jn(jn({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return mY(i,function(l,u){return n[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return O2(i,function(a,o){return n[o].isInRange(a)})}})};function XY(e){return(e%180+180)%180}var ZY=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=XY(i),o=a*Math.PI/180,s=Math.atan(r/n),l=o>s&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function vV(e,t){return j2(e,t+1)}function xV(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,d=function(){var g=r==null?void 0:r[l];if(g===void 0)return{v:j2(r,u)};var v=l,b,_=function(){return b===void 0&&(b=n(g,v)),b},C=g.coordinate,k=l===0||Nl(e,C,_,f,s);k||(l=0,f=o,u+=1),k&&(f=C+e*(_()/2+i),l+=u)},h;u<=a.length;)if(h=d(),h)return h.v;return[]}function Io(e){"@babel/helpers - typeof";return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Io(e)}function xg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t0?m.coordinate-b*e:m.coordinate})}else a[h]=m=Dt(Dt({},m),{},{tickCoord:m.coordinate});var _=Nl(e,m.tickCoord,v,s,l);_&&(l=m.tickCoord-e*(v()/2+i),a[h]=Dt(Dt({},m),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function OV(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=r[s-1],d=n(f,s-1),h=e*(f.coordinate+e*d/2-u);o[s-1]=f=Dt(Dt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var m=Nl(e,f.tickCoord,function(){return d},l,u);m&&(u=f.tickCoord-e*(d/2+i),o[s-1]=Dt(Dt({},f),{},{isShow:!0}))}for(var g=a?s-1:s,v=function(C){var k=o[C],A,O=function(){return A===void 0&&(A=n(k,C)),A};if(C===0){var w=e*(k.coordinate-e*O()/2-l);o[C]=k=Dt(Dt({},k),{},{tickCoord:w<0?k.coordinate-w*e:k.coordinate})}else o[C]=k=Dt(Dt({},k),{},{tickCoord:k.coordinate});var j=Nl(e,k.tickCoord,O,l,u);j&&(l=k.tickCoord+e*(O()/2+i),o[C]=Dt(Dt({},k),{},{isShow:!0}))},b=0;b=2?Mn(i[1].coordinate-i[0].coordinate):1,_=gV(a,b,m);return l==="equidistantPreserveStart"?xV(b,_,v,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=OV(b,_,v,i,o,l==="preserveStartEnd"):h=_V(b,_,v,i,o),h.filter(function(C){return C.isShow}))}var kV=["viewBox"],CV=["viewBox"],PV=["ticks"];function Yi(e){"@babel/helpers - typeof";return Yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yi(e)}function _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function jV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wg(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rl(e)}function up(e,t,n){return t=T2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T2(e){var t=LV(e,"string");return Yi(t)==="symbol"?t:String(t)}function LV(e,t){if(Yi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wa=function(e){EV(n,e);var t=MV(n);function n(r){var i;return jV(this,n),i=t.call(this,r),i.state={fontSize:"",letterSpacing:""},i}return TV(n,[{key:"shouldComponentUpdate",value:function(i,a){var o=i.viewBox,s=Qc(i,kV),l=this.props,u=l.viewBox,f=Qc(l,CV);return!Pi(o,u)||!Pi(s,f)||!Pi(a,this.state)}},{key:"componentDidMount",value:function(){var i=this.layerReference;if(i){var a=i.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(i){var a=this.props,o=a.x,s=a.y,l=a.width,u=a.height,f=a.orientation,d=a.tickSize,h=a.mirror,m=a.tickMargin,g,v,b,_,C,k,A=h?-1:1,O=i.tickSize||d,w=le(i.tickCoord)?i.tickCoord:i.coordinate;switch(f){case"top":g=v=i.coordinate,_=s+ +!h*u,b=_-A*O,k=b-A*m,C=w;break;case"left":b=_=i.coordinate,v=o+ +!h*l,g=v-A*O,C=g-A*m,k=w;break;case"right":b=_=i.coordinate,v=o+ +h*l,g=v+A*O,C=g+A*m,k=w;break;default:g=v=i.coordinate,_=s+ +h*u,b=_+A*O,k=b+A*m,C=w;break}return{line:{x1:g,y1:b,x2:v,y2:_},tick:{x:C,y:k}}}},{key:"getTickTextAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s;switch(a){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,f=i.mirror,d=i.axisLine,h=Ht(Ht(Ht({},Le(this.props)),Le(d)),{},{fill:"none"});if(u==="top"||u==="bottom"){var m=+(u==="top"&&!f||u==="bottom"&&f);h=Ht(Ht({},h),{},{x1:a,y1:o+m*l,x2:a+s,y2:o+m*l})}else{var g=+(u==="left"&&!f||u==="right"&&f);h=Ht(Ht({},h),{},{x1:a+g*s,y1:o,x2:a+g*s,y2:o+l})}return U.createElement("line",_i({},h,{className:Ze("recharts-cartesian-axis-line",bn(d,"className"))}))}},{key:"renderTicks",value:function(i,a,o){var s=this,l=this.props,u=l.tickLine,f=l.stroke,d=l.tick,h=l.tickFormatter,m=l.unit,g=_d(Ht(Ht({},this.props),{},{ticks:i}),a,o),v=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),_=Le(this.props),C=Le(d),k=Ht(Ht({},_),{},{fill:"none"},Le(u)),A=g.map(function(O,w){var j=s.getTickLineCoord(O),T=j.line,I=j.tick,B=Ht(Ht(Ht(Ht({textAnchor:v,verticalAnchor:b},_),{},{stroke:"none",fill:f},C),I),{},{index:w,payload:O,visibleTicksCount:g.length,tickFormatter:h});return U.createElement(dt,_i({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Ka(s.props,O,w)),u&&U.createElement("line",_i({},k,T,{className:Ze("recharts-cartesian-axis-tick-line",bn(u,"className"))})),d&&n.renderTickItem(d,B,"".concat(Te(h)?h(O.value,w):O.value).concat(m||"")))});return U.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var i=this,a=this.props,o=a.axisLine,s=a.width,l=a.height,u=a.ticksGenerator,f=a.className,d=a.hide;if(d)return null;var h=this.props,m=h.ticks,g=Qc(h,PV),v=m;return Te(u)&&(v=m&&m.length>0?u(this.props):u(g)),s<=0||l<=0||!v||!v.length?null:U.createElement(dt,{className:Ze("recharts-cartesian-axis",f),ref:function(_){i.layerReference=_}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Lt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,a,o){var s;return U.isValidElement(i)?s=U.cloneElement(i,a):Te(i)?s=i(a):s=U.createElement(hl,_i({},a,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),n}(z.Component);up(Wa,"displayName","CartesianAxis");up(Wa,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var NV=["x1","y1","x2","y2","key"],RV=["offset"];function Vi(e){"@babel/helpers - typeof";return Vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vi(e)}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function _g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bl(e)}function cp(e,t,n){return t=E2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E2(e){var t=GV(e,"string");return Vi(t)==="symbol"?t:String(t)}function GV(e,t){if(Vi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fp=function(e){HV(n,e);var t=UV(n);function n(){return zV(this,n),t.apply(this,arguments)}return FV(n,[{key:"renderHorizontal",value:function(i){var a=this,o=this.props,s=o.x,l=o.width,u=o.horizontal;if(!i||!i.length)return null;var f=i.map(function(d,h){var m=_r(_r({},a.props),{},{x1:s,y1:d,x2:s+l,y2:d,key:"line-".concat(h),index:h});return n.renderLineItem(u,m)});return U.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}},{key:"renderVertical",value:function(i){var a=this,o=this.props,s=o.y,l=o.height,u=o.vertical;if(!i||!i.length)return null;var f=i.map(function(d,h){var m=_r(_r({},a.props),{},{x1:d,y1:s,x2:d,y2:s+l,key:"line-".concat(h),index:h});return n.renderLineItem(u,m)});return U.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}},{key:"renderVerticalStripes",value:function(i){var a=this.props.verticalFill;if(!a||!a.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,f=o.width,d=o.height,h=i.map(function(g){return Math.round(g+l-l)}).sort(function(g,v){return g-v});l!==h[0]&&h.unshift(0);var m=h.map(function(g,v){var b=!h[v+1],_=b?l+f-g:h[v+1]-g;if(_<=0)return null;var C=v%a.length;return U.createElement("rect",{key:"react-".concat(v),x:g,y:u,width:_,height:d,stroke:"none",fill:a[C],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}},{key:"renderHorizontalStripes",value:function(i){var a=this.props.horizontalFill;if(!a||!a.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,f=o.width,d=o.height,h=i.map(function(g){return Math.round(g+u-u)}).sort(function(g,v){return g-v});u!==h[0]&&h.unshift(0);var m=h.map(function(g,v){var b=!h[v+1],_=b?u+d-g:h[v+1]-g;if(_<=0)return null;var C=v%a.length;return U.createElement("rect",{key:"react-".concat(v),y:g,x:l,height:_,width:f,stroke:"none",fill:a[C],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}},{key:"renderBackground",value:function(){var i=this.props.fill;if(!i||i==="none")return null;var a=this.props,o=a.fillOpacity,s=a.x,l=a.y,u=a.width,f=a.height;return U.createElement("rect",{x:s,y:l,width:u,height:f,stroke:"none",fill:i,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.horizontal,f=i.vertical,d=i.horizontalCoordinatesGenerator,h=i.verticalCoordinatesGenerator,m=i.xAxis,g=i.yAxis,v=i.offset,b=i.chartWidth,_=i.chartHeight,C=i.syncWithTicks,k=i.horizontalValues,A=i.verticalValues;if(!le(s)||s<=0||!le(l)||l<=0||!le(a)||a!==+a||!le(o)||o!==+o)return null;var O=this.props,w=O.horizontalPoints,j=O.verticalPoints;if((!w||!w.length)&&Te(d)){var T=k&&k.length;w=d({yAxis:g?_r(_r({},g),{},{ticks:T?k:g.ticks}):void 0,width:b,height:_,offset:v},T?!0:C)}if((!j||!j.length)&&Te(h)){var I=A&&A.length;j=h({xAxis:m?_r(_r({},m),{},{ticks:I?A:m.ticks}):void 0,width:b,height:_,offset:v},I?!0:C)}return U.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(w),f&&this.renderVertical(j),u&&this.renderHorizontalStripes(w),f&&this.renderVerticalStripes(j))}}],[{key:"renderLineItem",value:function(i,a){var o;if(U.isValidElement(i))o=U.cloneElement(i,a);else if(Te(i))o=i(a);else{var s=a.x1,l=a.y1,u=a.x2,f=a.y2,d=a.key,h=Sg(a,NV),m=Le(h);m.offset;var g=Sg(m,RV);o=U.createElement("line",kd({},g,{x1:s,y1:l,x2:u,y2:f,fill:"none",key:d}))}return o}}]),n}(z.PureComponent);cp(fp,"displayName","CartesianGrid");cp(fp,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var Iu=function(){return null};Iu.displayName="ZAxis";Iu.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var qV=["option","isActive"];function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function ZV(e){var t=e.option,n=e.isActive,r=KV(e,qV);return typeof t=="string"?U.createElement(yd,Ya({option:U.createElement(yu,Ya({type:t},r)),isActive:n,shapeType:"symbols"},r)):U.createElement(yd,Ya({option:t,isActive:n,shapeType:"symbols"},r))}function Gi(e){"@babel/helpers - typeof";return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(e)}function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zl(e)}function Ar(e,t,n){return t=M2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M2(e){var t=iG(e,"string");return Gi(t)==="symbol"?t:String(t)}function iG(e,t){if(Gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qo=function(e){eG(n,e);var t=tG(n);function n(){var r;JV(this,n);for(var i=arguments.length,a=new Array(i),o=0;o-1?i[a?t[o]:o]:void 0}}var uG=lG,cG=w2;function fG(e){var t=cG(e),n=t%1;return t===t?n?t-n:t:0}var dG=fG,hG=Xx,pG=Ir,mG=dG,yG=Math.max;function gG(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:mG(n);return i<0&&(i=yG(r+i,0)),hG(e,pG(t),i)}var vG=gG,xG=uG,bG=vG,wG=xG(bG),SG=wG;const _G=st(SG);var OG="Invariant failed";function kG(e,t){if(!e)throw new Error(OG)}function $2(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=$t(t,n,r,i),s=$t(t,n,r,a);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function Pg(e){return jG(e)||AG(e)||PG(e)||CG()}function CG(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PG(e,t){if(e){if(typeof e=="string")return Ad(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ad(e,t)}}function AG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jG(e){if(Array.isArray(e))return Ad(e)}function Ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WG(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function YG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eg(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fl(e)}function Ki(e){return QG(e)||JG(e)||L2(e)||ZG()}function ZG(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L2(e,t){if(e){if(typeof e=="string")return Ed(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ed(e,t)}}function JG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QG(e){if(Array.isArray(e))return Ed(e)}function Ed(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o:t&&t.length&&le(i)&&le(a)?t.slice(i,a+1):[]};function B2(e){return e==="number"?[0,"auto"]:void 0}var z2=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Nu(n,t);return r<0||!a||!a.length||r>=s.length?null:a.reduce(function(l,u){var f,d=u.props.hide;if(d)return l;var h=(f=u.props.data)!==null&&f!==void 0?f:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var g=h===void 0?s:h;m=Xs(g,o.dataKey,i)}else m=h&&h[r]||s[r];return m?[].concat(Ki(l),[y2(u,m)]):l},[])},$g=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=rq(a,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=QF(o,s,u,l);if(f>=0&&u){var d=u[f]&&u[f].value,h=z2(t,n,f,d),m=iq(r,s,f,a);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:m}}return null},aq=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,m=p2(f,a);return r.reduce(function(g,v){var b,_=v.props,C=_.type,k=_.dataKey,A=_.allowDataOverflow,O=_.allowDuplicatedCategory,w=_.scale,j=_.ticks,T=_.includeHidden,I=v.props[o];if(g[I])return g;var B=Nu(t.data,{graphicalItems:i.filter(function(ue){return ue.props[o]===I}),dataStartIndex:l,dataEndIndex:u}),M=B.length,D,W,Y;LG(v.props.domain,A,C)&&(D=ld(v.props.domain,null,A),m&&(C==="number"||w!=="auto")&&(Y=Ua(B,k,"category")));var V=B2(C);if(!D||D.length===0){var X,Z=(X=v.props.domain)!==null&&X!==void 0?X:V;if(k){if(D=Ua(B,k,C),C==="category"&&m){var G=mA(D);O&&G?(W=D,D=Ml(0,M)):O||(D=Ty(Z,D,v).reduce(function(ue,$){return ue.indexOf($)>=0?ue:[].concat(Ki(ue),[$])},[]))}else if(C==="category")O?D=D.filter(function(ue){return ue!==""&&!Ee(ue)}):D=Ty(Z,D,v).reduce(function(ue,$){return ue.indexOf($)>=0||$===""||Ee($)?ue:[].concat(Ki(ue),[$])},[]);else if(C==="number"){var Q=iH(B,i.filter(function(ue){return ue.props[o]===I&&(T||!ue.props.hide)}),k,a,f);Q&&(D=Q)}m&&(C==="number"||w!=="auto")&&(Y=Ua(B,k,"category"))}else m?D=Ml(0,M):s&&s[I]&&s[I].hasStack&&C==="number"?D=h==="expand"?[0,1]:m2(s[I].stackGroups,l,u):D=h2(B,i.filter(function(ue){return ue.props[o]===I&&(T||!ue.props.hide)}),C,f,!0);if(C==="number")D=jd(d,D,I,a,j),Z&&(D=ld(Z,D,A));else if(C==="category"&&Z){var E=Z,pe=D.every(function(ue){return E.indexOf(ue)>=0});pe&&(D=E)}}return J(J({},g),{},ye({},I,J(J({},v.props),{},{axisType:a,domain:D,categoricalDomain:Y,duplicateDomain:W,originalDomain:(b=v.props.domain)!==null&&b!==void 0?b:V,isCategorical:m,layout:f})))},{})},oq=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=Nu(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),m=h.length,g=p2(f,a),v=-1;return r.reduce(function(b,_){var C=_.props[o],k=B2("number");if(!b[C]){v++;var A;return g?A=Ml(0,m):s&&s[C]&&s[C].hasStack?(A=m2(s[C].stackGroups,l,u),A=jd(d,A,C,a)):(A=ld(k,h2(h,r.filter(function(O){return O.props[o]===C&&!O.props.hide}),"number",f),i.defaultProps.allowDataOverflow),A=jd(d,A,C,a)),J(J({},b),{},ye({},C,J(J({axisType:a},i.defaultProps),{},{hide:!0,orientation:bn(tq,"".concat(a,".").concat(v%2),null),domain:A,originalDomain:k,isCategorical:g,layout:f})))}return b},{})},sq=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(i,"Id"),h=cn(f,a),m={};return h&&h.length?m=aq(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(m=oq(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),m},lq=function(t){var n=Or(t),r=kr(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Th(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Cl(n,r)}},Ig=function(t){var n=t.children,r=t.defaultShowTooltip,i=tr(n,Ao),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},uq=function(t){return!t||!t.length?!1:t.some(function(n){var r=ar(n&&n.type);return r&&r.indexOf("Bar")>=0})},Dg=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},cq=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,f=r.height,d=r.children,h=r.margin||{},m=tr(d,Ao),g=tr(d,Ja),v=Object.keys(l).reduce(function(O,w){var j=l[w],T=j.orientation;return!j.mirror&&!j.hide?J(J({},O),{},ye({},T,O[T]+j.width)):O},{left:h.left||0,right:h.right||0}),b=Object.keys(o).reduce(function(O,w){var j=o[w],T=j.orientation;return!j.mirror&&!j.hide?J(J({},O),{},ye({},T,bn(O,"".concat(T))+j.height)):O},{top:h.top||0,bottom:h.bottom||0}),_=J(J({},b),v),C=_.bottom;m&&(_.bottom+=m.props.height||Ao.defaultProps.height),g&&n&&(_=nH(_,i,r,n));var k=u-_.left-_.right,A=f-_.top-_.bottom;return J(J({brushBottom:C},_),{},{width:Math.max(k,0),height:Math.max(A,0)})},fq=function(t){var n,r=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,f=t.legendContent,d=t.formatAxisMap,h=t.defaultProps,m=function(b,_){var C=_.graphicalItems,k=_.stackGroups,A=_.offset,O=_.updateId,w=_.dataStartIndex,j=_.dataEndIndex,T=b.barSize,I=b.layout,B=b.barGap,M=b.barCategoryGap,D=b.maxBarSize,W=Dg(I),Y=W.numericAxisName,V=W.cateAxisName,X=uq(C),Z=X&&eH({barSize:T,stackGroups:k}),G=[];return C.forEach(function(Q,E){var pe=Nu(b.data,{graphicalItems:[Q],dataStartIndex:w,dataEndIndex:j}),ue=Q.props,$=ue.dataKey,_e=ue.maxBarSize,te=Q.props["".concat(Y,"Id")],ge=Q.props["".concat(V,"Id")],Ye={},Me=u.reduce(function(Ne,it){var nn,Cn=_["".concat(it.axisType,"Map")],N=Q.props["".concat(it.axisType,"Id")];Cn&&Cn[N]||it.axisType==="zAxis"||kG(!1);var q=Cn[N];return J(J({},Ne),{},(nn={},ye(nn,it.axisType,q),ye(nn,"".concat(it.axisType,"Ticks"),kr(q)),nn))},Ye),ae=Me[V],de=Me["".concat(V,"Ticks")],ve=k&&k[te]&&k[te].hasStack&&yH(Q,k[te].stackGroups),ee=ar(Q.type).indexOf("Bar")>=0,Ae=Cl(ae,de),he=[];if(ee){var xe,He,rt=Ee(_e)?D:_e,ft=(xe=(He=Cl(ae,de,!0))!==null&&He!==void 0?He:rt)!==null&&xe!==void 0?xe:0;he=tH({barGap:B,barCategoryGap:M,bandSize:ft!==Ae?ft:Ae,sizeList:Z[ge],maxBarSize:rt}),ft!==Ae&&(he=he.map(function(Ne){return J(J({},Ne),{},{position:J(J({},Ne.position),{},{offset:Ne.position.offset-ft/2})})}))}var tn=Q&&Q.type&&Q.type.getComposedData;if(tn){var Ue;G.push({props:J(J({},tn(J(J({},Me),{},{displayedData:pe,props:b,dataKey:$,item:Q,bandSize:Ae,barPosition:he,offset:A,stackedData:ve,layout:I,dataStartIndex:w,dataEndIndex:j}))),{},(Ue={key:Q.key||"item-".concat(E)},ye(Ue,Y,Me[Y]),ye(Ue,V,Me[V]),ye(Ue,"animationId",O),Ue)),childIndex:PA(Q,b.children),item:Q})}}),G},g=function(b,_){var C=b.props,k=b.dataStartIndex,A=b.dataEndIndex,O=b.updateId;if(!f0({props:C}))return null;var w=C.children,j=C.layout,T=C.stackOffset,I=C.data,B=C.reverseStackOrder,M=Dg(j),D=M.numericAxisName,W=M.cateAxisName,Y=cn(w,i),V=hH(I,Y,"".concat(D,"Id"),"".concat(W,"Id"),T,B),X=u.reduce(function(pe,ue){var $="".concat(ue.axisType,"Map");return J(J({},pe),{},ye({},$,sq(C,J(J({},ue),{},{graphicalItems:Y,stackGroups:ue.axisType===D&&V,dataStartIndex:k,dataEndIndex:A}))))},{}),Z=cq(J(J({},X),{},{props:C,graphicalItems:Y}),_==null?void 0:_.legendBBox);Object.keys(X).forEach(function(pe){X[pe]=d(C,X[pe],Z,pe.replace("Map",""),r)});var G=X["".concat(W,"Map")],Q=lq(G),E=m(C,J(J({},X),{},{dataStartIndex:k,dataEndIndex:A,updateId:O,graphicalItems:Y,stackGroups:V,offset:Z}));return J(J({formattedGraphicalItems:E,graphicalItems:Y,offset:Z,stackGroups:V},Q),X)};return n=function(v){GG(_,v);var b=qG(_);function _(C){var k,A,O;return YG(this,_),O=b.call(this,C),ye(Pe(O),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ye(Pe(O),"accessibilityManager",new DG),ye(Pe(O),"handleLegendBBoxUpdate",function(w){if(w){var j=O.state,T=j.dataStartIndex,I=j.dataEndIndex,B=j.updateId;O.setState(J({legendBBox:w},g({props:O.props,dataStartIndex:T,dataEndIndex:I,updateId:B},J(J({},O.state),{},{legendBBox:w}))))}}),ye(Pe(O),"handleReceiveSyncEvent",function(w,j,T){if(O.props.syncId===w){if(T===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(j)}}),ye(Pe(O),"handleBrushChange",function(w){var j=w.startIndex,T=w.endIndex;if(j!==O.state.dataStartIndex||T!==O.state.dataEndIndex){var I=O.state.updateId;O.setState(function(){return J({dataStartIndex:j,dataEndIndex:T},g({props:O.props,dataStartIndex:j,dataEndIndex:T,updateId:I},O.state))}),O.triggerSyncEvent({dataStartIndex:j,dataEndIndex:T})}}),ye(Pe(O),"handleMouseEnter",function(w){var j=O.getMouseInfo(w);if(j){var T=J(J({},j),{},{isTooltipActive:!0});O.setState(T),O.triggerSyncEvent(T);var I=O.props.onMouseEnter;Te(I)&&I(T,w)}}),ye(Pe(O),"triggeredAfterMouseMove",function(w){var j=O.getMouseInfo(w),T=j?J(J({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(T),O.triggerSyncEvent(T);var I=O.props.onMouseMove;Te(I)&&I(T,w)}),ye(Pe(O),"handleItemMouseEnter",function(w){O.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),ye(Pe(O),"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),ye(Pe(O),"handleMouseMove",function(w){w.persist(),O.throttleTriggeredAfterMouseMove(w)}),ye(Pe(O),"handleMouseLeave",function(w){var j={isTooltipActive:!1};O.setState(j),O.triggerSyncEvent(j);var T=O.props.onMouseLeave;Te(T)&&T(j,w)}),ye(Pe(O),"handleOuterEvent",function(w){var j=CA(w),T=bn(O.props,"".concat(j));if(j&&Te(T)){var I,B;/.*touch.*/i.test(j)?B=O.getMouseInfo(w.changedTouches[0]):B=O.getMouseInfo(w),T((I=B)!==null&&I!==void 0?I:{},w)}}),ye(Pe(O),"handleClick",function(w){var j=O.getMouseInfo(w);if(j){var T=J(J({},j),{},{isTooltipActive:!0});O.setState(T),O.triggerSyncEvent(T);var I=O.props.onClick;Te(I)&&I(T,w)}}),ye(Pe(O),"handleMouseDown",function(w){var j=O.props.onMouseDown;if(Te(j)){var T=O.getMouseInfo(w);j(T,w)}}),ye(Pe(O),"handleMouseUp",function(w){var j=O.props.onMouseUp;if(Te(j)){var T=O.getMouseInfo(w);j(T,w)}}),ye(Pe(O),"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),ye(Pe(O),"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&O.handleMouseDown(w.changedTouches[0])}),ye(Pe(O),"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&O.handleMouseUp(w.changedTouches[0])}),ye(Pe(O),"triggerSyncEvent",function(w){O.props.syncId!==void 0&&ef.emit(tf,O.props.syncId,w,O.eventEmitterSymbol)}),ye(Pe(O),"applySyncEvent",function(w){var j=O.props,T=j.layout,I=j.syncMethod,B=O.state.updateId,M=w.dataStartIndex,D=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)O.setState(J({dataStartIndex:M,dataEndIndex:D},g({props:O.props,dataStartIndex:M,dataEndIndex:D,updateId:B},O.state)));else if(w.activeTooltipIndex!==void 0){var W=w.chartX,Y=w.chartY,V=w.activeTooltipIndex,X=O.state,Z=X.offset,G=X.tooltipTicks;if(!Z)return;if(typeof I=="function")V=I(G,w);else if(I==="value"){V=-1;for(var Q=0;Q=0){var ve,ee;if(W.dataKey&&!W.allowDuplicatedCategory){var Ae=typeof W.dataKey=="function"?de:"payload.".concat(W.dataKey.toString());ve=Xs(Q,Ae,V),ee=E&&pe&&Xs(pe,Ae,V)}else ve=Q==null?void 0:Q[Y],ee=E&&pe&&pe[Y];if(ge||te){var he=w.props.activeIndex!==void 0?w.props.activeIndex:Y;return[z.cloneElement(w,J(J(J({},I.props),Me),{},{activeIndex:he})),null,null]}if(!Ee(ve))return[ae].concat(Ki(O.renderActivePoints({item:I,activePoint:ve,basePoint:ee,childIndex:Y,isRange:E})))}else{var xe,He=(xe=O.getItemByXY(O.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:ae},rt=He.graphicalItem,ft=rt.item,tn=ft===void 0?w:ft,Ue=rt.childIndex,Ne=J(J(J({},I.props),Me),{},{activeIndex:Ue});return[z.cloneElement(tn,Ne),null,null]}return E?[ae,null,null]:[ae,null]}),ye(Pe(O),"renderCustomized",function(w,j,T){return z.cloneElement(w,J(J({key:"recharts-customized-".concat(T)},O.props),O.state))}),ye(Pe(O),"renderMap",{CartesianGrid:{handler:O.renderGrid,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:O.renderReferenceElement},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:O.renderXAxis},YAxis:{handler:O.renderYAxis},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((k=C.id)!==null&&k!==void 0?k:Yo("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=pb(O.triggeredAfterMouseMove,(A=C.throttleDelay)!==null&&A!==void 0?A:1e3/60),O.state={},O}return VG(_,[{key:"componentDidMount",value:function(){var k,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(k=this.props.margin.left)!==null&&k!==void 0?k:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(k,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==k.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==k.margin){var O,w;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var k=tr(this.props.children,qr);if(k&&typeof k.props.shared=="boolean"){var A=k.props.shared?"axis":"item";return l.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(k){if(!this.container)return null;var A=this.container,O=A.getBoundingClientRect(),w=$N(O),j={chartX:Math.round(k.pageX-w.left),chartY:Math.round(k.pageY-w.top)},T=O.width/A.offsetWidth||1,I=this.inRange(j.chartX,j.chartY,T);if(!I)return null;var B=this.state,M=B.xAxisMap,D=B.yAxisMap,W=this.getTooltipEventType();if(W!=="axis"&&M&&D){var Y=Or(M).scale,V=Or(D).scale,X=Y&&Y.invert?Y.invert(j.chartX):null,Z=V&&V.invert?V.invert(j.chartY):null;return J(J({},j),{},{xValue:X,yValue:Z})}var G=$g(this.state,this.props.data,this.props.layout,I);return G?J(J({},j),G):null}},{key:"inRange",value:function(k,A){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,j=k/O,T=A/O;if(w==="horizontal"||w==="vertical"){var I=this.state.offset,B=j>=I.left&&j<=I.left+I.width&&T>=I.top&&T<=I.top+I.height;return B?{x:j,y:T}:null}var M=this.state,D=M.angleAxisMap,W=M.radiusAxisMap;if(D&&W){var Y=Or(D);return $y({x:j,y:T},Y)}return null}},{key:"parseEventsOfWrapper",value:function(){var k=this.props.children,A=this.getTooltipEventType(),O=tr(k,qr),w={};O&&A==="axis"&&(O.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var j=Zs(this.props,this.handleOuterEvent);return J(J({},j),w)}},{key:"addListener",value:function(){ef.on(tf,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ef.removeListener(tf,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(k,A,O){for(var w=this.state.formattedGraphicalItems,j=0,T=w.length;jy.jsx(op,{cx:e,cy:t,fill:R.blueTextAccent,r:2}),pq=()=>{const e=qt(),t=[...(e==null?void 0:e.data)||[]].sort((i,a)=>(i.year||0)-(a.year||0)),n=t.map(i=>i.year).filter(i=>i),r=t.map(i=>i.rate).filter(i=>i);return y.jsx(mq,{direction:"column",px:24,py:16,children:y.jsx(CN,{height:"100%",width:"100%",children:y.jsxs(dq,{margin:{bottom:20,left:20,right:20,top:20},children:[y.jsx(fp,{stroke:"#f5f5f5"}),y.jsx(Du,{dataKey:"year",domain:[Math.min(...n),Math.max(...n)],label:{fill:R.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:R.white,fontSize:"8px"},type:"number"}),y.jsx(Lu,{color:"#000",dataKey:"rate",domain:[Math.min(...r),Math.max(...r)],label:{angle:-90,fill:R.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:R.white,fontSize:"8px"},type:"number"}),y.jsx(qr,{cursor:{strokeDasharray:"3 3"}}),y.jsx(Qo,{data:t,fill:R.blueTextAccent,line:!0,name:"A scatter",shape:y.jsx(hq,{})})]})})})},mq=H(F)` width: 100%; height: 100%; `;var F2={},Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.cssValue=Xi.parseLengthAndUnit=void 0;var yq={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function H2(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return yq[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}Xi.parseLengthAndUnit=H2;function gq(e){var t=H2(e);return"".concat(t.value).concat(t.unit)}Xi.cssValue=gq;var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});Ru.createAnimation=void 0;var vq=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var a=i.sheet,o=` @keyframes `.concat(r,` { `).concat(t,` } - `);return a&&a.insertRule(o,0),r};Ru.createAnimation=vq;var Ul=Nt&&Nt.__assign||function(){return Ul=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne&&Fd` background: ${R.divider2}; height: 1px; margin: auto 22px; -`,W2=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"notes",children:[y.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1473_73722)",children:y.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),Aq=({stateless:e,node:t,searchTerm:n})=>y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(Tq,{children:e&&y.jsxs(jq,{children:[y.jsx("div",{className:"icon",children:y.jsx(W2,{})}),y.jsx("div",{className:"title",children:"Description"})]})}),y.jsx(pt,{children:t!=null&&t.description?Qn(t.description,n):"..."})]}),jq=H(F).attrs({direction:"row",align:"center"})` +`,W2=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"notes",children:[y.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1473_73722)",children:y.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),Aq=({stateless:e,node:t,searchTerm:n})=>y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(Tq,{children:e&&y.jsxs(jq,{children:[y.jsx("div",{className:"icon",children:y.jsx(W2,{})}),y.jsx("div",{className:"title",children:"Description"})]})}),y.jsx(pt,{children:t!=null&&t.description?er(t.description,n):"..."})]}),jq=H(F).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; color: ${R.GRAY3}; @@ -1379,7 +1390,7 @@ ${({disabled:e})=>e&&Fd` margin-left: 8px; } } -`,Uq=({selectedNodeShow:e})=>{const t=qt(),n=Ro(),{type:r}=t||{},i=Bt(a=>a.currentSearch);return y.jsxs(Hq,{p:20,children:[y.jsx(F,{align:"flex-start",children:r&&y.jsx(ea,{type:r})}),y.jsx(F,{direction:"row",mb:22,mt:22,children:y.jsx(F,{grow:1,shrink:1,children:y.jsx(pt,{className:"episode-title",kind:"heading",children:Qn((t==null?void 0:t.episode_title)||"Unknown",i)})})}),e?y.jsxs(F,{className:"show",direction:"row",onClick:()=>n(e),children:[y.jsx($n,{size:16,src:(e==null?void 0:e.image_url)||"",type:"show"}),y.jsx(pt,{className:"show__title",color:"mainBottomIcons",kind:"regular",children:e==null?void 0:e.show_title})]}):null]})},Wq=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"schedule",children:[y.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_4051_4016)",children:y.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),Yq="Flow 1",Vq=0,Gq=12,qq=15,Kq={g:"LottieFiles Figma v45"},Xq=[{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[13.5,6],t:58},{s:[13.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:1},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,3],t:58},{s:[1.5,3],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[7.5,9],t:58},{s:[7.5,9],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:2},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:3}],Zq="5.7.0",Jq=60,Qq=57.6,eK=0,tK=[],nK={nm:Yq,ddd:Vq,h:Gq,w:qq,meta:Kq,layers:Xq,v:Zq,fr:Jq,op:Qq,ip:eK,assets:tK},rK=()=>{const e=z.useRef(null);return z.useEffect(()=>{const t=document.getElementById("lottie-timestamp-equalizer");return t&&(e.current=k4.loadAnimation({container:t,animationData:nK,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),y.jsx("div",{id:"lottie-timestamp-equalizer",style:{width:"18px",height:"18px"}})},iK=H(F).attrs(()=>({direction:"row"}))` +`,Uq=({selectedNodeShow:e})=>{const t=qt(),n=Ro(),{type:r}=t||{},i=Bt(a=>a.currentSearch);return y.jsxs(Hq,{p:20,children:[y.jsx(F,{align:"flex-start",children:r&&y.jsx(ea,{type:r})}),y.jsx(F,{direction:"row",mb:22,mt:22,children:y.jsx(F,{grow:1,shrink:1,children:y.jsx(pt,{className:"episode-title",kind:"heading",children:er((t==null?void 0:t.episode_title)||"Unknown",i)})})}),e?y.jsxs(F,{className:"show",direction:"row",onClick:()=>n(e),children:[y.jsx($n,{size:16,src:(e==null?void 0:e.image_url)||"",type:"show"}),y.jsx(pt,{className:"show__title",color:"mainBottomIcons",kind:"regular",children:e==null?void 0:e.show_title})]}):null]})},Wq=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"schedule",children:[y.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_4051_4016)",children:y.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),Yq="Flow 1",Vq=0,Gq=12,qq=15,Kq={g:"LottieFiles Figma v45"},Xq=[{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[13.5,6],t:58},{s:[13.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:1},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,3],t:58},{s:[1.5,3],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[7.5,9],t:58},{s:[7.5,9],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:2},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:3}],Zq="5.7.0",Jq=60,Qq=57.6,eK=0,tK=[],nK={nm:Yq,ddd:Vq,h:Gq,w:qq,meta:Kq,layers:Xq,v:Zq,fr:Jq,op:Qq,ip:eK,assets:tK},rK=()=>{const e=z.useRef(null);return z.useEffect(()=>{const t=document.getElementById("lottie-timestamp-equalizer");return t&&(e.current=k4.loadAnimation({container:t,animationData:nK,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),y.jsx("div",{id:"lottie-timestamp-equalizer",style:{width:"18px",height:"18px"}})},iK=H(F).attrs(()=>({direction:"row"}))` cursor: pointer; color: ${R.primaryText1}; border-top: 1px solid ${R.black}; @@ -1430,7 +1441,7 @@ ${({disabled:e})=>e&&Fd` width: 1px; height: 4px; } -`,lK=()=>{const e=qt(),t=uv(),[n,r]=z.useState(null),[i,a]=z.useState(null),[o,s,l,u,f]=ql(g=>[g.playingNode,g.setPlayingNodeLink,g.setPlayingTime,g.setIsSeeking,g.playingTime]),d=z.useMemo(()=>cv((t==null?void 0:t.nodes)||[],e),[t==null?void 0:t.nodes,e]),h=z.useMemo(()=>t==null?void 0:t.nodes.find(g=>g.node_type==="show"&&g.show_title===(e==null?void 0:e.show_title)),[t==null?void 0:t.nodes,e]),m=z.useCallback(g=>{var b;const v=ei(((b=g==null?void 0:g.timestamp)==null?void 0:b.split("-")[0])||"00:00:01");(o&&g.link&&(o==null?void 0:o.link)!==g.link||(!o||(o==null?void 0:o.link)!==g.link)&&g.link!==void 0)&&(s(g.link),l(0),u(!0)),l(v),u(!0),a(g)},[o,s,u,a,l]);return z.useEffect(()=>{d!=null&&d.length&&!d.some(g=>g.ref_id===(i==null?void 0:i.ref_id))&&m(d[0])},[d,i,m]),z.useEffect(()=>{if(d!=null&&d.length){const g=d.find(v=>{if(!v.timestamp)return!1;const b=ei(v.timestamp.split("-")[0]);return Math.abs(b-f)<1});g&&g.ref_id!==(i==null?void 0:i.ref_id)&&a(g)}},[f,d,i]),e?y.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:y.jsxs(cK,{children:[n&&y.jsx(fK,{className:"slide-me",direction:"up",in:!!n,children:y.jsxs(uK,{children:[y.jsx(F,{className:"close-info",onClick:()=>r(null),children:y.jsx(Xl,{})}),n&&y.jsx(Y2,{node:n})]})}),y.jsx(Uq,{selectedNodeShow:h}),!!(d!=null&&d.length)&&y.jsx(sK,{children:y.jsx(F,{pb:20,children:d==null?void 0:d.map((g,v)=>y.jsx(aK,{isSelected:(i==null?void 0:i.ref_id)===g.ref_id,onClick:()=>m(g),setOpenClip:r,timestamp:g},`${g.episode_title}_${v}`))})})]})}):null},uK=H(F)` +`,lK=()=>{const e=qt(),t=uv(),[n,r]=z.useState(null),[i,a]=z.useState(null),[o,s,l,u,f]=Gl(g=>[g.playingNode,g.setPlayingNodeLink,g.setPlayingTime,g.setIsSeeking,g.playingTime]),d=z.useMemo(()=>cv((t==null?void 0:t.nodes)||[],e),[t==null?void 0:t.nodes,e]),h=z.useMemo(()=>t==null?void 0:t.nodes.find(g=>g.node_type==="show"&&g.show_title===(e==null?void 0:e.show_title)),[t==null?void 0:t.nodes,e]),m=z.useCallback(g=>{var b;const v=ei(((b=g==null?void 0:g.timestamp)==null?void 0:b.split("-")[0])||"00:00:01");(o&&g.link&&(o==null?void 0:o.link)!==g.link||(!o||(o==null?void 0:o.link)!==g.link)&&g.link!==void 0)&&(s(g.link),l(0),u(!0)),l(v),u(!0),a(g)},[o,s,u,a,l]);return z.useEffect(()=>{d!=null&&d.length&&!d.some(g=>g.ref_id===(i==null?void 0:i.ref_id))&&m(d[0])},[d,i,m]),z.useEffect(()=>{if(d!=null&&d.length){const g=d.find(v=>{if(!v.timestamp)return!1;const b=ei(v.timestamp.split("-")[0]);return Math.abs(b-f)<1});g&&g.ref_id!==(i==null?void 0:i.ref_id)&&a(g)}},[f,d,i]),e?y.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:y.jsxs(cK,{children:[n&&y.jsx(fK,{className:"slide-me",direction:"up",in:!!n,children:y.jsxs(uK,{children:[y.jsx(F,{className:"close-info",onClick:()=>r(null),children:y.jsx(Xl,{})}),n&&y.jsx(Y2,{node:n})]})}),y.jsx(Uq,{selectedNodeShow:h}),!!(d!=null&&d.length)&&y.jsx(sK,{children:y.jsx(F,{pb:20,children:d==null?void 0:d.map((g,v)=>y.jsx(aK,{isSelected:(i==null?void 0:i.ref_id)===g.ref_id,onClick:()=>m(g),setOpenClip:r,timestamp:g},`${g.episode_title}_${v}`))})})]})}):null},uK=H(F)` border-radius: 20px; overflow: hidden; height: 100%; @@ -1579,7 +1590,7 @@ ${({disabled:e})=>e&&Fd` `,OK=H.div` max-height: calc(100vh - 340px); overflow-y: auto; -`,kK=()=>{const e=qt(),t=Ro(),n=uv(),[r,i]=z.useState([]),a=z.useMemo(()=>{var l;const o=new Set,s={};if((l=e==null?void 0:e.children)!=null&&l.length){e.children.forEach((f,d)=>{var g,v,b,_;const h=cv((n==null?void 0:n.nodes)||[],e)||[],m=n==null?void 0:n.nodes.find(C=>C.ref_id===f);if(m){m.timestamp=(g=h[0])==null?void 0:g.timestamp;const C=(_=(b=(v=h[d])==null?void 0:v.hosts)==null?void 0:b[0])==null?void 0:_.name;C&&o.add(C),s[f]=m,s[f]=m}});const u=Array.from(o);i(u)}return Object.values(s).filter(u=>u.node_type==="episode").sort((u,f)=>(f.weight||0)-(u.weight||0))},[n==null?void 0:n.nodes,e]);return y.jsxs(wK,{children:[y.jsx(SK,{children:y.jsxs(F,{direction:"row",children:[y.jsx(F,{pr:24,children:y.jsx($n,{size:80,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:"show"})}),y.jsx(F,{direction:"column",children:y.jsxs(F,{direction:"column",grow:1,justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(ea,{type:"show"})," ",y.jsxs("div",{className:"subtitle",children:["by ",r.join(", ")||(e==null?void 0:e.show_title)]})]}),y.jsx(_K,{kind:"bigHeading",children:(e==null?void 0:e.show_title)||"Unknown"})]})})]})}),y.jsxs(F,{direction:"column",children:[y.jsx(F,{p:24,children:y.jsx(pt,{className:"relatedHeader",kind:"medium",children:"Related Episodes"})}),y.jsx(OK,{children:a.map(o=>y.jsx(xK,{node:o,onClick:()=>t(o)},o.ref_id))})]})]})},CK=()=>{const e=qt();return y.jsx(F,{align:"center",justify:"center",children:y.jsx(pt,{color:"primaryText1",kind:"hugeHeading",children:e==null?void 0:e.label})})},PK=()=>{const e=qt(),t=e?Zd(e):null,{date:n,boost:r,text:i,name:a,verified:o,image_url:s,twitter_handle:l,ref_id:u}=t||{},f=(t==null?void 0:t.tweet_id)||"",[d,h]=z.useState(r||0),m=Bt(g=>g.currentSearch);return t&&y.jsxs(y.Fragment,{children:[y.jsxs(F,{direction:"column",p:24,children:[y.jsxs(F,{align:"center",direction:"row",pr:16,children:[y.jsx(AK,{children:y.jsx($n,{rounded:!0,size:58,src:s||"",type:"person"})}),y.jsxs(F,{children:[y.jsxs(jK,{align:"center",direction:"row",children:[a,o&&y.jsx("div",{className:"verification",children:y.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),l&&y.jsxs(TK,{children:["@",l]})]})]}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(EK,{"data-testid":"episode-description",children:Qn(i||"",m)}),y.jsx(F,{direction:"row",justify:"flex-start",children:!!n&&y.jsx(Mr,{children:Ga.unix(n).format("ll")})})]}),y.jsx(F,{align:"stretch",mt:22,children:y.jsx("a",{href:`https://twitter.com/${l}/status/${f}?open=system`,rel:"noopener noreferrer",target:"_blank",children:y.jsx($K,{endIcon:y.jsx(Er,{}),children:"View Tweet"})})})]}),y.jsx(MK,{}),y.jsxs(F,{direction:"row",justify:"space-between",pt:14,px:24,children:[y.jsx(Kd,{amt:d}),y.jsx(U2,{content:t,count:d,refId:u,updateCount:h})]})]})},AK=H(F)` +`,kK=()=>{const e=qt(),t=Ro(),n=uv(),[r,i]=z.useState([]),a=z.useMemo(()=>{var l;const o=new Set,s={};if((l=e==null?void 0:e.children)!=null&&l.length){e.children.forEach((f,d)=>{var g,v,b,_;const h=cv((n==null?void 0:n.nodes)||[],e)||[],m=n==null?void 0:n.nodes.find(C=>C.ref_id===f);if(m){m.timestamp=(g=h[0])==null?void 0:g.timestamp;const C=(_=(b=(v=h[d])==null?void 0:v.hosts)==null?void 0:b[0])==null?void 0:_.name;C&&o.add(C),s[f]=m,s[f]=m}});const u=Array.from(o);i(u)}return Object.values(s).filter(u=>u.node_type==="episode").sort((u,f)=>(f.weight||0)-(u.weight||0))},[n==null?void 0:n.nodes,e]);return y.jsxs(wK,{children:[y.jsx(SK,{children:y.jsxs(F,{direction:"row",children:[y.jsx(F,{pr:24,children:y.jsx($n,{size:80,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:"show"})}),y.jsx(F,{direction:"column",children:y.jsxs(F,{direction:"column",grow:1,justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(ea,{type:"show"})," ",y.jsxs("div",{className:"subtitle",children:["by ",r.join(", ")||(e==null?void 0:e.show_title)]})]}),y.jsx(_K,{kind:"bigHeading",children:(e==null?void 0:e.show_title)||"Unknown"})]})})]})}),y.jsxs(F,{direction:"column",children:[y.jsx(F,{p:24,children:y.jsx(pt,{className:"relatedHeader",kind:"medium",children:"Related Episodes"})}),y.jsx(OK,{children:a.map(o=>y.jsx(xK,{node:o,onClick:()=>t(o)},o.ref_id))})]})]})},CK=()=>{const e=qt();return y.jsx(F,{align:"center",justify:"center",children:y.jsx(pt,{color:"primaryText1",kind:"hugeHeading",children:e==null?void 0:e.label})})},PK=()=>{const e=qt(),t=e?Zd(e):null,{date:n,boost:r,text:i,name:a,verified:o,image_url:s,twitter_handle:l,ref_id:u}=t||{},f=(t==null?void 0:t.tweet_id)||"",[d,h]=z.useState(r||0),m=Bt(g=>g.currentSearch);return t&&y.jsxs(y.Fragment,{children:[y.jsxs(F,{direction:"column",p:24,children:[y.jsxs(F,{align:"center",direction:"row",pr:16,children:[y.jsx(AK,{children:y.jsx($n,{rounded:!0,size:58,src:s||"",type:"person"})}),y.jsxs(F,{children:[y.jsxs(jK,{align:"center",direction:"row",children:[a,o&&y.jsx("div",{className:"verification",children:y.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),l&&y.jsxs(TK,{children:["@",l]})]})]}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(EK,{"data-testid":"episode-description",children:er(i||"",m)}),y.jsx(F,{direction:"row",justify:"flex-start",children:!!n&&y.jsx(Mr,{children:Ga.unix(n).format("ll")})})]}),y.jsx(F,{align:"stretch",mt:22,children:y.jsx("a",{href:`https://twitter.com/${l}/status/${f}?open=system`,rel:"noopener noreferrer",target:"_blank",children:y.jsx($K,{endIcon:y.jsx(Er,{}),children:"View Tweet"})})})]}),y.jsx(MK,{}),y.jsxs(F,{direction:"row",justify:"space-between",pt:14,px:24,children:[y.jsx(Kd,{amt:d}),y.jsx(U2,{content:t,count:d,refId:u,updateCount:h})]})]})},AK=H(F)` img { width: 64px; height: 64px; @@ -1619,7 +1630,7 @@ ${({disabled:e})=>e&&Fd` opacity: 75%; `,$K=H(Rt)` width: 100%; -`,IK=()=>{var r;const e=qt();if(!e)return null;const t=!!e.image_url,n=e.properties||{};return y.jsxs(HK,{children:[t?y.jsx(BK,{children:y.jsx("img",{alt:"img_a11y",onError:i=>{i.currentTarget.src="generic_placeholder_img.png",i.currentTarget.className="default-img"},src:(r=e.properties)==null?void 0:r.image_url})}):null,y.jsxs(NK,{grow:1,justify:"flex-start",pt:t?0:8,shrink:1,children:[y.jsx(F,{ml:24,mt:20,style:{width:"fit-content"},children:y.jsx(ea,{type:e.node_type||""})}),y.jsx(RK,{children:Object.entries(n).filter(([i])=>i!=="media_url"&&i!=="link").map(([i,a])=>y.jsx(LK,{label:DK(i),value:a},i))})]})]})},DK=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),LK=({label:e,value:t})=>{const n=t.length>140,r=Bt(i=>i.currentSearch);return t?y.jsxs(y.Fragment,{children:[y.jsxs(zK,{className:Ar("node-detail",{"node-detail__long":n}),children:[y.jsx(pt,{className:"node-detail__label",children:e}),y.jsx(pt,{className:"node-detail__value",children:Qn(String(t),r)})]}),y.jsx(FK,{})]}):null},NK=H(F)` +`,IK=()=>{var r;const e=qt();if(!e)return null;const t=!!e.image_url,n=e.properties||{};return y.jsxs(HK,{children:[t?y.jsx(BK,{children:y.jsx("img",{alt:"img_a11y",onError:i=>{i.currentTarget.src="generic_placeholder_img.png",i.currentTarget.className="default-img"},src:(r=e.properties)==null?void 0:r.image_url})}):null,y.jsxs(NK,{grow:1,justify:"flex-start",pt:t?0:8,shrink:1,children:[y.jsx(F,{ml:24,mt:20,style:{width:"fit-content"},children:y.jsx(ea,{type:e.node_type||""})}),y.jsx(RK,{children:Object.entries(n).filter(([i])=>i!=="media_url"&&i!=="link").map(([i,a])=>y.jsx(LK,{label:DK(i),value:a},i))})]})]})},DK=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),LK=({label:e,value:t})=>{const n=t.length>140,r=Bt(i=>i.currentSearch);return t?y.jsxs(y.Fragment,{children:[y.jsxs(zK,{className:zn("node-detail",{"node-detail__long":n}),children:[y.jsx(pt,{className:"node-detail__label",children:e}),y.jsx(pt,{className:"node-detail__value",children:er(String(t),r)})]}),y.jsx(FK,{})]}):null},NK=H(F)` overflow: auto; width: 100%; flex-grow: 1; @@ -1679,7 +1690,7 @@ ${({disabled:e})=>e&&Fd` `,HK=H(F)` flex-direction: column; height: 100%; -`,UK=()=>{var s,l;const[e,t]=z.useState(!1),n=qt(),r=!!(n!=null&&n.source_link),i=z.useRef(null),a=Bt(u=>u.currentSearch),o=u=>{u.stopPropagation(),u.currentTarget.blur(),t(!e)};return z.useEffect(()=>{var u,f;e?(u=i.current)==null||u.play():(f=i.current)==null||f.pause()},[e]),y.jsxs(F,{align:"flex-start",basis:"100%",direction:"column",grow:1,justify:"center",pt:r?62:0,shrink:1,children:[r&&y.jsxs(WK,{children:[y.jsx(gv,{color:R.GRAY6}),y.jsx(GK,{children:n==null?void 0:n.source_link}),y.jsx(YK,{href:`${n==null?void 0:n.source_link}?open=system`,onClick:u=>u.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),(s=n==null?void 0:n.audio)!=null&&s.length?y.jsxs(F,{justify:"flex-start",p:12,children:[y.jsx(Rt,{onClick:u=>o(u),startIcon:e?y.jsx(Gl,{}):y.jsx(Yd,{}),children:e?"Pause":"Play"}),y.jsx(qK,{ref:i,src:((l=n.audio[0])==null?void 0:l.link)||"",children:y.jsx("track",{kind:"captions"})})]}):null,y.jsx(VK,{grow:1,justify:"flex-start",p:12,shrink:1,children:y.jsx(pt,{color:"primaryText1",kind:"regular",children:Qn((n==null?void 0:n.text)||"",a)})})]})},WK=H(F)` +`,UK=()=>{var s,l;const[e,t]=z.useState(!1),n=qt(),r=!!(n!=null&&n.source_link),i=z.useRef(null),a=Bt(u=>u.currentSearch),o=u=>{u.stopPropagation(),u.currentTarget.blur(),t(!e)};return z.useEffect(()=>{var u,f;e?(u=i.current)==null||u.play():(f=i.current)==null||f.pause()},[e]),y.jsxs(F,{align:"flex-start",basis:"100%",direction:"column",grow:1,justify:"center",pt:r?62:0,shrink:1,children:[r&&y.jsxs(WK,{children:[y.jsx(gv,{color:R.GRAY6}),y.jsx(GK,{children:n==null?void 0:n.source_link}),y.jsx(YK,{href:`${n==null?void 0:n.source_link}?open=system`,onClick:u=>u.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),(s=n==null?void 0:n.audio)!=null&&s.length?y.jsxs(F,{justify:"flex-start",p:12,children:[y.jsx(Rt,{onClick:u=>o(u),startIcon:e?y.jsx(Vl,{}):y.jsx(Yd,{}),children:e?"Pause":"Play"}),y.jsx(qK,{ref:i,src:((l=n.audio[0])==null?void 0:l.link)||"",children:y.jsx("track",{kind:"captions"})})]}):null,y.jsx(VK,{grow:1,justify:"flex-start",p:12,shrink:1,children:y.jsx(pt,{color:"primaryText1",kind:"regular",children:er((n==null?void 0:n.text)||"",a)})})]})},WK=H(F)` top: 0px; position: absolute; border-radius: 16px 16px 0px 0px; @@ -1717,7 +1728,7 @@ ${({disabled:e})=>e&&Fd` `,qK=H.audio` height: 0; width: 0; -`,KK=()=>{const e=qt(),{setPlayingNode:t}=ql(n=>n);switch(z.useEffect(()=>{var r,i;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((i=e.properties)==null?void 0:i.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(gK,{});case"data_series":return y.jsx(pq,{});case"tribe_message":return y.jsx(hK,{});case"Tweet":return y.jsx(PK,{});case"topic":return y.jsx(CK,{});case"show":return y.jsx(kK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(Y2,{});case"document":return y.jsx(UK,{});case"episode":return y.jsx(lK,{},e.ref_id);case"image":return y.jsx(dK,{});default:return y.jsx(IK,{})}},XK=z.memo(KK);var ZK=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async="async"in n?!!n.async:!0,a.src=t,n.attrs&&JK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?Bg:QK;o(a,r),a.onload||Bg(a,r),i.appendChild(a)};function JK(e,t){for(var n in t)e.setAttribute(n,t[n])}function Bg(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function QK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var eX=function(t){return tX(t)&&!nX(t)};function tX(e){return!!e&&typeof e=="object"}function nX(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aX(e)}var rX=typeof Symbol=="function"&&Symbol.for,iX=rX?Symbol.for("react.element"):60103;function aX(e){return e.$$typeof===iX}function oX(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zi(oX(e),e,t):e}function sX(e,t,n){return e.concat(t).map(function(r){return Lo(r,n)})}function lX(e,t){if(!t.customMerge)return Zi;var n=t.customMerge(e);return typeof n=="function"?n:Zi}function uX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function zg(e){return Object.keys(e).concat(uX(e))}function V2(e,t){try{return t in e}catch{return!1}}function cX(e,t){return V2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function fX(e,t,n){var r={};return n.isMergeableObject(e)&&zg(e).forEach(function(i){r[i]=Lo(e[i],n)}),zg(t).forEach(function(i){cX(e,i)||(V2(e,i)&&n.isMergeableObject(t[i])?r[i]=lX(i,n)(e[i],t[i],n):r[i]=Lo(t[i],n))}),r}function Zi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||sX,n.isMergeableObject=n.isMergeableObject||eX,n.cloneUnlessOtherwiseSpecified=Lo;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):fX(e,t,n):Lo(t,n)}Zi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Zi(r,i,n)},{})};var dX=Zi,G2=dX,hX=Object.create,Bu=Object.defineProperty,pX=Object.getOwnPropertyDescriptor,mX=Object.getOwnPropertyNames,yX=Object.getPrototypeOf,gX=Object.prototype.hasOwnProperty,vX=(e,t)=>{for(var n in t)Bu(e,n,{get:t[n],enumerable:!0})},q2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mX(t))!gX.call(e,i)&&i!==n&&Bu(e,i,{get:()=>t[i],enumerable:!(r=pX(t,i))||r.enumerable});return e},hp=(e,t,n)=>(n=e!=null?hX(yX(e)):{},q2(t||!e||!e.__esModule?Bu(n,"default",{value:e,enumerable:!0}):n,e)),xX=e=>q2(Bu({},"__esModule",{value:!0}),e),K2={};vX(K2,{callPlayer:()=>DX,getConfig:()=>$X,getSDK:()=>MX,isBlobUrl:()=>NX,isMediaStream:()=>LX,lazy:()=>_X,omit:()=>IX,parseEndTime:()=>jX,parseStartTime:()=>AX,queryString:()=>EX,randomString:()=>TX,supportsWebKitPresentationMode:()=>RX});var zu=xX(K2),bX=hp(z),wX=hp(ZK),SX=hp(G2);const _X=e=>bX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),OX=/[?&#](?:start|t)=([0-9hms]+)/,kX=/[?&#]end=([0-9hms]+)/,Md=/(\d+)(h|m|s)/g,CX=/^\d+$/;function X2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(Md))return PX(r);if(CX.test(r))return parseInt(r)}}function PX(e){let t=0,n=Md.exec(e);for(;n!==null;){const[,r,i]=n;i==="h"&&(t+=parseInt(r,10)*60*60),i==="m"&&(t+=parseInt(r,10)*60),i==="s"&&(t+=parseInt(r,10)),n=Md.exec(e)}return t}function AX(e){return X2(e,OX)}function jX(e){return X2(e,kX)}function TX(){return Math.random().toString(36).substr(2,5)}function EX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function af(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const vi={},MX=function(t,n,r=null,i=()=>!0,a=wX.default){const o=af(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(vi[t]){vi[t].push({resolve:s,reject:l});return}vi[t]=[{resolve:s,reject:l}];const u=f=>{vi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(af(n))}}a(t,f=>{f?(vi[t].forEach(d=>d.reject(f)),vi[t]=null):r||u(af(n))})})};function $X(e,t){return(0,SX.default)(t.config,e.config)}function IX(e,...t){const n=[].concat(...t),r={},i=Object.keys(e);for(const a of i)n.indexOf(a)===-1&&(r[a]=e[a]);return r}function DX(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function LX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function NX(e){return/^blob:/.test(e)}function RX(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var pp=Object.defineProperty,BX=Object.getOwnPropertyDescriptor,zX=Object.getOwnPropertyNames,FX=Object.prototype.hasOwnProperty,HX=(e,t)=>{for(var n in t)pp(e,n,{get:t[n],enumerable:!0})},UX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zX(t))!FX.call(e,i)&&i!==n&&pp(e,i,{get:()=>t[i],enumerable:!(r=BX(t,i))||r.enumerable});return e},WX=e=>UX(pp({},"__esModule",{value:!0}),e),Z2={};HX(Z2,{AUDIO_EXTENSIONS:()=>mp,DASH_EXTENSIONS:()=>cw,FLV_EXTENSIONS:()=>fw,HLS_EXTENSIONS:()=>gp,MATCH_URL_DAILYMOTION:()=>ow,MATCH_URL_FACEBOOK:()=>ew,MATCH_URL_FACEBOOK_WATCH:()=>tw,MATCH_URL_KALTURA:()=>uw,MATCH_URL_MIXCLOUD:()=>sw,MATCH_URL_SOUNDCLOUD:()=>J2,MATCH_URL_STREAMABLE:()=>nw,MATCH_URL_TWITCH_CHANNEL:()=>aw,MATCH_URL_TWITCH_VIDEO:()=>iw,MATCH_URL_VIDYARD:()=>lw,MATCH_URL_VIMEO:()=>Q2,MATCH_URL_WISTIA:()=>rw,MATCH_URL_YOUTUBE:()=>$d,VIDEO_EXTENSIONS:()=>yp,canPlay:()=>VX});var YX=WX(Z2),Fg=zu;const $d=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,J2=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Q2=/vimeo\.com\/(?!progressive_redirect).+/,ew=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,tw=/^https?:\/\/fb\.watch\/.+$/,nw=/streamable\.com\/([a-z0-9]+)$/,rw=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,iw=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,aw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,ow=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,sw=/mixcloud\.com\/([^/]+\/[^/]+)/,lw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,uw=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,mp=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,yp=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,gp=/\.(m3u8)($|\?)/i,cw=/\.(mpd)($|\?)/i,fw=/\.(flv)($|\?)/i,Id=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Id(t)||Id(t.src))return!0;return!1}return(0,Fg.isMediaStream)(e)||(0,Fg.isBlobUrl)(e)?!0:mp.test(e)||yp.test(e)||gp.test(e)||cw.test(e)||fw.test(e)},VX={youtube:e=>e instanceof Array?e.every(t=>$d.test(t)):$d.test(e),soundcloud:e=>J2.test(e)&&!mp.test(e),vimeo:e=>Q2.test(e)&&!yp.test(e)&&!gp.test(e),facebook:e=>ew.test(e)||tw.test(e),streamable:e=>nw.test(e),wistia:e=>rw.test(e),twitch:e=>iw.test(e)||aw.test(e),dailymotion:e=>ow.test(e),mixcloud:e=>sw.test(e),vidyard:e=>lw.test(e),kaltura:e=>uw.test(e),file:Id};var vp=Object.defineProperty,GX=Object.getOwnPropertyDescriptor,qX=Object.getOwnPropertyNames,KX=Object.prototype.hasOwnProperty,XX=(e,t)=>{for(var n in t)vp(e,n,{get:t[n],enumerable:!0})},ZX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qX(t))!KX.call(e,i)&&i!==n&&vp(e,i,{get:()=>t[i],enumerable:!(r=GX(t,i))||r.enumerable});return e},JX=e=>ZX(vp({},"__esModule",{value:!0}),e),dw={};XX(dw,{default:()=>eZ});var QX=JX(dw),rn=zu,Xt=YX,eZ=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./YouTube-e281d916.js").then(e=>e.Y),["assets/YouTube-e281d916.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./SoundCloud-da30a779.js").then(e=>e.S),["assets/SoundCloud-da30a779.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Vimeo-706b5aa1.js").then(e=>e.V),["assets/Vimeo-706b5aa1.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Facebook-62848176.js").then(e=>e.F),["assets/Facebook-62848176.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Streamable-512607a9.js").then(e=>e.S),["assets/Streamable-512607a9.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Wistia-5ab8f2f0.js").then(e=>e.W),["assets/Wistia-5ab8f2f0.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Twitch-48eb0a31.js").then(e=>e.T),["assets/Twitch-48eb0a31.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./DailyMotion-f8942516.js").then(e=>e.D),["assets/DailyMotion-f8942516.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Mixcloud-69bd7a5e.js").then(e=>e.M),["assets/Mixcloud-69bd7a5e.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Vidyard-f6424a77.js").then(e=>e.V),["assets/Vidyard-f6424a77.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Kaltura-0d6f0140.js").then(e=>e.K),["assets/Kaltura-0d6f0140.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:Xt.canPlay.file,canEnablePIP:e=>Xt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,rn.supportsWebKitPresentationMode)())&&!Xt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./FilePlayer-7b7aa4ef.js").then(e=>e.F),["assets/FilePlayer-7b7aa4ef.js","assets/index-261f9d22.js","assets/index-a2878e02.css"]))}],Hg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function tZ(e,t){return!!(e===t||Hg(e)&&Hg(t))}function nZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Fu(e,n,{get:t[n],enumerable:!0})},pw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dZ(t))!pZ.call(e,i)&&i!==n&&Fu(e,i,{get:()=>t[i],enumerable:!(r=fZ(t,i))||r.enumerable});return e},yZ=(e,t,n)=>(n=e!=null?cZ(hZ(e)):{},pw(t||!e||!e.__esModule?Fu(n,"default",{value:e,enumerable:!0}):n,e)),gZ=e=>pw(Fu({},"__esModule",{value:!0}),e),mw={};mZ(mw,{defaultProps:()=>bZ,propTypes:()=>xZ});var yw=gZ(mw),vZ=yZ(P4);const{string:Ut,bool:Wt,number:xi,array:of,oneOfType:Ea,shape:mn,object:Yt,func:wt,node:Ug}=vZ.default,xZ={url:Ea([Ut,of,Yt]),playing:Wt,loop:Wt,controls:Wt,volume:xi,muted:Wt,playbackRate:xi,width:Ea([Ut,xi]),height:Ea([Ut,xi]),style:Yt,progressInterval:xi,playsinline:Wt,pip:Wt,stopOnUnmount:Wt,light:Ea([Wt,Ut,Yt]),playIcon:Ug,previewTabIndex:xi,fallback:Ug,oEmbedUrl:Ut,wrapper:Ea([Ut,wt,mn({render:wt.isRequired})]),config:mn({soundcloud:mn({options:Yt}),youtube:mn({playerVars:Yt,embedOptions:Yt,onUnstarted:wt}),facebook:mn({appId:Ut,version:Ut,playerId:Ut,attributes:Yt}),dailymotion:mn({params:Yt}),vimeo:mn({playerOptions:Yt,title:Ut}),file:mn({attributes:Yt,tracks:of,forceVideo:Wt,forceAudio:Wt,forceHLS:Wt,forceSafariHLS:Wt,forceDisableHls:Wt,forceDASH:Wt,forceFLV:Wt,hlsOptions:Yt,hlsVersion:Ut,dashVersion:Ut,flvVersion:Ut}),wistia:mn({options:Yt,playerId:Ut,customControls:of}),mixcloud:mn({options:Yt}),twitch:mn({options:Yt,playerId:Ut}),vidyard:mn({options:Yt})}),onReady:wt,onStart:wt,onPlay:wt,onPause:wt,onBuffer:wt,onBufferEnd:wt,onEnded:wt,onError:wt,onDuration:wt,onSeek:wt,onPlaybackRateChange:wt,onPlaybackQualityChange:wt,onProgress:wt,onClickPreview:wt,onEnablePIP:wt,onDisablePIP:wt},Et=()=>{},bZ={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Et},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Et,onStart:Et,onPlay:Et,onPause:Et,onBuffer:Et,onBufferEnd:Et,onEnded:Et,onError:Et,onDuration:Et,onSeek:Et,onPlaybackRateChange:Et,onPlaybackQualityChange:Et,onProgress:Et,onClickPreview:Et,onEnablePIP:Et,onDisablePIP:Et};var wZ=Object.create,ts=Object.defineProperty,SZ=Object.getOwnPropertyDescriptor,_Z=Object.getOwnPropertyNames,OZ=Object.getPrototypeOf,kZ=Object.prototype.hasOwnProperty,CZ=(e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PZ=(e,t)=>{for(var n in t)ts(e,n,{get:t[n],enumerable:!0})},gw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _Z(t))!kZ.call(e,i)&&i!==n&&ts(e,i,{get:()=>t[i],enumerable:!(r=SZ(t,i))||r.enumerable});return e},vw=(e,t,n)=>(n=e!=null?wZ(OZ(e)):{},gw(t||!e||!e.__esModule?ts(n,"default",{value:e,enumerable:!0}):n,e)),AZ=e=>gw(ts({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(CZ(e,typeof t!="symbol"?t+"":t,n),n),xw={};PZ(xw,{default:()=>Hu});var jZ=AZ(xw),Wg=vw(z),TZ=vw(hw),bw=yw,EZ=zu;const MZ=5e3;class Hu extends Wg.Component{constructor(){super(...arguments),vt(this,"mounted",!1),vt(this,"isReady",!1),vt(this,"isPlaying",!1),vt(this,"isLoading",!0),vt(this,"loadOnReady",null),vt(this,"startOnPlay",!0),vt(this,"seekOnPlay",null),vt(this,"onDurationCalled",!1),vt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),vt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),vt(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const i={playedSeconds:t,played:t/r};n!==null&&(i.loadedSeconds=n,i.loaded=n/r),(i.playedSeconds!==this.prevPlayed||i.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(i),this.prevPlayed=i.playedSeconds,this.prevLoaded=i.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),vt(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:i}=this.props;t(),!i&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),vt(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),vt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),vt(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),vt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),vt(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),vt(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:i,muted:a,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:f}=this.props;if(!(0,TZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,EZ.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==i&&i!==null&&this.player.setVolume(i),t.muted!==a&&(a?this.player.mute():(this.player.unmute(),i!==null&&setTimeout(()=>this.player.setVolume(i)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},MZ));return}if(n?n==="fraction":t>0&&t<1){const a=this.player.getDuration();if(!a){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(a*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?Wg.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}vt(Hu,"displayName","Player");vt(Hu,"propTypes",bw.propTypes);vt(Hu,"defaultProps",bw.defaultProps);var $Z=Object.create,ns=Object.defineProperty,IZ=Object.getOwnPropertyDescriptor,DZ=Object.getOwnPropertyNames,LZ=Object.getPrototypeOf,NZ=Object.prototype.hasOwnProperty,RZ=(e,t,n)=>t in e?ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BZ=(e,t)=>{for(var n in t)ns(e,n,{get:t[n],enumerable:!0})},ww=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of DZ(t))!NZ.call(e,i)&&i!==n&&ns(e,i,{get:()=>t[i],enumerable:!(r=IZ(t,i))||r.enumerable});return e},rs=(e,t,n)=>(n=e!=null?$Z(LZ(e)):{},ww(t||!e||!e.__esModule?ns(n,"default",{value:e,enumerable:!0}):n,e)),zZ=e=>ww(ns({},"__esModule",{value:!0}),e),gt=(e,t,n)=>(RZ(e,typeof t!="symbol"?t+"":t,n),n),Sw={};BZ(Sw,{createReactPlayer:()=>KZ});var FZ=zZ(Sw),wi=rs(z),HZ=rs(G2),sf=rs(aZ),Yg=rs(hw),Na=yw,_w=zu,UZ=rs(jZ);const WZ=(0,_w.lazy)(()=>an(()=>import("./Preview-8e1341ba.js").then(e=>e.P),["assets/Preview-8e1341ba.js","assets/index-261f9d22.js","assets/index-a2878e02.css"])),YZ=typeof window<"u"&&window.document,VZ=typeof Nt<"u"&&Nt.window&&Nt.window.document,GZ=Object.keys(Na.propTypes),qZ=YZ||VZ?wi.Suspense:()=>null,Ma=[],KZ=(e,t)=>{var n;return n=class extends wi.Component{constructor(){super(...arguments),gt(this,"state",{showPreview:!!this.props.light}),gt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),gt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),gt(this,"showPreview",()=>{this.setState({showPreview:!0})}),gt(this,"getDuration",()=>this.player?this.player.getDuration():null),gt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),gt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),gt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),gt(this,"seekTo",(r,i,a)=>{if(!this.player)return null;this.player.seekTo(r,i,a)}),gt(this,"handleReady",()=>{this.props.onReady(this)}),gt(this,"getActivePlayer",(0,sf.default)(r=>{for(const i of[...Ma,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,sf.default)((r,i)=>{const{config:a}=this.props;return HZ.default.all([Na.defaultProps.config,Na.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,sf.default)(r=>(0,_w.omit)(this.props,GZ))),gt(this,"renderActivePlayer",r=>{if(!r)return null;const i=this.getActivePlayer(r);if(!i)return null;const a=this.getConfig(r,i.key);return wi.default.createElement(UZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Yg.default)(this.props,r)||!(0,Yg.default)(this.state,i)}componentDidUpdate(r){const{light:i}=this.props;!r.light&&i&&this.setState({showPreview:!0}),r.light&&!i&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s}=this.props;return wi.default.createElement(WZ,{url:r,light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:i,width:a,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,f=this.getAttributes(r),d=typeof l=="string"?this.references.wrapper:void 0;return wi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},wi.default.createElement(qZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Na.propTypes),gt(n,"defaultProps",Na.defaultProps),gt(n,"addCustomPlayer",r=>{Ma.push(r)}),gt(n,"removeCustomPlayers",()=>{Ma.length=0}),gt(n,"canPlay",r=>{for(const i of[...Ma,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...Ma,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var XZ=Object.create,Uu=Object.defineProperty,ZZ=Object.getOwnPropertyDescriptor,JZ=Object.getOwnPropertyNames,QZ=Object.getPrototypeOf,eJ=Object.prototype.hasOwnProperty,tJ=(e,t)=>{for(var n in t)Uu(e,n,{get:t[n],enumerable:!0})},Ow=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of JZ(t))!eJ.call(e,i)&&i!==n&&Uu(e,i,{get:()=>t[i],enumerable:!(r=ZZ(t,i))||r.enumerable});return e},nJ=(e,t,n)=>(n=e!=null?XZ(QZ(e)):{},Ow(t||!e||!e.__esModule?Uu(n,"default",{value:e,enumerable:!0}):n,e)),rJ=e=>Ow(Uu({},"__esModule",{value:!0}),e),kw={};tJ(kw,{default:()=>sJ});var iJ=rJ(kw),Dd=nJ(QX),aJ=FZ;const oJ=Dd.default[Dd.default.length-1];var sJ=(0,aJ.createReactPlayer)(Dd.default,oJ);const lJ=st(iJ),uJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_4160_9271)",children:y.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),cJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_3130_18463)",children:y.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),fJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_up",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1483_75386)",children:y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),dJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_mute",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),y.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),Vg=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),i=t>0?`${t}:`:"",a=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${i}${a}:${o}`},hJ=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:i,handleProgressChange:a,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,f]=z.useState(.5),[d,h]=z.useState(!1),[m,g]=z.useState(.5),v=(_,C)=>{const k=Array.isArray(C)?C[0]:C;f(k),o(_,k),d&&h(!1)},b=()=>{d?(f(m),o(new Event("input"),m)):(g(u),f(0),o(new Event("input"),0)),h(!d)};return y.jsxs(F,{children:[(!l||t)&&y.jsx(bJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(pJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(gJ,{onClick:n,size:"small",children:e?y.jsx(Gl,{}):y.jsx(Yd,{})}),y.jsxs(wJ,{direction:"row",children:[y.jsx("span",{children:Vg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:Vg(i)})]}),y.jsxs(vJ,{direction:"row",px:9,children:[y.jsx(Kl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(mJ,{onClick:b,children:d?y.jsx(yJ,{children:y.jsx(dJ,{})}):y.jsx(fJ,{})})]}),y.jsx(xJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(uJ,{}):y.jsx(cJ,{})})]})]})},pJ=H(F)` +`,KK=()=>{const e=qt(),{setPlayingNode:t}=Gl(n=>n);switch(z.useEffect(()=>{var r,i;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((i=e.properties)==null?void 0:i.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(gK,{});case"data_series":return y.jsx(pq,{});case"tribe_message":return y.jsx(hK,{});case"Tweet":return y.jsx(PK,{});case"topic":return y.jsx(CK,{});case"show":return y.jsx(kK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(Y2,{});case"document":return y.jsx(UK,{});case"episode":return y.jsx(lK,{},e.ref_id);case"image":return y.jsx(dK,{});default:return y.jsx(IK,{})}},XK=z.memo(KK);var ZK=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async="async"in n?!!n.async:!0,a.src=t,n.attrs&&JK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?Bg:QK;o(a,r),a.onload||Bg(a,r),i.appendChild(a)};function JK(e,t){for(var n in t)e.setAttribute(n,t[n])}function Bg(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function QK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var eX=function(t){return tX(t)&&!nX(t)};function tX(e){return!!e&&typeof e=="object"}function nX(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aX(e)}var rX=typeof Symbol=="function"&&Symbol.for,iX=rX?Symbol.for("react.element"):60103;function aX(e){return e.$$typeof===iX}function oX(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zi(oX(e),e,t):e}function sX(e,t,n){return e.concat(t).map(function(r){return Lo(r,n)})}function lX(e,t){if(!t.customMerge)return Zi;var n=t.customMerge(e);return typeof n=="function"?n:Zi}function uX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function zg(e){return Object.keys(e).concat(uX(e))}function V2(e,t){try{return t in e}catch{return!1}}function cX(e,t){return V2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function fX(e,t,n){var r={};return n.isMergeableObject(e)&&zg(e).forEach(function(i){r[i]=Lo(e[i],n)}),zg(t).forEach(function(i){cX(e,i)||(V2(e,i)&&n.isMergeableObject(t[i])?r[i]=lX(i,n)(e[i],t[i],n):r[i]=Lo(t[i],n))}),r}function Zi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||sX,n.isMergeableObject=n.isMergeableObject||eX,n.cloneUnlessOtherwiseSpecified=Lo;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):fX(e,t,n):Lo(t,n)}Zi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Zi(r,i,n)},{})};var dX=Zi,G2=dX,hX=Object.create,Bu=Object.defineProperty,pX=Object.getOwnPropertyDescriptor,mX=Object.getOwnPropertyNames,yX=Object.getPrototypeOf,gX=Object.prototype.hasOwnProperty,vX=(e,t)=>{for(var n in t)Bu(e,n,{get:t[n],enumerable:!0})},q2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mX(t))!gX.call(e,i)&&i!==n&&Bu(e,i,{get:()=>t[i],enumerable:!(r=pX(t,i))||r.enumerable});return e},hp=(e,t,n)=>(n=e!=null?hX(yX(e)):{},q2(t||!e||!e.__esModule?Bu(n,"default",{value:e,enumerable:!0}):n,e)),xX=e=>q2(Bu({},"__esModule",{value:!0}),e),K2={};vX(K2,{callPlayer:()=>DX,getConfig:()=>$X,getSDK:()=>MX,isBlobUrl:()=>NX,isMediaStream:()=>LX,lazy:()=>_X,omit:()=>IX,parseEndTime:()=>jX,parseStartTime:()=>AX,queryString:()=>EX,randomString:()=>TX,supportsWebKitPresentationMode:()=>RX});var zu=xX(K2),bX=hp(z),wX=hp(ZK),SX=hp(G2);const _X=e=>bX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),OX=/[?&#](?:start|t)=([0-9hms]+)/,kX=/[?&#]end=([0-9hms]+)/,Md=/(\d+)(h|m|s)/g,CX=/^\d+$/;function X2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(Md))return PX(r);if(CX.test(r))return parseInt(r)}}function PX(e){let t=0,n=Md.exec(e);for(;n!==null;){const[,r,i]=n;i==="h"&&(t+=parseInt(r,10)*60*60),i==="m"&&(t+=parseInt(r,10)*60),i==="s"&&(t+=parseInt(r,10)),n=Md.exec(e)}return t}function AX(e){return X2(e,OX)}function jX(e){return X2(e,kX)}function TX(){return Math.random().toString(36).substr(2,5)}function EX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function af(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const vi={},MX=function(t,n,r=null,i=()=>!0,a=wX.default){const o=af(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(vi[t]){vi[t].push({resolve:s,reject:l});return}vi[t]=[{resolve:s,reject:l}];const u=f=>{vi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(af(n))}}a(t,f=>{f?(vi[t].forEach(d=>d.reject(f)),vi[t]=null):r||u(af(n))})})};function $X(e,t){return(0,SX.default)(t.config,e.config)}function IX(e,...t){const n=[].concat(...t),r={},i=Object.keys(e);for(const a of i)n.indexOf(a)===-1&&(r[a]=e[a]);return r}function DX(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function LX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function NX(e){return/^blob:/.test(e)}function RX(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var pp=Object.defineProperty,BX=Object.getOwnPropertyDescriptor,zX=Object.getOwnPropertyNames,FX=Object.prototype.hasOwnProperty,HX=(e,t)=>{for(var n in t)pp(e,n,{get:t[n],enumerable:!0})},UX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zX(t))!FX.call(e,i)&&i!==n&&pp(e,i,{get:()=>t[i],enumerable:!(r=BX(t,i))||r.enumerable});return e},WX=e=>UX(pp({},"__esModule",{value:!0}),e),Z2={};HX(Z2,{AUDIO_EXTENSIONS:()=>mp,DASH_EXTENSIONS:()=>cw,FLV_EXTENSIONS:()=>fw,HLS_EXTENSIONS:()=>gp,MATCH_URL_DAILYMOTION:()=>ow,MATCH_URL_FACEBOOK:()=>ew,MATCH_URL_FACEBOOK_WATCH:()=>tw,MATCH_URL_KALTURA:()=>uw,MATCH_URL_MIXCLOUD:()=>sw,MATCH_URL_SOUNDCLOUD:()=>J2,MATCH_URL_STREAMABLE:()=>nw,MATCH_URL_TWITCH_CHANNEL:()=>aw,MATCH_URL_TWITCH_VIDEO:()=>iw,MATCH_URL_VIDYARD:()=>lw,MATCH_URL_VIMEO:()=>Q2,MATCH_URL_WISTIA:()=>rw,MATCH_URL_YOUTUBE:()=>$d,VIDEO_EXTENSIONS:()=>yp,canPlay:()=>VX});var YX=WX(Z2),Fg=zu;const $d=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,J2=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Q2=/vimeo\.com\/(?!progressive_redirect).+/,ew=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,tw=/^https?:\/\/fb\.watch\/.+$/,nw=/streamable\.com\/([a-z0-9]+)$/,rw=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,iw=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,aw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,ow=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,sw=/mixcloud\.com\/([^/]+\/[^/]+)/,lw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,uw=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,mp=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,yp=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,gp=/\.(m3u8)($|\?)/i,cw=/\.(mpd)($|\?)/i,fw=/\.(flv)($|\?)/i,Id=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Id(t)||Id(t.src))return!0;return!1}return(0,Fg.isMediaStream)(e)||(0,Fg.isBlobUrl)(e)?!0:mp.test(e)||yp.test(e)||gp.test(e)||cw.test(e)||fw.test(e)},VX={youtube:e=>e instanceof Array?e.every(t=>$d.test(t)):$d.test(e),soundcloud:e=>J2.test(e)&&!mp.test(e),vimeo:e=>Q2.test(e)&&!yp.test(e)&&!gp.test(e),facebook:e=>ew.test(e)||tw.test(e),streamable:e=>nw.test(e),wistia:e=>rw.test(e),twitch:e=>iw.test(e)||aw.test(e),dailymotion:e=>ow.test(e),mixcloud:e=>sw.test(e),vidyard:e=>lw.test(e),kaltura:e=>uw.test(e),file:Id};var vp=Object.defineProperty,GX=Object.getOwnPropertyDescriptor,qX=Object.getOwnPropertyNames,KX=Object.prototype.hasOwnProperty,XX=(e,t)=>{for(var n in t)vp(e,n,{get:t[n],enumerable:!0})},ZX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qX(t))!KX.call(e,i)&&i!==n&&vp(e,i,{get:()=>t[i],enumerable:!(r=GX(t,i))||r.enumerable});return e},JX=e=>ZX(vp({},"__esModule",{value:!0}),e),dw={};XX(dw,{default:()=>eZ});var QX=JX(dw),rn=zu,Xt=YX,eZ=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./YouTube-4db8708e.js").then(e=>e.Y),["assets/YouTube-4db8708e.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./SoundCloud-cb922c73.js").then(e=>e.S),["assets/SoundCloud-cb922c73.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Vimeo-4dc67568.js").then(e=>e.V),["assets/Vimeo-4dc67568.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Facebook-28e8509e.js").then(e=>e.F),["assets/Facebook-28e8509e.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Streamable-d875ce74.js").then(e=>e.S),["assets/Streamable-d875ce74.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Wistia-bd085ac4.js").then(e=>e.W),["assets/Wistia-bd085ac4.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Twitch-169fd0ac.js").then(e=>e.T),["assets/Twitch-169fd0ac.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./DailyMotion-ddc30a3c.js").then(e=>e.D),["assets/DailyMotion-ddc30a3c.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Mixcloud-a7cea602.js").then(e=>e.M),["assets/Mixcloud-a7cea602.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Vidyard-97d6acf1.js").then(e=>e.V),["assets/Vidyard-97d6acf1.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Kaltura-39e30085.js").then(e=>e.K),["assets/Kaltura-39e30085.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:Xt.canPlay.file,canEnablePIP:e=>Xt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,rn.supportsWebKitPresentationMode)())&&!Xt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./FilePlayer-d7804739.js").then(e=>e.F),["assets/FilePlayer-d7804739.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"]))}],Hg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function tZ(e,t){return!!(e===t||Hg(e)&&Hg(t))}function nZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Fu(e,n,{get:t[n],enumerable:!0})},pw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dZ(t))!pZ.call(e,i)&&i!==n&&Fu(e,i,{get:()=>t[i],enumerable:!(r=fZ(t,i))||r.enumerable});return e},yZ=(e,t,n)=>(n=e!=null?cZ(hZ(e)):{},pw(t||!e||!e.__esModule?Fu(n,"default",{value:e,enumerable:!0}):n,e)),gZ=e=>pw(Fu({},"__esModule",{value:!0}),e),mw={};mZ(mw,{defaultProps:()=>bZ,propTypes:()=>xZ});var yw=gZ(mw),vZ=yZ(P4);const{string:Ut,bool:Wt,number:xi,array:of,oneOfType:Ea,shape:mn,object:Yt,func:wt,node:Ug}=vZ.default,xZ={url:Ea([Ut,of,Yt]),playing:Wt,loop:Wt,controls:Wt,volume:xi,muted:Wt,playbackRate:xi,width:Ea([Ut,xi]),height:Ea([Ut,xi]),style:Yt,progressInterval:xi,playsinline:Wt,pip:Wt,stopOnUnmount:Wt,light:Ea([Wt,Ut,Yt]),playIcon:Ug,previewTabIndex:xi,fallback:Ug,oEmbedUrl:Ut,wrapper:Ea([Ut,wt,mn({render:wt.isRequired})]),config:mn({soundcloud:mn({options:Yt}),youtube:mn({playerVars:Yt,embedOptions:Yt,onUnstarted:wt}),facebook:mn({appId:Ut,version:Ut,playerId:Ut,attributes:Yt}),dailymotion:mn({params:Yt}),vimeo:mn({playerOptions:Yt,title:Ut}),file:mn({attributes:Yt,tracks:of,forceVideo:Wt,forceAudio:Wt,forceHLS:Wt,forceSafariHLS:Wt,forceDisableHls:Wt,forceDASH:Wt,forceFLV:Wt,hlsOptions:Yt,hlsVersion:Ut,dashVersion:Ut,flvVersion:Ut}),wistia:mn({options:Yt,playerId:Ut,customControls:of}),mixcloud:mn({options:Yt}),twitch:mn({options:Yt,playerId:Ut}),vidyard:mn({options:Yt})}),onReady:wt,onStart:wt,onPlay:wt,onPause:wt,onBuffer:wt,onBufferEnd:wt,onEnded:wt,onError:wt,onDuration:wt,onSeek:wt,onPlaybackRateChange:wt,onPlaybackQualityChange:wt,onProgress:wt,onClickPreview:wt,onEnablePIP:wt,onDisablePIP:wt},Et=()=>{},bZ={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Et},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Et,onStart:Et,onPlay:Et,onPause:Et,onBuffer:Et,onBufferEnd:Et,onEnded:Et,onError:Et,onDuration:Et,onSeek:Et,onPlaybackRateChange:Et,onPlaybackQualityChange:Et,onProgress:Et,onClickPreview:Et,onEnablePIP:Et,onDisablePIP:Et};var wZ=Object.create,es=Object.defineProperty,SZ=Object.getOwnPropertyDescriptor,_Z=Object.getOwnPropertyNames,OZ=Object.getPrototypeOf,kZ=Object.prototype.hasOwnProperty,CZ=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PZ=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},gw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _Z(t))!kZ.call(e,i)&&i!==n&&es(e,i,{get:()=>t[i],enumerable:!(r=SZ(t,i))||r.enumerable});return e},vw=(e,t,n)=>(n=e!=null?wZ(OZ(e)):{},gw(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),AZ=e=>gw(es({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(CZ(e,typeof t!="symbol"?t+"":t,n),n),xw={};PZ(xw,{default:()=>Hu});var jZ=AZ(xw),Wg=vw(z),TZ=vw(hw),bw=yw,EZ=zu;const MZ=5e3;class Hu extends Wg.Component{constructor(){super(...arguments),vt(this,"mounted",!1),vt(this,"isReady",!1),vt(this,"isPlaying",!1),vt(this,"isLoading",!0),vt(this,"loadOnReady",null),vt(this,"startOnPlay",!0),vt(this,"seekOnPlay",null),vt(this,"onDurationCalled",!1),vt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),vt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),vt(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const i={playedSeconds:t,played:t/r};n!==null&&(i.loadedSeconds=n,i.loaded=n/r),(i.playedSeconds!==this.prevPlayed||i.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(i),this.prevPlayed=i.playedSeconds,this.prevLoaded=i.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),vt(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:i}=this.props;t(),!i&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),vt(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),vt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),vt(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),vt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),vt(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),vt(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:i,muted:a,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:f}=this.props;if(!(0,TZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,EZ.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==i&&i!==null&&this.player.setVolume(i),t.muted!==a&&(a?this.player.mute():(this.player.unmute(),i!==null&&setTimeout(()=>this.player.setVolume(i)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},MZ));return}if(n?n==="fraction":t>0&&t<1){const a=this.player.getDuration();if(!a){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(a*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?Wg.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}vt(Hu,"displayName","Player");vt(Hu,"propTypes",bw.propTypes);vt(Hu,"defaultProps",bw.defaultProps);var $Z=Object.create,ts=Object.defineProperty,IZ=Object.getOwnPropertyDescriptor,DZ=Object.getOwnPropertyNames,LZ=Object.getPrototypeOf,NZ=Object.prototype.hasOwnProperty,RZ=(e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BZ=(e,t)=>{for(var n in t)ts(e,n,{get:t[n],enumerable:!0})},ww=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of DZ(t))!NZ.call(e,i)&&i!==n&&ts(e,i,{get:()=>t[i],enumerable:!(r=IZ(t,i))||r.enumerable});return e},ns=(e,t,n)=>(n=e!=null?$Z(LZ(e)):{},ww(t||!e||!e.__esModule?ts(n,"default",{value:e,enumerable:!0}):n,e)),zZ=e=>ww(ts({},"__esModule",{value:!0}),e),gt=(e,t,n)=>(RZ(e,typeof t!="symbol"?t+"":t,n),n),Sw={};BZ(Sw,{createReactPlayer:()=>KZ});var FZ=zZ(Sw),wi=ns(z),HZ=ns(G2),sf=ns(aZ),Yg=ns(hw),Na=yw,_w=zu,UZ=ns(jZ);const WZ=(0,_w.lazy)(()=>an(()=>import("./Preview-0ec8e915.js").then(e=>e.P),["assets/Preview-0ec8e915.js","assets/index-20ea28f6.js","assets/index-a2878e02.css"])),YZ=typeof window<"u"&&window.document,VZ=typeof Nt<"u"&&Nt.window&&Nt.window.document,GZ=Object.keys(Na.propTypes),qZ=YZ||VZ?wi.Suspense:()=>null,Ma=[],KZ=(e,t)=>{var n;return n=class extends wi.Component{constructor(){super(...arguments),gt(this,"state",{showPreview:!!this.props.light}),gt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),gt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),gt(this,"showPreview",()=>{this.setState({showPreview:!0})}),gt(this,"getDuration",()=>this.player?this.player.getDuration():null),gt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),gt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),gt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),gt(this,"seekTo",(r,i,a)=>{if(!this.player)return null;this.player.seekTo(r,i,a)}),gt(this,"handleReady",()=>{this.props.onReady(this)}),gt(this,"getActivePlayer",(0,sf.default)(r=>{for(const i of[...Ma,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,sf.default)((r,i)=>{const{config:a}=this.props;return HZ.default.all([Na.defaultProps.config,Na.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,sf.default)(r=>(0,_w.omit)(this.props,GZ))),gt(this,"renderActivePlayer",r=>{if(!r)return null;const i=this.getActivePlayer(r);if(!i)return null;const a=this.getConfig(r,i.key);return wi.default.createElement(UZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Yg.default)(this.props,r)||!(0,Yg.default)(this.state,i)}componentDidUpdate(r){const{light:i}=this.props;!r.light&&i&&this.setState({showPreview:!0}),r.light&&!i&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s}=this.props;return wi.default.createElement(WZ,{url:r,light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:i,width:a,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,f=this.getAttributes(r),d=typeof l=="string"?this.references.wrapper:void 0;return wi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},wi.default.createElement(qZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Na.propTypes),gt(n,"defaultProps",Na.defaultProps),gt(n,"addCustomPlayer",r=>{Ma.push(r)}),gt(n,"removeCustomPlayers",()=>{Ma.length=0}),gt(n,"canPlay",r=>{for(const i of[...Ma,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...Ma,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var XZ=Object.create,Uu=Object.defineProperty,ZZ=Object.getOwnPropertyDescriptor,JZ=Object.getOwnPropertyNames,QZ=Object.getPrototypeOf,eJ=Object.prototype.hasOwnProperty,tJ=(e,t)=>{for(var n in t)Uu(e,n,{get:t[n],enumerable:!0})},Ow=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of JZ(t))!eJ.call(e,i)&&i!==n&&Uu(e,i,{get:()=>t[i],enumerable:!(r=ZZ(t,i))||r.enumerable});return e},nJ=(e,t,n)=>(n=e!=null?XZ(QZ(e)):{},Ow(t||!e||!e.__esModule?Uu(n,"default",{value:e,enumerable:!0}):n,e)),rJ=e=>Ow(Uu({},"__esModule",{value:!0}),e),kw={};tJ(kw,{default:()=>sJ});var iJ=rJ(kw),Dd=nJ(QX),aJ=FZ;const oJ=Dd.default[Dd.default.length-1];var sJ=(0,aJ.createReactPlayer)(Dd.default,oJ);const lJ=st(iJ),uJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_4160_9271)",children:y.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),cJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_3130_18463)",children:y.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),fJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_up",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1483_75386)",children:y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),dJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_mute",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),y.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),Vg=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),i=t>0?`${t}:`:"",a=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${i}${a}:${o}`},hJ=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:i,handleProgressChange:a,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,f]=z.useState(.5),[d,h]=z.useState(!1),[m,g]=z.useState(.5),v=(_,C)=>{const k=Array.isArray(C)?C[0]:C;f(k),o(_,k),d&&h(!1)},b=()=>{d?(f(m),o(new Event("input"),m)):(g(u),f(0),o(new Event("input"),0)),h(!d)};return y.jsxs(F,{children:[(!l||t)&&y.jsx(bJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(pJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(gJ,{onClick:n,size:"small",children:e?y.jsx(Vl,{}):y.jsx(Yd,{})}),y.jsxs(wJ,{direction:"row",children:[y.jsx("span",{children:Vg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:Vg(i)})]}),y.jsxs(vJ,{direction:"row",px:9,children:[y.jsx(Kl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(mJ,{onClick:b,children:d?y.jsx(yJ,{children:y.jsx(dJ,{})}):y.jsx(fJ,{})})]}),y.jsx(xJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(uJ,{}):y.jsx(cJ,{})})]})]})},pJ=H(F)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` @@ -1832,7 +1843,7 @@ ${({disabled:e})=>e&&Fd` .duration { color: ${R.GRAY6}; } -`,SJ=({hidden:e})=>{var $,_e;const t=z.useRef(null),n=z.useRef(null),[r,i]=z.useState(!1),[a,o]=z.useState(!1),[s,l]=z.useState(!1),[u,f]=z.useState("ready"),[d,h]=z.useState(!1),{isPlaying:m,playingTime:g,duration:v,setIsPlaying:b,setPlayingTime:_,setDuration:C,playingNode:k,volume:A,setVolume:O,setHasError:w,resetPlayer:j,isSeeking:T,setIsSeeking:I}=ql(te=>te),B=(k==null?void 0:k.media_url)||(k==null?void 0:k.link)||(($=k==null?void 0:k.properties)==null?void 0:$.link)||((_e=k==null?void 0:k.properties)==null?void 0:_e.media_url),M=(B==null?void 0:B.includes("youtube"))||(B==null?void 0:B.includes("youtu.be"));z.useEffect(()=>()=>j(),[j]),z.useEffect(()=>{k&&!d&&(_(0),C(0),h(!1))},[k,_,C,h,d]),z.useEffect(()=>{T&&t.current&&(t.current.seekTo(g,"seconds"),I(!1))},[g,T,I]);const D=()=>{b(!m)},W=()=>{b(!0)},Y=()=>{b(!1)},V=(te,ge)=>{const Ye=Array.isArray(ge)?ge[0]:ge;_(Ye),t.current&&!T&&t.current.seekTo(Ye,"seconds")},X=(te,ge)=>{const Ye=Array.isArray(ge)?ge[0]:ge;O(Ye)},Z=()=>{w(!0),f("error")},G=te=>{if(!T){const ge=te.playedSeconds;_(ge)}},Q=()=>{if(t.current){f("ready");const te=t.current.getDuration();if(C(te),!T&&(g===0||Math.abs(g-ei("00:00:00"))<1)&&(k==null?void 0:k.type)==="youtube"&&k!=null&&k.timestamp){const[ge]=k.timestamp.split("-"),Ye=ei(ge);t.current.seekTo(Ye,"seconds"),_(Ye)}}},E=()=>{n.current&&(document.fullscreenElement?(document.exitFullscreen(),setTimeout(()=>o(!1),300)):n.current.requestFullscreen().then(()=>{document.addEventListener("fullscreenchange",pe)}))},pe=()=>{o(!!document.fullscreenElement),document.removeEventListener("fullscreenchange",pe)};z.useEffect(()=>()=>{document.removeEventListener("fullscreenchange",pe)}),z.useEffect(()=>{const te=ge=>{if(a){const Ye=window.screen.height,Me=ge.clientY,ae=Ye-Me;l(ae<=50)}};return document.addEventListener("mousemove",te),()=>{document.removeEventListener("mousemove",te)}},[a,s]),z.useEffect(()=>{const te=ge=>{a&&ge.key==="Escape"?(ge.preventDefault(),ge.stopPropagation()):r&&ge.key===" "&&(ge.preventDefault(),D())};return document.addEventListener("fullscreenchange",pe),document.addEventListener("keydown",te),()=>{document.removeEventListener("fullscreenchange",pe),document.removeEventListener("keydown",te)}});const ue=()=>{D()};return B?y.jsxs(_J,{ref:n,hidden:e,onBlur:()=>i(!1),onFocus:()=>i(!0),tabIndex:0,children:[y.jsx(OJ,{isFullScreen:a,children:y.jsx($n,{size:120,src:(k==null?void 0:k.image_url)||"",type:"clip"})}),y.jsx(PJ,{isFullScreen:a,onClick:ue,children:y.jsx(lJ,{ref:t,controls:!1,height:a?window.screen.height:"200px",onBuffer:()=>f("buffering"),onBufferEnd:()=>f("ready"),onError:Z,onPause:Y,onPlay:W,onProgress:G,onReady:Q,playing:m,url:B||"",volume:A,width:"100%"})}),u==="error"?y.jsx(CJ,{className:"error-wrapper",children:"Error happened, please try later"}):null,u==="ready"?y.jsx(hJ,{duration:v,handleProgressChange:V,handleVolumeChange:X,isFullScreen:a,isPlaying:m,onFullScreenClick:E,playingTime:g,setIsPlaying:D,showToolbar:s&&a}):null,u==="buffering"&&!M?y.jsx(kJ,{isFullScreen:a,children:y.jsx(Fo,{color:R.lightGray})}):null]}):null},_J=H(F)` +`,SJ=({hidden:e})=>{var $,_e;const t=z.useRef(null),n=z.useRef(null),[r,i]=z.useState(!1),[a,o]=z.useState(!1),[s,l]=z.useState(!1),[u,f]=z.useState("ready"),[d,h]=z.useState(!1),{isPlaying:m,playingTime:g,duration:v,setIsPlaying:b,setPlayingTime:_,setDuration:C,playingNode:k,volume:A,setVolume:O,setHasError:w,resetPlayer:j,isSeeking:T,setIsSeeking:I}=Gl(te=>te),B=(k==null?void 0:k.media_url)||(k==null?void 0:k.link)||(($=k==null?void 0:k.properties)==null?void 0:$.link)||((_e=k==null?void 0:k.properties)==null?void 0:_e.media_url),M=(B==null?void 0:B.includes("youtube"))||(B==null?void 0:B.includes("youtu.be"));z.useEffect(()=>()=>j(),[j]),z.useEffect(()=>{k&&!d&&(_(0),C(0),h(!1))},[k,_,C,h,d]),z.useEffect(()=>{T&&t.current&&(t.current.seekTo(g,"seconds"),I(!1))},[g,T,I]);const D=()=>{b(!m)},W=()=>{b(!0)},Y=()=>{b(!1)},V=(te,ge)=>{const Ye=Array.isArray(ge)?ge[0]:ge;_(Ye),t.current&&!T&&t.current.seekTo(Ye,"seconds")},X=(te,ge)=>{const Ye=Array.isArray(ge)?ge[0]:ge;O(Ye)},Z=()=>{w(!0),f("error")},G=te=>{if(!T){const ge=te.playedSeconds;_(ge)}},Q=()=>{if(t.current){f("ready");const te=t.current.getDuration();if(C(te),!T&&(g===0||Math.abs(g-ei("00:00:00"))<1)&&(k==null?void 0:k.type)==="youtube"&&k!=null&&k.timestamp){const[ge]=k.timestamp.split("-"),Ye=ei(ge);t.current.seekTo(Ye,"seconds"),_(Ye)}}},E=()=>{n.current&&(document.fullscreenElement?(document.exitFullscreen(),setTimeout(()=>o(!1),300)):n.current.requestFullscreen().then(()=>{document.addEventListener("fullscreenchange",pe)}))},pe=()=>{o(!!document.fullscreenElement),document.removeEventListener("fullscreenchange",pe)};z.useEffect(()=>()=>{document.removeEventListener("fullscreenchange",pe)}),z.useEffect(()=>{const te=ge=>{if(a){const Ye=window.screen.height,Me=ge.clientY,ae=Ye-Me;l(ae<=50)}};return document.addEventListener("mousemove",te),()=>{document.removeEventListener("mousemove",te)}},[a,s]),z.useEffect(()=>{const te=ge=>{a&&ge.key==="Escape"?(ge.preventDefault(),ge.stopPropagation()):r&&ge.key===" "&&(ge.preventDefault(),D())};return document.addEventListener("fullscreenchange",pe),document.addEventListener("keydown",te),()=>{document.removeEventListener("fullscreenchange",pe),document.removeEventListener("keydown",te)}});const ue=()=>{D()};return B?y.jsxs(_J,{ref:n,hidden:e,onBlur:()=>i(!1),onFocus:()=>i(!0),tabIndex:0,children:[y.jsx(OJ,{isFullScreen:a,children:y.jsx($n,{size:120,src:(k==null?void 0:k.image_url)||"",type:"clip"})}),y.jsx(PJ,{isFullScreen:a,onClick:ue,children:y.jsx(lJ,{ref:t,controls:!1,height:a?window.screen.height:"200px",onBuffer:()=>f("buffering"),onBufferEnd:()=>f("ready"),onError:Z,onPause:Y,onPlay:W,onProgress:G,onReady:Q,playing:m,url:B||"",volume:A,width:"100%"})}),u==="error"?y.jsx(CJ,{className:"error-wrapper",children:"Error happened, please try later"}):null,u==="ready"?y.jsx(hJ,{duration:v,handleProgressChange:V,handleVolumeChange:X,isFullScreen:a,isPlaying:m,onFullScreenClick:E,playingTime:g,setIsPlaying:D,showToolbar:s&&a}):null,u==="buffering"&&!M?y.jsx(kJ,{isFullScreen:a,children:y.jsx(ql,{color:R.lightGray})}):null]}):null},_J=H(F)` border-bottom: 1px solid rgba(0, 0, 0, 0.25); background: rgba(0, 0, 0, 0.2); position: relative; @@ -1863,7 +1874,7 @@ ${({disabled:e})=>e&&Fd` margin: ${e=>e.isFullScreen?"80px auto":"0"}; width: 100%; cursor: pointer; -`,AJ=z.memo(SJ),jJ=({open:e})=>{const{setSelectedNode:t}=A4(a=>a),n=qt(),{setSidebarOpen:r}=Bt(a=>a),{playingNode:i}=ql(a=>a);return y.jsx(Ei,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:y.jsxs(TJ,{children:[y.jsx(AJ,{hidden:(n==null?void 0:n.ref_id)!==(i==null?void 0:i.ref_id)},i==null?void 0:i.ref_id),y.jsx(MJ,{children:y.jsx(XK,{})}),y.jsx(EJ,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:y.jsx(aP,{})}),y.jsx($J,{onClick:()=>{r(!1)},children:y.jsx(dv,{})})]})})},TJ=H(F)(({theme:e})=>({position:"relative",background:R.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),EJ=H(F)` +`,AJ=z.memo(SJ),jJ=({open:e})=>{const{setSelectedNode:t}=A4(a=>a),n=qt(),{setSidebarOpen:r}=Bt(a=>a),{playingNode:i}=Gl(a=>a);return y.jsx(Ei,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:y.jsxs(TJ,{children:[y.jsx(AJ,{hidden:(n==null?void 0:n.ref_id)!==(i==null?void 0:i.ref_id)},i==null?void 0:i.ref_id),y.jsx(MJ,{children:y.jsx(XK,{})}),y.jsx(EJ,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:y.jsx(aP,{})}),y.jsx($J,{onClick:()=>{r(!1)},children:y.jsx(dv,{})})]})})},TJ=H(F)(({theme:e})=>({position:"relative",background:R.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),EJ=H(F)` font-size: 32px; color: ${R.white}; cursor: pointer; diff --git a/build/assets/index-b15b31d7.js b/build/assets/index-efbb430a.js similarity index 90% rename from build/assets/index-b15b31d7.js rename to build/assets/index-efbb430a.js index b8aac2297..20c7d3f06 100644 --- a/build/assets/index-b15b31d7.js +++ b/build/assets/index-efbb430a.js @@ -1,4 +1,4 @@ -import{r,j as e,bf as F,a8 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as T,bh as N}from"./index-261f9d22.js";import{B as z}from"./index-c59db43d.js";import{j as D,h as M,F as Y,B as P}from"./index-a3132f83.js";import{S as X,A as G,N as H,F as R,b as q}from"./NodeCircleIcon-6bd29553.js";import{A as L,O as V,T as W}from"./index-c4e7eaf1.js";import{C as _}from"./ClipLoader-2f6df72c.js";import"./index-2bf61ac9.js";import"./Stack-4e5cf8f3.js";import"./useSlotProps-987deb9d.js";import"./Popover-548ea313.js";import"./createSvgIcon-17709ccc.js";import"./TextareaAutosize-0799e080.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await F();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const a=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:f,options:p.map(a),selectedValue:t?a(t):null})},J=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:G,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await E(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(w)}catch{a([])}finally{o(!1)}};return O.debounce(s,300)},[p]),b=s=>{const u=s.trim();if(!u){a([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(X,{onClick:()=>t(null),size:"medium",children:e.jsx(D,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||V,selectedValue:c?n(c):null})},K=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},b=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:b})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(H,{})}),e.jsx(ae,{onClick:x,children:e.jsx(R,{})}),e.jsx(ie,{children:e.jsx(q,{})})]})]})]})},Q=l.div` +import{r,j as e,bf as F,a8 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as T,bh as N}from"./index-20ea28f6.js";import{B as z}from"./index-acb0ff6f.js";import{j as D,h as M,F as Y,B as P}from"./index-b0d8b87e.js";import{S as X,A as G,N as H,F as R,b as q}from"./NodeCircleIcon-d4adc804.js";import{A as L,O as V,T as W}from"./index-f54022ed.js";import{C as _}from"./ClipLoader-4ce369de.js";import"./index-6141d876.js";import"./Stack-72055e8f.js";import"./useSlotProps-c721fa06.js";import"./Popover-bf44d96f.js";import"./createSvgIcon-55ea993d.js";import"./TextareaAutosize-0dbbd7d8.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await F();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const a=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:f,options:p.map(a),selectedValue:t?a(t):null})},J=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:G,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await E(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(w)}catch{a([])}finally{o(!1)}};return O.debounce(s,300)},[p]),b=s=>{const u=s.trim();if(!u){a([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(X,{onClick:()=>t(null),size:"medium",children:e.jsx(D,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||V,selectedValue:c?n(c):null})},K=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},b=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:b})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(H,{})}),e.jsx(ae,{onClick:x,children:e.jsx(R,{})}),e.jsx(ie,{children:e.jsx(q,{})})]})]})]})},Q=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-c4e7eaf1.js b/build/assets/index-f54022ed.js similarity index 99% rename from build/assets/index-c4e7eaf1.js rename to build/assets/index-f54022ed.js index afc311316..d37017456 100644 --- a/build/assets/index-c4e7eaf1.js +++ b/build/assets/index-f54022ed.js @@ -1,4 +1,4 @@ -import{r as p,$ as Ot,j as f,by as wt,bz as Lt,_ as a,b as ye,g as Ie,s as w,e as O,u as Pe,a as ae,c as ne,d as $e,f as Re,bA as Mt,bB as Ft,bC as ct,k as dt,bm as ut,i as Xe,bD as To,ad as Tt,ag as Nt,o as At,q as je,F as zt}from"./index-261f9d22.js";import{T as Dt}from"./index-2bf61ac9.js";import{u as fo,a as lo,f as so,i as pt,b as Et,P as No,F as Bt,S as jt}from"./Stack-4e5cf8f3.js";import{a as ft,b as Wt,P as _t,c as Ut}from"./Popover-548ea313.js";import{f as xo,s as Ht,d as io,n as Uo,e as bt,I as gt}from"./index-a3132f83.js";import{i as Ho,o as Fo,u as Vo}from"./useSlotProps-987deb9d.js";import{c as Ao}from"./createSvgIcon-17709ccc.js";import{T as Vt}from"./TextareaAutosize-0799e080.js";let Ko=0;function Kt(e){const[o,t]=p.useState(e),r=e||o;return p.useEffect(()=>{o==null&&(Ko+=1,t(`mui-${Ko}`))},[o]),r}const qo=Ot["useId".toString()];function zo(e){if(qo!==void 0){const o=qo();return e??o}return Kt(e)}const qt=e=>{const o=p.useRef({});return p.useEffect(()=>{o.current=e}),o.current},Gt=qt;function Xt(e){return e==null||Object.keys(e).length===0}function Yt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Xt(s)?t:s):o;return f.jsx(wt,{styles:r})}function Zt({styles:e,themeId:o,defaultTheme:t={}}){const r=Lt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Yt,{styles:s})}const Jt=Ao(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Go(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Qt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:u})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Go(m));const v=m?i.filter($=>{let h=(c||u)($);return t&&(h=h.toLowerCase()),o&&(h=Go(h)),s==="start"?h.indexOf(m)===0:h.indexOf(m)>-1}):i;return typeof r=="number"?v.slice(0,r):v}}function Lo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function tn(e){const{unstable_isActiveElementInListbox:o=on,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:u="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:$=!1,disabled:h,disabledItemsFocusable:x=!1,disableListWrap:E=!1,filterOptions:_=en,filterSelectedOptions:R=!1,freeSolo:k=!1,getOptionDisabled:y,getOptionKey:S,getOptionLabel:z=l=>{var n;return(n=l.label)!=null?n:l},groupBy:T,handleHomeEndKeys:L=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:M=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:F=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,j=zo(q);let ee=z;ee=l=>{const n=z(l);return typeof n!="string"?String(n):n};const fe=p.useRef(!1),We=p.useRef(!0),Z=p.useRef(null),be=p.useRef(null),[Me,Y]=p.useState(null),[H,ze]=p.useState(-1),_e=s?0:-1,te=p.useRef(_e),[P,to]=fo({controlled:ue,default:m,name:u}),[W,xe]=fo({controlled:de,default:"",name:u,state:"inputValue"}),[Fe,ce]=p.useState(!1),Te=p.useCallback((l,n)=>{if(!(M?P.length!(R&&(M?P:[P]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":W,getOptionLabel:ee}):[],he=Gt({filteredOptions:B,value:P,inputValue:W});p.useEffect(()=>{const l=P!==he.value;Fe&&!l||k&&!l||Te(null,P)},[P,Te,Fe,he.value,k]);const Ke=me&&B.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});p.useEffect(()=>{M&&H>P.length-1&&(ze(-1),qe(-1))},[P,M,H,qe]);function I(l,n){if(!be.current||l<0||l>=B.length)return-1;let g=l;for(;;){const C=be.current.querySelector(`[data-option-index="${g}"]`),K=x?!1:!C||C.disabled||C.getAttribute("aria-disabled")==="true";if(C&&C.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%B.length:g=(g-1+B.length)%B.length,g===l)return-1}}const D=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${j}-option-${n}`),se&&se(l,n===-1?null:B[n],g),!be.current)return;const C=be.current.querySelector(`[role="option"].${t}-focused`);C&&(C.classList.remove(`${t}-focused`),C.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(T?1.3:0){if(!N)return;const pe=I((()=>{const ge=B.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:E&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:E||Math.abs(n)>1?ge:0:He})(),g);if(D({index:pe,reason:C,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=W;else{const ge=ee(B[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(W.toLowerCase())===0&&W.length>0&&Z.current.setSelectionRange(W.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const C=n?ee(n):"",K=g?ee(g):"";return C===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==B.length&&he.inputValue===W&&(M?P.length===he.value.length&&he.value.every((n,g)=>ee(P[g])===ee(n)):l(he.value,P))){const n=he.filteredOptions[te.current];if(n&&B.some(C=>ee(C)===ee(n)))return!0}return!1},Ze=p.useCallback(()=>{if(!N||ke())return;const l=M?P[0]:P;if(B.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=B[te.current];if(M&&n&&Lo(P,C=>oe(n,C))!==-1)return;const g=Lo(B,C=>oe(C,l));g===-1?X({diff:"reset"}):D({index:g});return}if(te.current>=B.length-1){D({index:B.length-1});return}D({index:te.current})}},[B.length,M?!1:P,R,X,D,N,W,M]),Po=xo(l=>{Ht(be,l),l&&Ze()});p.useEffect(()=>{Ze()},[Ze]);const Ae=l=>{me||(Ne(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ne(!1),G&&G(l,n))},Ue=(l,n,g,C)=>{if(M){if(P.length===n.length&&P.every((K,pe)=>K===n[pe]))return}else if(P===n)return;J&&J(l,n,g,C),to(n)},no=p.useRef(!1),eo=(l,n,g="selectOption",C="options")=>{let K=g,pe=n;if(M){pe=Array.isArray(P)?P.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):C!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===P.length||n==="previous"&&g===-1)return-1;const C=Me.querySelector(`[data-tag-index="${g}"]`);if(!C||!C.hasAttribute("tabindex")||C.disabled||C.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!M)return;W===""&&Ge(l,"toggleInput");let g=H;H===-1?W===""&&n==="previous"&&(g=P.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===P.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,M?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":N&&L&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":N&&L&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-Xo,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&N){const g=B[te.current],C=y?y(g):!1;if(n.preventDefault(),C)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&W!==""&&Ee===!1&&(M&&n.preventDefault(),eo(n,W,"createOption","freeSolo"));break;case"Escape":N?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(W!==""||M&&P.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(M&&!Se&&W===""&&P.length>0){const g=H===-1?P.length-1:H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break;case"Delete":if(M&&!Se&&W===""&&P.length>0&&H!==-1){const g=H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break}},jo=l=>{ce(!0),F&&!fe.current&&Ae(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&N?eo(l,B[te.current],"blur"):c&&k&&W!==""?eo(l,W,"blur","freeSolo"):i&&Te(l,P),Ge(l,"blur")},Ce=l=>{const n=l.target.value;W!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!v&&!M&&Ue(l,null,"clear"):Ae(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&D({event:l,index:n,reason:"mouse"})},Be=l=>{D({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,B[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=P.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:P[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ae(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==j&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),Le&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),We.current=!1)},co=l=>{!h&&(W===""||!me)&&Oo(l)};let oo=k&&W.length>0;oo=oo||(M?P.length>0:P!==null);let ao=B;return T&&(ao=B.reduce((l,n,g)=>{const C=T(n);return l.length>0&&l[l.length-1].group===C?l[l.length-1].options.push(n):l.push({key:g,index:g,group:C,options:[n]}),l},[])),h&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${j}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:W,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":N?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${j}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const C=(M?P:[P]).some(pe=>pe!=null&&oe(n,pe)),K=y?y(n):!1;return{key:(g=S==null?void 0:S(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${j}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":C}},id:j,inputValue:W,value:P,dirty:oo,expanded:N&&Me,popupOpen:N,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:Y,focusedTag:H,groupedOptions:ao}}function nn(e){return ye("MuiListSubheader",e)}Ie("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rn=["className","color","component","disableGutters","disableSticky","inset"],an=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${O(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return $e(d,nn,o)},ln=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${O(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),mt=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:u=!1}=r,m=ae(r,rn),v=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:u}),$=an(v);return f.jsx(ln,a({as:d,className:ne($.root,s),ref:t,ownerState:v},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=Ao(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function dn(e){return ye("MuiChip",e)}const un=Ie("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=un,pn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],fn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,u={root:["root",b,t&&"disabled",`size${O(r)}`,`color${O(s)}`,i&&"clickable",i&&`clickableColor${O(s)}`,d&&"deletable",d&&`deletableColor${O(s)}`,`${b}${O(s)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(s)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(c)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(s)}`,`deleteIcon${O(b)}Color${O(s)}`]};return $e(u,dn,o)},bn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${O(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${O(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${O(i)}`]},{[`& .${V.icon}`]:o[`iconColor${O(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${O(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(b)}Color${O(r)}`]},o.root,o[`size${O(i)}`],o[`color${O(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${O(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${O(r)}`],o[b],o[`${b}${O(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),gn=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${O(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Yo(e){return e.key==="Backspace"||e.key==="Delete"}const mn=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:u,disabled:m=!1,icon:v,label:$,onClick:h,onDelete:x,onKeyDown:E,onKeyUp:_,size:R="medium",variant:k="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,z=ae(r,pn),T=p.useRef(null),L=io(T,t),q=F=>{F.stopPropagation(),x&&x(F)},le=F=>{F.currentTarget===F.target&&Yo(F)&&F.preventDefault(),E&&E(F)},de=F=>{F.currentTarget===F.target&&(x&&Yo(F)?x(F):F.key==="Escape"&&T.current&&T.current.blur()),_&&_(F)},oe=d!==!1&&h?!0:d,M=oe||x?Uo:b||"div",J=a({},r,{component:M,disabled:m,size:R,color:i,iconColor:p.isValidElement(v)&&v.props.color||i,onDelete:!!x,clickable:oe,variant:k}),G=fn(J),se=M===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},x&&{disableRipple:!0}):{};let Q=null;x&&(Q=u&&p.isValidElement(u)?p.cloneElement(u,{className:ne(u.props.className,G.deleteIcon),onClick:q}):f.jsx(cn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&p.isValidElement(s)&&(re=p.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return v&&p.isValidElement(v)&&(U=p.cloneElement(v,{className:ne(G.icon,v.props.className)})),f.jsxs(bn,a({as:M,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:h,onKeyDown:le,onKeyUp:de,ref:L,tabIndex:S&&m?-1:y,ownerState:J},se,z,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Mt,themeId:Ft}))}function xn(e){return ye("MuiInputBase",e)}const Cn=Ie("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=Cn,yn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${O(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},In=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:u,multiline:m,readOnly:v,size:$,startAdornment:h,type:x}=e,E={root:["root",`color${O(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${O($)}`,m&&"multiline",h&&"adornedStart",c&&"adornedEnd",u&&"hiddenLabel",v&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return $e(E,xn,o)},Io=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),$o=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),$n=f.jsx(vn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sn=p.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:u={},componentsProps:m={},defaultValue:v,disabled:$,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:E=!1,id:_,inputComponent:R="input",inputProps:k={},inputRef:y,maxRows:S,minRows:z,multiline:T=!1,name:L,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:M,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:F={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),j=k.value!=null?k.value:Le,{current:ee}=p.useRef(j!=null),fe=p.useRef(),We=p.useCallback(N=>{},[]),Z=io(fe,y,k.ref,We),[be,Me]=p.useState(!1),Y=lo(),H=so({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,p.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=p.useCallback(N=>{pt(N)?ze&&ze():_e&&_e()},[ze,_e]);bt(()=>{ee&&te({value:j})},[j,te,ee]);const P=N=>{if(H.disabled){N.stopPropagation();return}oe&&oe(N),k.onFocus&&k.onFocus(N),Y&&Y.onFocus?Y.onFocus(N):Me(!0)},to=N=>{q&&q(N),k.onBlur&&k.onBlur(N),Y&&Y.onBlur?Y.onBlur(N):Me(!1)},W=(N,...B)=>{if(!ee){const he=N.target||fe.current;if(he==null)throw new Error(ct(1));te({value:he.value})}k.onChange&&k.onChange(N,...B),le&&le(N,...B)};p.useEffect(()=>{te(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),de&&de(N)};let Fe=R,ce=k;T&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:S,minRows:z},ce),Fe=Vt);const Te=N=>{te(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};p.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:x,error:H.error,focused:H.focused,formControl:Y,fullWidth:E,hiddenLabel:H.hiddenLabel,multiline:T,size:H.size,startAdornment:ie,type:Se}),Ne=In(me),Ye=F.root||u.Root||Io,De=U.root||m.root||{},Ee=F.input||u.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(p.Fragment,{children:[!h&&$n,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ne.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Et.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:v,disabled:H.disabled,id:_,onAnimationStart:Te,name:L,placeholder:G,readOnly:se,required:H.required,rows:re,value:j,onKeyDown:M,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ne.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:W,onFocus:P}))}),x,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Sn;function Pn(e){return ye("MuiInput",e)}const kn=a({},Oe,Ie("MuiInput",["root","underline","input"])),Qe=kn;function Rn(e){return ye("MuiOutlinedInput",e)}const On=a({},Oe,Ie("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=On;function wn(e){return ye("MuiFilledInput",e)}const Ln=a({},Oe,Ie("MuiFilledInput",["root","underline","input"])),we=Ln,ht=Ao(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Mn(e){return ye("MuiAutocomplete",e)}const Fn=Ie("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),A=Fn;var Zo,Jo;const Tn=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Nn=["ref"],An=["key"],zn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:u,size:m}=e,v={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${O(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(v,Mn,o)},Dn=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${A.tag}`]:o.tag},{[`& .${A.tag}`]:o[`tagSize${O(i)}`]},{[`& .${A.inputRoot}`]:o.inputRoot},{[`& .${A.input}`]:o.input},{[`& .${A.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${A.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${A.inputRoot}`]:{flexWrap:"wrap",[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4},[`& .${A.input}`]:{width:0,minWidth:30}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${we.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${we.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${we.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),En=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Bn=w(gt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(gt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Wn=w(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${A.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),_n=w(ft,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Un=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Hn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Vn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${A.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${A.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${A.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${A.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${A.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Kn=w(sn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qn=w("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${A.option}`]:{paddingLeft:24}}),Gn=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:v=!1,ChipProps:$,className:h,clearIcon:x=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:E=!i.freeSolo,clearOnEscape:_=!1,clearText:R="Clear",closeText:k="Close",componentsProps:y={},defaultValue:S=i.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:T=!1,disabled:L=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:M="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:F=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:j="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=ft,PopperComponent:Me=No,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:P,selectOnFocus:to=!i.freeSolo,size:W="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ne,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:N,value:B,dirty:he,expanded:Ke,id:qe,popupOpen:I,focused:D,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ae}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!z&&!L&&he&&!H,Ue=(!J||M===!0)&&M!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Nn),ko=io(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:D,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:I,size:W}),ve=zn(Ce);let Be;if(ee&&B.length>0){const n=g=>a({className:ve.tag,disabled:L},De(g));P?Be=P(B,n,Ce):Be=B.map((g,C)=>f.jsx(hn,a({label:ro(g),size:W},n({index:C}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!D&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(Kn,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(qn,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:C}=n,K=ae(n,An);return f.jsx("li",a({},K,{children:ro(g)}),C)}),vo=(n,g)=>{const C=N({option:n,index:g});return wo(a({},C,{className:ve.option}),n,{selected:C["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:y.clearIndicator,oo=(s=xe.paper)!=null?s:y.paper,ao=(c=xe.popper)!=null?c:y.popper,l=(d=xe.popupIndicator)!=null?d:y.popupIndicator;return f.jsxs(p.Fragment,{children:[f.jsx(Dn,a({ref:t,className:ne(ve.root,h),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:L,fullWidth:!0,size:W==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ze,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(En,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Bn,a({},Ye(),{"aria-label":R,title:R,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:x})):null,Ue?f.jsx(jn,a({},Ne(),{disabled:L,"aria-label":I?k:Z,title:I?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:L,readOnly:H},Te())})})),ke?f.jsx(Wn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:I},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(_n,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ae.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:j}):null,Ae.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ae.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ae.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((C,K)=>vo(C,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Xn=Gn;function Yn(e){return ye("MuiCircularProgress",e)}Ie("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Zn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Qo,et,ot,tt;const Je=44,Jn=dt(Qo||(Qo=So` +import{r as p,$ as Ot,j as f,by as wt,bz as Lt,_ as a,b as ye,g as Ie,s as w,e as O,u as Pe,a as ae,c as ne,d as $e,f as Re,bA as Mt,bB as Ft,bC as ct,k as dt,bm as ut,i as Xe,bD as To,ad as Tt,ag as Nt,o as At,q as je,F as zt}from"./index-20ea28f6.js";import{T as Dt}from"./index-6141d876.js";import{u as fo,a as lo,f as so,i as pt,b as Et,P as No,F as Bt,S as jt}from"./Stack-72055e8f.js";import{a as ft,b as Wt,P as _t,c as Ut}from"./Popover-bf44d96f.js";import{f as xo,s as Ht,d as io,n as Uo,e as bt,I as gt}from"./index-b0d8b87e.js";import{i as Ho,o as Fo,u as Vo}from"./useSlotProps-c721fa06.js";import{c as Ao}from"./createSvgIcon-55ea993d.js";import{T as Vt}from"./TextareaAutosize-0dbbd7d8.js";let Ko=0;function Kt(e){const[o,t]=p.useState(e),r=e||o;return p.useEffect(()=>{o==null&&(Ko+=1,t(`mui-${Ko}`))},[o]),r}const qo=Ot["useId".toString()];function zo(e){if(qo!==void 0){const o=qo();return e??o}return Kt(e)}const qt=e=>{const o=p.useRef({});return p.useEffect(()=>{o.current=e}),o.current},Gt=qt;function Xt(e){return e==null||Object.keys(e).length===0}function Yt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Xt(s)?t:s):o;return f.jsx(wt,{styles:r})}function Zt({styles:e,themeId:o,defaultTheme:t={}}){const r=Lt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Yt,{styles:s})}const Jt=Ao(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Go(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Qt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:u})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Go(m));const v=m?i.filter($=>{let h=(c||u)($);return t&&(h=h.toLowerCase()),o&&(h=Go(h)),s==="start"?h.indexOf(m)===0:h.indexOf(m)>-1}):i;return typeof r=="number"?v.slice(0,r):v}}function Lo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function tn(e){const{unstable_isActiveElementInListbox:o=on,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:u="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:$=!1,disabled:h,disabledItemsFocusable:x=!1,disableListWrap:E=!1,filterOptions:_=en,filterSelectedOptions:R=!1,freeSolo:k=!1,getOptionDisabled:y,getOptionKey:S,getOptionLabel:z=l=>{var n;return(n=l.label)!=null?n:l},groupBy:T,handleHomeEndKeys:L=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:M=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:F=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,j=zo(q);let ee=z;ee=l=>{const n=z(l);return typeof n!="string"?String(n):n};const fe=p.useRef(!1),We=p.useRef(!0),Z=p.useRef(null),be=p.useRef(null),[Me,Y]=p.useState(null),[H,ze]=p.useState(-1),_e=s?0:-1,te=p.useRef(_e),[P,to]=fo({controlled:ue,default:m,name:u}),[W,xe]=fo({controlled:de,default:"",name:u,state:"inputValue"}),[Fe,ce]=p.useState(!1),Te=p.useCallback((l,n)=>{if(!(M?P.length!(R&&(M?P:[P]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":W,getOptionLabel:ee}):[],he=Gt({filteredOptions:B,value:P,inputValue:W});p.useEffect(()=>{const l=P!==he.value;Fe&&!l||k&&!l||Te(null,P)},[P,Te,Fe,he.value,k]);const Ke=me&&B.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});p.useEffect(()=>{M&&H>P.length-1&&(ze(-1),qe(-1))},[P,M,H,qe]);function I(l,n){if(!be.current||l<0||l>=B.length)return-1;let g=l;for(;;){const C=be.current.querySelector(`[data-option-index="${g}"]`),K=x?!1:!C||C.disabled||C.getAttribute("aria-disabled")==="true";if(C&&C.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%B.length:g=(g-1+B.length)%B.length,g===l)return-1}}const D=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${j}-option-${n}`),se&&se(l,n===-1?null:B[n],g),!be.current)return;const C=be.current.querySelector(`[role="option"].${t}-focused`);C&&(C.classList.remove(`${t}-focused`),C.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(T?1.3:0){if(!N)return;const pe=I((()=>{const ge=B.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:E&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:E||Math.abs(n)>1?ge:0:He})(),g);if(D({index:pe,reason:C,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=W;else{const ge=ee(B[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(W.toLowerCase())===0&&W.length>0&&Z.current.setSelectionRange(W.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const C=n?ee(n):"",K=g?ee(g):"";return C===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==B.length&&he.inputValue===W&&(M?P.length===he.value.length&&he.value.every((n,g)=>ee(P[g])===ee(n)):l(he.value,P))){const n=he.filteredOptions[te.current];if(n&&B.some(C=>ee(C)===ee(n)))return!0}return!1},Ze=p.useCallback(()=>{if(!N||ke())return;const l=M?P[0]:P;if(B.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=B[te.current];if(M&&n&&Lo(P,C=>oe(n,C))!==-1)return;const g=Lo(B,C=>oe(C,l));g===-1?X({diff:"reset"}):D({index:g});return}if(te.current>=B.length-1){D({index:B.length-1});return}D({index:te.current})}},[B.length,M?!1:P,R,X,D,N,W,M]),Po=xo(l=>{Ht(be,l),l&&Ze()});p.useEffect(()=>{Ze()},[Ze]);const Ae=l=>{me||(Ne(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ne(!1),G&&G(l,n))},Ue=(l,n,g,C)=>{if(M){if(P.length===n.length&&P.every((K,pe)=>K===n[pe]))return}else if(P===n)return;J&&J(l,n,g,C),to(n)},no=p.useRef(!1),eo=(l,n,g="selectOption",C="options")=>{let K=g,pe=n;if(M){pe=Array.isArray(P)?P.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):C!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===P.length||n==="previous"&&g===-1)return-1;const C=Me.querySelector(`[data-tag-index="${g}"]`);if(!C||!C.hasAttribute("tabindex")||C.disabled||C.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!M)return;W===""&&Ge(l,"toggleInput");let g=H;H===-1?W===""&&n==="previous"&&(g=P.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===P.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,M?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":N&&L&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":N&&L&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-Xo,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&N){const g=B[te.current],C=y?y(g):!1;if(n.preventDefault(),C)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&W!==""&&Ee===!1&&(M&&n.preventDefault(),eo(n,W,"createOption","freeSolo"));break;case"Escape":N?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(W!==""||M&&P.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(M&&!Se&&W===""&&P.length>0){const g=H===-1?P.length-1:H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break;case"Delete":if(M&&!Se&&W===""&&P.length>0&&H!==-1){const g=H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break}},jo=l=>{ce(!0),F&&!fe.current&&Ae(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&N?eo(l,B[te.current],"blur"):c&&k&&W!==""?eo(l,W,"blur","freeSolo"):i&&Te(l,P),Ge(l,"blur")},Ce=l=>{const n=l.target.value;W!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!v&&!M&&Ue(l,null,"clear"):Ae(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&D({event:l,index:n,reason:"mouse"})},Be=l=>{D({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,B[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=P.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:P[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ae(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==j&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),Le&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),We.current=!1)},co=l=>{!h&&(W===""||!me)&&Oo(l)};let oo=k&&W.length>0;oo=oo||(M?P.length>0:P!==null);let ao=B;return T&&(ao=B.reduce((l,n,g)=>{const C=T(n);return l.length>0&&l[l.length-1].group===C?l[l.length-1].options.push(n):l.push({key:g,index:g,group:C,options:[n]}),l},[])),h&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${j}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:W,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":N?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${j}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const C=(M?P:[P]).some(pe=>pe!=null&&oe(n,pe)),K=y?y(n):!1;return{key:(g=S==null?void 0:S(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${j}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":C}},id:j,inputValue:W,value:P,dirty:oo,expanded:N&&Me,popupOpen:N,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:Y,focusedTag:H,groupedOptions:ao}}function nn(e){return ye("MuiListSubheader",e)}Ie("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rn=["className","color","component","disableGutters","disableSticky","inset"],an=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${O(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return $e(d,nn,o)},ln=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${O(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),mt=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:u=!1}=r,m=ae(r,rn),v=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:u}),$=an(v);return f.jsx(ln,a({as:d,className:ne($.root,s),ref:t,ownerState:v},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=Ao(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function dn(e){return ye("MuiChip",e)}const un=Ie("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=un,pn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],fn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,u={root:["root",b,t&&"disabled",`size${O(r)}`,`color${O(s)}`,i&&"clickable",i&&`clickableColor${O(s)}`,d&&"deletable",d&&`deletableColor${O(s)}`,`${b}${O(s)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(s)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(c)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(s)}`,`deleteIcon${O(b)}Color${O(s)}`]};return $e(u,dn,o)},bn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${O(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${O(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${O(i)}`]},{[`& .${V.icon}`]:o[`iconColor${O(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${O(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(b)}Color${O(r)}`]},o.root,o[`size${O(i)}`],o[`color${O(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${O(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${O(r)}`],o[b],o[`${b}${O(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),gn=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${O(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Yo(e){return e.key==="Backspace"||e.key==="Delete"}const mn=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:u,disabled:m=!1,icon:v,label:$,onClick:h,onDelete:x,onKeyDown:E,onKeyUp:_,size:R="medium",variant:k="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,z=ae(r,pn),T=p.useRef(null),L=io(T,t),q=F=>{F.stopPropagation(),x&&x(F)},le=F=>{F.currentTarget===F.target&&Yo(F)&&F.preventDefault(),E&&E(F)},de=F=>{F.currentTarget===F.target&&(x&&Yo(F)?x(F):F.key==="Escape"&&T.current&&T.current.blur()),_&&_(F)},oe=d!==!1&&h?!0:d,M=oe||x?Uo:b||"div",J=a({},r,{component:M,disabled:m,size:R,color:i,iconColor:p.isValidElement(v)&&v.props.color||i,onDelete:!!x,clickable:oe,variant:k}),G=fn(J),se=M===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},x&&{disableRipple:!0}):{};let Q=null;x&&(Q=u&&p.isValidElement(u)?p.cloneElement(u,{className:ne(u.props.className,G.deleteIcon),onClick:q}):f.jsx(cn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&p.isValidElement(s)&&(re=p.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return v&&p.isValidElement(v)&&(U=p.cloneElement(v,{className:ne(G.icon,v.props.className)})),f.jsxs(bn,a({as:M,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:h,onKeyDown:le,onKeyUp:de,ref:L,tabIndex:S&&m?-1:y,ownerState:J},se,z,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Mt,themeId:Ft}))}function xn(e){return ye("MuiInputBase",e)}const Cn=Ie("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=Cn,yn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${O(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},In=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:u,multiline:m,readOnly:v,size:$,startAdornment:h,type:x}=e,E={root:["root",`color${O(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${O($)}`,m&&"multiline",h&&"adornedStart",c&&"adornedEnd",u&&"hiddenLabel",v&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return $e(E,xn,o)},Io=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),$o=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),$n=f.jsx(vn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sn=p.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:u={},componentsProps:m={},defaultValue:v,disabled:$,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:E=!1,id:_,inputComponent:R="input",inputProps:k={},inputRef:y,maxRows:S,minRows:z,multiline:T=!1,name:L,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:M,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:F={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),j=k.value!=null?k.value:Le,{current:ee}=p.useRef(j!=null),fe=p.useRef(),We=p.useCallback(N=>{},[]),Z=io(fe,y,k.ref,We),[be,Me]=p.useState(!1),Y=lo(),H=so({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,p.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=p.useCallback(N=>{pt(N)?ze&&ze():_e&&_e()},[ze,_e]);bt(()=>{ee&&te({value:j})},[j,te,ee]);const P=N=>{if(H.disabled){N.stopPropagation();return}oe&&oe(N),k.onFocus&&k.onFocus(N),Y&&Y.onFocus?Y.onFocus(N):Me(!0)},to=N=>{q&&q(N),k.onBlur&&k.onBlur(N),Y&&Y.onBlur?Y.onBlur(N):Me(!1)},W=(N,...B)=>{if(!ee){const he=N.target||fe.current;if(he==null)throw new Error(ct(1));te({value:he.value})}k.onChange&&k.onChange(N,...B),le&&le(N,...B)};p.useEffect(()=>{te(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),de&&de(N)};let Fe=R,ce=k;T&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:S,minRows:z},ce),Fe=Vt);const Te=N=>{te(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};p.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:x,error:H.error,focused:H.focused,formControl:Y,fullWidth:E,hiddenLabel:H.hiddenLabel,multiline:T,size:H.size,startAdornment:ie,type:Se}),Ne=In(me),Ye=F.root||u.Root||Io,De=U.root||m.root||{},Ee=F.input||u.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(p.Fragment,{children:[!h&&$n,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ne.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Et.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:v,disabled:H.disabled,id:_,onAnimationStart:Te,name:L,placeholder:G,readOnly:se,required:H.required,rows:re,value:j,onKeyDown:M,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ne.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:W,onFocus:P}))}),x,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Sn;function Pn(e){return ye("MuiInput",e)}const kn=a({},Oe,Ie("MuiInput",["root","underline","input"])),Qe=kn;function Rn(e){return ye("MuiOutlinedInput",e)}const On=a({},Oe,Ie("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=On;function wn(e){return ye("MuiFilledInput",e)}const Ln=a({},Oe,Ie("MuiFilledInput",["root","underline","input"])),we=Ln,ht=Ao(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Mn(e){return ye("MuiAutocomplete",e)}const Fn=Ie("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),A=Fn;var Zo,Jo;const Tn=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Nn=["ref"],An=["key"],zn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:u,size:m}=e,v={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${O(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(v,Mn,o)},Dn=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${A.tag}`]:o.tag},{[`& .${A.tag}`]:o[`tagSize${O(i)}`]},{[`& .${A.inputRoot}`]:o.inputRoot},{[`& .${A.input}`]:o.input},{[`& .${A.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${A.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${A.inputRoot}`]:{flexWrap:"wrap",[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4},[`& .${A.input}`]:{width:0,minWidth:30}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${we.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${we.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${we.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),En=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Bn=w(gt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(gt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Wn=w(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${A.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),_n=w(ft,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Un=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Hn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Vn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${A.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${A.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${A.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${A.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${A.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Kn=w(sn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qn=w("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${A.option}`]:{paddingLeft:24}}),Gn=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:v=!1,ChipProps:$,className:h,clearIcon:x=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:E=!i.freeSolo,clearOnEscape:_=!1,clearText:R="Clear",closeText:k="Close",componentsProps:y={},defaultValue:S=i.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:T=!1,disabled:L=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:M="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:F=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:j="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=ft,PopperComponent:Me=No,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:P,selectOnFocus:to=!i.freeSolo,size:W="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ne,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:N,value:B,dirty:he,expanded:Ke,id:qe,popupOpen:I,focused:D,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ae}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!z&&!L&&he&&!H,Ue=(!J||M===!0)&&M!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Nn),ko=io(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:D,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:I,size:W}),ve=zn(Ce);let Be;if(ee&&B.length>0){const n=g=>a({className:ve.tag,disabled:L},De(g));P?Be=P(B,n,Ce):Be=B.map((g,C)=>f.jsx(hn,a({label:ro(g),size:W},n({index:C}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!D&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(Kn,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(qn,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:C}=n,K=ae(n,An);return f.jsx("li",a({},K,{children:ro(g)}),C)}),vo=(n,g)=>{const C=N({option:n,index:g});return wo(a({},C,{className:ve.option}),n,{selected:C["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:y.clearIndicator,oo=(s=xe.paper)!=null?s:y.paper,ao=(c=xe.popper)!=null?c:y.popper,l=(d=xe.popupIndicator)!=null?d:y.popupIndicator;return f.jsxs(p.Fragment,{children:[f.jsx(Dn,a({ref:t,className:ne(ve.root,h),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:L,fullWidth:!0,size:W==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ze,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(En,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Bn,a({},Ye(),{"aria-label":R,title:R,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:x})):null,Ue?f.jsx(jn,a({},Ne(),{disabled:L,"aria-label":I?k:Z,title:I?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:L,readOnly:H},Te())})})),ke?f.jsx(Wn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:I},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(_n,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ae.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:j}):null,Ae.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ae.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ae.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((C,K)=>vo(C,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Xn=Gn;function Yn(e){return ye("MuiCircularProgress",e)}Ie("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Zn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Qo,et,ot,tt;const Je=44,Jn=dt(Qo||(Qo=So` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-3c085423.js b/build/assets/index-f8d502c2.js similarity index 99% rename from build/assets/index-3c085423.js rename to build/assets/index-f8d502c2.js index 59f942c73..94a32eea5 100644 --- a/build/assets/index-3c085423.js +++ b/build/assets/index-f8d502c2.js @@ -1,4 +1,4 @@ -import{r as P,n as Cc,_ as yi,bt as _c,bu as ed,j as L,R as td,p as nd,q as Ki,bv as rd,bw as id,bx as od}from"./index-261f9d22.js";import{a5 as fl,u as Vl,a6 as ad,U as ld,z as Ec,t as sd,C as io,a7 as ud,a2 as Zl,P as Ql,q as da,a8 as dl,a9 as cd,aa as fd,ab as dd,y as hd,ac as pd,ad as vd,ae as md,V as st,a as Nr,af as gd,b as yd,k as Xl,X as pa,ag as Tc,K as Ul,ah as Rl,ai as pi,aj as xd,Y as Yl,S as wd,ak as Fl,al as Fu,p as Sd,am as Cd,r as oo,x as xi,an as Mc,O as kc,s as _d,o as Ed,ao as Td,ap as Md,l as kd,L as Au,j as Pd,aq as Ld,ar as Ud,as as Rd,at as Jl,au as Du,av as Ir,aw as Fd,ax as hl}from"./three.module-2ce81f73.js";import{r as _t,b as Ad}from"./index-a3132f83.js";var Pc={exports:{}},Gr={};/** +import{r as P,n as Cc,_ as yi,bt as _c,bu as ed,j as L,R as td,p as nd,q as Ki,bv as rd,bw as id,bx as od}from"./index-20ea28f6.js";import{a5 as fl,u as Vl,a6 as ad,U as ld,z as Ec,t as sd,C as io,a7 as ud,a2 as Zl,P as Ql,q as da,a8 as dl,a9 as cd,aa as fd,ab as dd,y as hd,ac as pd,ad as vd,ae as md,V as st,a as Nr,af as gd,b as yd,k as Xl,X as pa,ag as Tc,K as Ul,ah as Rl,ai as pi,aj as xd,Y as Yl,S as wd,ak as Fl,al as Fu,p as Sd,am as Cd,r as oo,x as xi,an as Mc,O as kc,s as _d,o as Ed,ao as Td,ap as Md,l as kd,L as Au,j as Pd,aq as Ld,ar as Ud,as as Rd,at as Jl,au as Du,av as Ir,aw as Fd,ax as hl}from"./three.module-2ce81f73.js";import{r as _t,b as Ad}from"./index-b0d8b87e.js";var Pc={exports:{}},Gr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index.esm-0d26a2bd.js b/build/assets/index.esm-f5056f82.js similarity index 98% rename from build/assets/index.esm-0d26a2bd.js rename to build/assets/index.esm-f5056f82.js index 487a686dc..8cc243f50 100644 --- a/build/assets/index.esm-0d26a2bd.js +++ b/build/assets/index.esm-f5056f82.js @@ -1 +1 @@ -import{R as c}from"./index-261f9d22.js";var d={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},g=c.createContext&&c.createContext(d),i=globalThis&&globalThis.__assign||function(){return i=Object.assign||function(t){for(var e,a=1,r=arguments.length;a{e.apply(this,s)};clearTimeout(t),t=setTimeout(i,o)}return n.clear=()=>{clearTimeout(t)},n}function x(e){return e&&e.ownerDocument||document}function T(e){return x(e).defaultView||window}function N(e){return typeof e=="string"}function k(e,o,t){return e===void 0||N(e)?o:r({},o,{ownerState:r({},o.ownerState,t)})}function E(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function H(e,o,t){return typeof e=="function"?e(o,t):e}function P(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function R(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:s,className:i}=e;if(!o){const v=g(t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),y=r({},t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),p=r({},t,s,n);return v.length>0&&(p.className=v),Object.keys(y).length>0&&(p.style=y),{props:p,internalRef:void 0}}const c=E(r({},s,n)),a=S(n),d=S(s),l=o(c),u=g(l==null?void 0:l.className,t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),f=r({},l==null?void 0:l.style,t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),m=r({},l,t,d,a);return u.length>0&&(m.className=u),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:l.ref}}const C=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function W(e){var o;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:i=!1}=e,c=h(e,C),a=i?{}:H(n,s),{props:d,internalRef:l}=R(r({},c,{externalSlotProps:a})),u=w(l,a==null?void 0:a.ref,(o=e.additionalProps)==null?void 0:o.ref);return k(t,r({},d,{ref:u}),s)}export{T as a,A as d,E as e,N as i,x as o,W as u}; +import{_ as r,a as h}from"./index-20ea28f6.js";import{d as w}from"./index-b0d8b87e.js";function A(e,o=166){let t;function n(...s){const i=()=>{e.apply(this,s)};clearTimeout(t),t=setTimeout(i,o)}return n.clear=()=>{clearTimeout(t)},n}function x(e){return e&&e.ownerDocument||document}function T(e){return x(e).defaultView||window}function N(e){return typeof e=="string"}function k(e,o,t){return e===void 0||N(e)?o:r({},o,{ownerState:r({},o.ownerState,t)})}function E(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function H(e,o,t){return typeof e=="function"?e(o,t):e}function P(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function R(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:s,className:i}=e;if(!o){const v=g(t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),y=r({},t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),p=r({},t,s,n);return v.length>0&&(p.className=v),Object.keys(y).length>0&&(p.style=y),{props:p,internalRef:void 0}}const c=E(r({},s,n)),a=S(n),d=S(s),l=o(c),u=g(l==null?void 0:l.className,t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),f=r({},l==null?void 0:l.style,t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),m=r({},l,t,d,a);return u.length>0&&(m.className=u),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:l.ref}}const C=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function W(e){var o;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:i=!1}=e,c=h(e,C),a=i?{}:H(n,s),{props:d,internalRef:l}=R(r({},c,{externalSlotProps:a})),u=w(l,a==null?void 0:a.ref,(o=e.additionalProps)==null?void 0:o.ref);return k(t,r({},d,{ref:u}),s)}export{T as a,A as d,E as e,N as i,x as o,W as u}; diff --git a/build/index.html b/build/index.html index 780bcf229..8ec216642 100644 --- a/build/index.html +++ b/build/index.html @@ -22,7 +22,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Second Brain - +