From 7850207c16d60a8995b51c0b9896a81dc8641938 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Mon, 28 Oct 2024 17:29:47 +0000 Subject: [PATCH] ci: automatic build fixes --- .../{ClipLoader-debba421.js => ClipLoader-e6af0d5e.js} | 2 +- .../{DailyMotion-c9949ba0.js => DailyMotion-76c9f037.js} | 2 +- .../assets/{Facebook-456d4b25.js => Facebook-5b0d1d1a.js} | 2 +- .../{FilePlayer-e358d3cf.js => FilePlayer-4eacc296.js} | 2 +- build/assets/{Kaltura-5e92e9ff.js => Kaltura-f2d6bd6c.js} | 2 +- .../assets/{Mixcloud-9b4678f3.js => Mixcloud-a9b790a3.js} | 2 +- build/assets/{Preview-dacf7e68.js => Preview-a53c2dd6.js} | 2 +- .../assets/{Skeleton-f681e38b.js => Skeleton-7010430a.js} | 2 +- .../{SoundCloud-33ac1103.js => SoundCloud-89c1876a.js} | 2 +- build/assets/{Stack-2bf11152.js => Stack-c617158d.js} | 2 +- .../{Streamable-21e7b858.js => Streamable-9b885514.js} | 2 +- build/assets/{Tabs-c02cacac.js => Tabs-573fdd2d.js} | 2 +- ...aAutosize-eac164b5.js => TextareaAutosize-1decf155.js} | 2 +- build/assets/{Twitch-e31995e6.js => Twitch-c2e0f24a.js} | 2 +- .../{Typography-9047da8c.js => Typography-db52e3f1.js} | 2 +- build/assets/{Vidyard-2b44b0c8.js => Vidyard-f06ca014.js} | 2 +- build/assets/{Vimeo-b5693b6d.js => Vimeo-579e66ca.js} | 2 +- build/assets/{Wistia-2a47e482.js => Wistia-56e52464.js} | 2 +- build/assets/{YouTube-6216f0b1.js => YouTube-2eaf476a.js} | 2 +- .../{constants-41186e32.js => constants-f306a0b2.js} | 2 +- ...reateSvgIcon-e086f0de.js => createSvgIcon-ea6ddcd6.js} | 2 +- build/assets/{index-4296aca2.js => index-0f4cb5e5.js} | 2 +- build/assets/{index-09591f91.js => index-194d755a.js} | 4 ++-- build/assets/{index-ceabf099.js => index-1b87e39a.js} | 2 +- build/assets/{index-62edf322.js => index-2324aa9c.js} | 2 +- build/assets/{index-344bba82.js => index-284cd839.js} | 2 +- build/assets/{index-043dcdcc.js => index-2a51efa1.js} | 8 ++++---- build/assets/{index-6d42632e.js => index-32f0aa69.js} | 2 +- build/assets/{index-44e7b49e.js => index-345de899.js} | 2 +- build/assets/{index-53aef74d.js => index-3cb9349b.js} | 2 +- build/assets/{index-b0ee3089.js => index-411c1361.js} | 2 +- build/assets/{index-49d9ff41.js => index-6a2d3502.js} | 2 +- build/assets/{index-049b9db3.js => index-6d2fa275.js} | 2 +- build/assets/{index-099d7f02.js => index-81e0c1dc.js} | 2 +- build/assets/{index-e458cdef.js => index-a82d47f9.js} | 2 +- build/assets/{index-62ddae12.js => index-a8a8b0eb.js} | 2 +- build/assets/{index-d8dc64a7.js => index-a9d05fc0.js} | 2 +- build/assets/{index-65e72f7b.js => index-a9d11598.js} | 2 +- build/assets/{index-93aeefd6.js => index-ae904d72.js} | 2 +- build/assets/{index-78113264.js => index-c0705125.js} | 2 +- build/assets/{index-408d2ad5.js => index-c582b5e4.js} | 2 +- build/assets/{index-1f52b1ca.js => index-cfff5f20.js} | 2 +- build/assets/{index-71105b91.js => index-e27c1d85.js} | 2 +- build/assets/{index-4e7b4086.js => index-e8b9ad93.js} | 2 +- build/assets/{index-8d05d202.js => index-ffdb9bac.js} | 8 ++++---- .../{index.esm-2eb55070.js => index.esm-55abcd0d.js} | 2 +- build/assets/{map-41080909.js => map-470fc2ef.js} | 2 +- build/index.html | 2 +- 48 files changed, 55 insertions(+), 55 deletions(-) rename build/assets/{ClipLoader-debba421.js => ClipLoader-e6af0d5e.js} (97%) rename build/assets/{DailyMotion-c9949ba0.js => DailyMotion-76c9f037.js} (95%) rename build/assets/{Facebook-456d4b25.js => Facebook-5b0d1d1a.js} (96%) rename build/assets/{FilePlayer-e358d3cf.js => FilePlayer-4eacc296.js} (98%) rename build/assets/{Kaltura-5e92e9ff.js => Kaltura-f2d6bd6c.js} (95%) rename build/assets/{Mixcloud-9b4678f3.js => Mixcloud-a9b790a3.js} (95%) rename build/assets/{Preview-dacf7e68.js => Preview-a53c2dd6.js} (97%) rename build/assets/{Skeleton-f681e38b.js => Skeleton-7010430a.js} (97%) rename build/assets/{SoundCloud-33ac1103.js => SoundCloud-89c1876a.js} (95%) rename build/assets/{Stack-2bf11152.js => Stack-c617158d.js} (99%) rename build/assets/{Streamable-21e7b858.js => Streamable-9b885514.js} (95%) rename build/assets/{Tabs-c02cacac.js => Tabs-573fdd2d.js} (99%) rename build/assets/{TextareaAutosize-eac164b5.js => TextareaAutosize-1decf155.js} (94%) rename build/assets/{Twitch-e31995e6.js => Twitch-c2e0f24a.js} (95%) rename build/assets/{Typography-9047da8c.js => Typography-db52e3f1.js} (93%) rename build/assets/{Vidyard-2b44b0c8.js => Vidyard-f06ca014.js} (95%) rename build/assets/{Vimeo-b5693b6d.js => Vimeo-579e66ca.js} (96%) rename build/assets/{Wistia-2a47e482.js => Wistia-56e52464.js} (96%) rename build/assets/{YouTube-6216f0b1.js => YouTube-2eaf476a.js} (97%) rename build/assets/{constants-41186e32.js => constants-f306a0b2.js} (80%) rename build/assets/{createSvgIcon-e086f0de.js => createSvgIcon-ea6ddcd6.js} (97%) rename build/assets/{index-4296aca2.js => index-0f4cb5e5.js} (96%) rename build/assets/{index-09591f91.js => index-194d755a.js} (99%) rename build/assets/{index-ceabf099.js => index-1b87e39a.js} (95%) rename build/assets/{index-62edf322.js => index-2324aa9c.js} (98%) rename build/assets/{index-344bba82.js => index-284cd839.js} (99%) rename build/assets/{index-043dcdcc.js => index-2a51efa1.js} (94%) rename build/assets/{index-6d42632e.js => index-32f0aa69.js} (93%) rename build/assets/{index-44e7b49e.js => index-345de899.js} (85%) rename build/assets/{index-53aef74d.js => index-3cb9349b.js} (98%) rename build/assets/{index-b0ee3089.js => index-411c1361.js} (91%) rename build/assets/{index-49d9ff41.js => index-6a2d3502.js} (96%) rename build/assets/{index-049b9db3.js => index-6d2fa275.js} (96%) rename build/assets/{index-099d7f02.js => index-81e0c1dc.js} (90%) rename build/assets/{index-e458cdef.js => index-a82d47f9.js} (90%) rename build/assets/{index-62ddae12.js => index-a8a8b0eb.js} (69%) rename build/assets/{index-d8dc64a7.js => index-a9d05fc0.js} (99%) rename build/assets/{index-65e72f7b.js => index-a9d11598.js} (89%) rename build/assets/{index-93aeefd6.js => index-ae904d72.js} (99%) rename build/assets/{index-78113264.js => index-c0705125.js} (94%) rename build/assets/{index-408d2ad5.js => index-c582b5e4.js} (90%) rename build/assets/{index-1f52b1ca.js => index-cfff5f20.js} (89%) rename build/assets/{index-71105b91.js => index-e27c1d85.js} (64%) rename build/assets/{index-4e7b4086.js => index-e8b9ad93.js} (99%) rename build/assets/{index-8d05d202.js => index-ffdb9bac.js} (99%) rename build/assets/{index.esm-2eb55070.js => index.esm-55abcd0d.js} (98%) rename build/assets/{map-41080909.js => map-470fc2ef.js} (98%) diff --git a/build/assets/ClipLoader-debba421.js b/build/assets/ClipLoader-e6af0d5e.js similarity index 97% rename from build/assets/ClipLoader-debba421.js rename to build/assets/ClipLoader-e6af0d5e.js index 99f626ffe..525df02c8 100644 --- a/build/assets/ClipLoader-debba421.js +++ b/build/assets/ClipLoader-e6af0d5e.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-4e7b4086.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-e8b9ad93.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-c9949ba0.js b/build/assets/DailyMotion-76c9f037.js similarity index 95% rename from build/assets/DailyMotion-c9949ba0.js rename to build/assets/DailyMotion-76c9f037.js index 52a9bd5bb..328dbbf16 100644 --- a/build/assets/DailyMotion-c9949ba0.js +++ b/build/assets/DailyMotion-76c9f037.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-4e7b4086.js";import{u as D,p as O}from"./index-09591f91.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 g=u.player;this.player=new g(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:m=>a(m)}})},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{g as P,r as v}from"./index-e8b9ad93.js";import{u as D,p as O}from"./index-194d755a.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 g=u.player;this.player=new g(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:m=>a(m)}})},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/Facebook-456d4b25.js b/build/assets/Facebook-5b0d1d1a.js similarity index 96% rename from build/assets/Facebook-456d4b25.js rename to build/assets/Facebook-5b0d1d1a.js index 57d58eb8e..d3f3c6358 100644 --- a/build/assets/Facebook-456d4b25.js +++ b/build/assets/Facebook-5b0d1d1a.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-4e7b4086.js";import{u as P,p as m}from"./index-09591f91.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(g),n=P,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{g as _,r as g}from"./index-e8b9ad93.js";import{u as P,p as m}from"./index-194d755a.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(g),n=P,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-e358d3cf.js b/build/assets/FilePlayer-4eacc296.js similarity index 98% rename from build/assets/FilePlayer-e358d3cf.js rename to build/assets/FilePlayer-4eacc296.js index b3df473f6..abeac618f 100644 --- a/build/assets/FilePlayer-e358d3cf.js +++ b/build/assets/FilePlayer-4eacc296.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-4e7b4086.js";import{u as O,p as A}from"./index-09591f91.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{g as b,r as _}from"./index-e8b9ad93.js";import{u as O,p as A}from"./index-194d755a.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/Kaltura-5e92e9ff.js b/build/assets/Kaltura-f2d6bd6c.js similarity index 95% rename from build/assets/Kaltura-5e92e9ff.js rename to build/assets/Kaltura-f2d6bd6c.js index cf5302e4f..3e438d944 100644 --- a/build/assets/Kaltura-5e92e9ff.js +++ b/build/assets/Kaltura-f2d6bd6c.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-4e7b4086.js";import{u as _,p as m}from"./index-09591f91.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{g as y,r as f}from"./index-e8b9ad93.js";import{u as _,p as m}from"./index-194d755a.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/Mixcloud-9b4678f3.js b/build/assets/Mixcloud-a9b790a3.js similarity index 95% rename from build/assets/Mixcloud-9b4678f3.js rename to build/assets/Mixcloud-a9b790a3.js index 50c1c49dd..0737a744c 100644 --- a/build/assets/Mixcloud-9b4678f3.js +++ b/build/assets/Mixcloud-a9b790a3.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-4e7b4086.js";import{u as m,p as g}from"./index-09591f91.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{g as _,r as f}from"./index-e8b9ad93.js";import{u as m,p as g}from"./index-194d755a.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/Preview-dacf7e68.js b/build/assets/Preview-a53c2dd6.js similarity index 97% rename from build/assets/Preview-dacf7e68.js rename to build/assets/Preview-a53c2dd6.js index 7e595aa3a..b03a250be 100644 --- a/build/assets/Preview-dacf7e68.js +++ b/build/assets/Preview-a53c2dd6.js @@ -1 +1 @@ -import{g as y,r as b}from"./index-4e7b4086.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{g as y,r as b}from"./index-e8b9ad93.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/Skeleton-f681e38b.js b/build/assets/Skeleton-7010430a.js similarity index 97% rename from build/assets/Skeleton-f681e38b.js rename to build/assets/Skeleton-7010430a.js index 7558e5e3c..e673845bf 100644 --- a/build/assets/Skeleton-f681e38b.js +++ b/build/assets/Skeleton-7010430a.js @@ -1,4 +1,4 @@ -import{c as x,d as y,k as b,s as R,b as o,e as _,b0 as u,r as S,u as $,_ as U,j as M,f as j,h as A}from"./index-4e7b4086.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{c as x,d as y,k as b,s as R,b as o,e as _,b0 as u,r as S,u as $,_ as U,j as M,f as j,h as A}from"./index-e8b9ad93.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-33ac1103.js b/build/assets/SoundCloud-89c1876a.js similarity index 95% rename from build/assets/SoundCloud-33ac1103.js rename to build/assets/SoundCloud-89c1876a.js index dfea0d96b..029ec9b04 100644 --- a/build/assets/SoundCloud-33ac1103.js +++ b/build/assets/SoundCloud-89c1876a.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-4e7b4086.js";import{u as b,p as v}from"./index-09591f91.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),a=(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),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(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,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/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"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{g as P,r as g}from"./index-e8b9ad93.js";import{u as b,p as v}from"./index-194d755a.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),a=(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),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(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,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/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"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Stack-2bf11152.js b/build/assets/Stack-c617158d.js similarity index 99% rename from build/assets/Stack-2bf11152.js rename to build/assets/Stack-c617158d.js index 94daa2a63..0d6da0ed8 100644 --- a/build/assets/Stack-2bf11152.js +++ b/build/assets/Stack-c617158d.js @@ -1 +1 @@ -import{r as E,$ as Mt,_ as ae,b as T,bw as Ft,bx as Wt,by as Vt,bz as Lt,bA as Nt,b3 as Qe,b2 as Ae,bB as Ht,bv as It,bC as Ut,j as Q,bD as Ze,h as ke,c as Te,d as ht,s as Be,bE as qt,u as Me,i as gt,f as zt}from"./index-4e7b4086.js";import{J as et,b9 as Xt,y as tt,z as rt,X as Yt}from"./index-8d05d202.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}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Mt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({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 _t=["sx"],Jt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Kt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Jt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(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 nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(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],sr=({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=Ht(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=It(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Kt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:O=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:O},g=n();return Q.jsx(a,T({as:h,ownerState:u,ref:f,className:Qt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Pr="afterWrite",Or=[vr,mr,hr,gr,yr,br,xr,wr,Pr];function U(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 L(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 Er(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];!L(a)||!U(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 Cr(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},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(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 wt(){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&&L(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=!wt()&&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 Ve(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 Pt(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 Ar(e){return["table","td","th"].indexOf(U(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(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=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Ot(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Ot(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?M: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),O=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=O-h[l]-v[x],y=O/2-h[l]/2+b,P=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=P,t.centerOffset=P-y,t)}}function kr(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)||Pt(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Br={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(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 st(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,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),b=F,u=M,g=window;if(f){var y=ve(r),P="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(P="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[P];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Br),k=l===!0?Mr({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=O?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=O?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(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:I(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,st(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,st(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 Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(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 Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[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 Ir(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=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(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 Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Pe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Pe(c)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(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 ct(e,t,r){return t===bt?De(Ir(e,r)):Z(t)?qr(t,r):De(Ur(Y(e)))}function zr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&Pt(n,o)&&U(n)!=="body"}):[]}function Xr(e,t,r,o){var n=t==="clippingParents"?zr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=ct(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},ct(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 At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(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 M: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?Le(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 ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(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?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),O=h===le?dr:le,b=e.rects.popper,u=e.elements[x?O:h],g=Xr(Z(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),P=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,P)),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 k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Yr(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?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(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,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),O=w===m,b=i||(O||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,X){return ee.concat(I(X)===Fe?Yr(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,P=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=j?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var z=xe(B),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[B]<=0,D[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}P.set($,G)}if(A)for(var me=x?3:1,Oe=function(X){var se=u.find(function(ge){var _=P.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=Oe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Jr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(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 ut(e){return[M,H,N,F].some(function(t){return e[t]>=0})}function Kr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(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 Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kr};function Zr(e,t,r){var o=I(e),n=[F,M].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 eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Zr(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 to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(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,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),O=ne(t.placement),b=!O,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,P=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,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?M:F,V=u==="y"?N:H,D=u==="y"?"height":"width",B=y[u],z=B+m[j],G=B-m[V],me=p?-A[D]/2:0,Oe=O===te?P[D]:A[D],ie=O===te?-A[D]:-P[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[j],ge=X[V],_=ce(0,P[D],ee[D]),Ee=b?P[D]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=B+Ee-Ue-Dt,kt=B+$t-Ue,qe=ce(p?we(z,jt):z,B,p?K(G,kt):G);y[u]=qe,k[u]=qe-B}if(s){var ze,Tt=u==="x"?M:F,Bt=u==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[Tt],Ye=J-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-P[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+P[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=p&&Re?$r(_e,J,Je):ce(p?_e:Xe,J,p?Je:Ye);y[g]=Ke,k[g]=Ke-J}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(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 fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(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 uo(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 po(e){var t=uo(e);return Or.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(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 pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rke({root:["root"]},ur(bo)),Co={},Ro=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:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),O=tt(w,r),b=E.useRef(null),u=tt(b,h),g=E.useRef(u);rt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Po(l,c),[P,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),rt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:k.root});return Q.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=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=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,O=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let P;if(a)P=a;else if(o){const R=je(o);P=R&&Oo(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(Xt,{disablePortal:s,container:P,children:Q.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},O,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Be(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Me({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,P=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O},g);return Q.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},P,{ref:r}))}),Uo=Do;function qo({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 jo=E.createContext(void 0),St=jo;function zo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Bo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(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%"})),Wo=E.forwardRef(function(t,r){const o=Me({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:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Bo),O=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Mo(O),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,P]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.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 k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(St.Provider,{value:k,children:Q.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Vo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Vo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Kt as e,qo as f,mt as i,Io as u}; +import{r as E,$ as Mt,_ as ae,b as T,bw as Ft,bx as Wt,by as Vt,bz as Lt,bA as Nt,b3 as Qe,b2 as Ae,bB as Ht,bv as It,bC as Ut,j as Q,bD as Ze,h as ke,c as Te,d as ht,s as Be,bE as qt,u as Me,i as gt,f as zt}from"./index-e8b9ad93.js";import{J as et,b9 as Xt,y as tt,z as rt,X as Yt}from"./index-ffdb9bac.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}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Mt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({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 _t=["sx"],Jt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Kt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Jt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(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 nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(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],sr=({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=Ht(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=It(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Kt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:O=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:O},g=n();return Q.jsx(a,T({as:h,ownerState:u,ref:f,className:Qt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Pr="afterWrite",Or=[vr,mr,hr,gr,yr,br,xr,wr,Pr];function U(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 L(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 Er(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];!L(a)||!U(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 Cr(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},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(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 wt(){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&&L(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=!wt()&&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 Ve(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 Pt(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 Ar(e){return["table","td","th"].indexOf(U(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(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=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Ot(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Ot(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?M: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),O=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=O-h[l]-v[x],y=O/2-h[l]/2+b,P=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=P,t.centerOffset=P-y,t)}}function kr(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)||Pt(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Br={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(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 st(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,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),b=F,u=M,g=window;if(f){var y=ve(r),P="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(P="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[P];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Br),k=l===!0?Mr({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=O?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=O?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(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:I(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,st(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,st(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 Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(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 Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[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 Ir(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=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(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 Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Pe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Pe(c)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(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 ct(e,t,r){return t===bt?De(Ir(e,r)):Z(t)?qr(t,r):De(Ur(Y(e)))}function zr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&Pt(n,o)&&U(n)!=="body"}):[]}function Xr(e,t,r,o){var n=t==="clippingParents"?zr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=ct(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},ct(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 At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(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 M: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?Le(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 ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(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?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),O=h===le?dr:le,b=e.rects.popper,u=e.elements[x?O:h],g=Xr(Z(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),P=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,P)),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 k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Yr(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?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(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,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),O=w===m,b=i||(O||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,X){return ee.concat(I(X)===Fe?Yr(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,P=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=j?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var z=xe(B),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[B]<=0,D[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}P.set($,G)}if(A)for(var me=x?3:1,Oe=function(X){var se=u.find(function(ge){var _=P.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=Oe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Jr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(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 ut(e){return[M,H,N,F].some(function(t){return e[t]>=0})}function Kr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(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 Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kr};function Zr(e,t,r){var o=I(e),n=[F,M].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 eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Zr(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 to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(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,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),O=ne(t.placement),b=!O,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,P=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,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?M:F,V=u==="y"?N:H,D=u==="y"?"height":"width",B=y[u],z=B+m[j],G=B-m[V],me=p?-A[D]/2:0,Oe=O===te?P[D]:A[D],ie=O===te?-A[D]:-P[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[j],ge=X[V],_=ce(0,P[D],ee[D]),Ee=b?P[D]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=B+Ee-Ue-Dt,kt=B+$t-Ue,qe=ce(p?we(z,jt):z,B,p?K(G,kt):G);y[u]=qe,k[u]=qe-B}if(s){var ze,Tt=u==="x"?M:F,Bt=u==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[Tt],Ye=J-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-P[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+P[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=p&&Re?$r(_e,J,Je):ce(p?_e:Xe,J,p?Je:Ye);y[g]=Ke,k[g]=Ke-J}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(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 fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(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 uo(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 po(e){var t=uo(e);return Or.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(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 pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rke({root:["root"]},ur(bo)),Co={},Ro=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:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),O=tt(w,r),b=E.useRef(null),u=tt(b,h),g=E.useRef(u);rt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Po(l,c),[P,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),rt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:k.root});return Q.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=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=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,O=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let P;if(a)P=a;else if(o){const R=je(o);P=R&&Oo(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(Xt,{disablePortal:s,container:P,children:Q.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},O,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Be(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Me({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,P=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O},g);return Q.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},P,{ref:r}))}),Uo=Do;function qo({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 jo=E.createContext(void 0),St=jo;function zo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Bo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(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%"})),Wo=E.forwardRef(function(t,r){const o=Me({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:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Bo),O=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Mo(O),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,P]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.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 k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(St.Provider,{value:k,children:Q.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Vo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Vo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Kt as e,qo as f,mt as i,Io as u}; diff --git a/build/assets/Streamable-21e7b858.js b/build/assets/Streamable-9b885514.js similarity index 95% rename from build/assets/Streamable-21e7b858.js rename to build/assets/Streamable-9b885514.js index 66c413b5c..dc110322d 100644 --- a/build/assets/Streamable-21e7b858.js +++ b/build/assets/Streamable-9b885514.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-4e7b4086.js";import{u as _,p as b}from"./index-09591f91.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{g as m,r as f}from"./index-e8b9ad93.js";import{u as _,p as b}from"./index-194d755a.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/Tabs-c02cacac.js b/build/assets/Tabs-573fdd2d.js similarity index 99% rename from build/assets/Tabs-c02cacac.js rename to build/assets/Tabs-573fdd2d.js index 54b1ae931..03943fc04 100644 --- a/build/assets/Tabs-c02cacac.js +++ b/build/assets/Tabs-573fdd2d.js @@ -1 +1 @@ -import{d as ft,c as pt,s as O,i as Pt,b,r as c,u as ht,_ as rt,f as L,j as S,h as St,m as Lt}from"./index-4e7b4086.js";import{b4 as Nt,z as Zt,R as $t,L as kt,X as lt,G as ut,J as te}from"./index-8d05d202.js";import{c as Ft}from"./createSvgIcon-e086f0de.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:i,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,i&&"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)})),ie=c.forwardRef(function(e,r){const i=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}=i,X=rt(i,re),Y=b({},i,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.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(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ie,ae=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,i={},n=()=>{}){const{ease:d=de,duration:h=300}=i;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),i=c.useRef(),n=c.useRef(null),d=()=>{i.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=i.current;d(),u!==i.current&&e(i.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(i.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:i}=t;return St({root:["root",r,i&&"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 i,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=(i=p.StartScrollButtonIcon)!=null?i:ae,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 i=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(i)return;i=!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:i,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[i&&"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 i=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:X={},slotProps:Y={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=i,Ot=rt(i,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",it=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},i,{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:X.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=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 a;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];a=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:a}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let a=0,s;if(B)s="top",l&&o&&(a=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;a=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:a,[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)}}),at=(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),at(l)},It=()=>{const o=z.current[it];let l=0;const a=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[it]}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 a=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=a?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=a?S.jsx(H,b({slots:{EndScrollButtonIcon:X.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:a}=wt();if(!(!a||!l)){if(a[Q]l[Z]){const s=l[K]+(a[Z]-l[Z]);at(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const a=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(a),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 a=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(a);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(()=>{Xt(!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({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.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 a=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:a&&!vt&&Mt,selected:a,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,a=te(l).activeElement;if(a.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,a,zt);break;case v:o.preventDefault(),ot(l,a,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]}))}),Fe=Pe;export{Fe as T,ke as a}; +import{d as ft,c as pt,s as O,i as Pt,b,r as c,u as ht,_ as rt,f as L,j as S,h as St,m as Lt}from"./index-e8b9ad93.js";import{b4 as Nt,z as Zt,R as $t,L as kt,X as lt,G as ut,J as te}from"./index-ffdb9bac.js";import{c as Ft}from"./createSvgIcon-ea6ddcd6.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:i,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,i&&"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)})),ie=c.forwardRef(function(e,r){const i=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}=i,X=rt(i,re),Y=b({},i,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.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(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ie,ae=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,i={},n=()=>{}){const{ease:d=de,duration:h=300}=i;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),i=c.useRef(),n=c.useRef(null),d=()=>{i.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=i.current;d(),u!==i.current&&e(i.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(i.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:i}=t;return St({root:["root",r,i&&"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 i,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=(i=p.StartScrollButtonIcon)!=null?i:ae,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 i=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(i)return;i=!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:i,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[i&&"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 i=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:X={},slotProps:Y={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=i,Ot=rt(i,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",it=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},i,{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:X.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=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 a;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];a=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:a}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let a=0,s;if(B)s="top",l&&o&&(a=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;a=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:a,[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)}}),at=(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),at(l)},It=()=>{const o=z.current[it];let l=0;const a=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[it]}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 a=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=a?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=a?S.jsx(H,b({slots:{EndScrollButtonIcon:X.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:a}=wt();if(!(!a||!l)){if(a[Q]l[Z]){const s=l[K]+(a[Z]-l[Z]);at(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const a=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(a),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 a=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(a);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(()=>{Xt(!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({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.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 a=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:a&&!vt&&Mt,selected:a,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,a=te(l).activeElement;if(a.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,a,zt);break;case v:o.preventDefault(),ot(l,a,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]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/TextareaAutosize-eac164b5.js b/build/assets/TextareaAutosize-1decf155.js similarity index 94% rename from build/assets/TextareaAutosize-eac164b5.js rename to build/assets/TextareaAutosize-1decf155.js index 709bff927..e7aada787 100644 --- a/build/assets/TextareaAutosize-eac164b5.js +++ b/build/assets/TextareaAutosize-1decf155.js @@ -1,2 +1,2 @@ -import{r as o,_ as B,j as p,b as v,l as I}from"./index-4e7b4086.js";import{y as D,L as T,z as F,R as P}from"./index-8d05d202.js";const U=["onChange","maxRows","minRows","style","value"];function m(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 G=o.forwardRef(function(l,O){const{onChange:R,maxRows:y,minRows:h=1,style:S,value:x}=l,k=B(l,U),{current:A}=o.useRef(x!=null),b=o.useRef(null),L=D(O,b),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=b.current,n=T(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,_ as B,j as p,b as v,l as I}from"./index-e8b9ad93.js";import{y as D,L as T,z as F,R as P}from"./index-ffdb9bac.js";const U=["onChange","maxRows","minRows","style","value"];function m(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 G=o.forwardRef(function(l,O){const{onChange:R,maxRows:y,minRows:h=1,style:S,value:x}=l,k=B(l,U),{current:A}=o.useRef(x!=null),b=o.useRef(null),L=D(O,b),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=b.current,n=T(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,w=m(n.paddingBottom)+m(n.paddingTop),a=m(n.borderBottomWidth)+m(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),y&&(s=Math.min(Number(y)*d,s)),s=Math.max(s,d);const _=s+(g==="border-box"?w+a:0),j=Math.abs(s-u)<=1;return{outerHeightStyle:_,overflow:j}},[y,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]);F(()=>{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=b.current,w=T(g);w.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),w.removeEventListener("resize",t),a&&a.disconnect()}},[f]),F(()=>{W()}),o.useEffect(()=>{c.current=0},[x]);const N=e=>{c.current=0,A||W(),R&&R(e)};return p.jsxs(o.Fragment,{children:[p.jsx("textarea",v({value:x,onChange:N,ref:L,rows:h,style:v({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),p.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:v({},V.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{G as T}; diff --git a/build/assets/Twitch-e31995e6.js b/build/assets/Twitch-c2e0f24a.js similarity index 95% rename from build/assets/Twitch-e31995e6.js rename to build/assets/Twitch-c2e0f24a.js index c006daf87..c427cb738 100644 --- a/build/assets/Twitch-e31995e6.js +++ b/build/assets/Twitch-c2e0f24a.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-4e7b4086.js";import{u as C,p as N}from"./index-09591f91.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),o=(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),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,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),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,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})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{g as w,r as D}from"./index-e8b9ad93.js";import{u as C,p as N}from"./index-194d755a.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),o=(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),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,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),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,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})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Typography-9047da8c.js b/build/assets/Typography-db52e3f1.js similarity index 93% rename from build/assets/Typography-9047da8c.js rename to build/assets/Typography-db52e3f1.js index cdb52c404..895e4e991 100644 --- a/build/assets/Typography-9047da8c.js +++ b/build/assets/Typography-db52e3f1.js @@ -1 +1 @@ -import{c as T,d as B,s as W,i as u,b as s,r as C,u as M,_ as R,j as P,f as j,h as U}from"./index-4e7b4086.js";import{e as _}from"./Stack-2bf11152.js";function N(a){return T("MuiTypography",a)}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 $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:p}=a,e={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return U(e,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.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})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),i=A(n.color),o=_(s({},n,{color:i})),{align:p="inherit",className:e,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,$),m=s({},o,{align:p,color:i,className:e,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",b=E(m);return P.jsx(L,s({as:v,ref:r,ownerState:m,className:j(b.root,e)},x))}),V=D;export{V as T}; +import{c as T,d as B,s as W,i as u,b as s,r as C,u as M,_ as R,j as P,f as j,h as U}from"./index-e8b9ad93.js";import{e as _}from"./Stack-c617158d.js";function N(a){return T("MuiTypography",a)}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 $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:p}=a,e={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return U(e,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.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})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),i=A(n.color),o=_(s({},n,{color:i})),{align:p="inherit",className:e,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,$),m=s({},o,{align:p,color:i,className:e,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",b=E(m);return P.jsx(L,s({as:v,ref:r,ownerState:m,className:j(b.root,e)},x))}),V=D;export{V as T}; diff --git a/build/assets/Vidyard-2b44b0c8.js b/build/assets/Vidyard-f06ca014.js similarity index 95% rename from build/assets/Vidyard-2b44b0c8.js rename to build/assets/Vidyard-f06ca014.js index 83e37a021..96a18c766 100644 --- a/build/assets/Vidyard-2b44b0c8.js +++ b/build/assets/Vidyard-f06ca014.js @@ -1 +1 @@ -import{g,r as v}from"./index-4e7b4086.js";import{u as b,p as O}from"./index-09591f91.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{g,r as v}from"./index-e8b9ad93.js";import{u as b,p as O}from"./index-194d755a.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-b5693b6d.js b/build/assets/Vimeo-579e66ca.js similarity index 96% rename from build/assets/Vimeo-b5693b6d.js rename to build/assets/Vimeo-579e66ca.js index e1f4d4d64..be62aad4b 100644 --- a/build/assets/Vimeo-b5693b6d.js +++ b/build/assets/Vimeo-579e66ca.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-4e7b4086.js";import{u as m,p as _}from"./index-09591f91.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{g as d,r as f}from"./index-e8b9ad93.js";import{u as m,p as _}from"./index-194d755a.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-2a47e482.js b/build/assets/Wistia-56e52464.js similarity index 96% rename from build/assets/Wistia-2a47e482.js rename to build/assets/Wistia-56e52464.js index d081f7a1b..edbf14a89 100644 --- a/build/assets/Wistia-2a47e482.js +++ b/build/assets/Wistia-56e52464.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-4e7b4086.js";import{u as v,p as w}from"./index-09591f91.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{g as m,r as g}from"./index-e8b9ad93.js";import{u as v,p as w}from"./index-194d755a.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-6216f0b1.js b/build/assets/YouTube-2eaf476a.js similarity index 97% rename from build/assets/YouTube-6216f0b1.js rename to build/assets/YouTube-2eaf476a.js index 26de89be5..c393ecc4f 100644 --- a/build/assets/YouTube-6216f0b1.js +++ b/build/assets/YouTube-2eaf476a.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-4e7b4086.js";import{u as L,p as Y}from"./index-09591f91.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{g as U,r as I}from"./index-e8b9ad93.js";import{u as L,p as Y}from"./index-194d755a.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/constants-41186e32.js b/build/assets/constants-f306a0b2.js similarity index 80% rename from build/assets/constants-41186e32.js rename to build/assets/constants-f306a0b2.js index 4f2615703..359176d98 100644 --- a/build/assets/constants-41186e32.js +++ b/build/assets/constants-f306a0b2.js @@ -1,4 +1,4 @@ -import{t,aD as s,aB as a,aC as o,aE as n}from"./index-4e7b4086.js";import{aw as c}from"./index-8d05d202.js";const E={[s]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},i="Sources Table",r="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",l="alphabetically",_="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",C=t(c)` +import{t,aD as s,aB as a,aC as o,aE as n}from"./index-e8b9ad93.js";import{aw as c}from"./index-ffdb9bac.js";const E={[s]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},i="Sources Table",r="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",l="alphabetically",_="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",C=t(c)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/createSvgIcon-e086f0de.js b/build/assets/createSvgIcon-ea6ddcd6.js similarity index 97% rename from build/assets/createSvgIcon-e086f0de.js rename to build/assets/createSvgIcon-ea6ddcd6.js index a1ef238cf..080329928 100644 --- a/build/assets/createSvgIcon-e086f0de.js +++ b/build/assets/createSvgIcon-ea6ddcd6.js @@ -1 +1 @@ -import{c as I,d as C,s as w,i as f,r as v,u as R,_ as b,b as g,j as S,f as j,h as N}from"./index-4e7b4086.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{c as I,d as C,s as w,i as f,r as v,u as R,_ as b,b as g,j as S,f as j,h as N}from"./index-e8b9ad93.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-4296aca2.js b/build/assets/index-0f4cb5e5.js similarity index 96% rename from build/assets/index-4296aca2.js rename to build/assets/index-0f4cb5e5.js index b6a06667a..84fc4e746 100644 --- a/build/assets/index-4296aca2.js +++ b/build/assets/index-0f4cb5e5.js @@ -1,4 +1,4 @@ -import{aB as j,aC as E,aD as b,aE as R,aF as $,aG as D,aH as U,aI as G,t as p,v as u,z as O,r as f,j as e,F as r,T as C,aJ as J,aA as K,q as Q,az as m,aK as X,a0 as ee,aL as te,aM as se,Z as ne,P as oe,aN as re}from"./index-4e7b4086.js";import{aL as ae,B as z,ah as ie,u as ce,a0 as le,a1 as de}from"./index-8d05d202.js";import{B as ue}from"./index-49d9ff41.js";import{S as pe}from"./index-71105b91.js";import{e as xe}from"./index.esm-2eb55070.js";import{C as he}from"./ClipLoader-debba421.js";import{T as fe}from"./index-53aef74d.js";const A=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?$:ve.test(t)?E:A.test(t)?j:be.test(t)?D:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:U:G}const Be=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Te=({onClick:t,loading:s,type:n,error:o})=>{const y=O(i=>i.budget),[a,x]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await J(d);x(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs($e,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ae(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(z,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(he,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(ie,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},$e=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aB as j,aC as E,aD as b,aE as R,aF as $,aG as D,aH as U,aI as G,t as p,v as u,z as O,r as f,j as e,F as r,T as C,aJ as J,aA as K,q as Q,az as m,aK as X,a0 as ee,aL as te,aM as se,Z as ne,P as oe,aN as re}from"./index-e8b9ad93.js";import{aL as ae,B as z,ah as ie,u as ce,a0 as le,a1 as de}from"./index-ffdb9bac.js";import{B as ue}from"./index-6a2d3502.js";import{S as pe}from"./index-e27c1d85.js";import{e as xe}from"./index.esm-55abcd0d.js";import{C as he}from"./ClipLoader-e6af0d5e.js";import{T as fe}from"./index-3cb9349b.js";const A=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?$:ve.test(t)?E:A.test(t)?j:be.test(t)?D:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:U:G}const Be=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Te=({onClick:t,loading:s,type:n,error:o})=>{const y=O(i=>i.budget),[a,x]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await J(d);x(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs($e,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ae(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(z,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(he,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(ie,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},$e=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${u.GRAY7}; diff --git a/build/assets/index-09591f91.js b/build/assets/index-194d755a.js similarity index 99% rename from build/assets/index-09591f91.js rename to build/assets/index-194d755a.js index f5ae678bb..a7507f8f9 100644 --- a/build/assets/index-09591f91.js +++ b/build/assets/index-194d755a.js @@ -1,4 +1,4 @@ -import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s as Qn,n as U$,i as dn,e as xo,u as Ty,_ as _u,f as Kn,h as Ay,m as Tu,a2 as z$,a3 as G$,a4 as iI,t as H,v as j,a5 as oI,K as Au,F as q,q as Mn,z as ds,a6 as sI,T as vt,a7 as q$,w as lr,y as Pt,A as lI,a8 as _i,a9 as At,aa as H$,g as St,J as uI,N as cI,ab as W$,ac as dI,M as V$,ad as pI,ae as fI,af as Ti,ag as Fe,R as Y,ah as Y$,ai as K$,aj as X$,ak as ku,al as Z$,am as Q$,an as J$,ao as ej,ap as hI,aq as tj,ar as Ou,as as nj,at as rj,au as aj,av as ix,C as ij,B as bn,aw as oj,ax as sj}from"./index-4e7b4086.js";import{w as wa,x as gI,y as Al,z as lj,G as bl,J as yl,K as Yc,L as mI,Q as uj,R as cj,U as dj,V as ox,W as vl,X as zr,Y as sx,Z as Hs,$ as ky,a0 as pj,a1 as fj,a2 as bI,a3 as hj,r as Oy,a4 as yI,i as Jn,T as Ai,a5 as Pr,a6 as vI,a7 as gj,a8 as ps,a9 as mj,aa as Iy,ab as Iu,ac as Ry,B as qt,ad as bj,ae as SI,af as xI,ag as yj,t as vj,ah as EI,ai as wI,aj as Sj,ak as xj,u as Ym,al as Ru,am as Ej,an as wj,ao as _j,ap as Tj,aq as Cy,ar as Aj,as as kj,at as Oj,P as Re,e as Kt,au as _I,av as Ij,aw as TI,ax as Rj,ay as Cj,az as Cu,aA as Nj,aB as Dj,aC as Lj,aD as Mj,aE as Pj,f as $j,aF as jj,aG as AI,aH as Fj}from"./index-8d05d202.js";import{c as Bj,a as Kc,C as Nu}from"./ClipLoader-debba421.js";import{S as kI}from"./Skeleton-f681e38b.js";import{u as OI,P as Ny,a as Uj,F as zj}from"./Stack-2bf11152.js";import{S as Gj,F as lx,i as fs,g as Dn,t as qj,_ as II,a as Hj,b as Wj,c as Ta,d as Dy,e as Vj,f as Yj,h as Kj,j as hs,m as Xj,k as Zj,l as Qj,n as RI,o as Jj,p as eF}from"./map-41080909.js";import{c as Ly}from"./createSvgIcon-e086f0de.js";import{B as tF}from"./index-49d9ff41.js";import{u as CI}from"./index-62ddae12.js";import{b as nF,a as rF,c as aF,d as iF}from"./index.esm-2eb55070.js";const ux="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",oF=async e=>{let t=await qa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await qa.keysend(ux,e),!(t!=null&&t.success)){if(t=await qa.topup(),t||(t=await qa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await oF(t),r={amount:t,refid:e};return await aI.post("/boost",JSON.stringify(r)),n},lF=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},NI=(e,t)=>{if(!t)return null;const n=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),r=ax.groupBy(n,i=>i.timestamp),a=ax.values(r).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,f;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((f=o.timestamp)==null?void 0:f.split("-"))||[""],u=wa(s),c=wa(l);return u-c}),a},uF=async e=>{await B$(async()=>{try{await qa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},cF=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},dF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},pF=dF;function fF(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const hF=2;function DI(e,t){return e-t}function Ui(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function cx(e,t){var n;const{index:r}=(n=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===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}%`})}},vF=e=>e;let Ks;function Xc(){return Ks===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ks=CSS.supports("touch-action","none"):Ks=!0),Ks}function SF(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:p,orientation:f="horizontal",rootRef:h,scale:m=vF,step:b=1,tabIndex:S,value:T}=e,_=F.useRef(),[x,A]=F.useState(-1),[E,v]=F.useState(-1),[O,R]=F.useState(!1),C=F.useRef(0),[$,N]=OI({controlled:T,default:n??l,name:"Slider"}),P=c&&((B,Q,oe)=>{const pe=B.nativeEvent||B,ue=new pe.constructor(pe.type,pe);Object.defineProperty(ue,"target",{writable:!0,value:{value:Q,name:u}}),c(ue,Q,oe)}),z=Array.isArray($);let V=z?$.slice().sort(DI):[$];V=V.map(B=>Ui(B,l,s));const G=o===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((B,Q)=>({value:l+b*Q})):o||[],K=G.map(B=>B.value),{isFocusVisibleRef:X,onBlur:W,onFocus:Z,ref:D}=gI(),[ie,ne]=F.useState(-1),M=F.useRef(),ye=Al(D,M),re=Al(h,ye),Se=B=>Q=>{var oe;const pe=Number(Q.currentTarget.getAttribute("data-index"));Z(Q),X.current===!0&&ne(pe),v(pe),B==null||(oe=B.onFocus)==null||oe.call(B,Q)},je=B=>Q=>{var oe;W(Q),X.current===!1&&ne(-1),v(-1),B==null||(oe=B.onBlur)==null||oe.call(B,Q)};lj(()=>{if(r&&M.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&x!==-1&&A(-1),r&&ie!==-1&&ne(-1);const we=B=>Q=>{var oe;(oe=B.onChange)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index")),ue=V[pe],ke=K.indexOf(ue);let Ae=Q.target.valueAsNumber;if(G&&b==null){const Ie=K[K.length-1];Ae>Ie?Ae=Ie:Ae{const{current:oe}=M,{width:pe,height:ue,bottom:ke,left:Ae}=oe.getBoundingClientRect();let Ie;de.indexOf("vertical")===0?Ie=(ke-B.y)/ue:Ie=(B.x-Ae)/pe,de.indexOf("-reverse")!==-1&&(Ie=1-Ie);let We;if(We=gF(Ie,l,s),b)We=bF(We,b,l);else{const it=cx(K,We);We=K[it]}We=Ui(We,l,s);let xt=0;if(z){Q?xt=ae.current:xt=cx(V,We),a&&(We=Ui(We,V[xt-1]||-1/0,V[xt+1]||1/0));const it=We;We=dx({values:V,newValue:We,index:xt}),a&&Q||(xt=We.indexOf(it),ae.current=xt)}return{newValue:We,activeIndex:xt}},ee=bl(B=>{const Q=Ws(B,_);if(!Q)return;if(C.current+=1,B.type==="mousemove"&&B.buttons===0){_e(B);return}const{newValue:oe,activeIndex:pe}=ce({finger:Q,move:!0});Vs({sliderRef:M,activeIndex:pe,setActive:A}),N(oe),!O&&C.current>hF&&R(!0),P&&!Ys(oe,$)&&P(B,oe,pe)}),_e=bl(B=>{const Q=Ws(B,_);if(R(!1),!Q)return;const{newValue:oe}=ce({finger:Q,move:!0});A(-1),B.type==="touchend"&&v(-1),p&&p(B,oe),_.current=void 0,ve()}),me=bl(B=>{if(r)return;Xc()||B.preventDefault();const Q=B.changedTouches[0];Q!=null&&(_.current=Q.identifier);const oe=Ws(B,_);if(oe!==!1){const{newValue:ue,activeIndex:ke}=ce({finger:oe});Vs({sliderRef:M,activeIndex:ke,setActive:A}),N(ue),P&&!Ys(ue,$)&&P(B,ue,ke)}C.current=0;const pe=yl(M.current);pe.addEventListener("touchmove",ee),pe.addEventListener("touchend",_e)}),ve=F.useCallback(()=>{const B=yl(M.current);B.removeEventListener("mousemove",ee),B.removeEventListener("mouseup",_e),B.removeEventListener("touchmove",ee),B.removeEventListener("touchend",_e)},[_e,ee]);F.useEffect(()=>{const{current:B}=M;return B.addEventListener("touchstart",me,{passive:Xc()}),()=>{B.removeEventListener("touchstart",me,{passive:Xc()}),ve()}},[ve,me]),F.useEffect(()=>{r&&ve()},[r,ve]);const Ue=B=>Q=>{var oe;if((oe=B.onMouseDown)==null||oe.call(B,Q),r||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const pe=Ws(Q,_);if(pe!==!1){const{newValue:ke,activeIndex:Ae}=ce({finger:pe});Vs({sliderRef:M,activeIndex:Ae,setActive:A}),N(ke),P&&!Ys(ke,$)&&P(Q,ke,Ae)}C.current=0;const ue=yl(M.current);ue.addEventListener("mousemove",ee),ue.addEventListener("mouseup",_e)},at=kl(z?V[0]:l,l,s),Je=kl(V[V.length-1],l,s)-at,Ht=(B={})=>{const Q=Yc(B),oe={onMouseDown:Ue(Q||{})},pe=ge({},Q,oe);return ge({},B,{ref:re},pe)},ze=B=>Q=>{var oe;(oe=B.onMouseOver)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index"));v(pe)},Ge=B=>Q=>{var oe;(oe=B.onMouseLeave)==null||oe.call(B,Q),v(-1)};return{active:x,axis:de,axisProps:yF,dragging:O,focusedThumbIndex:ie,getHiddenInputProps:(B={})=>{var Q;const oe=Yc(B),pe={onChange:we(oe||{}),onFocus:Se(oe||{}),onBlur:je(oe||{})},ue=ge({},oe,pe);return ge({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(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},B,ue,{style:ge({},pF,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ht,getThumbProps:(B={})=>{const Q=Yc(B),oe={onMouseOver:ze(Q||{}),onMouseLeave:Ge(Q||{})};return ge({},B,Q,oe)},marks:G,open:E,range:z,rootRef:re,trackLeap:Je,trackOffset:at,values:V,getThumbStyle:B=>({pointerEvents:x!==-1&&x!==B?"none":void 0})}}const xF=Ly(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"),EF=Ly(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"),wF=Ly(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 _F(e){return _y("MuiCheckbox",e)}const TF=wy("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Zc=TF,AF=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kF=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${dn(r)}`,`size${dn(a)}`]},o=Ay(i,_F,t);return ge({},t,o)},OF=Qn(Gj,{shouldForwardProp:e=>U$(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${dn(n.size)}`],n.color!=="default"&&t[`color${dn(n.color)}`]]}})(({theme:e,ownerState:t})=>ge({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})`:xo(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zc.checked}, &.${Zc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),IF=y.jsx(EF,{}),RF=y.jsx(xF,{}),CF=y.jsx(wF,{}),NF=F.forwardRef(function(t,n){var r,a;const i=Ty({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IF,color:s="primary",icon:l=RF,indeterminate:u=!1,indeterminateIcon:c=CF,inputProps:p,size:f="medium",className:h}=i,m=_u(i,AF),b=u?c:l,S=u?c:o,T=ge({},i,{color:s,indeterminate:u,size:f}),_=kF(T);return y.jsx(OF,ge({type:"checkbox",inputProps:ge({"data-indeterminate":u},p),icon:F.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:f}),checkedIcon:F.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:f}),ownerState:T,ref:n,className:Kn(_.root,h)},m,{classes:_}))}),DF=NF,LF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MF(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=mI(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=i.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"?a?`translateX(${a.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function PF(e){return typeof e=="function"?e():e}function Xs(e,t,n){const r=PF(n),a=MF(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $F=F.forwardRef(function(t,n){const r=Tu(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:c="down",easing:p=a,in:f,onEnter:h,onEntered:m,onEntering:b,onExit:S,onExited:T,onExiting:_,style:x,timeout:A=i,TransitionComponent:E=uj}=t,v=_u(t,LF),O=F.useRef(null),R=Al(l.ref,O,n),C=W=>Z=>{W&&(Z===void 0?W(O.current):W(O.current,Z))},$=C((W,Z)=>{Xs(c,W,u),dj(W),h&&h(W,Z)}),N=C((W,Z)=>{const D=ox({timeout:A,style:x,easing:p},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",ge({},D)),W.style.transition=r.transitions.create("transform",ge({},D)),W.style.webkitTransform="none",W.style.transform="none",b&&b(W,Z)}),P=C(m),z=C(_),V=C(W=>{const Z=ox({timeout:A,style:x,easing:p},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",Z),W.style.transition=r.transitions.create("transform",Z),Xs(c,W,u),S&&S(W)}),G=C(W=>{W.style.webkitTransition="",W.style.transition="",T&&T(W)}),K=W=>{o&&o(O.current,W)},X=F.useCallback(()=>{O.current&&Xs(c,O.current,u)},[c,u]);return F.useEffect(()=>{if(f||c==="down"||c==="right")return;const W=cj(()=>{O.current&&Xs(c,O.current,u)}),Z=mI(O.current);return Z.addEventListener("resize",W),()=>{W.clear(),Z.removeEventListener("resize",W)}},[c,f,u]),F.useEffect(()=>{f||X()},[f,X]),y.jsx(E,ge({nodeRef:O,onEnter:$,onEntered:P,onEntering:N,onExit:V,onExited:G,onExiting:z,addEndListener:K,appear:s,in:f,timeout:A},v,{children:(W,Z)=>F.cloneElement(l,ge({ref:R,style:ge({visibility:W==="exited"&&!f?"hidden":void 0},x,l.props.style)},Z))}))}),ni=$F,jF=e=>!e||!vl(e),FF=jF;function BF(e){return _y("MuiSlider",e)}const UF=wy("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"]),Xn=UF,zF=e=>{const{open:t}=e;return{offset:Kn(t&&Xn.valueLabelOpen),circle:Xn.valueLabelCircle,label:Xn.valueLabelLabel}};function GF(e){const{children:t,className:n,value:r}=e,a=zF(e);return t?F.cloneElement(t,{className:Kn(t.props.className)},y.jsxs(F.Fragment,{children:[t.props.children,y.jsx("span",{className:Kn(a.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:a.circle,children:y.jsx("span",{className:a.label,children:r})})})]})):null}const qF=["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 px(e){return e}const HF=Qn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dn(n.color)}`],n.size!=="medium"&&t[`size${dn(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})=>ge({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"&&ge({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"&&ge({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"},[`&.${Xn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xn.dragging}`]:{[`& .${Xn.thumb}, & .${Xn.track}`]:{transition:"none"}}})),WF=Qn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ge({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})),VF=Qn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?z$(e.palette[t.color].main,.62):G$(e.palette[t.color].main,.5);return ge({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})}),YF=Qn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${dn(n.color)}`],n.size!=="medium"&&t[`thumbSize${dn(n.size)}`]]}})(({theme:e,ownerState:t})=>ge({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":ge({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, &.${Xn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Xn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`},[`&.${Xn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),KF=Qn(GF,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ge({[`&.${Xn.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"})),XF=Qn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>iI(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>ge({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})),ZF=Qn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>iI(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>ge({},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})),QF=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${dn(s)}`,l&&`size${dn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${dn(l)}`,s&&`thumbColor${dn(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ay(u,BF,o)},JF=({children:e})=>e,e2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E,v,O,R,C,$;const N=Ty({props:t,name:"MuiSlider"}),z=Tu().direction==="rtl",{"aria-label":V,"aria-valuetext":G,"aria-labelledby":K,component:X="span",components:W={},componentsProps:Z={},color:D="primary",classes:ie,className:ne,disableSwap:M=!1,disabled:ye=!1,getAriaLabel:re,getAriaValueText:Se,marks:je=!1,max:we=100,min:ae=0,orientation:de="horizontal",size:ce="medium",step:ee=1,scale:_e=px,slotProps:me,slots:ve,track:Ue="normal",valueLabelDisplay:at="off",valueLabelFormat:Je=px}=N,Ht=_u(N,qF),ze=ge({},N,{isRtl:z,max:we,min:ae,classes:ie,disabled:ye,disableSwap:M,orientation:de,marks:je,color:D,size:ce,step:ee,scale:_e,track:Ue,valueLabelDisplay:at,valueLabelFormat:Je}),{axisProps:Ge,getRootProps:Xe,getHiddenInputProps:Ft,getThumbProps:Wt,open:B,active:Q,axis:oe,focusedThumbIndex:pe,range:ue,dragging:ke,marks:Ae,values:Ie,trackOffset:We,trackLeap:xt,getThumbStyle:it}=SF(ge({},ze,{rootRef:n}));ze.marked=Ae.length>0&&Ae.some(Ce=>Ce.label),ze.dragging=ke,ze.focusedThumbIndex=pe;const Le=QF(ze),It=(r=(a=ve==null?void 0:ve.root)!=null?a:W.Root)!=null?r:HF,gr=(i=(o=ve==null?void 0:ve.rail)!=null?o:W.Rail)!=null?i:WF,mr=(s=(l=ve==null?void 0:ve.track)!=null?l:W.Track)!=null?s:VF,Ze=(u=(c=ve==null?void 0:ve.thumb)!=null?c:W.Thumb)!=null?u:YF,ia=(p=(f=ve==null?void 0:ve.valueLabel)!=null?f:W.ValueLabel)!=null?p:KF,br=(h=(m=ve==null?void 0:ve.mark)!=null?m:W.Mark)!=null?h:XF,Fn=(b=(S=ve==null?void 0:ve.markLabel)!=null?S:W.MarkLabel)!=null?b:ZF,yr=(T=(_=ve==null?void 0:ve.input)!=null?_:W.Input)!=null?T:"input",Bn=(x=me==null?void 0:me.root)!=null?x:Z.root,Un=(A=me==null?void 0:me.rail)!=null?A:Z.rail,zn=(E=me==null?void 0:me.track)!=null?E:Z.track,oa=(v=me==null?void 0:me.thumb)!=null?v:Z.thumb,tr=(O=me==null?void 0:me.valueLabel)!=null?O:Z.valueLabel,Li=(R=me==null?void 0:me.mark)!=null?R:Z.mark,Gn=(C=me==null?void 0:me.markLabel)!=null?C:Z.markLabel,jr=($=me==null?void 0:me.input)!=null?$:Z.input,he=zr({elementType:It,getSlotProps:Xe,externalSlotProps:Bn,externalForwardedProps:Ht,additionalProps:ge({},FF(It)&&{as:X}),ownerState:ge({},ze,Bn==null?void 0:Bn.ownerState),className:[Le.root,ne]}),sa=zr({elementType:gr,externalSlotProps:Un,ownerState:ze,className:Le.rail}),Zt=zr({elementType:mr,externalSlotProps:zn,additionalProps:{style:ge({},Ge[oe].offset(We),Ge[oe].leap(xt))},ownerState:ge({},ze,zn==null?void 0:zn.ownerState),className:Le.track}),mt=zr({elementType:Ze,getSlotProps:Wt,externalSlotProps:oa,ownerState:ge({},ze,oa==null?void 0:oa.ownerState),className:Le.thumb}),la=zr({elementType:ia,externalSlotProps:tr,ownerState:ge({},ze,tr==null?void 0:tr.ownerState),className:Le.valueLabel}),Me=zr({elementType:br,externalSlotProps:Li,ownerState:ze,className:Le.mark}),gn=zr({elementType:Fn,externalSlotProps:Gn,ownerState:ze,className:Le.markLabel}),Na=zr({elementType:yr,getSlotProps:Ft,externalSlotProps:jr,ownerState:ze});return y.jsxs(It,ge({},he,{children:[y.jsx(gr,ge({},sa)),y.jsx(mr,ge({},Zt)),Ae.filter(Ce=>Ce.value>=ae&&Ce.value<=we).map((Ce,Qe)=>{const Bt=kl(Ce.value,ae,we),st=Ge[oe].offset(Bt);let bt;return Ue===!1?bt=Ie.indexOf(Ce.value)!==-1:bt=Ue==="normal"&&(ue?Ce.value>=Ie[0]&&Ce.value<=Ie[Ie.length-1]:Ce.value<=Ie[0])||Ue==="inverted"&&(ue?Ce.value<=Ie[0]||Ce.value>=Ie[Ie.length-1]:Ce.value>=Ie[0]),y.jsxs(F.Fragment,{children:[y.jsx(br,ge({"data-index":Qe},Me,!vl(br)&&{markActive:bt},{style:ge({},st,Me.style),className:Kn(Me.className,bt&&Le.markActive)})),Ce.label!=null?y.jsx(Fn,ge({"aria-hidden":!0,"data-index":Qe},gn,!vl(Fn)&&{markLabelActive:bt},{style:ge({},st,gn.style),className:Kn(Le.markLabel,gn.className,bt&&Le.markLabelActive),children:Ce.label})):null]},Qe)}),Ie.map((Ce,Qe)=>{const Bt=kl(Ce,ae,we),st=Ge[oe].offset(Bt),bt=at==="off"?JF:ia;return y.jsx(bt,ge({},!vl(bt)&&{valueLabelFormat:Je,valueLabelDisplay:at,value:typeof Je=="function"?Je(_e(Ce),Qe):Je,index:Qe,open:B===Qe||Q===Qe||at==="on",disabled:ye},la,{children:y.jsx(Ze,ge({"data-index":Qe},mt,{className:Kn(Le.thumb,mt.className,Q===Qe&&Le.active,pe===Qe&&Le.focusVisible),style:ge({},st,it(Qe),mt.style),children:y.jsx(yr,ge({"data-index":Qe,"aria-label":re?re(Qe):V,"aria-valuenow":_e(Ce),"aria-labelledby":K,"aria-valuetext":Se?Se(_e(Ce),Qe):G,value:Ie[Qe]},Na))}))}),Qe)})]}))}),Du=e2;function t2(e){return _y("MuiTooltip",e)}const n2=wy("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Kr=n2,r2=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function a2(e){return Math.round(e*1e5)/1e5}const i2=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${dn(i.split("-")[0])}`],arrow:["arrow"]};return Ay(o,t2,t)},o2=Qn(Ny,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>ge({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Kr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kr.arrow}`]:ge({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Kr.arrow}`]:ge({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),s2=Qn("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dn(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ge({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${a2(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Kr.popper}[data-popper-placement*="left"] &`]:ge({transformOrigin:"right center"},t.isRtl?ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ge({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Kr.popper}[data-popper-placement*="right"] &`]:ge({transformOrigin:"left center"},t.isRtl?ge({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Kr.popper}[data-popper-placement*="top"] &`]:ge({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Kr.popper}[data-popper-placement*="bottom"] &`]:ge({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),l2=Qn("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zs=!1,Qc=null,zi={x:0,y:0};function Qs(e,t){return n=>{t&&t(n),e(n)}}const u2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E;const v=Ty({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:R,components:C={},componentsProps:$={},describeChild:N=!1,disableFocusListener:P=!1,disableHoverListener:z=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:K=100,enterNextDelay:X=0,enterTouchDelay:W=700,followCursor:Z=!1,id:D,leaveDelay:ie=0,leaveTouchDelay:ne=1500,onClose:M,onOpen:ye,open:re,placement:Se="bottom",PopperComponent:je,PopperProps:we={},slotProps:ae={},slots:de={},title:ce,TransitionComponent:ee=sx,TransitionProps:_e}=v,me=_u(v,r2),ve=F.isValidElement(R)?R:y.jsx("span",{children:R}),Ue=Tu(),at=Ue.direction==="rtl",[Je,Ht]=F.useState(),[ze,Ge]=F.useState(null),Xe=F.useRef(!1),Ft=V||Z,Wt=F.useRef(),B=F.useRef(),Q=F.useRef(),oe=F.useRef(),[pe,ue]=OI({controlled:re,default:!1,name:"Tooltip",state:"open"});let ke=pe;const Ae=Uj(D),Ie=F.useRef(),We=F.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(oe.current)},[]);F.useEffect(()=>()=>{clearTimeout(Wt.current),clearTimeout(B.current),clearTimeout(Q.current),We()},[We]);const xt=Pe=>{clearTimeout(Qc),Zs=!0,ue(!0),ye&&!ke&&ye(Pe)},it=bl(Pe=>{clearTimeout(Qc),Qc=setTimeout(()=>{Zs=!1},800+ie),ue(!1),M&&ke&&M(Pe),clearTimeout(Wt.current),Wt.current=setTimeout(()=>{Xe.current=!1},Ue.transitions.duration.shortest)}),Le=Pe=>{Xe.current&&Pe.type!=="touchstart"||(Je&&Je.removeAttribute("title"),clearTimeout(B.current),clearTimeout(Q.current),K||Zs&&X?B.current=setTimeout(()=>{xt(Pe)},Zs?X:K):xt(Pe))},It=Pe=>{clearTimeout(B.current),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ie)},{isFocusVisibleRef:gr,onBlur:mr,onFocus:Ze,ref:ia}=gI(),[,br]=F.useState(!1),Fn=Pe=>{mr(Pe),gr.current===!1&&(br(!1),It(Pe))},yr=Pe=>{Je||Ht(Pe.currentTarget),Ze(Pe),gr.current===!0&&(br(!0),Le(Pe))},Bn=Pe=>{Xe.current=!0;const Qt=ve.props;Qt.onTouchStart&&Qt.onTouchStart(Pe)},Un=Le,zn=It,oa=Pe=>{Bn(Pe),clearTimeout(Q.current),clearTimeout(Wt.current),We(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,Le(Pe)},W)},tr=Pe=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(Pe),We(),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ne)};F.useEffect(()=>{if(!ke)return;function Pe(Qt){(Qt.key==="Escape"||Qt.key==="Esc")&&it(Qt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[it,ke]);const Li=Al(ve.ref,ia,Ht,n);!ce&&ce!==0&&(ke=!1);const Gn=F.useRef(),jr=Pe=>{const Qt=ve.props;Qt.onMouseMove&&Qt.onMouseMove(Pe),zi={x:Pe.clientX,y:Pe.clientY},Gn.current&&Gn.current.update()},he={},sa=typeof ce=="string";N?(he.title=!ke&&sa&&!z?ce:null,he["aria-describedby"]=ke?Ae:null):(he["aria-label"]=sa?ce:null,he["aria-labelledby"]=ke&&!sa?Ae:null);const Zt=ge({},he,me,ve.props,{className:Kn(me.className,ve.props.className),onTouchStart:Bn,ref:Li},Z?{onMouseMove:jr}:{}),mt={};G||(Zt.onTouchStart=oa,Zt.onTouchEnd=tr),z||(Zt.onMouseOver=Qs(Un,Zt.onMouseOver),Zt.onMouseLeave=Qs(zn,Zt.onMouseLeave),Ft||(mt.onMouseOver=Un,mt.onMouseLeave=zn)),P||(Zt.onFocus=Qs(yr,Zt.onFocus),Zt.onBlur=Qs(Fn,Zt.onBlur),Ft||(mt.onFocus=yr,mt.onBlur=Fn));const la=F.useMemo(()=>{var Pe;let Qt=[{name:"arrow",enabled:!!ze,options:{element:ze,padding:4}}];return(Pe=we.popperOptions)!=null&&Pe.modifiers&&(Qt=Qt.concat(we.popperOptions.modifiers)),ge({},we.popperOptions,{modifiers:Qt})},[ze,we]),Me=ge({},v,{isRtl:at,arrow:O,disableInteractive:Ft,placement:Se,PopperComponentProp:je,touch:Xe.current}),gn=i2(Me),Na=(r=(a=de.popper)!=null?a:C.Popper)!=null?r:o2,Ce=(i=(o=(s=de.transition)!=null?s:C.Transition)!=null?o:ee)!=null?i:sx,Qe=(l=(u=de.tooltip)!=null?u:C.Tooltip)!=null?l:s2,Bt=(c=(p=de.arrow)!=null?p:C.Arrow)!=null?c:l2,st=Hs(Na,ge({},we,(f=ae.popper)!=null?f:$.popper,{className:Kn(gn.popper,we==null?void 0:we.className,(h=(m=ae.popper)!=null?m:$.popper)==null?void 0:h.className)}),Me),bt=Hs(Ce,ge({},_e,(b=ae.transition)!=null?b:$.transition),Me),qn=Hs(Qe,ge({},(S=ae.tooltip)!=null?S:$.tooltip,{className:Kn(gn.tooltip,(T=(_=ae.tooltip)!=null?_:$.tooltip)==null?void 0:T.className)}),Me),vr=Hs(Bt,ge({},(x=ae.arrow)!=null?x:$.arrow,{className:Kn(gn.arrow,(A=(E=ae.arrow)!=null?E:$.arrow)==null?void 0:A.className)}),Me);return y.jsxs(F.Fragment,{children:[F.cloneElement(ve,Zt),y.jsx(Na,ge({as:je??Ny,placement:Se,anchorEl:Z?{getBoundingClientRect:()=>({top:zi.y,left:zi.x,right:zi.x,bottom:zi.y,width:0,height:0})}:Je,popperRef:Gn,open:Je?ke:!1,id:Ae,transition:!0},mt,st,{popperOptions:la,children:({TransitionProps:Pe})=>y.jsx(Ce,ge({timeout:Ue.transitions.duration.shorter},Pe,bt,{children:y.jsxs(Qe,ge({},qn,{children:[ce,O?y.jsx(Bt,ge({},vr,{ref:Ge})):null]}))}))}))]})}),c2=u2,d2=(e,t="down")=>{const n=Tu(),[r,a]=F.useState(!1),i=n.breakpoints[t](e).split("@media")[1].trim();return F.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),r},p2=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function f2(e){return e.tldr_topic??e.name}var Ol=globalThis&&globalThis.__assign||function(){return Ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n({autoCorrect:"off",autoComplete:"off"}))` +import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s as Qn,n as U$,i as dn,e as xo,u as Ty,_ as _u,f as Kn,h as Ay,m as Tu,a2 as z$,a3 as G$,a4 as iI,t as H,v as j,a5 as oI,K as Au,F as q,q as Mn,z as ds,a6 as sI,T as vt,a7 as q$,w as lr,y as Pt,A as lI,a8 as _i,a9 as At,aa as H$,g as St,J as uI,N as cI,ab as W$,ac as dI,M as V$,ad as pI,ae as fI,af as Ti,ag as Fe,R as Y,ah as Y$,ai as K$,aj as X$,ak as ku,al as Z$,am as Q$,an as J$,ao as ej,ap as hI,aq as tj,ar as Ou,as as nj,at as rj,au as aj,av as ix,C as ij,B as bn,aw as oj,ax as sj}from"./index-e8b9ad93.js";import{w as wa,x as gI,y as Al,z as lj,G as bl,J as yl,K as Yc,L as mI,Q as uj,R as cj,U as dj,V as ox,W as vl,X as zr,Y as sx,Z as Hs,$ as ky,a0 as pj,a1 as fj,a2 as bI,a3 as hj,r as Oy,a4 as yI,i as Jn,T as Ai,a5 as Pr,a6 as vI,a7 as gj,a8 as ps,a9 as mj,aa as Iy,ab as Iu,ac as Ry,B as qt,ad as bj,ae as SI,af as xI,ag as yj,t as vj,ah as EI,ai as wI,aj as Sj,ak as xj,u as Ym,al as Ru,am as Ej,an as wj,ao as _j,ap as Tj,aq as Cy,ar as Aj,as as kj,at as Oj,P as Re,e as Kt,au as _I,av as Ij,aw as TI,ax as Rj,ay as Cj,az as Cu,aA as Nj,aB as Dj,aC as Lj,aD as Mj,aE as Pj,f as $j,aF as jj,aG as AI,aH as Fj}from"./index-ffdb9bac.js";import{c as Bj,a as Kc,C as Nu}from"./ClipLoader-e6af0d5e.js";import{S as kI}from"./Skeleton-7010430a.js";import{u as OI,P as Ny,a as Uj,F as zj}from"./Stack-c617158d.js";import{S as Gj,F as lx,i as fs,g as Dn,t as qj,_ as II,a as Hj,b as Wj,c as Ta,d as Dy,e as Vj,f as Yj,h as Kj,j as hs,m as Xj,k as Zj,l as Qj,n as RI,o as Jj,p as eF}from"./map-470fc2ef.js";import{c as Ly}from"./createSvgIcon-ea6ddcd6.js";import{B as tF}from"./index-6a2d3502.js";import{u as CI}from"./index-a8a8b0eb.js";import{b as nF,a as rF,c as aF,d as iF}from"./index.esm-55abcd0d.js";const ux="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",oF=async e=>{let t=await qa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await qa.keysend(ux,e),!(t!=null&&t.success)){if(t=await qa.topup(),t||(t=await qa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await oF(t),r={amount:t,refid:e};return await aI.post("/boost",JSON.stringify(r)),n},lF=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},NI=(e,t)=>{if(!t)return null;const n=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),r=ax.groupBy(n,i=>i.timestamp),a=ax.values(r).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,f;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((f=o.timestamp)==null?void 0:f.split("-"))||[""],u=wa(s),c=wa(l);return u-c}),a},uF=async e=>{await B$(async()=>{try{await qa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},cF=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},dF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},pF=dF;function fF(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const hF=2;function DI(e,t){return e-t}function Ui(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function cx(e,t){var n;const{index:r}=(n=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===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}%`})}},vF=e=>e;let Ks;function Xc(){return Ks===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ks=CSS.supports("touch-action","none"):Ks=!0),Ks}function SF(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:p,orientation:f="horizontal",rootRef:h,scale:m=vF,step:b=1,tabIndex:S,value:T}=e,_=F.useRef(),[x,A]=F.useState(-1),[E,v]=F.useState(-1),[O,R]=F.useState(!1),C=F.useRef(0),[$,N]=OI({controlled:T,default:n??l,name:"Slider"}),P=c&&((B,Q,oe)=>{const pe=B.nativeEvent||B,ue=new pe.constructor(pe.type,pe);Object.defineProperty(ue,"target",{writable:!0,value:{value:Q,name:u}}),c(ue,Q,oe)}),z=Array.isArray($);let V=z?$.slice().sort(DI):[$];V=V.map(B=>Ui(B,l,s));const G=o===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((B,Q)=>({value:l+b*Q})):o||[],K=G.map(B=>B.value),{isFocusVisibleRef:X,onBlur:W,onFocus:Z,ref:D}=gI(),[ie,ne]=F.useState(-1),M=F.useRef(),ye=Al(D,M),re=Al(h,ye),Se=B=>Q=>{var oe;const pe=Number(Q.currentTarget.getAttribute("data-index"));Z(Q),X.current===!0&&ne(pe),v(pe),B==null||(oe=B.onFocus)==null||oe.call(B,Q)},je=B=>Q=>{var oe;W(Q),X.current===!1&&ne(-1),v(-1),B==null||(oe=B.onBlur)==null||oe.call(B,Q)};lj(()=>{if(r&&M.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&x!==-1&&A(-1),r&&ie!==-1&&ne(-1);const we=B=>Q=>{var oe;(oe=B.onChange)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index")),ue=V[pe],ke=K.indexOf(ue);let Ae=Q.target.valueAsNumber;if(G&&b==null){const Ie=K[K.length-1];Ae>Ie?Ae=Ie:Ae{const{current:oe}=M,{width:pe,height:ue,bottom:ke,left:Ae}=oe.getBoundingClientRect();let Ie;de.indexOf("vertical")===0?Ie=(ke-B.y)/ue:Ie=(B.x-Ae)/pe,de.indexOf("-reverse")!==-1&&(Ie=1-Ie);let We;if(We=gF(Ie,l,s),b)We=bF(We,b,l);else{const it=cx(K,We);We=K[it]}We=Ui(We,l,s);let xt=0;if(z){Q?xt=ae.current:xt=cx(V,We),a&&(We=Ui(We,V[xt-1]||-1/0,V[xt+1]||1/0));const it=We;We=dx({values:V,newValue:We,index:xt}),a&&Q||(xt=We.indexOf(it),ae.current=xt)}return{newValue:We,activeIndex:xt}},ee=bl(B=>{const Q=Ws(B,_);if(!Q)return;if(C.current+=1,B.type==="mousemove"&&B.buttons===0){_e(B);return}const{newValue:oe,activeIndex:pe}=ce({finger:Q,move:!0});Vs({sliderRef:M,activeIndex:pe,setActive:A}),N(oe),!O&&C.current>hF&&R(!0),P&&!Ys(oe,$)&&P(B,oe,pe)}),_e=bl(B=>{const Q=Ws(B,_);if(R(!1),!Q)return;const{newValue:oe}=ce({finger:Q,move:!0});A(-1),B.type==="touchend"&&v(-1),p&&p(B,oe),_.current=void 0,ve()}),me=bl(B=>{if(r)return;Xc()||B.preventDefault();const Q=B.changedTouches[0];Q!=null&&(_.current=Q.identifier);const oe=Ws(B,_);if(oe!==!1){const{newValue:ue,activeIndex:ke}=ce({finger:oe});Vs({sliderRef:M,activeIndex:ke,setActive:A}),N(ue),P&&!Ys(ue,$)&&P(B,ue,ke)}C.current=0;const pe=yl(M.current);pe.addEventListener("touchmove",ee),pe.addEventListener("touchend",_e)}),ve=F.useCallback(()=>{const B=yl(M.current);B.removeEventListener("mousemove",ee),B.removeEventListener("mouseup",_e),B.removeEventListener("touchmove",ee),B.removeEventListener("touchend",_e)},[_e,ee]);F.useEffect(()=>{const{current:B}=M;return B.addEventListener("touchstart",me,{passive:Xc()}),()=>{B.removeEventListener("touchstart",me,{passive:Xc()}),ve()}},[ve,me]),F.useEffect(()=>{r&&ve()},[r,ve]);const Ue=B=>Q=>{var oe;if((oe=B.onMouseDown)==null||oe.call(B,Q),r||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const pe=Ws(Q,_);if(pe!==!1){const{newValue:ke,activeIndex:Ae}=ce({finger:pe});Vs({sliderRef:M,activeIndex:Ae,setActive:A}),N(ke),P&&!Ys(ke,$)&&P(Q,ke,Ae)}C.current=0;const ue=yl(M.current);ue.addEventListener("mousemove",ee),ue.addEventListener("mouseup",_e)},at=kl(z?V[0]:l,l,s),Je=kl(V[V.length-1],l,s)-at,Ht=(B={})=>{const Q=Yc(B),oe={onMouseDown:Ue(Q||{})},pe=ge({},Q,oe);return ge({},B,{ref:re},pe)},ze=B=>Q=>{var oe;(oe=B.onMouseOver)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index"));v(pe)},Ge=B=>Q=>{var oe;(oe=B.onMouseLeave)==null||oe.call(B,Q),v(-1)};return{active:x,axis:de,axisProps:yF,dragging:O,focusedThumbIndex:ie,getHiddenInputProps:(B={})=>{var Q;const oe=Yc(B),pe={onChange:we(oe||{}),onFocus:Se(oe||{}),onBlur:je(oe||{})},ue=ge({},oe,pe);return ge({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(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},B,ue,{style:ge({},pF,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ht,getThumbProps:(B={})=>{const Q=Yc(B),oe={onMouseOver:ze(Q||{}),onMouseLeave:Ge(Q||{})};return ge({},B,Q,oe)},marks:G,open:E,range:z,rootRef:re,trackLeap:Je,trackOffset:at,values:V,getThumbStyle:B=>({pointerEvents:x!==-1&&x!==B?"none":void 0})}}const xF=Ly(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"),EF=Ly(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"),wF=Ly(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 _F(e){return _y("MuiCheckbox",e)}const TF=wy("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Zc=TF,AF=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kF=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${dn(r)}`,`size${dn(a)}`]},o=Ay(i,_F,t);return ge({},t,o)},OF=Qn(Gj,{shouldForwardProp:e=>U$(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${dn(n.size)}`],n.color!=="default"&&t[`color${dn(n.color)}`]]}})(({theme:e,ownerState:t})=>ge({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})`:xo(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zc.checked}, &.${Zc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),IF=y.jsx(EF,{}),RF=y.jsx(xF,{}),CF=y.jsx(wF,{}),NF=F.forwardRef(function(t,n){var r,a;const i=Ty({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IF,color:s="primary",icon:l=RF,indeterminate:u=!1,indeterminateIcon:c=CF,inputProps:p,size:f="medium",className:h}=i,m=_u(i,AF),b=u?c:l,S=u?c:o,T=ge({},i,{color:s,indeterminate:u,size:f}),_=kF(T);return y.jsx(OF,ge({type:"checkbox",inputProps:ge({"data-indeterminate":u},p),icon:F.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:f}),checkedIcon:F.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:f}),ownerState:T,ref:n,className:Kn(_.root,h)},m,{classes:_}))}),DF=NF,LF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MF(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=mI(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=i.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"?a?`translateX(${a.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function PF(e){return typeof e=="function"?e():e}function Xs(e,t,n){const r=PF(n),a=MF(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $F=F.forwardRef(function(t,n){const r=Tu(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:c="down",easing:p=a,in:f,onEnter:h,onEntered:m,onEntering:b,onExit:S,onExited:T,onExiting:_,style:x,timeout:A=i,TransitionComponent:E=uj}=t,v=_u(t,LF),O=F.useRef(null),R=Al(l.ref,O,n),C=W=>Z=>{W&&(Z===void 0?W(O.current):W(O.current,Z))},$=C((W,Z)=>{Xs(c,W,u),dj(W),h&&h(W,Z)}),N=C((W,Z)=>{const D=ox({timeout:A,style:x,easing:p},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",ge({},D)),W.style.transition=r.transitions.create("transform",ge({},D)),W.style.webkitTransform="none",W.style.transform="none",b&&b(W,Z)}),P=C(m),z=C(_),V=C(W=>{const Z=ox({timeout:A,style:x,easing:p},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",Z),W.style.transition=r.transitions.create("transform",Z),Xs(c,W,u),S&&S(W)}),G=C(W=>{W.style.webkitTransition="",W.style.transition="",T&&T(W)}),K=W=>{o&&o(O.current,W)},X=F.useCallback(()=>{O.current&&Xs(c,O.current,u)},[c,u]);return F.useEffect(()=>{if(f||c==="down"||c==="right")return;const W=cj(()=>{O.current&&Xs(c,O.current,u)}),Z=mI(O.current);return Z.addEventListener("resize",W),()=>{W.clear(),Z.removeEventListener("resize",W)}},[c,f,u]),F.useEffect(()=>{f||X()},[f,X]),y.jsx(E,ge({nodeRef:O,onEnter:$,onEntered:P,onEntering:N,onExit:V,onExited:G,onExiting:z,addEndListener:K,appear:s,in:f,timeout:A},v,{children:(W,Z)=>F.cloneElement(l,ge({ref:R,style:ge({visibility:W==="exited"&&!f?"hidden":void 0},x,l.props.style)},Z))}))}),ni=$F,jF=e=>!e||!vl(e),FF=jF;function BF(e){return _y("MuiSlider",e)}const UF=wy("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"]),Xn=UF,zF=e=>{const{open:t}=e;return{offset:Kn(t&&Xn.valueLabelOpen),circle:Xn.valueLabelCircle,label:Xn.valueLabelLabel}};function GF(e){const{children:t,className:n,value:r}=e,a=zF(e);return t?F.cloneElement(t,{className:Kn(t.props.className)},y.jsxs(F.Fragment,{children:[t.props.children,y.jsx("span",{className:Kn(a.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:a.circle,children:y.jsx("span",{className:a.label,children:r})})})]})):null}const qF=["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 px(e){return e}const HF=Qn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dn(n.color)}`],n.size!=="medium"&&t[`size${dn(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})=>ge({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"&&ge({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"&&ge({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"},[`&.${Xn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xn.dragging}`]:{[`& .${Xn.thumb}, & .${Xn.track}`]:{transition:"none"}}})),WF=Qn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ge({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})),VF=Qn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?z$(e.palette[t.color].main,.62):G$(e.palette[t.color].main,.5);return ge({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})}),YF=Qn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${dn(n.color)}`],n.size!=="medium"&&t[`thumbSize${dn(n.size)}`]]}})(({theme:e,ownerState:t})=>ge({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":ge({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, &.${Xn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Xn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`},[`&.${Xn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),KF=Qn(GF,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ge({[`&.${Xn.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"})),XF=Qn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>iI(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>ge({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})),ZF=Qn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>iI(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>ge({},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})),QF=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${dn(s)}`,l&&`size${dn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${dn(l)}`,s&&`thumbColor${dn(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ay(u,BF,o)},JF=({children:e})=>e,e2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E,v,O,R,C,$;const N=Ty({props:t,name:"MuiSlider"}),z=Tu().direction==="rtl",{"aria-label":V,"aria-valuetext":G,"aria-labelledby":K,component:X="span",components:W={},componentsProps:Z={},color:D="primary",classes:ie,className:ne,disableSwap:M=!1,disabled:ye=!1,getAriaLabel:re,getAriaValueText:Se,marks:je=!1,max:we=100,min:ae=0,orientation:de="horizontal",size:ce="medium",step:ee=1,scale:_e=px,slotProps:me,slots:ve,track:Ue="normal",valueLabelDisplay:at="off",valueLabelFormat:Je=px}=N,Ht=_u(N,qF),ze=ge({},N,{isRtl:z,max:we,min:ae,classes:ie,disabled:ye,disableSwap:M,orientation:de,marks:je,color:D,size:ce,step:ee,scale:_e,track:Ue,valueLabelDisplay:at,valueLabelFormat:Je}),{axisProps:Ge,getRootProps:Xe,getHiddenInputProps:Ft,getThumbProps:Wt,open:B,active:Q,axis:oe,focusedThumbIndex:pe,range:ue,dragging:ke,marks:Ae,values:Ie,trackOffset:We,trackLeap:xt,getThumbStyle:it}=SF(ge({},ze,{rootRef:n}));ze.marked=Ae.length>0&&Ae.some(Ce=>Ce.label),ze.dragging=ke,ze.focusedThumbIndex=pe;const Le=QF(ze),It=(r=(a=ve==null?void 0:ve.root)!=null?a:W.Root)!=null?r:HF,gr=(i=(o=ve==null?void 0:ve.rail)!=null?o:W.Rail)!=null?i:WF,mr=(s=(l=ve==null?void 0:ve.track)!=null?l:W.Track)!=null?s:VF,Ze=(u=(c=ve==null?void 0:ve.thumb)!=null?c:W.Thumb)!=null?u:YF,ia=(p=(f=ve==null?void 0:ve.valueLabel)!=null?f:W.ValueLabel)!=null?p:KF,br=(h=(m=ve==null?void 0:ve.mark)!=null?m:W.Mark)!=null?h:XF,Fn=(b=(S=ve==null?void 0:ve.markLabel)!=null?S:W.MarkLabel)!=null?b:ZF,yr=(T=(_=ve==null?void 0:ve.input)!=null?_:W.Input)!=null?T:"input",Bn=(x=me==null?void 0:me.root)!=null?x:Z.root,Un=(A=me==null?void 0:me.rail)!=null?A:Z.rail,zn=(E=me==null?void 0:me.track)!=null?E:Z.track,oa=(v=me==null?void 0:me.thumb)!=null?v:Z.thumb,tr=(O=me==null?void 0:me.valueLabel)!=null?O:Z.valueLabel,Li=(R=me==null?void 0:me.mark)!=null?R:Z.mark,Gn=(C=me==null?void 0:me.markLabel)!=null?C:Z.markLabel,jr=($=me==null?void 0:me.input)!=null?$:Z.input,he=zr({elementType:It,getSlotProps:Xe,externalSlotProps:Bn,externalForwardedProps:Ht,additionalProps:ge({},FF(It)&&{as:X}),ownerState:ge({},ze,Bn==null?void 0:Bn.ownerState),className:[Le.root,ne]}),sa=zr({elementType:gr,externalSlotProps:Un,ownerState:ze,className:Le.rail}),Zt=zr({elementType:mr,externalSlotProps:zn,additionalProps:{style:ge({},Ge[oe].offset(We),Ge[oe].leap(xt))},ownerState:ge({},ze,zn==null?void 0:zn.ownerState),className:Le.track}),mt=zr({elementType:Ze,getSlotProps:Wt,externalSlotProps:oa,ownerState:ge({},ze,oa==null?void 0:oa.ownerState),className:Le.thumb}),la=zr({elementType:ia,externalSlotProps:tr,ownerState:ge({},ze,tr==null?void 0:tr.ownerState),className:Le.valueLabel}),Me=zr({elementType:br,externalSlotProps:Li,ownerState:ze,className:Le.mark}),gn=zr({elementType:Fn,externalSlotProps:Gn,ownerState:ze,className:Le.markLabel}),Na=zr({elementType:yr,getSlotProps:Ft,externalSlotProps:jr,ownerState:ze});return y.jsxs(It,ge({},he,{children:[y.jsx(gr,ge({},sa)),y.jsx(mr,ge({},Zt)),Ae.filter(Ce=>Ce.value>=ae&&Ce.value<=we).map((Ce,Qe)=>{const Bt=kl(Ce.value,ae,we),st=Ge[oe].offset(Bt);let bt;return Ue===!1?bt=Ie.indexOf(Ce.value)!==-1:bt=Ue==="normal"&&(ue?Ce.value>=Ie[0]&&Ce.value<=Ie[Ie.length-1]:Ce.value<=Ie[0])||Ue==="inverted"&&(ue?Ce.value<=Ie[0]||Ce.value>=Ie[Ie.length-1]:Ce.value>=Ie[0]),y.jsxs(F.Fragment,{children:[y.jsx(br,ge({"data-index":Qe},Me,!vl(br)&&{markActive:bt},{style:ge({},st,Me.style),className:Kn(Me.className,bt&&Le.markActive)})),Ce.label!=null?y.jsx(Fn,ge({"aria-hidden":!0,"data-index":Qe},gn,!vl(Fn)&&{markLabelActive:bt},{style:ge({},st,gn.style),className:Kn(Le.markLabel,gn.className,bt&&Le.markLabelActive),children:Ce.label})):null]},Qe)}),Ie.map((Ce,Qe)=>{const Bt=kl(Ce,ae,we),st=Ge[oe].offset(Bt),bt=at==="off"?JF:ia;return y.jsx(bt,ge({},!vl(bt)&&{valueLabelFormat:Je,valueLabelDisplay:at,value:typeof Je=="function"?Je(_e(Ce),Qe):Je,index:Qe,open:B===Qe||Q===Qe||at==="on",disabled:ye},la,{children:y.jsx(Ze,ge({"data-index":Qe},mt,{className:Kn(Le.thumb,mt.className,Q===Qe&&Le.active,pe===Qe&&Le.focusVisible),style:ge({},st,it(Qe),mt.style),children:y.jsx(yr,ge({"data-index":Qe,"aria-label":re?re(Qe):V,"aria-valuenow":_e(Ce),"aria-labelledby":K,"aria-valuetext":Se?Se(_e(Ce),Qe):G,value:Ie[Qe]},Na))}))}),Qe)})]}))}),Du=e2;function t2(e){return _y("MuiTooltip",e)}const n2=wy("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Kr=n2,r2=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function a2(e){return Math.round(e*1e5)/1e5}const i2=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${dn(i.split("-")[0])}`],arrow:["arrow"]};return Ay(o,t2,t)},o2=Qn(Ny,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>ge({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Kr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kr.arrow}`]:ge({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Kr.arrow}`]:ge({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),s2=Qn("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dn(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ge({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${a2(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Kr.popper}[data-popper-placement*="left"] &`]:ge({transformOrigin:"right center"},t.isRtl?ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ge({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Kr.popper}[data-popper-placement*="right"] &`]:ge({transformOrigin:"left center"},t.isRtl?ge({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Kr.popper}[data-popper-placement*="top"] &`]:ge({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Kr.popper}[data-popper-placement*="bottom"] &`]:ge({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),l2=Qn("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zs=!1,Qc=null,zi={x:0,y:0};function Qs(e,t){return n=>{t&&t(n),e(n)}}const u2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E;const v=Ty({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:R,components:C={},componentsProps:$={},describeChild:N=!1,disableFocusListener:P=!1,disableHoverListener:z=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:K=100,enterNextDelay:X=0,enterTouchDelay:W=700,followCursor:Z=!1,id:D,leaveDelay:ie=0,leaveTouchDelay:ne=1500,onClose:M,onOpen:ye,open:re,placement:Se="bottom",PopperComponent:je,PopperProps:we={},slotProps:ae={},slots:de={},title:ce,TransitionComponent:ee=sx,TransitionProps:_e}=v,me=_u(v,r2),ve=F.isValidElement(R)?R:y.jsx("span",{children:R}),Ue=Tu(),at=Ue.direction==="rtl",[Je,Ht]=F.useState(),[ze,Ge]=F.useState(null),Xe=F.useRef(!1),Ft=V||Z,Wt=F.useRef(),B=F.useRef(),Q=F.useRef(),oe=F.useRef(),[pe,ue]=OI({controlled:re,default:!1,name:"Tooltip",state:"open"});let ke=pe;const Ae=Uj(D),Ie=F.useRef(),We=F.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(oe.current)},[]);F.useEffect(()=>()=>{clearTimeout(Wt.current),clearTimeout(B.current),clearTimeout(Q.current),We()},[We]);const xt=Pe=>{clearTimeout(Qc),Zs=!0,ue(!0),ye&&!ke&&ye(Pe)},it=bl(Pe=>{clearTimeout(Qc),Qc=setTimeout(()=>{Zs=!1},800+ie),ue(!1),M&&ke&&M(Pe),clearTimeout(Wt.current),Wt.current=setTimeout(()=>{Xe.current=!1},Ue.transitions.duration.shortest)}),Le=Pe=>{Xe.current&&Pe.type!=="touchstart"||(Je&&Je.removeAttribute("title"),clearTimeout(B.current),clearTimeout(Q.current),K||Zs&&X?B.current=setTimeout(()=>{xt(Pe)},Zs?X:K):xt(Pe))},It=Pe=>{clearTimeout(B.current),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ie)},{isFocusVisibleRef:gr,onBlur:mr,onFocus:Ze,ref:ia}=gI(),[,br]=F.useState(!1),Fn=Pe=>{mr(Pe),gr.current===!1&&(br(!1),It(Pe))},yr=Pe=>{Je||Ht(Pe.currentTarget),Ze(Pe),gr.current===!0&&(br(!0),Le(Pe))},Bn=Pe=>{Xe.current=!0;const Qt=ve.props;Qt.onTouchStart&&Qt.onTouchStart(Pe)},Un=Le,zn=It,oa=Pe=>{Bn(Pe),clearTimeout(Q.current),clearTimeout(Wt.current),We(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,Le(Pe)},W)},tr=Pe=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(Pe),We(),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ne)};F.useEffect(()=>{if(!ke)return;function Pe(Qt){(Qt.key==="Escape"||Qt.key==="Esc")&&it(Qt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[it,ke]);const Li=Al(ve.ref,ia,Ht,n);!ce&&ce!==0&&(ke=!1);const Gn=F.useRef(),jr=Pe=>{const Qt=ve.props;Qt.onMouseMove&&Qt.onMouseMove(Pe),zi={x:Pe.clientX,y:Pe.clientY},Gn.current&&Gn.current.update()},he={},sa=typeof ce=="string";N?(he.title=!ke&&sa&&!z?ce:null,he["aria-describedby"]=ke?Ae:null):(he["aria-label"]=sa?ce:null,he["aria-labelledby"]=ke&&!sa?Ae:null);const Zt=ge({},he,me,ve.props,{className:Kn(me.className,ve.props.className),onTouchStart:Bn,ref:Li},Z?{onMouseMove:jr}:{}),mt={};G||(Zt.onTouchStart=oa,Zt.onTouchEnd=tr),z||(Zt.onMouseOver=Qs(Un,Zt.onMouseOver),Zt.onMouseLeave=Qs(zn,Zt.onMouseLeave),Ft||(mt.onMouseOver=Un,mt.onMouseLeave=zn)),P||(Zt.onFocus=Qs(yr,Zt.onFocus),Zt.onBlur=Qs(Fn,Zt.onBlur),Ft||(mt.onFocus=yr,mt.onBlur=Fn));const la=F.useMemo(()=>{var Pe;let Qt=[{name:"arrow",enabled:!!ze,options:{element:ze,padding:4}}];return(Pe=we.popperOptions)!=null&&Pe.modifiers&&(Qt=Qt.concat(we.popperOptions.modifiers)),ge({},we.popperOptions,{modifiers:Qt})},[ze,we]),Me=ge({},v,{isRtl:at,arrow:O,disableInteractive:Ft,placement:Se,PopperComponentProp:je,touch:Xe.current}),gn=i2(Me),Na=(r=(a=de.popper)!=null?a:C.Popper)!=null?r:o2,Ce=(i=(o=(s=de.transition)!=null?s:C.Transition)!=null?o:ee)!=null?i:sx,Qe=(l=(u=de.tooltip)!=null?u:C.Tooltip)!=null?l:s2,Bt=(c=(p=de.arrow)!=null?p:C.Arrow)!=null?c:l2,st=Hs(Na,ge({},we,(f=ae.popper)!=null?f:$.popper,{className:Kn(gn.popper,we==null?void 0:we.className,(h=(m=ae.popper)!=null?m:$.popper)==null?void 0:h.className)}),Me),bt=Hs(Ce,ge({},_e,(b=ae.transition)!=null?b:$.transition),Me),qn=Hs(Qe,ge({},(S=ae.tooltip)!=null?S:$.tooltip,{className:Kn(gn.tooltip,(T=(_=ae.tooltip)!=null?_:$.tooltip)==null?void 0:T.className)}),Me),vr=Hs(Bt,ge({},(x=ae.arrow)!=null?x:$.arrow,{className:Kn(gn.arrow,(A=(E=ae.arrow)!=null?E:$.arrow)==null?void 0:A.className)}),Me);return y.jsxs(F.Fragment,{children:[F.cloneElement(ve,Zt),y.jsx(Na,ge({as:je??Ny,placement:Se,anchorEl:Z?{getBoundingClientRect:()=>({top:zi.y,left:zi.x,right:zi.x,bottom:zi.y,width:0,height:0})}:Je,popperRef:Gn,open:Je?ke:!1,id:Ae,transition:!0},mt,st,{popperOptions:la,children:({TransitionProps:Pe})=>y.jsx(Ce,ge({timeout:Ue.transitions.duration.shorter},Pe,bt,{children:y.jsxs(Qe,ge({},qn,{children:[ce,O?y.jsx(Bt,ge({},vr,{ref:Ge})):null]}))}))}))]})}),c2=u2,d2=(e,t="down")=>{const n=Tu(),[r,a]=F.useState(!1),i=n.breakpoints[t](e).split("@media")[1].trim();return F.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),r},p2=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function f2(e){return e.tldr_topic??e.name}var Ol=globalThis&&globalThis.__assign||function(){return Ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -1957,7 +1957,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,Zfe=H.audio` height: 0; width: 0; -`,Qfe=()=>{const e=Kt(),{setPlayingNode:t}=Cu(n=>n);switch(F.useEffect(()=>{var r,a;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(Ure,{});case"data_series":return y.jsx(Bne,{});case"tribe_message":return y.jsx($re,{});case"Tweet":return y.jsx(Zre,{});case"topic":return y.jsx(Xre,{});case"show":return y.jsx(Kre,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(YN,{});case"document":return y.jsx(Wfe,{});case"episode":return y.jsx(Nre,{},e.ref_id);case"image":return y.jsx(Pre,{});default:return y.jsx(Lfe,{})}},Jfe=F.memo(Qfe);var ehe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&the(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?XO:nhe;o(i,r),i.onload||XO(i,r),a.appendChild(i)};function the(e,t){for(var n in t)e.setAttribute(n,t[n])}function XO(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 nhe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rhe=function(t){return ahe(t)&&!ihe(t)};function ahe(e){return!!e&&typeof e=="object"}function ihe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||lhe(e)}var ohe=typeof Symbol=="function"&&Symbol.for,she=ohe?Symbol.for("react.element"):60103;function lhe(e){return e.$$typeof===she}function uhe(e){return Array.isArray(e)?[]:{}}function cs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wi(uhe(e),e,t):e}function che(e,t,n){return e.concat(t).map(function(r){return cs(r,n)})}function dhe(e,t){if(!t.customMerge)return wi;var n=t.customMerge(e);return typeof n=="function"?n:wi}function phe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ZO(e){return Object.keys(e).concat(phe(e))}function CD(e,t){try{return t in e}catch{return!1}}function fhe(e,t){return CD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function hhe(e,t,n){var r={};return n.isMergeableObject(e)&&ZO(e).forEach(function(a){r[a]=cs(e[a],n)}),ZO(t).forEach(function(a){fhe(e,a)||(CD(e,a)&&n.isMergeableObject(t[a])?r[a]=dhe(a,n)(e[a],t[a],n):r[a]=cs(t[a],n))}),r}function wi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||che,n.isMergeableObject=n.isMergeableObject||rhe,n.cloneUnlessOtherwiseSpecified=cs;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):hhe(e,t,n):cs(t,n)}wi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return wi(r,a,n)},{})};var ghe=wi,ND=ghe,mhe=Object.create,Ac=Object.defineProperty,bhe=Object.getOwnPropertyDescriptor,yhe=Object.getOwnPropertyNames,vhe=Object.getPrototypeOf,She=Object.prototype.hasOwnProperty,xhe=(e,t)=>{for(var n in t)Ac(e,n,{get:t[n],enumerable:!0})},DD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yhe(t))!She.call(e,a)&&a!==n&&Ac(e,a,{get:()=>t[a],enumerable:!(r=bhe(t,a))||r.enumerable});return e},gS=(e,t,n)=>(n=e!=null?mhe(vhe(e)):{},DD(t||!e||!e.__esModule?Ac(n,"default",{value:e,enumerable:!0}):n,e)),Ehe=e=>DD(Ac({},"__esModule",{value:!0}),e),LD={};xhe(LD,{callPlayer:()=>jhe,getConfig:()=>Phe,getSDK:()=>Mhe,isBlobUrl:()=>Bhe,isMediaStream:()=>Fhe,lazy:()=>Ahe,omit:()=>$he,parseEndTime:()=>Nhe,parseStartTime:()=>Che,queryString:()=>Lhe,randomString:()=>Dhe,supportsWebKitPresentationMode:()=>Uhe});var kc=Ehe(LD),whe=gS(F),_he=gS(ehe),The=gS(ND);const Ahe=e=>whe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),khe=/[?&#](?:start|t)=([0-9hms]+)/,Ohe=/[?&#]end=([0-9hms]+)/,vy=/(\d+)(h|m|s)/g,Ihe=/^\d+$/;function MD(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(vy))return Rhe(r);if(Ihe.test(r))return parseInt(r)}}function Rhe(e){let t=0,n=vy.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=vy.exec(e)}return t}function Che(e){return MD(e,khe)}function Nhe(e){return MD(e,Ohe)}function Dhe(){return Math.random().toString(36).substr(2,5)}function Lhe(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Hm(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 za={},Mhe=function(t,n,r=null,a=()=>!0,i=_he.default){const o=Hm(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(za[t]){za[t].push({resolve:s,reject:l});return}za[t]=[{resolve:s,reject:l}];const u=c=>{za[t].forEach(p=>p.resolve(c))};if(r){const c=window[r];window[r]=function(){c&&c(),u(Hm(n))}}i(t,c=>{c?(za[t].forEach(p=>p.reject(c)),za[t]=null):r||u(Hm(n))})})};function Phe(e,t){return(0,The.default)(t.config,e.config)}function $he(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function jhe(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 Fhe(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Bhe(e){return/^blob:/.test(e)}function Uhe(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var mS=Object.defineProperty,zhe=Object.getOwnPropertyDescriptor,Ghe=Object.getOwnPropertyNames,qhe=Object.prototype.hasOwnProperty,Hhe=(e,t)=>{for(var n in t)mS(e,n,{get:t[n],enumerable:!0})},Whe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ghe(t))!qhe.call(e,a)&&a!==n&&mS(e,a,{get:()=>t[a],enumerable:!(r=zhe(t,a))||r.enumerable});return e},Vhe=e=>Whe(mS({},"__esModule",{value:!0}),e),PD={};Hhe(PD,{AUDIO_EXTENSIONS:()=>bS,DASH_EXTENSIONS:()=>KD,FLV_EXTENSIONS:()=>XD,HLS_EXTENSIONS:()=>vS,MATCH_URL_DAILYMOTION:()=>HD,MATCH_URL_FACEBOOK:()=>FD,MATCH_URL_FACEBOOK_WATCH:()=>BD,MATCH_URL_KALTURA:()=>YD,MATCH_URL_MIXCLOUD:()=>WD,MATCH_URL_SOUNDCLOUD:()=>$D,MATCH_URL_STREAMABLE:()=>UD,MATCH_URL_TWITCH_CHANNEL:()=>qD,MATCH_URL_TWITCH_VIDEO:()=>GD,MATCH_URL_VIDYARD:()=>VD,MATCH_URL_VIMEO:()=>jD,MATCH_URL_WISTIA:()=>zD,MATCH_URL_YOUTUBE:()=>Sy,VIDEO_EXTENSIONS:()=>yS,canPlay:()=>Khe});var Yhe=Vhe(PD),QO=kc;const Sy=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,$D=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,jD=/vimeo\.com\/(?!progressive_redirect).+/,FD=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,BD=/^https?:\/\/fb\.watch\/.+$/,UD=/streamable\.com\/([a-z0-9]+)$/,zD=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,GD=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,qD=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,HD=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,WD=/mixcloud\.com\/([^/]+\/[^/]+)/,VD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,YD=/^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-_].*)$/,bS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,yS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,vS=/\.(m3u8)($|\?)/i,KD=/\.(mpd)($|\?)/i,XD=/\.(flv)($|\?)/i,xy=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&xy(t)||xy(t.src))return!0;return!1}return(0,QO.isMediaStream)(e)||(0,QO.isBlobUrl)(e)?!0:bS.test(e)||yS.test(e)||vS.test(e)||KD.test(e)||XD.test(e)},Khe={youtube:e=>e instanceof Array?e.every(t=>Sy.test(t)):Sy.test(e),soundcloud:e=>$D.test(e)&&!bS.test(e),vimeo:e=>jD.test(e)&&!yS.test(e)&&!vS.test(e),facebook:e=>FD.test(e)||BD.test(e),streamable:e=>UD.test(e),wistia:e=>zD.test(e),twitch:e=>GD.test(e)||qD.test(e),dailymotion:e=>HD.test(e),mixcloud:e=>WD.test(e),vidyard:e=>VD.test(e),kaltura:e=>YD.test(e),file:xy};var SS=Object.defineProperty,Xhe=Object.getOwnPropertyDescriptor,Zhe=Object.getOwnPropertyNames,Qhe=Object.prototype.hasOwnProperty,Jhe=(e,t)=>{for(var n in t)SS(e,n,{get:t[n],enumerable:!0})},ege=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zhe(t))!Qhe.call(e,a)&&a!==n&&SS(e,a,{get:()=>t[a],enumerable:!(r=Xhe(t,a))||r.enumerable});return e},tge=e=>ege(SS({},"__esModule",{value:!0}),e),ZD={};Jhe(ZD,{default:()=>rge});var nge=tge(ZD),mn=kc,un=Yhe,rge=[{key:"youtube",name:"YouTube",canPlay:un.canPlay.youtube,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./YouTube-6216f0b1.js").then(e=>e.Y),["assets/YouTube-6216f0b1.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:un.canPlay.soundcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./SoundCloud-33ac1103.js").then(e=>e.S),["assets/SoundCloud-33ac1103.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:un.canPlay.vimeo,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vimeo-b5693b6d.js").then(e=>e.V),["assets/Vimeo-b5693b6d.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:un.canPlay.facebook,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Facebook-456d4b25.js").then(e=>e.F),["assets/Facebook-456d4b25.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:un.canPlay.streamable,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Streamable-21e7b858.js").then(e=>e.S),["assets/Streamable-21e7b858.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:un.canPlay.wistia,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Wistia-2a47e482.js").then(e=>e.W),["assets/Wistia-2a47e482.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:un.canPlay.twitch,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Twitch-e31995e6.js").then(e=>e.T),["assets/Twitch-e31995e6.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:un.canPlay.dailymotion,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./DailyMotion-c9949ba0.js").then(e=>e.D),["assets/DailyMotion-c9949ba0.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:un.canPlay.mixcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Mixcloud-9b4678f3.js").then(e=>e.M),["assets/Mixcloud-9b4678f3.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:un.canPlay.vidyard,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vidyard-2b44b0c8.js").then(e=>e.V),["assets/Vidyard-2b44b0c8.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:un.canPlay.kaltura,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Kaltura-5e92e9ff.js").then(e=>e.K),["assets/Kaltura-5e92e9ff.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:un.canPlay.file,canEnablePIP:e=>un.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,mn.supportsWebKitPresentationMode)())&&!un.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./FilePlayer-e358d3cf.js").then(e=>e.F),["assets/FilePlayer-e358d3cf.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]))}],JO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function age(e,t){return!!(e===t||JO(e)&&JO(t))}function ige(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},JD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gge(t))!bge.call(e,a)&&a!==n&&Oc(e,a,{get:()=>t[a],enumerable:!(r=hge(t,a))||r.enumerable});return e},vge=(e,t,n)=>(n=e!=null?fge(mge(e)):{},JD(t||!e||!e.__esModule?Oc(n,"default",{value:e,enumerable:!0}):n,e)),Sge=e=>JD(Oc({},"__esModule",{value:!0}),e),eL={};yge(eL,{defaultProps:()=>wge,propTypes:()=>Ege});var tL=Sge(eL),xge=vge(Nj);const{string:nn,bool:rn,number:Ga,array:Wm,oneOfType:ro,shape:On,object:an,func:Rt,node:eI}=xge.default,Ege={url:ro([nn,Wm,an]),playing:rn,loop:rn,controls:rn,volume:Ga,muted:rn,playbackRate:Ga,width:ro([nn,Ga]),height:ro([nn,Ga]),style:an,progressInterval:Ga,playsinline:rn,pip:rn,stopOnUnmount:rn,light:ro([rn,nn,an]),playIcon:eI,previewTabIndex:Ga,fallback:eI,oEmbedUrl:nn,wrapper:ro([nn,Rt,On({render:Rt.isRequired})]),config:On({soundcloud:On({options:an}),youtube:On({playerVars:an,embedOptions:an,onUnstarted:Rt}),facebook:On({appId:nn,version:nn,playerId:nn,attributes:an}),dailymotion:On({params:an}),vimeo:On({playerOptions:an,title:nn}),file:On({attributes:an,tracks:Wm,forceVideo:rn,forceAudio:rn,forceHLS:rn,forceSafariHLS:rn,forceDisableHls:rn,forceDASH:rn,forceFLV:rn,hlsOptions:an,hlsVersion:nn,dashVersion:nn,flvVersion:nn}),wistia:On({options:an,playerId:nn,customControls:Wm}),mixcloud:On({options:an}),twitch:On({options:an,playerId:nn}),vidyard:On({options:an})}),onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt},Ut=()=>{},wge={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:Ut},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:Ut,onStart:Ut,onPlay:Ut,onPause:Ut,onBuffer:Ut,onBufferEnd:Ut,onEnded:Ut,onError:Ut,onDuration:Ut,onSeek:Ut,onPlaybackRateChange:Ut,onPlaybackQualityChange:Ut,onProgress:Ut,onClickPreview:Ut,onEnablePIP:Ut,onDisablePIP:Ut};var _ge=Object.create,Rs=Object.defineProperty,Tge=Object.getOwnPropertyDescriptor,Age=Object.getOwnPropertyNames,kge=Object.getPrototypeOf,Oge=Object.prototype.hasOwnProperty,Ige=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rge=(e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:!0})},nL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Age(t))!Oge.call(e,a)&&a!==n&&Rs(e,a,{get:()=>t[a],enumerable:!(r=Tge(t,a))||r.enumerable});return e},rL=(e,t,n)=>(n=e!=null?_ge(kge(e)):{},nL(t||!e||!e.__esModule?Rs(n,"default",{value:e,enumerable:!0}):n,e)),Cge=e=>nL(Rs({},"__esModule",{value:!0}),e),_t=(e,t,n)=>(Ige(e,typeof t!="symbol"?t+"":t,n),n),aL={};Rge(aL,{default:()=>Ic});var Nge=Cge(aL),tI=rL(F),Dge=rL(QD),iL=tL,Lge=kc;const Mge=5e3;class Ic extends tI.Component{constructor(){super(...arguments),_t(this,"mounted",!1),_t(this,"isReady",!1),_t(this,"isPlaying",!1),_t(this,"isLoading",!0),_t(this,"loadOnReady",null),_t(this,"startOnPlay",!0),_t(this,"seekOnPlay",null),_t(this,"onDurationCalled",!1),_t(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),_t(this,"getInternalPlayer",t=>this.player?this.player[t]:null),_t(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),_t(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),_t(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()}),_t(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),_t(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),_t(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),_t(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)}),_t(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:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,Dge.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,Lge.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!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),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},Mge));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?tI.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}}_t(Ic,"displayName","Player");_t(Ic,"propTypes",iL.propTypes);_t(Ic,"defaultProps",iL.defaultProps);var Pge=Object.create,Cs=Object.defineProperty,$ge=Object.getOwnPropertyDescriptor,jge=Object.getOwnPropertyNames,Fge=Object.getPrototypeOf,Bge=Object.prototype.hasOwnProperty,Uge=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zge=(e,t)=>{for(var n in t)Cs(e,n,{get:t[n],enumerable:!0})},oL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jge(t))!Bge.call(e,a)&&a!==n&&Cs(e,a,{get:()=>t[a],enumerable:!(r=$ge(t,a))||r.enumerable});return e},Ns=(e,t,n)=>(n=e!=null?Pge(Fge(e)):{},oL(t||!e||!e.__esModule?Cs(n,"default",{value:e,enumerable:!0}):n,e)),Gge=e=>oL(Cs({},"__esModule",{value:!0}),e),wt=(e,t,n)=>(Uge(e,typeof t!="symbol"?t+"":t,n),n),sL={};zge(sL,{createReactPlayer:()=>Qge});var qge=Gge(sL),Wa=Ns(F),Hge=Ns(ND),Vm=Ns(lge),nI=Ns(QD),co=tL,lL=kc,Wge=Ns(Nge);const Vge=(0,lL.lazy)(()=>bn(()=>import("./Preview-dacf7e68.js").then(e=>e.P),["assets/Preview-dacf7e68.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"])),Yge=typeof window<"u"&&window.document,Kge=typeof At<"u"&&At.window&&At.window.document,Xge=Object.keys(co.propTypes),Zge=Yge||Kge?Wa.Suspense:()=>null,ao=[],Qge=(e,t)=>{var n;return n=class extends Wa.Component{constructor(){super(...arguments),wt(this,"state",{showPreview:!!this.props.light}),wt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),wt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),wt(this,"showPreview",()=>{this.setState({showPreview:!0})}),wt(this,"getDuration",()=>this.player?this.player.getDuration():null),wt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),wt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),wt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),wt(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),wt(this,"handleReady",()=>{this.props.onReady(this)}),wt(this,"getActivePlayer",(0,Vm.default)(r=>{for(const a of[...ao,...e])if(a.canPlay(r))return a;return t||null})),wt(this,"getConfig",(0,Vm.default)((r,a)=>{const{config:i}=this.props;return Hge.default.all([co.defaultProps.config,co.defaultProps.config[a]||{},i,i[a]||{}])})),wt(this,"getAttributes",(0,Vm.default)(r=>(0,lL.omit)(this.props,Xge))),wt(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Wa.default.createElement(Wge.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,nI.default)(this.props,r)||!(0,nI.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return Wa.default.createElement(Vge,{url:r,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,c=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Wa.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...c},Wa.default.createElement(Zge,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},wt(n,"displayName","ReactPlayer"),wt(n,"propTypes",co.propTypes),wt(n,"defaultProps",co.defaultProps),wt(n,"addCustomPlayer",r=>{ao.push(r)}),wt(n,"removeCustomPlayers",()=>{ao.length=0}),wt(n,"canPlay",r=>{for(const a of[...ao,...e])if(a.canPlay(r))return!0;return!1}),wt(n,"canEnablePIP",r=>{for(const a of[...ao,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var Jge=Object.create,Rc=Object.defineProperty,eme=Object.getOwnPropertyDescriptor,tme=Object.getOwnPropertyNames,nme=Object.getPrototypeOf,rme=Object.prototype.hasOwnProperty,ame=(e,t)=>{for(var n in t)Rc(e,n,{get:t[n],enumerable:!0})},uL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tme(t))!rme.call(e,a)&&a!==n&&Rc(e,a,{get:()=>t[a],enumerable:!(r=eme(t,a))||r.enumerable});return e},ime=(e,t,n)=>(n=e!=null?Jge(nme(e)):{},uL(t||!e||!e.__esModule?Rc(n,"default",{value:e,enumerable:!0}):n,e)),ome=e=>uL(Rc({},"__esModule",{value:!0}),e),cL={};ame(cL,{default:()=>cme});var sme=ome(cL),Ey=ime(nge),lme=qge;const ume=Ey.default[Ey.default.length-1];var cme=(0,lme.createReactPlayer)(Ey.default,ume);const dme=St(sme),rI=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${a}${i}:${o}`},pme=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,c]=F.useState(.5),[p,f]=F.useState(!1),[h,m]=F.useState(.5),b=(T,_)=>{const x=Array.isArray(_)?_[0]:_;c(x),o(T,x),p&&f(!1)},S=()=>{p?(c(h),o(new Event("input"),h)):(m(u),c(0),o(new Event("input"),0)),f(!p)};return y.jsxs(q,{children:[(!l||t)&&y.jsx(vme,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:r}),y.jsxs(fme,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(mme,{onClick:n,size:"small",children:e?y.jsx(Ru,{}):y.jsx(Cy,{})}),y.jsxs(Sme,{direction:"row",children:[y.jsx("span",{children:rI(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:rI(a)})]}),y.jsxs(bme,{direction:"row",px:9,children:[y.jsx(Du,{className:"volume-slider",max:1,min:0,onChange:b,size:"small",step:.1,value:u}),y.jsx(hme,{onClick:S,children:p?y.jsx(gme,{children:y.jsx(Dj,{})}):y.jsx(Lj,{})})]}),y.jsx(yme,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(Pj,{}):y.jsx(Mj,{})})]})]})},fme=H(q)` +`,Qfe=()=>{const e=Kt(),{setPlayingNode:t}=Cu(n=>n);switch(F.useEffect(()=>{var r,a;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(Ure,{});case"data_series":return y.jsx(Bne,{});case"tribe_message":return y.jsx($re,{});case"Tweet":return y.jsx(Zre,{});case"topic":return y.jsx(Xre,{});case"show":return y.jsx(Kre,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(YN,{});case"document":return y.jsx(Wfe,{});case"episode":return y.jsx(Nre,{},e.ref_id);case"image":return y.jsx(Pre,{});default:return y.jsx(Lfe,{})}},Jfe=F.memo(Qfe);var ehe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&the(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?XO:nhe;o(i,r),i.onload||XO(i,r),a.appendChild(i)};function the(e,t){for(var n in t)e.setAttribute(n,t[n])}function XO(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 nhe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rhe=function(t){return ahe(t)&&!ihe(t)};function ahe(e){return!!e&&typeof e=="object"}function ihe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||lhe(e)}var ohe=typeof Symbol=="function"&&Symbol.for,she=ohe?Symbol.for("react.element"):60103;function lhe(e){return e.$$typeof===she}function uhe(e){return Array.isArray(e)?[]:{}}function cs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wi(uhe(e),e,t):e}function che(e,t,n){return e.concat(t).map(function(r){return cs(r,n)})}function dhe(e,t){if(!t.customMerge)return wi;var n=t.customMerge(e);return typeof n=="function"?n:wi}function phe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ZO(e){return Object.keys(e).concat(phe(e))}function CD(e,t){try{return t in e}catch{return!1}}function fhe(e,t){return CD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function hhe(e,t,n){var r={};return n.isMergeableObject(e)&&ZO(e).forEach(function(a){r[a]=cs(e[a],n)}),ZO(t).forEach(function(a){fhe(e,a)||(CD(e,a)&&n.isMergeableObject(t[a])?r[a]=dhe(a,n)(e[a],t[a],n):r[a]=cs(t[a],n))}),r}function wi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||che,n.isMergeableObject=n.isMergeableObject||rhe,n.cloneUnlessOtherwiseSpecified=cs;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):hhe(e,t,n):cs(t,n)}wi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return wi(r,a,n)},{})};var ghe=wi,ND=ghe,mhe=Object.create,Ac=Object.defineProperty,bhe=Object.getOwnPropertyDescriptor,yhe=Object.getOwnPropertyNames,vhe=Object.getPrototypeOf,She=Object.prototype.hasOwnProperty,xhe=(e,t)=>{for(var n in t)Ac(e,n,{get:t[n],enumerable:!0})},DD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yhe(t))!She.call(e,a)&&a!==n&&Ac(e,a,{get:()=>t[a],enumerable:!(r=bhe(t,a))||r.enumerable});return e},gS=(e,t,n)=>(n=e!=null?mhe(vhe(e)):{},DD(t||!e||!e.__esModule?Ac(n,"default",{value:e,enumerable:!0}):n,e)),Ehe=e=>DD(Ac({},"__esModule",{value:!0}),e),LD={};xhe(LD,{callPlayer:()=>jhe,getConfig:()=>Phe,getSDK:()=>Mhe,isBlobUrl:()=>Bhe,isMediaStream:()=>Fhe,lazy:()=>Ahe,omit:()=>$he,parseEndTime:()=>Nhe,parseStartTime:()=>Che,queryString:()=>Lhe,randomString:()=>Dhe,supportsWebKitPresentationMode:()=>Uhe});var kc=Ehe(LD),whe=gS(F),_he=gS(ehe),The=gS(ND);const Ahe=e=>whe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),khe=/[?&#](?:start|t)=([0-9hms]+)/,Ohe=/[?&#]end=([0-9hms]+)/,vy=/(\d+)(h|m|s)/g,Ihe=/^\d+$/;function MD(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(vy))return Rhe(r);if(Ihe.test(r))return parseInt(r)}}function Rhe(e){let t=0,n=vy.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=vy.exec(e)}return t}function Che(e){return MD(e,khe)}function Nhe(e){return MD(e,Ohe)}function Dhe(){return Math.random().toString(36).substr(2,5)}function Lhe(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Hm(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 za={},Mhe=function(t,n,r=null,a=()=>!0,i=_he.default){const o=Hm(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(za[t]){za[t].push({resolve:s,reject:l});return}za[t]=[{resolve:s,reject:l}];const u=c=>{za[t].forEach(p=>p.resolve(c))};if(r){const c=window[r];window[r]=function(){c&&c(),u(Hm(n))}}i(t,c=>{c?(za[t].forEach(p=>p.reject(c)),za[t]=null):r||u(Hm(n))})})};function Phe(e,t){return(0,The.default)(t.config,e.config)}function $he(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function jhe(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 Fhe(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Bhe(e){return/^blob:/.test(e)}function Uhe(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var mS=Object.defineProperty,zhe=Object.getOwnPropertyDescriptor,Ghe=Object.getOwnPropertyNames,qhe=Object.prototype.hasOwnProperty,Hhe=(e,t)=>{for(var n in t)mS(e,n,{get:t[n],enumerable:!0})},Whe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ghe(t))!qhe.call(e,a)&&a!==n&&mS(e,a,{get:()=>t[a],enumerable:!(r=zhe(t,a))||r.enumerable});return e},Vhe=e=>Whe(mS({},"__esModule",{value:!0}),e),PD={};Hhe(PD,{AUDIO_EXTENSIONS:()=>bS,DASH_EXTENSIONS:()=>KD,FLV_EXTENSIONS:()=>XD,HLS_EXTENSIONS:()=>vS,MATCH_URL_DAILYMOTION:()=>HD,MATCH_URL_FACEBOOK:()=>FD,MATCH_URL_FACEBOOK_WATCH:()=>BD,MATCH_URL_KALTURA:()=>YD,MATCH_URL_MIXCLOUD:()=>WD,MATCH_URL_SOUNDCLOUD:()=>$D,MATCH_URL_STREAMABLE:()=>UD,MATCH_URL_TWITCH_CHANNEL:()=>qD,MATCH_URL_TWITCH_VIDEO:()=>GD,MATCH_URL_VIDYARD:()=>VD,MATCH_URL_VIMEO:()=>jD,MATCH_URL_WISTIA:()=>zD,MATCH_URL_YOUTUBE:()=>Sy,VIDEO_EXTENSIONS:()=>yS,canPlay:()=>Khe});var Yhe=Vhe(PD),QO=kc;const Sy=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,$D=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,jD=/vimeo\.com\/(?!progressive_redirect).+/,FD=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,BD=/^https?:\/\/fb\.watch\/.+$/,UD=/streamable\.com\/([a-z0-9]+)$/,zD=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,GD=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,qD=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,HD=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,WD=/mixcloud\.com\/([^/]+\/[^/]+)/,VD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,YD=/^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-_].*)$/,bS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,yS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,vS=/\.(m3u8)($|\?)/i,KD=/\.(mpd)($|\?)/i,XD=/\.(flv)($|\?)/i,xy=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&xy(t)||xy(t.src))return!0;return!1}return(0,QO.isMediaStream)(e)||(0,QO.isBlobUrl)(e)?!0:bS.test(e)||yS.test(e)||vS.test(e)||KD.test(e)||XD.test(e)},Khe={youtube:e=>e instanceof Array?e.every(t=>Sy.test(t)):Sy.test(e),soundcloud:e=>$D.test(e)&&!bS.test(e),vimeo:e=>jD.test(e)&&!yS.test(e)&&!vS.test(e),facebook:e=>FD.test(e)||BD.test(e),streamable:e=>UD.test(e),wistia:e=>zD.test(e),twitch:e=>GD.test(e)||qD.test(e),dailymotion:e=>HD.test(e),mixcloud:e=>WD.test(e),vidyard:e=>VD.test(e),kaltura:e=>YD.test(e),file:xy};var SS=Object.defineProperty,Xhe=Object.getOwnPropertyDescriptor,Zhe=Object.getOwnPropertyNames,Qhe=Object.prototype.hasOwnProperty,Jhe=(e,t)=>{for(var n in t)SS(e,n,{get:t[n],enumerable:!0})},ege=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zhe(t))!Qhe.call(e,a)&&a!==n&&SS(e,a,{get:()=>t[a],enumerable:!(r=Xhe(t,a))||r.enumerable});return e},tge=e=>ege(SS({},"__esModule",{value:!0}),e),ZD={};Jhe(ZD,{default:()=>rge});var nge=tge(ZD),mn=kc,un=Yhe,rge=[{key:"youtube",name:"YouTube",canPlay:un.canPlay.youtube,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./YouTube-2eaf476a.js").then(e=>e.Y),["assets/YouTube-2eaf476a.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:un.canPlay.soundcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./SoundCloud-89c1876a.js").then(e=>e.S),["assets/SoundCloud-89c1876a.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:un.canPlay.vimeo,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vimeo-579e66ca.js").then(e=>e.V),["assets/Vimeo-579e66ca.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:un.canPlay.facebook,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Facebook-5b0d1d1a.js").then(e=>e.F),["assets/Facebook-5b0d1d1a.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:un.canPlay.streamable,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Streamable-9b885514.js").then(e=>e.S),["assets/Streamable-9b885514.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:un.canPlay.wistia,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Wistia-56e52464.js").then(e=>e.W),["assets/Wistia-56e52464.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:un.canPlay.twitch,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Twitch-c2e0f24a.js").then(e=>e.T),["assets/Twitch-c2e0f24a.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:un.canPlay.dailymotion,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./DailyMotion-76c9f037.js").then(e=>e.D),["assets/DailyMotion-76c9f037.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:un.canPlay.mixcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Mixcloud-a9b790a3.js").then(e=>e.M),["assets/Mixcloud-a9b790a3.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:un.canPlay.vidyard,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vidyard-f06ca014.js").then(e=>e.V),["assets/Vidyard-f06ca014.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:un.canPlay.kaltura,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Kaltura-f2d6bd6c.js").then(e=>e.K),["assets/Kaltura-f2d6bd6c.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:un.canPlay.file,canEnablePIP:e=>un.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,mn.supportsWebKitPresentationMode)())&&!un.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./FilePlayer-4eacc296.js").then(e=>e.F),["assets/FilePlayer-4eacc296.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]))}],JO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function age(e,t){return!!(e===t||JO(e)&&JO(t))}function ige(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},JD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gge(t))!bge.call(e,a)&&a!==n&&Oc(e,a,{get:()=>t[a],enumerable:!(r=hge(t,a))||r.enumerable});return e},vge=(e,t,n)=>(n=e!=null?fge(mge(e)):{},JD(t||!e||!e.__esModule?Oc(n,"default",{value:e,enumerable:!0}):n,e)),Sge=e=>JD(Oc({},"__esModule",{value:!0}),e),eL={};yge(eL,{defaultProps:()=>wge,propTypes:()=>Ege});var tL=Sge(eL),xge=vge(Nj);const{string:nn,bool:rn,number:Ga,array:Wm,oneOfType:ro,shape:On,object:an,func:Rt,node:eI}=xge.default,Ege={url:ro([nn,Wm,an]),playing:rn,loop:rn,controls:rn,volume:Ga,muted:rn,playbackRate:Ga,width:ro([nn,Ga]),height:ro([nn,Ga]),style:an,progressInterval:Ga,playsinline:rn,pip:rn,stopOnUnmount:rn,light:ro([rn,nn,an]),playIcon:eI,previewTabIndex:Ga,fallback:eI,oEmbedUrl:nn,wrapper:ro([nn,Rt,On({render:Rt.isRequired})]),config:On({soundcloud:On({options:an}),youtube:On({playerVars:an,embedOptions:an,onUnstarted:Rt}),facebook:On({appId:nn,version:nn,playerId:nn,attributes:an}),dailymotion:On({params:an}),vimeo:On({playerOptions:an,title:nn}),file:On({attributes:an,tracks:Wm,forceVideo:rn,forceAudio:rn,forceHLS:rn,forceSafariHLS:rn,forceDisableHls:rn,forceDASH:rn,forceFLV:rn,hlsOptions:an,hlsVersion:nn,dashVersion:nn,flvVersion:nn}),wistia:On({options:an,playerId:nn,customControls:Wm}),mixcloud:On({options:an}),twitch:On({options:an,playerId:nn}),vidyard:On({options:an})}),onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt},Ut=()=>{},wge={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:Ut},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:Ut,onStart:Ut,onPlay:Ut,onPause:Ut,onBuffer:Ut,onBufferEnd:Ut,onEnded:Ut,onError:Ut,onDuration:Ut,onSeek:Ut,onPlaybackRateChange:Ut,onPlaybackQualityChange:Ut,onProgress:Ut,onClickPreview:Ut,onEnablePIP:Ut,onDisablePIP:Ut};var _ge=Object.create,Rs=Object.defineProperty,Tge=Object.getOwnPropertyDescriptor,Age=Object.getOwnPropertyNames,kge=Object.getPrototypeOf,Oge=Object.prototype.hasOwnProperty,Ige=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rge=(e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:!0})},nL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Age(t))!Oge.call(e,a)&&a!==n&&Rs(e,a,{get:()=>t[a],enumerable:!(r=Tge(t,a))||r.enumerable});return e},rL=(e,t,n)=>(n=e!=null?_ge(kge(e)):{},nL(t||!e||!e.__esModule?Rs(n,"default",{value:e,enumerable:!0}):n,e)),Cge=e=>nL(Rs({},"__esModule",{value:!0}),e),_t=(e,t,n)=>(Ige(e,typeof t!="symbol"?t+"":t,n),n),aL={};Rge(aL,{default:()=>Ic});var Nge=Cge(aL),tI=rL(F),Dge=rL(QD),iL=tL,Lge=kc;const Mge=5e3;class Ic extends tI.Component{constructor(){super(...arguments),_t(this,"mounted",!1),_t(this,"isReady",!1),_t(this,"isPlaying",!1),_t(this,"isLoading",!0),_t(this,"loadOnReady",null),_t(this,"startOnPlay",!0),_t(this,"seekOnPlay",null),_t(this,"onDurationCalled",!1),_t(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),_t(this,"getInternalPlayer",t=>this.player?this.player[t]:null),_t(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),_t(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),_t(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()}),_t(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),_t(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),_t(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),_t(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)}),_t(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:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,Dge.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,Lge.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!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),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},Mge));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?tI.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}}_t(Ic,"displayName","Player");_t(Ic,"propTypes",iL.propTypes);_t(Ic,"defaultProps",iL.defaultProps);var Pge=Object.create,Cs=Object.defineProperty,$ge=Object.getOwnPropertyDescriptor,jge=Object.getOwnPropertyNames,Fge=Object.getPrototypeOf,Bge=Object.prototype.hasOwnProperty,Uge=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zge=(e,t)=>{for(var n in t)Cs(e,n,{get:t[n],enumerable:!0})},oL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jge(t))!Bge.call(e,a)&&a!==n&&Cs(e,a,{get:()=>t[a],enumerable:!(r=$ge(t,a))||r.enumerable});return e},Ns=(e,t,n)=>(n=e!=null?Pge(Fge(e)):{},oL(t||!e||!e.__esModule?Cs(n,"default",{value:e,enumerable:!0}):n,e)),Gge=e=>oL(Cs({},"__esModule",{value:!0}),e),wt=(e,t,n)=>(Uge(e,typeof t!="symbol"?t+"":t,n),n),sL={};zge(sL,{createReactPlayer:()=>Qge});var qge=Gge(sL),Wa=Ns(F),Hge=Ns(ND),Vm=Ns(lge),nI=Ns(QD),co=tL,lL=kc,Wge=Ns(Nge);const Vge=(0,lL.lazy)(()=>bn(()=>import("./Preview-a53c2dd6.js").then(e=>e.P),["assets/Preview-a53c2dd6.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"])),Yge=typeof window<"u"&&window.document,Kge=typeof At<"u"&&At.window&&At.window.document,Xge=Object.keys(co.propTypes),Zge=Yge||Kge?Wa.Suspense:()=>null,ao=[],Qge=(e,t)=>{var n;return n=class extends Wa.Component{constructor(){super(...arguments),wt(this,"state",{showPreview:!!this.props.light}),wt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),wt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),wt(this,"showPreview",()=>{this.setState({showPreview:!0})}),wt(this,"getDuration",()=>this.player?this.player.getDuration():null),wt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),wt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),wt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),wt(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),wt(this,"handleReady",()=>{this.props.onReady(this)}),wt(this,"getActivePlayer",(0,Vm.default)(r=>{for(const a of[...ao,...e])if(a.canPlay(r))return a;return t||null})),wt(this,"getConfig",(0,Vm.default)((r,a)=>{const{config:i}=this.props;return Hge.default.all([co.defaultProps.config,co.defaultProps.config[a]||{},i,i[a]||{}])})),wt(this,"getAttributes",(0,Vm.default)(r=>(0,lL.omit)(this.props,Xge))),wt(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Wa.default.createElement(Wge.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,nI.default)(this.props,r)||!(0,nI.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return Wa.default.createElement(Vge,{url:r,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,c=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Wa.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...c},Wa.default.createElement(Zge,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},wt(n,"displayName","ReactPlayer"),wt(n,"propTypes",co.propTypes),wt(n,"defaultProps",co.defaultProps),wt(n,"addCustomPlayer",r=>{ao.push(r)}),wt(n,"removeCustomPlayers",()=>{ao.length=0}),wt(n,"canPlay",r=>{for(const a of[...ao,...e])if(a.canPlay(r))return!0;return!1}),wt(n,"canEnablePIP",r=>{for(const a of[...ao,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var Jge=Object.create,Rc=Object.defineProperty,eme=Object.getOwnPropertyDescriptor,tme=Object.getOwnPropertyNames,nme=Object.getPrototypeOf,rme=Object.prototype.hasOwnProperty,ame=(e,t)=>{for(var n in t)Rc(e,n,{get:t[n],enumerable:!0})},uL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tme(t))!rme.call(e,a)&&a!==n&&Rc(e,a,{get:()=>t[a],enumerable:!(r=eme(t,a))||r.enumerable});return e},ime=(e,t,n)=>(n=e!=null?Jge(nme(e)):{},uL(t||!e||!e.__esModule?Rc(n,"default",{value:e,enumerable:!0}):n,e)),ome=e=>uL(Rc({},"__esModule",{value:!0}),e),cL={};ame(cL,{default:()=>cme});var sme=ome(cL),Ey=ime(nge),lme=qge;const ume=Ey.default[Ey.default.length-1];var cme=(0,lme.createReactPlayer)(Ey.default,ume);const dme=St(sme),rI=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${a}${i}:${o}`},pme=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,c]=F.useState(.5),[p,f]=F.useState(!1),[h,m]=F.useState(.5),b=(T,_)=>{const x=Array.isArray(_)?_[0]:_;c(x),o(T,x),p&&f(!1)},S=()=>{p?(c(h),o(new Event("input"),h)):(m(u),c(0),o(new Event("input"),0)),f(!p)};return y.jsxs(q,{children:[(!l||t)&&y.jsx(vme,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:r}),y.jsxs(fme,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(mme,{onClick:n,size:"small",children:e?y.jsx(Ru,{}):y.jsx(Cy,{})}),y.jsxs(Sme,{direction:"row",children:[y.jsx("span",{children:rI(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:rI(a)})]}),y.jsxs(bme,{direction:"row",px:9,children:[y.jsx(Du,{className:"volume-slider",max:1,min:0,onChange:b,size:"small",step:.1,value:u}),y.jsx(hme,{onClick:S,children:p?y.jsx(gme,{children:y.jsx(Dj,{})}):y.jsx(Lj,{})})]}),y.jsx(yme,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(Pj,{}):y.jsx(Mj,{})})]})]})},fme=H(q)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` diff --git a/build/assets/index-ceabf099.js b/build/assets/index-1b87e39a.js similarity index 95% rename from build/assets/index-ceabf099.js rename to build/assets/index-1b87e39a.js index cca35451c..21f6c640d 100644 --- a/build/assets/index-ceabf099.js +++ b/build/assets/index-1b87e39a.js @@ -1,4 +1,4 @@ -import{Z as X,t as g,v as b,F as t,T,z as V,r as y,j as e,aJ as ee,aA as L,aO as te,N as se,aP as ne,q as oe,az as I,a1 as re,a0 as ie,aM as ae}from"./index-4e7b4086.js";import{aL as ce,B as C,ah as le,$ as de,u as D,a0 as pe,f as me,a1 as xe}from"./index-8d05d202.js";import{B as ue}from"./index-49d9ff41.js";import{S as he}from"./index-71105b91.js";import{e as fe}from"./index.esm-2eb55070.js";import{C as J}from"./ClipLoader-debba421.js";import{n as B,O as ye,i as ge}from"./constants-b2a2fa82.js";import{p as q}from"./index-c0853f89.js";import{T as F}from"./index-53aef74d.js";import{A as je}from"./index-93aeefd6.js";import{c as we}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-2bf11152.js";import"./createSvgIcon-e086f0de.js";import"./TextareaAutosize-eac164b5.js";const be=async(o,a,c="")=>await X.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 ee(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:[ce(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(J,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(le,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(fe,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{Z as X,t as g,v as b,F as t,T,z as V,r as y,j as e,aJ as ee,aA as L,aO as te,N as se,aP as ne,q as oe,az as I,a1 as re,a0 as ie,aM as ae}from"./index-e8b9ad93.js";import{aL as ce,B as C,ah as le,$ as de,u as D,a0 as pe,f as me,a1 as xe}from"./index-ffdb9bac.js";import{B as ue}from"./index-6a2d3502.js";import{S as he}from"./index-e27c1d85.js";import{e as fe}from"./index.esm-55abcd0d.js";import{C as J}from"./ClipLoader-e6af0d5e.js";import{n as B,O as ye,i as ge}from"./constants-b2a2fa82.js";import{p as q}from"./index-c0853f89.js";import{T as F}from"./index-3cb9349b.js";import{A as je}from"./index-ae904d72.js";import{c as we}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-c617158d.js";import"./createSvgIcon-ea6ddcd6.js";import"./TextareaAutosize-1decf155.js";const be=async(o,a,c="")=>await X.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 ee(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:[ce(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(J,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(le,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(fe,{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-62edf322.js b/build/assets/index-2324aa9c.js similarity index 98% rename from build/assets/index-62edf322.js rename to build/assets/index-2324aa9c.js index dbdbfc186..791d88c90 100644 --- a/build/assets/index-62edf322.js +++ b/build/assets/index-2324aa9c.js @@ -1,4 +1,4 @@ -import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i as D,a2 as gt,e as ne,a3 as ft,t as c,v as x,T as N,F as g,aQ as mt,a5 as se,R as re,q as le,a0 as bt,aR as jt,aS as Ve,w as ae,aT as Qe,H as we,aB as _e,aC as Ne,aD as ze,aU as yt,z as qe,aV as wt,aW as Xe,aX as Ct,aA as vt,aY as ce,aZ as Tt,y as St,N as $t,Q as kt}from"./index-4e7b4086.js";import{B as de}from"./index-49d9ff41.js";import{B as W,u as M,aM as _t,r as Nt,t as Ce,aN as je,aw as Q,aO as zt,D as Bt,s as Lt,ai as te,a2 as Ke,aP as Ze,aQ as Je,aR as et,a0 as ve,a1 as Te,ah as tt,aS as Rt,aT as It,aU as Mt,aV as Be,aW as Le,p as Re,aX as ge,aY as Et,q as At}from"./index-8d05d202.js";import{T as Ie,s as U,a as st,S as ot,A as Se,E as Ot,D as Ft,b as nt,Q as rt,V as at,c as Wt}from"./constants-41186e32.js";import{C as z}from"./ClipLoader-debba421.js";import{f as Ht,g as Pt,h as Dt,a as Ut}from"./index.esm-2eb55070.js";import{I as Gt,A as $e,T as it}from"./index-93aeefd6.js";import{B as Yt,T as Vt}from"./index-53aef74d.js";import{u as R}from"./index-44e7b49e.js";import{O as lt}from"./constants-b2a2fa82.js";import{T as Me}from"./Typography-9047da8c.js";import{T as Qt,a as qt}from"./Tabs-c02cacac.js";import"./Stack-2bf11152.js";import"./createSvgIcon-e086f0de.js";import"./TextareaAutosize-eac164b5.js";const Xt=h.createContext(),ct=Xt;function Kt(t){return q("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,s)},es=O("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>L({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":L({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Ee="table",ts=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTable"}),{className:l,component:i=Ee,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=L({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,L({as:i,role:i===Ee?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return q("MuiTableBody",t)}X("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=O("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),is={variant:"body"},Ae="tbody",ls=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=L({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,L({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return q("MuiTableCell",t)}const ps=X("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xs=ps,hs=["align","className","component","padding","scope","size","sortDirection","variant"],us=t=>{const{classes:s,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,o={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(o,ds,s)},gs=O("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${D(n.size)}`],n.padding!=="normal"&&s[`padding${D(n.padding)}`],n.align!=="inherit"&&s[`align${D(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>L({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid +import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i as D,a2 as gt,e as ne,a3 as ft,t as c,v as x,T as N,F as g,aQ as mt,a5 as se,R as re,q as le,a0 as bt,aR as jt,aS as Ve,w as ae,aT as Qe,H as we,aB as _e,aC as Ne,aD as ze,aU as yt,z as qe,aV as wt,aW as Xe,aX as Ct,aA as vt,aY as ce,aZ as Tt,y as St,N as $t,Q as kt}from"./index-e8b9ad93.js";import{B as de}from"./index-6a2d3502.js";import{B as W,u as M,aM as _t,r as Nt,t as Ce,aN as je,aw as Q,aO as zt,D as Bt,s as Lt,ai as te,a2 as Ke,aP as Ze,aQ as Je,aR as et,a0 as ve,a1 as Te,ah as tt,aS as Rt,aT as It,aU as Mt,aV as Be,aW as Le,p as Re,aX as ge,aY as Et,q as At}from"./index-ffdb9bac.js";import{T as Ie,s as U,a as st,S as ot,A as Se,E as Ot,D as Ft,b as nt,Q as rt,V as at,c as Wt}from"./constants-f306a0b2.js";import{C as z}from"./ClipLoader-e6af0d5e.js";import{f as Ht,g as Pt,h as Dt,a as Ut}from"./index.esm-55abcd0d.js";import{I as Gt,A as $e,T as it}from"./index-ae904d72.js";import{B as Yt,T as Vt}from"./index-3cb9349b.js";import{u as R}from"./index-345de899.js";import{O as lt}from"./constants-b2a2fa82.js";import{T as Me}from"./Typography-db52e3f1.js";import{T as Qt,a as qt}from"./Tabs-573fdd2d.js";import"./Stack-c617158d.js";import"./createSvgIcon-ea6ddcd6.js";import"./TextareaAutosize-1decf155.js";const Xt=h.createContext(),ct=Xt;function Kt(t){return q("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,s)},es=O("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>L({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":L({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Ee="table",ts=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTable"}),{className:l,component:i=Ee,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=L({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,L({as:i,role:i===Ee?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return q("MuiTableBody",t)}X("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=O("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),is={variant:"body"},Ae="tbody",ls=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=L({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,L({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return q("MuiTableCell",t)}const ps=X("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xs=ps,hs=["align","className","component","padding","scope","size","sortDirection","variant"],us=t=>{const{classes:s,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,o={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(o,ds,s)},gs=O("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${D(n.size)}`],n.padding!=="normal"&&s[`padding${D(n.padding)}`],n.align!=="inherit"&&s[`align${D(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>L({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid ${t.palette.mode==="light"?gt(ne(t.palette.divider,1),.88):ft(ne(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",[`&.${xs.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})),fs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableCell"}),{align:l="inherit",className:i,component:a,padding:o,scope:d,size:u,sortDirection:m,variant:p}=r,b=Z(r,hs),j=h.useContext(ct),y=h.useContext(xe),C=y&&y.variant==="head";let w;a?w=a:w=C?"th":"td";let S=d;w==="td"?S=void 0:!S&&C&&(S="col");const $=p||y&&y.variant,A=L({},r,{align:l,component:w,padding:o||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:$==="head"&&j&&j.stickyHeader,variant:$}),F=us(A);let B=null;return m&&(B=m==="asc"?"ascending":"descending"),e.jsx(gs,L({as:w,ref:n,className:J(F.root,i),"aria-sort":B,scope:S,ownerState:A},b))}),ms=fs;function bs(t){return q("MuiTableHead",t)}X("MuiTableHead",["root"]);const js=["className","component"],ys=t=>{const{classes:s}=t;return ee({root:["root"]},bs,s)},ws=O("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),Cs={variant:"head"},Oe="thead",vs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableHead"}),{className:l,component:i=Oe}=r,a=Z(r,js),o=L({},r,{component:i}),d=ys(o);return e.jsx(xe.Provider,{value:Cs,children:e.jsx(ws,L({as:i,className:J(d.root,l),ref:n,role:i===Oe?null:"rowgroup",ownerState:o},a))})}),dt=vs;function Ts(t){return q("MuiTableRow",t)}const Ss=X("MuiTableRow",["root","selected","hover","head","footer"]),Fe=Ss,$s=["className","component","hover","selected"],ks=t=>{const{classes:s,selected:n,hover:r,head:l,footer:i}=t;return ee({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},Ts,s)},_s=O("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,[`&.${Fe.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Fe.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ne(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}))`:ne(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),We="tr",Ns=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:o=!1}=r,d=Z(r,$s),u=h.useContext(xe),m=L({},r,{component:i,hover:a,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ks(m);return e.jsx(_s,L({as:i,ref:n,className:J(p.root,l),role:i===We?null:"row",ownerState:m},d))}),G=Ns;function ye(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=c(ms)` && { color: ${x.white}; diff --git a/build/assets/index-344bba82.js b/build/assets/index-284cd839.js similarity index 99% rename from build/assets/index-344bba82.js rename to build/assets/index-284cd839.js index 197470e0a..3cb34f3de 100644 --- a/build/assets/index-344bba82.js +++ b/build/assets/index-284cd839.js @@ -1,4 +1,4 @@ -import{r as P,g as Cc,b as yi,b9 as _c,ba as ed,j as L,R as td,v as Ji,bb as nd,bc as rd,bd as id}from"./index-4e7b4086.js";import{H as fl,I as Vl,J as od,U as ad,d as Ec,k as ld,C as ro,K as sd,O as Zl,y as Ql,N as da,X as dl,Y as ud,Z as cd,_ as fd,$ as dd,a0 as hd,a1 as pd,a2 as vd,V as st,b as Nr,a3 as md,h as gd,g as Xl,s as pa,a4 as Tc,e as Ul,a5 as Rl,a6 as pi,a7 as yd,t as Yl,a8 as xd,a9 as Fl,aa as Fu,ab as wd,ac as xi,j as Mc,ad as Sd,l as io,o as kc,ae as Cd,af as _d,ag as Ed,ah as Td,ai as Md,aj as Au,ak as kd,al as Pd,M as Ld,r as Ud,am as Jl,an as Du,ao as Ir,ap as Rd,i as hl}from"./three.module-26d3b3c0.js";import{b3 as _t,v as Fd,f as Ad}from"./index-8d05d202.js";var Pc={exports:{}},Gr={};/** +import{r as P,g as Cc,b as yi,b9 as _c,ba as ed,j as L,R as td,v as Ji,bb as nd,bc as rd,bd as id}from"./index-e8b9ad93.js";import{H as fl,I as Vl,J as od,U as ad,d as Ec,k as ld,C as ro,K as sd,O as Zl,y as Ql,N as da,X as dl,Y as ud,Z as cd,_ as fd,$ as dd,a0 as hd,a1 as pd,a2 as vd,V as st,b as Nr,a3 as md,h as gd,g as Xl,s as pa,a4 as Tc,e as Ul,a5 as Rl,a6 as pi,a7 as yd,t as Yl,a8 as xd,a9 as Fl,aa as Fu,ab as wd,ac as xi,j as Mc,ad as Sd,l as io,o as kc,ae as Cd,af as _d,ag as Ed,ah as Td,ai as Md,aj as Au,ak as kd,al as Pd,M as Ld,r as Ud,am as Jl,an as Du,ao as Ir,ap as Rd,i as hl}from"./three.module-26d3b3c0.js";import{b3 as _t,v as Fd,f as Ad}from"./index-ffdb9bac.js";var Pc={exports:{}},Gr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-043dcdcc.js b/build/assets/index-2a51efa1.js similarity index 94% rename from build/assets/index-043dcdcc.js rename to build/assets/index-2a51efa1.js index 362eec279..1f6b9216d 100644 --- a/build/assets/index-043dcdcc.js +++ b/build/assets/index-2a51efa1.js @@ -1,4 +1,4 @@ -import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y as Ji,J as Ad,A as Na,U as Xl,w as Zl,V as Md,C as Dd,R as Pd,X as Nd,H as Id,Y as Rd,O as Fd}from"./index-4e7b4086.js";import{u as Nt,a as be,m as ho,b as fo,e as Ia,L as Ld,c as Vd,d as Ud,f as zd,g as Ql,H as tr,t as Kl,T as jd,h as Bd,i as qd,C as Wd,P as Hd,j as Yd}from"./index-344bba82.js";import{P as ei,B as Jl,c as Nc,H as Gd,E as $d,_ as Bt,d as qe,e as We,f as oe,g as Ra,h as po,T as Ic,i as Xd,j as Zd,k as Qd,l as Kd,m as Jd,n as tf,D as ef,I as sf,o as nf,u as fr,p as rf,q as of,r as af,s as cf,N as lf,t as uf,O as hf,v as df}from"./index-8d05d202.js";import{T as ff}from"./TextareaAutosize-eac164b5.js";import{D as pr,F as pf,V as at,L as mf,a as _f,M as gn,b as _t,S as gf,B as yf,c as tu,P as Ro,d as vf,e as Mr,f as qs,T as mo,g as ra,h as kf,i as Rc,j as er,Q as xf,G as Tf,C as _o,k as wf,l as eu,W as bf,m as Cf,n as Sf,E as Ef,o as Of,p as Af,q as go,r as Mf,s as Fc,t as Lc}from"./three.module-26d3b3c0.js";import{M as Df,a as Pf}from"./index.esm-2eb55070.js";import{u as Nf}from"./index-62ddae12.js";import{C as If}from"./ClipLoader-debba421.js";function Rf(i){let t;const e=new Set,s=(l,u)=>{const h=typeof l=="function"?l(t):l;if(h!==t){const d=t;t=u?h:Object.assign({},t,h),e.forEach(p=>p(t,d))}},n=()=>t,r=(l,u=n,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(t);function p(){const _=u(t);if(!h(d,_)){const f=d;l(d=_,f)}}return e.add(p),()=>e.delete(p)},c={setState:s,getState:n,subscribe:(l,u,h)=>u||h?r(l,u,h):(e.add(l),()=>e.delete(l)),destroy:()=>e.clear()};return t=i(s,n,c),c}const Ff=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Vc=Ff?A.useEffect:A.useLayoutEffect;function Lf(i){const t=typeof i=="function"?Rf(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=A.useReducer(m=>m+1,0),o=t.getState(),a=A.useRef(o),c=A.useRef(s),l=A.useRef(n),u=A.useRef(!1),h=A.useRef();h.current===void 0&&(h.current=s(o));let d,p=!1;(a.current!==o||c.current!==s||l.current!==n||u.current)&&(d=s(o),p=!n(h.current,d)),Vc(()=>{p&&(h.current=d),a.current=o,c.current=s,l.current=n,u.current=!1});const _=A.useRef(o);Vc(()=>{const m=()=>{try{const b=t.getState(),w=c.current(b);l.current(h.current,w)||(a.current=b,h.current=w,r())}catch{u.current=!0,r()}},v=t.subscribe(m);return t.getState()!==_.current&&m(),v},[]);const f=p?d:h.current;return A.useDebugValue(f),f};return Object.assign(e,t),e[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[e,t];return{next(){const n=s.length<=0;return{value:s.shift(),done:n}}}},e}let si=0;const Vf=Lf(i=>(pr.onStart=(t,e,s)=>{i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100})},pr.onLoad=()=>{i({active:!1})},pr.onError=t=>i(e=>({errors:[...e.errors,t]})),pr.onProgress=(t,e,s)=>{e===s&&(si=s),i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),Uf=i=>`Loading ${i.toFixed(2)}%`;function zf({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=Uf,initialState:r=o=>o}){const{active:o,progress:a}=Vf(),c=A.useRef(0),l=A.useRef(0),u=A.useRef(null),[h,d]=A.useState(r(o));A.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=A.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=n(c.current),c.current(p(),()=>cancelAnimationFrame(l.current)),[p]),h?A.createElement("div",{style:{...mr.container,opacity:o?1:0,...i}},A.createElement("div",null,A.createElement("div",{style:{...mr.inner,...t}},A.createElement("div",{style:{...mr.bar,transform:`scaleX(${a/100})`,...e}}),A.createElement("span",{ref:u,style:{...mr.data,...s}})))):null}const mr={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"}},Fo=new pf,Lo=new at,yn=new at,Re=new at,rs=new at,Ge=new at,os=new at,as=new at,ni=new at,ii=new at,ri=new at,_r=new at,oi=new at,ai=new at,ci=new at;class jf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new at,this.endPoint=new at,this.collection=[],this.deep=s||Number.MAX_VALUE}select(t,e){return this.startPoint=t||this.startPoint,this.endPoint=e||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Fo,this.scene),this.collection}updateFrustum(t,e){if(t=t||this.startPoint,e=e||this.endPoint,t.x===e.x&&(e.x+=Number.EPSILON),t.y===e.y&&(e.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){yn.copy(t),yn.x=Math.min(t.x,e.x),yn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Re.setFromMatrixPosition(this.camera.matrixWorld),rs.copy(yn),Ge.set(e.x,yn.y,0),os.copy(e),as.set(yn.x,e.y,0),rs.unproject(this.camera),Ge.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),oi.copy(rs).sub(Re),ai.copy(Ge).sub(Re),ci.copy(os).sub(Re),oi.normalize(),ai.normalize(),ci.normalize(),oi.multiplyScalar(this.deep),ai.multiplyScalar(this.deep),ci.multiplyScalar(this.deep),oi.add(Re),ai.add(Re),ci.add(Re);var s=Fo.planes;s[0].setFromCoplanarPoints(Re,rs,Ge),s[1].setFromCoplanarPoints(Re,Ge,os),s[2].setFromCoplanarPoints(os,as,Re),s[3].setFromCoplanarPoints(as,rs,Re),s[4].setFromCoplanarPoints(Ge,os,as),s[5].setFromCoplanarPoints(ci,ai,oi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const n=Math.min(t.x,e.x),r=Math.max(t.y,e.y),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y);rs.set(n,r,-1),Ge.set(o,r,-1),os.set(o,a,-1),as.set(n,a,-1),ni.set(n,r,1),ii.set(o,r,1),ri.set(o,a,1),_r.set(n,a,1),rs.unproject(this.camera),Ge.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ni.unproject(this.camera),ii.unproject(this.camera),ri.unproject(this.camera),_r.unproject(this.camera);var s=Fo.planes;s[0].setFromCoplanarPoints(rs,ni,ii),s[1].setFromCoplanarPoints(Ge,ii,ri),s[2].setFromCoplanarPoints(ri,_r,as),s[3].setFromCoplanarPoints(_r,ni,rs),s[4].setFromCoplanarPoints(Ge,os,as),s[5].setFromCoplanarPoints(ri,ii,ni),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(t,e){if((e.isMesh||e.isLine||e.isPoints)&&e.material!==void 0&&(e.geometry.boundingSphere===null&&e.geometry.computeBoundingSphere(),Lo.copy(e.geometry.boundingSphere.center),Lo.applyMatrix4(e.matrixWorld),t.containsPoint(Lo)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?X.copy(P[P.length-1]):X.identity())}function n(I){const F=new qs,S=new _t,D=new _t,H=new _t;let N=!0,V=!1;const st=I.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let nt=0,J=st.length;nt0&&(S.copy(H),F.currentPath.currentPoint.copy(S),N=!0);break;default:console.warn(pt)}V=!1}return F}function r(I){if(!(!I.sheet||!I.sheet.cssRules||!I.sheet.cssRules.length))for(let F=0;FH.trim());for(let H=0;H1){const Pc=Math.sqrt(Z);F=Pc*F,S=Pc*S,K=F*F,B=S*S}const tt=K*E+B*O,lt=(K*B-tt)/tt;let vt=Math.sqrt(Math.max(0,lt));H===N&&(vt=-vt);const Yt=vt*F*pt/S,Ie=-vt*S*J/F,ti=Math.cos(D)*Yt-Math.sin(D)*Ie+(V.x+it.x)/2,Io=Math.sin(D)*Yt+Math.cos(D)*Ie+(V.y+it.y)/2,dr=a(1,0,(J-Yt)/F,(pt-Ie)/S),Od=a((J-Yt)/F,(pt-Ie)/S,(-J-Yt)/F,(-pt-Ie)/S)%(Math.PI*2);I.currentPath.absellipse(ti,Io,F,S,dr,dr+Od,N===0,D)}function a(I,F,S,D){const H=I*S+F*D,N=Math.sqrt(I*I+F*F)*Math.sqrt(S*S+D*D);let V=Math.acos(Math.max(-1,Math.min(1,H/N)));return I*D-F*S<0&&(V=-V),V}function c(I){const F=w(I.getAttribute("x")||0),S=w(I.getAttribute("y")||0),D=w(I.getAttribute("rx")||I.getAttribute("ry")||0),H=w(I.getAttribute("ry")||I.getAttribute("rx")||0),N=w(I.getAttribute("width")),V=w(I.getAttribute("height")),it=1-.551915024494,st=new qs;return st.moveTo(F+D,S),st.lineTo(F+N-D,S),(D!==0||H!==0)&&st.bezierCurveTo(F+N-D*it,S,F+N,S+H*it,F+N,S+H),st.lineTo(F+N,S+V-H),(D!==0||H!==0)&&st.bezierCurveTo(F+N,S+V-H*it,F+N-D*it,S+V,F+N-D,S+V),st.lineTo(F+D,S+V),(D!==0||H!==0)&&st.bezierCurveTo(F+D*it,S+V,F,S+V-H*it,F,S+V-H),st.lineTo(F,S+H),(D!==0||H!==0)&&st.bezierCurveTo(F,S+H*it,F+D*it,S,F+D,S),st}function l(I){function F(N,V,it){const st=w(V),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new qs;let H=0;return I.getAttribute("points").replace(S,F),D.currentPath.autoClose=!0,D}function u(I){function F(N,V,it){const st=w(V),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new qs;let H=0;return I.getAttribute("points").replace(S,F),D.currentPath.autoClose=!1,D}function h(I){const F=w(I.getAttribute("cx")||0),S=w(I.getAttribute("cy")||0),D=w(I.getAttribute("r")||0),H=new Ro;H.absarc(F,S,D,0,Math.PI*2);const N=new qs;return N.subPaths.push(H),N}function d(I){const F=w(I.getAttribute("cx")||0),S=w(I.getAttribute("cy")||0),D=w(I.getAttribute("rx")||0),H=w(I.getAttribute("ry")||0),N=new Ro;N.absellipse(F,S,D,H,0,Math.PI*2);const V=new qs;return V.subPaths.push(N),V}function p(I){const F=w(I.getAttribute("x1")||0),S=w(I.getAttribute("y1")||0),D=w(I.getAttribute("x2")||0),H=w(I.getAttribute("y2")||0),N=new qs;return N.moveTo(F,S),N.lineTo(D,H),N.currentPath.autoClose=!1,N}function _(I,F){F=Object.assign({},F);let S={};if(I.hasAttribute("class")){const V=I.getAttribute("class").split(/\s/).filter(Boolean).map(it=>it.trim());for(let it=0;it0&&F.premultiply(P[P.length-1]),X.copy(F),P.push(F),F}function y(I){const F=new gn,S=U;if(I.nodeName==="use"&&(I.hasAttribute("x")||I.hasAttribute("y"))){const D=w(I.getAttribute("x")),H=w(I.getAttribute("y"));F.translate(D,H)}if(I.hasAttribute("transform")){const D=I.getAttribute("transform").split(")");for(let H=D.length-1;H>=0;H--){const N=D[H].trim();if(N==="")continue;const V=N.indexOf("("),it=N.length;if(V>0&&V=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.translate(J,pt)}break;case"rotate":if(nt.length>=1){let J=0,pt=0,K=0;J=-nt[0]*Math.PI/180,nt.length>=3&&(pt=nt[1],K=nt[2]),W.identity().translate(-pt,-K),G.identity().rotate(J),Y.multiplyMatrices(G,W),W.identity().translate(pt,K),S.multiplyMatrices(W,Y)}break;case"scale":if(nt.length>=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.scale(J,pt)}break;case"skewX":nt.length===1&&S.set(1,Math.tan(nt[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":nt.length===1&&S.set(1,0,0,Math.tan(nt[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":nt.length===6&&S.set(nt[0],nt[2],nt[4],nt[1],nt[3],nt[5],0,0,1);break}}F.premultiply(S)}}return F}function x(I,F){function S(N){z.set(N.x,N.y,1).applyMatrix3(F),N.set(z.x,z.y)}const D=T(F),H=I.subPaths;for(let N=0,V=H.length;N=1||Y<0||Y>1)return null;if(P===0&&W===0){for(let j=0;j<2;j++)if(o(j===0?b:w,m,v),n.loc==s.ORIGIN){const z=j===0?b:w;return{x:z.x,y:z.y,t:n.t}}else if(n.loc==s.BETWEEN){const z=+(g+n.t*(y-g)).toPrecision(10),X=+(k+n.t*(C-k)).toPrecision(10);return{x:z,y:X,t:n.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?b:w,m,v),n.loc==s.ORIGIN){const Q=X===0?b:w;return{x:Q.x,y:Q.y,t:n.t}}const j=+(g+G*(y-g)).toPrecision(10),z=+(k+G*(C-k)).toPrecision(10);return{x:j,y:z,t:G}}}function o(m,v,b){const w=b.x-v.x,g=b.y-v.y,y=m.x-v.x,x=m.y-v.y,T=w*x-y*g;if(m.x===v.x&&m.y===v.y){n.loc=s.ORIGIN,n.t=0;return}if(m.x===b.x&&m.y===b.y){n.loc=s.DESTINATION,n.t=1;return}if(T<-Number.EPSILON){n.loc=s.LEFT;return}if(T>Number.EPSILON){n.loc=s.RIGHT;return}if(w*y<0||g*x<0){n.loc=s.BEHIND;return}if(Math.sqrt(w*w+g*g)R.t<=M.t+Number.EPSILON&&R.t>=M.t-Number.EPSILON)===void 0&&(b.push(M),w.push(new _t(M.x,M.y)))}}return w}function c(m,v,b){const w=new _t;v.getCenter(w);const g=[];return b.forEach(y=>{y.boundingBox.containsPoint(w)&&a(m,y.points).forEach(T=>{g.push({identifier:y.identifier,isCW:y.isCW,point:T})})}),g.sort((y,x)=>y.point.x-x.point.x),g}function l(m,v,b,w,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const x=[new _t(b,y.y),new _t(w,y.y)],T=c(x,m.boundingBox,v);T.sort((U,W)=>U.point.x-W.point.x);const k=[],C=[];T.forEach(U=>{U.identifier===m.identifier?k.push(U):C.push(U)});const M=k[0].point.x,R=[];let P=0;for(;P0&&R[R.length-1]===C[P].identifier?R.pop():R.push(C[P].identifier),P++;if(R.push(m.identifier),g==="evenodd"){const U=R.length%2===0,W=R[R.length-2];return{identifier:m.identifier,isHole:U,for:W}}else if(g==="nonzero"){let U=!0,W=null,G=null;for(let Y=0;Y{const v=m.getPoints();let b=-999999999,w=999999999,g=-999999999,y=999999999;for(let x=0;xb&&(b=T.y),T.yg&&(g=T.x),T.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:gf.isClockWise(v),identifier:u++,boundingBox:new yf(new _t(y,w),new _t(g,b))}});p=p.filter(m=>m.points.length>1);const _=p.map(m=>l(m,p,h,d,t.userData.style.fillRule)),f=[];return p.forEach(m=>{if(!_[m.identifier].isHole){const b=new tu;b.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],x=new Ro;x.curves=y.curves,b.holes.push(x)}),f.push(b)}}),f}static getStrokeStyle(t,e,s,n,r){return t=t!==void 0?t:1,e=e!==void 0?e:"#000",s=s!==void 0?s:"miter",n=n!==void 0?n:"butt",r=r!==void 0?r:4,{strokeColor:e,strokeWidth:t,strokeLineJoin:s,strokeLineCap:n,strokeMiterLimit:r}}static pointsToStroke(t,e,s,n){const r=[],o=[],a=[];if(xi.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new vf;return c.setAttribute("position",new Mr(r,3)),c.setAttribute("normal",new Mr(o,3)),c.setAttribute("uv",new Mr(a,2)),c}static pointsToStrokeWithBuffers(t,e,s,n,r,o,a,c){const l=new _t,u=new _t,h=new _t,d=new _t,p=new _t,_=new _t,f=new _t,m=new _t,v=new _t,b=new _t,w=new _t,g=new _t,y=new _t,x=new _t,T=new _t,k=new _t,C=new _t;s=s!==void 0?s:12,n=n!==void 0?n:.001,c=c!==void 0?c:0,t=pt(t);const M=t.length;if(M<2)return 0;const R=t[0].equals(t[M-1]);let P,U=t[0],W;const G=e.strokeWidth/2,Y=1/(M-1);let j=0,z,X,Q,et,I=!1,F=0,S=c*3,D=c*2;H(t[0],t[1],l).multiplyScalar(G),m.copy(t[0]).sub(l),v.copy(t[0]).add(l),b.copy(m),w.copy(v);for(let K=1;K=n&&O.push(K[E]);return O.push(K[K.length-1]),O}}}function Bf(i,t){if(Object.is(i,t))return!0;if(typeof i!="object"||i===null||typeof t!="object"||t===null)return!1;const e=Object.keys(i);if(e.length!==Object.keys(t).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:p,get:_}=Nt(),[f,m]=A.useState(!1),[v,b]=A.useReducer((x,{object:T,shift:k})=>T===void 0?[]:Array.isArray(T)?T:k?x.includes(T)?x.filter(C=>C!==T):[T,...x]:x[0]===T?[]:[T],[]);A.useEffect(()=>void(s==null?void 0:s(v)),[v]);const w=A.useCallback(x=>{x.stopPropagation(),b({object:o([x.object])[0],shift:t&&x.shiftKey})},[]),g=A.useCallback(x=>!f&&b({}),[f]),y=A.useRef(null);return A.useEffect(()=>{if(!i||!t)return;const x=new jf(l,y.current),T=document.createElement("div");T.style.pointerEvents="none",T.style.border=n,T.style.backgroundColor=r,T.style.position="fixed";const k=new _t,C=new _t,M=new _t,R=_().events.enabled,P=d==null?void 0:d.enabled;let U=!1;function W(I,F){const{offsetX:S,offsetY:D}=I,{width:H,height:N}=p;F.set(S/H*2-1,-(D/N)*2+1)}function G(I){var F;d&&(d.enabled=!1),c({enabled:!1}),U=!0,(F=h.domElement.parentElement)==null||F.appendChild(T),T.style.left=`${I.clientX}px`,T.style.top=`${I.clientY}px`,T.style.width="0px",T.style.height="0px",k.x=I.clientX,k.y=I.clientY}function Y(I){M.x=Math.max(k.x,I.clientX),M.y=Math.max(k.y,I.clientY),C.x=Math.min(k.x,I.clientX),C.y=Math.min(k.y,I.clientY),T.style.left=`${C.x}px`,T.style.top=`${C.y}px`,T.style.width=`${M.x-C.x}px`,T.style.height=`${M.y-C.y}px`}function j(){if(U){var I;d&&(d.enabled=P),c({enabled:R}),U=!1,(I=T.parentElement)==null||I.removeChild(T)}}function z(I){I.shiftKey&&(G(I),W(I,x.startPoint))}let X=[];function Q(I){if(U){Y(I),W(I,x.endPoint);const F=x.select().sort(S=>S.uuid).filter(S=>S.isMesh);Bf(F,X)||(X=F,b({object:o(F)}))}}function et(I){U&&j()}return document.addEventListener("pointerdown",z,{passive:!0}),document.addEventListener("pointermove",Q,{passive:!0,capture:!0}),document.addEventListener("pointerup",et,{passive:!0}),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",et)}},[p.width,p.height,u,l,d,h]),A.createElement("group",Oe({ref:y,onClick:w,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),A.createElement(qf.Provider,{value:v},e))}const su=A.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=A.useRef();return be(({camera:c})=>{if(!t||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),e&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),n&&(a.current.rotation.z=l.z)}),A.createElement("group",Oe({ref:ho([a,o])},r))}),Uc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Ks(i,t){const e=Nt(n=>n.gl),s=fo(mo,Uc(i)?Object.values(i):i);if(A.useLayoutEffect(()=>{t==null||t(s)},[t]),A.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(e.initTexture)},[e,s]),Uc(i)){const n=Object.keys(i),r={};return n.forEach(o=>Object.assign(r,{[o]:s[n.indexOf(o)]})),r}else return s}Ks.preload=i=>fo.preload(mo,i);Ks.clear=i=>fo.clear(mo,i);const Hf=A.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=fo(xi,t.startsWith("s?[]:u.paths.map(d=>{var p;return((p=d.userData)==null?void 0:p.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(_=>xi.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return A.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),A.createElement("object3D",Oe({ref:l},c),A.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return A.createElement(A.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&xi.createShapes(d).map((m,v)=>A.createElement("mesh",Oe({key:v},o),A.createElement("shapeGeometry",{args:[m]}),A.createElement("meshBasicMaterial",Oe({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:ra,depthWrite:!1},n)))),!s&&((f=d.userData)==null?void 0:f.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((m,v)=>A.createElement("mesh",Oe({key:v,geometry:h[p][v]},a),A.createElement("meshBasicMaterial",Oe({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:ra,depthWrite:!1},r)))))})))});/*! +import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y as Ji,J as Ad,A as Na,U as Xl,w as Zl,V as Md,C as Dd,R as Pd,X as Nd,H as Id,Y as Rd,O as Fd}from"./index-e8b9ad93.js";import{u as Nt,a as be,m as ho,b as fo,e as Ia,L as Ld,c as Vd,d as Ud,f as zd,g as Ql,H as tr,t as Kl,T as jd,h as Bd,i as qd,C as Wd,P as Hd,j as Yd}from"./index-284cd839.js";import{P as ei,B as Jl,c as Nc,H as Gd,E as $d,_ as Bt,d as qe,e as We,f as oe,g as Ra,h as po,T as Ic,i as Xd,j as Zd,k as Qd,l as Kd,m as Jd,n as tf,D as ef,I as sf,o as nf,u as fr,p as rf,q as of,r as af,s as cf,N as lf,t as uf,O as hf,v as df}from"./index-ffdb9bac.js";import{T as ff}from"./TextareaAutosize-1decf155.js";import{D as pr,F as pf,V as at,L as mf,a as _f,M as gn,b as _t,S as gf,B as yf,c as tu,P as Ro,d as vf,e as Mr,f as qs,T as mo,g as ra,h as kf,i as Rc,j as er,Q as xf,G as Tf,C as _o,k as wf,l as eu,W as bf,m as Cf,n as Sf,E as Ef,o as Of,p as Af,q as go,r as Mf,s as Fc,t as Lc}from"./three.module-26d3b3c0.js";import{M as Df,a as Pf}from"./index.esm-55abcd0d.js";import{u as Nf}from"./index-a8a8b0eb.js";import{C as If}from"./ClipLoader-e6af0d5e.js";function Rf(i){let t;const e=new Set,s=(l,u)=>{const h=typeof l=="function"?l(t):l;if(h!==t){const d=t;t=u?h:Object.assign({},t,h),e.forEach(p=>p(t,d))}},n=()=>t,r=(l,u=n,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(t);function p(){const _=u(t);if(!h(d,_)){const f=d;l(d=_,f)}}return e.add(p),()=>e.delete(p)},c={setState:s,getState:n,subscribe:(l,u,h)=>u||h?r(l,u,h):(e.add(l),()=>e.delete(l)),destroy:()=>e.clear()};return t=i(s,n,c),c}const Ff=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Vc=Ff?A.useEffect:A.useLayoutEffect;function Lf(i){const t=typeof i=="function"?Rf(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=A.useReducer(m=>m+1,0),o=t.getState(),a=A.useRef(o),c=A.useRef(s),l=A.useRef(n),u=A.useRef(!1),h=A.useRef();h.current===void 0&&(h.current=s(o));let d,p=!1;(a.current!==o||c.current!==s||l.current!==n||u.current)&&(d=s(o),p=!n(h.current,d)),Vc(()=>{p&&(h.current=d),a.current=o,c.current=s,l.current=n,u.current=!1});const _=A.useRef(o);Vc(()=>{const m=()=>{try{const b=t.getState(),w=c.current(b);l.current(h.current,w)||(a.current=b,h.current=w,r())}catch{u.current=!0,r()}},v=t.subscribe(m);return t.getState()!==_.current&&m(),v},[]);const f=p?d:h.current;return A.useDebugValue(f),f};return Object.assign(e,t),e[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[e,t];return{next(){const n=s.length<=0;return{value:s.shift(),done:n}}}},e}let si=0;const Vf=Lf(i=>(pr.onStart=(t,e,s)=>{i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100})},pr.onLoad=()=>{i({active:!1})},pr.onError=t=>i(e=>({errors:[...e.errors,t]})),pr.onProgress=(t,e,s)=>{e===s&&(si=s),i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),Uf=i=>`Loading ${i.toFixed(2)}%`;function zf({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=Uf,initialState:r=o=>o}){const{active:o,progress:a}=Vf(),c=A.useRef(0),l=A.useRef(0),u=A.useRef(null),[h,d]=A.useState(r(o));A.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=A.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=n(c.current),c.current(p(),()=>cancelAnimationFrame(l.current)),[p]),h?A.createElement("div",{style:{...mr.container,opacity:o?1:0,...i}},A.createElement("div",null,A.createElement("div",{style:{...mr.inner,...t}},A.createElement("div",{style:{...mr.bar,transform:`scaleX(${a/100})`,...e}}),A.createElement("span",{ref:u,style:{...mr.data,...s}})))):null}const mr={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"}},Fo=new pf,Lo=new at,yn=new at,Re=new at,rs=new at,Ge=new at,os=new at,as=new at,ni=new at,ii=new at,ri=new at,_r=new at,oi=new at,ai=new at,ci=new at;class jf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new at,this.endPoint=new at,this.collection=[],this.deep=s||Number.MAX_VALUE}select(t,e){return this.startPoint=t||this.startPoint,this.endPoint=e||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Fo,this.scene),this.collection}updateFrustum(t,e){if(t=t||this.startPoint,e=e||this.endPoint,t.x===e.x&&(e.x+=Number.EPSILON),t.y===e.y&&(e.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){yn.copy(t),yn.x=Math.min(t.x,e.x),yn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Re.setFromMatrixPosition(this.camera.matrixWorld),rs.copy(yn),Ge.set(e.x,yn.y,0),os.copy(e),as.set(yn.x,e.y,0),rs.unproject(this.camera),Ge.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),oi.copy(rs).sub(Re),ai.copy(Ge).sub(Re),ci.copy(os).sub(Re),oi.normalize(),ai.normalize(),ci.normalize(),oi.multiplyScalar(this.deep),ai.multiplyScalar(this.deep),ci.multiplyScalar(this.deep),oi.add(Re),ai.add(Re),ci.add(Re);var s=Fo.planes;s[0].setFromCoplanarPoints(Re,rs,Ge),s[1].setFromCoplanarPoints(Re,Ge,os),s[2].setFromCoplanarPoints(os,as,Re),s[3].setFromCoplanarPoints(as,rs,Re),s[4].setFromCoplanarPoints(Ge,os,as),s[5].setFromCoplanarPoints(ci,ai,oi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const n=Math.min(t.x,e.x),r=Math.max(t.y,e.y),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y);rs.set(n,r,-1),Ge.set(o,r,-1),os.set(o,a,-1),as.set(n,a,-1),ni.set(n,r,1),ii.set(o,r,1),ri.set(o,a,1),_r.set(n,a,1),rs.unproject(this.camera),Ge.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ni.unproject(this.camera),ii.unproject(this.camera),ri.unproject(this.camera),_r.unproject(this.camera);var s=Fo.planes;s[0].setFromCoplanarPoints(rs,ni,ii),s[1].setFromCoplanarPoints(Ge,ii,ri),s[2].setFromCoplanarPoints(ri,_r,as),s[3].setFromCoplanarPoints(_r,ni,rs),s[4].setFromCoplanarPoints(Ge,os,as),s[5].setFromCoplanarPoints(ri,ii,ni),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(t,e){if((e.isMesh||e.isLine||e.isPoints)&&e.material!==void 0&&(e.geometry.boundingSphere===null&&e.geometry.computeBoundingSphere(),Lo.copy(e.geometry.boundingSphere.center),Lo.applyMatrix4(e.matrixWorld),t.containsPoint(Lo)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?X.copy(P[P.length-1]):X.identity())}function n(I){const F=new qs,S=new _t,D=new _t,H=new _t;let N=!0,V=!1;const st=I.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let nt=0,J=st.length;nt0&&(S.copy(H),F.currentPath.currentPoint.copy(S),N=!0);break;default:console.warn(pt)}V=!1}return F}function r(I){if(!(!I.sheet||!I.sheet.cssRules||!I.sheet.cssRules.length))for(let F=0;FH.trim());for(let H=0;H1){const Pc=Math.sqrt(Z);F=Pc*F,S=Pc*S,K=F*F,B=S*S}const tt=K*E+B*O,lt=(K*B-tt)/tt;let vt=Math.sqrt(Math.max(0,lt));H===N&&(vt=-vt);const Yt=vt*F*pt/S,Ie=-vt*S*J/F,ti=Math.cos(D)*Yt-Math.sin(D)*Ie+(V.x+it.x)/2,Io=Math.sin(D)*Yt+Math.cos(D)*Ie+(V.y+it.y)/2,dr=a(1,0,(J-Yt)/F,(pt-Ie)/S),Od=a((J-Yt)/F,(pt-Ie)/S,(-J-Yt)/F,(-pt-Ie)/S)%(Math.PI*2);I.currentPath.absellipse(ti,Io,F,S,dr,dr+Od,N===0,D)}function a(I,F,S,D){const H=I*S+F*D,N=Math.sqrt(I*I+F*F)*Math.sqrt(S*S+D*D);let V=Math.acos(Math.max(-1,Math.min(1,H/N)));return I*D-F*S<0&&(V=-V),V}function c(I){const F=w(I.getAttribute("x")||0),S=w(I.getAttribute("y")||0),D=w(I.getAttribute("rx")||I.getAttribute("ry")||0),H=w(I.getAttribute("ry")||I.getAttribute("rx")||0),N=w(I.getAttribute("width")),V=w(I.getAttribute("height")),it=1-.551915024494,st=new qs;return st.moveTo(F+D,S),st.lineTo(F+N-D,S),(D!==0||H!==0)&&st.bezierCurveTo(F+N-D*it,S,F+N,S+H*it,F+N,S+H),st.lineTo(F+N,S+V-H),(D!==0||H!==0)&&st.bezierCurveTo(F+N,S+V-H*it,F+N-D*it,S+V,F+N-D,S+V),st.lineTo(F+D,S+V),(D!==0||H!==0)&&st.bezierCurveTo(F+D*it,S+V,F,S+V-H*it,F,S+V-H),st.lineTo(F,S+H),(D!==0||H!==0)&&st.bezierCurveTo(F,S+H*it,F+D*it,S,F+D,S),st}function l(I){function F(N,V,it){const st=w(V),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new qs;let H=0;return I.getAttribute("points").replace(S,F),D.currentPath.autoClose=!0,D}function u(I){function F(N,V,it){const st=w(V),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new qs;let H=0;return I.getAttribute("points").replace(S,F),D.currentPath.autoClose=!1,D}function h(I){const F=w(I.getAttribute("cx")||0),S=w(I.getAttribute("cy")||0),D=w(I.getAttribute("r")||0),H=new Ro;H.absarc(F,S,D,0,Math.PI*2);const N=new qs;return N.subPaths.push(H),N}function d(I){const F=w(I.getAttribute("cx")||0),S=w(I.getAttribute("cy")||0),D=w(I.getAttribute("rx")||0),H=w(I.getAttribute("ry")||0),N=new Ro;N.absellipse(F,S,D,H,0,Math.PI*2);const V=new qs;return V.subPaths.push(N),V}function p(I){const F=w(I.getAttribute("x1")||0),S=w(I.getAttribute("y1")||0),D=w(I.getAttribute("x2")||0),H=w(I.getAttribute("y2")||0),N=new qs;return N.moveTo(F,S),N.lineTo(D,H),N.currentPath.autoClose=!1,N}function _(I,F){F=Object.assign({},F);let S={};if(I.hasAttribute("class")){const V=I.getAttribute("class").split(/\s/).filter(Boolean).map(it=>it.trim());for(let it=0;it0&&F.premultiply(P[P.length-1]),X.copy(F),P.push(F),F}function y(I){const F=new gn,S=U;if(I.nodeName==="use"&&(I.hasAttribute("x")||I.hasAttribute("y"))){const D=w(I.getAttribute("x")),H=w(I.getAttribute("y"));F.translate(D,H)}if(I.hasAttribute("transform")){const D=I.getAttribute("transform").split(")");for(let H=D.length-1;H>=0;H--){const N=D[H].trim();if(N==="")continue;const V=N.indexOf("("),it=N.length;if(V>0&&V=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.translate(J,pt)}break;case"rotate":if(nt.length>=1){let J=0,pt=0,K=0;J=-nt[0]*Math.PI/180,nt.length>=3&&(pt=nt[1],K=nt[2]),W.identity().translate(-pt,-K),G.identity().rotate(J),Y.multiplyMatrices(G,W),W.identity().translate(pt,K),S.multiplyMatrices(W,Y)}break;case"scale":if(nt.length>=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.scale(J,pt)}break;case"skewX":nt.length===1&&S.set(1,Math.tan(nt[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":nt.length===1&&S.set(1,0,0,Math.tan(nt[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":nt.length===6&&S.set(nt[0],nt[2],nt[4],nt[1],nt[3],nt[5],0,0,1);break}}F.premultiply(S)}}return F}function x(I,F){function S(N){z.set(N.x,N.y,1).applyMatrix3(F),N.set(z.x,z.y)}const D=T(F),H=I.subPaths;for(let N=0,V=H.length;N=1||Y<0||Y>1)return null;if(P===0&&W===0){for(let j=0;j<2;j++)if(o(j===0?b:w,m,v),n.loc==s.ORIGIN){const z=j===0?b:w;return{x:z.x,y:z.y,t:n.t}}else if(n.loc==s.BETWEEN){const z=+(g+n.t*(y-g)).toPrecision(10),X=+(k+n.t*(C-k)).toPrecision(10);return{x:z,y:X,t:n.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?b:w,m,v),n.loc==s.ORIGIN){const Q=X===0?b:w;return{x:Q.x,y:Q.y,t:n.t}}const j=+(g+G*(y-g)).toPrecision(10),z=+(k+G*(C-k)).toPrecision(10);return{x:j,y:z,t:G}}}function o(m,v,b){const w=b.x-v.x,g=b.y-v.y,y=m.x-v.x,x=m.y-v.y,T=w*x-y*g;if(m.x===v.x&&m.y===v.y){n.loc=s.ORIGIN,n.t=0;return}if(m.x===b.x&&m.y===b.y){n.loc=s.DESTINATION,n.t=1;return}if(T<-Number.EPSILON){n.loc=s.LEFT;return}if(T>Number.EPSILON){n.loc=s.RIGHT;return}if(w*y<0||g*x<0){n.loc=s.BEHIND;return}if(Math.sqrt(w*w+g*g)R.t<=M.t+Number.EPSILON&&R.t>=M.t-Number.EPSILON)===void 0&&(b.push(M),w.push(new _t(M.x,M.y)))}}return w}function c(m,v,b){const w=new _t;v.getCenter(w);const g=[];return b.forEach(y=>{y.boundingBox.containsPoint(w)&&a(m,y.points).forEach(T=>{g.push({identifier:y.identifier,isCW:y.isCW,point:T})})}),g.sort((y,x)=>y.point.x-x.point.x),g}function l(m,v,b,w,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const x=[new _t(b,y.y),new _t(w,y.y)],T=c(x,m.boundingBox,v);T.sort((U,W)=>U.point.x-W.point.x);const k=[],C=[];T.forEach(U=>{U.identifier===m.identifier?k.push(U):C.push(U)});const M=k[0].point.x,R=[];let P=0;for(;P0&&R[R.length-1]===C[P].identifier?R.pop():R.push(C[P].identifier),P++;if(R.push(m.identifier),g==="evenodd"){const U=R.length%2===0,W=R[R.length-2];return{identifier:m.identifier,isHole:U,for:W}}else if(g==="nonzero"){let U=!0,W=null,G=null;for(let Y=0;Y{const v=m.getPoints();let b=-999999999,w=999999999,g=-999999999,y=999999999;for(let x=0;xb&&(b=T.y),T.yg&&(g=T.x),T.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:gf.isClockWise(v),identifier:u++,boundingBox:new yf(new _t(y,w),new _t(g,b))}});p=p.filter(m=>m.points.length>1);const _=p.map(m=>l(m,p,h,d,t.userData.style.fillRule)),f=[];return p.forEach(m=>{if(!_[m.identifier].isHole){const b=new tu;b.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],x=new Ro;x.curves=y.curves,b.holes.push(x)}),f.push(b)}}),f}static getStrokeStyle(t,e,s,n,r){return t=t!==void 0?t:1,e=e!==void 0?e:"#000",s=s!==void 0?s:"miter",n=n!==void 0?n:"butt",r=r!==void 0?r:4,{strokeColor:e,strokeWidth:t,strokeLineJoin:s,strokeLineCap:n,strokeMiterLimit:r}}static pointsToStroke(t,e,s,n){const r=[],o=[],a=[];if(xi.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new vf;return c.setAttribute("position",new Mr(r,3)),c.setAttribute("normal",new Mr(o,3)),c.setAttribute("uv",new Mr(a,2)),c}static pointsToStrokeWithBuffers(t,e,s,n,r,o,a,c){const l=new _t,u=new _t,h=new _t,d=new _t,p=new _t,_=new _t,f=new _t,m=new _t,v=new _t,b=new _t,w=new _t,g=new _t,y=new _t,x=new _t,T=new _t,k=new _t,C=new _t;s=s!==void 0?s:12,n=n!==void 0?n:.001,c=c!==void 0?c:0,t=pt(t);const M=t.length;if(M<2)return 0;const R=t[0].equals(t[M-1]);let P,U=t[0],W;const G=e.strokeWidth/2,Y=1/(M-1);let j=0,z,X,Q,et,I=!1,F=0,S=c*3,D=c*2;H(t[0],t[1],l).multiplyScalar(G),m.copy(t[0]).sub(l),v.copy(t[0]).add(l),b.copy(m),w.copy(v);for(let K=1;K=n&&O.push(K[E]);return O.push(K[K.length-1]),O}}}function Bf(i,t){if(Object.is(i,t))return!0;if(typeof i!="object"||i===null||typeof t!="object"||t===null)return!1;const e=Object.keys(i);if(e.length!==Object.keys(t).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:p,get:_}=Nt(),[f,m]=A.useState(!1),[v,b]=A.useReducer((x,{object:T,shift:k})=>T===void 0?[]:Array.isArray(T)?T:k?x.includes(T)?x.filter(C=>C!==T):[T,...x]:x[0]===T?[]:[T],[]);A.useEffect(()=>void(s==null?void 0:s(v)),[v]);const w=A.useCallback(x=>{x.stopPropagation(),b({object:o([x.object])[0],shift:t&&x.shiftKey})},[]),g=A.useCallback(x=>!f&&b({}),[f]),y=A.useRef(null);return A.useEffect(()=>{if(!i||!t)return;const x=new jf(l,y.current),T=document.createElement("div");T.style.pointerEvents="none",T.style.border=n,T.style.backgroundColor=r,T.style.position="fixed";const k=new _t,C=new _t,M=new _t,R=_().events.enabled,P=d==null?void 0:d.enabled;let U=!1;function W(I,F){const{offsetX:S,offsetY:D}=I,{width:H,height:N}=p;F.set(S/H*2-1,-(D/N)*2+1)}function G(I){var F;d&&(d.enabled=!1),c({enabled:!1}),U=!0,(F=h.domElement.parentElement)==null||F.appendChild(T),T.style.left=`${I.clientX}px`,T.style.top=`${I.clientY}px`,T.style.width="0px",T.style.height="0px",k.x=I.clientX,k.y=I.clientY}function Y(I){M.x=Math.max(k.x,I.clientX),M.y=Math.max(k.y,I.clientY),C.x=Math.min(k.x,I.clientX),C.y=Math.min(k.y,I.clientY),T.style.left=`${C.x}px`,T.style.top=`${C.y}px`,T.style.width=`${M.x-C.x}px`,T.style.height=`${M.y-C.y}px`}function j(){if(U){var I;d&&(d.enabled=P),c({enabled:R}),U=!1,(I=T.parentElement)==null||I.removeChild(T)}}function z(I){I.shiftKey&&(G(I),W(I,x.startPoint))}let X=[];function Q(I){if(U){Y(I),W(I,x.endPoint);const F=x.select().sort(S=>S.uuid).filter(S=>S.isMesh);Bf(F,X)||(X=F,b({object:o(F)}))}}function et(I){U&&j()}return document.addEventListener("pointerdown",z,{passive:!0}),document.addEventListener("pointermove",Q,{passive:!0,capture:!0}),document.addEventListener("pointerup",et,{passive:!0}),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",et)}},[p.width,p.height,u,l,d,h]),A.createElement("group",Oe({ref:y,onClick:w,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),A.createElement(qf.Provider,{value:v},e))}const su=A.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=A.useRef();return be(({camera:c})=>{if(!t||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),e&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),n&&(a.current.rotation.z=l.z)}),A.createElement("group",Oe({ref:ho([a,o])},r))}),Uc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Ks(i,t){const e=Nt(n=>n.gl),s=fo(mo,Uc(i)?Object.values(i):i);if(A.useLayoutEffect(()=>{t==null||t(s)},[t]),A.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(e.initTexture)},[e,s]),Uc(i)){const n=Object.keys(i),r={};return n.forEach(o=>Object.assign(r,{[o]:s[n.indexOf(o)]})),r}else return s}Ks.preload=i=>fo.preload(mo,i);Ks.clear=i=>fo.clear(mo,i);const Hf=A.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=fo(xi,t.startsWith("s?[]:u.paths.map(d=>{var p;return((p=d.userData)==null?void 0:p.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(_=>xi.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return A.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),A.createElement("object3D",Oe({ref:l},c),A.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return A.createElement(A.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&xi.createShapes(d).map((m,v)=>A.createElement("mesh",Oe({key:v},o),A.createElement("shapeGeometry",{args:[m]}),A.createElement("meshBasicMaterial",Oe({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:ra,depthWrite:!1},n)))),!s&&((f=d.userData)==null?void 0:f.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((m,v)=>A.createElement("mesh",Oe({key:v,geometry:h[p][v]},a),A.createElement("meshBasicMaterial",Oe({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:ra,depthWrite:!1},r)))))})))});/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu @@ -356,7 +356,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var Il,Ss,Rn,Sc,Qs,Rl,Ec,wv=function(){return typeof window<"u"},gs={},$s=180/Math.PI,Fn=Math.PI/180,Cn=Math.atan2,Fl=1e8,Oc=/([A-Z])/g,bv=/(left|right|width|margin|padding|x)/i,Cv=/[\s,\(]\S/,Qe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Aa=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Sv=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Ev=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Ov=function(t,e){var s=e.s+e.c*t;e.set(e.t,e.p,~~(s+(s<0?-.5:.5))+e.u,e)},od=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ad=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Av=function(t,e,s){return t.style[e]=s},Mv=function(t,e,s){return t.style.setProperty(e,s)},Dv=function(t,e,s){return t._gsap[e]=s},Pv=function(t,e,s){return t._gsap.scaleX=t._gsap.scaleY=s},Nv=function(t,e,s,n,r){var o=t._gsap;o.scaleX=o.scaleY=s,o.renderTransform(r,o)},Iv=function(t,e,s,n,r){var o=t._gsap;o[e]=s,o.renderTransform(r,o)},Rt="transform",pe=Rt+"Origin",Rv=function i(t,e){var s=this,n=this.target,r=n.style,o=n._gsap;if(t in gs&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Qe[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return s.tfm[a]=hs(n,a)}):this.tfm[t]=o.x?o[t]:hs(n,t),t===pe&&(this.tfm.zOrigin=o.zOrigin);else return Qe.transform.split(",").forEach(function(a){return i.call(s,a,e)});if(this.props.indexOf(Rt)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(pe,e,"")),t=Rt}(r||e)&&this.props.push(t,e,r[t])},cd=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Fv=function(){var t=this.props,e=this.target,s=e.style,n=e._gsap,r,o;for(r=0;r=0?Ll[o]:"")+t},Da=function(){wv()&&window.document&&(Il=window,Ss=Il.document,Rn=Ss.documentElement,Qs=Ma("div")||{style:{}},Ma("div"),Rt=$n(Rt),pe=Rt+"Origin",Qs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ud=!!$n("perspective"),Ec=_e.core.reverting,Sc=1)},ea=function i(t){var e=Ma("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,n=this.nextSibling,r=this.style.cssText,o;if(Rn.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(n?s.insertBefore(this,n):s.appendChild(this)),Rn.removeChild(e),this.style.cssText=r,o},Vl=function(t,e){for(var s=e.length;s--;)if(t.hasAttribute(e[s]))return t.getAttribute(e[s])},hd=function(t){var e;try{e=t.getBBox()}catch{e=ea.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===ea||(e=ea.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+Vl(t,["x","cx","x1"])||0,y:+Vl(t,["y","cy","y1"])||0,width:0,height:0}:e},dd=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&hd(t))},dn=function(t,e){if(e){var s=t.style,n;e in gs&&e!==pe&&(e=Rt),s.removeProperty?(n=e.substr(0,2),(n==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),s.removeProperty(n==="--"?e:e.replace(Oc,"-$1").toLowerCase())):s.removeAttribute(e)}},Es=function(t,e,s,n,r,o){var a=new fe(t._pt,e,s,0,1,o?ad:od);return t._pt=a,a.b=n,a.e=r,t._props.push(s),a},Ul={deg:1,rad:1,turn:1},Lv={grid:1,flex:1},Vs=function i(t,e,s,n){var r=parseFloat(s)||0,o=(s+"").trim().substr((r+"").length)||"px",a=Qs.style,c=bv.test(e),l=t.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=n==="px",p=n==="%",_,f,m,v;if(n===o||!r||Ul[n]||Ul[o])return r;if(o!=="px"&&!d&&(r=i(t,e,s,"px")),v=t.getCTM&&dd(t),(p||o==="%")&&(gs[e]||~e.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[u],zt(p?r/_*h:r/100*_);if(a[c?"width":"height"]=h+(d?o:n),f=~e.indexOf("adius")||n==="em"&&t.appendChild&&!l?t:t.parentNode,v&&(f=(t.ownerSVGElement||{}).parentNode),(!f||f===Ss||!f.appendChild)&&(f=Ss.body),m=f._gsap,m&&p&&m.width&&c&&m.time===ve.time&&!m.uncache)return zt(r/m.width*h);if(p&&(e==="height"||e==="width")){var b=t.style[e];t.style[e]=h+n,_=t[u],b?t.style[e]=b:dn(t,e)}else(p||o==="%")&&!Lv[Je(f,"display")]&&(a.position=Je(t,"position")),f===t&&(a.position="static"),f.appendChild(Qs),_=Qs[u],f.removeChild(Qs),a.position="absolute";return c&&p&&(m=en(f),m.time=ve.time,m.width=f[u]),zt(d?_*r/h:_&&r?h/_*r:0)},hs=function(t,e,s,n){var r;return Sc||Da(),e in Qe&&e!=="transform"&&(e=Qe[e],~e.indexOf(",")&&(e=e.split(",")[0])),gs[e]&&e!=="transform"?(r=Ki(t,n),r=e!=="transformOrigin"?r[e]:r.svg?r.origin:lo(Je(t,pe))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=co[e]&&co[e](t,e,s)||Je(t,e)||Oh(t,e)||(e==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?Vs(t,e,r,s)+s:r},Vv=function(t,e,s,n){if(!s||s==="none"){var r=$n(e,t,1),o=r&&Je(t,r,1);o&&o!==s?(e=r,s=o):e==="borderColor"&&(s=Je(t,"borderTopColor"))}var a=new fe(this._pt,t.style,e,0,1,nd),c=0,l=0,u,h,d,p,_,f,m,v,b,w,g,y;if(a.b=s,a.e=n,s+="",n+="",n==="auto"&&(f=t.style[e],t.style[e]=n,n=Je(t,e)||n,f?t.style[e]=f:dn(t,e)),u=[s,n],Gh(u),s=u[0],n=u[1],d=s.match(Mn)||[],y=n.match(Mn)||[],y.length){for(;h=Mn.exec(n);)m=h[0],b=n.substring(c,h.index),_?_=(_+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(_=1),m!==(f=d[l++]||"")&&(p=parseFloat(f)||0,g=f.substr((p+"").length),m.charAt(1)==="="&&(m=In(p,m)+g),v=parseFloat(m),w=m.substr((v+"").length),c=Mn.lastIndex-w.length,w||(w=w||Te.units[e]||g,c===n.length&&(n+=w,a.e+=w)),g!==w&&(p=Vs(t,e,f,w)||0),a._pt={_next:a._pt,p:b||l===1?b:",",s:p,c:v-p,m:_&&_<4||e==="zIndex"?Math.round:0});a.c=c-1;)a=r[l],gs[a]&&(c=1,a=a==="transformOrigin"?pe:Rt),dn(s,a);c&&(dn(s,Rt),o&&(o.svg&&s.removeAttribute("transform"),Ki(s,1),o.uncache=1,cd(n)))}},co={clearProps:function(t,e,s,n,r){if(r.data!=="isFromStart"){var o=t._pt=new fe(t._pt,e,s,0,0,zv);return o.u=n,o.pr=-10,o.tween=r,t._props.push(s),1}}},Qi=[1,0,0,1,0,0],fd={},pd=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},jl=function(t){var e=Je(t,Rt);return pd(e)?Qi:e.substr(7).match(xh).map(zt)},Ac=function(t,e){var s=t._gsap||en(t),n=t.style,r=jl(t),o,a,c,l;return s.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,r=[c.a,c.b,c.c,c.d,c.e,c.f],r.join(",")==="1,0,0,1,0,0"?Qi:r):(r===Qi&&!t.offsetParent&&t!==Rn&&!s.svg&&(c=n.display,n.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(l=1,a=t.nextElementSibling,Rn.appendChild(t)),r=jl(t),c?n.display=c:dn(t,"display"),l&&(a?o.insertBefore(t,a):o?o.appendChild(t):Rn.removeChild(t))),e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Pa=function(t,e,s,n,r,o){var a=t._gsap,c=r||Ac(t,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,p=c[0],_=c[1],f=c[2],m=c[3],v=c[4],b=c[5],w=e.split(" "),g=parseFloat(w[0])||0,y=parseFloat(w[1])||0,x,T,k,C;s?c!==Qi&&(T=p*m-_*f)&&(k=g*(m/T)+y*(-f/T)+(f*b-m*v)/T,C=g*(-_/T)+y*(p/T)-(p*b-_*v)/T,g=k,y=C):(x=hd(t),g=x.x+(~w[0].indexOf("%")?g/100*x.width:g),y=x.y+(~(w[1]||w[0]).indexOf("%")?y/100*x.height:y)),n||n!==!1&&a.smooth?(v=g-l,b=y-u,a.xOffset=h+(v*p+b*f)-v,a.yOffset=d+(v*_+b*m)-b):a.xOffset=a.yOffset=0,a.xOrigin=g,a.yOrigin=y,a.smooth=!!n,a.origin=e,a.originIsAbsolute=!!s,t.style[pe]="0px 0px",o&&(Es(o,a,"xOrigin",l,g),Es(o,a,"yOrigin",u,y),Es(o,a,"xOffset",h,a.xOffset),Es(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",g+" "+y)},Ki=function(t,e){var s=t._gsap||new Qh(t);if("x"in s&&!e&&!s.uncache)return s;var n=t.style,r=s.scaleX<0,o="px",a="deg",c=getComputedStyle(t),l=Je(t,pe)||"0",u,h,d,p,_,f,m,v,b,w,g,y,x,T,k,C,M,R,P,U,W,G,Y,j,z,X,Q,et,I,F,S,D;return u=h=d=f=m=v=b=w=g=0,p=_=1,s.svg=!!(t.getCTM&&dd(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(n[Rt]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Rt]!=="none"?c[Rt]:"")),n.scale=n.rotate=n.translate="none"),T=Ac(t,s.svg),s.svg&&(s.uncache?(z=t.getBBox(),l=s.xOrigin-z.x+"px "+(s.yOrigin-z.y)+"px",j=""):j=!e&&t.getAttribute("data-svg-origin"),Pa(t,j||l,!!j||s.originIsAbsolute,s.smooth!==!1,T)),y=s.xOrigin||0,x=s.yOrigin||0,T!==Qi&&(R=T[0],P=T[1],U=T[2],W=T[3],u=G=T[4],h=Y=T[5],T.length===6?(p=Math.sqrt(R*R+P*P),_=Math.sqrt(W*W+U*U),f=R||P?Cn(P,R)*$s:0,b=U||W?Cn(U,W)*$s+f:0,b&&(_*=Math.abs(Math.cos(b*Fn))),s.svg&&(u-=y-(y*R+x*U),h-=x-(y*P+x*W))):(D=T[6],F=T[7],Q=T[8],et=T[9],I=T[10],S=T[11],u=T[12],h=T[13],d=T[14],k=Cn(D,I),m=k*$s,k&&(C=Math.cos(-k),M=Math.sin(-k),j=G*C+Q*M,z=Y*C+et*M,X=D*C+I*M,Q=G*-M+Q*C,et=Y*-M+et*C,I=D*-M+I*C,S=F*-M+S*C,G=j,Y=z,D=X),k=Cn(-U,I),v=k*$s,k&&(C=Math.cos(-k),M=Math.sin(-k),j=R*C-Q*M,z=P*C-et*M,X=U*C-I*M,S=W*M+S*C,R=j,P=z,U=X),k=Cn(P,R),f=k*$s,k&&(C=Math.cos(k),M=Math.sin(k),j=R*C+P*M,z=G*C+Y*M,P=P*C-R*M,Y=Y*C-G*M,R=j,G=z),m&&Math.abs(m)+Math.abs(f)>359.9&&(m=f=0,v=180-v),p=zt(Math.sqrt(R*R+P*P+U*U)),_=zt(Math.sqrt(Y*Y+D*D)),k=Cn(G,Y),b=Math.abs(k)>2e-4?k*$s:0,g=S?1/(S<0?-S:S):0),s.svg&&(j=t.getAttribute("transform"),s.forceCSS=t.setAttribute("transform","")||!pd(Je(t,Rt)),j&&t.setAttribute("transform",j))),Math.abs(b)>90&&Math.abs(b)<270&&(r?(p*=-1,b+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,b+=b<=0?180:-180)),e=e||s.uncache,s.x=u-((s.xPercent=u&&(!e&&s.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-u)?-50:0)))?t.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!e&&s.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=zt(p),s.scaleY=zt(_),s.rotation=zt(f)+a,s.rotationX=zt(m)+a,s.rotationY=zt(v)+a,s.skewX=b+a,s.skewY=w+a,s.transformPerspective=g+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!e&&s.zOrigin||0)&&(n[pe]=lo(l)),s.xOffset=s.yOffset=0,s.force3D=Te.force3D,s.renderTransform=s.svg?Bv:ud?md:jv,s.uncache=0,s},lo=function(t){return(t=t.split(" "))[0]+" "+t[1]},sa=function(t,e,s){var n=Kt(e);return zt(parseFloat(e)+parseFloat(Vs(t,"x",s+"px",n)))+n},jv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,md(t,e)},Ys="0deg",gi="0px",Gs=") ",md=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,p=s.skewY,_=s.scaleX,f=s.scaleY,m=s.transformPerspective,v=s.force3D,b=s.target,w=s.zOrigin,g="",y=v==="auto"&&t&&t!==1||v===!0;if(w&&(h!==Ys||u!==Ys)){var x=parseFloat(u)*Fn,T=Math.sin(x),k=Math.cos(x),C;x=parseFloat(h)*Fn,C=Math.cos(x),o=sa(b,o,T*C*-w),a=sa(b,a,-Math.sin(x)*-w),c=sa(b,c,k*C*-w+w)}m!==gi&&(g+="perspective("+m+Gs),(n||r)&&(g+="translate("+n+"%, "+r+"%) "),(y||o!==gi||a!==gi||c!==gi)&&(g+=c!==gi||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Gs),l!==Ys&&(g+="rotate("+l+Gs),u!==Ys&&(g+="rotateY("+u+Gs),h!==Ys&&(g+="rotateX("+h+Gs),(d!==Ys||p!==Ys)&&(g+="skew("+d+", "+p+Gs),(_!==1||f!==1)&&(g+="scale("+_+", "+f+Gs),b.style[Rt]=g||"translate(0, 0)"},Bv=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,p=s.target,_=s.xOrigin,f=s.yOrigin,m=s.xOffset,v=s.yOffset,b=s.forceCSS,w=parseFloat(o),g=parseFloat(a),y,x,T,k,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Fn,l*=Fn,y=Math.cos(c)*h,x=Math.sin(c)*h,T=Math.sin(c-l)*-d,k=Math.cos(c-l)*d,l&&(u*=Fn,C=Math.tan(l-u),C=Math.sqrt(1+C*C),T*=C,k*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,x*=C)),y=zt(y),x=zt(x),T=zt(T),k=zt(k)):(y=h,k=d,x=T=0),(w&&!~(o+"").indexOf("px")||g&&!~(a+"").indexOf("px"))&&(w=Vs(p,"x",o,"px"),g=Vs(p,"y",a,"px")),(_||f||m||v)&&(w=zt(w+_-(_*y+f*T)+m),g=zt(g+f-(_*x+f*k)+v)),(n||r)&&(C=p.getBBox(),w=zt(w+n/100*C.width),g=zt(g+r/100*C.height)),C="matrix("+y+","+x+","+T+","+k+","+w+","+g+")",p.setAttribute("transform",C),b&&(p.style[Rt]=C)},qv=function(t,e,s,n,r){var o=360,a=Zt(r),c=parseFloat(r)*(a&&~r.indexOf("rad")?$s:1),l=c-n,u=n+l+"deg",h,d;return a&&(h=r.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*Fl)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Fl)%o-~~(l/o)*o)),t._pt=d=new fe(t._pt,e,s,n,l,Sv),d.e=u,d.u="deg",t._props.push(s),d},Bl=function(t,e){for(var s in e)t[s]=e[s];return t},Wv=function(t,e,s){var n=Bl({},s._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,p,_;n.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Rt]=e,a=Ki(s,1),dn(s,Rt),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Rt],o[Rt]=e,a=Ki(s,1),o[Rt]=l);for(c in gs)l=n[c],u=a[c],l!==u&&r.indexOf(c)<0&&(p=Kt(l),_=Kt(u),h=p!==_?Vs(s,c,l,_):parseFloat(l),d=parseFloat(u),t._pt=new fe(t._pt,a,c,h,d-h,Aa),t._pt.u=_||0,t._props.push(c));Bl(a,n)};de("padding,margin,Width,Radius",function(i,t){var e="Top",s="Right",n="Bottom",r="Left",o=(t<3?[e,s,n,r]:[e+r,e+s,n+s,n+r]).map(function(a){return t<2?i+a:"border"+a+i});co[t>1?"border"+i:i]=function(a,c,l,u,h){var d,p;if(arguments.length<4)return d=o.map(function(_){return hs(a,_,l)}),p=d.join(" "),p.split(d[0]).length===5?d[0]:p;d=(u+"").split(" "),p={},o.forEach(function(_,f){return p[_]=d[f]=d[f]||d[(f-1)/2|0]}),a.init(c,p,h)}});var _d={name:"css",register:Da,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,s,n,r){var o=this._props,a=t.style,c=s.vars.startAt,l,u,h,d,p,_,f,m,v,b,w,g,y,x,T,k;Sc||Da(),this.styles=this.styles||ld(t),k=this.styles.props,this.tween=s;for(f in e)if(f!=="autoRound"&&(u=e[f],!(ye[f]&&Kh(f,e,s,n,t,r)))){if(p=typeof u,_=co[f],p==="function"&&(u=u.call(s,n,t,r),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=$i(u)),_)_(this,t,f,u,s)&&(T=1);else if(f.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(f)+"").trim(),u+="",Ds.lastIndex=0,Ds.test(l)||(m=Kt(l),v=Kt(u)),v?m!==v&&(l=Vs(t,f,l,v)+v):m&&(u+=m),this.add(a,"setProperty",l,u,n,r,0,0,f),o.push(f),k.push(f,0,a[f]);else if(p!=="undefined"){if(c&&f in c?(l=typeof c[f]=="function"?c[f].call(s,n,t,r):c[f],Zt(l)&&~l.indexOf("random(")&&(l=$i(l)),Kt(l+"")||l==="auto"||(l+=Te.units[f]||Kt(hs(t,f))||""),(l+"").charAt(1)==="="&&(l=hs(t,f))):l=hs(t,f),d=parseFloat(l),b=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),b&&(u=u.substr(2)),h=parseFloat(u),f in Qe&&(f==="autoAlpha"&&(d===1&&hs(t,"visibility")==="hidden"&&h&&(d=0),k.push("visibility",0,a.visibility),Es(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Qe[f],~f.indexOf(",")&&(f=f.split(",")[0]))),w=f in gs,w){if(this.styles.save(f),g||(y=t._gsap,y.renderTransform&&!e.parseTransform||Ki(t,e.parseTransform),x=e.smoothOrigin!==!1&&y.smooth,g=this._pt=new fe(this._pt,a,Rt,0,1,y.renderTransform,y,0,-1),g.dep=1),f==="scale")this._pt=new fe(this._pt,y,"scaleY",y.scaleY,(b?In(y.scaleY,b+h):h)-y.scaleY||0,Aa),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){k.push(pe,0,a[pe]),u=Uv(u),y.svg?Pa(t,u,0,x,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==y.zOrigin&&Es(this,y,"zOrigin",y.zOrigin,v),Es(this,a,f,lo(l),lo(u)));continue}else if(f==="svgOrigin"){Pa(t,u,1,x,0,this);continue}else if(f in fd){qv(this,y,f,d,b?In(d,b+u):u);continue}else if(f==="smoothOrigin"){Es(this,y,"smooth",y.smooth,u);continue}else if(f==="force3D"){y[f]=u;continue}else if(f==="transform"){Wv(this,u,t);continue}}else f in a||(f=$n(f)||f);if(w||(h||h===0)&&(d||d===0)&&!Cv.test(u)&&f in a)m=(l+"").substr((d+"").length),h||(h=0),v=Kt(u)||(f in Te.units?Te.units[f]:m),m!==v&&(d=Vs(t,f,l,v)),this._pt=new fe(this._pt,w?y:a,f,d,(b?In(d,b+h):h)-d,!w&&(v==="px"||f==="zIndex")&&e.autoRound!==!1?Ov:Aa),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=Ev);else if(f in a)Vv.call(this,t,f,l,b?b+u:u);else if(f in t)this.add(t,f,l||t[f],b?b+u:u,n,r);else if(f!=="parseTransform"){gc(f,u);continue}w||(f in a?k.push(f,0,a[f]):k.push(f,1,l||t[f])),o.push(f)}}T&&id(this)},render:function(t,e){if(e.tween._time||!Ec())for(var s=e._pt;s;)s.r(t,s.d),s=s._next;else e.styles.revert()},get:hs,aliases:Qe,getSetter:function(t,e,s){var n=Qe[e];return n&&n.indexOf(",")<0&&(e=n),e in gs&&e!==pe&&(t._gsap.x||hs(t,"x"))?s&&Rl===s?e==="scale"?Pv:Dv:(Rl=s||{})&&(e==="scale"?Nv:Iv):t.style&&!pc(t.style[e])?Av:~e.indexOf("-")?Mv:bc(t,e)},core:{_removeProperty:dn,_getMatrix:Ac}};_e.utils.checkPrefix=$n;_e.core.getStyleSaver=ld;(function(i,t,e,s){var n=de(i+","+t+","+e,function(r){gs[r]=1});de(t,function(r){Te.units[r]="deg",fd[r]=1}),Qe[n[13]]=i+","+t,de(s,function(r){var o=r.split(":");Qe[o[1]]=n[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");de("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){Te.units[i]="px"});_e.registerPlugin(_d);var gd=_e.registerPlugin(_d)||_e;gd.core.Tween;const ql=new at(0,0,0),yd=i=>{const{isSelected:t,lineWidth:e,visible:s}=i,n=A.useRef(null);A.useEffect(()=>{const o=n.current;o&&gd.fromTo(o.material,{linewidth:5},{linewidth:t?2:e,duration:1})},[t,e,n]);const r=new _o(16711680);return L.jsx(zd,{ref:n,color:r,isLine2:!0,lineWidth:2,opacity:.5,points:[ql,ql],visible:s})};yd.displayName="LineComponent";const Hv=A.memo(yd),vd=A.memo(()=>{const i=Us(s=>s.dataInitial),{showSelectionGraph:t}=oe(s=>s),e=We();return console.log("connection"),L.jsx("group",{name:"simulation-3d-group__connections",children:i==null?void 0:i.links.map(s=>{const n=(e==null?void 0:e.ref_id)===s.source||(e==null?void 0:e.ref_id)===s.target,r=e?0:.5;return L.jsx(Hv,{isSelected:n,lineWidth:r,visible:!t},s.ref_id)})})});vd.displayName="Connections";const Yv=({color:i})=>L.jsx(L.Fragment,{children:L.jsx(su,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:L.jsx(ou,{color:i})})}),Gv=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"],$v=()=>{const i=We(),t=Us(r=>r.dataInitial),{normalizedSchemasByType:e}=Na(r=>r),s=Xl(),n=A.useMemo(()=>new Af(30,2,16,100),[]);return L.jsx(L.Fragment,{children:L.jsxs(Jf,{geometry:n,limit:1e3,range:1e3,visible:!i,children:[L.jsx("meshBasicMaterial",{}),t==null?void 0:t.nodes.map(r=>{var c;const a=((c=e[r.node_type])==null?void 0:c.primary_color)??(Gv[s.indexOf(r.node_type)]||Tt.white);return L.jsx(Yv,{color:a},r.ref_id)})]})})},Xv=A.memo($v),Zv=qt(ys)` +*/var Il,Ss,Rn,Sc,Qs,Rl,Ec,wv=function(){return typeof window<"u"},gs={},$s=180/Math.PI,Fn=Math.PI/180,Cn=Math.atan2,Fl=1e8,Oc=/([A-Z])/g,bv=/(left|right|width|margin|padding|x)/i,Cv=/[\s,\(]\S/,Qe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Aa=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Sv=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Ev=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Ov=function(t,e){var s=e.s+e.c*t;e.set(e.t,e.p,~~(s+(s<0?-.5:.5))+e.u,e)},od=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ad=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Av=function(t,e,s){return t.style[e]=s},Mv=function(t,e,s){return t.style.setProperty(e,s)},Dv=function(t,e,s){return t._gsap[e]=s},Pv=function(t,e,s){return t._gsap.scaleX=t._gsap.scaleY=s},Nv=function(t,e,s,n,r){var o=t._gsap;o.scaleX=o.scaleY=s,o.renderTransform(r,o)},Iv=function(t,e,s,n,r){var o=t._gsap;o[e]=s,o.renderTransform(r,o)},Rt="transform",pe=Rt+"Origin",Rv=function i(t,e){var s=this,n=this.target,r=n.style,o=n._gsap;if(t in gs&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Qe[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return s.tfm[a]=hs(n,a)}):this.tfm[t]=o.x?o[t]:hs(n,t),t===pe&&(this.tfm.zOrigin=o.zOrigin);else return Qe.transform.split(",").forEach(function(a){return i.call(s,a,e)});if(this.props.indexOf(Rt)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(pe,e,"")),t=Rt}(r||e)&&this.props.push(t,e,r[t])},cd=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Fv=function(){var t=this.props,e=this.target,s=e.style,n=e._gsap,r,o;for(r=0;r=0?Ll[o]:"")+t},Da=function(){wv()&&window.document&&(Il=window,Ss=Il.document,Rn=Ss.documentElement,Qs=Ma("div")||{style:{}},Ma("div"),Rt=$n(Rt),pe=Rt+"Origin",Qs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ud=!!$n("perspective"),Ec=_e.core.reverting,Sc=1)},ea=function i(t){var e=Ma("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,n=this.nextSibling,r=this.style.cssText,o;if(Rn.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(n?s.insertBefore(this,n):s.appendChild(this)),Rn.removeChild(e),this.style.cssText=r,o},Vl=function(t,e){for(var s=e.length;s--;)if(t.hasAttribute(e[s]))return t.getAttribute(e[s])},hd=function(t){var e;try{e=t.getBBox()}catch{e=ea.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===ea||(e=ea.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+Vl(t,["x","cx","x1"])||0,y:+Vl(t,["y","cy","y1"])||0,width:0,height:0}:e},dd=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&hd(t))},dn=function(t,e){if(e){var s=t.style,n;e in gs&&e!==pe&&(e=Rt),s.removeProperty?(n=e.substr(0,2),(n==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),s.removeProperty(n==="--"?e:e.replace(Oc,"-$1").toLowerCase())):s.removeAttribute(e)}},Es=function(t,e,s,n,r,o){var a=new fe(t._pt,e,s,0,1,o?ad:od);return t._pt=a,a.b=n,a.e=r,t._props.push(s),a},Ul={deg:1,rad:1,turn:1},Lv={grid:1,flex:1},Vs=function i(t,e,s,n){var r=parseFloat(s)||0,o=(s+"").trim().substr((r+"").length)||"px",a=Qs.style,c=bv.test(e),l=t.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=n==="px",p=n==="%",_,f,m,v;if(n===o||!r||Ul[n]||Ul[o])return r;if(o!=="px"&&!d&&(r=i(t,e,s,"px")),v=t.getCTM&&dd(t),(p||o==="%")&&(gs[e]||~e.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[u],zt(p?r/_*h:r/100*_);if(a[c?"width":"height"]=h+(d?o:n),f=~e.indexOf("adius")||n==="em"&&t.appendChild&&!l?t:t.parentNode,v&&(f=(t.ownerSVGElement||{}).parentNode),(!f||f===Ss||!f.appendChild)&&(f=Ss.body),m=f._gsap,m&&p&&m.width&&c&&m.time===ve.time&&!m.uncache)return zt(r/m.width*h);if(p&&(e==="height"||e==="width")){var b=t.style[e];t.style[e]=h+n,_=t[u],b?t.style[e]=b:dn(t,e)}else(p||o==="%")&&!Lv[Je(f,"display")]&&(a.position=Je(t,"position")),f===t&&(a.position="static"),f.appendChild(Qs),_=Qs[u],f.removeChild(Qs),a.position="absolute";return c&&p&&(m=en(f),m.time=ve.time,m.width=f[u]),zt(d?_*r/h:_&&r?h/_*r:0)},hs=function(t,e,s,n){var r;return Sc||Da(),e in Qe&&e!=="transform"&&(e=Qe[e],~e.indexOf(",")&&(e=e.split(",")[0])),gs[e]&&e!=="transform"?(r=Ki(t,n),r=e!=="transformOrigin"?r[e]:r.svg?r.origin:lo(Je(t,pe))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=co[e]&&co[e](t,e,s)||Je(t,e)||Oh(t,e)||(e==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?Vs(t,e,r,s)+s:r},Vv=function(t,e,s,n){if(!s||s==="none"){var r=$n(e,t,1),o=r&&Je(t,r,1);o&&o!==s?(e=r,s=o):e==="borderColor"&&(s=Je(t,"borderTopColor"))}var a=new fe(this._pt,t.style,e,0,1,nd),c=0,l=0,u,h,d,p,_,f,m,v,b,w,g,y;if(a.b=s,a.e=n,s+="",n+="",n==="auto"&&(f=t.style[e],t.style[e]=n,n=Je(t,e)||n,f?t.style[e]=f:dn(t,e)),u=[s,n],Gh(u),s=u[0],n=u[1],d=s.match(Mn)||[],y=n.match(Mn)||[],y.length){for(;h=Mn.exec(n);)m=h[0],b=n.substring(c,h.index),_?_=(_+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(_=1),m!==(f=d[l++]||"")&&(p=parseFloat(f)||0,g=f.substr((p+"").length),m.charAt(1)==="="&&(m=In(p,m)+g),v=parseFloat(m),w=m.substr((v+"").length),c=Mn.lastIndex-w.length,w||(w=w||Te.units[e]||g,c===n.length&&(n+=w,a.e+=w)),g!==w&&(p=Vs(t,e,f,w)||0),a._pt={_next:a._pt,p:b||l===1?b:",",s:p,c:v-p,m:_&&_<4||e==="zIndex"?Math.round:0});a.c=c-1;)a=r[l],gs[a]&&(c=1,a=a==="transformOrigin"?pe:Rt),dn(s,a);c&&(dn(s,Rt),o&&(o.svg&&s.removeAttribute("transform"),Ki(s,1),o.uncache=1,cd(n)))}},co={clearProps:function(t,e,s,n,r){if(r.data!=="isFromStart"){var o=t._pt=new fe(t._pt,e,s,0,0,zv);return o.u=n,o.pr=-10,o.tween=r,t._props.push(s),1}}},Qi=[1,0,0,1,0,0],fd={},pd=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},jl=function(t){var e=Je(t,Rt);return pd(e)?Qi:e.substr(7).match(xh).map(zt)},Ac=function(t,e){var s=t._gsap||en(t),n=t.style,r=jl(t),o,a,c,l;return s.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,r=[c.a,c.b,c.c,c.d,c.e,c.f],r.join(",")==="1,0,0,1,0,0"?Qi:r):(r===Qi&&!t.offsetParent&&t!==Rn&&!s.svg&&(c=n.display,n.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(l=1,a=t.nextElementSibling,Rn.appendChild(t)),r=jl(t),c?n.display=c:dn(t,"display"),l&&(a?o.insertBefore(t,a):o?o.appendChild(t):Rn.removeChild(t))),e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Pa=function(t,e,s,n,r,o){var a=t._gsap,c=r||Ac(t,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,p=c[0],_=c[1],f=c[2],m=c[3],v=c[4],b=c[5],w=e.split(" "),g=parseFloat(w[0])||0,y=parseFloat(w[1])||0,x,T,k,C;s?c!==Qi&&(T=p*m-_*f)&&(k=g*(m/T)+y*(-f/T)+(f*b-m*v)/T,C=g*(-_/T)+y*(p/T)-(p*b-_*v)/T,g=k,y=C):(x=hd(t),g=x.x+(~w[0].indexOf("%")?g/100*x.width:g),y=x.y+(~(w[1]||w[0]).indexOf("%")?y/100*x.height:y)),n||n!==!1&&a.smooth?(v=g-l,b=y-u,a.xOffset=h+(v*p+b*f)-v,a.yOffset=d+(v*_+b*m)-b):a.xOffset=a.yOffset=0,a.xOrigin=g,a.yOrigin=y,a.smooth=!!n,a.origin=e,a.originIsAbsolute=!!s,t.style[pe]="0px 0px",o&&(Es(o,a,"xOrigin",l,g),Es(o,a,"yOrigin",u,y),Es(o,a,"xOffset",h,a.xOffset),Es(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",g+" "+y)},Ki=function(t,e){var s=t._gsap||new Qh(t);if("x"in s&&!e&&!s.uncache)return s;var n=t.style,r=s.scaleX<0,o="px",a="deg",c=getComputedStyle(t),l=Je(t,pe)||"0",u,h,d,p,_,f,m,v,b,w,g,y,x,T,k,C,M,R,P,U,W,G,Y,j,z,X,Q,et,I,F,S,D;return u=h=d=f=m=v=b=w=g=0,p=_=1,s.svg=!!(t.getCTM&&dd(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(n[Rt]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Rt]!=="none"?c[Rt]:"")),n.scale=n.rotate=n.translate="none"),T=Ac(t,s.svg),s.svg&&(s.uncache?(z=t.getBBox(),l=s.xOrigin-z.x+"px "+(s.yOrigin-z.y)+"px",j=""):j=!e&&t.getAttribute("data-svg-origin"),Pa(t,j||l,!!j||s.originIsAbsolute,s.smooth!==!1,T)),y=s.xOrigin||0,x=s.yOrigin||0,T!==Qi&&(R=T[0],P=T[1],U=T[2],W=T[3],u=G=T[4],h=Y=T[5],T.length===6?(p=Math.sqrt(R*R+P*P),_=Math.sqrt(W*W+U*U),f=R||P?Cn(P,R)*$s:0,b=U||W?Cn(U,W)*$s+f:0,b&&(_*=Math.abs(Math.cos(b*Fn))),s.svg&&(u-=y-(y*R+x*U),h-=x-(y*P+x*W))):(D=T[6],F=T[7],Q=T[8],et=T[9],I=T[10],S=T[11],u=T[12],h=T[13],d=T[14],k=Cn(D,I),m=k*$s,k&&(C=Math.cos(-k),M=Math.sin(-k),j=G*C+Q*M,z=Y*C+et*M,X=D*C+I*M,Q=G*-M+Q*C,et=Y*-M+et*C,I=D*-M+I*C,S=F*-M+S*C,G=j,Y=z,D=X),k=Cn(-U,I),v=k*$s,k&&(C=Math.cos(-k),M=Math.sin(-k),j=R*C-Q*M,z=P*C-et*M,X=U*C-I*M,S=W*M+S*C,R=j,P=z,U=X),k=Cn(P,R),f=k*$s,k&&(C=Math.cos(k),M=Math.sin(k),j=R*C+P*M,z=G*C+Y*M,P=P*C-R*M,Y=Y*C-G*M,R=j,G=z),m&&Math.abs(m)+Math.abs(f)>359.9&&(m=f=0,v=180-v),p=zt(Math.sqrt(R*R+P*P+U*U)),_=zt(Math.sqrt(Y*Y+D*D)),k=Cn(G,Y),b=Math.abs(k)>2e-4?k*$s:0,g=S?1/(S<0?-S:S):0),s.svg&&(j=t.getAttribute("transform"),s.forceCSS=t.setAttribute("transform","")||!pd(Je(t,Rt)),j&&t.setAttribute("transform",j))),Math.abs(b)>90&&Math.abs(b)<270&&(r?(p*=-1,b+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,b+=b<=0?180:-180)),e=e||s.uncache,s.x=u-((s.xPercent=u&&(!e&&s.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-u)?-50:0)))?t.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!e&&s.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=zt(p),s.scaleY=zt(_),s.rotation=zt(f)+a,s.rotationX=zt(m)+a,s.rotationY=zt(v)+a,s.skewX=b+a,s.skewY=w+a,s.transformPerspective=g+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!e&&s.zOrigin||0)&&(n[pe]=lo(l)),s.xOffset=s.yOffset=0,s.force3D=Te.force3D,s.renderTransform=s.svg?Bv:ud?md:jv,s.uncache=0,s},lo=function(t){return(t=t.split(" "))[0]+" "+t[1]},sa=function(t,e,s){var n=Kt(e);return zt(parseFloat(e)+parseFloat(Vs(t,"x",s+"px",n)))+n},jv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,md(t,e)},Ys="0deg",gi="0px",Gs=") ",md=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,p=s.skewY,_=s.scaleX,f=s.scaleY,m=s.transformPerspective,v=s.force3D,b=s.target,w=s.zOrigin,g="",y=v==="auto"&&t&&t!==1||v===!0;if(w&&(h!==Ys||u!==Ys)){var x=parseFloat(u)*Fn,T=Math.sin(x),k=Math.cos(x),C;x=parseFloat(h)*Fn,C=Math.cos(x),o=sa(b,o,T*C*-w),a=sa(b,a,-Math.sin(x)*-w),c=sa(b,c,k*C*-w+w)}m!==gi&&(g+="perspective("+m+Gs),(n||r)&&(g+="translate("+n+"%, "+r+"%) "),(y||o!==gi||a!==gi||c!==gi)&&(g+=c!==gi||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Gs),l!==Ys&&(g+="rotate("+l+Gs),u!==Ys&&(g+="rotateY("+u+Gs),h!==Ys&&(g+="rotateX("+h+Gs),(d!==Ys||p!==Ys)&&(g+="skew("+d+", "+p+Gs),(_!==1||f!==1)&&(g+="scale("+_+", "+f+Gs),b.style[Rt]=g||"translate(0, 0)"},Bv=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,p=s.target,_=s.xOrigin,f=s.yOrigin,m=s.xOffset,v=s.yOffset,b=s.forceCSS,w=parseFloat(o),g=parseFloat(a),y,x,T,k,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Fn,l*=Fn,y=Math.cos(c)*h,x=Math.sin(c)*h,T=Math.sin(c-l)*-d,k=Math.cos(c-l)*d,l&&(u*=Fn,C=Math.tan(l-u),C=Math.sqrt(1+C*C),T*=C,k*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,x*=C)),y=zt(y),x=zt(x),T=zt(T),k=zt(k)):(y=h,k=d,x=T=0),(w&&!~(o+"").indexOf("px")||g&&!~(a+"").indexOf("px"))&&(w=Vs(p,"x",o,"px"),g=Vs(p,"y",a,"px")),(_||f||m||v)&&(w=zt(w+_-(_*y+f*T)+m),g=zt(g+f-(_*x+f*k)+v)),(n||r)&&(C=p.getBBox(),w=zt(w+n/100*C.width),g=zt(g+r/100*C.height)),C="matrix("+y+","+x+","+T+","+k+","+w+","+g+")",p.setAttribute("transform",C),b&&(p.style[Rt]=C)},qv=function(t,e,s,n,r){var o=360,a=Zt(r),c=parseFloat(r)*(a&&~r.indexOf("rad")?$s:1),l=c-n,u=n+l+"deg",h,d;return a&&(h=r.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*Fl)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Fl)%o-~~(l/o)*o)),t._pt=d=new fe(t._pt,e,s,n,l,Sv),d.e=u,d.u="deg",t._props.push(s),d},Bl=function(t,e){for(var s in e)t[s]=e[s];return t},Wv=function(t,e,s){var n=Bl({},s._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,p,_;n.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Rt]=e,a=Ki(s,1),dn(s,Rt),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Rt],o[Rt]=e,a=Ki(s,1),o[Rt]=l);for(c in gs)l=n[c],u=a[c],l!==u&&r.indexOf(c)<0&&(p=Kt(l),_=Kt(u),h=p!==_?Vs(s,c,l,_):parseFloat(l),d=parseFloat(u),t._pt=new fe(t._pt,a,c,h,d-h,Aa),t._pt.u=_||0,t._props.push(c));Bl(a,n)};de("padding,margin,Width,Radius",function(i,t){var e="Top",s="Right",n="Bottom",r="Left",o=(t<3?[e,s,n,r]:[e+r,e+s,n+s,n+r]).map(function(a){return t<2?i+a:"border"+a+i});co[t>1?"border"+i:i]=function(a,c,l,u,h){var d,p;if(arguments.length<4)return d=o.map(function(_){return hs(a,_,l)}),p=d.join(" "),p.split(d[0]).length===5?d[0]:p;d=(u+"").split(" "),p={},o.forEach(function(_,f){return p[_]=d[f]=d[f]||d[(f-1)/2|0]}),a.init(c,p,h)}});var _d={name:"css",register:Da,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,s,n,r){var o=this._props,a=t.style,c=s.vars.startAt,l,u,h,d,p,_,f,m,v,b,w,g,y,x,T,k;Sc||Da(),this.styles=this.styles||ld(t),k=this.styles.props,this.tween=s;for(f in e)if(f!=="autoRound"&&(u=e[f],!(ye[f]&&Kh(f,e,s,n,t,r)))){if(p=typeof u,_=co[f],p==="function"&&(u=u.call(s,n,t,r),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=$i(u)),_)_(this,t,f,u,s)&&(T=1);else if(f.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(f)+"").trim(),u+="",Ds.lastIndex=0,Ds.test(l)||(m=Kt(l),v=Kt(u)),v?m!==v&&(l=Vs(t,f,l,v)+v):m&&(u+=m),this.add(a,"setProperty",l,u,n,r,0,0,f),o.push(f),k.push(f,0,a[f]);else if(p!=="undefined"){if(c&&f in c?(l=typeof c[f]=="function"?c[f].call(s,n,t,r):c[f],Zt(l)&&~l.indexOf("random(")&&(l=$i(l)),Kt(l+"")||l==="auto"||(l+=Te.units[f]||Kt(hs(t,f))||""),(l+"").charAt(1)==="="&&(l=hs(t,f))):l=hs(t,f),d=parseFloat(l),b=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),b&&(u=u.substr(2)),h=parseFloat(u),f in Qe&&(f==="autoAlpha"&&(d===1&&hs(t,"visibility")==="hidden"&&h&&(d=0),k.push("visibility",0,a.visibility),Es(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Qe[f],~f.indexOf(",")&&(f=f.split(",")[0]))),w=f in gs,w){if(this.styles.save(f),g||(y=t._gsap,y.renderTransform&&!e.parseTransform||Ki(t,e.parseTransform),x=e.smoothOrigin!==!1&&y.smooth,g=this._pt=new fe(this._pt,a,Rt,0,1,y.renderTransform,y,0,-1),g.dep=1),f==="scale")this._pt=new fe(this._pt,y,"scaleY",y.scaleY,(b?In(y.scaleY,b+h):h)-y.scaleY||0,Aa),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){k.push(pe,0,a[pe]),u=Uv(u),y.svg?Pa(t,u,0,x,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==y.zOrigin&&Es(this,y,"zOrigin",y.zOrigin,v),Es(this,a,f,lo(l),lo(u)));continue}else if(f==="svgOrigin"){Pa(t,u,1,x,0,this);continue}else if(f in fd){qv(this,y,f,d,b?In(d,b+u):u);continue}else if(f==="smoothOrigin"){Es(this,y,"smooth",y.smooth,u);continue}else if(f==="force3D"){y[f]=u;continue}else if(f==="transform"){Wv(this,u,t);continue}}else f in a||(f=$n(f)||f);if(w||(h||h===0)&&(d||d===0)&&!Cv.test(u)&&f in a)m=(l+"").substr((d+"").length),h||(h=0),v=Kt(u)||(f in Te.units?Te.units[f]:m),m!==v&&(d=Vs(t,f,l,v)),this._pt=new fe(this._pt,w?y:a,f,d,(b?In(d,b+h):h)-d,!w&&(v==="px"||f==="zIndex")&&e.autoRound!==!1?Ov:Aa),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=Ev);else if(f in a)Vv.call(this,t,f,l,b?b+u:u);else if(f in t)this.add(t,f,l||t[f],b?b+u:u,n,r);else if(f!=="parseTransform"){gc(f,u);continue}w||(f in a?k.push(f,0,a[f]):k.push(f,1,l||t[f])),o.push(f)}}T&&id(this)},render:function(t,e){if(e.tween._time||!Ec())for(var s=e._pt;s;)s.r(t,s.d),s=s._next;else e.styles.revert()},get:hs,aliases:Qe,getSetter:function(t,e,s){var n=Qe[e];return n&&n.indexOf(",")<0&&(e=n),e in gs&&e!==pe&&(t._gsap.x||hs(t,"x"))?s&&Rl===s?e==="scale"?Pv:Dv:(Rl=s||{})&&(e==="scale"?Nv:Iv):t.style&&!pc(t.style[e])?Av:~e.indexOf("-")?Mv:bc(t,e)},core:{_removeProperty:dn,_getMatrix:Ac}};_e.utils.checkPrefix=$n;_e.core.getStyleSaver=ld;(function(i,t,e,s){var n=de(i+","+t+","+e,function(r){gs[r]=1});de(t,function(r){Te.units[r]="deg",fd[r]=1}),Qe[n[13]]=i+","+t,de(s,function(r){var o=r.split(":");Qe[o[1]]=n[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");de("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){Te.units[i]="px"});_e.registerPlugin(_d);var gd=_e.registerPlugin(_d)||_e;gd.core.Tween;const ql=new at(0,0,0),yd=i=>{const{isSelected:t,lineWidth:e,visible:s}=i,n=A.useRef(null);A.useEffect(()=>{const o=n.current;o&&gd.fromTo(o.material,{linewidth:5},{linewidth:t?2:e,duration:1})},[t,e,n]);const r=new _o(16711680);return L.jsx(zd,{ref:n,color:r,isLine2:!0,lineWidth:2,opacity:.5,points:[ql,ql],visible:s})};yd.displayName="LineComponent";const Hv=A.memo(yd),vd=A.memo(()=>{const i=Us(s=>s.dataInitial),{showSelectionGraph:t}=oe(s=>s),e=We();return console.log("connection"),L.jsx("group",{name:"simulation-3d-group__connections",children:i==null?void 0:i.links.map(s=>{const n=(e==null?void 0:e.ref_id)===s.source||(e==null?void 0:e.ref_id)===s.target,r=e?0:1;return L.jsx(Hv,{isSelected:n,lineWidth:r,visible:!t},s.ref_id)})})});vd.displayName="Connections";const Yv=({color:i,scale:t})=>L.jsx(L.Fragment,{children:L.jsx(su,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:L.jsx(ou,{color:i,scale:t})})}),Gv=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"],$v=()=>{const i=We(),t=Us(r=>r.dataInitial),{normalizedSchemasByType:e}=Na(r=>r),s=Xl(),n=A.useMemo(()=>new Af(30,2,16,100),[]);return L.jsx(L.Fragment,{children:L.jsxs(Jf,{geometry:n,limit:1e3,range:1e3,visible:!i,children:[L.jsx("meshBasicMaterial",{}),t==null?void 0:t.nodes.map(r=>{var c;const a=((c=e[r.node_type])==null?void 0:c.primary_color)??(Gv[s.indexOf(r.node_type)]||Tt.white);return L.jsx(Yv,{color:a,scale:r.edge_count||1},r.ref_id)})]})})},Xv=A.memo($v),Zv=qt(ys)` text-align: center; width: ${i=>i.type==="topic"?"auto":`${i.size}px`}; height: ${i=>i.type==="topic"?"auto":`${i.size}px`}; @@ -563,7 +563,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a } `,Mc={metalness:.9,roughness:0},xd=new mo,uo=xd.load("noimage.jpeg"),Hl=new go({...Mc,map:uo}),Td=.4,ik=new go({...Mc,map:uo,transparent:!0,opacity:Td}),Ar={},rk=(i,t)=>{const[e,s]=A.useState(uo),[n,r]=A.useState(Hl);return A.useEffect(()=>{const o=`${i}${t&&"-transparent"}`;if(Ar[o]){s(Ar[o].texture),r(Ar[o].material);return}xd.load(i,a=>{const c=new go({map:a,transparent:t,opacity:t?Td:1,...Mc});Ar[o]={texture:a,material:c},s(a),r(c)},void 0,()=>{s(uo),r(t?ik:Hl)})},[i,t]),A.useEffect(()=>function(){e.dispose(),n.dispose()},[e,n]),n},wd=A.memo(({node:i,hide:t,animated:e})=>{const s=A.useRef(null),[n]=A.useState(Sl),r=We(),{showSelectionGraph:o}=oe(u=>u),a=!!r&&i.ref_id===r.ref_id,c=rk(i.image_url||"noimage.jpeg",!1);be((u,h)=>{e&&s.current&&a&&(s.current.rotation.y+=h*1,s.current.rotation.x-=h*.6)}),A.useEffect(()=>function(){n.dispose()},[n]);const l=A.useMemo(()=>o&&a?20:a?(i.scale||1)*1.2:i.scale,[i,a,o]);return L.jsx(a0,{enabled:!!a,children:L.jsx("mesh",{ref:s,geometry:Sl,material:c,name:i.id,scale:l,userData:i,visible:!t})})});wd.displayName="Cube";const ok=i=>{const t=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;return i.replace(t,e=>/^[\d*#]$/.test(e)?e:"")},ak=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"];function ck(i){const t=Kl(i,30),e=t.split(" ");if(e.length<=5)return t;const s=Math.ceil(e.length/3),n=s*2,r=e.slice(0,s).join(" "),o=e.slice(s,n).join(" "),a=e.slice(n).join(" ");return`${r} ${o} -${a}`}const Dc=A.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=A.useRef(null),n=A.useRef(null),r=We(),o=A.useRef(new at),c=po().includes((i==null?void 0:i.ref_id)||""),l=!!r&&(r==null?void 0:r.ref_id)===i.ref_id,u=oe(x=>x.showSelectionGraph),{normalizedSchemasByType:h}=Na(x=>x);be(({camera:x})=>{(()=>{const k=o.current.setFromMatrixPosition(n.current.matrixWorld);n.current&&(n.current.visible=k.distanceTo(x.position)<2500)})()});const d=Xl(),p=A.useMemo(()=>{if(!i.name)return 0;let x=(i.edge_count||1)*20;u&&l?x=40:!l&&c&&(x=0);const T=x/Math.sqrt(i.name.length);return Math.min(Math.max(T,20),30)},[i.edge_count,i.name,l,c,u]);A.useMemo(()=>r&&!l||!e?.2:1,[l,r,e]);const _=(g=h[i.node_type])==null?void 0:g.primary_color,f=(y=h[i.node_type])==null?void 0:y.icon,m=_??(ak[d.indexOf(i.node_type)]||Tt.white),b=(f?sf[f]:null)?f:"NodesIcon",w=ok(String(i.name));return L.jsx(su,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:i,children:L.jsxs("mesh",{ref:n,name:i.id,userData:i,visible:!t,children:[L.jsx(Hf,{ref:s,name:"svg",onUpdate:x=>{x.traverse(T=>{T instanceof eu&&(T.material=new Mf({color:m}))})},position:[-15,15,0],scale:2,src:`svg-icons/${b}.svg`,strokeMaterial:{color:"yellow"},userData:i}),i.name&&L.jsx(jd,{color:m,fillOpacity:1,name:"text",position:[0,-40,0],scale:p,userData:i,...Bd,children:ck(w)})]})})});Dc.displayName="TextNode";const bd=A.memo(()=>{const[i,t]=A.useState(null),{dataInitial:e}=Us(l=>l),s=We(),n=A.useRef(null),r=po(),o=qd(e==null?void 0:e.nodes.length),{selectionGraphData:a,setSelectionData:c}=oe(Ra(l=>l));return A.useEffect(()=>{const l=structuredClone((e==null?void 0:e.nodes)||[]),u=structuredClone((e==null?void 0:e.links)||[]);if(o===l.length)return;const h=l.filter(d=>d.ref_id===(s==null?void 0:s.ref_id)||r.includes((d==null?void 0:d.ref_id)||"")).map(d=>{const p=d.ref_id===(s==null?void 0:s.ref_id)?{fx:0,fy:0,fz:0}:{};return{...d,x:0,y:0,z:0,...p}});if(h){const d=u.filter(p=>h.some(_=>_.ref_id===p.target)&&h.some(_=>_.ref_id===p.source));c({nodes:h,links:d})}},[e,s,r,c,o]),A.useEffect(()=>{if(i||!a.nodes.length)return;const l=structuredClone(a.links),u=tk(a.nodes,l,{numDimensions:2,forceLinkStrength:.01,forceCenterStrength:.85,forceChargeStrength:-20,velocityDecay:.9});t(u)},[a,i]),A.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),A.useEffect(()=>{i&&i.on("tick",()=>{n.current&&n.current.children.forEach((u,h)=>{const d=i.nodes()[h];d&&u.position.set(d.x,d.y,d.z)})})},[i]),console.log(a.nodes),L.jsxs(L.Fragment,{children:[L.jsx("group",{ref:n,name:"simulation-2d-group",children:a==null?void 0:a.nodes.map(l=>L.jsx("mesh",{children:l.name?L.jsx(Dc,{hide:!0,isHovered:!1,node:l},l.ref_id||l.id):L.jsx(wd,{hide:!0,node:l},l.ref_id||l.id)},l.ref_id))}),L.jsx(t0,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>L.jsx(ek,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),i&&L.jsx(sk,{links:a.links,simulation:i})]})});bd.displayName="SelectionDataNodes";const lk=200,Cd=A.memo(()=>{const i=We(),t=nf(),e=po(),{selectionGraphData:s,showSelectionGraph:n,setHoveredNode:r,setIsHovering:o}=oe(f=>f),a=Us(f=>f.dataInitial),c=Ji(f=>f.setTranscriptOpen),l=A.useCallback(f=>!!(n&&!s.nodes.find(m=>m.ref_id===f.ref_id)),[n,s]),u=A.useCallback(f=>{const m=f==null?void 0:f[0];m&&(c(!1),m.userData&&(l(m.userData)||oe.getState().setSelectedNode((m==null?void 0:m.userData)||null)))},[c,l]),h=A.useRef(null),d=A.useCallback(f=>{f.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),t&&(o(!1),r(null))},[o,r,t]),p=A.useCallback(f=>{var b;const v=f.intersections.map(w=>w.object)[0];if(h.current&&(clearTimeout(h.current),h.current=null),(b=v==null?void 0:v.userData)!=null&&b.ref_id){const w=v.userData;l(w)||(f.stopPropagation(),h.current=setTimeout(()=>{o(!0),r(w)},lk))}},[r,l,o]),_=n&&!!i;return L.jsxs(Wf,{filter:f=>f.filter(m=>{var v;return!!((v=m.userData)!=null&&v.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:p,children:[L.jsx(kd,{}),L.jsx("group",{name:"simulation-3d-group__nodes",visible:!_,children:a==null?void 0:a.nodes.map(f=>{const m=!!i&&(e.includes(f.ref_id)||i.ref_id===f.ref_id);return L.jsxs("mesh",{name:"wr2",userData:f,children:[L.jsx("boxGeometry",{args:[40,40,40]}),L.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),L.jsx(Dc,{hide:_||m,isHovered:!!t&&t.id===f.ref_id,node:f},f.ref_id||f.id)]},f.ref_id)})}),L.jsx("group",{name:"simulation-3d-group__node-points",children:L.jsx(Xv,{})}),_&&L.jsx(bd,{})]})});Cd.displayName="Cubes";const uk={earthRef:null},hk=Gl(i=>({...uk,setEarthRef:t=>i({earthRef:t})})),dk=new at(0,0,0),fk=()=>{const i=A.useRef(null),t=A.useRef(null),{graphStyle:e,showSelectionGraph:s}=oe(a=>a),n=hk(a=>a.setEarthRef),r=Ks("textures/earth/galaxy.png"),o=Ks("textures/earth/clouds.png");return be(({camera:a})=>{t.current&&t.current.position.copy(a.getWorldPosition(dk))}),A.useLayoutEffect(()=>{i.current&&n(i)},[n]),e!=="earth"||s?null:L.jsxs(L.Fragment,{children:[L.jsxs("mesh",{ref:i,userData:{type:"earth"},children:[L.jsx("sphereGeometry",{args:[Sr,200,200]}),L.jsx(pk,{})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Sr+2,200,200]}),L.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Sr*4,200,200]}),L.jsx("meshStandardMaterial",{map:r,opacity:.4,side:ra,transparent:!0})]}),L.jsx("directionalLight",{ref:t,intensity:.9,position:[0,0,Sr*3]})]})},pk=()=>{const i=Ks("textures/earth/earth.jpeg"),t=Ks("textures/earth/bump.jpeg"),e=Ks("textures/earth/water.png"),s=A.useMemo(()=>new go({map:i,bumpMap:t,aoMap:t,roughnessMap:t,metalnessMap:e,toneMapped:!0,roughness:35,metalness:0}),[i,t,e]);return L.jsx("meshStandardMaterial",{...s})},mk="C",_k=256,gk=256,yk={g:"LottieFiles AE 0.1.20"},vk=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],kk="5.5.7",xk=60,Tk=104,wk=0,bk=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],Ck={nm:mk,h:_k,w:gk,meta:yk,layers:vk,v:kk,fr:xk,op:Tk,ip:wk,assets:bk},Sk=({meshId:i})=>{const t=A.useRef(null);return A.useEffect(()=>{const e=document.getElementById(`lottie-animation-${i}`);return e&&(t.current=Dd.loadAnimation({container:e,animationData:Ck,loop:!0,autoplay:!0})),()=>{t.current&&t.current.destroy()}},[i]),L.jsx("div",{id:`lottie-animation-${i}`,style:{width:"2em",height:"2em"}})},na=()=>Math.floor(Math.random()*2001)-1e3,Ek=()=>L.jsx(L.Fragment,{children:["a","b","c"].map(i=>{const t=na(),e=na(),s=na();return L.jsx("mesh",{position:[t,e,s],children:L.jsx(tr,{center:!0,sprite:!0,children:L.jsx(Ok,{children:L.jsx(Sk,{meshId:i})})})},i)})}),Ok=qt.div` +${a}`}const Dc=A.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=A.useRef(null),n=A.useRef(null),r=We(),o=A.useRef(new at),c=po().includes((i==null?void 0:i.ref_id)||""),l=!!r&&(r==null?void 0:r.ref_id)===i.ref_id,u=oe(x=>x.showSelectionGraph),{normalizedSchemasByType:h}=Na(x=>x);be(({camera:x})=>{(()=>{const k=o.current.setFromMatrixPosition(n.current.matrixWorld);n.current&&(n.current.visible=k.distanceTo(x.position)<2500)})()});const d=Xl(),p=A.useMemo(()=>{if(!i.name)return 0;let x=(i.edge_count||1)*20;u&&l?x=40:!l&&c&&(x=0);const T=x/Math.sqrt(i.name.length);return Math.min(Math.max(T,20),30)},[i.edge_count,i.name,l,c,u]);A.useMemo(()=>r&&!l||!e?.2:1,[l,r,e]);const _=(g=h[i.node_type])==null?void 0:g.primary_color,f=(y=h[i.node_type])==null?void 0:y.icon,m=_??(ak[d.indexOf(i.node_type)]||Tt.white),b=(f?sf[f]:null)?f:"NodesIcon",w=ok(String(i.name));return L.jsx(su,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:i,children:L.jsxs("mesh",{ref:n,name:i.id,userData:i,visible:!t,children:[L.jsx(Hf,{ref:s,name:"svg",onUpdate:x=>{x.traverse(T=>{T instanceof eu&&(T.material=new Mf({color:m}))})},position:[-15,15,0],scale:2,src:`svg-icons/${b}.svg`,strokeMaterial:{color:"yellow"},userData:i}),i.name&&L.jsx(jd,{color:m,fillOpacity:1,name:"text",position:[0,-40,0],scale:p,userData:i,...Bd,children:ck(w)})]})})});Dc.displayName="TextNode";const bd=A.memo(()=>{const[i,t]=A.useState(null),{dataInitial:e}=Us(l=>l),s=We(),n=A.useRef(null),r=po(),o=qd(e==null?void 0:e.nodes.length),{selectionGraphData:a,setSelectionData:c}=oe(Ra(l=>l));return A.useEffect(()=>{const l=structuredClone((e==null?void 0:e.nodes)||[]),u=structuredClone((e==null?void 0:e.links)||[]);if(o===l.length)return;const h=l.filter(d=>d.ref_id===(s==null?void 0:s.ref_id)||r.includes((d==null?void 0:d.ref_id)||"")).map(d=>{const p=d.ref_id===(s==null?void 0:s.ref_id)?{fx:0,fy:0,fz:0}:{};return{...d,x:0,y:0,z:0,...p}});if(h){const d=u.filter(p=>h.some(_=>_.ref_id===p.target)&&h.some(_=>_.ref_id===p.source));c({nodes:h,links:d})}},[e,s,r,c,o]),A.useEffect(()=>{if(i||!a.nodes.length)return;const l=structuredClone(a.links),u=tk(a.nodes,l,{numDimensions:2,forceLinkStrength:.01,forceCenterStrength:.85,forceChargeStrength:-20,velocityDecay:.9});t(u)},[a,i]),A.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),A.useEffect(()=>{i&&i.on("tick",()=>{n.current&&n.current.children.forEach((u,h)=>{const d=i.nodes()[h];d&&u.position.set(d.x,d.y,d.z)})})},[i]),console.log(a.nodes),L.jsxs(L.Fragment,{children:[L.jsx("group",{ref:n,name:"simulation-2d-group",children:a==null?void 0:a.nodes.map(l=>L.jsx("mesh",{children:l.name?L.jsx(Dc,{hide:!0,isHovered:!1,node:l},l.ref_id||l.id):L.jsx(wd,{hide:!0,node:l},l.ref_id||l.id)},l.ref_id))}),L.jsx(t0,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>L.jsx(ek,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),i&&L.jsx(sk,{links:a.links,simulation:i})]})});bd.displayName="SelectionDataNodes";const lk=200,Cd=A.memo(()=>{const i=We(),t=nf(),e=po(),{selectionGraphData:s,showSelectionGraph:n,setHoveredNode:r,setIsHovering:o}=oe(f=>f),a=Us(f=>f.dataInitial),c=Ji(f=>f.setTranscriptOpen),l=A.useCallback(f=>!!(n&&!s.nodes.find(m=>m.ref_id===f.ref_id)),[n,s]),u=A.useCallback(f=>{const m=f==null?void 0:f[0];m&&(c(!1),m.userData&&(l(m.userData)||oe.getState().setSelectedNode((m==null?void 0:m.userData)||null)))},[c,l]),h=A.useRef(null),d=A.useCallback(f=>{f.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),t&&(o(!1),r(null))},[o,r,t]),p=A.useCallback(f=>{var b;const v=f.intersections.map(w=>w.object)[0];if(h.current&&(clearTimeout(h.current),h.current=null),(b=v==null?void 0:v.userData)!=null&&b.ref_id){const w=v.userData;l(w)||(f.stopPropagation(),h.current=setTimeout(()=>{o(!0),r(w)},lk))}},[r,l,o]),_=n&&!!i;return L.jsxs(Wf,{filter:f=>f.filter(m=>{var v;return!!((v=m.userData)!=null&&v.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:p,children:[L.jsx(kd,{}),L.jsx("group",{name:"simulation-3d-group__nodes",visible:!_,children:a==null?void 0:a.nodes.map(f=>{const m=!!i&&(e.includes(f.ref_id)||i.ref_id===f.ref_id);return L.jsxs("mesh",{name:"wr2",scale:f.edge_count||1,userData:f,children:[L.jsx("boxGeometry",{args:[40,40,40]}),L.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),L.jsx(Dc,{hide:_||m,isHovered:!!t&&t.id===f.ref_id,node:f},f.ref_id||f.id)]},f.ref_id)})}),L.jsx("group",{name:"simulation-3d-group__node-points",children:L.jsx(Xv,{})}),_&&L.jsx(bd,{})]})});Cd.displayName="Cubes";const uk={earthRef:null},hk=Gl(i=>({...uk,setEarthRef:t=>i({earthRef:t})})),dk=new at(0,0,0),fk=()=>{const i=A.useRef(null),t=A.useRef(null),{graphStyle:e,showSelectionGraph:s}=oe(a=>a),n=hk(a=>a.setEarthRef),r=Ks("textures/earth/galaxy.png"),o=Ks("textures/earth/clouds.png");return be(({camera:a})=>{t.current&&t.current.position.copy(a.getWorldPosition(dk))}),A.useLayoutEffect(()=>{i.current&&n(i)},[n]),e!=="earth"||s?null:L.jsxs(L.Fragment,{children:[L.jsxs("mesh",{ref:i,userData:{type:"earth"},children:[L.jsx("sphereGeometry",{args:[Sr,200,200]}),L.jsx(pk,{})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Sr+2,200,200]}),L.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Sr*4,200,200]}),L.jsx("meshStandardMaterial",{map:r,opacity:.4,side:ra,transparent:!0})]}),L.jsx("directionalLight",{ref:t,intensity:.9,position:[0,0,Sr*3]})]})},pk=()=>{const i=Ks("textures/earth/earth.jpeg"),t=Ks("textures/earth/bump.jpeg"),e=Ks("textures/earth/water.png"),s=A.useMemo(()=>new go({map:i,bumpMap:t,aoMap:t,roughnessMap:t,metalnessMap:e,toneMapped:!0,roughness:35,metalness:0}),[i,t,e]);return L.jsx("meshStandardMaterial",{...s})},mk="C",_k=256,gk=256,yk={g:"LottieFiles AE 0.1.20"},vk=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],kk="5.5.7",xk=60,Tk=104,wk=0,bk=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,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,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],Ck={nm:mk,h:_k,w:gk,meta:yk,layers:vk,v:kk,fr:xk,op:Tk,ip:wk,assets:bk},Sk=({meshId:i})=>{const t=A.useRef(null);return A.useEffect(()=>{const e=document.getElementById(`lottie-animation-${i}`);return e&&(t.current=Dd.loadAnimation({container:e,animationData:Ck,loop:!0,autoplay:!0})),()=>{t.current&&t.current.destroy()}},[i]),L.jsx("div",{id:`lottie-animation-${i}`,style:{width:"2em",height:"2em"}})},na=()=>Math.floor(Math.random()*2001)-1e3,Ek=()=>L.jsx(L.Fragment,{children:["a","b","c"].map(i=>{const t=na(),e=na(),s=na();return L.jsx("mesh",{position:[t,e,s],children:L.jsx(tr,{center:!0,sprite:!0,children:L.jsx(Ok,{children:L.jsx(Sk,{meshId:i})})})},i)})}),Ok=qt.div` border: 2px solid white; border-radius: 50%; display: flex; @@ -635,7 +635,7 @@ ${a}`}const Dc=A.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=A.useRef(n &:hover { transform: scale(1.05); } -`,Ed=A.memo(()=>L.jsx(L.Fragment,{children:L.jsx(Sd,{})}));Ed.displayName="NodeDetailsPanel";const Nk=()=>{const{dataInitial:i,isLoadingNew:t,isFetching:e,dataNew:s,resetDataNew:n}=Us(f=>f),r=A.useRef(null),o=A.useRef(!1),a=A.useRef([]),{normalizedSchemasByType:c}=Na(f=>f),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:p,setGraphRadius:_}=oe(f=>f);return A.useEffect(()=>{if(!s)return;const f=s.nodes||[],m=s.links||[],v=structuredClone(f),b=structuredClone(m);if(u){const w=Id.isEqual(s,i);d.addNodesAndLinks(v,b,w)}u||h(v,b),n()},[l,s,u,h,n,d,i]),A.useEffect(()=>{u&&d.setForces()},[p,d,u]),A.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Fc().setFromPoints(f),v=new Lc;m.getBoundingSphere(v);const b=Math.min(5e3,v.radius);_(b),o.current=!0}if(r.current){const f=r.current.getObjectByName("simulation-3d-group__nodes"),m=r.current.getObjectByName("simulation-3d-group__node-points"),v=r.current.getObjectByName("simulation-3d-group__connections");f&&f.children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),m&&m.children[0].children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),v&&v.children.forEach((b,w)=>{var x;const g=i==null?void 0:i.links[w],y=b;if(g){const T=u.nodes().find(j=>j.ref_id===g.source),k=u.nodes().find(j=>j.ref_id===g.target),{x:C,y:M,z:R}=T,{x:P,y:U,z:W}=k;a.current[w]={sx:C,sy:M,sz:R,tx:P,ty:U,tz:W};const G=((x=c[T.node_type])==null?void 0:x.primary_color)||"white";y.geometry.setPositions([C,M,R,P,U,W]);const{material:Y}=y;Y.color=new _o(G),Y.transparent=!0,Y.opacity=.2}})}}),u.on("end",()=>{const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Fc().setFromPoints(f),v=new Lc;m.getBoundingSphere(v);const b=v.radius;_(b),o.current=!1}))},[i,u,_,c]),u?L.jsxs("group",{ref:r,children:[L.jsx(Cd,{}),p==="earth"&&L.jsx(fk,{}),(t||e)&&L.jsx(Ek,{}),p!=="earth"&&L.jsx(vd,{}),L.jsx(Ed,{})]}):null},Ik=({fullSize:i=!0})=>{const t=Ji(e=>e.sidebarIsOpen);return L.jsx(Rk,{align:"center",className:Zl({"sidebar-is-open":t&&!i}),justify:"center",children:L.jsx(If,{color:Tt.SECONDARY_BLUE,size:64})})},Rk=qt(ys)` +`,Ed=A.memo(()=>L.jsx(L.Fragment,{children:L.jsx(Sd,{})}));Ed.displayName="NodeDetailsPanel";const Nk=()=>{const{dataInitial:i,isLoadingNew:t,isFetching:e,dataNew:s,resetDataNew:n}=Us(f=>f),r=A.useRef(null),o=A.useRef(!1),a=A.useRef([]),{normalizedSchemasByType:c}=Na(f=>f),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:p,setGraphRadius:_}=oe(f=>f);return A.useEffect(()=>{if(!s)return;const f=s.nodes||[],m=s.links||[],v=structuredClone(f),b=structuredClone(m);if(u){const w=Id.isEqual(s,i);d.addNodesAndLinks(v,b,w)}u||h(v,b),n()},[l,s,u,h,n,d,i]),A.useEffect(()=>{u&&d.setForces()},[p,d,u]),A.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Fc().setFromPoints(f),v=new Lc;m.getBoundingSphere(v);const b=Math.min(5e3,v.radius);_(b),o.current=!0}if(r.current){const f=r.current.getObjectByName("simulation-3d-group__nodes"),m=r.current.getObjectByName("simulation-3d-group__node-points"),v=r.current.getObjectByName("simulation-3d-group__connections");f&&f.children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),m&&m.children[0].children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),v&&v.children.forEach((b,w)=>{var x;const g=i==null?void 0:i.links[w],y=b;if(g){const T=u.nodes().find(j=>j.ref_id===g.source),k=u.nodes().find(j=>j.ref_id===g.target),{x:C,y:M,z:R}=T,{x:P,y:U,z:W}=k;a.current[w]={sx:C,sy:M,sz:R,tx:P,ty:U,tz:W};const G=((x=c[T.node_type])==null?void 0:x.primary_color)||"white";y.geometry.setPositions([C,M,R,P,U,W]);const{material:Y}=y;Y.color=new _o(G),Y.transparent=!0,Y.opacity=1}})}}),u.on("end",()=>{const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Fc().setFromPoints(f),v=new Lc;m.getBoundingSphere(v);const b=v.radius;_(b),o.current=!1}))},[i,u,_,c]),u?L.jsxs("group",{ref:r,children:[L.jsx(Cd,{}),p==="earth"&&L.jsx(fk,{}),(t||e)&&L.jsx(Ek,{}),p!=="earth"&&L.jsx(vd,{}),L.jsx(Ed,{})]}):null},Ik=({fullSize:i=!0})=>{const t=Ji(e=>e.sidebarIsOpen);return L.jsx(Rk,{align:"center",className:Zl({"sidebar-is-open":t&&!i}),justify:"center",children:L.jsx(If,{color:Tt.SECONDARY_BLUE,size:64})})},Rk=qt(ys)` position: absolute; left: 0; right: 0; diff --git a/build/assets/index-6d42632e.js b/build/assets/index-32f0aa69.js similarity index 93% rename from build/assets/index-6d42632e.js rename to build/assets/index-32f0aa69.js index c55947c57..6261cbb08 100644 --- a/build/assets/index-6d42632e.js +++ b/build/assets/index-32f0aa69.js @@ -1,4 +1,4 @@ -import{t as a,v as r,F as i,j as e,w as I,T as S,r as b,y as v,z as $,ay as B,az as y,aA as z}from"./index-4e7b4086.js";import{B as A}from"./index-49d9ff41.js";import{f as T,g as k,aI as M,aJ as D,C as R,an as E,aK as L,B as C,a0 as P,a1 as W,u as w}from"./index-8d05d202.js";import{C as G}from"./ClipLoader-debba421.js";import{e as F}from"./index.esm-2eb55070.js";import{S as V}from"./index-71105b91.js";import{T as j}from"./index-53aef74d.js";import{T as U,a as N}from"./Tabs-c02cacac.js";import"./createSvgIcon-e086f0de.js";const Y={split:e.jsx(D,{}),force:e.jsx(R,{}),sphere:e.jsx(E,{}),earth:e.jsx(L,{})},O=()=>{const[n,p]=T(k(t=>[t.graphStyle,t.setGraphStyle])),l=t=>{p(t)};return e.jsx(_,{direction:"column",children:M.map(t=>e.jsx(i,{className:I("icon",{active:n===t}),onClick:()=>l(t),children:Y[t]},t))})},_=a(i).attrs({direction:"row",align:"center",justify:"space-between"})` +import{t as a,v as r,F as i,j as e,w as I,T as S,r as b,y as v,z as $,ay as B,az as y,aA as z}from"./index-e8b9ad93.js";import{B as A}from"./index-6a2d3502.js";import{f as T,g as k,aI as M,aJ as D,C as R,an as E,aK as L,B as C,a0 as P,a1 as W,u as w}from"./index-ffdb9bac.js";import{C as G}from"./ClipLoader-e6af0d5e.js";import{e as F}from"./index.esm-55abcd0d.js";import{S as V}from"./index-e27c1d85.js";import{T as j}from"./index-3cb9349b.js";import{T as U,a as N}from"./Tabs-573fdd2d.js";import"./createSvgIcon-ea6ddcd6.js";const Y={split:e.jsx(D,{}),force:e.jsx(R,{}),sphere:e.jsx(E,{}),earth:e.jsx(L,{})},O=()=>{const[n,p]=T(k(t=>[t.graphStyle,t.setGraphStyle])),l=t=>{p(t)};return e.jsx(_,{direction:"column",children:M.map(t=>e.jsx(i,{className:I("icon",{active:n===t}),onClick:()=>l(t),children:Y[t]},t))})},_=a(i).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${r.appearanceBg}; diff --git a/build/assets/index-44e7b49e.js b/build/assets/index-345de899.js similarity index 85% rename from build/assets/index-44e7b49e.js rename to build/assets/index-345de899.js index 0afe3a63f..d9fad75b8 100644 --- a/build/assets/index-44e7b49e.js +++ b/build/assets/index-345de899.js @@ -1 +1 @@ -import{p as f,a_ as m}from"./index-4e7b4086.js";import{D as y}from"./constants-41186e32.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const D=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{D as u}; +import{p as f,a_ as m}from"./index-e8b9ad93.js";import{D as y}from"./constants-f306a0b2.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const D=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{D as u}; diff --git a/build/assets/index-53aef74d.js b/build/assets/index-3cb9349b.js similarity index 98% rename from build/assets/index-53aef74d.js rename to build/assets/index-3cb9349b.js index c45ad5ce5..f4f2ecdfc 100644 --- a/build/assets/index-53aef74d.js +++ b/build/assets/index-3cb9349b.js @@ -1,4 +1,4 @@ -import{r as I,l as fe,g as de,t as N,v as S,j as E,F as L,T as pe}from"./index-4e7b4086.js";import{$ as he,bb as ge,ay as ve,bc as me}from"./index-8d05d202.js";import{e as be}from"./index.esm-2eb55070.js";var ee={exports:{}},te={exports:{}},xe=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=xe;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 we(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"&&we(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],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{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),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.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="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=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 we(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"&&we(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],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{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),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.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="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=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-b0ee3089.js b/build/assets/index-411c1361.js similarity index 91% rename from build/assets/index-b0ee3089.js rename to build/assets/index-411c1361.js index 3f86a8602..368278e67 100644 --- a/build/assets/index-b0ee3089.js +++ b/build/assets/index-411c1361.js @@ -1,4 +1,4 @@ -import{r,j as e,aV as O,H as k,F as h,aW as E,t as l,T as A,v as T,aX as F}from"./index-4e7b4086.js";import{B as z}from"./index-49d9ff41.js";import{ai as N,aP as D,aQ as M,aR as P,u as I,a0 as X,e as Y,a1 as H,B as R}from"./index-8d05d202.js";import{A as L,T as G}from"./index-93aeefd6.js";import{O as V}from"./constants-b2a2fa82.js";import{S as W,A as Q}from"./constants-41186e32.js";import{C as _}from"./ClipLoader-debba421.js";import"./Stack-2bf11152.js";import"./createSvgIcon-e086f0de.js";import"./TextareaAutosize-eac164b5.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await O();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})},q=({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:Q,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 k.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(W,{onClick:()=>t(null),size:"medium",children:e.jsx(N,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||V,selectedValue:c?n(c):null})},J=({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(q,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx(D,{})}),e.jsx(ae,{onClick:x,children:e.jsx(M,{})}),e.jsx(ie,{children:e.jsx(P,{})})]})]})]})},K=l.div` +import{r,j as e,aV as O,H as k,F as h,aW as E,t as l,T as A,v as T,aX as F}from"./index-e8b9ad93.js";import{B as z}from"./index-6a2d3502.js";import{ai as N,aP as D,aQ as M,aR as P,u as I,a0 as X,e as Y,a1 as H,B as R}from"./index-ffdb9bac.js";import{A as L,T as G}from"./index-ae904d72.js";import{O as V}from"./constants-b2a2fa82.js";import{S as W,A as Q}from"./constants-f306a0b2.js";import{C as _}from"./ClipLoader-e6af0d5e.js";import"./Stack-c617158d.js";import"./createSvgIcon-ea6ddcd6.js";import"./TextareaAutosize-1decf155.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await O();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})},q=({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:Q,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 k.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(W,{onClick:()=>t(null),size:"medium",children:e.jsx(N,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||V,selectedValue:c?n(c):null})},J=({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(q,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx(D,{})}),e.jsx(ae,{onClick:x,children:e.jsx(M,{})}),e.jsx(ie,{children:e.jsx(P,{})})]})]})]})},K=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-49d9ff41.js b/build/assets/index-6a2d3502.js similarity index 96% rename from build/assets/index-49d9ff41.js rename to build/assets/index-6a2d3502.js index dedcdf8e8..7ae51d51e 100644 --- a/build/assets/index-49d9ff41.js +++ b/build/assets/index-6a2d3502.js @@ -1,4 +1,4 @@ -import{a7 as m,t as s,v as r,a5 as o,F as d,r as w,j as e}from"./index-4e7b4086.js";import{u as v,ai as y}from"./index-8d05d202.js";const j=m` +import{a7 as m,t as s,v as r,a5 as o,F as d,r as w,j as e}from"./index-e8b9ad93.js";import{u as v,ai as y}from"./index-ffdb9bac.js";const j=m` 0% { transform: scale(0.8); } diff --git a/build/assets/index-049b9db3.js b/build/assets/index-6d2fa275.js similarity index 96% rename from build/assets/index-049b9db3.js rename to build/assets/index-6d2fa275.js index 4928d096d..19208cc7f 100644 --- a/build/assets/index-049b9db3.js +++ b/build/assets/index-6d2fa275.js @@ -1,4 +1,4 @@ -import{K as M,J as B,q as T,y as z,N as G,z as N,Q as L,j as e,T as t,t as c,v as n,F as l}from"./index-4e7b4086.js";import{u as a,M as O,A as D,a as E,S as Q,C as R,b as U,F as W}from"./index-8d05d202.js";const H=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=M(),{resetAiSummaryAnswer:j,setNewLoading:m}=B(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:v}=G(o=>o),{isAdmin:d}=N(o=>o),I=L(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(Y,{children:[e.jsx(q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),v?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(Q,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Settings"})]}),F&&I?e.jsxs(J,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},Y=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{K as M,J as B,q as T,y as z,N as G,z as N,Q as L,j as e,T as t,t as c,v as n,F as l}from"./index-e8b9ad93.js";import{u as a,M as O,A as D,a as E,S as Q,C as R,b as U,F as W}from"./index-ffdb9bac.js";const H=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=M(),{resetAiSummaryAnswer:j,setNewLoading:m}=B(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:v}=G(o=>o),{isAdmin:d}=N(o=>o),I=L(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(Y,{children:[e.jsx(q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),v?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(Q,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Settings"})]}),F&&I?e.jsxs(J,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},Y=c(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-099d7f02.js b/build/assets/index-81e0c1dc.js similarity index 90% rename from build/assets/index-099d7f02.js rename to build/assets/index-81e0c1dc.js index c9cf7ba38..49877fde7 100644 --- a/build/assets/index-099d7f02.js +++ b/build/assets/index-81e0c1dc.js @@ -1,4 +1,4 @@ -import{t as i,v as t,F as c,j as e,r as l,q as k,a_ as C,a$ as R}from"./index-4e7b4086.js";import{B as I}from"./index-49d9ff41.js";import{a_ as z,u as j,f as D,e as E,B as w}from"./index-8d05d202.js";import{S as L}from"./Skeleton-f681e38b.js";import{C as T}from"./ClipLoader-debba421.js";const _=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(M,{children:e.jsx(z,{})}),e.jsxs(G,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),G=i(c)` +import{t as i,v as t,F as c,j as e,r as l,q as k,a_ as C,a$ as R}from"./index-e8b9ad93.js";import{B as I}from"./index-6a2d3502.js";import{a_ as z,u as j,f as D,e as E,B as w}from"./index-ffdb9bac.js";import{S as L}from"./Skeleton-7010430a.js";import{C as T}from"./ClipLoader-e6af0d5e.js";const _=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(M,{children:e.jsx(z,{})}),e.jsxs(G,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),G=i(c)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; diff --git a/build/assets/index-e458cdef.js b/build/assets/index-a82d47f9.js similarity index 90% rename from build/assets/index-e458cdef.js rename to build/assets/index-a82d47f9.js index 9c09200bc..67aeff3f1 100644 --- a/build/assets/index-e458cdef.js +++ b/build/assets/index-a82d47f9.js @@ -1,4 +1,4 @@ -import{t as i,v as N,T as E,F as s,N as U,r as c,j as e,aA as W,a_ as P,aY as V,q as k}from"./index-4e7b4086.js";import{B as q}from"./index-49d9ff41.js";import{u as h,e as F,T as G,aZ as Y,a0 as H,a1 as Z,B as I}from"./index-8d05d202.js";import{T as J}from"./index-53aef74d.js";import{S as K}from"./Skeleton-f681e38b.js";import{C as Q}from"./ClipLoader-debba421.js";import"./index.esm-2eb55070.js";const X=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(l){return!!X.test(l)}const te=()=>{const{open:l}=h("changeNodeType"),{close:x}=h("editNodeName"),{changeNodeTypeFeatureFlag:f}=U(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=F(),j=a==null?void 0:a.node_type,[p,m]=c.useState({});c.useEffect(()=>{a!=null&&a.properties&&m(a.properties)},[a]);const y=()=>{x(),l()},g=(o,n)=>{m(T=>({...T,[o]:n}))};return e.jsxs(s,{children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(s,{align:"center",direction:"row",children:[e.jsx(ae,{children:"Edit Node"}),e.jsxs(ne,{children:[e.jsx(G,{type:j}),f&&e.jsx(se,{onClick:y,children:e.jsx(Y,{})})]})]})}),e.jsx(re,{children:Object.keys(p).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(oe,{style:{marginBottom:8},children:o}),e.jsx(J,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>g(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...W}:{}})]},o))})]})},ae=i(E)` +import{t as i,v as N,T as E,F as s,N as U,r as c,j as e,aA as W,a_ as P,aY as V,q as k}from"./index-e8b9ad93.js";import{B as q}from"./index-6a2d3502.js";import{u as h,e as F,T as G,aZ as Y,a0 as H,a1 as Z,B as I}from"./index-ffdb9bac.js";import{T as J}from"./index-3cb9349b.js";import{S as K}from"./Skeleton-7010430a.js";import{C as Q}from"./ClipLoader-e6af0d5e.js";import"./index.esm-55abcd0d.js";const X=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(l){return!!X.test(l)}const te=()=>{const{open:l}=h("changeNodeType"),{close:x}=h("editNodeName"),{changeNodeTypeFeatureFlag:f}=U(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=F(),j=a==null?void 0:a.node_type,[p,m]=c.useState({});c.useEffect(()=>{a!=null&&a.properties&&m(a.properties)},[a]);const y=()=>{x(),l()},g=(o,n)=>{m(T=>({...T,[o]:n}))};return e.jsxs(s,{children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(s,{align:"center",direction:"row",children:[e.jsx(ae,{children:"Edit Node"}),e.jsxs(ne,{children:[e.jsx(G,{type:j}),f&&e.jsx(se,{onClick:y,children:e.jsx(Y,{})})]})]})}),e.jsx(re,{children:Object.keys(p).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(oe,{style:{marginBottom:8},children:o}),e.jsx(J,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>g(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...W}:{}})]},o))})]})},ae=i(E)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-62ddae12.js b/build/assets/index-a8a8b0eb.js similarity index 69% rename from build/assets/index-62ddae12.js rename to build/assets/index-a8a8b0eb.js index 74db0bbea..e4136df1e 100644 --- a/build/assets/index-62ddae12.js +++ b/build/assets/index-a8a8b0eb.js @@ -1 +1 @@ -import"./index-4e7b4086.js";import{f as o}from"./index-8d05d202.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; +import"./index-e8b9ad93.js";import{f as o}from"./index-ffdb9bac.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; diff --git a/build/assets/index-d8dc64a7.js b/build/assets/index-a9d05fc0.js similarity index 99% rename from build/assets/index-d8dc64a7.js rename to build/assets/index-a9d05fc0.js index ec14719f4..c13f191af 100644 --- a/build/assets/index-d8dc64a7.js +++ b/build/assets/index-a9d05fc0.js @@ -1,4 +1,4 @@ -import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f as To,b2 as En,b3 as gr,h as $o,i as gt,e as Zr,a2 as Ci,a3 as Si,t as O,v as j,aP as br,T as Se,F as $,aA as hn,b4 as _i,b5 as Hn,b6 as ji,b7 as Oi,R as c,y as xr,a5 as Qr,aO as Ao,b8 as Pi,az as ht,Z as ar,A as mr,O as Ti,ab as Jr}from"./index-4e7b4086.js";import{B as $i}from"./index-49d9ff41.js";import{a0 as vr,B as Cn,a1 as Mo,ai as yr,P as E,I as or,a$ as Ai,$ as Mi,aw as ki,D as Ri,r as ko,u as Ro,b0 as Bi,n as ea,m as ta,l as na,k as ra,j as Fi,b1 as Ni,b2 as Ii}from"./index-8d05d202.js";import{O as Di,n as Hi,a as aa,N as Bo}from"./constants-b2a2fa82.js";import{T as gn}from"./index-53aef74d.js";import{A as Dt}from"./index-93aeefd6.js";import{C as Ie}from"./ClipLoader-debba421.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./map-41080909.js";import{T as Xi,a as Ki}from"./Tabs-c02cacac.js";import{p as ir,c as qi,g as Zi}from"./index-c0853f89.js";import{e as Qi}from"./Stack-2bf11152.js";import{f as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,h as No,H as ts,i as oa,C as ns,P as rs,j as as}from"./index-344bba82.js";import{R as os,u as is,v as ss,V as G,w as Ke,x as qe,Q as ia,y as ln,O as cn,z as sa,b as de,A as ls,n as cs,C as us}from"./three.module-26d3b3c0.js";import"./index.esm-2eb55070.js";import"./createSvgIcon-e086f0de.js";import"./TextareaAutosize-eac164b5.js";import"./Typography-9047da8c.js";const ps=y.createContext(),la=ps;function ds(t){return _o("MuiGrid",t)}const fs=[0,1,2,3,4,5,6,7,8,9,10],hs=["column-reverse","column","row-reverse","row"],gs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],bs=jo("MuiGrid",["root","container","item","zeroMinWidth",...fs.map(t=>`spacing-xs-${t}`),...hs.map(t=>`direction-xs-${t}`),...gs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=bs,xs=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function bt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function ms({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${bt(d)})`;u={flexBasis:f,maxWidth:f}}}o=te({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function vs({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ys({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingTop:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function ws({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${bt(d)})`,marginLeft:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingLeft:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Es(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Cs=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Es(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>te({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}),vs,ys,ws,ms);function Ss(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const _s=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=Ss(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,ds,e)},js=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Qi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,xs),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=te({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=te({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=_s(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Cs,te({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),_e=js;function Os(t){return _o("MuiSwitch",t)}const Ps=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J=Ps,Ts=["className","color","edge","size","sx"],$s=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${gt(n)}`,`size${gt(r)}`],switchBase:["switchBase",`color${gt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Os,e);return te({},e,l)},As=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${gt(n.edge)}`],e[`size${gt(n.size)}`]]}})(({ownerState:t})=>te({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,[`& .${J.thumb}`]:{width:16,height:16},[`& .${J.switchBase}`]:{padding:4,[`&.${J.checked}`]:{transform:"translateX(16px)"}}})),Ms=Wt(zi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.input}`]:e.input},n.color!=="default"&&e[`color${gt(n.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}),[`&.${J.checked}`]:{transform:"translateX(20px)"},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${J.checked} + .${J.track}`]:{opacity:.5},[`&.${J.disabled} + .${J.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${J.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>te({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${J.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${J.checked} + .${J.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),ks=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.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}`})),Rs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Bs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,Ts),d=te({},r,{color:o,edge:s,size:i}),f=$s(d),h=p.jsx(Rs,{className:f.thumb,ownerState:d});return p.jsxs(As,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(Ms,te({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:te({},f,{root:f.switchBase})})),p.jsx(ks,{className:f.track,ownerState:d})]})}),Do=Bs,Fs={type:"",parent:""},ca=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=vr({mode:"onChange",defaultValues:Fs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await br()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ns,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||Di,placeholder:a,selectedValue:m()})},Ns=O(Dt)` +import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f as To,b2 as En,b3 as gr,h as $o,i as gt,e as Zr,a2 as Ci,a3 as Si,t as O,v as j,aP as br,T as Se,F as $,aA as hn,b4 as _i,b5 as Hn,b6 as ji,b7 as Oi,R as c,y as xr,a5 as Qr,aO as Ao,b8 as Pi,az as ht,Z as ar,A as mr,O as Ti,ab as Jr}from"./index-e8b9ad93.js";import{B as $i}from"./index-6a2d3502.js";import{a0 as vr,B as Cn,a1 as Mo,ai as yr,P as E,I as or,a$ as Ai,$ as Mi,aw as ki,D as Ri,r as ko,u as Ro,b0 as Bi,n as ea,m as ta,l as na,k as ra,j as Fi,b1 as Ni,b2 as Ii}from"./index-ffdb9bac.js";import{O as Di,n as Hi,a as aa,N as Bo}from"./constants-b2a2fa82.js";import{T as gn}from"./index-3cb9349b.js";import{A as Dt}from"./index-ae904d72.js";import{C as Ie}from"./ClipLoader-e6af0d5e.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./map-470fc2ef.js";import{T as Xi,a as Ki}from"./Tabs-573fdd2d.js";import{p as ir,c as qi,g as Zi}from"./index-c0853f89.js";import{e as Qi}from"./Stack-c617158d.js";import{f as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,h as No,H as ts,i as oa,C as ns,P as rs,j as as}from"./index-284cd839.js";import{R as os,u as is,v as ss,V as G,w as Ke,x as qe,Q as ia,y as ln,O as cn,z as sa,b as de,A as ls,n as cs,C as us}from"./three.module-26d3b3c0.js";import"./index.esm-55abcd0d.js";import"./createSvgIcon-ea6ddcd6.js";import"./TextareaAutosize-1decf155.js";import"./Typography-db52e3f1.js";const ps=y.createContext(),la=ps;function ds(t){return _o("MuiGrid",t)}const fs=[0,1,2,3,4,5,6,7,8,9,10],hs=["column-reverse","column","row-reverse","row"],gs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],bs=jo("MuiGrid",["root","container","item","zeroMinWidth",...fs.map(t=>`spacing-xs-${t}`),...hs.map(t=>`direction-xs-${t}`),...gs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=bs,xs=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function bt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function ms({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${bt(d)})`;u={flexBasis:f,maxWidth:f}}}o=te({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function vs({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ys({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingTop:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function ws({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${bt(d)})`,marginLeft:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingLeft:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Es(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Cs=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Es(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>te({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}),vs,ys,ws,ms);function Ss(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const _s=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=Ss(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,ds,e)},js=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Qi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,xs),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=te({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=te({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=_s(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Cs,te({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),_e=js;function Os(t){return _o("MuiSwitch",t)}const Ps=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J=Ps,Ts=["className","color","edge","size","sx"],$s=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${gt(n)}`,`size${gt(r)}`],switchBase:["switchBase",`color${gt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Os,e);return te({},e,l)},As=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${gt(n.edge)}`],e[`size${gt(n.size)}`]]}})(({ownerState:t})=>te({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,[`& .${J.thumb}`]:{width:16,height:16},[`& .${J.switchBase}`]:{padding:4,[`&.${J.checked}`]:{transform:"translateX(16px)"}}})),Ms=Wt(zi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.input}`]:e.input},n.color!=="default"&&e[`color${gt(n.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}),[`&.${J.checked}`]:{transform:"translateX(20px)"},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${J.checked} + .${J.track}`]:{opacity:.5},[`&.${J.disabled} + .${J.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${J.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>te({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${J.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${J.checked} + .${J.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),ks=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.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}`})),Rs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Bs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,Ts),d=te({},r,{color:o,edge:s,size:i}),f=$s(d),h=p.jsx(Rs,{className:f.thumb,ownerState:d});return p.jsxs(As,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(Ms,te({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:te({},f,{root:f.switchBase})})),p.jsx(ks,{className:f.track,ownerState:d})]})}),Do=Bs,Fs={type:"",parent:""},ca=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=vr({mode:"onChange",defaultValues:Fs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await br()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ns,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||Di,placeholder:a,selectedValue:m()})},Ns=O(Dt)` .MuiInputBase-input { font-family: Barlow; font-size: 14px; diff --git a/build/assets/index-65e72f7b.js b/build/assets/index-a9d11598.js similarity index 89% rename from build/assets/index-65e72f7b.js rename to build/assets/index-a9d11598.js index deb608d67..1f8a8640b 100644 --- a/build/assets/index-65e72f7b.js +++ b/build/assets/index-a9d11598.js @@ -1,4 +1,4 @@ -import{Z as F,bn as C,bo as m,bp as $,t as B,T as k,F as d,r as x,z,j as n,aA as M}from"./index-4e7b4086.js";import{$ as V,B as S,u as E,e as A,a0 as _,a1 as R}from"./index-8d05d202.js";import{B as G}from"./index-49d9ff41.js";import{S as I}from"./index-71105b91.js";import{A as K}from"./index-93aeefd6.js";import{T as N}from"./index-53aef74d.js";import"./index.esm-2eb55070.js";import"./Stack-2bf11152.js";import"./createSvgIcon-e086f0de.js";import"./TextareaAutosize-eac164b5.js";const U="https://community.sphinx.chat",O=async e=>await F.post("/bounty",JSON.stringify(e)),P=async e=>await C(`${U}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),W=async e=>await C(`${U}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await $.signMessage(r),a=L(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return v(l)}catch(e){return console.log("error from signing more message: ",e),""}}function L(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function v(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=V(),[a,l]=x.useState([]),{pubKey:c}=z();x.useEffect(()=>{async function o(){try{const i=await P(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await W(i.id);if(p.length>0){const w=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=H(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(Z,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(K,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx(N,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...M,pattern:{value:D,message:"Please enter a valid number"}},value:u})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(Q,{children:e})]})},T=B(k)` +import{Z as F,bn as C,bo as m,bp as $,t as B,T as k,F as d,r as x,z,j as n,aA as M}from"./index-e8b9ad93.js";import{$ as V,B as S,u as E,e as A,a0 as _,a1 as R}from"./index-ffdb9bac.js";import{B as G}from"./index-6a2d3502.js";import{S as I}from"./index-e27c1d85.js";import{A as K}from"./index-ae904d72.js";import{T as N}from"./index-3cb9349b.js";import"./index.esm-55abcd0d.js";import"./Stack-c617158d.js";import"./createSvgIcon-ea6ddcd6.js";import"./TextareaAutosize-1decf155.js";const U="https://community.sphinx.chat",O=async e=>await F.post("/bounty",JSON.stringify(e)),P=async e=>await C(`${U}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),W=async e=>await C(`${U}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await $.signMessage(r),a=L(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return v(l)}catch(e){return console.log("error from signing more message: ",e),""}}function L(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function v(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=V(),[a,l]=x.useState([]),{pubKey:c}=z();x.useEffect(()=>{async function o(){try{const i=await P(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await W(i.id);if(p.length>0){const w=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=H(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(Z,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(K,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx(N,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...M,pattern:{value:D,message:"Please enter a valid number"}},value:u})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(Q,{children:e})]})},T=B(k)` font-size: 14px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-93aeefd6.js b/build/assets/index-ae904d72.js similarity index 99% rename from build/assets/index-93aeefd6.js rename to build/assets/index-ae904d72.js index 2b786141a..2aeb1e9b0 100644 --- a/build/assets/index-93aeefd6.js +++ b/build/assets/index-ae904d72.js @@ -1,4 +1,4 @@ -import{r as u,j as f,bq as kt,br as Rt,b as a,c as ye,d as $e,s as L,i as w,u as Pe,_ as ae,f as ne,h as Ie,e as Re,bs as Ot,bt as wt,bu as st,k as it,b0 as ct,n as Xe,bv as To,m as Lt,a4 as Mt,t as Ft,v as je,F as Tt}from"./index-4e7b4086.js";import{G as xo,b6 as At,y as lo,b4 as Uo,z as dt,W as Ho,aw as ut,aO as pt,b7 as Nt,J as Fo,t as zt,b8 as Dt,X as Vo,T as Et}from"./index-8d05d202.js";import{a as Ao,u as fo,b as so,f as io,i as ft,c as Bt,P as No,F as jt,S as Wt}from"./Stack-2bf11152.js";import{c as zo}from"./createSvgIcon-e086f0de.js";import{T as _t}from"./TextareaAutosize-eac164b5.js";const Ut=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(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 Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}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 Zt(e){const{unstable_isActiveElementInListbox:o=Yt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Jt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:Z,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Y=u.useRef(null),be=u.useRef(null),[Me,J]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Je?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Y.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.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*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.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:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Y.current.value=_;else{const ge=ee(j[pe]);Y.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Y.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ye=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&Lo(S,x=>oe(n,x))!==-1)return;const g=Lo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{At(be,l),l&&Ye()});u.useEffect(()=>{Ye()},[Ye]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;Z&&Z(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="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)&&Y.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,T?[]: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":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Y.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({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,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Y.current.focus(),Le&&We.current&&Y.current.selectionEnd-Y.current.selectionStart===0&&Y.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),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:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:J,focusedTag:H,groupedOptions:ao}}function Qt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${w(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,o)},tn=L("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${w(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})),bt=u.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:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(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 an(e){return ye("MuiChip",e)}const ln=$e("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=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${w(r)}`,`color${w(s)}`,i&&"clickable",i&&`clickableColor${w(s)}`,d&&"deletable",d&&`deletableColor${w(s)}`,`${b}${w(s)}`],label:["label",`label${w(r)}`],avatar:["avatar",`avatar${w(r)}`,`avatarColor${w(s)}`],icon:["icon",`icon${w(r)}`,`iconColor${w(c)}`],deleteIcon:["deleteIcon",`deleteIcon${w(r)}`,`deleteIconColor${w(s)}`,`deleteIcon${w(b)}Color${w(s)}`]};return Ie(p,an,o)},dn=L("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${w(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${w(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${w(i)}`]},{[`& .${V.icon}`]:o[`iconColor${w(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${w(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(b)}Color${w(r)}`]},o.root,o[`size${w(i)}`],o[`color${w(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${w(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${w(r)}`],o[b],o[`${b}${w(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}}})),un=L("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${w(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 Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",Z=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(Z),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let Q=null;R&&(Q=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:Z},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:Z,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Ot,themeId:wt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["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${w(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]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${w(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${w($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=L("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%"})),Io=L("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"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:Z,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,hn),W=k.value!=null?k.value:Le,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Y=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),J=so(),H=io({props:s,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=J?J.focused:be,u.useEffect(()=>{!J&&$&&be&&(Me(!1),q&&q())},[J,$,be,q]);const ze=J&&J.onFilled,_e=J&&J.onEmpty,te=u.useCallback(z=>{ft(z)?ze&&ze():_e&&_e()},[ze,_e]);dt(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),J&&J.onFocus?J.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),J&&J.onBlur?J.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(st(1));te({value:he.value})}k.onChange&&k.onChange(z,...j),le&&le(z,...j)};u.useEffect(()=>{te(fe.current)},[]);const xe=z=>{fe.current&&z.currentTarget===z.target&&fe.current.focus(),de&&de(z)};let Fe=O,ce=k;N&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:I,minRows:E},ce),Fe=_t);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{J&&J.setAdornedStart(!!ie)},[J,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:J,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Je=A.root||p.Root||$o,De=U.root||m.root||{},Ee=A.input||p.Input||Io;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&xn,f.jsxs(Je,a({},De,!Ho(Je)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:h,disabled:H.disabled,id:P,onAnimationStart:Te,name:F,placeholder:G,readOnly:se,required:H.required,rows:re,value:W,onKeyDown:T,onKeyUp:Z,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Y,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Qe=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),we=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("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"]),D=On;var Xo,Jo;const wn=["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"],Ln=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${w(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=L("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${w(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.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,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${D.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,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=L("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=L(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=L(ut,{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)"})),Dn=L(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=L(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=L("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=L("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=L("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",[`& .${D.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"},[`&.${D.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"},[`&.${D.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),[`&.${D.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}},[`&.${D.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)}}}})),_n=L(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=L("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:Z=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Y="Open",PaperComponent:be=pt,PopperComponent:Me=No,popupIcon:J=Jo||(Jo=f.jsx(gt,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,wn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Je,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ye,inputValue:Po,groupedOptions:Ne}=Zt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!Z||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Ln),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&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(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return wo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ye,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Je(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Y,title:y?k:Y,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:J})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!Z&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Yo,Zo,Qo,et;const Ze=44,Gn=it(Yo||(Yo=So` +import{r as u,j as f,bq as kt,br as Rt,b as a,c as ye,d as $e,s as L,i as w,u as Pe,_ as ae,f as ne,h as Ie,e as Re,bs as Ot,bt as wt,bu as st,k as it,b0 as ct,n as Xe,bv as To,m as Lt,a4 as Mt,t as Ft,v as je,F as Tt}from"./index-e8b9ad93.js";import{G as xo,b6 as At,y as lo,b4 as Uo,z as dt,W as Ho,aw as ut,aO as pt,b7 as Nt,J as Fo,t as zt,b8 as Dt,X as Vo,T as Et}from"./index-ffdb9bac.js";import{a as Ao,u as fo,b as so,f as io,i as ft,c as Bt,P as No,F as jt,S as Wt}from"./Stack-c617158d.js";import{c as zo}from"./createSvgIcon-ea6ddcd6.js";import{T as _t}from"./TextareaAutosize-1decf155.js";const Ut=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(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 Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}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 Zt(e){const{unstable_isActiveElementInListbox:o=Yt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Jt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:Z,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Y=u.useRef(null),be=u.useRef(null),[Me,J]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Je?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Y.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.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*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.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:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Y.current.value=_;else{const ge=ee(j[pe]);Y.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Y.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ye=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&Lo(S,x=>oe(n,x))!==-1)return;const g=Lo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{At(be,l),l&&Ye()});u.useEffect(()=>{Ye()},[Ye]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;Z&&Z(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="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)&&Y.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,T?[]: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":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Y.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({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,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Y.current.focus(),Le&&We.current&&Y.current.selectionEnd-Y.current.selectionStart===0&&Y.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),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:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:J,focusedTag:H,groupedOptions:ao}}function Qt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${w(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,o)},tn=L("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${w(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})),bt=u.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:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(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 an(e){return ye("MuiChip",e)}const ln=$e("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=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${w(r)}`,`color${w(s)}`,i&&"clickable",i&&`clickableColor${w(s)}`,d&&"deletable",d&&`deletableColor${w(s)}`,`${b}${w(s)}`],label:["label",`label${w(r)}`],avatar:["avatar",`avatar${w(r)}`,`avatarColor${w(s)}`],icon:["icon",`icon${w(r)}`,`iconColor${w(c)}`],deleteIcon:["deleteIcon",`deleteIcon${w(r)}`,`deleteIconColor${w(s)}`,`deleteIcon${w(b)}Color${w(s)}`]};return Ie(p,an,o)},dn=L("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${w(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${w(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${w(i)}`]},{[`& .${V.icon}`]:o[`iconColor${w(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${w(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(b)}Color${w(r)}`]},o.root,o[`size${w(i)}`],o[`color${w(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${w(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${w(r)}`],o[b],o[`${b}${w(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}}})),un=L("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${w(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 Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",Z=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(Z),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let Q=null;R&&(Q=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:Z},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:Z,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Ot,themeId:wt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["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${w(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]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${w(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${w($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=L("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%"})),Io=L("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"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:Z,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,hn),W=k.value!=null?k.value:Le,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Y=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),J=so(),H=io({props:s,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=J?J.focused:be,u.useEffect(()=>{!J&&$&&be&&(Me(!1),q&&q())},[J,$,be,q]);const ze=J&&J.onFilled,_e=J&&J.onEmpty,te=u.useCallback(z=>{ft(z)?ze&&ze():_e&&_e()},[ze,_e]);dt(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),J&&J.onFocus?J.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),J&&J.onBlur?J.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(st(1));te({value:he.value})}k.onChange&&k.onChange(z,...j),le&&le(z,...j)};u.useEffect(()=>{te(fe.current)},[]);const xe=z=>{fe.current&&z.currentTarget===z.target&&fe.current.focus(),de&&de(z)};let Fe=O,ce=k;N&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:I,minRows:E},ce),Fe=_t);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{J&&J.setAdornedStart(!!ie)},[J,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:J,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Je=A.root||p.Root||$o,De=U.root||m.root||{},Ee=A.input||p.Input||Io;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&xn,f.jsxs(Je,a({},De,!Ho(Je)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:h,disabled:H.disabled,id:P,onAnimationStart:Te,name:F,placeholder:G,readOnly:se,required:H.required,rows:re,value:W,onKeyDown:T,onKeyUp:Z,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Y,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Qe=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),we=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("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"]),D=On;var Xo,Jo;const wn=["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"],Ln=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${w(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=L("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${w(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.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,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${D.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,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=L("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=L(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=L(ut,{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)"})),Dn=L(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=L(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=L("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=L("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=L("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",[`& .${D.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"},[`&.${D.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"},[`&.${D.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),[`&.${D.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}},[`&.${D.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)}}}})),_n=L(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=L("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:Z=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Y="Open",PaperComponent:be=pt,PopperComponent:Me=No,popupIcon:J=Jo||(Jo=f.jsx(gt,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,wn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Je,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ye,inputValue:Po,groupedOptions:Ne}=Zt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!Z||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Ln),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&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(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return wo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ye,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Je(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Y,title:y?k:Y,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:J})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!Z&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Yo,Zo,Qo,et;const Ze=44,Gn=it(Yo||(Yo=So` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-78113264.js b/build/assets/index-c0705125.js similarity index 94% rename from build/assets/index-78113264.js rename to build/assets/index-c0705125.js index d305c7627..dc389f8ee 100644 --- a/build/assets/index-78113264.js +++ b/build/assets/index-c0705125.js @@ -1,4 +1,4 @@ -import{t as v,v as q,T as z,F as n,r as m,j as e,aA as J,aO as $,N as K,aP as Q,az as O,a_ as X,b1 as Z}from"./index-4e7b4086.js";import{$ as U,B as P,e as V,u as D,a0 as N,a1 as ee}from"./index-8d05d202.js";import{B as te}from"./index-49d9ff41.js";import{T as re}from"./index-53aef74d.js";import{p as G}from"./index-c0853f89.js";import{n as ne}from"./constants-b2a2fa82.js";import{C as W}from"./ClipLoader-debba421.js";import{A as Y}from"./index-93aeefd6.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-2eb55070.js";import"./three.module-26d3b3c0.js";import"./Stack-2bf11152.js";import"./createSvgIcon-e086f0de.js";import"./TextareaAutosize-eac164b5.js";const M=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:r})=>{const[f,b]=m.useState(!1),[h,C]=m.useState(),{watch:j,formState:{isValid:t}}=U();m.useEffect(()=>{(async()=>{b(!0);const o=await $(x),T=G(o),A=H(T);C(A),b(!1)})()},[x,j]);const s=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=()=>{a(""),l("sourceType")},w=!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(se,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(W,{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(z,{children:s(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(P,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(P,{color:"secondary",disabled:w,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},se=v(z)` +import{t as v,v as q,T as z,F as n,r as m,j as e,aA as J,aO as $,N as K,aP as Q,az as O,a_ as X,b1 as Z}from"./index-e8b9ad93.js";import{$ as U,B as P,e as V,u as D,a0 as N,a1 as ee}from"./index-ffdb9bac.js";import{B as te}from"./index-6a2d3502.js";import{T as re}from"./index-3cb9349b.js";import{p as G}from"./index-c0853f89.js";import{n as ne}from"./constants-b2a2fa82.js";import{C as W}from"./ClipLoader-e6af0d5e.js";import{A as Y}from"./index-ae904d72.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-55abcd0d.js";import"./three.module-26d3b3c0.js";import"./Stack-c617158d.js";import"./createSvgIcon-ea6ddcd6.js";import"./TextareaAutosize-1decf155.js";const M=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:r})=>{const[f,b]=m.useState(!1),[h,C]=m.useState(),{watch:j,formState:{isValid:t}}=U();m.useEffect(()=>{(async()=>{b(!0);const o=await $(x),T=G(o),A=H(T);C(A),b(!1)})()},[x,j]);const s=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=()=>{a(""),l("sourceType")},w=!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(se,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(W,{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(z,{children:s(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(P,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(P,{color:"secondary",disabled:w,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},se=v(z)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-408d2ad5.js b/build/assets/index-c582b5e4.js similarity index 90% rename from build/assets/index-408d2ad5.js rename to build/assets/index-c582b5e4.js index 9907e35e1..07e198c6d 100644 --- a/build/assets/index-408d2ad5.js +++ b/build/assets/index-c582b5e4.js @@ -1,4 +1,4 @@ -import{r as p,H as T,j as e,F as x,aW as I,t as n,T as v,v as _,aZ as L}from"./index-4e7b4086.js";import{ai as A,aP as B,aQ as E,aR as F,u as M,a0 as N,e as k,a1 as O,B as z}from"./index-8d05d202.js";import{B as D}from"./index-49d9ff41.js";import{u as w}from"./index-44e7b49e.js";import{S as P,A as R,I as Y}from"./constants-41186e32.js";import{O as H}from"./constants-b2a2fa82.js";import{A as W,T as X}from"./index-93aeefd6.js";import{C as Q}from"./ClipLoader-debba421.js";import"./Stack-2bf11152.js";import"./createSvgIcon-e086f0de.js";import"./TextareaAutosize-eac164b5.js";const U=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,f]=p.useState([]),[g,h]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:R,search:i,skip:"0",limit:"1000"};h(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);f(C)}catch{f([])}finally{h(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){f([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;a(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(P,{onClick:()=>a(null),size:"medium",children:e.jsx(A,{})})]}):e.jsx(W,{dataId:c,handleInputChange:r,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},Z=({from:s,onSelect:a,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($,{children:"Merge topic"})})}),e.jsxs(J,{swap:c,children:[e.jsx(q,{children:e.jsx(K,{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(V,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(G,{children:[e.jsx(oe,{children:e.jsx(B,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(E,{})}),e.jsx(ne,{children:e.jsx(F,{})})]})]})]}),$=n(v)` +import{r as p,H as T,j as e,F as x,aW as I,t as n,T as v,v as _,aZ as L}from"./index-e8b9ad93.js";import{ai as A,aP as B,aQ as E,aR as F,u as M,a0 as N,e as k,a1 as O,B as z}from"./index-ffdb9bac.js";import{B as D}from"./index-6a2d3502.js";import{u as w}from"./index-345de899.js";import{S as P,A as R,I as Y}from"./constants-f306a0b2.js";import{O as H}from"./constants-b2a2fa82.js";import{A as W,T as X}from"./index-ae904d72.js";import{C as Q}from"./ClipLoader-e6af0d5e.js";import"./Stack-c617158d.js";import"./createSvgIcon-ea6ddcd6.js";import"./TextareaAutosize-1decf155.js";const U=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,f]=p.useState([]),[g,h]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:R,search:i,skip:"0",limit:"1000"};h(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);f(C)}catch{f([])}finally{h(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){f([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;a(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(P,{onClick:()=>a(null),size:"medium",children:e.jsx(A,{})})]}):e.jsx(W,{dataId:c,handleInputChange:r,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},Z=({from:s,onSelect:a,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($,{children:"Merge topic"})})}),e.jsxs(J,{swap:c,children:[e.jsx(q,{children:e.jsx(K,{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(V,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(G,{children:[e.jsx(oe,{children:e.jsx(B,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(E,{})}),e.jsx(ne,{children:e.jsx(F,{})})]})]})]}),$=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-1f52b1ca.js b/build/assets/index-cfff5f20.js similarity index 89% rename from build/assets/index-1f52b1ca.js rename to build/assets/index-cfff5f20.js index 5f3a59fe6..517f00b7e 100644 --- a/build/assets/index-1f52b1ca.js +++ b/build/assets/index-cfff5f20.js @@ -1,4 +1,4 @@ -import{t as a,j as e,F as s,aA as g,T as n,v as i,r as m,Z as j}from"./index-4e7b4086.js";import{B as S,b5 as w,u as y,a0 as k,a1 as v}from"./index-8d05d202.js";import{B as F}from"./index-49d9ff41.js";import{S as B}from"./index-71105b91.js";import{T}from"./index-53aef74d.js";import"./index.esm-2eb55070.js";const E=({allowNextStep:r})=>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(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(T,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:g})}),e.jsx(s,{children:e.jsx(S,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(n)` +import{t as a,j as e,F as s,aA as g,T as n,v as i,r as m,Z as j}from"./index-e8b9ad93.js";import{B as S,b5 as w,u as y,a0 as k,a1 as v}from"./index-ffdb9bac.js";import{B as F}from"./index-6a2d3502.js";import{S as B}from"./index-e27c1d85.js";import{T}from"./index-3cb9349b.js";import"./index.esm-55abcd0d.js";const E=({allowNextStep:r})=>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(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(T,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:g})}),e.jsx(s,{children:e.jsx(S,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(n)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-71105b91.js b/build/assets/index-e27c1d85.js similarity index 64% rename from build/assets/index-71105b91.js rename to build/assets/index-e27c1d85.js index c8e4c5217..12a5a1b35 100644 --- a/build/assets/index-71105b91.js +++ b/build/assets/index-e27c1d85.js @@ -1,4 +1,4 @@ -import{t as i,j as t,v as a}from"./index-4e7b4086.js";import{f as n}from"./index.esm-2eb55070.js";import{ba as e}from"./index-8d05d202.js";const r=i.div` +import{t as i,j as t,v as a}from"./index-e8b9ad93.js";import{f as n}from"./index.esm-55abcd0d.js";import{ba as e}from"./index-ffdb9bac.js";const r=i.div` display: Flex; justify-content: center; align-items: center; diff --git a/build/assets/index-4e7b4086.js b/build/assets/index-e8b9ad93.js similarity index 99% rename from build/assets/index-4e7b4086.js rename to build/assets/index-e8b9ad93.js index 950d8b2c7..13353f954 100644 --- a/build/assets/index-4e7b4086.js +++ b/build/assets/index-e8b9ad93.js @@ -529,4 +529,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-8d05d202.js").then(a=>a.bd),["assets/index-8d05d202.js","assets/index-b60658ac.css"]).then(({App:a})=>({default:a}))),AppContainer=()=>{const a=jsxRuntimeExports.jsx(LazyApp,{});return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:a,path:"/"}),jsxRuntimeExports.jsx(Route,{element:a,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:a,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 $,useSchemaStore as A,__vitePreload as B,lottie as C,getTotalProcessing as D,getStats as E,Flex as F,formatStatsResponse as G,lodashExports as H,media as I,useAiSummaryStore as J,useNavigate as K,LinearProgress$1 as L,useSearchParams as M,useFeatureFlagStore as N,isDevelopment as O,updateBudget as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useNodeTypes as U,NODE_RELATIVE_HIGHLIGHT_COLORS as V,We as W,fetchNodeEdges as X,addToGlobalForE2e as Y,api$1 as Z,_objectWithoutPropertiesLoose as _,ReactDOM as a,deleteNode as a$,distExports$1 as a0,executeIfProd as a1,lighten as a2,darken as a3,slotShouldForwardProp as a4,Ce as a5,useHasAiChatsResponseLoading as a6,Ue as a7,hooks as a8,commonjsGlobal as a9,requiredRule as aA,TWITTER_HANDLE as aB,YOUTUBE_CHANNEL as aC,RSS as aD,GITHUB_REPOSITORY as aE,LINK as aF,TWITTER_SOURCE as aG,WEB_PAGE as aH,DOCUMENT as aI,getPriceData as aJ,isE2E as aK,sphinxBridge as aL,getLSat as aM,payLsat as aN,getNodeType as aO,getNodeSchemaTypes as aP,getNodeContent as aQ,approveRadarData as aR,deleteRadarData as aS,getRadarData as aT,putRadarData as aU,getEdgeTypes as aV,getEdges as aW,postEdgeType as aX,putNodeData as aY,postMergeTopics as aZ,getTopicsData as a_,commonjsRequire as aa,getSchemaAll as ab,useFilteredNodes as ac,_baseGetTag as ad,isObjectLike_1 as ae,isObject$7 as af,isFunction$3 as ag,_Set as ah,_Symbol as ai,isArguments_1 as aj,isArray_1 as ak,_arrayPush as al,_baseUnary as am,_defineProperty as an,eq_1 as ao,isArrayLike_1 as ap,_isIndex as aq,isObject_1 as ar,_root as as,_baseAssignValue as at,keys_1 as au,getFullTranscript as av,getAugmentedNamespace as aw,useHasAiChats as ax,postAboutData as ay,NODE_ADD_ERROR as az,_extends as b,css as b0,changeNodeType as b1,resolveBreakpointValues as b2,handleBreakpoints as b3,updateEdgeType as b4,postBluePrintType as b5,deleteEdgeType as b6,cloneDeep_1 as b7,editNodeSchemaUpdate as b8,createRoot as b9,useThemeProps$1 as bA,createUnarySpacing as bB,mergeBreakpointsInOrder as bC,getValue as bD,useTheme$3 as bE,react as ba,GRAPH_GROUND_COLOR as bb,GRAPH_LIGHT_INTENSITY as bc,GRAPH_FOG_COLOR as bd,_getPrototype as be,_MapCache as bf,_Uint8Array as bg,_getAllKeys as bh,_Stack as bi,_getTag as bj,isBufferExports as bk,isTypedArray_1 as bl,isLength_1 as bm,request as bn,buffer$2 as bo,sphinx$1 as bp,Global as bq,useTheme$2 as br,defaultTheme$1 as bs,THEME_ID as bt,formatMuiErrorMessage as bu,deepmerge as bv,defaultSxConfig$1 as bw,isPlainObject as bx,createStyled as by,createTheme$1 as bz,generateUtilityClass as c,generateUtilityClasses as d,alpha as e,clsx$1 as f,getDefaultExportFromCjs as g,composeClasses as h,capitalize as i,jsxRuntimeExports as j,keyframes as k,reactDomExports as l,useTheme as m,rootShouldForwardProp as n,resolveProps as o,create as p,useDataStore as q,reactExports as r,styled$1 as s,styled$3 as t,useThemeProps as u,colors as v,clsx as w,devtools as x,useAppStore as y,useUserStore as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-ffdb9bac.js").then(a=>a.bd),["assets/index-ffdb9bac.js","assets/index-b60658ac.css"]).then(({App:a})=>({default:a}))),AppContainer=()=>{const a=jsxRuntimeExports.jsx(LazyApp,{});return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:a,path:"/"}),jsxRuntimeExports.jsx(Route,{element:a,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:a,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 $,useSchemaStore as A,__vitePreload as B,lottie as C,getTotalProcessing as D,getStats as E,Flex as F,formatStatsResponse as G,lodashExports as H,media as I,useAiSummaryStore as J,useNavigate as K,LinearProgress$1 as L,useSearchParams as M,useFeatureFlagStore as N,isDevelopment as O,updateBudget as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useNodeTypes as U,NODE_RELATIVE_HIGHLIGHT_COLORS as V,We as W,fetchNodeEdges as X,addToGlobalForE2e as Y,api$1 as Z,_objectWithoutPropertiesLoose as _,ReactDOM as a,deleteNode as a$,distExports$1 as a0,executeIfProd as a1,lighten as a2,darken as a3,slotShouldForwardProp as a4,Ce as a5,useHasAiChatsResponseLoading as a6,Ue as a7,hooks as a8,commonjsGlobal as a9,requiredRule as aA,TWITTER_HANDLE as aB,YOUTUBE_CHANNEL as aC,RSS as aD,GITHUB_REPOSITORY as aE,LINK as aF,TWITTER_SOURCE as aG,WEB_PAGE as aH,DOCUMENT as aI,getPriceData as aJ,isE2E as aK,sphinxBridge as aL,getLSat as aM,payLsat as aN,getNodeType as aO,getNodeSchemaTypes as aP,getNodeContent as aQ,approveRadarData as aR,deleteRadarData as aS,getRadarData as aT,putRadarData as aU,getEdgeTypes as aV,getEdges as aW,postEdgeType as aX,putNodeData as aY,postMergeTopics as aZ,getTopicsData as a_,commonjsRequire as aa,getSchemaAll as ab,useFilteredNodes as ac,_baseGetTag as ad,isObjectLike_1 as ae,isObject$7 as af,isFunction$3 as ag,_Set as ah,_Symbol as ai,isArguments_1 as aj,isArray_1 as ak,_arrayPush as al,_baseUnary as am,_defineProperty as an,eq_1 as ao,isArrayLike_1 as ap,_isIndex as aq,isObject_1 as ar,_root as as,_baseAssignValue as at,keys_1 as au,getFullTranscript as av,getAugmentedNamespace as aw,useHasAiChats as ax,postAboutData as ay,NODE_ADD_ERROR as az,_extends as b,css as b0,changeNodeType as b1,resolveBreakpointValues as b2,handleBreakpoints as b3,updateEdgeType as b4,postBluePrintType as b5,deleteEdgeType as b6,cloneDeep_1 as b7,editNodeSchemaUpdate as b8,createRoot as b9,useThemeProps$1 as bA,createUnarySpacing as bB,mergeBreakpointsInOrder as bC,getValue as bD,useTheme$3 as bE,react as ba,GRAPH_GROUND_COLOR as bb,GRAPH_LIGHT_INTENSITY as bc,GRAPH_FOG_COLOR as bd,_getPrototype as be,_MapCache as bf,_Uint8Array as bg,_getAllKeys as bh,_Stack as bi,_getTag as bj,isBufferExports as bk,isTypedArray_1 as bl,isLength_1 as bm,request as bn,buffer$2 as bo,sphinx$1 as bp,Global as bq,useTheme$2 as br,defaultTheme$1 as bs,THEME_ID as bt,formatMuiErrorMessage as bu,deepmerge as bv,defaultSxConfig$1 as bw,isPlainObject as bx,createStyled as by,createTheme$1 as bz,generateUtilityClass as c,generateUtilityClasses as d,alpha as e,clsx$1 as f,getDefaultExportFromCjs as g,composeClasses as h,capitalize as i,jsxRuntimeExports as j,keyframes as k,reactDomExports as l,useTheme as m,rootShouldForwardProp as n,resolveProps as o,create as p,useDataStore as q,reactExports as r,styled$1 as s,styled$3 as t,useThemeProps as u,colors as v,clsx as w,devtools as x,useAppStore as y,useUserStore as z}; diff --git a/build/assets/index-8d05d202.js b/build/assets/index-ffdb9bac.js similarity index 99% rename from build/assets/index-8d05d202.js rename to build/assets/index-ffdb9bac.js index 83e8703cb..95c186a72 100644 --- a/build/assets/index-8d05d202.js +++ b/build/assets/index-ffdb9bac.js @@ -1,4 +1,4 @@ -import{g as La,r as p,R as v,a as E0,_ as Z1,b as U,c as f0,d as Xe,s as se,e as ze,u as Qe,j as u,f as A1,h as h0,k as Kr,i as G1,l as pn,m as Ra,n as G3,o as P3,$ as M3,W as T3,p as mn,q as Je,t as l1,v as X,F as s1,w as L3,x as R3,L as F3,y as xn,z as qr,A as Fa,T as F1,S as O3,B as W1,C as I3,D as H3,E as N3,G as z3,H as U3,I as Z3,J as Oa,K as W3,M as K3,N as q3,O as Y3,P as X3}from"./index-4e7b4086.js";function Q3(e){return e===null?"?":e.toLocaleString("en-US").split(",").join(" ")}function J3(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const el=e=>{const[t,n,r]=e.split(":"),i=parseInt(t,10),o=parseInt(n,10),a=parseInt(r,10);return i*3600+o*60+a};var Ia={exports:{}},tl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nl=tl,rl=nl;function Ha(){}function Na(){}Na.resetWarningCache=Ha;var il=function(){function e(r,i,o,a,s,l){if(l!==rl){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Na,resetWarningCache:Ha};return n.PropTypes=n,n};Ia.exports=il();var ol=Ia.exports;const g1=La(ol);function ji(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function al(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function we(e){return e&&e.ownerDocument||document}function st(e){return we(e).defaultView||window}function ur(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const sl=typeof window<"u"?p.useLayoutEffect:p.useEffect,dr=sl;function S0(e){const t=p.useRef(e);return dr(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Pe(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ur(n,t)})},e)}let kn=!0,fr=!1,Gi;const ll={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 cl(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ll[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ul(e){e.metaKey||e.altKey||e.ctrlKey||(kn=!0)}function jn(){kn=!1}function dl(){this.visibilityState==="hidden"&&fr&&(kn=!0)}function fl(e){e.addEventListener("keydown",ul,!0),e.addEventListener("mousedown",jn,!0),e.addEventListener("pointerdown",jn,!0),e.addEventListener("touchstart",jn,!0),e.addEventListener("visibilitychange",dl,!0)}function hl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return kn||cl(t)}function pl(){const e=p.useCallback(i=>{i!=null&&fl(i.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(fr=!0,window.clearTimeout(Gi),Gi=window.setTimeout(()=>{fr=!1},100),t.current=!1,!0):!1}function r(i){return hl(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ml(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const xl=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Pi=xl;function hr(e,t){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hr(e,t)}function za(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hr(e,t)}const Mi={disabled:!1},Ot=v.createContext(null);var kl=function(t){return t.scrollTop},Q0="unmounted",t0="exited",n0="entering",w0="entered",pr="exiting",Fe=function(e){za(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=t0,o.appearStatus=n0):l=w0:r.unmountOnExit||r.mountOnEnter?l=Q0:l=t0,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Q0?{status:t0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==n0&&a!==w0&&(o=n0):(a===n0||a===w0)&&(o=pr)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===n0){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:E0.findDOMNode(this);a&&kl(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===t0&&this.setState({status:Q0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[E0.findDOMNode(this),s],c=l[0],d=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!i&&!a||Mi.disabled){this.safeSetState({status:w0},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:n0},function(){o.props.onEntering(c,d),o.onTransitionEnd(h,function(){o.safeSetState({status:w0},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:E0.findDOMNode(this);if(!o||Mi.disabled){this.safeSetState({status:t0},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:pr},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:t0},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:E0.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Q0)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Z1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Ot.Provider,{value:null},typeof a=="function"?a(i,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);Fe.contextType=Ot;Fe.propTypes={};function g0(){}Fe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g0,onEntering:g0,onEntered:g0,onExit:g0,onExiting:g0,onExited:g0};Fe.UNMOUNTED=Q0;Fe.EXITED=t0;Fe.ENTERING=n0;Fe.ENTERED=w0;Fe.EXITING=pr;const Ua=Fe;function gl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yr(e,t){var n=function(o){return t&&p.isValidElement(o)?t(o):o},r=Object.create(null);return e&&p.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Cl(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function It(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function Sl(e){return f0("MuiPaper",e)}Xe("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 _l=["className","component","elevation","square","variant"],Al=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return h0(o,Sl,i)},Vl=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return U({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"&&U({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ze("#fff",Pi(t.elevation))}, ${ze("#fff",Pi(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Dl=p.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=Z1(r,_l),d=U({},r,{component:o,elevation:a,square:s,variant:l}),f=Al(d);return u.jsx(Vl,U({as:o,ownerState:d,className:A1(f.root,i),ref:n},c))}),Bl=Dl;function $l(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,f]=p.useState(!1),h=A1(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),k={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=A1(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&f(!0),p.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),u.jsx("span",{className:h,style:k,children:u.jsx("span",{className:m})})}const jl=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ce=jl,Gl=["center","classes","className"];let gn=e=>e,Ti,Li,Ri,Fi;const mr=550,Pl=80,Ml=Kr(Ti||(Ti=gn` +import{g as La,r as p,R as v,a as E0,_ as Z1,b as U,c as f0,d as Xe,s as se,e as ze,u as Qe,j as u,f as A1,h as h0,k as Kr,i as G1,l as pn,m as Ra,n as G3,o as P3,$ as M3,W as T3,p as mn,q as Je,t as l1,v as X,F as s1,w as L3,x as R3,L as F3,y as xn,z as qr,A as Fa,T as F1,S as O3,B as W1,C as I3,D as H3,E as N3,G as z3,H as U3,I as Z3,J as Oa,K as W3,M as K3,N as q3,O as Y3,P as X3}from"./index-e8b9ad93.js";function Q3(e){return e===null?"?":e.toLocaleString("en-US").split(",").join(" ")}function J3(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const el=e=>{const[t,n,r]=e.split(":"),i=parseInt(t,10),o=parseInt(n,10),a=parseInt(r,10);return i*3600+o*60+a};var Ia={exports:{}},tl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nl=tl,rl=nl;function Ha(){}function Na(){}Na.resetWarningCache=Ha;var il=function(){function e(r,i,o,a,s,l){if(l!==rl){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Na,resetWarningCache:Ha};return n.PropTypes=n,n};Ia.exports=il();var ol=Ia.exports;const g1=La(ol);function ji(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function al(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function we(e){return e&&e.ownerDocument||document}function st(e){return we(e).defaultView||window}function ur(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const sl=typeof window<"u"?p.useLayoutEffect:p.useEffect,dr=sl;function S0(e){const t=p.useRef(e);return dr(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Pe(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ur(n,t)})},e)}let kn=!0,fr=!1,Gi;const ll={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 cl(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ll[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ul(e){e.metaKey||e.altKey||e.ctrlKey||(kn=!0)}function jn(){kn=!1}function dl(){this.visibilityState==="hidden"&&fr&&(kn=!0)}function fl(e){e.addEventListener("keydown",ul,!0),e.addEventListener("mousedown",jn,!0),e.addEventListener("pointerdown",jn,!0),e.addEventListener("touchstart",jn,!0),e.addEventListener("visibilitychange",dl,!0)}function hl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return kn||cl(t)}function pl(){const e=p.useCallback(i=>{i!=null&&fl(i.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(fr=!0,window.clearTimeout(Gi),Gi=window.setTimeout(()=>{fr=!1},100),t.current=!1,!0):!1}function r(i){return hl(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ml(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const xl=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Pi=xl;function hr(e,t){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hr(e,t)}function za(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hr(e,t)}const Mi={disabled:!1},Ot=v.createContext(null);var kl=function(t){return t.scrollTop},Q0="unmounted",t0="exited",n0="entering",w0="entered",pr="exiting",Fe=function(e){za(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=t0,o.appearStatus=n0):l=w0:r.unmountOnExit||r.mountOnEnter?l=Q0:l=t0,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Q0?{status:t0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==n0&&a!==w0&&(o=n0):(a===n0||a===w0)&&(o=pr)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===n0){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:E0.findDOMNode(this);a&&kl(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===t0&&this.setState({status:Q0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[E0.findDOMNode(this),s],c=l[0],d=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!i&&!a||Mi.disabled){this.safeSetState({status:w0},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:n0},function(){o.props.onEntering(c,d),o.onTransitionEnd(h,function(){o.safeSetState({status:w0},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:E0.findDOMNode(this);if(!o||Mi.disabled){this.safeSetState({status:t0},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:pr},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:t0},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:E0.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Q0)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Z1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Ot.Provider,{value:null},typeof a=="function"?a(i,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);Fe.contextType=Ot;Fe.propTypes={};function g0(){}Fe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g0,onEntering:g0,onEntered:g0,onExit:g0,onExiting:g0,onExited:g0};Fe.UNMOUNTED=Q0;Fe.EXITED=t0;Fe.ENTERING=n0;Fe.ENTERED=w0;Fe.EXITING=pr;const Ua=Fe;function gl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yr(e,t){var n=function(o){return t&&p.isValidElement(o)?t(o):o},r=Object.create(null);return e&&p.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Cl(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function It(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function Sl(e){return f0("MuiPaper",e)}Xe("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 _l=["className","component","elevation","square","variant"],Al=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return h0(o,Sl,i)},Vl=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return U({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"&&U({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ze("#fff",Pi(t.elevation))}, ${ze("#fff",Pi(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Dl=p.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=Z1(r,_l),d=U({},r,{component:o,elevation:a,square:s,variant:l}),f=Al(d);return u.jsx(Vl,U({as:o,ownerState:d,className:A1(f.root,i),ref:n},c))}),Bl=Dl;function $l(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,f]=p.useState(!1),h=A1(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),k={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=A1(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&f(!0),p.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),u.jsx("span",{className:h,style:k,children:u.jsx("span",{className:m})})}const jl=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ce=jl,Gl=["center","classes","className"];let gn=e=>e,Ti,Li,Ri,Fi;const mr=550,Pl=80,Ml=Kr(Ti||(Ti=gn` 0% { transform: scale(0); opacity: 0.1; @@ -176,7 +176,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-collapse: collapse; border-spacing: 0; } -`;function uh(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{const r=e(n);return uh(t.current,r)?t.current:t.current=r}}const i3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"bubble_chart",children:[u.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_42)",children:u.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),o3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"communities",children:[u.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_39)",children:u.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),a3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"grain",children:[u.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_45)",children:u.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),s3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"public",children:[u.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_36)",children:u.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})});function wa(e,t,n){var r,i=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function o(){var a,s=r.length,l,c=0,d=0,f=0;for(a=0;a=(l=(a+s)/2))?a=l:s=l,r=i,!(i=i[f=+d]))return r[f]=o,e;if(c=+e._x.call(null,i.data),t===c)return o.next=i,r?r[f]=o:e._root=o,e;do r=r?r[f]=new Array(2):e._root=new Array(2),(d=t>=(l=(a+s)/2))?a=l:s=l;while((f=+d)==(h=+(c>=l)));return r[h]=i,r[f]=o,e}function ph(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let r=1/0,i=-1/0;for(let o=0,a;oi&&(i=a));if(r>i)return this;this.cover(r).cover(i);for(let o=0;oe||e>=n;)switch(a=+(ea||(o=c.x1)=f))&&(c=s[s.length-1],s[s.length-1]=s[s.length-1-d],s[s.length-1-d]=c)}else{var h=Math.abs(e-+this._x.call(null,l.data));h=(c=(a+s)/2))?a=c:s=c,t=n,!(n=n[f=+d]))return this;if(!n.length)break;t[f+1&1]&&(r=t,h=f)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[f]=o:delete t[f],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(r?r[h]=n:this._root=n),this):(this._root=o,this)}function yh(e){for(var t=0,n=e.length;t=(f=(s+c)/2))?s=f:c=f,(y=n>=(h=(l+d)/2))?l=h:d=h,i=o,!(o=o[x=y<<1|g]))return i[x]=a,e;if(k=+e._x.call(null,o.data),m=+e._y.call(null,o.data),t===k&&n===m)return a.next=o,i?i[x]=a:e._root=a,e;do i=i?i[x]=new Array(4):e._root=new Array(4),(g=t>=(f=(s+c)/2))?s=f:c=f,(y=n>=(h=(l+d)/2))?l=h:d=h;while((x=y<<1|g)===(C=(m>=h)<<1|k>=f));return i[C]=o,i[x]=a,e}function Vh(e){var t,n,r=e.length,i,o,a=new Array(r),s=new Array(r),l=1/0,c=1/0,d=-1/0,f=-1/0;for(n=0;nd&&(d=i),of&&(f=o));if(l>d||c>f)return this;for(this.cover(l,c).cover(d,f),n=0;ne||e>=i||r>t||t>=o;)switch(c=(td||(s=m.y0)>f||(l=m.x1)=x)<<1|e>=y)&&(m=h[h.length-1],h[h.length-1]=h[h.length-1-g],h[h.length-1-g]=m)}else{var C=e-+this._x.call(null,k.data),b=t-+this._y.call(null,k.data),S=C*C+b*b;if(S=(h=(a+l)/2))?a=h:l=h,(g=f>=(k=(s+c)/2))?s=k:c=k,t=n,!(n=n[y=g<<1|m]))return this;if(!n.length)break;(t[y+1&3]||t[y+2&3]||t[y+3&3])&&(r=t,x=y)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[y]=o:delete t[y],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[x]=n:this._root=n),this):(this._root=o,this)}function Ph(e){for(var t=0,n=e.length;t=(m=(l+f)/2))?l=m:f=m,(w=n>=(g=(c+h)/2))?c=g:h=g,(E=r>=(y=(d+k)/2))?d=y:k=y,o=a,!(a=a[_=E<<2|w<<1|S]))return o[_]=s,e;if(x=+e._x.call(null,a.data),C=+e._y.call(null,a.data),b=+e._z.call(null,a.data),t===x&&n===C&&r===b)return s.next=a,o?o[_]=s:e._root=s,e;do o=o?o[_]=new Array(8):e._root=new Array(8),(S=t>=(m=(l+f)/2))?l=m:f=m,(w=n>=(g=(c+h)/2))?c=g:h=g,(E=r>=(y=(d+k)/2))?d=y:k=y;while((_=E<<2|w<<1|S)===(V=(b>=y)<<2|(C>=g)<<1|x>=m));return o[V]=a,o[_]=s,e}function zh(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),r=new Float64Array(t),i=new Float64Array(t);let o=1/0,a=1/0,s=1/0,l=-1/0,c=-1/0,d=-1/0;for(let f=0,h,k,m,g;fl&&(l=k),mc&&(c=m),gd&&(d=g));if(o>l||a>c||s>d)return this;this.cover(o,a,s).cover(l,c,d);for(let f=0;fe||e>=a||i>t||t>=s||o>n||n>=l;)switch(h=(nm||(c=b.y0)>g||(d=b.z0)>y||(f=b.x1)=_)<<2|(t>=E)<<1|e>=w)&&(b=x[x.length-1],x[x.length-1]=x[x.length-1-S],x[x.length-1-S]=b)}else{var V=e-+this._x.call(null,C.data),P=t-+this._y.call(null,C.data),$=n-+this._z.call(null,C.data),T=V*V+P*P+$*$;if(T=(g=(a+c)/2))?a=g:c=g,(b=k>=(y=(s+d)/2))?s=y:d=y,(S=m>=(x=(l+f)/2))?l=x:f=x,t=n,!(n=n[w=S<<2|b<<1|C]))return this;if(!n.length)break;(t[w+1&7]||t[w+2&7]||t[w+3&7]||t[w+4&7]||t[w+5&7]||t[w+6&7]||t[w+7&7])&&(r=t,E=w)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[w]=o:delete t[w],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[E]=n:this._root=n),this):(this._root=o,this)}function Yh(e){for(var t=0,n=e.length;t1&&(g=k.y+k.vy),n>2&&(y=k.z+k.vz),h.visit(S);function S(w,E,_,V,P,$,T){var D=[E,_,V,P,$,T],O=D[0],M=D[1],R=D[2],F=D[n],H=D[n+1],Z=D[n+2],q=w.data,i1=w.r,Q=x+i1;if(q){if(q.index>k.index){var N=m-q.x-q.vx,e1=n>1?g-q.y-q.vy:0,t1=n>2?y-q.z-q.vz:0,n1=N*N+e1*e1+t1*t1;n11&&e1===0&&(e1=fe(i),n1+=e1*e1),n>2&&t1===0&&(t1=fe(i),n1+=t1*t1),n1=(Q-(n1=Math.sqrt(n1)))/n1*o,k.vx+=(N*=n1)*(Q=(i1*=i1)/(C+i1)),n>1&&(k.vy+=(e1*=n1)*Q),n>2&&(k.vz+=(t1*=n1)*Q),q.vx-=N*(Q=1-Q),n>1&&(q.vy-=e1*Q),n>2&&(q.vz-=t1*Q))}return}return O>m+Q||F1&&(M>g+Q||H2&&(R>y+Q||Zd.r&&(d.r=d[f].r)}function c(){if(t){var d,f=t.length,h;for(r=new Array(f),d=0;dtypeof h=="function")||Math.random,n=f.find(h=>[1,2,3].includes(h))||2,c()},s.iterations=function(d){return arguments.length?(a=+d,s):a},s.strength=function(d){return arguments.length?(o=+d,s):o},s.radius=function(d){return arguments.length?(e=typeof d=="function"?d:U1(+d),c(),s):e},s}function lp(e){return e.index}function Va(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function cp(e){var t=lp,n=h,r,i=U1(30),o,a,s,l,c,d,f=1;e==null&&(e=[]);function h(x){return 1/Math.min(l[x.source.index],l[x.target.index])}function k(x){for(var C=0,b=e.length;C1&&(P=_.y+_.vy-E.y-E.vy||fe(d)),s>2&&($=_.z+_.vz-E.z-E.vz||fe(d)),T=Math.sqrt(V*V+P*P+$*$),T=(T-o[S])/T*x*r[S],V*=T,P*=T,$*=T,_.vx-=V*(D=c[S]),s>1&&(_.vy-=P*D),s>2&&(_.vz-=$*D),E.vx+=V*(D=1-D),s>1&&(E.vy+=P*D),s>2&&(E.vz+=$*D)}function m(){if(a){var x,C=a.length,b=e.length,S=new Map(a.map((E,_)=>[t(E,_,a),E])),w;for(x=0,l=new Array(C);xtypeof b=="function")||Math.random,s=C.find(b=>[1,2,3].includes(b))||2,m()},k.links=function(x){return arguments.length?(e=x,m(),k):e},k.id=function(x){return arguments.length?(t=x,k):t},k.iterations=function(x){return arguments.length?(f=+x,k):f},k.strength=function(x){return arguments.length?(n=typeof x=="function"?x:U1(+x),g(),k):n},k.distance=function(x){return arguments.length?(i=typeof x=="function"?x:U1(+x),y(),k):i},k}var up={value:()=>{}};function d3(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Rt.prototype=d3.prototype={constructor:Rt,on:function(e,t){var n=this._,r=dp(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&e._call.call(void 0,t),e=e._next;--P0}function Ba(){d0=(dn=ht.now())+Vn,P0=et=0;try{pp()}finally{P0=0,xp(),d0=0}}function mp(){var e=ht.now(),t=e-dn;t>f3&&(Vn-=t,dn=e)}function xp(){for(var e,t=un,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:un=n);tt=e,Ur(r)}function Ur(e){if(!P0){et&&(et=clearTimeout(et));var t=e-d0;t>24?(e<1/0&&(et=setTimeout(Ba,e-ht.now()-Vn)),Y0&&(Y0=clearInterval(Y0))):(Y0||(dn=ht.now(),Y0=setInterval(mp,f3)),P0=1,h3(Ba))}}const kp=1664525,gp=1013904223,$a=4294967296;function Cp(){let e=1;return()=>(e=(kp*e+gp)%$a)/$a}var ja=3;function ar(e){return e.x}function Ga(e){return e.y}function yp(e){return e.z}var bp=10,vp=Math.PI*(3-Math.sqrt(5)),wp=Math.PI*20/(9+Math.sqrt(221));function Ep(e,t){t=t||2;var n=Math.min(ja,Math.max(1,Math.round(t))),r,i=1,o=.001,a=1-Math.pow(o,1/300),s=0,l=.6,c=new Map,d=m3(k),f=d3("tick","end"),h=Cp();e==null&&(e=[]);function k(){m(),f.call("tick",r),i1&&(S.fy==null?S.y+=S.vy*=l:(S.y=S.fy,S.vy=0)),n>2&&(S.fz==null?S.z+=S.vz*=l:(S.z=S.fz,S.vz=0));return r}function g(){for(var x=0,C=e.length,b;x1&&isNaN(b.y)||n>2&&isNaN(b.z)){var S=bp*(n>2?Math.cbrt(.5+x):n>1?Math.sqrt(.5+x):x),w=x*vp,E=x*wp;n===1?b.x=S:n===2?(b.x=S*Math.cos(w),b.y=S*Math.sin(w)):(b.x=S*Math.sin(w)*Math.cos(E),b.y=S*Math.cos(w),b.z=S*Math.sin(w)*Math.sin(E))}(isNaN(b.vx)||n>1&&isNaN(b.vy)||n>2&&isNaN(b.vz))&&(b.vx=0,n>1&&(b.vy=0),n>2&&(b.vz=0))}}function y(x){return x.initialize&&x.initialize(e,h,n),x}return g(),r={tick:m,restart:function(){return d.restart(k),r},stop:function(){return d.stop(),r},numDimensions:function(x){return arguments.length?(n=Math.min(ja,Math.max(1,Math.round(x))),c.forEach(y),r):n},nodes:function(x){return arguments.length?(e=x,g(),c.forEach(y),r):e},alpha:function(x){return arguments.length?(i=+x,r):i},alphaMin:function(x){return arguments.length?(o=+x,r):o},alphaDecay:function(x){return arguments.length?(a=+x,r):+a},alphaTarget:function(x){return arguments.length?(s=+x,r):s},velocityDecay:function(x){return arguments.length?(l=1-x,r):1-l},randomSource:function(x){return arguments.length?(h=x,c.forEach(y),r):h},force:function(x,C){return arguments.length>1?(C==null?c.delete(x):c.set(x,y(C)),r):c.get(x)},find:function(){var x=Array.prototype.slice.call(arguments),C=x.shift()||0,b=(n>1?x.shift():null)||0,S=(n>2?x.shift():null)||0,w=x.shift()||1/0,E=0,_=e.length,V,P,$,T,D,O;for(w*=w,E=0;E<_;++E)D=e[E],V=C-D.x,P=b-(D.y||0),$=S-(D.z||0),T=V*V+P*P+$*$,T1?(f.on(x,C),r):f.on(x)}}}function Sp(){var e,t,n,r,i,o=U1(-30),a,s=1,l=1/0,c=.81;function d(m){var g,y=e.length,x=(t===1?Si(e,ar):t===2?Ai(e,ar,Ga):t===3?Di(e,ar,Ga,yp):null).visitAfter(h);for(i=m,g=0;g1&&(m.y=S/C),t>2&&(m.z=w/C)}else{y=m,y.x=y.data.x,t>1&&(y.y=y.data.y),t>2&&(y.z=y.data.z);do g+=a[y.data.index];while(y=y.next)}m.value=g}function k(m,g,y,x,C){if(!m.value)return!0;var b=[y,x,C][t-1],S=m.x-n.x,w=t>1?m.y-n.y:0,E=t>2?m.z-n.z:0,_=b-g,V=S*S+w*w+E*E;if(_*_/c1&&w===0&&(w=fe(r),V+=w*w),t>2&&E===0&&(E=fe(r),V+=E*E),V1&&(n.vy+=w*m.value*i/V),t>2&&(n.vz+=E*m.value*i/V)),!0;if(m.length||V>=l)return;(m.data!==n||m.next)&&(S===0&&(S=fe(r),V+=S*S),t>1&&w===0&&(w=fe(r),V+=w*w),t>2&&E===0&&(E=fe(r),V+=E*E),V1&&(n.vy+=w*_),t>2&&(n.vz+=E*_));while(m=m.next)}return d.initialize=function(m,...g){e=m,r=g.find(y=>typeof y=="function")||Math.random,t=g.find(y=>[1,2,3].includes(y))||2,f()},d.strength=function(m){return arguments.length?(o=typeof m=="function"?m:U1(+m),f(),d):o},d.distanceMin=function(m){return arguments.length?(s=m*m,d):Math.sqrt(s)},d.distanceMax=function(m){return arguments.length?(l=m*m,d):Math.sqrt(l)},d.theta=function(m){return arguments.length?(c=m*m,d):Math.sqrt(c)},d}function Pa(e,t,n,r){var i,o,a=U1(.1),s,l;typeof e!="function"&&(e=U1(+e)),t==null&&(t=0),n==null&&(n=0),r==null&&(r=0);function c(f){for(var h=0,k=i.length;h1&&(m.vy+=y*b),o>2&&(m.vz+=x*b)}}function d(){if(i){var f,h=i.length;for(s=new Array(h),l=new Array(h),f=0;f[1,2,3].includes(k))||2,d()},c.strength=function(f){return arguments.length?(a=typeof f=="function"?f:U1(+f),d(),c):a},c.radius=function(f){return arguments.length?(e=typeof f=="function"?f:U1(+f),d(),c):e},c.x=function(f){return arguments.length?(t=+f,c):t},c.y=function(f){return arguments.length?(n=+f,c):n},c.z=function(f){return arguments.length?(r=+f,c):r},c}function _p(e){var t=U1(.1),n,r,i;typeof e!="function"&&(e=U1(e==null?0:+e));function o(s){for(var l=0,c=n.length,d;l{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},Vp=["sphere","force","split","earth"],Dp={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,scrollEventsDisabled:!1,graphRadius:1500,graphStyle:localStorage.getItem("graphStyle")||"sphere",hoveredNode:null,selectedNode:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:Ap,isHovering:!1},m0=mn()((e,t)=>({...Dp,setData:n=>{e({data:n})},setSelectionData:n=>e({selectionGraphData:n}),setScrollEventsDisabled:n=>e({scrollEventsDisabled:n}),setDisableCameraRotation:n=>e({disableCameraRotation:n}),setIsHovering:n=>e({isHovering:n}),setGraphRadius:n=>e({graphRadius:n}),setGraphStyle:n=>e({graphStyle:n}),setHoveredNode:n=>{e({hoveredNode:n})},setSelectedNode:n=>{const{selectedNode:r,simulation:i}=t();if((r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)){const o=i.nodes().find(a=>a.ref_id===(n==null?void 0:n.ref_id))||null;e({hoveredNode:null,selectedNode:o,disableCameraRotation:!0})}},setCameraFocusTrigger:n=>e({cameraFocusTrigger:n}),setNearbyNodeIds:n=>{const r=t().nearbyNodeIds;(n.length!==r.length||n[0]!==r[0])&&e({nearbyNodeIds:n})},setShowSelectionGraph:n=>e({showSelectionGraph:n}),simulationHelpers:{addNodesAndLinks:(n,r,i)=>{const o=structuredClone(n),a=structuredClone(r),{simulation:s,simulationHelpers:l}=t();s.stop();const c=i?[]:s.nodes().map(f=>({...f,fx:f.x,fy:f.y,fz:f.z})),d=i?[]:s.force("link").links();c.push(...o),d.push(...a);try{s.nodes(c);const f=d.filter(h=>{const{target:k,source:m}=h,g=s.nodes(),y=(k==null?void 0:k.ref_id)||k,x=(m==null?void 0:m.ref_id)||m;return g.some(C=>C.ref_id===y)&&g.some(C=>C.ref_id===x)});s.force("link").links([]).links(f),l.simulationRestart()}catch(f){console.log(f)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...sr}))).force("y",null).force("radial",Pa(200,0,0,0).strength(.1)).force("center",wa().strength(1)).force("collide",or().radius(()=>250).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...sr}))).force("y",null).force("charge",Sp().strength(-20)).force("center",wa().strength(1)).force("collide",or().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:r}=Je.getState();n.stop().nodes(n.nodes().map(i=>({...i,...sr}))).force("radial",Pa(200,0,0,0).strength(.1)).force("collide",or().radius(()=>250).strength(1).iterations(1)).force("y",_p().y(i=>r.indexOf(i.node_type)*400).strength(10))},getLinks:()=>{const{simulation:n}=t();return n?n.force("link").links():[]},setForces:()=>{const{graphStyle:n,simulationHelpers:r}=t();n==="split"&&r.addSplitForce(),n==="sphere"&&r.addRadialForce(),n==="force"&&r.addDefaultForce(),r.simulationRestart()},simulationRestart:()=>{const{simulation:n}=t();n.alpha(1).restart()}},simulationCreate:(n,r)=>{console.log("created");const i=structuredClone(n),o=structuredClone(r),a=Ep([]).numDimensions(3).stop().nodes(i).force("link",cp().links(o).id(s=>s.ref_id));e({simulation:a})}})),x3=()=>m0(e=>e.selectedNode),Gg=()=>m0(e=>e.hoveredNode),$i=()=>m0(e=>e.setSelectedNode),Pg=()=>{const e=m0(i=>i.selectedNode);if(!e)return[];const{dataInitial:t}=Je.getState();return((t==null?void 0:t.links)||[]).reduce((i,o)=>(o.source===(e==null?void 0:e.ref_id)&&i.push(o.target),o.target===(e==null?void 0:e.ref_id)&&i.push(o.source),i),[])},Bp={split:u.jsx(a3,{}),force:u.jsx(o3,{}),sphere:u.jsx(i3,{}),earth:u.jsx(s3,{})},$p=()=>{const[e,t]=m0(fh(r=>[r.graphStyle,r.setGraphStyle])),n=r=>{t(r)};return u.jsx(jp,{direction:"column",children:Vp.map(r=>u.jsx(s1,{className:L3("icon",{active:e===r}),onClick:()=>n(r),children:Bp[r]},r))})},jp=l1(s1).attrs({direction:"row",align:"center",justify:"space-between"})` +`;function uh(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{const r=e(n);return uh(t.current,r)?t.current:t.current=r}}const i3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"bubble_chart",children:[u.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_42)",children:u.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),o3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"communities",children:[u.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_39)",children:u.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),a3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"grain",children:[u.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_45)",children:u.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),s3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"public",children:[u.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_36)",children:u.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})});function wa(e,t,n){var r,i=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function o(){var a,s=r.length,l,c=0,d=0,f=0;for(a=0;a=(l=(a+s)/2))?a=l:s=l,r=i,!(i=i[f=+d]))return r[f]=o,e;if(c=+e._x.call(null,i.data),t===c)return o.next=i,r?r[f]=o:e._root=o,e;do r=r?r[f]=new Array(2):e._root=new Array(2),(d=t>=(l=(a+s)/2))?a=l:s=l;while((f=+d)==(h=+(c>=l)));return r[h]=i,r[f]=o,e}function ph(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let r=1/0,i=-1/0;for(let o=0,a;oi&&(i=a));if(r>i)return this;this.cover(r).cover(i);for(let o=0;oe||e>=n;)switch(a=+(ea||(o=c.x1)=f))&&(c=s[s.length-1],s[s.length-1]=s[s.length-1-d],s[s.length-1-d]=c)}else{var h=Math.abs(e-+this._x.call(null,l.data));h=(c=(a+s)/2))?a=c:s=c,t=n,!(n=n[f=+d]))return this;if(!n.length)break;t[f+1&1]&&(r=t,h=f)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[f]=o:delete t[f],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(r?r[h]=n:this._root=n),this):(this._root=o,this)}function yh(e){for(var t=0,n=e.length;t=(f=(s+c)/2))?s=f:c=f,(y=n>=(h=(l+d)/2))?l=h:d=h,i=o,!(o=o[x=y<<1|g]))return i[x]=a,e;if(k=+e._x.call(null,o.data),m=+e._y.call(null,o.data),t===k&&n===m)return a.next=o,i?i[x]=a:e._root=a,e;do i=i?i[x]=new Array(4):e._root=new Array(4),(g=t>=(f=(s+c)/2))?s=f:c=f,(y=n>=(h=(l+d)/2))?l=h:d=h;while((x=y<<1|g)===(C=(m>=h)<<1|k>=f));return i[C]=o,i[x]=a,e}function Vh(e){var t,n,r=e.length,i,o,a=new Array(r),s=new Array(r),l=1/0,c=1/0,d=-1/0,f=-1/0;for(n=0;nd&&(d=i),of&&(f=o));if(l>d||c>f)return this;for(this.cover(l,c).cover(d,f),n=0;ne||e>=i||r>t||t>=o;)switch(c=(td||(s=m.y0)>f||(l=m.x1)=x)<<1|e>=y)&&(m=h[h.length-1],h[h.length-1]=h[h.length-1-g],h[h.length-1-g]=m)}else{var C=e-+this._x.call(null,k.data),b=t-+this._y.call(null,k.data),S=C*C+b*b;if(S=(h=(a+l)/2))?a=h:l=h,(g=f>=(k=(s+c)/2))?s=k:c=k,t=n,!(n=n[y=g<<1|m]))return this;if(!n.length)break;(t[y+1&3]||t[y+2&3]||t[y+3&3])&&(r=t,x=y)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[y]=o:delete t[y],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[x]=n:this._root=n),this):(this._root=o,this)}function Ph(e){for(var t=0,n=e.length;t=(m=(l+f)/2))?l=m:f=m,(w=n>=(g=(c+h)/2))?c=g:h=g,(E=r>=(y=(d+k)/2))?d=y:k=y,o=a,!(a=a[_=E<<2|w<<1|S]))return o[_]=s,e;if(x=+e._x.call(null,a.data),C=+e._y.call(null,a.data),b=+e._z.call(null,a.data),t===x&&n===C&&r===b)return s.next=a,o?o[_]=s:e._root=s,e;do o=o?o[_]=new Array(8):e._root=new Array(8),(S=t>=(m=(l+f)/2))?l=m:f=m,(w=n>=(g=(c+h)/2))?c=g:h=g,(E=r>=(y=(d+k)/2))?d=y:k=y;while((_=E<<2|w<<1|S)===(V=(b>=y)<<2|(C>=g)<<1|x>=m));return o[V]=a,o[_]=s,e}function zh(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),r=new Float64Array(t),i=new Float64Array(t);let o=1/0,a=1/0,s=1/0,l=-1/0,c=-1/0,d=-1/0;for(let f=0,h,k,m,g;fl&&(l=k),mc&&(c=m),gd&&(d=g));if(o>l||a>c||s>d)return this;this.cover(o,a,s).cover(l,c,d);for(let f=0;fe||e>=a||i>t||t>=s||o>n||n>=l;)switch(h=(nm||(c=b.y0)>g||(d=b.z0)>y||(f=b.x1)=_)<<2|(t>=E)<<1|e>=w)&&(b=x[x.length-1],x[x.length-1]=x[x.length-1-S],x[x.length-1-S]=b)}else{var V=e-+this._x.call(null,C.data),P=t-+this._y.call(null,C.data),$=n-+this._z.call(null,C.data),T=V*V+P*P+$*$;if(T=(g=(a+c)/2))?a=g:c=g,(b=k>=(y=(s+d)/2))?s=y:d=y,(S=m>=(x=(l+f)/2))?l=x:f=x,t=n,!(n=n[w=S<<2|b<<1|C]))return this;if(!n.length)break;(t[w+1&7]||t[w+2&7]||t[w+3&7]||t[w+4&7]||t[w+5&7]||t[w+6&7]||t[w+7&7])&&(r=t,E=w)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[w]=o:delete t[w],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[E]=n:this._root=n),this):(this._root=o,this)}function Yh(e){for(var t=0,n=e.length;t1&&(g=k.y+k.vy),n>2&&(y=k.z+k.vz),h.visit(S);function S(w,E,_,V,P,$,T){var D=[E,_,V,P,$,T],O=D[0],M=D[1],R=D[2],F=D[n],H=D[n+1],Z=D[n+2],q=w.data,i1=w.r,Q=x+i1;if(q){if(q.index>k.index){var N=m-q.x-q.vx,e1=n>1?g-q.y-q.vy:0,t1=n>2?y-q.z-q.vz:0,n1=N*N+e1*e1+t1*t1;n11&&e1===0&&(e1=fe(i),n1+=e1*e1),n>2&&t1===0&&(t1=fe(i),n1+=t1*t1),n1=(Q-(n1=Math.sqrt(n1)))/n1*o,k.vx+=(N*=n1)*(Q=(i1*=i1)/(C+i1)),n>1&&(k.vy+=(e1*=n1)*Q),n>2&&(k.vz+=(t1*=n1)*Q),q.vx-=N*(Q=1-Q),n>1&&(q.vy-=e1*Q),n>2&&(q.vz-=t1*Q))}return}return O>m+Q||F1&&(M>g+Q||H2&&(R>y+Q||Zd.r&&(d.r=d[f].r)}function c(){if(t){var d,f=t.length,h;for(r=new Array(f),d=0;dtypeof h=="function")||Math.random,n=f.find(h=>[1,2,3].includes(h))||2,c()},s.iterations=function(d){return arguments.length?(a=+d,s):a},s.strength=function(d){return arguments.length?(o=+d,s):o},s.radius=function(d){return arguments.length?(e=typeof d=="function"?d:U1(+d),c(),s):e},s}function lp(e){return e.index}function Va(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function cp(e){var t=lp,n=h,r,i=U1(30),o,a,s,l,c,d,f=1;e==null&&(e=[]);function h(x){return 1/Math.min(l[x.source.index],l[x.target.index])}function k(x){for(var C=0,b=e.length;C1&&(P=_.y+_.vy-E.y-E.vy||fe(d)),s>2&&($=_.z+_.vz-E.z-E.vz||fe(d)),T=Math.sqrt(V*V+P*P+$*$),T=(T-o[S])/T*x*r[S],V*=T,P*=T,$*=T,_.vx-=V*(D=c[S]),s>1&&(_.vy-=P*D),s>2&&(_.vz-=$*D),E.vx+=V*(D=1-D),s>1&&(E.vy+=P*D),s>2&&(E.vz+=$*D)}function m(){if(a){var x,C=a.length,b=e.length,S=new Map(a.map((E,_)=>[t(E,_,a),E])),w;for(x=0,l=new Array(C);xtypeof b=="function")||Math.random,s=C.find(b=>[1,2,3].includes(b))||2,m()},k.links=function(x){return arguments.length?(e=x,m(),k):e},k.id=function(x){return arguments.length?(t=x,k):t},k.iterations=function(x){return arguments.length?(f=+x,k):f},k.strength=function(x){return arguments.length?(n=typeof x=="function"?x:U1(+x),g(),k):n},k.distance=function(x){return arguments.length?(i=typeof x=="function"?x:U1(+x),y(),k):i},k}var up={value:()=>{}};function d3(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Rt.prototype=d3.prototype={constructor:Rt,on:function(e,t){var n=this._,r=dp(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&e._call.call(void 0,t),e=e._next;--P0}function Ba(){d0=(dn=ht.now())+Vn,P0=et=0;try{pp()}finally{P0=0,xp(),d0=0}}function mp(){var e=ht.now(),t=e-dn;t>f3&&(Vn-=t,dn=e)}function xp(){for(var e,t=un,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:un=n);tt=e,Ur(r)}function Ur(e){if(!P0){et&&(et=clearTimeout(et));var t=e-d0;t>24?(e<1/0&&(et=setTimeout(Ba,e-ht.now()-Vn)),Y0&&(Y0=clearInterval(Y0))):(Y0||(dn=ht.now(),Y0=setInterval(mp,f3)),P0=1,h3(Ba))}}const kp=1664525,gp=1013904223,$a=4294967296;function Cp(){let e=1;return()=>(e=(kp*e+gp)%$a)/$a}var ja=3;function ar(e){return e.x}function Ga(e){return e.y}function yp(e){return e.z}var bp=10,vp=Math.PI*(3-Math.sqrt(5)),wp=Math.PI*20/(9+Math.sqrt(221));function Ep(e,t){t=t||2;var n=Math.min(ja,Math.max(1,Math.round(t))),r,i=1,o=.001,a=1-Math.pow(o,1/300),s=0,l=.6,c=new Map,d=m3(k),f=d3("tick","end"),h=Cp();e==null&&(e=[]);function k(){m(),f.call("tick",r),i1&&(S.fy==null?S.y+=S.vy*=l:(S.y=S.fy,S.vy=0)),n>2&&(S.fz==null?S.z+=S.vz*=l:(S.z=S.fz,S.vz=0));return r}function g(){for(var x=0,C=e.length,b;x1&&isNaN(b.y)||n>2&&isNaN(b.z)){var S=bp*(n>2?Math.cbrt(.5+x):n>1?Math.sqrt(.5+x):x),w=x*vp,E=x*wp;n===1?b.x=S:n===2?(b.x=S*Math.cos(w),b.y=S*Math.sin(w)):(b.x=S*Math.sin(w)*Math.cos(E),b.y=S*Math.cos(w),b.z=S*Math.sin(w)*Math.sin(E))}(isNaN(b.vx)||n>1&&isNaN(b.vy)||n>2&&isNaN(b.vz))&&(b.vx=0,n>1&&(b.vy=0),n>2&&(b.vz=0))}}function y(x){return x.initialize&&x.initialize(e,h,n),x}return g(),r={tick:m,restart:function(){return d.restart(k),r},stop:function(){return d.stop(),r},numDimensions:function(x){return arguments.length?(n=Math.min(ja,Math.max(1,Math.round(x))),c.forEach(y),r):n},nodes:function(x){return arguments.length?(e=x,g(),c.forEach(y),r):e},alpha:function(x){return arguments.length?(i=+x,r):i},alphaMin:function(x){return arguments.length?(o=+x,r):o},alphaDecay:function(x){return arguments.length?(a=+x,r):+a},alphaTarget:function(x){return arguments.length?(s=+x,r):s},velocityDecay:function(x){return arguments.length?(l=1-x,r):1-l},randomSource:function(x){return arguments.length?(h=x,c.forEach(y),r):h},force:function(x,C){return arguments.length>1?(C==null?c.delete(x):c.set(x,y(C)),r):c.get(x)},find:function(){var x=Array.prototype.slice.call(arguments),C=x.shift()||0,b=(n>1?x.shift():null)||0,S=(n>2?x.shift():null)||0,w=x.shift()||1/0,E=0,_=e.length,V,P,$,T,D,O;for(w*=w,E=0;E<_;++E)D=e[E],V=C-D.x,P=b-(D.y||0),$=S-(D.z||0),T=V*V+P*P+$*$,T1?(f.on(x,C),r):f.on(x)}}}function Sp(){var e,t,n,r,i,o=U1(-30),a,s=1,l=1/0,c=.81;function d(m){var g,y=e.length,x=(t===1?Si(e,ar):t===2?Ai(e,ar,Ga):t===3?Di(e,ar,Ga,yp):null).visitAfter(h);for(i=m,g=0;g1&&(m.y=S/C),t>2&&(m.z=w/C)}else{y=m,y.x=y.data.x,t>1&&(y.y=y.data.y),t>2&&(y.z=y.data.z);do g+=a[y.data.index];while(y=y.next)}m.value=g}function k(m,g,y,x,C){if(!m.value)return!0;var b=[y,x,C][t-1],S=m.x-n.x,w=t>1?m.y-n.y:0,E=t>2?m.z-n.z:0,_=b-g,V=S*S+w*w+E*E;if(_*_/c1&&w===0&&(w=fe(r),V+=w*w),t>2&&E===0&&(E=fe(r),V+=E*E),V1&&(n.vy+=w*m.value*i/V),t>2&&(n.vz+=E*m.value*i/V)),!0;if(m.length||V>=l)return;(m.data!==n||m.next)&&(S===0&&(S=fe(r),V+=S*S),t>1&&w===0&&(w=fe(r),V+=w*w),t>2&&E===0&&(E=fe(r),V+=E*E),V1&&(n.vy+=w*_),t>2&&(n.vz+=E*_));while(m=m.next)}return d.initialize=function(m,...g){e=m,r=g.find(y=>typeof y=="function")||Math.random,t=g.find(y=>[1,2,3].includes(y))||2,f()},d.strength=function(m){return arguments.length?(o=typeof m=="function"?m:U1(+m),f(),d):o},d.distanceMin=function(m){return arguments.length?(s=m*m,d):Math.sqrt(s)},d.distanceMax=function(m){return arguments.length?(l=m*m,d):Math.sqrt(l)},d.theta=function(m){return arguments.length?(c=m*m,d):Math.sqrt(c)},d}function Pa(e,t,n,r){var i,o,a=U1(.1),s,l;typeof e!="function"&&(e=U1(+e)),t==null&&(t=0),n==null&&(n=0),r==null&&(r=0);function c(f){for(var h=0,k=i.length;h1&&(m.vy+=y*b),o>2&&(m.vz+=x*b)}}function d(){if(i){var f,h=i.length;for(s=new Array(h),l=new Array(h),f=0;f[1,2,3].includes(k))||2,d()},c.strength=function(f){return arguments.length?(a=typeof f=="function"?f:U1(+f),d(),c):a},c.radius=function(f){return arguments.length?(e=typeof f=="function"?f:U1(+f),d(),c):e},c.x=function(f){return arguments.length?(t=+f,c):t},c.y=function(f){return arguments.length?(n=+f,c):n},c.z=function(f){return arguments.length?(r=+f,c):r},c}function _p(e){var t=U1(.1),n,r,i;typeof e!="function"&&(e=U1(e==null?0:+e));function o(s){for(var l=0,c=n.length,d;l{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},Vp=["sphere","force","split","earth"],Dp={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,scrollEventsDisabled:!1,graphRadius:1500,graphStyle:localStorage.getItem("graphStyle")||"sphere",hoveredNode:null,selectedNode:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:Ap,isHovering:!1},m0=mn()((e,t)=>({...Dp,setData:n=>{e({data:n})},setSelectionData:n=>e({selectionGraphData:n}),setScrollEventsDisabled:n=>e({scrollEventsDisabled:n}),setDisableCameraRotation:n=>e({disableCameraRotation:n}),setIsHovering:n=>e({isHovering:n}),setGraphRadius:n=>e({graphRadius:n}),setGraphStyle:n=>e({graphStyle:n}),setHoveredNode:n=>{e({hoveredNode:n})},setSelectedNode:n=>{const{selectedNode:r,simulation:i}=t();if((r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)){const o=i.nodes().find(a=>a.ref_id===(n==null?void 0:n.ref_id))||null;e({hoveredNode:null,selectedNode:o,disableCameraRotation:!0})}},setCameraFocusTrigger:n=>e({cameraFocusTrigger:n}),setNearbyNodeIds:n=>{const r=t().nearbyNodeIds;(n.length!==r.length||n[0]!==r[0])&&e({nearbyNodeIds:n})},setShowSelectionGraph:n=>e({showSelectionGraph:n}),simulationHelpers:{addNodesAndLinks:(n,r,i)=>{const o=structuredClone(n),a=structuredClone(r),{simulation:s,simulationHelpers:l}=t();s.stop();const c=i?[]:s.nodes().map(f=>({...f,fx:f.x,fy:f.y,fz:f.z})),d=i?[]:s.force("link").links();c.push(...o),d.push(...a);try{s.nodes(c);const f=d.filter(h=>{const{target:k,source:m}=h,g=s.nodes(),y=(k==null?void 0:k.ref_id)||k,x=(m==null?void 0:m.ref_id)||m;return g.some(C=>C.ref_id===y)&&g.some(C=>C.ref_id===x)});s.force("link").links([]).links(f),l.simulationRestart()}catch(f){console.log(f)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...sr}))).force("y",null).force("radial",Pa(200,0,0,0).strength(.1)).force("center",wa().strength(1)).force("collide",or().radius(()=>250).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...sr}))).force("y",null).force("charge",Sp().strength(-20)).force("center",wa().strength(1)).force("collide",or().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:r}=Je.getState();n.stop().nodes(n.nodes().map(i=>({...i,...sr}))).force("radial",Pa(200,0,0,0).strength(.1)).force("collide",or().radius(()=>250).strength(1).iterations(1)).force("y",_p().y(i=>{const o=r.indexOf(i.node_type),a=Math.floor(o/2)*400;return o%2===0?a:-a}).strength(10))},getLinks:()=>{const{simulation:n}=t();return n?n.force("link").links():[]},setForces:()=>{const{graphStyle:n,simulationHelpers:r}=t();n==="split"&&r.addSplitForce(),n==="sphere"&&r.addRadialForce(),n==="force"&&r.addDefaultForce(),r.simulationRestart()},simulationRestart:()=>{const{simulation:n}=t();n.alpha(1).restart()}},simulationCreate:(n,r)=>{console.log("created");const i=structuredClone(n),o=structuredClone(r),a=Ep([]).numDimensions(3).stop().nodes(i).force("link",cp().links(o).id(s=>s.ref_id));e({simulation:a})}})),x3=()=>m0(e=>e.selectedNode),Gg=()=>m0(e=>e.hoveredNode),$i=()=>m0(e=>e.setSelectedNode),Pg=()=>{const e=m0(i=>i.selectedNode);if(!e)return[];const{dataInitial:t}=Je.getState();return((t==null?void 0:t.links)||[]).reduce((i,o)=>(o.source===(e==null?void 0:e.ref_id)&&i.push(o.target),o.target===(e==null?void 0:e.ref_id)&&i.push(o.source),i),[])},Bp={split:u.jsx(a3,{}),force:u.jsx(o3,{}),sphere:u.jsx(i3,{}),earth:u.jsx(s3,{})},$p=()=>{const[e,t]=m0(fh(r=>[r.graphStyle,r.setGraphStyle])),n=r=>{t(r)};return u.jsx(jp,{direction:"column",children:Vp.map(r=>u.jsx(s1,{className:L3("icon",{active:e===r}),onClick:()=>n(r),children:Bp[r]},r))})},jp=l1(s1).attrs({direction:"row",align:"center",justify:"space-between"})` padding: 6px 6px 6px 11px; background: ${X.BG1}; border-radius: 200px; @@ -386,7 +386,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 65px; right: 55px; z-index: 100; -`,sm=()=>{const e=p.useContext(O3);return e==null?void 0:e.socket},lm={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},cm=mn(e=>({...lm,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,i,o;(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:(i=t==null?void 0:t.instagraph)==null?void 0:i.edges,nodes:(o=t==null?void 0:t.instagraph)==null?void 0:o.nodes}})}})),um="0.1.106",dm=p.lazy(()=>W1(()=>import("./index-6d42632e.js"),["assets/index-6d42632e.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/ClipLoader-debba421.js","assets/index.esm-2eb55070.js","assets/index-71105b91.js","assets/index-53aef74d.js","assets/Tabs-c02cacac.js","assets/createSvgIcon-e086f0de.js"]).then(({SettingsModal:e})=>({default:e}))),fm=p.lazy(()=>W1(()=>import("./index-4296aca2.js"),["assets/index-4296aca2.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/index-71105b91.js","assets/index.esm-2eb55070.js","assets/ClipLoader-debba421.js","assets/index-53aef74d.js"]).then(({AddContentModal:e})=>({default:e}))),hm=p.lazy(()=>W1(()=>import("./index-ceabf099.js"),["assets/index-ceabf099.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/index-71105b91.js","assets/index.esm-2eb55070.js","assets/ClipLoader-debba421.js","assets/constants-b2a2fa82.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-53aef74d.js","assets/index-93aeefd6.js","assets/Stack-2bf11152.js","assets/createSvgIcon-e086f0de.js","assets/TextareaAutosize-eac164b5.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),pm=p.lazy(()=>W1(()=>import("./index-62edf322.js"),["assets/index-62edf322.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/constants-41186e32.js","assets/ClipLoader-debba421.js","assets/index.esm-2eb55070.js","assets/index-93aeefd6.js","assets/Stack-2bf11152.js","assets/createSvgIcon-e086f0de.js","assets/TextareaAutosize-eac164b5.js","assets/index-53aef74d.js","assets/index-44e7b49e.js","assets/constants-b2a2fa82.js","assets/Typography-9047da8c.js","assets/Tabs-c02cacac.js"]).then(({SourcesTableModal:e})=>({default:e}))),mm=p.lazy(()=>W1(()=>import("./index-e458cdef.js"),["assets/index-e458cdef.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/index-53aef74d.js","assets/index.esm-2eb55070.js","assets/Skeleton-f681e38b.js","assets/ClipLoader-debba421.js"]).then(({EditNodeNameModal:e})=>({default:e}))),xm=p.lazy(()=>W1(()=>import("./index-099d7f02.js"),["assets/index-099d7f02.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/Skeleton-f681e38b.js","assets/ClipLoader-debba421.js"]).then(({RemoveNodeModal:e})=>({default:e}))),km=p.lazy(()=>W1(()=>import("./index-b0ee3089.js"),["assets/index-b0ee3089.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/index-93aeefd6.js","assets/Stack-2bf11152.js","assets/createSvgIcon-e086f0de.js","assets/TextareaAutosize-eac164b5.js","assets/constants-b2a2fa82.js","assets/constants-41186e32.js","assets/ClipLoader-debba421.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),gm=p.lazy(()=>W1(()=>import("./index-408d2ad5.js"),["assets/index-408d2ad5.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/index-44e7b49e.js","assets/constants-41186e32.js","assets/constants-b2a2fa82.js","assets/index-93aeefd6.js","assets/Stack-2bf11152.js","assets/createSvgIcon-e086f0de.js","assets/TextareaAutosize-eac164b5.js","assets/ClipLoader-debba421.js"]).then(({MergeNodeModal:e})=>({default:e}))),Cm=p.lazy(()=>W1(()=>import("./index-78113264.js"),["assets/index-78113264.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/index-53aef74d.js","assets/index.esm-2eb55070.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/constants-b2a2fa82.js","assets/ClipLoader-debba421.js","assets/index-93aeefd6.js","assets/Stack-2bf11152.js","assets/createSvgIcon-e086f0de.js","assets/TextareaAutosize-eac164b5.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ym=p.lazy(()=>W1(()=>import("./index-d8dc64a7.js"),["assets/index-d8dc64a7.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/constants-b2a2fa82.js","assets/index-53aef74d.js","assets/index.esm-2eb55070.js","assets/index-93aeefd6.js","assets/Stack-2bf11152.js","assets/createSvgIcon-e086f0de.js","assets/TextareaAutosize-eac164b5.js","assets/ClipLoader-debba421.js","assets/map-41080909.js","assets/Typography-9047da8c.js","assets/Tabs-c02cacac.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-344bba82.js"]).then(({BlueprintModal:e})=>({default:e}))),bm=p.lazy(()=>W1(()=>import("./index-1f52b1ca.js"),["assets/index-1f52b1ca.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/index-71105b91.js","assets/index.esm-2eb55070.js","assets/index-53aef74d.js"]).then(({UserFeedBackModal:e})=>({default:e}))),vm=p.lazy(()=>W1(()=>import("./index-65e72f7b.js"),["assets/index-65e72f7b.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-49d9ff41.js","assets/index-71105b91.js","assets/index.esm-2eb55070.js","assets/index-93aeefd6.js","assets/Stack-2bf11152.js","assets/createSvgIcon-e086f0de.js","assets/TextareaAutosize-eac164b5.js","assets/index-53aef74d.js"]).then(({CreateBountyModal:e})=>({default:e}))),wm=()=>u.jsxs(u.Fragment,{children:[u.jsx(hm,{}),u.jsx(fm,{}),u.jsx(dm,{}),u.jsx(mm,{}),u.jsx(xm,{}),u.jsx(pm,{}),u.jsx(km,{}),u.jsx(Cm,{}),u.jsx(ym,{}),u.jsx(gm,{}),u.jsx(bm,{}),u.jsx(vm,{})]}),w3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"info",children:[u.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2682_970)",children:u.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"})})]})}),Em=()=>{const[e,t]=p.useState(null),{runningProjectMessages:n}=Je(s=>s),r=s=>{t(s.currentTarget)},i=()=>{t(null)},o=!!e,a=o?"simple-popover":void 0;return n.length?u.jsxs(Sm,{ml:8,children:[u.jsx(Am,{onClick:r,children:u.jsxs(fn,{content:"Messages",margin:"18px",children:[u.jsx("div",{className:"icon",children:u.jsx(w3,{})}),u.jsx("div",{className:"text",children:u.jsx("p",{children:n.length})})]})}),u.jsxs(Vm,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:a,onClose:i,open:o,children:[u.jsx(E3,{onClick:i,children:u.jsx(Dn,{})}),u.jsx(_m,{p:16,children:n.map(s=>u.jsx("p",{className:"item",children:s},s))})]})]}):null},Sm=l1(s1).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,_m=l1(s1)` +`,sm=()=>{const e=p.useContext(O3);return e==null?void 0:e.socket},lm={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},cm=mn(e=>({...lm,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,i,o;(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:(i=t==null?void 0:t.instagraph)==null?void 0:i.edges,nodes:(o=t==null?void 0:t.instagraph)==null?void 0:o.nodes}})}})),um="0.1.106",dm=p.lazy(()=>W1(()=>import("./index-32f0aa69.js"),["assets/index-32f0aa69.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/ClipLoader-e6af0d5e.js","assets/index.esm-55abcd0d.js","assets/index-e27c1d85.js","assets/index-3cb9349b.js","assets/Tabs-573fdd2d.js","assets/createSvgIcon-ea6ddcd6.js"]).then(({SettingsModal:e})=>({default:e}))),fm=p.lazy(()=>W1(()=>import("./index-0f4cb5e5.js"),["assets/index-0f4cb5e5.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/index-e27c1d85.js","assets/index.esm-55abcd0d.js","assets/ClipLoader-e6af0d5e.js","assets/index-3cb9349b.js"]).then(({AddContentModal:e})=>({default:e}))),hm=p.lazy(()=>W1(()=>import("./index-1b87e39a.js"),["assets/index-1b87e39a.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/index-e27c1d85.js","assets/index.esm-55abcd0d.js","assets/ClipLoader-e6af0d5e.js","assets/constants-b2a2fa82.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-3cb9349b.js","assets/index-ae904d72.js","assets/Stack-c617158d.js","assets/createSvgIcon-ea6ddcd6.js","assets/TextareaAutosize-1decf155.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),pm=p.lazy(()=>W1(()=>import("./index-2324aa9c.js"),["assets/index-2324aa9c.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/constants-f306a0b2.js","assets/ClipLoader-e6af0d5e.js","assets/index.esm-55abcd0d.js","assets/index-ae904d72.js","assets/Stack-c617158d.js","assets/createSvgIcon-ea6ddcd6.js","assets/TextareaAutosize-1decf155.js","assets/index-3cb9349b.js","assets/index-345de899.js","assets/constants-b2a2fa82.js","assets/Typography-db52e3f1.js","assets/Tabs-573fdd2d.js"]).then(({SourcesTableModal:e})=>({default:e}))),mm=p.lazy(()=>W1(()=>import("./index-a82d47f9.js"),["assets/index-a82d47f9.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/index-3cb9349b.js","assets/index.esm-55abcd0d.js","assets/Skeleton-7010430a.js","assets/ClipLoader-e6af0d5e.js"]).then(({EditNodeNameModal:e})=>({default:e}))),xm=p.lazy(()=>W1(()=>import("./index-81e0c1dc.js"),["assets/index-81e0c1dc.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/Skeleton-7010430a.js","assets/ClipLoader-e6af0d5e.js"]).then(({RemoveNodeModal:e})=>({default:e}))),km=p.lazy(()=>W1(()=>import("./index-411c1361.js"),["assets/index-411c1361.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/index-ae904d72.js","assets/Stack-c617158d.js","assets/createSvgIcon-ea6ddcd6.js","assets/TextareaAutosize-1decf155.js","assets/constants-b2a2fa82.js","assets/constants-f306a0b2.js","assets/ClipLoader-e6af0d5e.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),gm=p.lazy(()=>W1(()=>import("./index-c582b5e4.js"),["assets/index-c582b5e4.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/index-345de899.js","assets/constants-f306a0b2.js","assets/constants-b2a2fa82.js","assets/index-ae904d72.js","assets/Stack-c617158d.js","assets/createSvgIcon-ea6ddcd6.js","assets/TextareaAutosize-1decf155.js","assets/ClipLoader-e6af0d5e.js"]).then(({MergeNodeModal:e})=>({default:e}))),Cm=p.lazy(()=>W1(()=>import("./index-c0705125.js"),["assets/index-c0705125.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/index-3cb9349b.js","assets/index.esm-55abcd0d.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/constants-b2a2fa82.js","assets/ClipLoader-e6af0d5e.js","assets/index-ae904d72.js","assets/Stack-c617158d.js","assets/createSvgIcon-ea6ddcd6.js","assets/TextareaAutosize-1decf155.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ym=p.lazy(()=>W1(()=>import("./index-a9d05fc0.js"),["assets/index-a9d05fc0.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/constants-b2a2fa82.js","assets/index-3cb9349b.js","assets/index.esm-55abcd0d.js","assets/index-ae904d72.js","assets/Stack-c617158d.js","assets/createSvgIcon-ea6ddcd6.js","assets/TextareaAutosize-1decf155.js","assets/ClipLoader-e6af0d5e.js","assets/map-470fc2ef.js","assets/Typography-db52e3f1.js","assets/Tabs-573fdd2d.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-284cd839.js"]).then(({BlueprintModal:e})=>({default:e}))),bm=p.lazy(()=>W1(()=>import("./index-cfff5f20.js"),["assets/index-cfff5f20.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/index-e27c1d85.js","assets/index.esm-55abcd0d.js","assets/index-3cb9349b.js"]).then(({UserFeedBackModal:e})=>({default:e}))),vm=p.lazy(()=>W1(()=>import("./index-a9d11598.js"),["assets/index-a9d11598.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-6a2d3502.js","assets/index-e27c1d85.js","assets/index.esm-55abcd0d.js","assets/index-ae904d72.js","assets/Stack-c617158d.js","assets/createSvgIcon-ea6ddcd6.js","assets/TextareaAutosize-1decf155.js","assets/index-3cb9349b.js"]).then(({CreateBountyModal:e})=>({default:e}))),wm=()=>u.jsxs(u.Fragment,{children:[u.jsx(hm,{}),u.jsx(fm,{}),u.jsx(dm,{}),u.jsx(mm,{}),u.jsx(xm,{}),u.jsx(pm,{}),u.jsx(km,{}),u.jsx(Cm,{}),u.jsx(ym,{}),u.jsx(gm,{}),u.jsx(bm,{}),u.jsx(vm,{})]}),w3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"info",children:[u.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2682_970)",children:u.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"})})]})}),Em=()=>{const[e,t]=p.useState(null),{runningProjectMessages:n}=Je(s=>s),r=s=>{t(s.currentTarget)},i=()=>{t(null)},o=!!e,a=o?"simple-popover":void 0;return n.length?u.jsxs(Sm,{ml:8,children:[u.jsx(Am,{onClick:r,children:u.jsxs(fn,{content:"Messages",margin:"18px",children:[u.jsx("div",{className:"icon",children:u.jsx(w3,{})}),u.jsx("div",{className:"text",children:u.jsx("p",{children:n.length})})]})}),u.jsxs(Vm,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:a,onClose:i,open:o,children:[u.jsx(E3,{onClick:i,children:u.jsx(Dn,{})}),u.jsx(_m,{p:16,children:n.map(s=>u.jsx("p",{className:"item",children:s},s))})]})]}):null},Sm=l1(s1).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,_m=l1(s1)` max-height: 50vh; max-width: 30vw; background: transparent; @@ -696,4 +696,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${X.white}; font-size: 12px; opacity: 0.5; -`,kg=p.lazy(()=>W1(()=>import("./index-049b9db3.js"),["assets/index-049b9db3.js","assets/index-4e7b4086.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),gg=p.lazy(()=>W1(()=>import("./index-043dcdcc.js"),["assets/index-043dcdcc.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/index-344bba82.js","assets/three.module-26d3b3c0.js","assets/TextareaAutosize-eac164b5.js","assets/index.esm-2eb55070.js","assets/index-62ddae12.js","assets/ClipLoader-debba421.js"]).then(({Universe:e})=>({default:e}))),Cg=p.lazy(()=>W1(()=>import("./index-09591f91.js").then(e=>e.i),["assets/index-09591f91.js","assets/index-4e7b4086.js","assets/index-a2878e02.css","assets/ClipLoader-debba421.js","assets/Skeleton-f681e38b.js","assets/Stack-2bf11152.js","assets/map-41080909.js","assets/Typography-9047da8c.js","assets/createSvgIcon-e086f0de.js","assets/index-49d9ff41.js","assets/index-62ddae12.js","assets/index.esm-2eb55070.js"]).then(({SideBar:e})=>({default:e}))),yg=()=>{const[e]=K3(),t=e.get("q"),{setBudget:n,setNodeCount:r}=qr(N=>N),i=p.useRef(null),o=p.useRef(null),{setSidebarOpen:a,currentSearch:s,setCurrentSearch:l,setRelevanceSelected:c,setTranscriptOpen:d,universeQuestionIsOpen:f,setUniverseQuestionIsOpen:h}=xn(N=>N),k=cm(N=>N.setTeachMeAnswer),{fetchData:m,setCategoryFilter:g,setAbortRequests:y,addNewNode:x,splashDataLoading:C,runningProjectId:b,setRunningProjectMessages:S,isFetching:w}=Je(N=>N),{setAiSummaryAnswer:E,getKeyExist:_,aiRefId:V}=Oa(N=>N),P=$i(),[$,T]=q3(N=>[N.realtimeGraphFeatureFlag,N.chatInterfaceFeatureFlag]),D=sm(),O=lh({mode:"onChange"}),{setValue:M}=O;p.useEffect(()=>{M("search",t??""),d(!1),P(null),c(!1),l(t??""),k(""),g(null)},[t,g,l,c,P,k,d,M]),p.useEffect(()=>{(async()=>{await m(n,y),a(!0),s?await X3(n):P(null)})()},[s,m,n,y,a,P]);const R=p.useCallback(()=>{r("INCREMENT")},[r]),F=p.useCallback(N=>{w||(i.current||(i.current={nodes:[],edges:[]}),N.edges&&i.current.edges.push(...N.edges),N.nodes&&i.current.nodes.push(...N.nodes),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{const e1={...i.current};i.current={nodes:[],edges:[]},x(e1)},3e3))},[x,w]),H=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{answer:N.answer,answerLoading:!1})},[E]),Z=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{audio_en:N.audio_EN})},[E]),q=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{questions:N.relevant_questions.map(e1=>e1.question),questionsLoading:!1})},[E]),i1=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{sources:N.sources.map(e1=>e1.ref_id),sourcesLoading:!1})},[E]),Q=p.useCallback(N=>{N.question&&_(V)&&E(V,{answerLoading:!1,entities:N.entities})},[E,_,V]);return p.useEffect(()=>(D&&(D.connect(),D.on("connect_error",N=>{console.error("Socket connection error:",N)}),D.on("newnode",R),T&&D.on("extractedentitieshook",Q),T&&D.on("askquestionhook",H),T&&D.on("relevantquestionshook",q),T&&D.on("answersourceshook",i1),$&&D.on("new_node_created",F),T&&D.on("answeraudiohook",Z)),()=>{D&&D.off()}),[D,R,F,$,H,T,q,i1,Q,Z]),p.useEffect(()=>{if(!b)return;const N=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");N.onopen=()=>{let e1="a";e1=b;const t1={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:e1})};N.send(JSON.stringify(t1))},N.onmessage=e1=>{var c1;console.log("Message from server:",e1.data);const t1=JSON.parse(e1.data);if(t1.type==="ping")return;const n1=(c1=t1==null?void 0:t1.message)==null?void 0:c1.message;n1&&S(n1)},N.onerror=e1=>{console.error("WebSocket error:",e1)},N.onclose=()=>{console.log("WebSocket connection closed")}},[b,S]),p.useEffect(()=>{C||h()},[h,C]),u.jsxs(u.Fragment,{children:[u.jsx(ch,{}),u.jsx(eg,{}),u.jsx(I2,{hidden:!Y3||!0,isRoot:!0}),u.jsx(p.Suspense,{fallback:u.jsx("div",{children:"Loading..."}),children:C?null:u.jsxs(mg,{direction:"row",children:[u.jsxs(Wf,{...O,children:[u.jsx(kg,{}),!f&&u.jsx(Cg,{}),u.jsx(gg,{}),u.jsx(im,{}),u.jsx(qk,{}),u.jsxs(xg,{children:["v",um]}),u.jsx(v3,{})]}),u.jsx(wm,{}),u.jsx(pg,{})]})})]})},Mg=Object.freeze(Object.defineProperty({__proto__:null,App:yg},Symbol.toStringTag,{value:"Module"}));export{_n as $,Km as A,ii as B,o3 as C,Sx as D,Tx as E,Rx as F,S0 as G,Yx as H,Ik as I,we as J,Ya as K,st as L,ek as M,_3 as N,im as O,g1 as P,Ua as Q,al as R,Bk as S,Xp as T,Za as U,It as V,qa as W,Ht as X,R5 as Y,nc as Z,I0 as _,Zm as a,jg as a$,lh as a0,Wf as a1,vk as a2,$k as a3,ix as a4,Jx as a5,Ux as a6,qx as a7,$i as a8,Dk as a9,ol as aA,rk as aB,Ok as aC,Nx as aD,Mx as aE,xx as aF,fx as aG,hx as aH,Vp as aI,a3 as aJ,s3 as aK,Q3 as aL,yx as aM,Fx as aN,Bl as aO,ik as aP,Ix as aQ,tx as aR,hk as aS,fk as aT,Mk as aU,Fk as aV,Rk as aW,Ak as aX,jx as aY,$x as aZ,_x as a_,px as aa,dx as ab,J3 as ac,Xm as ad,qm as ae,Ym as af,Jm as ag,cx as ah,Dn as ai,ox as aj,Dx as ak,C3 as al,Vk as am,i3 as an,mk as ao,Ek as ap,y3 as aq,Kx as ar,yk as as,bk as at,ok as au,bx as av,Ka as aw,gk as ax,w3 as ay,Fp as az,Sk as b,S4 as b0,Lx as b1,wx as b2,vg as b3,Wa as b4,Gk as b5,ur as b6,ml as b7,U5 as b8,pc as b9,y1 as ba,z as bb,$g as bc,Mg as bd,ex as c,Dg as d,x3 as e,m0 as f,fh as g,Pg as h,b3 as i,Ep as j,or as k,wa as l,Sp as m,cp as n,Gg as o,tk as p,Um as q,dk as r,Bx as s,W5 as t,$m as u,Bg as v,el as w,pl as x,Pe as y,dr as z}; +`,kg=p.lazy(()=>W1(()=>import("./index-6d2fa275.js"),["assets/index-6d2fa275.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),gg=p.lazy(()=>W1(()=>import("./index-2a51efa1.js"),["assets/index-2a51efa1.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/index-284cd839.js","assets/three.module-26d3b3c0.js","assets/TextareaAutosize-1decf155.js","assets/index.esm-55abcd0d.js","assets/index-a8a8b0eb.js","assets/ClipLoader-e6af0d5e.js"]).then(({Universe:e})=>({default:e}))),Cg=p.lazy(()=>W1(()=>import("./index-194d755a.js").then(e=>e.i),["assets/index-194d755a.js","assets/index-e8b9ad93.js","assets/index-a2878e02.css","assets/ClipLoader-e6af0d5e.js","assets/Skeleton-7010430a.js","assets/Stack-c617158d.js","assets/map-470fc2ef.js","assets/Typography-db52e3f1.js","assets/createSvgIcon-ea6ddcd6.js","assets/index-6a2d3502.js","assets/index-a8a8b0eb.js","assets/index.esm-55abcd0d.js"]).then(({SideBar:e})=>({default:e}))),yg=()=>{const[e]=K3(),t=e.get("q"),{setBudget:n,setNodeCount:r}=qr(N=>N),i=p.useRef(null),o=p.useRef(null),{setSidebarOpen:a,currentSearch:s,setCurrentSearch:l,setRelevanceSelected:c,setTranscriptOpen:d,universeQuestionIsOpen:f,setUniverseQuestionIsOpen:h}=xn(N=>N),k=cm(N=>N.setTeachMeAnswer),{fetchData:m,setCategoryFilter:g,setAbortRequests:y,addNewNode:x,splashDataLoading:C,runningProjectId:b,setRunningProjectMessages:S,isFetching:w}=Je(N=>N),{setAiSummaryAnswer:E,getKeyExist:_,aiRefId:V}=Oa(N=>N),P=$i(),[$,T]=q3(N=>[N.realtimeGraphFeatureFlag,N.chatInterfaceFeatureFlag]),D=sm(),O=lh({mode:"onChange"}),{setValue:M}=O;p.useEffect(()=>{M("search",t??""),d(!1),P(null),c(!1),l(t??""),k(""),g(null)},[t,g,l,c,P,k,d,M]),p.useEffect(()=>{(async()=>{await m(n,y),a(!0),s?await X3(n):P(null)})()},[s,m,n,y,a,P]);const R=p.useCallback(()=>{r("INCREMENT")},[r]),F=p.useCallback(N=>{w||(i.current||(i.current={nodes:[],edges:[]}),N.edges&&i.current.edges.push(...N.edges),N.nodes&&i.current.nodes.push(...N.nodes),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{const e1={...i.current};i.current={nodes:[],edges:[]},x(e1)},3e3))},[x,w]),H=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{answer:N.answer,answerLoading:!1})},[E]),Z=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{audio_en:N.audio_EN})},[E]),q=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{questions:N.relevant_questions.map(e1=>e1.question),questionsLoading:!1})},[E]),i1=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{sources:N.sources.map(e1=>e1.ref_id),sourcesLoading:!1})},[E]),Q=p.useCallback(N=>{N.question&&_(V)&&E(V,{answerLoading:!1,entities:N.entities})},[E,_,V]);return p.useEffect(()=>(D&&(D.connect(),D.on("connect_error",N=>{console.error("Socket connection error:",N)}),D.on("newnode",R),T&&D.on("extractedentitieshook",Q),T&&D.on("askquestionhook",H),T&&D.on("relevantquestionshook",q),T&&D.on("answersourceshook",i1),$&&D.on("new_node_created",F),T&&D.on("answeraudiohook",Z)),()=>{D&&D.off()}),[D,R,F,$,H,T,q,i1,Q,Z]),p.useEffect(()=>{if(!b)return;const N=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");N.onopen=()=>{let e1="a";e1=b;const t1={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:e1})};N.send(JSON.stringify(t1))},N.onmessage=e1=>{var c1;console.log("Message from server:",e1.data);const t1=JSON.parse(e1.data);if(t1.type==="ping")return;const n1=(c1=t1==null?void 0:t1.message)==null?void 0:c1.message;n1&&S(n1)},N.onerror=e1=>{console.error("WebSocket error:",e1)},N.onclose=()=>{console.log("WebSocket connection closed")}},[b,S]),p.useEffect(()=>{C||h()},[h,C]),u.jsxs(u.Fragment,{children:[u.jsx(ch,{}),u.jsx(eg,{}),u.jsx(I2,{hidden:!Y3||!0,isRoot:!0}),u.jsx(p.Suspense,{fallback:u.jsx("div",{children:"Loading..."}),children:C?null:u.jsxs(mg,{direction:"row",children:[u.jsxs(Wf,{...O,children:[u.jsx(kg,{}),!f&&u.jsx(Cg,{}),u.jsx(gg,{}),u.jsx(im,{}),u.jsx(qk,{}),u.jsxs(xg,{children:["v",um]}),u.jsx(v3,{})]}),u.jsx(wm,{}),u.jsx(pg,{})]})})]})},Mg=Object.freeze(Object.defineProperty({__proto__:null,App:yg},Symbol.toStringTag,{value:"Module"}));export{_n as $,Km as A,ii as B,o3 as C,Sx as D,Tx as E,Rx as F,S0 as G,Yx as H,Ik as I,we as J,Ya as K,st as L,ek as M,_3 as N,im as O,g1 as P,Ua as Q,al as R,Bk as S,Xp as T,Za as U,It as V,qa as W,Ht as X,R5 as Y,nc as Z,I0 as _,Zm as a,jg as a$,lh as a0,Wf as a1,vk as a2,$k as a3,ix as a4,Jx as a5,Ux as a6,qx as a7,$i as a8,Dk as a9,ol as aA,rk as aB,Ok as aC,Nx as aD,Mx as aE,xx as aF,fx as aG,hx as aH,Vp as aI,a3 as aJ,s3 as aK,Q3 as aL,yx as aM,Fx as aN,Bl as aO,ik as aP,Ix as aQ,tx as aR,hk as aS,fk as aT,Mk as aU,Fk as aV,Rk as aW,Ak as aX,jx as aY,$x as aZ,_x as a_,px as aa,dx as ab,J3 as ac,Xm as ad,qm as ae,Ym as af,Jm as ag,cx as ah,Dn as ai,ox as aj,Dx as ak,C3 as al,Vk as am,i3 as an,mk as ao,Ek as ap,y3 as aq,Kx as ar,yk as as,bk as at,ok as au,bx as av,Ka as aw,gk as ax,w3 as ay,Fp as az,Sk as b,S4 as b0,Lx as b1,wx as b2,vg as b3,Wa as b4,Gk as b5,ur as b6,ml as b7,U5 as b8,pc as b9,y1 as ba,z as bb,$g as bc,Mg as bd,ex as c,Dg as d,x3 as e,m0 as f,fh as g,Pg as h,b3 as i,Ep as j,or as k,wa as l,Sp as m,cp as n,Gg as o,tk as p,Um as q,dk as r,Bx as s,W5 as t,$m as u,Bg as v,el as w,pl as x,Pe as y,dr as z}; diff --git a/build/assets/index.esm-2eb55070.js b/build/assets/index.esm-55abcd0d.js similarity index 98% rename from build/assets/index.esm-2eb55070.js rename to build/assets/index.esm-55abcd0d.js index 71a271e6a..33dba90ec 100644 --- a/build/assets/index.esm-2eb55070.js +++ b/build/assets/index.esm-55abcd0d.js @@ -1 +1 @@ -import{R as c}from"./index-4e7b4086.js";var u={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},g=c.createContext&&c.createContext(u),i=globalThis&&globalThis.__assign||function(){return i=Object.assign||function(t){for(var a,e=1,r=arguments.length;e{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${H(s)}`],input:["input"]};return be(t,ar,r)},sr=M(rr)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ne})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:m,type:P,value:E}=r,A=ge(r,nr),[w,xe]=je({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=_=>{v&&v(_),C&&C.onFocus&&C.onFocus(_)},Be=_=>{b&&b(_),C&&C.onBlur&&C.onBlur(_)},qe=_=>{if(_.nativeEvent.defaultPrevented)return;const Q=_.target.checked;xe(Q),y&&y(_,Q)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),J=tr(D);return L.jsxs(sr,S({component:"span",className:K(J.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[L.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:J.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:m,type:P},P==="checkbox"&&E===void 0?{}:{value:E},h)),w?t:f]}))}),is=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${H(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${H(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ge({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=Ve({props:t,muiFormControl:b,states:["error"]}),m=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(m),E=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=L.jsx(W,S({component:"span"},E,{className:K(P.label,E==null?void 0:E.className),children:A}))),L.jsxs(dr,S({className:K(P.root,i),ownerState:m,ref:a},g,{children:[U.cloneElement(l,O),v?L.jsxs(er,{display:"block",children:[A,L.jsxs(pr,{ownerState:m,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),os=gr;var br=k,hr=T,vr=B,yr="[object String]";function mr(e){return typeof e=="string"||!hr(e)&&vr(e)&&br(e)==yr}var _r=mr;const ls=z(_r);function $r(e){return function(r,a,n){for(var s=-1,t=Object(r),i=n(r),o=i.length;o--;){var l=i[e?o:++s];if(a(t[l],l,t)===!1)break}return r}}var Pr=$r,Ar=Pr,Cr=Ar(),Sr=Cr,Tr=Sr,Or=he;function wr(e,r){return e&&Tr(e,r,Or)}var Er=wr;function Lr(e){return e}var Ir=Lr,Fr=k,Rr=Ue,xr=B,Mr="[object Object]",Br=Function.prototype,qr=Object.prototype,Pe=Br.toString,Dr=qr.hasOwnProperty,Nr=Pe.call(Object);function Gr(e){if(!xr(e)||Fr(e)!=Mr)return!1;var r=Rr(e);if(r===null)return!0;var a=Dr.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Pe.call(a)==Nr}var Ur=Gr;const us=z(Ur);function Kr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&ia?new aa:void 0;for(t.set(e,r),t.set(r,e);++f{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${H(s)}`],input:["input"]};return be(t,ar,r)},sr=M(rr)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ne})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:m,type:P,value:E}=r,A=ge(r,nr),[w,xe]=je({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=_=>{v&&v(_),C&&C.onFocus&&C.onFocus(_)},Be=_=>{b&&b(_),C&&C.onBlur&&C.onBlur(_)},qe=_=>{if(_.nativeEvent.defaultPrevented)return;const Q=_.target.checked;xe(Q),y&&y(_,Q)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),J=tr(D);return L.jsxs(sr,S({component:"span",className:K(J.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[L.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:J.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:m,type:P},P==="checkbox"&&E===void 0?{}:{value:E},h)),w?t:f]}))}),is=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${H(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${H(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ge({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=Ve({props:t,muiFormControl:b,states:["error"]}),m=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(m),E=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=L.jsx(W,S({component:"span"},E,{className:K(P.label,E==null?void 0:E.className),children:A}))),L.jsxs(dr,S({className:K(P.root,i),ownerState:m,ref:a},g,{children:[U.cloneElement(l,O),v?L.jsxs(er,{display:"block",children:[A,L.jsxs(pr,{ownerState:m,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),os=gr;var br=k,hr=T,vr=B,yr="[object String]";function mr(e){return typeof e=="string"||!hr(e)&&vr(e)&&br(e)==yr}var _r=mr;const ls=z(_r);function $r(e){return function(r,a,n){for(var s=-1,t=Object(r),i=n(r),o=i.length;o--;){var l=i[e?o:++s];if(a(t[l],l,t)===!1)break}return r}}var Pr=$r,Ar=Pr,Cr=Ar(),Sr=Cr,Tr=Sr,Or=he;function wr(e,r){return e&&Tr(e,r,Or)}var Er=wr;function Lr(e){return e}var Ir=Lr,Fr=k,Rr=Ue,xr=B,Mr="[object Object]",Br=Function.prototype,qr=Object.prototype,Pe=Br.toString,Dr=qr.hasOwnProperty,Nr=Pe.call(Object);function Gr(e){if(!xr(e)||Fr(e)!=Mr)return!1;var r=Rr(e);if(r===null)return!0;var a=Dr.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Pe.call(a)==Nr}var Ur=Gr;const us=z(Ur);function Kr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&ia?new aa:void 0;for(t.set(e,r),t.set(r,e);++f Second Brain - +